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

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

Issue 1639223003: Makes it so each windowtreeclient can use whatever ids it wants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cleanup Created 4 years, 10 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 | components/mus/ws/connection_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 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_CONNECTION_MANAGER_H_ 5 #ifndef COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ 6 #define COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 uint32_t GenerateWindowManagerChangeId(WindowTreeImpl* source, 142 uint32_t GenerateWindowManagerChangeId(WindowTreeImpl* source,
143 uint32_t client_change_id); 143 uint32_t client_change_id);
144 144
145 // Called when a response from the window manager is obtained. Calls to 145 // Called when a response from the window manager is obtained. Calls to
146 // the client that initiated the change with the change id originally 146 // the client that initiated the change with the change id originally
147 // supplied by the client. 147 // supplied by the client.
148 void WindowManagerChangeCompleted(uint32_t window_manager_change_id, 148 void WindowManagerChangeCompleted(uint32_t window_manager_change_id,
149 bool success); 149 bool success);
150 void WindowManagerCreatedTopLevelWindow(WindowTreeImpl* wm_connection, 150 void WindowManagerCreatedTopLevelWindow(WindowTreeImpl* wm_connection,
151 uint32_t window_manager_change_id, 151 uint32_t window_manager_change_id,
152 Id transport_window_id); 152 const ServerWindow* window);
153
154 // Called when we get an unexpected message from the WindowManager.
155 // TODO(sky): decide what we want to do here.
156 void WindowManagerSentBogusMessage() {}
153 157
154 // These functions trivially delegate to all WindowTreeImpls, which in 158 // These functions trivially delegate to all WindowTreeImpls, which in
155 // term notify their clients. 159 // term notify their clients.
156 void ProcessWindowDestroyed(ServerWindow* window); 160 void ProcessWindowDestroyed(ServerWindow* window);
157 void ProcessWindowBoundsChanged(const ServerWindow* window, 161 void ProcessWindowBoundsChanged(const ServerWindow* window,
158 const gfx::Rect& old_bounds, 162 const gfx::Rect& old_bounds,
159 const gfx::Rect& new_bounds); 163 const gfx::Rect& new_bounds);
160 void ProcessClientAreaChanged( 164 void ProcessClientAreaChanged(
161 const ServerWindow* window, 165 const ServerWindow* window,
162 const gfx::Insets& new_client_area, 166 const gfx::Insets& new_client_area,
(...skipping 30 matching lines...) Expand all
193 uint32_t client_change_id; 197 uint32_t client_change_id;
194 }; 198 };
195 199
196 using InFlightWindowManagerChangeMap = 200 using InFlightWindowManagerChangeMap =
197 std::map<uint32_t, InFlightWindowManagerChange>; 201 std::map<uint32_t, InFlightWindowManagerChange>;
198 202
199 bool GetAndClearInFlightWindowManagerChange( 203 bool GetAndClearInFlightWindowManagerChange(
200 uint32_t window_manager_change_id, 204 uint32_t window_manager_change_id,
201 InFlightWindowManagerChange* change); 205 InFlightWindowManagerChange* change);
202 206
203 // Called when we get an unexpected message from the WindowManager.
204 // TODO(sky): decide what we want to do here.
205 void WindowManagerSentBogusMessage(WindowTreeImpl* connection) {}
206
207 // Invoked when a connection is about to execute a window server operation. 207 // Invoked when a connection is about to execute a window server operation.
208 // Subsequently followed by FinishOperation() once the change is done. 208 // Subsequently followed by FinishOperation() once the change is done.
209 // 209 //
210 // Changes should never nest, meaning each PrepareForOperation() must be 210 // Changes should never nest, meaning each PrepareForOperation() must be
211 // balanced with a call to FinishOperation() with no PrepareForOperation() 211 // balanced with a call to FinishOperation() with no PrepareForOperation()
212 // in between. 212 // in between.
213 void PrepareForOperation(Operation* op); 213 void PrepareForOperation(Operation* op);
214 214
215 // Balances a call to PrepareForOperation(). 215 // Balances a call to PrepareForOperation().
216 void FinishOperation(); 216 void FinishOperation();
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 316
317 bool got_valid_frame_decorations_; 317 bool got_valid_frame_decorations_;
318 318
319 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); 319 DISALLOW_COPY_AND_ASSIGN(ConnectionManager);
320 }; 320 };
321 321
322 } // namespace ws 322 } // namespace ws
323 } // namespace mus 323 } // namespace mus
324 324
325 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ 325 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | components/mus/ws/connection_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698