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

Side by Side Diff: ash/accessibility_delegate.h

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, 7 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/wm/overview/window_overview.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_ACCESSIBILITY_DELEGATE_H_ 5 #ifndef ASH_ACCESSIBILITY_DELEGATE_H_
6 #define ASH_ACCESSIBILITY_DELEGATE_H_ 6 #define ASH_ACCESSIBILITY_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/magnifier/magnifier_constants.h" 9 #include "ash/magnifier/magnifier_constants.h"
10 #include "base/time/time.h" 10 #include "base/time/time.h"
11 11
12 namespace ash { 12 namespace ash {
13 13
14 enum AccessibilityNotificationVisibility { 14 enum AccessibilityNotificationVisibility {
15 A11Y_NOTIFICATION_NONE, 15 A11Y_NOTIFICATION_NONE,
16 A11Y_NOTIFICATION_SHOW, 16 A11Y_NOTIFICATION_SHOW,
17 }; 17 };
18 18
19 enum AccessibilityAlert { 19 enum AccessibilityAlert {
20 A11Y_ALERT_NONE, 20 A11Y_ALERT_NONE,
21 A11Y_ALERT_WINDOW_NEEDED 21 A11Y_ALERT_WINDOW_NEEDED,
22 A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED
22 }; 23 };
23 24
24 // A delegate class to control and query accessibility features. 25 // A delegate class to control and query accessibility features.
25 class ASH_EXPORT AccessibilityDelegate { 26 class ASH_EXPORT AccessibilityDelegate {
26 public: 27 public:
27 virtual ~AccessibilityDelegate() {} 28 virtual ~AccessibilityDelegate() {}
28 29
29 // Invoked to toggle spoken feedback for accessibility 30 // Invoked to toggle spoken feedback for accessibility
30 virtual void ToggleSpokenFeedback( 31 virtual void ToggleSpokenFeedback(
31 AccessibilityNotificationVisibility notify) = 0; 32 AccessibilityNotificationVisibility notify) = 0;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Gets the last accessibility alert that was triggered. 92 // Gets the last accessibility alert that was triggered.
92 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; 93 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
93 94
94 // Initiates play of shutdown sound and returns it's duration. 95 // Initiates play of shutdown sound and returns it's duration.
95 virtual base::TimeDelta PlayShutdownSound() const = 0; 96 virtual base::TimeDelta PlayShutdownSound() const = 0;
96 }; 97 };
97 98
98 } // namespace ash 99 } // namespace ash
99 100
100 #endif // ASH_ACCESSIBILITYDELEGATE_H_ 101 #endif // ASH_ACCESSIBILITYDELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/overview/window_overview.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698