| 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 SERVICES_UI_WS_WINDOW_SERVER_H_ | 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_H_ |
| 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ | 6 #define SERVICES_UI_WS_WINDOW_SERVER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 // Returns a change id for the window manager that is associated with | 147 // Returns a change id for the window manager that is associated with |
| 148 // |source| and |client_change_id|. When the window manager replies | 148 // |source| and |client_change_id|. When the window manager replies |
| 149 // WindowManagerChangeCompleted() is called to obtain the original source | 149 // WindowManagerChangeCompleted() is called to obtain the original source |
| 150 // and client supplied change_id that initiated the called. | 150 // and client supplied change_id that initiated the called. |
| 151 uint32_t GenerateWindowManagerChangeId(WindowTree* source, | 151 uint32_t GenerateWindowManagerChangeId(WindowTree* source, |
| 152 uint32_t client_change_id); | 152 uint32_t client_change_id); |
| 153 | 153 |
| 154 // Called when a response from the window manager is obtained. Calls to | 154 // Called when a response from the window manager is obtained. Calls to |
| 155 // the client that initiated the change with the change id originally | 155 // the client that initiated the change with the change id originally |
| 156 // supplied by the client. | 156 // supplied by the client. |
| 157 void WindowManagerSetBoundsResponse( |
| 158 uint32_t window_manager_change_id, |
| 159 const gfx::Rect& bounds, |
| 160 const cc::LocalSurfaceId& local_surface_id); |
| 157 void WindowManagerChangeCompleted(uint32_t window_manager_change_id, | 161 void WindowManagerChangeCompleted(uint32_t window_manager_change_id, |
| 158 bool success); | 162 bool success); |
| 159 void WindowManagerCreatedTopLevelWindow(WindowTree* wm_tree, | 163 void WindowManagerCreatedTopLevelWindow(WindowTree* wm_tree, |
| 160 uint32_t window_manager_change_id, | 164 uint32_t window_manager_change_id, |
| 161 const ServerWindow* window); | 165 const ServerWindow* window); |
| 162 | 166 |
| 163 // Called when we get an unexpected message from the WindowManager. | 167 // Called when we get an unexpected message from the WindowManager. |
| 164 // TODO(sky): decide what we want to do here. | 168 // TODO(sky): decide what we want to do here. |
| 165 void WindowManagerSentBogusMessage() {} | 169 void WindowManagerSentBogusMessage() {} |
| 166 | 170 |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 // State for rendering into a Surface. | 391 // State for rendering into a Surface. |
| 388 cc::mojom::DisplayCompositorPtr display_compositor_; | 392 cc::mojom::DisplayCompositorPtr display_compositor_; |
| 389 | 393 |
| 390 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 394 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 391 }; | 395 }; |
| 392 | 396 |
| 393 } // namespace ws | 397 } // namespace ws |
| 394 } // namespace ui | 398 } // namespace ui |
| 395 | 399 |
| 396 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ | 400 #endif // SERVICES_UI_WS_WINDOW_SERVER_H_ |
| OLD | NEW |