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); | |
85 | |
86 void CheckOrUncheckMark(HoverHighlightView** container, bool checked); | |
xiyuan
2017/03/28 20:11:25
This function seems not touching any state in Acce
xiyuan
2017/03/28 20:11:25
Can we pass HoverHighlightView* instead of **?
xiyuan
2017/03/28 20:11:25
nit: I'd call this UpdateCheckMark.
minch1
2017/03/29 01:15:11
Done.
minch1
2017/03/29 01:15:11
Done.
minch1
2017/03/29 01:15:11
Done.
| |
87 | |
88 void AddSubHeader(int message_id); | |
xiyuan
2017/03/28 20:11:25
nit: Can we pass in the string instead?
i.e.
vo
minch1
2017/03/29 01:15:11
Hi,xiyuan. I guess here is to make the function re
xiyuan
2017/03/29 17:59:07
SG.
| |
83 | 89 |
84 views::View* spoken_feedback_view_; | 90 views::View* spoken_feedback_view_; |
85 views::View* high_contrast_view_; | 91 views::View* high_contrast_view_; |
86 views::View* screen_magnifier_view_; | 92 views::View* screen_magnifier_view_; |
87 views::View* large_cursor_view_; | 93 views::View* large_cursor_view_; |
88 views::CustomButton* help_view_; | 94 views::CustomButton* help_view_; |
89 views::CustomButton* settings_view_; | 95 views::CustomButton* settings_view_; |
90 views::View* autoclick_view_; | 96 views::View* autoclick_view_; |
91 views::View* virtual_keyboard_view_; | 97 views::View* virtual_keyboard_view_; |
98 views::View* mono_audio_view_; | |
99 views::View* caret_highlight_view_; | |
100 views::View* highlight_mouse_cursor_view_; | |
101 views::View* highlight_keyboard_focus_view_; | |
92 | 102 |
93 bool spoken_feedback_enabled_; | 103 bool spoken_feedback_enabled_; |
94 bool high_contrast_enabled_; | 104 bool high_contrast_enabled_; |
95 bool screen_magnifier_enabled_; | 105 bool screen_magnifier_enabled_; |
96 bool large_cursor_enabled_; | 106 bool large_cursor_enabled_; |
97 bool autoclick_enabled_; | 107 bool autoclick_enabled_; |
98 bool virtual_keyboard_enabled_; | 108 bool virtual_keyboard_enabled_; |
109 bool mono_audio_enabled_; | |
110 bool caret_highlight_enabled_; | |
111 bool highlight_mouse_cursor_enabled_; | |
112 bool highlight_keyboard_focus_enabled_; | |
99 LoginStatus login_; | 113 LoginStatus login_; |
100 | 114 |
101 friend class chromeos::TrayAccessibilityTest; | 115 friend class chromeos::TrayAccessibilityTest; |
102 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); | 116 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); |
103 }; | 117 }; |
104 | 118 |
105 } // namespace tray | 119 } // namespace tray |
106 | 120 |
107 class TrayAccessibility : public TrayImageItem, public AccessibilityObserver { | 121 class TrayAccessibility : public TrayImageItem, public AccessibilityObserver { |
108 public: | 122 public: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
142 // A11y feature status on just entering the lock screen. | 156 // A11y feature status on just entering the lock screen. |
143 bool show_a11y_menu_on_lock_screen_; | 157 bool show_a11y_menu_on_lock_screen_; |
144 | 158 |
145 friend class chromeos::TrayAccessibilityTest; | 159 friend class chromeos::TrayAccessibilityTest; |
146 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 160 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
147 }; | 161 }; |
148 | 162 |
149 } // namespace ash | 163 } // namespace ash |
150 | 164 |
151 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 165 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
OLD | NEW |