| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "ash/common/accessibility_delegate.h" | 10 #include "ash/common/accessibility_delegate.h" |
| 11 #include "ash/common/shell_observer.h" | 11 #include "ash/common/shell_observer.h" |
| 12 #include "ash/common/system/accessibility_observer.h" |
| 12 #include "ash/common/system/tray/tray_image_item.h" | 13 #include "ash/common/system/tray/tray_image_item.h" |
| 13 #include "ash/common/system/tray/tray_notification_view.h" | 14 #include "ash/common/system/tray/tray_notification_view.h" |
| 14 #include "ash/common/system/tray/view_click_listener.h" | 15 #include "ash/common/system/tray/view_click_listener.h" |
| 15 #include "ash/system/tray/tray_details_view.h" | 16 #include "ash/system/tray/tray_details_view.h" |
| 16 #include "base/macros.h" | 17 #include "base/macros.h" |
| 17 #include "ui/gfx/font.h" | 18 #include "ui/gfx/font.h" |
| 18 #include "ui/views/controls/button/button.h" | 19 #include "ui/views/controls/button/button.h" |
| 19 | 20 |
| 20 namespace chromeos { | 21 namespace chromeos { |
| 21 class TrayAccessibilityTest; | 22 class TrayAccessibilityTest; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace views { | 25 namespace views { |
| 25 class Button; | 26 class Button; |
| 26 class ImageView; | 27 class ImageView; |
| 27 class Label; | 28 class Label; |
| 28 class View; | 29 class View; |
| 29 } | 30 } |
| 30 | 31 |
| 31 namespace ash { | 32 namespace ash { |
| 32 class HoverHighlightView; | 33 class HoverHighlightView; |
| 33 class SystemTrayItem; | 34 class SystemTrayItem; |
| 34 | 35 |
| 35 class ASH_EXPORT AccessibilityObserver { | |
| 36 public: | |
| 37 virtual ~AccessibilityObserver() {} | |
| 38 | |
| 39 // Notifies when accessibility mode changes. | |
| 40 virtual void OnAccessibilityModeChanged( | |
| 41 ui::AccessibilityNotificationVisibility notify) = 0; | |
| 42 }; | |
| 43 | |
| 44 | |
| 45 namespace tray { | 36 namespace tray { |
| 46 | 37 |
| 47 class AccessibilityPopupView : public TrayNotificationView { | 38 class AccessibilityPopupView : public TrayNotificationView { |
| 48 public: | 39 public: |
| 49 AccessibilityPopupView(SystemTrayItem* owner, uint32_t enabled_state_bits); | 40 AccessibilityPopupView(SystemTrayItem* owner, uint32_t enabled_state_bits); |
| 50 | 41 |
| 51 const views::Label* label_for_test() const { return label_; } | 42 const views::Label* label_for_test() const { return label_; } |
| 52 | 43 |
| 53 private: | 44 private: |
| 54 views::Label* CreateLabel(uint32_t enabled_state_bits); | 45 views::Label* CreateLabel(uint32_t enabled_state_bits); |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 // A11y feature status on just entering the lock screen. | 134 // A11y feature status on just entering the lock screen. |
| 144 bool show_a11y_menu_on_lock_screen_; | 135 bool show_a11y_menu_on_lock_screen_; |
| 145 | 136 |
| 146 friend class chromeos::TrayAccessibilityTest; | 137 friend class chromeos::TrayAccessibilityTest; |
| 147 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); | 138 DISALLOW_COPY_AND_ASSIGN(TrayAccessibility); |
| 148 }; | 139 }; |
| 149 | 140 |
| 150 } // namespace ash | 141 } // namespace ash |
| 151 | 142 |
| 152 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ | 143 #endif // ASH_SYSTEM_TRAY_ACCESSIBILITY_H_ |
| OLD | NEW |