| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool autoclick_enabled_; | 88 bool autoclick_enabled_; |
| 89 bool virtual_keyboard_enabled_; | 89 bool virtual_keyboard_enabled_; |
| 90 LoginStatus login_; | 90 LoginStatus login_; |
| 91 | 91 |
| 92 friend class chromeos::TrayAccessibilityTest; | 92 friend class chromeos::TrayAccessibilityTest; |
| 93 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); | 93 DISALLOW_COPY_AND_ASSIGN(AccessibilityDetailedView); |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace tray | 96 } // namespace tray |
| 97 | 97 |
| 98 class TrayAccessibility : public TrayImageItem, | 98 class TrayAccessibility : public TrayImageItem, public AccessibilityObserver { |
| 99 public AccessibilityObserver { | |
| 100 public: | 99 public: |
| 101 explicit TrayAccessibility(SystemTray* system_tray); | 100 explicit TrayAccessibility(SystemTray* system_tray); |
| 102 ~TrayAccessibility() override; | 101 ~TrayAccessibility() override; |
| 103 | 102 |
| 104 private: | 103 private: |
| 105 void SetTrayIconVisible(bool visible); | 104 void SetTrayIconVisible(bool visible); |
| 106 tray::AccessibilityDetailedView* CreateDetailedMenu(); | 105 tray::AccessibilityDetailedView* CreateDetailedMenu(); |
| 107 | 106 |
| 108 // Overridden from TrayImageItem. | 107 // Overridden from TrayImageItem. |
| 109 bool GetInitialVisibility() override; | 108 bool GetInitialVisibility() override; |
| (...skipping 24 matching lines...) Expand all Loading... |
| 134 // A11y feature status on just entering the lock screen. | 133 // A11y feature status on just entering the lock screen. |
| 135 bool show_a11y_menu_on_lock_screen_; | 134 bool show_a11y_menu_on_lock_screen_; |
| 136 | 135 |
| 137 friend class chromeos::TrayAccessibilityTest; | 136 friend class chromeos::TrayAccessibilityTest; |
| 138 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 137 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
| 139 }; | 138 }; |
| 140 | 139 |
| 141 } // namespace ash | 140 } // namespace ash |
| 142 | 141 |
| 143 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ | 142 #endif // ASH_COMMON_SYSTEM_TRAY_ACCESSIBILITY_H_ |
| OLD | NEW |