| 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 SERVICES_UI_WS_TEST_UTILS_H_ | 5 #ifndef SERVICES_UI_WS_TEST_UTILS_H_ |
| 6 #define SERVICES_UI_WS_TEST_UTILS_H_ | 6 #define SERVICES_UI_WS_TEST_UTILS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 private: | 328 private: |
| 329 // WindowManager: | 329 // WindowManager: |
| 330 void OnConnect(uint16_t client_id) override {} | 330 void OnConnect(uint16_t client_id) override {} |
| 331 void WmNewDisplayAdded(const display::Display& display, | 331 void WmNewDisplayAdded(const display::Display& display, |
| 332 ui::mojom::WindowDataPtr root, | 332 ui::mojom::WindowDataPtr root, |
| 333 bool drawn) override {} | 333 bool drawn) override {} |
| 334 void WmDisplayRemoved(int64_t display_id) override; | 334 void WmDisplayRemoved(int64_t display_id) override; |
| 335 void WmDisplayModified(const display::Display& display) override {} | 335 void WmDisplayModified(const display::Display& display) override {} |
| 336 void WmSetBounds(uint32_t change_id, | 336 void WmSetBounds(uint32_t change_id, |
| 337 uint32_t window_id, | 337 uint32_t window_id, |
| 338 const gfx::Rect& bounds) override {} | 338 const gfx::Rect& bounds, |
| 339 const cc::LocalFrameId& local_frame_id) override {} |
| 339 void WmSetProperty( | 340 void WmSetProperty( |
| 340 uint32_t change_id, | 341 uint32_t change_id, |
| 341 uint32_t window_id, | 342 uint32_t window_id, |
| 342 const std::string& name, | 343 const std::string& name, |
| 343 const base::Optional<std::vector<uint8_t>>& value) override {} | 344 const base::Optional<std::vector<uint8_t>>& value) override {} |
| 344 void WmCreateTopLevelWindow( | 345 void WmCreateTopLevelWindow( |
| 345 uint32_t change_id, | 346 uint32_t change_id, |
| 346 ClientSpecificId requesting_client_id, | 347 ClientSpecificId requesting_client_id, |
| 347 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) | 348 const std::unordered_map<std::string, std::vector<uint8_t>>& properties) |
| 348 override; | 349 override; |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 void OnEmbeddedAppDisconnected(uint32_t window) override; | 401 void OnEmbeddedAppDisconnected(uint32_t window) override; |
| 401 void OnUnembed(Id window_id) override; | 402 void OnUnembed(Id window_id) override; |
| 402 void OnCaptureChanged(Id new_capture_window_id, | 403 void OnCaptureChanged(Id new_capture_window_id, |
| 403 Id old_capture_window_id) override; | 404 Id old_capture_window_id) override; |
| 404 void OnTopLevelCreated(uint32_t change_id, | 405 void OnTopLevelCreated(uint32_t change_id, |
| 405 mojom::WindowDataPtr data, | 406 mojom::WindowDataPtr data, |
| 406 int64_t display_id, | 407 int64_t display_id, |
| 407 bool drawn) override; | 408 bool drawn) override; |
| 408 void OnWindowBoundsChanged(uint32_t window, | 409 void OnWindowBoundsChanged(uint32_t window, |
| 409 const gfx::Rect& old_bounds, | 410 const gfx::Rect& old_bounds, |
| 410 const gfx::Rect& new_bounds) override; | 411 const gfx::Rect& new_bounds, |
| 412 const cc::LocalFrameId& local_frame_id) override; |
| 411 void OnClientAreaChanged( | 413 void OnClientAreaChanged( |
| 412 uint32_t window_id, | 414 uint32_t window_id, |
| 413 const gfx::Insets& new_client_area, | 415 const gfx::Insets& new_client_area, |
| 414 const std::vector<gfx::Rect>& new_additional_client_areas) override; | 416 const std::vector<gfx::Rect>& new_additional_client_areas) override; |
| 415 void OnTransientWindowAdded(uint32_t window_id, | 417 void OnTransientWindowAdded(uint32_t window_id, |
| 416 uint32_t transient_window_id) override; | 418 uint32_t transient_window_id) override; |
| 417 void OnTransientWindowRemoved(uint32_t window_id, | 419 void OnTransientWindowRemoved(uint32_t window_id, |
| 418 uint32_t transient_window_id) override; | 420 uint32_t transient_window_id) override; |
| 419 void OnWindowHierarchyChanged( | 421 void OnWindowHierarchyChanged( |
| 420 uint32_t window, | 422 uint32_t window, |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 672 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 671 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 673 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 672 ServerWindow* parent, | 674 ServerWindow* parent, |
| 673 ClientWindowId* client_id); | 675 ClientWindowId* client_id); |
| 674 | 676 |
| 675 } // namespace test | 677 } // namespace test |
| 676 } // namespace ws | 678 } // namespace ws |
| 677 } // namespace ui | 679 } // namespace ui |
| 678 | 680 |
| 679 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 681 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |