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 18:21:57
Do you need this #include? The forward declaration
lisayin
2014/07/15 21:46:44
Done.
| |
9 #include "ash/system/tray_accessibility.h" | |
10 #include "chromeos/audio/cras_audio_handler.h" | |
James Cook
2014/07/15 18:21:57
Can you forward declare the class you need here?
lisayin
2014/07/15 21:46:44
To clarify, do you mean forward declare CrasAudioH
| |
11 #include "ui/chromeos/touch_exploration_controller.h" | |
12 | |
James Cook
2014/07/15 18:21:57
nit: one blank line only
lisayin
2014/07/15 21:46:44
Done.
| |
13 | |
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 CrosAccessibilityObserver | |
dmazzoni
2014/07/15 18:04:01
This class name should match the file name.
lisayin
2014/07/15 18:47:43
Done.
| |
24 : public ash::AccessibilityObserver, | |
25 public ui::TouchExplorationControllerDelegate { | |
26 public: | |
27 explicit CrosAccessibilityObserver( | |
28 RootWindowController* root_window_controller); | |
29 virtual ~CrosAccessibilityObserver(); | |
30 // Overridden from TouchExplorationControllerDelegate: | |
dmazzoni
2014/07/15 18:04:01
Newline before this.
James Cook
2014/07/15 18:21:57
nit: blank line above
Also, while this comment me
lisayin
2014/07/15 18:47:43
Done.
| |
31 virtual void const PlayVolumeAdjustSound() OVERRIDE; | |
32 virtual void AdjustSound(float volume) OVERRIDE; | |
33 | |
34 private: | |
35 void UpdateTouchExplorationState(); | |
36 // Overridden from AccessibilityObserver. | |
dmazzoni
2014/07/15 18:04:01
Separate any overridden functions from others with
James Cook
2014/07/15 18:21:57
nit: blank line above
Also, I tend to put all ove
lisayin
2014/07/15 18:47:42
Done.
| |
37 virtual void OnAccessibilityModeChanged( | |
38 AccessibilityNotificationVisibility notify) OVERRIDE; | |
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(CrosAccessibilityObserver); | |
46 }; | |
47 | |
48 } // namespace ash | |
49 | |
50 #endif // ASH_TOUCH_EXPLORATION_MANAGER_CHROMEOS_H_ | |
OLD | NEW |