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

Issue 7825024: For Touch: remove some menu items for experimentation, adjust sizes. (Closed)

Created:
9 years, 3 months ago by Emmanuel Saint-loubert-Bié
Modified:
9 years, 3 months ago
Reviewers:
Elliot Glaysher, sky
CC:
chromium-reviews, dhollowa, oshima
Visibility:
Public.

Description

For Touch: remove some menu items for experimentation, adjust sizes. Also removed painting keyboard accelerators. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=99745

Patch Set 1 #

Total comments: 2

Patch Set 2 : Merge #

Patch Set 3 : Split browser and CrOS version of Wrenchmenu #

Patch Set 4 : Added flag to show accelerator or not #

Patch Set 5 : Chanhed comment #

Patch Set 6 : reverted blank line suppression #

Total comments: 2

Patch Set 7 : Split menu building for CrOS is separate module. #

Patch Set 8 : Merge #

Patch Set 9 : using menu config #

Patch Set 10 : Typo #

Total comments: 4

Patch Set 11 : Renamed files #

Patch Set 12 : Merge #

Patch Set 13 : copyright #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -340 lines) Patch
M chrome/browser/ui/toolbar/wrench_menu_model.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +3 lines, -31 lines 0 comments Download
A chrome/browser/ui/toolbar/wrench_menu_model_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +81 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/active_downloads_ui.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/downloads_dom_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
A + chrome/browser/ui/webui/fileicon_source_chromeos.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/browser/ui/webui/fileicon_source_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/webui/fileicon_source_cros.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/browser/ui/webui/fileicon_source_cros.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -256 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +6 lines, -4 lines 0 comments Download
M views/controls/menu/menu_config.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M views/controls/menu/menu_config.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M views/controls/menu/menu_config_linux.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M views/controls/menu/menu_item_view.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -0 lines 0 comments Download
M views/controls/menu/menu_item_view_linux.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
Emmanuel Saint-loubert-Bié
Hi Scott, Adding this code makes me cringe. If you can think of a quick ...
9 years, 3 months ago (2011-09-02 00:23:41 UTC) #1
sky
I don't know if my suggestion for cleaning up WrenchMenuModel will actually make it better. ...
9 years, 3 months ago (2011-09-02 00:43:04 UTC) #2
Emmanuel Saint-loubert-Bié
The one downside of breaking into several files is that it is harder to keep ...
9 years, 3 months ago (2011-09-02 00:58:40 UTC) #3
sky
On Thu, Sep 1, 2011 at 5:58 PM, Emmanuel Saint-loubert <saintlou@chromium.org> wrote: > The one ...
9 years, 3 months ago (2011-09-02 03:37:37 UTC) #4
Emmanuel Saint-loubert-Bié
Hi Scott, For the menu construction separating the Browser and CrOS menus make things a ...
9 years, 3 months ago (2011-09-02 22:19:54 UTC) #5
sky
I like having a wrench_menu_model_chromeos that has the Build method and the build in wrench_menu_model ...
9 years, 3 months ago (2011-09-02 22:28:41 UTC) #6
Emmanuel Saint-loubert-Bié
Cool, will do! -- Emmanuel On Fri, Sep 2, 2011 at 3:28 PM, Scott Violet ...
9 years, 3 months ago (2011-09-02 22:29:19 UTC) #7
sky
http://codereview.chromium.org/7825024/diff/7003/views/controls/menu/menu_item_view.cc File views/controls/menu/menu_item_view.cc (right): http://codereview.chromium.org/7825024/diff/7003/views/controls/menu/menu_item_view.cc#newcode90 views/controls/menu/menu_item_view.cc:90: #ifdef TOUCH_UI This should be in MenuConfig, which is ...
9 years, 3 months ago (2011-09-02 22:30:10 UTC) #8
Emmanuel Saint-loubert-Bié
Made discussed changes http://codereview.chromium.org/7825024/diff/7003/views/controls/menu/menu_item_view.cc File views/controls/menu/menu_item_view.cc (right): http://codereview.chromium.org/7825024/diff/7003/views/controls/menu/menu_item_view.cc#newcode90 views/controls/menu/menu_item_view.cc:90: #ifdef TOUCH_UI Thanks, I did not ...
9 years, 3 months ago (2011-09-02 23:04:37 UTC) #9
sky
LGTM with the following addressed. http://codereview.chromium.org/7825024/diff/11005/chrome/browser/ui/toolbar/wrench_menu_model_cros.cc File chrome/browser/ui/toolbar/wrench_menu_model_cros.cc (right): http://codereview.chromium.org/7825024/diff/11005/chrome/browser/ui/toolbar/wrench_menu_model_cros.cc#newcode1 chrome/browser/ui/toolbar/wrench_menu_model_cros.cc:1: // Copyright (c) 2011 ...
9 years, 3 months ago (2011-09-02 23:12:30 UTC) #10
Emmanuel Saint-loubert-Bié
9 years, 3 months ago (2011-09-02 23:29:01 UTC) #11
Done (and also renamed the other file that lead me the wrong way).

http://codereview.chromium.org/7825024/diff/11005/chrome/browser/ui/toolbar/w...
File chrome/browser/ui/toolbar/wrench_menu_model_cros.cc (right):

http://codereview.chromium.org/7825024/diff/11005/chrome/browser/ui/toolbar/w...
chrome/browser/ui/toolbar/wrench_menu_model_cros.cc:1: // Copyright (c) 2011 The
Chromium Authors. All rights reserved.
Yes I was inspired by a file _cros.cc e.g
chrome/browser/ui/webui/fileicon_source_cros.cc
and you are right there are more with _chromeos

http://codereview.chromium.org/7825024/diff/11005/views/controls/menu/menu_co...
File views/controls/menu/menu_config.cc (right):

http://codereview.chromium.org/7825024/diff/11005/views/controls/menu/menu_co...
views/controls/menu/menu_config.cc:38: show_accelerators = false;
Yes that is better

Powered by Google App Engine
This is Rietveld 408576698