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

Unified 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: Addressed Comments 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 side-by-side diff with in-line comments
Download patch
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..2d16726fa959bf368826fc3a3bf81be639a52734
--- /dev/null
+++ b/ash/ash_touch_exploration_manager_chromeos.h
@@ -0,0 +1,52 @@
+// 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/root_window_controller.h"
James Cook 2014/07/15 19:58:10 not needed?
lisayin 2014/07/15 21:46:45 Done.
+#include "ash/system/tray_accessibility.h"
+#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.
+#include "ui/chromeos/touch_exploration_controller.h"
+
+
James Cook 2014/07/15 19:58:10 one blank line
lisayin 2014/07/15 21:46:45 Done.
+namespace chromeos {
+class CrasAudioHandler;
+}
+
+namespace ash {
+class RootWindowController;
+
+// Responsible for initializing TouchExplorationController when spoken
+// feedback is on.
+class AshTouchExplorationManagerChromeOS
+ : public ash::AccessibilityObserver,
+ public ui::TouchExplorationControllerDelegate {
+ public:
+ explicit AshTouchExplorationManagerChromeOS(
+ RootWindowController* root_window_controller);
+ virtual ~AshTouchExplorationManagerChromeOS();
+
+ // AccessibilityObserver overrides:
James Cook 2014/07/15 19:58:11 hooray, this looks nice
+ virtual void OnAccessibilityModeChanged(
+ AccessibilityNotificationVisibility notify) OVERRIDE;
+
+ // TouchExplorationControllerDelegate overrides:
+ 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.
+ 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_

Powered by Google App Engine
This is Rietveld 408576698