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

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

Issue 546123002: Ensure that an activity is activated when overview mode is exited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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 SplitViewController; 12 class SplitViewController;
13 class WindowListProvider; 13 class WindowListProvider;
14 14
15 class WindowOverviewModeDelegate { 15 class WindowOverviewModeDelegate {
16 public: 16 public:
17 virtual ~WindowOverviewModeDelegate() {} 17 virtual ~WindowOverviewModeDelegate() {}
18 18
19 // Called to activate |window|, set its bounds and set its visibility when
20 // |window| is selected in overview mode. |window| is NULL if there are no
21 // windows in overview mode.
19 virtual void OnSelectWindow(aura::Window* window) = 0; 22 virtual void OnSelectWindow(aura::Window* window) = 0;
20 23
21 // Gets into split-view mode with |left| on the left-side of the screen, and 24 // Gets into split-view mode with |left| on the left-side of the screen, and
22 // |right| on the right-side. If |left| or |right| is NULL, then the delegate 25 // |right| on the right-side. If |left| or |right| is NULL, then the delegate
23 // selects the best option in its place. 26 // selects the best option in its place.
24 virtual void OnSplitViewMode(aura::Window* left, 27 virtual void OnSelectSplitViewWindow(aura::Window* left,
25 aura::Window* right) = 0; 28 aura::Window* right,
29 aura::Window* to_activate) = 0;
26 }; 30 };
27 31
28 class WindowOverviewMode { 32 class WindowOverviewMode {
29 public: 33 public:
30 virtual ~WindowOverviewMode() {} 34 virtual ~WindowOverviewMode() {}
31 35
32 static scoped_ptr<WindowOverviewMode> Create( 36 static scoped_ptr<WindowOverviewMode> Create(
33 aura::Window* container, 37 aura::Window* container,
34 const WindowListProvider* window_list_provider, 38 const WindowListProvider* window_list_provider,
35 SplitViewController* split_view_controller, 39 SplitViewController* split_view_controller,
36 WindowOverviewModeDelegate* delegate); 40 WindowOverviewModeDelegate* delegate);
37 }; 41 };
38 42
39 } // namespace athena 43 } // namespace athena
40 44
41 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_ 45 #endif // ATHENA_WM_WINDOW_OVERVIEW_MODE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698