| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_TEST_UTILS_H_ | 5 #ifndef COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ | 6 #define COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 return true; | 227 return true; |
| 228 } | 228 } |
| 229 | 229 |
| 230 bool on_accelerator_called() { return on_accelerator_called_; } | 230 bool on_accelerator_called() { return on_accelerator_called_; } |
| 231 uint32_t on_accelerator_id() { return on_accelerator_id_; } | 231 uint32_t on_accelerator_id() { return on_accelerator_id_; } |
| 232 | 232 |
| 233 private: | 233 private: |
| 234 // WindowManager: | 234 // WindowManager: |
| 235 void WmSetBounds(uint32_t change_id, | 235 void WmSetBounds(uint32_t change_id, |
| 236 uint32_t window_id, | 236 uint32_t window_id, |
| 237 mojo::RectPtr bounds) override {} | 237 const gfx::Rect& bounds) override {} |
| 238 void WmSetProperty(uint32_t change_id, | 238 void WmSetProperty(uint32_t change_id, |
| 239 uint32_t window_id, | 239 uint32_t window_id, |
| 240 const mojo::String& name, | 240 const mojo::String& name, |
| 241 mojo::Array<uint8_t> value) override {} | 241 mojo::Array<uint8_t> value) override {} |
| 242 void WmCreateTopLevelWindow( | 242 void WmCreateTopLevelWindow( |
| 243 uint32_t change_id, | 243 uint32_t change_id, |
| 244 ClientSpecificId requesting_client_id, | 244 ClientSpecificId requesting_client_id, |
| 245 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; | 245 mojo::Map<mojo::String, mojo::Array<uint8_t>> properties) override; |
| 246 void WmClientJankinessChanged(ClientSpecificId client_id, | 246 void WmClientJankinessChanged(ClientSpecificId client_id, |
| 247 bool janky) override; | 247 bool janky) override; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 Id focused_window_id, | 281 Id focused_window_id, |
| 282 bool drawn) override; | 282 bool drawn) override; |
| 283 void OnEmbeddedAppDisconnected(uint32_t window) override; | 283 void OnEmbeddedAppDisconnected(uint32_t window) override; |
| 284 void OnUnembed(Id window_id) override; | 284 void OnUnembed(Id window_id) override; |
| 285 void OnLostCapture(Id window_id) override; | 285 void OnLostCapture(Id window_id) override; |
| 286 void OnTopLevelCreated(uint32_t change_id, | 286 void OnTopLevelCreated(uint32_t change_id, |
| 287 mojom::WindowDataPtr data, | 287 mojom::WindowDataPtr data, |
| 288 int64_t display_id, | 288 int64_t display_id, |
| 289 bool drawn) override; | 289 bool drawn) override; |
| 290 void OnWindowBoundsChanged(uint32_t window, | 290 void OnWindowBoundsChanged(uint32_t window, |
| 291 mojo::RectPtr old_bounds, | 291 const gfx::Rect& old_bounds, |
| 292 mojo::RectPtr new_bounds) override; | 292 const gfx::Rect& new_bounds) override; |
| 293 void OnClientAreaChanged( | 293 void OnClientAreaChanged( |
| 294 uint32_t window_id, | 294 uint32_t window_id, |
| 295 mojo::InsetsPtr new_client_area, | 295 const gfx::Insets& new_client_area, |
| 296 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; | 296 mojo::Array<gfx::Rect> new_additional_client_areas) override; |
| 297 void OnTransientWindowAdded(uint32_t window_id, | 297 void OnTransientWindowAdded(uint32_t window_id, |
| 298 uint32_t transient_window_id) override; | 298 uint32_t transient_window_id) override; |
| 299 void OnTransientWindowRemoved(uint32_t window_id, | 299 void OnTransientWindowRemoved(uint32_t window_id, |
| 300 uint32_t transient_window_id) override; | 300 uint32_t transient_window_id) override; |
| 301 void OnWindowHierarchyChanged( | 301 void OnWindowHierarchyChanged( |
| 302 uint32_t window, | 302 uint32_t window, |
| 303 uint32_t old_parent, | 303 uint32_t old_parent, |
| 304 uint32_t new_parent, | 304 uint32_t new_parent, |
| 305 mojo::Array<mojom::WindowDataPtr> windows) override; | 305 mojo::Array<mojom::WindowDataPtr> windows) override; |
| 306 void OnWindowReordered(uint32_t window_id, | 306 void OnWindowReordered(uint32_t window_id, |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 | 501 |
| 502 // Creates a new visible window as a child of the single root of |tree|. | 502 // Creates a new visible window as a child of the single root of |tree|. |
| 503 // |client_id| set to the ClientWindowId of the new window. | 503 // |client_id| set to the ClientWindowId of the new window. |
| 504 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 504 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 505 | 505 |
| 506 } // namespace test | 506 } // namespace test |
| 507 } // namespace ws | 507 } // namespace ws |
| 508 } // namespace mus | 508 } // namespace mus |
| 509 | 509 |
| 510 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 510 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |