Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(118)

Issue 7167002: Convert RenderViewContextMenu to MenuItemView. (Closed)

Created:
9 years, 6 months ago by rhashimoto
Modified:
9 years, 5 months ago
CC:
chromium-reviews, Avi (use Gerrit), amit, brettw-cc_chromium.org, Emmanuel Saint-loubert-BiƩ
Visibility:
Public.

Description

Convert RenderViewContextMenu to MenuItemView. This CL is part of general GTK removal for ChromiumOS. Menu2 uses GTK on linux so we are replacing it with MenuItemView. Chrome Frame currently passes the context menu between processes by using the HMENU. Because MenuItemView does not use HMENU, we need to use another mechanism. This CL creates a ContextMenuModel struct that is serialized into an automation message for Chrome Frame. ContextMenuModel contains the context menu definition in-band replacing the out-of-band HMENU. BUG=chromium-os:13887 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=92182

Patch Set 1 #

Patch Set 2 : Handle all menu item types, pass enabled and checked states. #

Patch Set 3 : Don't pass invisible menu items. #

Patch Set 4 : Remove unused utility function. #

Total comments: 10

Patch Set 5 : Implement reviewer recommendations. #

Patch Set 6 : Fixed test build. #

Patch Set 7 : Remove unnecessary #include. #

Patch Set 8 : clang build fix. #

Total comments: 6

Patch Set 9 : Implement reviewer recommendations. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -96 lines) Patch
M chrome/browser/external_tab_container_win.cc View 1 2 3 4 5 3 chunks +35 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h View 1 2 3 4 5 3 chunks +7 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/tab_contents/render_view_context_menu_views.cc View 3 chunks +10 lines, -20 lines 0 comments Download
M chrome/common/automation_messages.h View 1 2 3 4 5 6 7 8 3 chunks +47 lines, -0 lines 0 comments Download
M chrome/common/automation_messages.cc View 1 2 3 4 5 6 7 8 3 chunks +98 lines, -0 lines 0 comments Download
M chrome/common/automation_messages_internal.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome_frame/cfproxy.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome_frame/chrome_frame_activex_base.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome_frame/chrome_frame_delegate.h View 2 chunks +3 lines, -1 line 0 comments Download
M chrome_frame/chrome_frame_plugin.h View 1 2 3 4 5 3 chunks +7 lines, -10 lines 0 comments Download
M chrome_frame/external_tab.h View 1 2 3 4 5 3 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/external_tab.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome_frame/external_tab_test.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome_frame/utils.h View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome_frame/utils.cc View 1 2 3 4 5 3 chunks +52 lines, -45 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
rhashimoto
Hi Amit and Ananta - I've decided to create a new automation message struct, ContextMenuModel, ...
9 years, 6 months ago (2011-06-14 23:51:16 UTC) #1
rhashimoto
Hi Amit and Ananta - I think this may be ready for review. I'm not ...
9 years, 6 months ago (2011-06-17 18:36:07 UTC) #2
ananta
I just reviewed the ChromeFrame specific portion. Just a few comments. http://codereview.chromium.org/7167002/diff/10001/chrome/common/automation_messages.h File chrome/common/automation_messages.h (right): ...
9 years, 6 months ago (2011-06-17 19:03:37 UTC) #3
rhashimoto
http://codereview.chromium.org/7167002/diff/10001/chrome/common/automation_messages.h File chrome/common/automation_messages.h (right): http://codereview.chromium.org/7167002/diff/10001/chrome/common/automation_messages.h#newcode152 chrome/common/automation_messages.h:152: struct ContextMenuModel { On 2011/06/17 19:03:38, ananta wrote: > ...
9 years, 6 months ago (2011-06-17 23:34:36 UTC) #4
rhashimoto
+sky for reviewing changes to RenderViewContextMenu/RenderViewContextMenuViews amit, ananta: Any guidance on try jobs, logging, and ...
9 years, 6 months ago (2011-06-21 23:09:02 UTC) #5
sky
LGTM
9 years, 6 months ago (2011-06-21 23:37:03 UTC) #6
rhashimoto
amit, ananta: ping Thanks, Roy
9 years, 6 months ago (2011-06-23 15:28:10 UTC) #7
rhashimoto
amit, ananta: ping If there's someone else better suited for these questions, please feel free ...
9 years, 5 months ago (2011-06-28 23:37:28 UTC) #8
rhashimoto
amit, ananta: This CL is ready for your review of the Chrome Frame portions. chrome_frame_tests.exe ...
9 years, 5 months ago (2011-07-08 22:11:18 UTC) #9
iyengar
ChromeFrame code LGTM http://codereview.chromium.org/7167002/diff/25001/chrome/common/automation_messages.cc File chrome/common/automation_messages.cc (right): http://codereview.chromium.org/7167002/diff/25001/chrome/common/automation_messages.cc#newcode678 chrome/common/automation_messages.cc:678: size_t item_count; initialize to 0?. Easier ...
9 years, 5 months ago (2011-07-11 22:09:17 UTC) #10
rhashimoto
http://codereview.chromium.org/7167002/diff/25001/chrome/common/automation_messages.cc File chrome/common/automation_messages.cc (right): http://codereview.chromium.org/7167002/diff/25001/chrome/common/automation_messages.cc#newcode678 chrome/common/automation_messages.cc:678: size_t item_count; On 2011/07/11 22:09:17, iyengar wrote: > initialize ...
9 years, 5 months ago (2011-07-11 22:38:58 UTC) #11
commit-bot: I haz the power
9 years, 5 months ago (2011-07-12 16:54:15 UTC) #12
Change committed as 92182

Powered by Google App Engine
This is Rietveld 408576698