OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | |
6 #define ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | |
7 | |
8 #include "ash/ash_export.h" | |
9 #include "ash/system/tray_accessibility.h" | |
10 #include "ui/chromeos/touch_exploration_controller.h" | |
11 | |
12 namespace chromeos { | |
13 class CrasAudioHandler; | |
14 } | |
15 | |
16 namespace ash { | |
17 class RootWindowController; | |
18 | |
19 // Responsible for initializing TouchExplorationController when spoken | |
20 // feedback is on. | |
dmazzoni
2014/07/16 16:54:39
I'd also say that this class implements the TouchE
lisayin
2014/07/17 16:56:17
Done.
| |
21 class ASH_EXPORT AshTouchExplorationManagerChromeOS | |
dmazzoni
2014/07/16 16:54:39
Optional: I think it's fine to call this class Ash
lisayin
2014/07/17 16:56:17
Done.
| |
22 : public ash::AccessibilityObserver, | |
23 public ui::TouchExplorationControllerDelegate { | |
24 public: | |
25 explicit AshTouchExplorationManagerChromeOS( | |
26 RootWindowController* root_window_controller); | |
27 virtual ~AshTouchExplorationManagerChromeOS(); | |
28 | |
29 // AccessibilityObserver overrides: | |
30 virtual void OnAccessibilityModeChanged( | |
31 AccessibilityNotificationVisibility notify) OVERRIDE; | |
32 | |
33 // TouchExplorationControllerDelegate overrides: | |
34 virtual void PlayVolumeAdjustSound() OVERRIDE; | |
35 virtual void SetOutputLevel(float volume) OVERRIDE; | |
36 | |
37 private: | |
38 void UpdateTouchExplorationState(); | |
39 bool VolumeAdjustSoundEnabled(); | |
40 | |
41 scoped_ptr<ui::TouchExplorationController> touch_exploration_controller_; | |
42 RootWindowController* root_window_controller_; | |
43 chromeos::CrasAudioHandler* audio_handler_; | |
44 | |
45 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManagerChromeOS); | |
46 }; | |
47 | |
48 } // namespace ash | |
49 | |
50 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | |
OLD | NEW |