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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 void PlayExitScreenEarcon() override; | 45 void PlayExitScreenEarcon() override; |
46 void PlayEnterScreenEarcon() override; | 46 void PlayEnterScreenEarcon() override; |
47 void HandleAccessibilityGesture(ui::AXGesture gesture) override; | 47 void HandleAccessibilityGesture(ui::AXGesture gesture) override; |
48 | 48 |
49 // aura::client::ActivationChangeObserver overrides: | 49 // aura::client::ActivationChangeObserver overrides: |
50 void OnWindowActivated( | 50 void OnWindowActivated( |
51 aura::client::ActivationChangeObserver::ActivationReason reason, | 51 aura::client::ActivationChangeObserver::ActivationReason reason, |
52 aura::Window* gained_active, | 52 aura::Window* gained_active, |
53 aura::Window* lost_active) override; | 53 aura::Window* lost_active) override; |
54 | 54 |
| 55 // Update the touch exploration controller so that synthesized touch |
| 56 // events are anchored at this point. |
| 57 void SetTouchAccessibilityAnchorPoint(const gfx::Point& anchor_point); |
| 58 |
55 private: | 59 private: |
56 void UpdateTouchExplorationState(); | 60 void UpdateTouchExplorationState(); |
57 bool VolumeAdjustSoundEnabled(); | 61 bool VolumeAdjustSoundEnabled(); |
58 | 62 |
59 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; | 63 std::unique_ptr<ui::TouchExplorationController> touch_exploration_controller_; |
60 RootWindowController* root_window_controller_; | 64 RootWindowController* root_window_controller_; |
61 chromeos::CrasAudioHandler* audio_handler_; | 65 chromeos::CrasAudioHandler* audio_handler_; |
62 | 66 |
63 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); | 67 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManager); |
64 }; | 68 }; |
65 | 69 |
66 } // namespace ash | 70 } // namespace ash |
67 | 71 |
68 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | 72 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
OLD | NEW |