diff options
Diffstat (limited to 'athena/wm/split_view_controller.h')
-rw-r--r-- | athena/wm/split_view_controller.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/athena/wm/split_view_controller.h b/athena/wm/split_view_controller.h new file mode 100644 index 0000000..e0652de --- /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_ |