| 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_WINDOW_SERVER_H_ | 5 #ifndef COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| 6 #define COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 6 #define COMPONENTS_MUS_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 uint32_t client_change_id); | 147 uint32_t client_change_id); |
| 148 | 148 |
| 149 // Called when a response from the window manager is obtained. Calls to | 149 // Called when a response from the window manager is obtained. Calls to |
| 150 // the client that initiated the change with the change id originally | 150 // the client that initiated the change with the change id originally |
| 151 // supplied by the client. | 151 // supplied by the client. |
| 152 void WindowManagerChangeCompleted(uint32_t window_manager_change_id, | 152 void WindowManagerChangeCompleted(uint32_t window_manager_change_id, |
| 153 bool success); | 153 bool success); |
| 154 void WindowManagerCreatedTopLevelWindow(WindowTree* wm_tree, | 154 void WindowManagerCreatedTopLevelWindow(WindowTree* wm_tree, |
| 155 uint32_t window_manager_change_id, | 155 uint32_t window_manager_change_id, |
| 156 const ServerWindow* window); | 156 const ServerWindow* window); |
| 157 void WindowManagerCompletedMoveLoop(uint32_t window_manager_change_id, |
| 158 const ServerWindow* window, |
| 159 bool completed); |
| 157 | 160 |
| 158 // Called when we get an unexpected message from the WindowManager. | 161 // Called when we get an unexpected message from the WindowManager. |
| 159 // TODO(sky): decide what we want to do here. | 162 // TODO(sky): decide what we want to do here. |
| 160 void WindowManagerSentBogusMessage() {} | 163 void WindowManagerSentBogusMessage() {} |
| 161 | 164 |
| 162 // These functions trivially delegate to all WindowTrees, which in | 165 // These functions trivially delegate to all WindowTrees, which in |
| 163 // term notify their clients. | 166 // term notify their clients. |
| 164 void ProcessWindowBoundsChanged(const ServerWindow* window, | 167 void ProcessWindowBoundsChanged(const ServerWindow* window, |
| 165 const gfx::Rect& old_bounds, | 168 const gfx::Rect& old_bounds, |
| 166 const gfx::Rect& new_bounds); | 169 const gfx::Rect& new_bounds); |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 // and not per display. | 324 // and not per display. |
| 322 bool created_one_display_ = false; | 325 bool created_one_display_ = false; |
| 323 | 326 |
| 324 DISALLOW_COPY_AND_ASSIGN(WindowServer); | 327 DISALLOW_COPY_AND_ASSIGN(WindowServer); |
| 325 }; | 328 }; |
| 326 | 329 |
| 327 } // namespace ws | 330 } // namespace ws |
| 328 } // namespace mus | 331 } // namespace mus |
| 329 | 332 |
| 330 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ | 333 #endif // COMPONENTS_MUS_WS_WINDOW_SERVER_H_ |
| OLD | NEW |