Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[GTK] Add a signal to allow applications to handle its own context menu
https://bugs.webkit.org/show_bug.cgi?id=49904 Reviewed by Gustavo Noronha Silva. * tests/testhittestresult.c: (load_status_cb): Test x, y properties of WebKitHitTestResult. * webkit/webkithittestresult.cpp: (webkit_hit_test_result_get_property): (webkit_hit_test_result_set_property): (webkit_hit_test_result_class_init): Add x and y construct only properties to keep the coordinates of the event relative to view's widget. (WebKit::kit): * webkit/webkitwebsettings.cpp: (webkit_web_settings_class_init): Mark enable-default-context-menu property as deprecated. * webkit/webkitwebview.cpp: (prepareMouseEventForFrame): (defaultContextMenuEnabled): Helper function to check whether default context menu setting is enabled or not. (webkit_web_view_forward_context_menu_event): Emit the new context-menu signal. (webkit_web_view_popup_menu_handler): (webkit_web_view_button_press_event): (webkit_web_view_class_init): Add new context-menu signal and mark populate-popup as deprecated. * webkitmarshal.list: Canonical link: https://commits.webkit.org/99329@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@111843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
with
180 additions
and 27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters