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

Unified Diff: ash/wm/overview/window_overview.cc

Issue 257763008: Added a11y alert on entering overview mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed tiny nit Created 6 years, 8 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/accessibility_delegate.h ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_overview.cc
diff --git a/ash/wm/overview/window_overview.cc b/ash/wm/overview/window_overview.cc
index ec5efc76a6bc8036a206850c48ed95be0ac1607e..640d21f2191b4507093cc47809b01a99634646ec 100644
--- a/ash/wm/overview/window_overview.cc
+++ b/ash/wm/overview/window_overview.cc
@@ -6,6 +6,7 @@
#include <algorithm>
+#include "ash/accessibility_delegate.h"
#include "ash/metrics/user_metrics_recorder.h"
#include "ash/screen_util.h"
#include "ash/shell.h"
@@ -150,6 +151,11 @@ WindowOverview::WindowOverview(WindowSelector* window_selector,
shell->GetScreen()->AddObserver(this);
shell->metrics()->RecordUserMetricsAction(UMA_WINDOW_OVERVIEW);
HideAndTrackNonOverviewWindows();
+ // Send an a11y alert only if the overview was activated by the user.
+ if (window_selector_->mode() == WindowSelector::OVERVIEW) {
+ shell->accessibility_delegate()->TriggerAccessibilityAlert(
+ A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED);
+ }
}
WindowOverview::~WindowOverview() {
« no previous file with comments | « ash/accessibility_delegate.h ('k') | ash/wm/overview/window_selector_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698