Chromium Code Reviews| Index: ash/ash_touch_exploration_manager_chromeos.h |
| diff --git a/ash/ash_touch_exploration_manager_chromeos.h b/ash/ash_touch_exploration_manager_chromeos.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..352341c7ff42f2205d08595c019ba334ef6171c6 |
| --- /dev/null |
| +++ b/ash/ash_touch_exploration_manager_chromeos.h |
| @@ -0,0 +1,50 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
| +#define ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |
| + |
| +#include "ash/ash_export.h" |
| +#include "ash/system/tray_accessibility.h" |
| +#include "ui/chromeos/touch_exploration_controller.h" |
| + |
| +namespace chromeos { |
| +class CrasAudioHandler; |
| +} |
| + |
| +namespace ash { |
| +class RootWindowController; |
| + |
| +// Responsible for initializing TouchExplorationController when spoken |
| +// 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.
|
| +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.
|
| + : public ash::AccessibilityObserver, |
| + public ui::TouchExplorationControllerDelegate { |
| + public: |
| + explicit AshTouchExplorationManagerChromeOS( |
| + RootWindowController* root_window_controller); |
| + virtual ~AshTouchExplorationManagerChromeOS(); |
| + |
| + // AccessibilityObserver overrides: |
| + virtual void OnAccessibilityModeChanged( |
| + AccessibilityNotificationVisibility notify) OVERRIDE; |
| + |
| + // TouchExplorationControllerDelegate overrides: |
| + virtual void PlayVolumeAdjustSound() OVERRIDE; |
| + virtual void SetOutputLevel(float volume) OVERRIDE; |
| + |
| + private: |
| + void UpdateTouchExplorationState(); |
| + bool VolumeAdjustSoundEnabled(); |
| + |
| + scoped_ptr<ui::TouchExplorationController> touch_exploration_controller_; |
| + RootWindowController* root_window_controller_; |
| + chromeos::CrasAudioHandler* audio_handler_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(AshTouchExplorationManagerChromeOS); |
| +}; |
| + |
| +} // namespace ash |
| + |
| +#endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ |