Bug 51902

Summary: [Qt] [WK2] Add support for non-trivial context menu action
Product: WebKit Reporter: Benjamin Poulain <benjamin>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, kenneth
Priority: P2 Keywords: Qt, QtTriaged
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Bug Depends on: 51825    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch none

Description Benjamin Poulain 2011-01-04 15:19:47 PST
The patch https://bugs.webkit.org/show_bug.cgi?id=51825 added support for the context menu. Now it is time to use it to peform something useful :)
Comment 1 Kenneth Rohde Christiansen 2011-01-04 15:25:51 PST
(In reply to comment #0)
> The patch https://bugs.webkit.org/show_bug.cgi?id=51825 added support for the context menu. Now it is time to use it to peform something useful :)

You don't seem to like the letter r in the beginning of words: peform and suppot ;-) Let me fix the title!
Comment 2 Benjamin Poulain 2011-01-04 15:39:43 PST
Created attachment 77937 [details]
Patch
Comment 3 Benjamin Poulain 2011-01-04 15:41:44 PST
Created attachment 77939 [details]
Patch

I did not mean to remove that blank line.
Comment 4 Benjamin Poulain 2011-01-04 15:43:37 PST
(In reply to comment #1)
> You don't seem to like the letter r in the beginning of words: peform and suppot ;-) Let me fix the title!

Thanks for fixing the the title. I guess there is too much food in my keyboard for it to work properly ;)
Comment 5 Kenneth Rohde Christiansen 2011-01-04 16:25:00 PST
Comment on attachment 77939 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=77939&action=review

Looks good

> WebKit2/UIProcess/API/qt/qwkpage.cpp:604
> +    QAction* qtAction = action(webAction);

So this action() converter was already defined?
Comment 6 Benjamin Poulain 2011-01-04 17:05:15 PST
(In reply to comment #5)
> > WebKit2/UIProcess/API/qt/qwkpage.cpp:604
> > +    QAction* qtAction = action(webAction);
> 
> So this action() converter was already defined?

Yep, QWKPage::action() seem to be a copy of the design of QWebPage::action(). It is used to get the page action in any context.

Thanks for the review Kenneth.
Comment 7 WebKit Commit Bot 2011-01-04 22:25:12 PST
Comment on attachment 77939 [details]
Patch

Clearing flags on attachment: 77939

Committed r75047: <http://trac.webkit.org/changeset/75047>
Comment 8 WebKit Commit Bot 2011-01-04 22:25:20 PST
All reviewed patches have been landed.  Closing bug.