Index: ash/system/tray/system_tray.cc |
=================================================================== |
--- ash/system/tray/system_tray.cc (revision 152315) |
+++ ash/system/tray/system_tray.cc (working copy) |
@@ -35,6 +35,7 @@ |
#include "base/utf_string_conversions.h" |
#include "grit/ash_strings.h" |
#include "ui/aura/root_window.h" |
+#include "ui/base/accessibility/accessible_view_state.h" |
#include "ui/base/events.h" |
#include "ui/base/l10n/l10n_util.h" |
#include "ui/compositor/layer.h" |
@@ -422,10 +423,6 @@ |
bubble_->bubble_view()->UpdateBubble(); |
} |
-string16 SystemTray::GetAccessibleName() { |
- return l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ACCESSIBLE_NAME); |
-} |
- |
bool SystemTray::PerformAction(const ui::Event& event) { |
// If we're already showing the default view, hide it; otherwise, show it |
// (and hide any popup that's currently shown). |
@@ -448,4 +445,10 @@ |
return true; |
} |
+void SystemTray::GetAccessibleState(ui::AccessibleViewState* state) { |
+ state->role = ui::AccessibilityTypes::ROLE_PUSHBUTTON; |
+ state->name = l10n_util::GetStringUTF16( |
+ IDS_ASH_STATUS_TRAY_ACCESSIBLE_NAME); |
+} |
+ |
} // namespace ash |