Bug 51902 - [Qt] [WK2] Add support for non-trivial context menu action
Summary: [Qt] [WK2] Add support for non-trivial context menu action
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit2 (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords: Qt, QtTriaged
Depends on: 51825
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-04 15:19 PST by Benjamin Poulain
Modified: 2011-01-04 22:25 PST (History)
2 users (show)

See Also:


Attachments
Patch (8.01 KB, patch)
2011-01-04 15:39 PST, Benjamin Poulain
no flags Details | Formatted Diff | Diff
Patch (7.62 KB, patch)
2011-01-04 15:41 PST, Benjamin Poulain
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.