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

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

Issue 2717333002: %s/num_window_manger_states/num_window_manager_states/g (Closed)
Patch Set: Created 3 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 | « no previous file | services/ui/ws/display_unittest.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_H_ 5 #ifndef SERVICES_UI_WS_DISPLAY_H_
6 #define SERVICES_UI_WS_DISPLAY_H_ 6 #define SERVICES_UI_WS_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const_cast<const Display*>(this)->GetWindowManagerDisplayRootForUser( 102 const_cast<const Display*>(this)->GetWindowManagerDisplayRootForUser(
103 user_id)); 103 user_id));
104 } 104 }
105 const WindowManagerDisplayRoot* GetWindowManagerDisplayRootForUser( 105 const WindowManagerDisplayRoot* GetWindowManagerDisplayRootForUser(
106 const UserId& user_id) const; 106 const UserId& user_id) const;
107 WindowManagerDisplayRoot* GetActiveWindowManagerDisplayRoot() { 107 WindowManagerDisplayRoot* GetActiveWindowManagerDisplayRoot() {
108 return const_cast<WindowManagerDisplayRoot*>( 108 return const_cast<WindowManagerDisplayRoot*>(
109 const_cast<const Display*>(this)->GetActiveWindowManagerDisplayRoot()); 109 const_cast<const Display*>(this)->GetActiveWindowManagerDisplayRoot());
110 } 110 }
111 const WindowManagerDisplayRoot* GetActiveWindowManagerDisplayRoot() const; 111 const WindowManagerDisplayRoot* GetActiveWindowManagerDisplayRoot() const;
112 size_t num_window_manger_states() const { 112 size_t num_window_manager_states() const {
113 return window_manager_display_root_map_.size(); 113 return window_manager_display_root_map_.size();
114 } 114 }
115 115
116 // TODO(sky): this should only be called by WindowServer, move to interface 116 // TODO(sky): this should only be called by WindowServer, move to interface
117 // used by WindowServer. 117 // used by WindowServer.
118 // See description of WindowServer::SetFocusedWindow() for details on return 118 // See description of WindowServer::SetFocusedWindow() for details on return
119 // value. 119 // value.
120 bool SetFocusedWindow(ServerWindow* window); 120 bool SetFocusedWindow(ServerWindow* window);
121 // NOTE: this returns the focused window only if the focused window is in this 121 // NOTE: this returns the focused window only if the focused window is in this
122 // display. If this returns null focus may be in another display. 122 // display. If this returns null focus may be in another display.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 204
205 WindowManagerDisplayRootMap window_manager_display_root_map_; 205 WindowManagerDisplayRootMap window_manager_display_root_map_;
206 206
207 DISALLOW_COPY_AND_ASSIGN(Display); 207 DISALLOW_COPY_AND_ASSIGN(Display);
208 }; 208 };
209 209
210 } // namespace ws 210 } // namespace ws
211 } // namespace ui 211 } // namespace ui
212 212
213 #endif // SERVICES_UI_WS_DISPLAY_H_ 213 #endif // SERVICES_UI_WS_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/ws/display_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698