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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 void HandleViewClicked(views::View* view) override; | 59 void HandleViewClicked(views::View* view) override; |
60 void HandleButtonPressed(views::Button* sender, | 60 void HandleButtonPressed(views::Button* sender, |
61 const ui::Event& event) override; | 61 const ui::Event& event) override; |
62 | 62 |
63 // Add the accessibility feature list. | 63 // Add the accessibility feature list. |
64 void AppendAccessibilityList(); | 64 void AppendAccessibilityList(); |
65 | 65 |
66 // Add help entries. | 66 // Add help entries. |
67 void AppendHelpEntries(); | 67 void AppendHelpEntries(); |
68 | 68 |
| 69 // Helper functions to create entries in the detailed accessibility view. |
69 HoverHighlightView* AddScrollListItem(const base::string16& text, | 70 HoverHighlightView* AddScrollListItem(const base::string16& text, |
70 bool highlight, | 71 bool highlight, |
71 bool checked); | 72 bool checked); |
| 73 HoverHighlightView* AddScrollListItemMD(const base::string16& text, |
| 74 bool highlight, |
| 75 bool checked, |
| 76 const gfx::ImageSkia& image); |
72 | 77 |
73 views::View* spoken_feedback_view_; | 78 views::View* spoken_feedback_view_; |
74 views::View* high_contrast_view_; | 79 views::View* high_contrast_view_; |
75 views::View* screen_magnifier_view_; | 80 views::View* screen_magnifier_view_; |
76 views::View* large_cursor_view_; | 81 views::View* large_cursor_view_; |
77 views::View* help_view_; | 82 views::View* help_view_; |
78 views::View* settings_view_; | 83 views::View* settings_view_; |
79 views::View* autoclick_view_; | 84 views::View* autoclick_view_; |
80 views::View* virtual_keyboard_view_; | 85 views::View* virtual_keyboard_view_; |
81 | 86 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // A11y feature status on just entering the lock screen. | 136 // A11y feature status on just entering the lock screen. |
132 bool show_a11y_menu_on_lock_screen_; | 137 bool show_a11y_menu_on_lock_screen_; |
133 | 138 |
134 friend class chromeos::TrayAccessibilityTest; | 139 friend class chromeos::TrayAccessibilityTest; |
135 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 140 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
136 }; | 141 }; |
137 | 142 |
138 } // namespace ash | 143 } // namespace ash |
139 | 144 |
140 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 145 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
OLD | NEW |