/* * Copyright (c) 2020, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include #include namespace Web { class WebViewHooks { public: Function on_context_menu_request; Function on_link_click; Function on_link_context_menu_request; Function on_image_context_menu_request; Function on_link_middle_click; Function on_link_hover; Function on_title_change; Function on_load_start; Function on_load_finish; Function on_favicon_change; Function on_url_drop; Function on_set_document; Function on_get_source; Function on_get_dom_tree; Function on_get_dom_node_properties; Function on_js_console_new_message; Function const& message_types, Vector const& messages)> on_get_js_console_messages; Function on_get_cookie; Function on_set_cookie; Function on_resource_status_change; }; }