summaryrefslogtreecommitdiffstats
path: root/views/controls/button/button_dropdown.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/controls/button/button_dropdown.cc')
-rw-r--r--views/controls/button/button_dropdown.cc21
1 files changed, 6 insertions, 15 deletions
diff --git a/views/controls/button/button_dropdown.cc b/views/controls/button/button_dropdown.cc
index 7b2b3d0..6fa8dee 100644
--- a/views/controls/button/button_dropdown.cc
+++ b/views/controls/button/button_dropdown.cc
@@ -164,25 +164,16 @@ void ButtonDropDown::ShowDropDownMenu(gfx::NativeView window) {
//
////////////////////////////////////////////////////////////////////////////////
-bool ButtonDropDown::GetAccessibleDefaultAction(std::wstring* action) {
- DCHECK(action);
-
- action->assign(l10n_util::GetString(IDS_APP_ACCACTION_PRESS));
- return true;
+std::wstring ButtonDropDown::GetAccessibleDefaultAction() {
+ return l10n_util::GetString(IDS_APP_ACCACTION_PRESS);
}
-bool ButtonDropDown::GetAccessibleRole(AccessibilityTypes::Role* role) {
- DCHECK(role);
-
- *role = AccessibilityTypes::ROLE_BUTTONDROPDOWN;
- return true;
+AccessibilityTypes::Role ButtonDropDown::GetAccessibleRole() {
+ return AccessibilityTypes::ROLE_BUTTONDROPDOWN;
}
-bool ButtonDropDown::GetAccessibleState(AccessibilityTypes::State* state) {
- DCHECK(state);
-
- *state = AccessibilityTypes::STATE_HASPOPUP;
- return true;
+AccessibilityTypes::State ButtonDropDown::GetAccessibleState() {
+ return AccessibilityTypes::STATE_HASPOPUP;
}
} // namespace views