| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |