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

Side by Side Diff: ash/accessibility_delegate.h

Issue 1274563004: Show ChromeVox caption panel when spoken feedback is enabled. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chromevox_panel_html
Patch Set: Add hook to disable/close ChromeVox Created 5 years, 1 month 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/default_accessibility_delegate.h » ('j') | ash/shelf/shelf_layout_manager.h » ('J')
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 "base/time/time.h" 9 #include "base/time/time.h"
10 #include "ui/chromeos/accessibility_types.h" 10 #include "ui/chromeos/accessibility_types.h"
11 #include "ui/gfx/geometry/insets.h"
oshima 2015/11/05 23:58:50 you can use forward decl for this too.
dmazzoni 2015/11/06 17:28:14 Done.
12
13 namespace aura {
14 class Window;
15 }
11 16
12 namespace ash { 17 namespace ash {
13 18
14 // A delegate class to control and query accessibility features. 19 // A delegate class to control and query accessibility features.
15 class ASH_EXPORT AccessibilityDelegate { 20 class ASH_EXPORT AccessibilityDelegate {
16 public: 21 public:
17 virtual ~AccessibilityDelegate() {} 22 virtual ~AccessibilityDelegate() {}
18 23
19 // Invoked to toggle spoken feedback for accessibility 24 // Invoked to toggle spoken feedback for accessibility
20 virtual void ToggleSpokenFeedback( 25 virtual void ToggleSpokenFeedback(
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Gets the last accessibility alert that was triggered. 86 // Gets the last accessibility alert that was triggered.
82 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; 87 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0;
83 88
84 // Plays an earcon. Earcons are brief and distinctive sounds that indicate 89 // Plays an earcon. Earcons are brief and distinctive sounds that indicate
85 // when their mapped event has occurred. The sound key enums can be found in 90 // when their mapped event has occurred. The sound key enums can be found in
86 // chromeos/audio/chromeos_sounds.h. 91 // chromeos/audio/chromeos_sounds.h.
87 virtual void PlayEarcon(int sound_key) = 0; 92 virtual void PlayEarcon(int sound_key) = 0;
88 93
89 // Initiates play of shutdown sound and returns it's duration. 94 // Initiates play of shutdown sound and returns it's duration.
90 virtual base::TimeDelta PlayShutdownSound() const = 0; 95 virtual base::TimeDelta PlayShutdownSound() const = 0;
96
97 // Get work area insets due to accessibility overlays on one of the
98 // screen edges, for the given root window.
99 virtual gfx::Insets GetWorkAreaInsets(aura::Window* root_window) const = 0;
oshima 2015/11/05 23:58:50 ComputeWorkAreaInsets (or ComputeIdealWorkareaInse
dmazzoni 2015/11/06 17:28:14 Done.
91 }; 100 };
92 101
93 } // namespace ash 102 } // namespace ash
94 103
95 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ 104 #endif // ASH_ACCESSIBILITY_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/default_accessibility_delegate.h » ('j') | ash/shelf/shelf_layout_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698