OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 5 #ifndef ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
6 #define ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 6 #define ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "ash/common/accessibility_delegate.h" | 10 #include "ash/common/accessibility_delegate.h" |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 void ShowHelp(); | 73 void ShowHelp(); |
74 | 74 |
75 // Add the accessibility feature list. | 75 // Add the accessibility feature list. |
76 void AppendAccessibilityList(); | 76 void AppendAccessibilityList(); |
77 | 77 |
78 // Helper function to create entries in the detailed accessibility view. | 78 // Helper function to create entries in the detailed accessibility view. |
79 HoverHighlightView* AddScrollListItem(const base::string16& text, | 79 HoverHighlightView* AddScrollListItem(const base::string16& text, |
80 bool highlight, | 80 bool highlight, |
81 bool checked, | 81 bool checked, |
82 const gfx::VectorIcon& icon); | 82 const gfx::VectorIcon& icon); |
| 83 HoverHighlightView* AddScrollListItemWithoutIcon(const base::string16& text, |
| 84 bool checked); |
83 | 85 |
84 views::View* spoken_feedback_view_; | 86 void AddSubHeader(const base::string16& header_text); |
85 views::View* high_contrast_view_; | |
86 views::View* screen_magnifier_view_; | |
87 views::View* large_cursor_view_; | |
88 views::CustomButton* help_view_; | |
89 views::CustomButton* settings_view_; | |
90 views::View* autoclick_view_; | |
91 views::View* virtual_keyboard_view_; | |
92 | 87 |
93 bool spoken_feedback_enabled_; | 88 views::View* spoken_feedback_view_ = nullptr; |
94 bool high_contrast_enabled_; | 89 views::View* high_contrast_view_ = nullptr; |
95 bool screen_magnifier_enabled_; | 90 views::View* screen_magnifier_view_ = nullptr; |
96 bool large_cursor_enabled_; | 91 views::View* large_cursor_view_ = nullptr; |
97 bool autoclick_enabled_; | 92 views::CustomButton* help_view_ = nullptr; |
98 bool virtual_keyboard_enabled_; | 93 views::CustomButton* settings_view_ = nullptr; |
| 94 views::View* autoclick_view_ = nullptr; |
| 95 views::View* virtual_keyboard_view_ = nullptr; |
| 96 views::View* mono_audio_view_ = nullptr; |
| 97 views::View* caret_highlight_view_ = nullptr; |
| 98 views::View* highlight_mouse_cursor_view_ = nullptr; |
| 99 views::View* highlight_keyboard_focus_view_ = nullptr; |
| 100 |
| 101 bool spoken_feedback_enabled_ = false; |
| 102 bool high_contrast_enabled_ = false; |
| 103 bool screen_magnifier_enabled_ = false; |
| 104 bool large_cursor_enabled_ = false; |
| 105 bool autoclick_enabled_ = false; |
| 106 bool virtual_keyboard_enabled_ = false; |
| 107 bool mono_audio_enabled_ = false; |
| 108 bool caret_highlight_enabled_ = false; |
| 109 bool highlight_mouse_cursor_enabled_ = false; |
| 110 bool highlight_keyboard_focus_enabled_ = false; |
99 LoginStatus login_; | 111 LoginStatus login_; |
100 | 112 |
101 friend class chromeos::TrayAccessibilityTest; | 113 friend class chromeos::TrayAccessibilityTest; |
102 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); | 114 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); |
103 }; | 115 }; |
104 | 116 |
105 } // namespace tray | 117 } // namespace tray |
106 | 118 |
107 class TrayAccessibility : public TrayImageItem, public AccessibilityObserver { | 119 class TrayAccessibility : public TrayImageItem, public AccessibilityObserver { |
108 public: | 120 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 // A11y feature status on just entering the lock screen. | 154 // A11y feature status on just entering the lock screen. |
143 bool show_a11y_menu_on_lock_screen_; | 155 bool show_a11y_menu_on_lock_screen_; |
144 | 156 |
145 friend class chromeos::TrayAccessibilityTest; | 157 friend class chromeos::TrayAccessibilityTest; |
146 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 158 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
147 }; | 159 }; |
148 | 160 |
149 } // namespace ash | 161 } // namespace ash |
150 | 162 |
151 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 163 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
OLD | NEW |