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

Unified Diff: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h

Issue 471973002: Single pod autofocus disabled for touch view mode. Delegate class created for ash interactions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Dummy handler added. Created 6 years, 3 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: chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h
diff --git a/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h b/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..58050a1dd793e6625d79f794fd1176161bf7cbe5
--- /dev/null
+++ b/chrome/browser/ui/webui/chromeos/touch_view_controller_delegate.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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_
+#define CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_
+
+#include "ash/shell_observer.h"
+#include "base/observer_list.h"
+
+namespace chromeos {
+
+// An interface for ash::MaximizeModeController.
+class TouchViewControllerDelegate : public ash::ShellObserver {
+ public:
+ // Observer that reports changes to the state of MaximizeModeController's
+ // rotation lock.
+ class Observer {
+ public:
+ // Invoked when maximize mode started/ended.
+ virtual void OnMaximizeModeStarted() {}
+ virtual void OnMaximizeModeEnded() {}
+
+ protected:
+ virtual ~Observer() {}
+ };
+
+ TouchViewControllerDelegate();
+ virtual ~TouchViewControllerDelegate();
+
+ // Add/Remove observers.
+ void AddObserver(Observer* observer);
+ void RemoveObserver(Observer* observer);
+
+ // Test if the Maximize Mode is enabled or not.
+ bool IsMaximizeModeEnabled() const;
+
+
+ private:
+ // ash::ShellObserver implementation:
+ virtual void OnMaximizeModeStarted() OVERRIDE;
+ virtual void OnMaximizeModeEnded() OVERRIDE;
+
+ // Mode state change observers.
+ ObserverList<Observer> observers_;
+
+ DISALLOW_COPY_AND_ASSIGN(TouchViewControllerDelegate);
+};
+
+} // namespace chromeos
+
+#endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_TOUCH_VIEW_CONTROLLER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698