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

Issue 11083002: Allow custom context menus to be requested. (Closed)

Created:
8 years, 2 months ago by brettw
Modified:
8 years, 2 months ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org
Visibility:
Public.

Description

Allow custom context menus to be requested. This allows external users to request that a render view show a context menu. This mostly exposes is a reaonsable interface the existing functionality, and removes the pepper-plugin-delegate-specific hacks. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=161703

Patch Set 1 #

Total comments: 5

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+170 lines, -104 lines) Patch
M chrome/renderer/plugins/plugin_placeholder.h View 1 4 chunks +8 lines, -2 lines 0 comments Download
M chrome/renderer/plugins/plugin_placeholder.cc View 1 2 6 chunks +34 lines, -30 lines 0 comments Download
M content/content_renderer.gypi View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/public/renderer/context_menu_client.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
M content/public/renderer/render_view.h View 1 2 chunks +13 lines, -4 lines 0 comments Download
M content/public/renderer/render_view_observer.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.h View 1 6 chunks +11 lines, -12 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 3 chunks +28 lines, -42 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 2 chunks +17 lines, -2 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 3 chunks +24 lines, -11 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
brettw
I was working on much more involved cleanup of the context menu stuff but I ...
8 years, 2 months ago (2012-10-08 05:20:05 UTC) #1
jam
lgtm https://codereview.chromium.org/11083002/diff/1/content/public/renderer/context_menu_client.h File content/public/renderer/context_menu_client.h (right): https://codereview.chromium.org/11083002/diff/1/content/public/renderer/context_menu_client.h#newcode22 content/public/renderer/context_menu_client.h:22: virtual void OnCustomContextMenuAction(int request_id, unsigned action) = 0; ...
8 years, 2 months ago (2012-10-10 04:01:43 UTC) #2
brettw
8 years, 2 months ago (2012-10-10 05:10:17 UTC) #3
https://codereview.chromium.org/11083002/diff/1/content/public/renderer/conte...
File content/public/renderer/context_menu_client.h (right):

https://codereview.chromium.org/11083002/diff/1/content/public/renderer/conte...
content/public/renderer/context_menu_client.h:22: virtual void
OnCustomContextMenuAction(int request_id, unsigned action) = 0;
I was originally thinking this would be implemented by some big classes where it
might get confusing, but it seems OK. Done.

https://codereview.chromium.org/11083002/diff/1/content/renderer/render_view_...
File content/renderer/render_view_impl.cc (right):

https://codereview.chromium.org/11083002/diff/1/content/renderer/render_view_...
content/renderer/render_view_impl.cc:6286: if (client) {
Removed, this was leftover from a previous version of the code.

Powered by Google App Engine
This is Rietveld 408576698