Chromium Code Reviews| 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/root_window_controller.h" | |
|
James Cook
2014/07/15 19:58:10
not needed?
lisayin
2014/07/15 21:46:45
Done.
| |
| 9 #include "ash/system/tray_accessibility.h" | |
| 10 #include "chromeos/audio/cras_audio_handler.h" | |
|
James Cook
2014/07/15 19:58:11
not needed?
lisayin
2014/07/15 21:46:45
Done.
| |
| 11 #include "ui/chromeos/touch_exploration_controller.h" | |
| 12 | |
| 13 | |
|
James Cook
2014/07/15 19:58:10
one blank line
lisayin
2014/07/15 21:46:45
Done.
| |
| 14 namespace chromeos { | |
| 15 class CrasAudioHandler; | |
| 16 } | |
| 17 | |
| 18 namespace ash { | |
| 19 class RootWindowController; | |
| 20 | |
| 21 // Responsible for initializing TouchExplorationController when spoken | |
| 22 // feedback is on. | |
| 23 class AshTouchExplorationManagerChromeOS | |
| 24 : public ash::AccessibilityObserver, | |
| 25 public ui::TouchExplorationControllerDelegate { | |
| 26 public: | |
| 27 explicit AshTouchExplorationManagerChromeOS( | |
| 28 RootWindowController* root_window_controller); | |
| 29 virtual ~AshTouchExplorationManagerChromeOS(); | |
| 30 | |
| 31 // AccessibilityObserver overrides: | |
|
James Cook
2014/07/15 19:58:11
hooray, this looks nice
| |
| 32 virtual void OnAccessibilityModeChanged( | |
| 33 AccessibilityNotificationVisibility notify) OVERRIDE; | |
| 34 | |
| 35 // TouchExplorationControllerDelegate overrides: | |
| 36 virtual void const PlayVolumeAdjustSound() OVERRIDE; | |
|
James Cook
2014/07/15 19:58:10
virtual void PlayVolumeAdjustSound() const OVERRID
lisayin
2014/07/15 21:46:45
Done.
| |
| 37 virtual void SetOutputLevel(float volume) OVERRIDE; | |
| 38 | |
| 39 private: | |
| 40 void UpdateTouchExplorationState(); | |
| 41 bool VolumeAdjustSoundEnabled(); | |
| 42 | |
| 43 scoped_ptr<ui::TouchExplorationController> touch_exploration_controller_; | |
| 44 RootWindowController* root_window_controller_; | |
| 45 chromeos::CrasAudioHandler* audio_handler_; | |
| 46 | |
| 47 DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManagerChromeOS); | |
| 48 }; | |
| 49 | |
| 50 } // namespace ash | |
| 51 | |
| 52 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | |
| OLD | NEW |