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

Unified Diff: athena/wm/split_view_controller.h

Issue 394833004: Split View Mode: Support for the 2-finger bezel scroll. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing a rebase issue. 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: athena/wm/split_view_controller.h
diff --git a/athena/wm/split_view_controller.h b/athena/wm/split_view_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..e0652def1b19050b568964926916aee06aac731f
--- /dev/null
+++ b/athena/wm/split_view_controller.h
@@ -0,0 +1,32 @@
+// 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 ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_
+#define ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_
+
+#include "athena/wm/bezel_controller.h"
+#include "base/memory/scoped_ptr.h"
+
+namespace athena {
+
+// Responsible for entering split view mode, exiting from split view mode, and
+// laying out the windows in split view mode.
+class SplitViewController : public BezelController::ScrollDelegate {
+ public:
+ SplitViewController();
+ virtual ~SplitViewController();
+
+ private:
+ // BezelController::ScrollDelegate overrides.
+ virtual void ScrollBegin(BezelController::Bezel bezel, float delta) OVERRIDE;
+ virtual void ScrollEnd() OVERRIDE;
+ virtual void ScrollUpdate(float delta) OVERRIDE;
+ virtual bool CanScroll() OVERRIDE;
+
+ DISALLOW_COPY_AND_ASSIGN(SplitViewController);
+};
+
+} // namespace athena
+
+#endif // ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698