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

Side by Side Diff: ash/wm/common/wm_globals.h

Issue 1923983003: Makes WorkspaceLayoutManager use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix always-on-top and remove mus changes Created 4 years, 7 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 ASH_WM_COMMON_WM_GLOBALS_H_ 5 #ifndef ASH_WM_COMMON_WM_GLOBALS_H_
6 #define ASH_WM_COMMON_WM_GLOBALS_H_ 6 #define ASH_WM_COMMON_WM_GLOBALS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual WmWindow* GetRootWindowForNewWindows() = 0; 47 virtual WmWindow* GetRootWindowForNewWindows() = 0;
48 48
49 // returns the list of more recently used windows excluding modals. 49 // returns the list of more recently used windows excluding modals.
50 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; 50 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0;
51 51
52 // Returns true if the first window shown on first run should be 52 // Returns true if the first window shown on first run should be
53 // unconditionally maximized, overriding the heuristic that normally chooses 53 // unconditionally maximized, overriding the heuristic that normally chooses
54 // the window size. 54 // the window size.
55 virtual bool IsForceMaximizeOnFirstRun() = 0; 55 virtual bool IsForceMaximizeOnFirstRun() = 0;
56 56
57 virtual bool IsScreenLocked() = 0;
58
57 // See aura::client::CursorClient for details on these. 59 // See aura::client::CursorClient for details on these.
58 virtual void LockCursor() = 0; 60 virtual void LockCursor() = 0;
59 virtual void UnlockCursor() = 0; 61 virtual void UnlockCursor() = 0;
60 62
61 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; 63 virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
62 64
63 virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0; 65 virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0;
64 66
65 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; 67 virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
66 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; 68 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
67 69
68 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0; 70 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
69 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0; 71 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
70 72
71 virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0; 73 virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
72 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; 74 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
73 }; 75 };
74 76
75 } // namespace wm 77 } // namespace wm
76 } // namespace ash 78 } // namespace ash
77 79
78 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ 80 #endif // ASH_WM_COMMON_WM_GLOBALS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698