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

Side by Side Diff: athena/wm/public/window_manager.h

Issue 601333002: ESC accelerator and consistent overview mode for Athena homecard (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address reviews, update unit tests Created 6 years, 2 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_SCREEN_PUBLIC_WINDOW_MANAGER_H_ 5 #ifndef ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_
6 #define ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_ 6 #define ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_
7 7
8 #include "athena/athena_export.h" 8 #include "athena/athena_export.h"
9 9
10 namespace athena { 10 namespace athena {
11 11
12 class WindowListProvider; 12 class WindowListProvider;
13 class WindowManagerObserver; 13 class WindowManagerObserver;
14 14
15 // Manages the application, web windows. 15 // Manages the application, web windows.
16 class ATHENA_EXPORT WindowManager { 16 class ATHENA_EXPORT WindowManager {
17 public: 17 public:
18 // Creates and deletes the singleton object of the WindowManager 18 // Creates and deletes the singleton object of the WindowManager
19 // implementation. 19 // implementation.
20 static WindowManager* Create(); 20 static WindowManager* Create();
21 static void Shutdown(); 21 static void Shutdown();
22 static WindowManager* Get(); 22 static WindowManager* Get();
23 23
24 virtual ~WindowManager() {} 24 virtual ~WindowManager() {}
25 25
26 virtual void ToggleOverview() = 0; 26 virtual void ToggleOverview() = 0;
Jun Mukai 2014/10/03 02:26:06 Can you remove ToggleOverview? It can be simply re
Greg Levin 2014/10/06 20:28:00 Done.
27 27 virtual void ActivateOverview(bool activate) = 0;
Jun Mukai 2014/10/03 02:26:07 WindowManagerImpl already has SetInOverview(). Why
Greg Levin 2014/10/06 20:28:00 SetInOverview() (private) only deals with internal
28 virtual bool IsOverviewModeActive() = 0; 28 virtual bool IsOverviewModeActive() = 0;
29 29
30 virtual void AddObserver(WindowManagerObserver* observer) = 0; 30 virtual void AddObserver(WindowManagerObserver* observer) = 0;
31 virtual void RemoveObserver(WindowManagerObserver* observer) = 0; 31 virtual void RemoveObserver(WindowManagerObserver* observer) = 0;
32 32
33 virtual void ToggleSplitViewForTest() = 0; 33 virtual void ToggleSplitViewForTest() = 0;
34 34
35 // This returns the window list provider of the current MRU order of windows. 35 // This returns the window list provider of the current MRU order of windows.
36 // The ownership remains with the WindowManager. 36 // The ownership remains with the WindowManager.
37 virtual WindowListProvider* GetWindowListProvider() = 0; 37 virtual WindowListProvider* GetWindowListProvider() = 0;
38 }; 38 };
39 39
40 } // namespace athena 40 } // namespace athena
41 41
42 #endif // ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_ 42 #endif // ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698