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.
5 #ifndef ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_
6 #define ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_
8 #include "athena/athena_export.h"
12 class WindowListProvider;
13 class WindowManagerObserver;
15 // Manages the application, web windows.
16 class ATHENA_EXPORT WindowManager {
18 // Creates and deletes the singleton object of the WindowManager
20 static WindowManager* Create();
21 static void Shutdown();
22 static WindowManager* Get();
24 virtual ~WindowManager() {}
26 virtual void EnterOverview() = 0;
27 virtual void ExitOverview() = 0;
28 virtual bool IsOverviewModeActive() = 0;
30 virtual void AddObserver(WindowManagerObserver* observer) = 0;
31 virtual void RemoveObserver(WindowManagerObserver* observer) = 0;
33 virtual void ToggleSplitViewForTest() = 0;
35 // This returns the window list provider of the current MRU order of windows.
36 // The ownership remains with the WindowManager.
37 virtual WindowListProvider* GetWindowListProvider() = 0;
42 #endif // ATHENA_SCREEN_PUBLIC_WINDOW_MANAGER_H_