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

Side by Side Diff: ash/accessibility_delegate.h

Issue 137993021: Add a11y on-screen keyboard to accessibility menu on system tray. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address reviewer feedback. Created 6 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | ash/ash_strings.grd » ('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"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 // Returns ture if Large Cursor is enabled or not. 57 // Returns ture if Large Cursor is enabled or not.
58 virtual bool IsLargeCursorEnabled() const = 0; 58 virtual bool IsLargeCursorEnabled() const = 0;
59 59
60 // Invoked to enable autoclick. 60 // Invoked to enable autoclick.
61 virtual void SetAutoclickEnabled(bool enabled) = 0; 61 virtual void SetAutoclickEnabled(bool enabled) = 0;
62 62
63 // Returns if autoclick is enabled or not. 63 // Returns if autoclick is enabled or not.
64 virtual bool IsAutoclickEnabled() const = 0; 64 virtual bool IsAutoclickEnabled() const = 0;
65 65
66 // Invoked to enable or disable the a11y on-screen keyboard.
67 virtual void SetVirtualKeyboardEnabled(bool enabled) = 0;
68
66 // Returns if the a11y virtual keyboard is enabled. 69 // Returns if the a11y virtual keyboard is enabled.
67 virtual bool IsVirtualKeyboardEnabled() const = 0; 70 virtual bool IsVirtualKeyboardEnabled() const = 0;
68 71
69 // Returns true when the accessibility menu should be shown. 72 // Returns true when the accessibility menu should be shown.
70 virtual bool ShouldShowAccessibilityMenu() const = 0; 73 virtual bool ShouldShowAccessibilityMenu() const = 0;
71 74
72 // Cancel all current and queued speech immediately. 75 // Cancel all current and queued speech immediately.
73 virtual void SilenceSpokenFeedback() const = 0; 76 virtual void SilenceSpokenFeedback() const = 0;
74 77
75 // Saves the zoom scale of the full screen magnifier. 78 // Saves the zoom scale of the full screen magnifier.
76 virtual void SaveScreenMagnifierScale(double scale) = 0; 79 virtual void SaveScreenMagnifierScale(double scale) = 0;
77 80
78 // Gets a saved value of the zoom scale of full screen magnifier. If a value 81 // Gets a saved value of the zoom scale of full screen magnifier. If a value
79 // is not saved, return a negative value. 82 // is not saved, return a negative value.
80 virtual double GetSavedScreenMagnifierScale() = 0; 83 virtual double GetSavedScreenMagnifierScale() = 0;
81 84
82 // Triggers an accessibility alert to give the user feedback. 85 // Triggers an accessibility alert to give the user feedback.
83 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0; 86 virtual void TriggerAccessibilityAlert(AccessibilityAlert alert) = 0;
84 87
85 // Gets the last accessibility alert that was triggered. 88 // Gets the last accessibility alert that was triggered.
86 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0; 89 virtual AccessibilityAlert GetLastAccessibilityAlert() = 0;
87 90
88 // Initiates play of shutdown sound and returns it's duration. 91 // Initiates play of shutdown sound and returns it's duration.
89 virtual base::TimeDelta PlayShutdownSound() const = 0; 92 virtual base::TimeDelta PlayShutdownSound() const = 0;
90 }; 93 };
91 94
92 } // namespace ash 95 } // namespace ash
93 96
94 #endif // ASH_ACCESSIBILITYDELEGATE_H_ 97 #endif // ASH_ACCESSIBILITYDELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | ash/ash_strings.grd » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698