diff options
Diffstat (limited to 'ash/system/settings/tray_settings.cc')
-rw-r--r-- | ash/system/settings/tray_settings.cc | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/ash/system/settings/tray_settings.cc b/ash/system/settings/tray_settings.cc index 9039fa8..bd67ab7 100644 --- a/ash/system/settings/tray_settings.cc +++ b/ash/system/settings/tray_settings.cc @@ -37,9 +37,12 @@ class SettingsView : public ash::internal::ActionableView { icon->SetImage(rb.GetImageNamed(IDR_AURA_UBER_TRAY_SETTINGS).ToSkBitmap()); AddChildView(icon); - label_ = new views::Label(rb.GetLocalizedString( - IDS_ASH_STATUS_TRAY_SETTINGS_AND_HELP)); + string16 text = rb.GetLocalizedString( + IDS_ASH_STATUS_TRAY_SETTINGS_AND_HELP); + label_ = new views::Label(text); AddChildView(label_); + + SetAccessibleName(text); } virtual ~SettingsView() {} @@ -50,14 +53,6 @@ class SettingsView : public ash::internal::ActionableView { return true; } - // Overridden from views::View. - void GetAccessibleState(ui::AccessibleViewState* state) { - state->role = ui::AccessibilityTypes::ROLE_PUSHBUTTON; - ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); - state->name = rb.GetLocalizedString( - IDS_ASH_STATUS_TRAY_SETTINGS_AND_HELP); - } - private: views::Label* label_; |