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 ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_ |
| 6 #define ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #include "athena/wm/bezel_controller.h" |
| 9 #include "base/memory/scoped_ptr.h" |
| 10 |
| 11 namespace athena { |
| 12 |
| 13 // Responsible for entering split view mode, exiting from split view mode, and |
| 14 // laying out the windows in split view mode. |
| 15 class SplitViewController : public BezelController::ScrollDelegate { |
| 16 public: |
| 17 SplitViewController(); |
| 18 virtual ~SplitViewController(); |
| 19 |
| 20 private: |
| 21 // BezelController::ScrollDelegate overrides. |
| 22 virtual void ScrollBegin(BezelController::Bezel bezel, float delta) OVERRIDE; |
| 23 virtual void ScrollEnd() OVERRIDE; |
| 24 virtual void ScrollUpdate(float delta) OVERRIDE; |
| 25 virtual bool CanScroll() OVERRIDE; |
| 26 |
| 27 DISALLOW_COPY_AND_ASSIGN(SplitViewController); |
| 28 }; |
| 29 |
| 30 } // namespace athena |
| 31 |
| 32 #endif // ATHENA_WM_SPLIT_VIEW_CONTROLLER_H_ |
OLD | NEW |