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

Unified Diff: ash/root_window_controller.h

Issue 225143007: First crack at implementing the touch explaration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes Created 6 years, 8 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/root_window_controller.h
diff --git a/ash/root_window_controller.h b/ash/root_window_controller.h
index abb8b1f51b878829bb6d2246c797880f537819bb..757f325282481eccde91ce0db2eb315a9123f773 100644
--- a/ash/root_window_controller.h
+++ b/ash/root_window_controller.h
@@ -7,10 +7,13 @@
#include <map>
+#include "ash/accessibility_delegate.h"
#include "ash/ash_export.h"
#include "ash/shelf/shelf_types.h"
#include "ash/shell_observer.h"
+#include "ash/system/tray_accessibility.h"
#include "ash/system/user/login_status.h"
+#include "ash/touch/touch_exploration_controller.h"
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "ui/aura/window.h"
@@ -79,7 +82,8 @@ class BootSplashScreen;
// The RootWindowController for particular root window is stored in
// its property (RootWindowSettings) and can be obtained using
// |GetRootWindowController(aura::WindowEventDispatcher*)| function.
-class ASH_EXPORT RootWindowController : public ShellObserver {
+class ASH_EXPORT RootWindowController : public ShellObserver,
+ public AccessibilityObserver {
public:
// Creates and Initialize the RootWindowController for primary display.
@@ -270,6 +274,12 @@ class ASH_EXPORT RootWindowController : public ShellObserver {
virtual void OnLoginStateChanged(user::LoginStatus status) OVERRIDE;
virtual void OnTouchHudProjectionToggled(bool enabled) OVERRIDE;
+ void UpdateTouchExplorationState();
+
+ // Overridden from AccessibilityObserver.
+ virtual void OnAccessibilityModeChanged(
+ AccessibilityNotificationVisibility notify) OVERRIDE;
+
scoped_ptr<aura::WindowTreeHost> host_;
RootWindowLayoutManager* root_window_layout_;
@@ -312,6 +322,8 @@ class ASH_EXPORT RootWindowController : public ShellObserver {
scoped_ptr<AnimatingDesktopController> animating_wallpaper_controller_;
scoped_ptr< ::wm::ScopedCaptureClient> capture_client_;
+ scoped_ptr<TouchExplorationController> touch_exploration_controller_;
+
DISALLOW_COPY_AND_ASSIGN(RootWindowController);
};

Powered by Google App Engine
This is Rietveld 408576698