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

Issue 10837317: Setting the touch wrench menu as default menu for ChromeOS (Closed)

Created:
8 years, 4 months ago by Mr4D (OOO till 08-26)
Modified:
8 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

The touch menu for ChromeOS will be used for all flavors of ChromeOS while other operating systems should stay as they are. Furthermore changed according to specifications which can be seen in the issue. Cleaned up the menu separator constants. BUG=137345 TEST=visually checked Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153157

Patch Set 1 #

Patch Set 2 : #

Total comments: 3

Patch Set 3 : Addressed review #

Total comments: 28

Patch Set 4 : Addressed second review #

Total comments: 25

Patch Set 5 : Addressed review #

Total comments: 1

Patch Set 6 : Fixed build problems #

Total comments: 2

Patch Set 7 : More build problems #

Patch Set 8 : Windows build issue #

Patch Set 9 : Build targets cont #

Patch Set 10 : Merged with changes #

Patch Set 11 : Still build problems: Removed const from function since linux_clang didn't like that #

Total comments: 2

Patch Set 12 : Removed "global" IsNewMenu function #

Patch Set 13 : Removed header #

Patch Set 14 : One more Mac specific build problem #

Patch Set 15 : Fixed another unit test #

Patch Set 16 : And another merge! #

Unified diffs Side-by-side diffs Delta from patch set Stats (+323 lines, -225 lines) Patch
M chrome/browser/background/background_mode_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/bookmarks/bookmark_context_menu_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/download/download_shelf_context_menu.cc View 1 2 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_model.cc View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/media/media_stream_devices_menu_model.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/notifications/notification_options_menu_model.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 5 6 7 8 9 17 chunks +19 lines, -19 lines 0 comments Download
M chrome/browser/tab_contents/spellchecker_submenu_observer_hunspell.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/spellchecker_submenu_observer_mac.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/translate/options_menu_model.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/ash/app_list/extension_app_item.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/ash/launcher/launcher_context_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/menu_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/tab_contents/render_view_context_menu_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/gtk/bookmarks/bookmark_sub_menu_model_gtk.cc View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/gtk/browser_titlebar.cc View 1 2 3 4 5 3 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/tabs/tab_menu_model.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/action_box_menu_model.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/back_forward_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/bookmark_sub_menu_model.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.h View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 14 chunks +36 lines, -26 lines 0 comments Download
M chrome/browser/ui/toolbar/wrench_menu_model_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_aura.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame_win.cc View 1 2 3 4 5 5 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/menu_item_view_test.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/menu_model_adapter_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/omnibox/omnibox_view_win.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/wrench_menu.cc View 1 2 3 4 5 6 7 8 9 10 11 14 chunks +32 lines, -67 lines 0 comments Download
M ui/base/models/menu_model.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
A ui/base/models/menu_separator_types.h View 1 2 3 4 1 chunk +24 lines, -0 lines 0 comments Download
M ui/base/models/simple_menu_model.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -2 lines 0 comments Download
M ui/base/models/simple_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 chunks +31 lines, -15 lines 0 comments Download
M ui/base/native_theme/native_theme_aura.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/menu/menu_config.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +10 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_config.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_config_views.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -7 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.h View 1 2 3 4 3 chunks +5 lines, -2 lines 0 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 2 3 4 5 6 7 8 9 6 chunks +29 lines, -17 lines 0 comments Download
M ui/views/controls/menu/menu_model_adapter_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_separator.h View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M ui/views/controls/menu/menu_separator_views.cc View 1 2 3 4 1 chunk +25 lines, -3 lines 0 comments Download
M ui/views/controls/textfield/native_textfield_views.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/textfield/native_textfield_win.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/examples/menu_example.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M ui/views/view_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Mr4D (OOO till 08-26)
Please have a look!
8 years, 4 months ago (2012-08-18 02:53:33 UTC) #1
sky
http://codereview.chromium.org/10837317/diff/3001/ui/base/models/menu_model.h File ui/base/models/menu_model.h (right): http://codereview.chromium.org/10837317/diff/3001/ui/base/models/menu_model.h#newcode40 ui/base/models/menu_model.h:40: static const string16 NORMAL_SEPARATOR; This should be an enum. ...
8 years, 4 months ago (2012-08-20 15:58:17 UTC) #2
Mr4D (OOO till 08-26)
Addressed. Have a look. http://codereview.chromium.org/10837317/diff/3001/ui/base/models/simple_menu_model.cc File ui/base/models/simple_menu_model.cc (right): http://codereview.chromium.org/10837317/diff/3001/ui/base/models/simple_menu_model.cc#newcode87 ui/base/models/simple_menu_model.cc:87: Item item = { kSeparatorId, ...
8 years, 4 months ago (2012-08-21 01:13:18 UTC) #3
sky
http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h File ui/base/models/menu_model.h (right): http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h#newcode62 ui/base/models/menu_model.h:62: virtual ui::MenuSeparatorStyle GetSeparatorStyleAt(int index) const = 0; Why put ...
8 years, 4 months ago (2012-08-21 03:03:25 UTC) #4
sky
http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h File ui/base/models/menu_model.h (right): http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h#newcode62 ui/base/models/menu_model.h:62: virtual ui::MenuSeparatorStyle GetSeparatorStyleAt(int index) const = 0; On 2012/08/21 ...
8 years, 4 months ago (2012-08-21 15:27:55 UTC) #5
Mr4D (OOO till 08-26)
Addressed. Have another look. http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h File ui/base/models/menu_model.h (right): http://codereview.chromium.org/10837317/diff/1035/ui/base/models/menu_model.h#newcode62 ui/base/models/menu_model.h:62: virtual ui::MenuSeparatorStyle GetSeparatorStyleAt(int index) const ...
8 years, 4 months ago (2012-08-21 15:37:15 UTC) #6
sky
http://codereview.chromium.org/10837317/diff/1035/ui/base/models/simple_menu_model.cc File ui/base/models/simple_menu_model.cc (right): http://codereview.chromium.org/10837317/diff/1035/ui/base/models/simple_menu_model.cc#newcode85 ui/base/models/simple_menu_model.cc:85: #if defined(OS_WINDOWS) On 2012/08/21 15:37:16, Mr4D wrote: > Actually ...
8 years, 4 months ago (2012-08-21 19:36:29 UTC) #7
Mr4D (OOO till 08-26)
Addressed. Please have another look! http://codereview.chromium.org/10837317/diff/1035/ui/base/models/simple_menu_model.cc File ui/base/models/simple_menu_model.cc (right): http://codereview.chromium.org/10837317/diff/1035/ui/base/models/simple_menu_model.cc#newcode85 ui/base/models/simple_menu_model.cc:85: #if defined(OS_WINDOWS) No - ...
8 years, 4 months ago (2012-08-21 21:34:54 UTC) #8
sky
Now I'm a bit confused by your changes. Some of them will effect windows when ...
8 years, 4 months ago (2012-08-21 22:35:22 UTC) #9
sky
http://codereview.chromium.org/10837317/diff/11013/ui/views/controls/menu/menu_config.cc File ui/views/controls/menu/menu_config.cc (right): http://codereview.chromium.org/10837317/diff/11013/ui/views/controls/menu/menu_config.cc#newcode47 ui/views/controls/menu/menu_config.cc:47: #if defined (OS_WIN) THIS IS WRONG! YOU DON"T NEED ...
8 years, 4 months ago (2012-08-21 22:53:32 UTC) #10
Mr4D (OOO till 08-26)
Added. As wished. Getting the buildbots building everything now and asked Carlos to build it ...
8 years, 4 months ago (2012-08-21 23:16:01 UTC) #11
sky
http://codereview.chromium.org/10837317/diff/26002/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): http://codereview.chromium.org/10837317/diff/26002/chrome/browser/ui/toolbar/wrench_menu_model.cc#newcode59 chrome/browser/ui/toolbar/wrench_menu_model.cc:59: #include "ui/views/controls/menu/menu_config.h" This is views specific, so you'll need ...
8 years, 4 months ago (2012-08-23 16:58:51 UTC) #12
Mr4D (OOO till 08-26)
Done. http://codereview.chromium.org/10837317/diff/26002/chrome/browser/ui/toolbar/wrench_menu_model.cc File chrome/browser/ui/toolbar/wrench_menu_model.cc (right): http://codereview.chromium.org/10837317/diff/26002/chrome/browser/ui/toolbar/wrench_menu_model.cc#newcode59 chrome/browser/ui/toolbar/wrench_menu_model.cc:59: #include "ui/views/controls/menu/menu_config.h" On 2012/08/23 16:58:51, sky wrote: > ...
8 years, 4 months ago (2012-08-23 17:46:31 UTC) #13
sky
As long as you verified this is what we want on windows too: LGTM
8 years, 4 months ago (2012-08-23 19:59:17 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10837317/17013
8 years, 4 months ago (2012-08-23 21:31:45 UTC) #15
commit-bot: I haz the power
Try job failure for 10837317-17013 (retry) on linux_chromeos for step "unit_tests". It's a second try, ...
8 years, 4 months ago (2012-08-23 23:30:21 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10837317/14089
8 years, 4 months ago (2012-08-23 23:31:12 UTC) #17
commit-bot: I haz the power
Failed to apply patch for chrome/browser/ui/ash/launcher/launcher_context_menu.cc: While running patch -p1 --forward --force; patching file chrome/browser/ui/ash/launcher/launcher_context_menu.cc ...
8 years, 4 months ago (2012-08-23 23:31:30 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skuhne@chromium.org/10837317/18014
8 years, 4 months ago (2012-08-24 00:15:22 UTC) #19
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 04:29:12 UTC) #20
Change committed as 153157

Powered by Google App Engine
This is Rietveld 408576698