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

Issue 6931039: Add MenuItemView API to add and remove items at a particular index. (Closed)

Created:
9 years, 7 months ago by rhashimoto
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Emmanuel Saint-loubert-Bié
Visibility:
Public.

Description

Add MenuItemView API to add and remove items at a particular index. The ChromeOS network menu needs to be able to change menu items dynamically. In order to convert this menu from Menu2 to MenuItemView it is cleanest to let MenuItemView own the code to modify the items. BUG=none TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=85313

Patch Set 1 #

Patch Set 2 : Use CreateEventTask, fix Windows compile error. #

Patch Set 3 : Fixed another spurious OVERRIDE. #

Total comments: 19

Patch Set 4 : Remove debugging delay parameter. #

Patch Set 5 : Trial fix for enlarged menu flakiness. #

Patch Set 6 : Implement testing workaround for GTK race. #

Patch Set 7 : Rework based on sky's recommendations. #

Patch Set 8 : Rebase to trunk. #

Total comments: 12

Patch Set 9 : Moved test to chrome/browser/ui/views. Implemented reviewer recommendations. #

Patch Set 10 : Fixed indentation in test code. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+598 lines, -41 lines) Patch
A chrome/browser/ui/views/menu_item_view_test.cc View 1 2 3 4 5 6 7 8 9 1 chunk +505 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -0 lines 0 comments Download
M views/controls/menu/menu_controller.cc View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -10 lines 0 comments Download
M views/controls/menu/menu_item_view.h View 1 2 3 4 5 6 7 3 chunks +18 lines, -1 line 0 comments Download
M views/controls/menu/menu_item_view.cc View 1 2 3 4 5 6 7 5 chunks +59 lines, -30 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
rhashimoto
This is a proposal to add AddMenuItemAt() and RemoveMenuItemAt() methods to MenuItemView. There is an ...
9 years, 7 months ago (2011-05-06 00:47:21 UTC) #1
Paweł Hajdan Jr.
Drive-by with testing comments (consult chrome/test/OWNERS if in doubt). http://codereview.chromium.org/6931039/diff/4002/chrome/test/menu_item_view_test.cc File chrome/test/menu_item_view_test.cc (right): http://codereview.chromium.org/6931039/diff/4002/chrome/test/menu_item_view_test.cc#newcode7 chrome/test/menu_item_view_test.cc:7: ...
9 years, 7 months ago (2011-05-06 08:11:03 UTC) #2
rhashimoto
Thanks for the helpful feedback, Paweł. I'll adopt most of your notes later, but I ...
9 years, 7 months ago (2011-05-06 16:04:34 UTC) #3
sky
bookmark_bar_view_test runs at full speed. You should investigate what is different about your tests that ...
9 years, 7 months ago (2011-05-06 16:17:00 UTC) #4
Paweł Hajdan Jr.
On 2011/05/06 16:04:34, rhashimoto wrote: > Ah, I was wondering about this. The code being ...
9 years, 7 months ago (2011-05-06 18:56:52 UTC) #5
rhashimoto
On 2011/05/06 18:56:52, Paweł Hajdan Jr. wrote: > If the tested code is under > ...
9 years, 7 months ago (2011-05-10 00:20:33 UTC) #6
Paweł Hajdan Jr.
On 2011/05/10 00:20:33, rhashimoto wrote: > There are two sources of flakiness with GTK. The ...
9 years, 7 months ago (2011-05-10 07:35:12 UTC) #7
oshima
On 2011/05/10 07:35:12, Paweł Hajdan Jr. wrote: > On 2011/05/10 00:20:33, rhashimoto wrote: > > ...
9 years, 7 months ago (2011-05-10 07:58:33 UTC) #8
rhashimoto
On 2011/05/10 07:58:33, oshima wrote: > There is an issue with interactive_ui_tests/ui_controls on linux/gtk where ...
9 years, 7 months ago (2011-05-10 16:17:43 UTC) #9
sky
Tue, May 10, 2011 at 12:58 AM, <oshima@chromium.org> wrote: > On 2011/05/10 07:35:12, Paweł Hajdan ...
9 years, 7 months ago (2011-05-10 16:35:04 UTC) #10
oshima
On Tue, May 10, 2011 at 9:34 AM, Scott Violet <sky@chromium.org> wrote: > Tue, May ...
9 years, 7 months ago (2011-05-10 16:43:46 UTC) #11
wyck
I have been testing this extensively and I've determined that this is relevant to the ...
9 years, 7 months ago (2011-05-10 17:24:21 UTC) #12
rhashimoto
Hi Scott - Do you have a recommendation on where the test should go in ...
9 years, 7 months ago (2011-05-11 00:44:53 UTC) #13
oshima
On Tue, May 10, 2011 at 10:24 AM, <wyck@chromium.org> wrote: > I have been testing ...
9 years, 7 months ago (2011-05-11 00:58:58 UTC) #14
sky
For now put the test in chrome/browser/ui/views. It's not the best place, but your test ...
9 years, 7 months ago (2011-05-11 14:26:10 UTC) #15
rhashimoto
http://codereview.chromium.org/6931039/diff/21002/chrome/test/menu_item_view_test.cc File chrome/test/menu_item_view_test.cc (right): http://codereview.chromium.org/6931039/diff/21002/chrome/test/menu_item_view_test.cc#newcode33 chrome/test/menu_item_view_test.cc:33: MenuItemViewTestBase() : ViewEventTestBase(), On 2011/05/11 14:26:10, sky wrote: > ...
9 years, 7 months ago (2011-05-11 19:41:07 UTC) #16
sky
9 years, 7 months ago (2011-05-11 20:30:10 UTC) #17
LGTM

Powered by Google App Engine
This is Rietveld 408576698