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

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 SetDisplayWorkAreaInsetsForTesting for tests 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
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 11
12 namespace aura {
13 class Window;
14 }
15
16 namespace gfx {
17 class Insets;
18 }
19
12 namespace ash { 20 namespace ash {
13 21
14 // A delegate class to control and query accessibility features. 22 // A delegate class to control and query accessibility features.
15 class ASH_EXPORT AccessibilityDelegate { 23 class ASH_EXPORT AccessibilityDelegate {
16 public: 24 public:
17 virtual ~AccessibilityDelegate() {} 25 virtual ~AccessibilityDelegate() {}
18 26
19 // Invoked to toggle spoken feedback for accessibility 27 // Invoked to toggle spoken feedback for accessibility
20 virtual void ToggleSpokenFeedback( 28 virtual void ToggleSpokenFeedback(
21 ui::AccessibilityNotificationVisibility notify) = 0; 29 ui::AccessibilityNotificationVisibility notify) = 0;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 // Gets the last accessibility alert that was triggered. 89 // Gets the last accessibility alert that was triggered.
82 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0; 90 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() = 0;
83 91
84 // Plays an earcon. Earcons are brief and distinctive sounds that indicate 92 // 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 93 // when their mapped event has occurred. The sound key enums can be found in
86 // chromeos/audio/chromeos_sounds.h. 94 // chromeos/audio/chromeos_sounds.h.
87 virtual void PlayEarcon(int sound_key) = 0; 95 virtual void PlayEarcon(int sound_key) = 0;
88 96
89 // Initiates play of shutdown sound and returns it's duration. 97 // Initiates play of shutdown sound and returns it's duration.
90 virtual base::TimeDelta PlayShutdownSound() const = 0; 98 virtual base::TimeDelta PlayShutdownSound() const = 0;
99
100 // Get work area insets due to accessibility overlays on one of the
101 // screen edges, for the given root window.
102 virtual void ComputeWorkAreaInsets(aura::Window* root_window,
103 gfx::Insets* out_insets) const = 0;
Jun Mukai 2015/11/06 18:21:04 Why this comes to an output parameter rather than
oshima 2015/11/06 18:21:15 just return gfx::Insets as gfx::Insets is small.
dmazzoni 2015/11/09 23:02:06 Done.
91 }; 104 };
92 105
93 } // namespace ash 106 } // namespace ash
94 107
95 #endif // ASH_ACCESSIBILITY_DELEGATE_H_ 108 #endif // ASH_ACCESSIBILITY_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/default_accessibility_delegate.h » ('j') | chrome/browser/chromeos/accessibility/accessibility_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698