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

Side by Side Diff: components/mus/ws/window_tree.h

Issue 1766943002: Refators display related functionality into own class (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 9 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 | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_tree.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 2014 The Chromium Authors. All rights reserved. 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 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 COMPONENTS_MUS_WS_WINDOW_TREE_H_ 5 #ifndef COMPONENTS_MUS_WS_WINDOW_TREE_H_
6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_ 6 #define COMPONENTS_MUS_WS_WINDOW_TREE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 16 matching lines...) Expand all
27 namespace gfx { 27 namespace gfx {
28 class Insets; 28 class Insets;
29 class Rect; 29 class Rect;
30 } 30 }
31 31
32 namespace mus { 32 namespace mus {
33 namespace ws { 33 namespace ws {
34 34
35 class AccessPolicy; 35 class AccessPolicy;
36 class ConnectionManager; 36 class ConnectionManager;
37 class DisplayManager;
37 class Display; 38 class Display;
38 class ServerWindow; 39 class ServerWindow;
39 class TargetedEvent; 40 class TargetedEvent;
40 class WindowTreeTest; 41 class WindowTreeTest;
41 42
42 namespace test { 43 namespace test {
43 class WindowTreeTestApi; 44 class WindowTreeTestApi;
44 } 45 }
45 46
46 // WindowTree represents a view onto portions of the window tree. The parts of 47 // WindowTree represents a view onto portions of the window tree. The parts of
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 }; 206 };
206 207
207 enum class RemoveRootReason { 208 enum class RemoveRootReason {
208 // The window is being removed. 209 // The window is being removed.
209 DELETED, 210 DELETED,
210 211
211 // Another connection is being embedded in the window. 212 // Another connection is being embedded in the window.
212 EMBED, 213 EMBED,
213 }; 214 };
214 215
216 DisplayManager* display_manager();
217 const DisplayManager* display_manager() const;
218
215 // Used when this tree is the window manager. 219 // Used when this tree is the window manager.
216 Display* GetDisplayForWindowManager(); 220 Display* GetDisplayForWindowManager();
217 221
218 bool ShouldRouteToWindowManager(const ServerWindow* window) const; 222 bool ShouldRouteToWindowManager(const ServerWindow* window) const;
219 223
220 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const; 224 ClientWindowId ClientWindowIdForWindow(const ServerWindow* window) const;
221 225
222 // Returns true if |id| is a valid WindowId for a new window. 226 // Returns true if |id| is a valid WindowId for a new window.
223 bool IsValidIdForNewWindow(const ClientWindowId& id) const; 227 bool IsValidIdForNewWindow(const ClientWindowId& id) const;
224 228
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 418
415 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_; 419 scoped_ptr<WaitingForTopLevelWindowInfo> waiting_for_top_level_window_info_;
416 420
417 DISALLOW_COPY_AND_ASSIGN(WindowTree); 421 DISALLOW_COPY_AND_ASSIGN(WindowTree);
418 }; 422 };
419 423
420 } // namespace ws 424 } // namespace ws
421 } // namespace mus 425 } // namespace mus
422 426
423 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_ 427 #endif // COMPONENTS_MUS_WS_WINDOW_TREE_H_
OLDNEW
« no previous file with comments | « components/mus/ws/window_manager_state.cc ('k') | components/mus/ws/window_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698