OLD | NEW |
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 WindowTreeHostImpl* host); | 235 WindowTreeHostImpl* host); |
236 | 236 |
237 // Returns the Display for |host|. | 237 // Returns the Display for |host|. |
238 mojom::DisplayPtr DisplayForHost(WindowTreeHostImpl* host); | 238 mojom::DisplayPtr DisplayForHost(WindowTreeHostImpl* host); |
239 | 239 |
240 // Overridden from ServerWindowDelegate: | 240 // Overridden from ServerWindowDelegate: |
241 mus::SurfacesState* GetSurfacesState() override; | 241 mus::SurfacesState* GetSurfacesState() override; |
242 void OnScheduleWindowPaint(const ServerWindow* window) override; | 242 void OnScheduleWindowPaint(const ServerWindow* window) override; |
243 const ServerWindow* GetRootWindow(const ServerWindow* window) const override; | 243 const ServerWindow* GetRootWindow(const ServerWindow* window) const override; |
244 void ScheduleSurfaceDestruction(ServerWindow* window) override; | 244 void ScheduleSurfaceDestruction(ServerWindow* window) override; |
| 245 ServerWindow* FindWindowForSurface( |
| 246 const ServerWindow* ancestor, |
| 247 mojom::SurfaceType surface_type, |
| 248 const ClientWindowId& client_window_id) override; |
245 | 249 |
246 // Overridden from ServerWindowObserver: | 250 // Overridden from ServerWindowObserver: |
247 void OnWindowDestroyed(ServerWindow* window) override; | 251 void OnWindowDestroyed(ServerWindow* window) override; |
248 void OnWillChangeWindowHierarchy(ServerWindow* window, | 252 void OnWillChangeWindowHierarchy(ServerWindow* window, |
249 ServerWindow* new_parent, | 253 ServerWindow* new_parent, |
250 ServerWindow* old_parent) override; | 254 ServerWindow* old_parent) override; |
251 void OnWindowHierarchyChanged(ServerWindow* window, | 255 void OnWindowHierarchyChanged(ServerWindow* window, |
252 ServerWindow* new_parent, | 256 ServerWindow* new_parent, |
253 ServerWindow* old_parent) override; | 257 ServerWindow* old_parent) override; |
254 void OnWindowBoundsChanged(ServerWindow* window, | 258 void OnWindowBoundsChanged(ServerWindow* window, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 | 320 |
317 bool got_valid_frame_decorations_; | 321 bool got_valid_frame_decorations_; |
318 | 322 |
319 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); | 323 DISALLOW_COPY_AND_ASSIGN(ConnectionManager); |
320 }; | 324 }; |
321 | 325 |
322 } // namespace ws | 326 } // namespace ws |
323 } // namespace mus | 327 } // namespace mus |
324 | 328 |
325 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ | 329 #endif // COMPONENTS_MUS_WS_CONNECTION_MANAGER_H_ |
OLD | NEW |