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

Side by Side Diff: views/controls/button/menu_button.cc

Issue 155446: Adds MSAA information to various (previously uncovered) bits of the UI, inclu... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "views/controls/button/menu_button.h" 5 #include "views/controls/button/menu_button.h"
6 6
7 #include "app/drag_drop_types.h" 7 #include "app/drag_drop_types.h"
8 #include "app/gfx/canvas.h" 8 #include "app/gfx/canvas.h"
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bool MenuButton::GetAccessibleDefaultAction(std::wstring* action) { 243 bool MenuButton::GetAccessibleDefaultAction(std::wstring* action) {
244 DCHECK(action); 244 DCHECK(action);
245 245
246 action->assign(l10n_util::GetString(IDS_APP_ACCACTION_PRESS)); 246 action->assign(l10n_util::GetString(IDS_APP_ACCACTION_PRESS));
247 return true; 247 return true;
248 } 248 }
249 249
250 bool MenuButton::GetAccessibleRole(AccessibilityTypes::Role* role) { 250 bool MenuButton::GetAccessibleRole(AccessibilityTypes::Role* role) {
251 DCHECK(role); 251 DCHECK(role);
252 252
253 *role = AccessibilityTypes::ROLE_BUTTONDROPDOWN; 253 *role = AccessibilityTypes::ROLE_BUTTONMENU;
254 return true; 254 return true;
255 } 255 }
256 256
257 bool MenuButton::GetAccessibleState(AccessibilityTypes::State* state) { 257 bool MenuButton::GetAccessibleState(AccessibilityTypes::State* state) {
258 DCHECK(state); 258 DCHECK(state);
259 259
260 *state = AccessibilityTypes::STATE_HASPOPUP; 260 *state = AccessibilityTypes::STATE_HASPOPUP;
261 return true; 261 return true;
262 } 262 }
263 263
264 } // namespace views 264 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698