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

Issue 7541002: Make NetworkMenuModel a ui::MenuModel again. (Closed)

Created:
9 years, 4 months ago by rhashimoto
Modified:
9 years, 4 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org
Visibility:
Public.

Description

Make NetworkMenuModel a ui::MenuModel again. This is a necessary refactoring to a single menu model to define both views menu and WebUI menu. BUG=chromium-os:17892 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=95244

Patch Set 1 #

Patch Set 2 : Fix menu item vertical margins. #

Patch Set 3 : Invalidate MenuItemView GetPreferredSize() cache on margin change. #

Patch Set 4 : Remove NOTREACHED() that can be reached. #

Patch Set 5 : Better fix for NOTREACHED(). #

Total comments: 4

Patch Set 6 : Implemented reviewer suggestions. #

Total comments: 4

Patch Set 7 : Fix style and lint issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+499 lines, -157 lines) Patch
M chrome/browser/chromeos/status/network_menu.h View 1 2 3 4 5 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/chromeos/status/network_menu.cc View 1 2 3 4 5 20 chunks +99 lines, -149 lines 0 comments Download
A chrome/browser/ui/views/menu_model_adapter_test.cc View 1 2 3 4 5 6 1 chunk +372 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 3 chunks +3 lines, -0 lines 0 comments Download
M views/controls/menu/menu_item_view.h View 1 2 3 4 5 1 chunk +1 line, -4 lines 0 comments Download
M views/controls/menu/menu_item_view.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 0 comments Download
M views/controls/menu/menu_model_adapter.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M views/controls/menu/menu_model_adapter.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
rhashimoto
9 years, 4 months ago (2011-08-02 15:34:21 UTC) #1
sky
http://codereview.chromium.org/7541002/diff/3004/views/controls/menu/menu_item_view.h File views/controls/menu/menu_item_view.h (left): http://codereview.chromium.org/7541002/diff/3004/views/controls/menu/menu_item_view.h#oldcode325 views/controls/menu/menu_item_view.h:325: void set_margins(int top_margin, int bottom_margin) { SetMargins http://codereview.chromium.org/7541002/diff/3004/views/controls/menu/menu_model_adapter.cc File ...
9 years, 4 months ago (2011-08-02 15:54:55 UTC) #2
rhashimoto
http://codereview.chromium.org/7541002/diff/3004/views/controls/menu/menu_item_view.h File views/controls/menu/menu_item_view.h (left): http://codereview.chromium.org/7541002/diff/3004/views/controls/menu/menu_item_view.h#oldcode325 views/controls/menu/menu_item_view.h:325: void set_margins(int top_margin, int bottom_margin) { On 2011/08/02 15:54:56, ...
9 years, 4 months ago (2011-08-02 23:04:07 UTC) #3
sky
LGTM http://codereview.chromium.org/7541002/diff/9001/chrome/browser/ui/views/menu_model_adapter_test.cc File chrome/browser/ui/views/menu_model_adapter_test.cc (right): http://codereview.chromium.org/7541002/diff/9001/chrome/browser/ui/views/menu_model_adapter_test.cc#newcode143 chrome/browser/ui/views/menu_model_adapter_test.cc:143: SubMenuModel() : : on next line. http://codereview.chromium.org/7541002/diff/9001/chrome/browser/ui/views/menu_model_adapter_test.cc#newcode179 chrome/browser/ui/views/menu_model_adapter_test.cc:179: ...
9 years, 4 months ago (2011-08-02 23:08:12 UTC) #4
rhashimoto
Hi Nikita - Sorry I couldn't get this landed today - I got hung up ...
9 years, 4 months ago (2011-08-02 23:53:36 UTC) #5
rhashimoto
Hi Nikita - The trybots are green...but the tree is red. If you need to ...
9 years, 4 months ago (2011-08-03 03:45:08 UTC) #6
Nikita (slow)
Thanks! I've toggled commit checkbox for this CL.
9 years, 4 months ago (2011-08-03 12:13:31 UTC) #7
commit-bot: I haz the power
List of reviewers changed.
9 years, 4 months ago (2011-08-03 13:41:24 UTC) #8
Nikita (slow)
LGTM
9 years, 4 months ago (2011-08-03 14:16:26 UTC) #9
commit-bot: I haz the power
9 years, 4 months ago (2011-08-03 15:45:03 UTC) #10
Change committed as 95244

Powered by Google App Engine
This is Rietveld 408576698