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

Side by Side Diff: mash/wm/bridge/wm_globals_mus.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/common/workspace/workspace_layout_manager.cc ('k') | mash/wm/bridge/wm_globals_mus.cc » ('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 MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ 5 #ifndef MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_
6 #define MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ 6 #define MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 25 matching lines...) Expand all
36 void AddRootWindowController(WmRootWindowControllerMus* controller); 36 void AddRootWindowController(WmRootWindowControllerMus* controller);
37 void RemoveRootWindowController(WmRootWindowControllerMus* controller); 37 void RemoveRootWindowController(WmRootWindowControllerMus* controller);
38 38
39 // Returns the ancestor of |window| (including |window|) that is considered 39 // Returns the ancestor of |window| (including |window|) that is considered
40 // toplevel. |window| may be null. 40 // toplevel. |window| may be null.
41 static WmWindowMus* GetToplevelAncestor(mus::Window* window); 41 static WmWindowMus* GetToplevelAncestor(mus::Window* window);
42 42
43 WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id); 43 WmRootWindowControllerMus* GetRootWindowControllerWithDisplayId(int64_t id);
44 44
45 // WmGlobals: 45 // WmGlobals:
46 ash::wm::WmWindow* NewContainerWindow() override;
46 ash::wm::WmWindow* GetFocusedWindow() override; 47 ash::wm::WmWindow* GetFocusedWindow() override;
47 ash::wm::WmWindow* GetActiveWindow() override; 48 ash::wm::WmWindow* GetActiveWindow() override;
48 ash::wm::WmWindow* GetPrimaryRootWindow() override; 49 ash::wm::WmWindow* GetPrimaryRootWindow() override;
49 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override; 50 ash::wm::WmWindow* GetRootWindowForDisplayId(int64_t display_id) override;
50 ash::wm::WmWindow* GetRootWindowForNewWindows() override; 51 ash::wm::WmWindow* GetRootWindowForNewWindows() override;
51 std::vector<ash::wm::WmWindow*> GetMruWindowList() override; 52 std::vector<ash::wm::WmWindow*> GetMruWindowList() override;
52 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override; 53 std::vector<ash::wm::WmWindow*> GetMruWindowListIgnoreModals() override;
53 bool IsForceMaximizeOnFirstRun() override; 54 bool IsForceMaximizeOnFirstRun() override;
54 bool IsUserSessionBlocked() override; 55 bool IsUserSessionBlocked() override;
55 bool IsScreenLocked() override; 56 bool IsScreenLocked() override;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 90
90 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_; 91 base::ObserverList<ash::wm::WmActivationObserver> activation_observers_;
91 92
92 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus); 93 DISALLOW_COPY_AND_ASSIGN(WmGlobalsMus);
93 }; 94 };
94 95
95 } // namespace wm 96 } // namespace wm
96 } // namespace mash 97 } // namespace mash
97 98
98 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_ 99 #endif // MASH_WM_BRIDGE_WM_GLOBALS_MUS_H_
OLDNEW
« no previous file with comments | « ash/wm/common/workspace/workspace_layout_manager.cc ('k') | mash/wm/bridge/wm_globals_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698