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

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

Issue 1918883002: Makes Panel related classes use ash/wm/common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@phantom_window_controller
Patch Set: feedback Created 4 years, 8 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
« no previous file with comments | « ash/wm/common/wm_display_observer.h ('k') | ash/wm/common/wm_overview_mode_observer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 13
14 namespace gfx { 14 namespace gfx {
15 class Rect; 15 class Rect;
16 } 16 }
17 17
18 namespace ash { 18 namespace ash {
19 19
20 class UserMetricsRecorder; 20 class UserMetricsRecorder;
21 21
22 namespace wm { 22 namespace wm {
23 23
24 class WmActivationObserver; 24 class WmActivationObserver;
25 class WmDisplayObserver;
26 class WmOverviewModeObserver;
25 class WmWindow; 27 class WmWindow;
26 28
27 // Used for accessing global state. 29 // Used for accessing global state.
28 class ASH_EXPORT WmGlobals { 30 class ASH_EXPORT WmGlobals {
29 public: 31 public:
30 virtual ~WmGlobals() {} 32 virtual ~WmGlobals() {}
31 33
32 // This is necessary for a handful of places that is difficult to plumb 34 // This is necessary for a handful of places that is difficult to plumb
33 // through context. 35 // through context.
34 static WmGlobals* Get(); 36 static WmGlobals* Get();
(...skipping 20 matching lines...) Expand all
55 // See aura::client::CursorClient for details on these. 57 // See aura::client::CursorClient for details on these.
56 virtual void LockCursor() = 0; 58 virtual void LockCursor() = 0;
57 virtual void UnlockCursor() = 0; 59 virtual void UnlockCursor() = 0;
58 60
59 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; 61 virtual std::vector<WmWindow*> GetAllRootWindows() = 0;
60 62
61 virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0; 63 virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0;
62 64
63 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; 65 virtual void AddActivationObserver(WmActivationObserver* observer) = 0;
64 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; 66 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0;
67
68 virtual void AddDisplayObserver(WmDisplayObserver* observer) = 0;
69 virtual void RemoveDisplayObserver(WmDisplayObserver* observer) = 0;
70
71 virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
72 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
65 }; 73 };
66 74
67 } // namespace wm 75 } // namespace wm
68 } // namespace ash 76 } // namespace ash
69 77
70 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ 78 #endif // ASH_WM_COMMON_WM_GLOBALS_H_
OLDNEW
« no previous file with comments | « ash/wm/common/wm_display_observer.h ('k') | ash/wm/common/wm_overview_mode_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698