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

Unified Diff: ash/default_accessibility_delegate.h

Issue 1785833002: Add 5 experimental accessibility features on Chrome OS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change option_name to option-name Created 4 years, 9 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/default_accessibility_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/default_accessibility_delegate.h
diff --git a/ash/default_accessibility_delegate.h b/ash/default_accessibility_delegate.h
index e973f56d056c04b771e7f42655ec8c1e5bb8e1c2..986b13bb3dd0e970aee84f057e2763eca561e7cf 100644
--- a/ash/default_accessibility_delegate.h
+++ b/ash/default_accessibility_delegate.h
@@ -30,6 +30,16 @@ class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate {
bool IsAutoclickEnabled() const override;
void SetVirtualKeyboardEnabled(bool enabled) override;
bool IsVirtualKeyboardEnabled() const override;
+ void SetCaretHighlightEnabled(bool enabled) override;
+ bool IsCaretHighlightEnabled() const override;
+ void SetCursorHighlightEnabled(bool enabled) override;
+ bool IsCursorHighlightEnabled() const override;
+ void SetFocusHighlightEnabled(bool enabled) override;
+ bool IsFocusHighlightEnabled() const override;
+ void SetSelectToSpeakEnabled(bool enabled) override;
+ bool IsSelectToSpeakEnabled() const override;
+ void SetSwitchAccessEnabled(bool enabled) override;
+ bool IsSwitchAccessEnabled() const override;
bool ShouldShowAccessibilityMenu() const override;
bool IsBrailleDisplayConnected() const override;
void SilenceSpokenFeedback() const override;
@@ -43,14 +53,19 @@ class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate {
base::TimeDelta PlayShutdownSound() const override;
private:
- bool spoken_feedback_enabled_;
- bool high_contrast_enabled_;
- bool screen_magnifier_enabled_;
- ui::MagnifierType screen_magnifier_type_;
- bool large_cursor_enabled_;
- bool autoclick_enabled_;
- bool virtual_keyboard_enabled_;
- ui::AccessibilityAlert accessibility_alert_;
+ bool spoken_feedback_enabled_ = false;
+ bool high_contrast_enabled_ = false;
+ bool screen_magnifier_enabled_ = false;
+ ui::MagnifierType screen_magnifier_type_ = ui::kDefaultMagnifierType;
+ bool large_cursor_enabled_ = false;
+ bool autoclick_enabled_ = false;
+ bool virtual_keyboard_enabled_ = false;
+ bool caret_highlight_enabled_ = false;
+ bool cursor_highlight_enabled_ = false;
+ bool focus_highligh_enabled_ = false;
+ bool select_to_speak_enabled_ = false;
+ bool switch_access_enabled_ = false;
+ ui::AccessibilityAlert accessibility_alert_ = ui::A11Y_ALERT_NONE;
DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate);
};
« no previous file with comments | « ash/accessibility_delegate.h ('k') | ash/default_accessibility_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698