Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(322)

Unified Diff: ash/system/tray_accessibility.cc

Issue 2078393005: mash: Move accessibility_types.h from ui namespace to ash namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a11y
Patch Set: fix chromevox code generated from js Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/system/tray_accessibility.h ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray_accessibility.cc
diff --git a/ash/system/tray_accessibility.cc b/ash/system/tray_accessibility.cc
index ba4d259505b318333cbbbae305a7d04e2521ab5c..a1c220f7c1a7ecd54f3c7e0576c3e7ff4a463b6c 100644
--- a/ash/system/tray_accessibility.cc
+++ b/ash/system/tray_accessibility.cc
@@ -5,6 +5,7 @@
#include "ash/system/tray_accessibility.h"
#include "ash/common/accessibility_delegate.h"
+#include "ash/common/accessibility_types.h"
#include "ash/common/session/session_state_delegate.h"
#include "ash/common/system/tray/hover_highlight_view.h"
#include "ash/common/system/tray/system_tray_delegate.h"
@@ -248,7 +249,7 @@ void AccessibilityDetailedView::OnViewClicked(views::View* sender) {
delegate->IsSpokenFeedbackEnabled() ?
ash::UMA_STATUS_AREA_DISABLE_SPOKEN_FEEDBACK :
ash::UMA_STATUS_AREA_ENABLE_SPOKEN_FEEDBACK);
- delegate->ToggleSpokenFeedback(ui::A11Y_NOTIFICATION_NONE);
+ delegate->ToggleSpokenFeedback(A11Y_NOTIFICATION_NONE);
} else if (sender == high_contrast_view_) {
WmShell::Get()->RecordUserMetricsAction(
delegate->IsHighContrastEnabled() ?
@@ -387,7 +388,7 @@ void TrayAccessibility::UpdateAfterLoginStatusChange(LoginStatus status) {
}
void TrayAccessibility::OnAccessibilityModeChanged(
- ui::AccessibilityNotificationVisibility notify) {
+ AccessibilityNotificationVisibility notify) {
SetTrayIconVisible(GetInitialVisibility());
uint32_t accessibility_state = GetAccessibilityState();
@@ -403,7 +404,7 @@ void TrayAccessibility::OnAccessibilityModeChanged(
uint32_t being_enabled =
(accessibility_state & ~previous_accessibility_state_) &
(A11Y_SPOKEN_FEEDBACK | A11Y_BRAILLE_DISPLAY_CONNECTED);
- if ((notify == ui::A11Y_NOTIFICATION_SHOW) && being_enabled != A11Y_NONE) {
+ if ((notify == A11Y_NOTIFICATION_SHOW) && being_enabled != A11Y_NONE) {
// Shows popup if |notify| is true and the spoken feedback is being enabled.
request_popup_view_state_ = being_enabled;
PopupDetailedView(kTrayPopupAutoCloseDelayForTextInSeconds, false);
« no previous file with comments | « ash/system/tray_accessibility.h ('k') | ash/wm/overview/window_selector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698