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

Side by Side Diff: ash/default_accessibility_delegate.h

Issue 2048443002: ABANDONED: mash: Move shell delegate interfaces to ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@moveshelfmodel
Patch Set: Created 4 years, 6 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
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_
6 #define ASH_DEFAULT_ACCESSIBILITY_DELEGATE_H_
7
8 #include "ash/accessibility_delegate.h"
9 #include "ash/ash_export.h"
10 #include "base/compiler_specific.h"
11 #include "base/macros.h"
12
13 namespace ash {
14
15 class ASH_EXPORT DefaultAccessibilityDelegate : public AccessibilityDelegate {
16 public:
17 DefaultAccessibilityDelegate();
18 ~DefaultAccessibilityDelegate() override;
19
20 bool IsSpokenFeedbackEnabled() const override;
21 void ToggleHighContrast() override;
22 bool IsHighContrastEnabled() const override;
23 void SetMagnifierEnabled(bool enabled) override;
24 void SetMagnifierType(ui::MagnifierType type) override;
25 bool IsMagnifierEnabled() const override;
26 ui::MagnifierType GetMagnifierType() const override;
27 void SetLargeCursorEnabled(bool enabled) override;
28 bool IsLargeCursorEnabled() const override;
29 void SetAutoclickEnabled(bool enabled) override;
30 bool IsAutoclickEnabled() const override;
31 void SetVirtualKeyboardEnabled(bool enabled) override;
32 bool IsVirtualKeyboardEnabled() const override;
33 void SetMonoAudioEnabled(bool enabled) override;
34 bool IsMonoAudioEnabled() const override;
35 void SetCaretHighlightEnabled(bool enabled) override;
36 bool IsCaretHighlightEnabled() const override;
37 void SetCursorHighlightEnabled(bool enabled) override;
38 bool IsCursorHighlightEnabled() const override;
39 void SetFocusHighlightEnabled(bool enabled) override;
40 bool IsFocusHighlightEnabled() const override;
41 void SetSelectToSpeakEnabled(bool enabled) override;
42 bool IsSelectToSpeakEnabled() const override;
43 void SetSwitchAccessEnabled(bool enabled) override;
44 bool IsSwitchAccessEnabled() const override;
45 bool ShouldShowAccessibilityMenu() const override;
46 bool IsBrailleDisplayConnected() const override;
47 void SilenceSpokenFeedback() const override;
48 void ToggleSpokenFeedback(
49 ui::AccessibilityNotificationVisibility notify) override;
50 void SaveScreenMagnifierScale(double scale) override;
51 double GetSavedScreenMagnifierScale() override;
52 void TriggerAccessibilityAlert(ui::AccessibilityAlert alert) override;
53 ui::AccessibilityAlert GetLastAccessibilityAlert() override;
54 void PlayEarcon(int sound_key) override;
55 base::TimeDelta PlayShutdownSound() const override;
56 void HandleAccessibilityGesture(ui::AXGesture gesture) override;
57
58 private:
59 bool spoken_feedback_enabled_ = false;
60 bool high_contrast_enabled_ = false;
61 bool screen_magnifier_enabled_ = false;
62 ui::MagnifierType screen_magnifier_type_ = ui::kDefaultMagnifierType;
63 bool large_cursor_enabled_ = false;
64 bool autoclick_enabled_ = false;
65 bool virtual_keyboard_enabled_ = false;
66 bool mono_audio_enabled_ = false;
67 bool caret_highlight_enabled_ = false;
68 bool cursor_highlight_enabled_ = false;
69 bool focus_highligh_enabled_ = false;
70 bool select_to_speak_enabled_ = false;
71 bool switch_access_enabled_ = false;
72 ui::AccessibilityAlert accessibility_alert_ = ui::A11Y_ALERT_NONE;
73 DISALLOW_COPY_AND_ASSIGN(DefaultAccessibilityDelegate);
74 };
75
76 } // namespace ash
77
78 #endif // DEFAULT_ACCESSIBILITY_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698