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

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

Issue 2024993002: Makes RootWindowController window creation in terms of common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge 2 trunk Created 4 years, 6 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/aura/wm_window_aura.cc ('k') | ash/wm/common/wm_window.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 <memory> 10 #include <memory>
(...skipping 22 matching lines...) Expand all
33 // Used for accessing global state. 33 // Used for accessing global state.
34 class ASH_EXPORT WmGlobals { 34 class ASH_EXPORT WmGlobals {
35 public: 35 public:
36 virtual ~WmGlobals() {} 36 virtual ~WmGlobals() {}
37 37
38 // This is necessary for a handful of places that is difficult to plumb 38 // This is necessary for a handful of places that is difficult to plumb
39 // through context. 39 // through context.
40 static void Set(WmGlobals* instance); 40 static void Set(WmGlobals* instance);
41 static WmGlobals* Get(); 41 static WmGlobals* Get();
42 42
43 // Creates a new window used as a container of other windows. No painting is
44 // done to the created window.
45 virtual WmWindow* NewContainerWindow() = 0;
46
43 virtual WmWindow* GetFocusedWindow() = 0; 47 virtual WmWindow* GetFocusedWindow() = 0;
44 virtual WmWindow* GetActiveWindow() = 0; 48 virtual WmWindow* GetActiveWindow() = 0;
45 49
46 virtual WmWindow* GetPrimaryRootWindow() = 0; 50 virtual WmWindow* GetPrimaryRootWindow() = 0;
47 51
48 // Returns the root window for the specified display. 52 // Returns the root window for the specified display.
49 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0; 53 virtual WmWindow* GetRootWindowForDisplayId(int64_t display_id) = 0;
50 54
51 // Returns the root window that newly created windows should be added to. 55 // Returns the root window that newly created windows should be added to.
52 // NOTE: this returns the root, newly created window should be added to the 56 // NOTE: this returns the root, newly created window should be added to the
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; 101 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0;
98 102
99 private: 103 private:
100 static WmGlobals* instance_; 104 static WmGlobals* instance_;
101 }; 105 };
102 106
103 } // namespace wm 107 } // namespace wm
104 } // namespace ash 108 } // namespace ash
105 109
106 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ 110 #endif // ASH_WM_COMMON_WM_GLOBALS_H_
OLDNEW
« no previous file with comments | « ash/wm/aura/wm_window_aura.cc ('k') | ash/wm/common/wm_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698