| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 | 270 |
| 271 void set_record_on_change_completed(bool value) { | 271 void set_record_on_change_completed(bool value) { |
| 272 record_on_change_completed_ = value; | 272 record_on_change_completed_ = value; |
| 273 } | 273 } |
| 274 | 274 |
| 275 private: | 275 private: |
| 276 // WindowTreeClient: | 276 // WindowTreeClient: |
| 277 void OnEmbed(uint16_t client_id, | 277 void OnEmbed(uint16_t client_id, |
| 278 mojom::WindowDataPtr root, | 278 mojom::WindowDataPtr root, |
| 279 mus::mojom::WindowTreePtr tree, | 279 mus::mojom::WindowTreePtr tree, |
| 280 int64_t display_id, |
| 280 Id focused_window_id, | 281 Id focused_window_id, |
| 281 bool drawn) override; | 282 bool drawn) override; |
| 282 void OnEmbeddedAppDisconnected(uint32_t window) override; | 283 void OnEmbeddedAppDisconnected(uint32_t window) override; |
| 283 void OnUnembed(Id window_id) override; | 284 void OnUnembed(Id window_id) override; |
| 284 void OnLostCapture(Id window_id) override; | 285 void OnLostCapture(Id window_id) override; |
| 285 void OnTopLevelCreated(uint32_t change_id, | 286 void OnTopLevelCreated(uint32_t change_id, |
| 286 mojom::WindowDataPtr data, | 287 mojom::WindowDataPtr data, |
| 288 int64_t display_id, |
| 287 bool drawn) override; | 289 bool drawn) override; |
| 288 void OnWindowBoundsChanged(uint32_t window, | 290 void OnWindowBoundsChanged(uint32_t window, |
| 289 mojo::RectPtr old_bounds, | 291 mojo::RectPtr old_bounds, |
| 290 mojo::RectPtr new_bounds) override; | 292 mojo::RectPtr new_bounds) override; |
| 291 void OnClientAreaChanged( | 293 void OnClientAreaChanged( |
| 292 uint32_t window_id, | 294 uint32_t window_id, |
| 293 mojo::InsetsPtr new_client_area, | 295 mojo::InsetsPtr new_client_area, |
| 294 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; | 296 mojo::Array<mojo::RectPtr> new_additional_client_areas) override; |
| 295 void OnTransientWindowAdded(uint32_t window_id, | 297 void OnTransientWindowAdded(uint32_t window_id, |
| 296 uint32_t transient_window_id) override; | 298 uint32_t transient_window_id) override; |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 501 |
| 500 // 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|. |
| 501 // |client_id| set to the ClientWindowId of the new window. | 503 // |client_id| set to the ClientWindowId of the new window. |
| 502 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 504 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 503 | 505 |
| 504 } // namespace test | 506 } // namespace test |
| 505 } // namespace ws | 507 } // namespace ws |
| 506 } // namespace mus | 508 } // namespace mus |
| 507 | 509 |
| 508 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 510 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |