OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | 5 #ifndef ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
6 #define ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | 6 #define ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
11 #include "ash/system/tray_accessibility.h" | 11 #include "ash/common/system/accessibility_observer.h" |
12 #include "base/macros.h" | 12 #include "base/macros.h" |
13 #include "ui/chromeos/touch_exploration_controller.h" | 13 #include "ui/chromeos/touch_exploration_controller.h" |
14 #include "ui/wm/public/activation_change_observer.h" | 14 #include "ui/wm/public/activation_change_observer.h" |
15 | 15 |
16 namespace chromeos { | 16 namespace chromeos { |
17 class CrasAudioHandler; | 17 class CrasAudioHandler; |
18 } | 18 } |
19 | 19 |
20 namespace ash { | 20 namespace ash { |
21 class RootWindowController; | 21 class RootWindowController; |
22 | 22 |
23 // Responsible for initializing TouchExplorationController when spoken | 23 // Responsible for initializing TouchExplorationController when spoken |
24 // feedback is on for ChromeOS only. This class implements | 24 // feedback is on for ChromeOS only. This class implements |
25 // TouchExplorationControllerDelegate which allows touch gestures to manipulate | 25 // TouchExplorationControllerDelegate which allows touch gestures to manipulate |
26 // the system. | 26 // the system. |
27 class ASH_EXPORT AshTouchExplorationManager | 27 class ASH_EXPORT AshTouchExplorationManager |
28 : public ash::AccessibilityObserver, | 28 : public AccessibilityObserver, |
29 public ui::TouchExplorationControllerDelegate, | 29 public ui::TouchExplorationControllerDelegate, |
30 public aura::client::ActivationChangeObserver { | 30 public aura::client::ActivationChangeObserver { |
31 public: | 31 public: |
32 explicit AshTouchExplorationManager( | 32 explicit AshTouchExplorationManager( |
33 RootWindowController* root_window_controller); | 33 RootWindowController* root_window_controller); |
34 ~AshTouchExplorationManager() override; | 34 ~AshTouchExplorationManager() override; |
35 | 35 |
36 // AccessibilityObserver overrides: | 36 // AccessibilityObserver overrides: |
37 void OnAccessibilityModeChanged( | 37 void OnAccessibilityModeChanged( |
38 ui::AccessibilityNotificationVisibility notify) override; | 38 ui::AccessibilityNotificationVisibility notify) override; |
(...skipping 24 matching lines...) Expand all Loading... |
63 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; | 63 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; |
64 RootWindowController* root_window_controller_; | 64 RootWindowController* root_window_controller_; |
65 chromeos::CrasAudioHandler* audio_handler_; | 65 chromeos::CrasAudioHandler* audio_handler_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); | 67 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); |
68 }; | 68 }; |
69 | 69 |
70 } // namespace ash | 70 } // namespace ash |
71 | 71 |
72 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | 72 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
OLD | NEW |