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

Side by Side Diff: athena/wm/window_overview_mode.h

Issue 459613008: athena: Allow getting into split-view mode from overview-mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ 5 #ifndef ATHENA_WM_WINDOW_OVERVIEW_MODE_H_
6 #define ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ 6 #define ATHENA_WM_WINDOW_OVERVIEW_MODE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/window.h" 9 #include "ui/aura/window.h"
10 10
11 namespace athena { 11 namespace athena {
12 class WindowListProvider; 12 class WindowListProvider;
13 13
14 class WindowOverviewModeDelegate { 14 class WindowOverviewModeDelegate {
15 public: 15 public:
16 virtual ~WindowOverviewModeDelegate() {} 16 virtual ~WindowOverviewModeDelegate() {}
17 17
18 virtual void OnSelectWindow(aura::Window* window) = 0; 18 virtual void OnSelectWindow(aura::Window* window) = 0;
19
20 // Gets into split-view mode with |left| on the left-side of the screen, and
21 // |right| on the right-side. If |left| or |right| is NULL, then the delegate
22 // selects the best option in its place.
23 virtual void OnSplitViewMode(aura::Window* left,
24 aura::Window* right) = 0;
19 }; 25 };
20 26
21 class WindowOverviewMode { 27 class WindowOverviewMode {
22 public: 28 public:
23 virtual ~WindowOverviewMode() {} 29 virtual ~WindowOverviewMode() {}
24 30
25 static scoped_ptr<WindowOverviewMode> Create( 31 static scoped_ptr<WindowOverviewMode> Create(
26 aura::Window* container, 32 aura::Window* container,
27 const WindowListProvider* window_list_provider, 33 const WindowListProvider* window_list_provider,
28 WindowOverviewModeDelegate* delegate); 34 WindowOverviewModeDelegate* delegate);
29 }; 35 };
30 36
31 } // namespace athena 37 } // namespace athena
32 38
33 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ 39 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698