Index: ash/system/tray/system_tray.cc |
diff --git a/ash/system/tray/system_tray.cc b/ash/system/tray/system_tray.cc |
index 1663d5bb7e284ab217a2277598ec1272308f7bf0..bd81f272ca4e17ddb6d889fcd190c2f4ef98b6fa 100644 |
--- a/ash/system/tray/system_tray.cc |
+++ b/ash/system/tray/system_tray.cc |
@@ -35,7 +35,6 @@ |
#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" |
@@ -423,6 +422,10 @@ void SystemTray::AnchorUpdated() { |
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). |
@@ -445,10 +448,4 @@ bool SystemTray::PerformAction(const ui::Event& event) { |
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 |