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

Issue 6253017: Pepper/Flapper: First pass at context menu implementation. (Closed)

Created:
9 years, 10 months ago by viettrungluu
Modified:
9 years, 6 months ago
Reviewers:
brettw, piman
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Pepper/Flapper: First pass at context menu implementation. This meets the needs of Flapper. We may want to generalize/restrict/modify the API for inclusion into PPAPI, but hopefully this lays a foundation. BUG=none TEST=Flapper context menus work (with the right version of Flapper) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73193

Patch Set 1 #

Patch Set 2 : style fixes #

Patch Set 3 : fix mock plugin delegate #

Total comments: 2

Patch Set 4 : PPB_Flash: 4 -> 5 #

Total comments: 4

Patch Set 5 : changes per brettw #

Patch Set 6 : oops #

Total comments: 8

Patch Set 7 : more browser-side sanity checking #

Total comments: 1

Patch Set 8 : make brettw happier #

Unified diffs Side-by-side diffs Delta from patch set Stats (+854 lines, -129 lines) Patch
M chrome/browser/renderer_host/pepper_message_filter.h View 1 chunk +22 lines, -22 lines 0 comments Download
M chrome/browser/renderer_host/pepper_message_filter.cc View 1 7 chunks +22 lines, -25 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.h View 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 3 chunks +10 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 7 chunks +109 lines, -51 lines 0 comments Download
M chrome/common/render_messages.h View 3 chunks +10 lines, -1 line 0 comments Download
M chrome/common/render_messages.cc View 1 2 3 4 5 8 chunks +40 lines, -3 lines 0 comments Download
M chrome/common/render_messages_internal.h View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/blocked_plugin.h View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/renderer/blocked_plugin.cc View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/renderer/pepper_plugin_delegate_impl.h View 1 2 3 4 6 chunks +25 lines, -1 line 0 comments Download
M chrome/renderer/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 6 6 chunks +62 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.h View 1 2 3 4 3 chunks +6 lines, -2 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 2 3 4 5 6 2 chunks +13 lines, -4 lines 0 comments Download
M ppapi/c/pp_errors.h View 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M ppapi/c/private/ppb_flash.h View 1 2 3 2 chunks +12 lines, -1 line 0 comments Download
A ppapi/c/private/ppb_flash_menu.h View 1 chunk +57 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_menu.h View 1 chunk +36 lines, -0 lines 0 comments Download
A ppapi/cpp/private/flash_menu.cc View 1 chunk +48 lines, -0 lines 0 comments Download
M ppapi/ppapi_cpp.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/context_menu.h View 2 chunks +13 lines, -0 lines 0 comments Download
M webkit/glue/context_menu.cc View 2 chunks +10 lines, -0 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M webkit/glue/webmenuitem.h View 1 2 3 4 5 6 3 chunks +6 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/mock_plugin_delegate.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 4 chunks +9 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 5 6 3 chunks +4 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 3 chunks +14 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_menu_impl.h View 1 chunk +65 lines, -0 lines 0 comments Download
A webkit/plugins/ppapi/ppb_flash_menu_impl.cc View 1 chunk +223 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/resource.h View 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
viettrungluu
9 years, 10 months ago (2011-01-28 22:32:23 UTC) #1
piman
http://codereview.chromium.org/6253017/diff/5001/ppapi/c/private/ppb_flash.h File ppapi/c/private/ppb_flash.h (right): http://codereview.chromium.org/6253017/diff/5001/ppapi/c/private/ppb_flash.h#newcode22 ppapi/c/private/ppb_flash.h:22: #define PPB_FLASH_INTERFACE "PPB_Flash;4" rev please !
9 years, 10 months ago (2011-01-28 23:00:14 UTC) #2
brettw
http://codereview.chromium.org/6253017/diff/10001/chrome/common/render_messages.cc File chrome/common/render_messages.cc (right): http://codereview.chromium.org/6253017/diff/10001/chrome/common/render_messages.cc#newcode105 chrome/common/render_messages.cc:105: void** iter, Fix indentation. http://codereview.chromium.org/6253017/diff/10001/chrome/renderer/render_view.cc File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/6253017/diff/10001/chrome/renderer/render_view.cc#newcode4723 ...
9 years, 10 months ago (2011-01-29 00:56:52 UTC) #3
viettrungluu
It might even work (I can't test it from home).... http://codereview.chromium.org/6253017/diff/5001/ppapi/c/private/ppb_flash.h File ppapi/c/private/ppb_flash.h (right): http://codereview.chromium.org/6253017/diff/5001/ppapi/c/private/ppb_flash.h#newcode22 ...
9 years, 10 months ago (2011-01-29 21:49:13 UTC) #4
brettw
http://codereview.chromium.org/6253017/diff/16033/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/6253017/diff/16033/chrome/browser/tab_contents/render_view_context_menu.cc#newcode122 chrome/browser/tab_contents/render_view_context_menu.cc:122: menu_model->AddSubMenu( I would like to see some protection against ...
9 years, 10 months ago (2011-01-31 18:19:49 UTC) #5
viettrungluu
http://codereview.chromium.org/6253017/diff/16033/chrome/browser/tab_contents/render_view_context_menu.cc File chrome/browser/tab_contents/render_view_context_menu.cc (right): http://codereview.chromium.org/6253017/diff/16033/chrome/browser/tab_contents/render_view_context_menu.cc#newcode122 chrome/browser/tab_contents/render_view_context_menu.cc:122: menu_model->AddSubMenu( On 2011/01/31 18:19:49, brettw wrote: > I would ...
9 years, 10 months ago (2011-01-31 19:01:40 UTC) #6
viettrungluu
New patch up; take another look? http://codereview.chromium.org/6253017/diff/16033/webkit/glue/webmenuitem.h File webkit/glue/webmenuitem.h (right): http://codereview.chromium.org/6253017/diff/16033/webkit/glue/webmenuitem.h#newcode21 webkit/glue/webmenuitem.h:21: // TODO(viettrungluu): This ...
9 years, 10 months ago (2011-01-31 20:31:14 UTC) #7
brettw
9 years, 10 months ago (2011-01-31 20:40:48 UTC) #8
LGTM stop bugging me.

http://codereview.chromium.org/6253017/diff/16034/chrome/browser/tab_contents...
File chrome/browser/tab_contents/render_view_context_menu.cc (right):

http://codereview.chromium.org/6253017/diff/16034/chrome/browser/tab_contents...
chrome/browser/tab_contents/render_view_context_menu.cc:153: void
AddCustomItemsToMenu(const std::vector<WebMenuItem>& items,
It seems like this is unnecessary.

Powered by Google App Engine
This is Rietveld 408576698