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

Issue 8511003: Fix to correctly set accessible name of menu item when there is only one child and title is empty (Closed)

Created:
9 years, 1 month ago by hashimoto
Modified:
9 years, 1 month ago
Reviewers:
dmazzoni, sky
CC:
chromium-reviews, tfarina, dhollowa
Visibility:
Public.

Description

Fix to correctly set accessible name of menu item when there is only one child and title is empty BUG=chromium-os:22051 TEST=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109799

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add MenuItemView::IsFirstChildToTakeOver #

Total comments: 2

Patch Set 3 : Changed the method name from IsFirstChildToTakeOver from FirstChildTakesOver #

Total comments: 2

Patch Set 4 : Changed the method name from FirstChildTakesOver to IsContainer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -10 lines) Patch
M views/controls/menu/menu_item_view.h View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M views/controls/menu/menu_item_view.cc View 1 2 3 6 chunks +24 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
hashimoto
9 years, 1 month ago (2011-11-09 10:09:22 UTC) #1
dmazzoni
+sky for approval. I think this might be useful code if we have more than ...
9 years, 1 month ago (2011-11-09 14:43:20 UTC) #2
sky
http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc File views/controls/menu/menu_item_view.cc (right): http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc#newcode144 views/controls/menu/menu_item_view.cc:144: if (child_count() == 1 && title_.empty()) { This seems ...
9 years, 1 month ago (2011-11-09 15:11:36 UTC) #3
dmazzoni
http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc File views/controls/menu/menu_item_view.cc (right): http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc#newcode144 views/controls/menu/menu_item_view.cc:144: if (child_count() == 1 && title_.empty()) { On 2011/11/09 ...
9 years, 1 month ago (2011-11-09 15:50:20 UTC) #4
sky
On Wed, Nov 9, 2011 at 7:50 AM, <dmazzoni@chromium.org> wrote: > > http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc > File ...
9 years, 1 month ago (2011-11-09 16:40:29 UTC) #5
dmazzoni
Start with chrome/browser/chromeos/status/power_menu_button.* as one example. - Dominic On Wed, Nov 9, 2011 at 8:36 ...
9 years, 1 month ago (2011-11-09 17:10:14 UTC) #6
sky
I think powermenubutton should create a subclass that does this logic and not bake it ...
9 years, 1 month ago (2011-11-09 17:30:00 UTC) #7
hashimoto
The case "child_count() == 1 && title_.empty()" is already treated in a special way by ...
9 years, 1 month ago (2011-11-10 00:03:07 UTC) #8
sky
Good point, just add a description and LGTM
9 years, 1 month ago (2011-11-10 00:45:05 UTC) #9
hashimoto
On 2011/11/09 14:43:20, Dominic Mazzoni wrote: > +sky for approval. > > I think this ...
9 years, 1 month ago (2011-11-10 02:38:21 UTC) #10
hashimoto
New patch set, added MenuItemView::IsFirstChildToTakeOver to make the objective of the code clear. http://codereview.chromium.org/8511003/diff/1/views/controls/menu/menu_item_view.cc File ...
9 years, 1 month ago (2011-11-10 05:22:51 UTC) #11
dmazzoni
This looks great, refactoring IsFirstChildToTakeOver into a separate method makes it a lot more clear. ...
9 years, 1 month ago (2011-11-10 06:30:49 UTC) #12
hashimoto
New patch set. Thanks, with the new method name, "if (FirstChlidTakesOver())" looks more human readable. ...
9 years, 1 month ago (2011-11-10 07:24:23 UTC) #13
sky
http://codereview.chromium.org/8511003/diff/4003/views/controls/menu/menu_item_view.h File views/controls/menu/menu_item_view.h (right): http://codereview.chromium.org/8511003/diff/4003/views/controls/menu/menu_item_view.h#newcode399 views/controls/menu/menu_item_view.h:399: bool FirstChildTakesOver() const; This name is confusing. How about ...
9 years, 1 month ago (2011-11-10 15:58:48 UTC) #14
hashimoto
Thanks for your suggestion. This is the new patch set with new method name. http://codereview.chromium.org/8511003/diff/4003/views/controls/menu/menu_item_view.h ...
9 years, 1 month ago (2011-11-11 05:30:45 UTC) #15
sky
LGTM
9 years, 1 month ago (2011-11-11 16:54:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hashimoto@chromium.org/8511003/8001
9 years, 1 month ago (2011-11-12 12:18:29 UTC) #17
commit-bot: I haz the power
9 years, 1 month ago (2011-11-12 13:58:51 UTC) #18
Change committed as 109799

Powered by Google App Engine
This is Rietveld 408576698