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" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 void PlayPassthroughEarcon() override; | 48 void PlayPassthroughEarcon() override; |
49 void PlayExitScreenEarcon() override; | 49 void PlayExitScreenEarcon() override; |
50 void PlayEnterScreenEarcon() override; | 50 void PlayEnterScreenEarcon() override; |
51 void HandleAccessibilityGesture(ui::AXGesture gesture) override; | 51 void HandleAccessibilityGesture(ui::AXGesture gesture) override; |
52 | 52 |
53 // display::DisplayObserver overrides: | 53 // display::DisplayObserver overrides: |
54 void OnDisplayMetricsChanged(const display::Display& display, | 54 void OnDisplayMetricsChanged(const display::Display& display, |
55 uint32_t changed_metrics) override; | 55 uint32_t changed_metrics) override; |
56 | 56 |
57 // TouchAccessibilityEnablerDelegate overrides: | 57 // TouchAccessibilityEnablerDelegate overrides: |
| 58 void OnTwoFingerTouchStart() override; |
| 59 void OnTwoFingerTouchStop() override; |
58 void PlaySpokenFeedbackToggleCountdown(int tick_count) override; | 60 void PlaySpokenFeedbackToggleCountdown(int tick_count) override; |
59 void ToggleSpokenFeedback() override; | 61 void ToggleSpokenFeedback() override; |
60 | 62 |
61 // aura::client::ActivationChangeObserver overrides: | 63 // aura::client::ActivationChangeObserver overrides: |
62 void OnWindowActivated( | 64 void OnWindowActivated( |
63 aura::client::ActivationChangeObserver::ActivationReason reason, | 65 aura::client::ActivationChangeObserver::ActivationReason reason, |
64 aura::Window* gained_active, | 66 aura::Window* gained_active, |
65 aura::Window* lost_active) override; | 67 aura::Window* lost_active) override; |
66 | 68 |
67 // Update the touch exploration controller so that synthesized touch | 69 // Update the touch exploration controller so that synthesized touch |
68 // events are anchored at this point. | 70 // events are anchored at this point. |
69 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); | 71 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); |
70 | 72 |
71 private: | 73 private: |
72 void UpdateTouchExplorationState(); | 74 void UpdateTouchExplorationState(); |
73 bool VolumeAdjustSoundEnabled(); | 75 bool VolumeAdjustSoundEnabled(); |
74 | 76 |
75 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; | 77 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; |
76 std::unique_ptr<ui::TouchAccessibilityEnabler> touch_accessibility_enabler_; | 78 std::unique_ptr<ui::TouchAccessibilityEnabler> touch_accessibility_enabler_; |
77 RootWindowController* root_window_controller_; | 79 RootWindowController* root_window_controller_; |
78 chromeos::CrasAudioHandler* audio_handler_; | 80 chromeos::CrasAudioHandler* audio_handler_; |
79 const bool enable_chromevox_arc_support_; | 81 const bool enable_chromevox_arc_support_; |
80 | 82 |
81 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); | 83 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); |
82 }; | 84 }; |
83 | 85 |
84 } // namespace ash | 86 } // namespace ash |
85 | 87 |
86 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | 88 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
OLD | NEW |