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_SYSTEM_TRAY_ACCESSIBILITY_H_ | 5 #ifndef ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ |
6 #define ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ | 6 #define ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ |
7 | 7 |
8 #include "ash/accessibility_delegate.h" | 8 #include "ash/accessibility_delegate.h" |
9 #include "ash/shell_observer.h" | 9 #include "ash/shell_observer.h" |
10 #include "ash/system/tray/tray_details_view.h" | 10 #include "ash/system/tray/tray_details_view.h" |
(...skipping 18 matching lines...) Expand all Loading... |
29 namespace ash { | 29 namespace ash { |
30 class HoverHighlightView; | 30 class HoverHighlightView; |
31 class SystemTrayItem; | 31 class SystemTrayItem; |
32 | 32 |
33 class ASH_EXPORT AccessibilityObserver { | 33 class ASH_EXPORT AccessibilityObserver { |
34 public: | 34 public: |
35 virtual ~AccessibilityObserver() {} | 35 virtual ~AccessibilityObserver() {} |
36 | 36 |
37 // Notifies when accessibilty mode changes. | 37 // Notifies when accessibilty mode changes. |
38 virtual void OnAccessibilityModeChanged( | 38 virtual void OnAccessibilityModeChanged( |
39 AccessibilityNotificationVisibility notify) = 0; | 39 ui::AccessibilityNotificationVisibility notify) = 0; |
40 }; | 40 }; |
41 | 41 |
42 | 42 |
43 namespace tray { | 43 namespace tray { |
44 | 44 |
45 class AccessibilityPopupView : public TrayNotificationView { | 45 class AccessibilityPopupView : public TrayNotificationView { |
46 public: | 46 public: |
47 AccessibilityPopupView(SystemTrayItem* owner, uint32 enabled_state_bits); | 47 AccessibilityPopupView(SystemTrayItem* owner, uint32 enabled_state_bits); |
48 | 48 |
49 const views::Label* label_for_test() const { return label_; } | 49 const views::Label* label_for_test() const { return label_; } |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // Overridden from TrayImageItem. | 116 // Overridden from TrayImageItem. |
117 bool GetInitialVisibility() override; | 117 bool GetInitialVisibility() override; |
118 views::View* CreateDefaultView(user::LoginStatus status) override; | 118 views::View* CreateDefaultView(user::LoginStatus status) override; |
119 views::View* CreateDetailedView(user::LoginStatus status) override; | 119 views::View* CreateDetailedView(user::LoginStatus status) override; |
120 void DestroyDefaultView() override; | 120 void DestroyDefaultView() override; |
121 void DestroyDetailedView() override; | 121 void DestroyDetailedView() override; |
122 void UpdateAfterLoginStatusChange(user::LoginStatus status) override; | 122 void UpdateAfterLoginStatusChange(user::LoginStatus status) override; |
123 | 123 |
124 // Overridden from AccessibilityObserver. | 124 // Overridden from AccessibilityObserver. |
125 void OnAccessibilityModeChanged( | 125 void OnAccessibilityModeChanged( |
126 AccessibilityNotificationVisibility notify) override; | 126 ui::AccessibilityNotificationVisibility notify) override; |
127 | 127 |
128 views::View* default_; | 128 views::View* default_; |
129 tray::AccessibilityPopupView* detailed_popup_; | 129 tray::AccessibilityPopupView* detailed_popup_; |
130 tray::AccessibilityDetailedView* detailed_menu_; | 130 tray::AccessibilityDetailedView* detailed_menu_; |
131 | 131 |
132 // Bitmap of fvalues from AccessibilityState. Can contain any or | 132 // Bitmap of fvalues from AccessibilityState. Can contain any or |
133 // both of A11Y_SPOKEN_FEEDBACK A11Y_BRAILLE_DISPLAY_CONNECTED. | 133 // both of A11Y_SPOKEN_FEEDBACK A11Y_BRAILLE_DISPLAY_CONNECTED. |
134 uint32 request_popup_view_state_; | 134 uint32 request_popup_view_state_; |
135 | 135 |
136 bool tray_icon_visible_; | 136 bool tray_icon_visible_; |
137 user::LoginStatus login_; | 137 user::LoginStatus login_; |
138 | 138 |
139 // Bitmap of values from AccessibilityState enum. | 139 // Bitmap of values from AccessibilityState enum. |
140 uint32 previous_accessibility_state_; | 140 uint32 previous_accessibility_state_; |
141 | 141 |
142 // A11y feature status on just entering the lock screen. | 142 // A11y feature status on just entering the lock screen. |
143 bool show_a11y_menu_on_lock_screen_; | 143 bool show_a11y_menu_on_lock_screen_; |
144 | 144 |
145 friend class chromeos::TrayAccessibilityTest; | 145 friend class chromeos::TrayAccessibilityTest; |
146 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 146 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
147 }; | 147 }; |
148 | 148 |
149 } // namespace ash | 149 } // namespace ash |
150 | 150 |
151 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ | 151 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ |
OLD | NEW |