Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Side by Side Diff: ash/ash_touch_exploration_manager_chromeos.h

Issue 385073009: Side Slide Gestures for Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Memory leak Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/ash.gyp ('k') | ash/ash_touch_exploration_manager_chromeos.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 for ChromeOS only. This class implements
21 // TouchExplorationControllerDelegate which allows touch gestures to manipulate
22 // the system.
23 class ASH_EXPORT AshTouchExplorationManager
24 : public ash::AccessibilityObserver,
25 public ui::TouchExplorationControllerDelegate {
26 public:
27 explicit AshTouchExplorationManager(
28 RootWindowController* root_window_controller);
29 virtual ~AshTouchExplorationManager();
30
31 // AccessibilityObserver overrides:
32 virtual void OnAccessibilityModeChanged(
33 AccessibilityNotificationVisibility notify) OVERRIDE;
34
35 // TouchExplorationControllerDelegate overrides:
36 virtual void PlayVolumeAdjustSound() OVERRIDE;
37 virtual void SetOutputLevel(int 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(AshTouchExplorationManager);
48 };
49
50 } // namespace ash
51
52 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/ash_touch_exploration_manager_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698