RESOLVED FIXED 111552
[WK2] Add new callbacks and a function for WebKit2 context menu API
https://bugs.webkit.org/show_bug.cgi?id=111552
Summary [WK2] Add new callbacks and a function for WebKit2 context menu API
Michal Pakula vel Rutka
Reported 2013-03-06 03:15:35 PST
This patch will add two callbacks for showing and hiding context menus and an API function for selecting context menu items.
Attachments
proposed patch (9.07 KB, patch)
2013-03-06 03:28 PST, Michal Pakula vel Rutka
no flags
fixes (11.76 KB, patch)
2013-03-25 06:42 PDT, Michal Pakula vel Rutka
no flags
fixes (11.82 KB, patch)
2013-03-27 06:40 PDT, Michal Pakula vel Rutka
andersca: review-
buildbot: commit-queue-
applied andersca's comment (11.85 KB, patch)
2013-04-12 07:07 PDT, Michal Pakula vel Rutka
no flags
Michal Pakula vel Rutka
Comment 1 2013-03-06 03:28:12 PST
Created attachment 191704 [details] proposed patch
WebKit Review Bot
Comment 2 2013-03-06 03:30:37 PST
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Kenneth Rohde Christiansen
Comment 3 2013-03-20 04:59:06 PDT
Comment on attachment 191704 [details] proposed patch View in context: https://bugs.webkit.org/attachment.cgi?id=191704&action=review > Source/WebKit2/UIProcess/API/C/WKPage.cpp:871 > +void WKPageContextMenuItemSelected(WKPageRef page, WKContextMenuItemRef item) the name gives me the idea that it will return a bool (Selected). Should this be called WKPageSelectContextMenuItem( ??
Kenneth Rohde Christiansen
Comment 4 2013-03-20 04:59:56 PDT
Cc'ing some owners who might have comments
Michal Pakula vel Rutka
Comment 5 2013-03-23 16:09:53 PDT
(In reply to comment #3) > (From update of attachment 191704 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=191704&action=review > > > Source/WebKit2/UIProcess/API/C/WKPage.cpp:871 > > +void WKPageContextMenuItemSelected(WKPageRef page, WKContextMenuItemRef item) > > the name gives me the idea that it will return a bool (Selected). Should this be called WKPageSelectContextMenuItem( ?? OK, I will change it to WKPageSelectContextMenuItem
Michal Pakula vel Rutka
Comment 6 2013-03-25 06:42:49 PDT
Michal Pakula vel Rutka
Comment 7 2013-03-27 06:40:30 PDT
Created attachment 195303 [details] fixes fixed conditional in WebPagProxy
Build Bot
Comment 8 2013-03-27 09:15:05 PDT
Michal Pakula vel Rutka
Comment 9 2013-03-27 15:57:33 PDT
(In reply to comment #8) > (From update of attachment 195303 [details]) > Attachment 195303 [details] did not pass win-ews (win): > Output: http://webkit-commit-queue.appspot.com/results/17221833 The patch does not change WebKit1 code, so this is a false positive error.
Carlos Garcia Campos
Comment 10 2013-04-03 10:09:07 PDT
Comment on attachment 195303 [details] fixes This looks good to me. What port does need this? Callbacks are unimplemented in both EFL and GTK+, or is it implemented in a another patch?
Michal Pakula vel Rutka
Comment 11 2013-04-03 10:19:40 PDT
(In reply to comment #10) > (From update of attachment 195303 [details]) > This looks good to me. What port does need this? Callbacks are unimplemented in both EFL and GTK+, or is it implemented in a another patch? They are implemented in EFL port in https://bugs.webkit.org/show_bug.cgi?id=109698.
Anders Carlsson
Comment 12 2013-04-12 06:29:26 PDT
Comment on attachment 195303 [details] fixes View in context: https://bugs.webkit.org/attachment.cgi?id=195303&action=review > Source/WebKit2/UIProcess/WebPageContextMenuClient.cpp:107 > + menuItems.append(WebContextMenuItem::create(menuItemsVector[i]).get()); This should be uncheckedAppend.
Michal Pakula vel Rutka
Comment 13 2013-04-12 07:07:52 PDT
Created attachment 197846 [details] applied andersca's comment
WebKit Commit Bot
Comment 14 2013-04-15 02:01:03 PDT
Comment on attachment 197846 [details] applied andersca's comment Clearing flags on attachment: 197846 Committed r148420: <http://trac.webkit.org/changeset/148420>
WebKit Commit Bot
Comment 15 2013-04-15 02:01:11 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.