Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Issue 5639004: Implement a useful context menu for the blocked plug-in frame:... (Closed)

Created:
10 years ago by Chris Evans
Modified:
9 years, 6 months ago
CC:
chromium-reviews, jam, darin-cc_chromium.org, stuartmorgan+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Implement a useful context menu for the blocked plug-in frame: - Offers option to run plugin (clickjack-proof). - Offers option to hide blocking placeholder. - Retains Inspect Element; it's also useful to see the <embed>. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=68719

Patch Set 1 #

Total comments: 15

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -5 lines) Patch
M chrome/app/generated_resources.grd View 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/renderer/blocked_plugin.h View 1 2 3 4 5 6 7 4 chunks +12 lines, -1 line 0 comments Download
M chrome/renderer/blocked_plugin.cc View 1 2 3 4 5 chunks +65 lines, -2 lines 0 comments Download
A chrome/renderer/custom_menu_listener.h View 1 2 3 4 5 6 7 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 5 6 7 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 chunks +16 lines, -2 lines 0 comments Download
M webkit/glue/plugins/webview_plugin.h View 1 2 3 2 chunks +6 lines, -0 lines 0 comments Download
M webkit/glue/plugins/webview_plugin.cc View 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Chris Evans
Finally got it working to my satisfaction :)
10 years ago (2010-12-07 01:48:59 UTC) #1
brettw
In the future please be sure to add somebody who's an expert on RenderView when ...
10 years ago (2010-12-07 06:23:56 UTC) #2
Chris Evans
Thanks for the review, Brett. Got it re: render_view. http://codereview.chromium.org/5639004/diff/1/chrome/renderer/blocked_plugin.cc File chrome/renderer/blocked_plugin.cc (right): http://codereview.chromium.org/5639004/diff/1/chrome/renderer/blocked_plugin.cc#newcode92 chrome/renderer/blocked_plugin.cc:92: ...
10 years ago (2010-12-07 15:36:14 UTC) #3
cevans
On Tue, Dec 7, 2010 at 7:36 AM, <cevans@chromium.org> wrote: > Thanks for the review, ...
10 years ago (2010-12-07 15:41:40 UTC) #4
brettw
> Ah, I see that gcc accepts > namespace WebKit { > struct WebMouseEvent; > ...
10 years ago (2010-12-07 16:44:17 UTC) #5
brettw
http://codereview.chromium.org/5639004/diff/1/chrome/renderer/blocked_plugin.cc File chrome/renderer/blocked_plugin.cc (right): http://codereview.chromium.org/5639004/diff/1/chrome/renderer/blocked_plugin.cc#newcode93 chrome/renderer/blocked_plugin.cc:93: WebVector<WebMenuItemInfo> customItems(static_cast<size_t>(4)); 4u should be OK. size_t is equal ...
10 years ago (2010-12-07 16:53:51 UTC) #6
Bernhard Bauer
http://codereview.chromium.org/5639004/diff/19001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/5639004/diff/19001/chrome/renderer/render_view.cc#newcode812 chrome/renderer/render_view.cc:812: plugin_menu_event_listener_ = listening; I'm not happy that we add ...
10 years ago (2010-12-07 17:03:32 UTC) #7
cevans
On Tue, Dec 7, 2010 at 8:44 AM, <brettw@chromium.org> wrote: > Ah, I see that ...
10 years ago (2010-12-07 21:12:37 UTC) #8
cevans
On Tue, Dec 7, 2010 at 8:53 AM, <brettw@chromium.org> wrote: > > > http://codereview.chromium.org/5639004/diff/1/chrome/renderer/blocked_plugin.cc > ...
10 years ago (2010-12-07 21:20:10 UTC) #9
cevans
On Tue, Dec 7, 2010 at 9:03 AM, <bauerb@chromium.org> wrote: > > > http://codereview.chromium.org/5639004/diff/19001/chrome/renderer/render_view.cc > ...
10 years ago (2010-12-07 21:35:10 UTC) #10
Bernhard Bauer
On Tue, Dec 7, 2010 at 22:35, Chris Evans <cevans@google.com> wrote: > On Tue, Dec ...
10 years ago (2010-12-07 23:48:09 UTC) #11
cevans
On Tue, Dec 7, 2010 at 3:47 PM, Bernhard Bauer <bauerb@chromium.org> wrote: > On Tue, ...
10 years ago (2010-12-08 02:00:53 UTC) #12
brettw
On Tue, Dec 7, 2010 at 1:20 PM, Chris Evans <cevans@google.com> wrote: > 4u does ...
10 years ago (2010-12-08 06:58:48 UTC) #13
brettw
On Tue, Dec 7, 2010 at 3:47 PM, Bernhard Bauer <bauerb@chromium.org> wrote: > On Tue, ...
10 years ago (2010-12-08 07:06:17 UTC) #14
brettw
This is a lot nicer. We can re-use this for Pepper plugin context menus in ...
10 years ago (2010-12-08 07:20:13 UTC) #15
Chris Evans
Thanks! http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/custommenulistener.h File chrome/renderer/custommenulistener.h (right): http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/custommenulistener.h#newcode5 chrome/renderer/custommenulistener.h:5: #ifndef CHROME_RENDERER_CUSTOMMENULISTENER_H_ On 2010/12/08 07:20:13, brettw wrote: > ...
10 years ago (2010-12-08 16:33:52 UTC) #16
Bernhard Bauer
10 years ago (2010-12-09 08:52:17 UTC) #17
 LGTM, sorry for the holdup.

On Wed, Dec 8, 2010 at 17:33,  <cevans@chromium.org> wrote:
> Thanks!
>
>
>
http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/custommenul...
> File chrome/renderer/custommenulistener.h (right):
>
>
http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/custommenul...
> chrome/renderer/custommenulistener.h:5: #ifndef
> CHROME_RENDERER_CUSTOMMENULISTENER_H_
> On 2010/12/08 07:20:13, brettw wrote:
>>
>> We would normally name this file (and the define) with underscores
>
> like:
>>
>> custom_menu_listener.h / ..._CUSTOM_MENU_LISTENER_H_
>
> Done.
>
>
http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/render_view.h
> File chrome/renderer/render_view.h (right):
>
>
http://codereview.chromium.org/5639004/diff/52001/chrome/renderer/render_view...
> chrome/renderer/render_view.h:342: // context menu events.
> On 2010/12/08 07:20:13, brettw wrote:
>>
>> Can you add a quick extra sentence here about how to show a context
>
> menu. I'm
>>
>> thinking like "To show a manu call chowContextMenu and then
>
> immediately
>>
>> afterward call CustomMenuListenerInstall to install yourself as the
>
> receiver for
>>
>> the the asynchronous reply."
>
> Done.
>
> http://codereview.chromium.org/5639004/
>

Powered by Google App Engine
This is Rietveld 408576698