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

Side by Side Diff: services/ui/ws/display_manager.h

Issue 2474113002: Mus+Ash: Unified BeginFrame Skeleton (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 | « services/ui/ws/display.cc ('k') | services/ui/ws/display_manager.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 SERVICES_UI_WS_DISPLAY_MANAGER_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_MANAGER_H_
6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_ 6 #define SERVICES_UI_WS_DISPLAY_MANAGER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <set> 10 #include <set>
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void DestroyDisplay(Display* display); 44 void DestroyDisplay(Display* display);
45 void DestroyAllDisplays(); 45 void DestroyAllDisplays();
46 const std::set<Display*>& displays() { return displays_; } 46 const std::set<Display*>& displays() { return displays_; }
47 std::set<const Display*> displays() const; 47 std::set<const Display*> displays() const;
48 48
49 // Notifies when something about the Display changes. 49 // Notifies when something about the Display changes.
50 void OnDisplayUpdate(Display* display); 50 void OnDisplayUpdate(Display* display);
51 51
52 // Returns the Display that contains |window|, or null if |window| is not 52 // Returns the Display that contains |window|, or null if |window| is not
53 // attached to a display. 53 // attached to a display.
54 Display* GetDisplayContaining(ServerWindow* window); 54 Display* GetDisplayContaining(const ServerWindow* window);
55 const Display* GetDisplayContaining(const ServerWindow* window) const; 55 const Display* GetDisplayContaining(const ServerWindow* window) const;
56 56
57 // Returns the display with the specified display id, or null if there is no 57 // Returns the display with the specified display id, or null if there is no
58 // display with that id. 58 // display with that id.
59 Display* GetDisplayById(int64_t display_id); 59 Display* GetDisplayById(int64_t display_id);
60 60
61 const WindowManagerDisplayRoot* GetWindowManagerDisplayRoot( 61 const WindowManagerDisplayRoot* GetWindowManagerDisplayRoot(
62 const ServerWindow* window) const; 62 const ServerWindow* window) const;
63 // TODO(sky): constness here is wrong! fix! 63 // TODO(sky): constness here is wrong! fix!
64 WindowManagerDisplayRoot* GetWindowManagerDisplayRoot( 64 WindowManagerDisplayRoot* GetWindowManagerDisplayRoot(
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 // ID to use for next root node. 102 // ID to use for next root node.
103 ClientSpecificId next_root_id_; 103 ClientSpecificId next_root_id_;
104 104
105 DISALLOW_COPY_AND_ASSIGN(DisplayManager); 105 DISALLOW_COPY_AND_ASSIGN(DisplayManager);
106 }; 106 };
107 107
108 } // namespace ws 108 } // namespace ws
109 } // namespace ui 109 } // namespace ui
110 110
111 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_ 111 #endif // SERVICES_UI_WS_DISPLAY_MANAGER_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/display_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698