| 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 <vector> | 11 #include <vector> |
| 11 | 12 |
| 12 #include "services/ui/public/interfaces/display.mojom.h" | 13 #include "services/ui/public/interfaces/display.mojom.h" |
| 13 #include "services/ui/public/interfaces/window_tree.mojom.h" | 14 #include "services/ui/public/interfaces/window_tree.mojom.h" |
| 14 #include "services/ui/ws/display.h" | 15 #include "services/ui/ws/display.h" |
| 15 #include "services/ui/ws/display_binding.h" | 16 #include "services/ui/ws/display_binding.h" |
| 16 #include "services/ui/ws/event_dispatcher.h" | 17 #include "services/ui/ws/event_dispatcher.h" |
| 17 #include "services/ui/ws/platform_display.h" | 18 #include "services/ui/ws/platform_display.h" |
| 18 #include "services/ui/ws/platform_display_factory.h" | 19 #include "services/ui/ws/platform_display_factory.h" |
| 19 #include "services/ui/ws/test_change_tracker.h" | 20 #include "services/ui/ws/test_change_tracker.h" |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 on_accelerator_called_ = false; | 295 on_accelerator_called_ = false; |
| 295 } | 296 } |
| 296 | 297 |
| 297 bool on_perform_move_loop_called() { return on_perform_move_loop_called_; } | 298 bool on_perform_move_loop_called() { return on_perform_move_loop_called_; } |
| 298 bool on_accelerator_called() { return on_accelerator_called_; } | 299 bool on_accelerator_called() { return on_accelerator_called_; } |
| 299 uint32_t on_accelerator_id() { return on_accelerator_id_; } | 300 uint32_t on_accelerator_id() { return on_accelerator_id_; } |
| 300 | 301 |
| 301 private: | 302 private: |
| 302 // WindowManager: | 303 // WindowManager: |
| 303 void OnConnect(uint16_t client_id) override {} | 304 void OnConnect(uint16_t client_id) override {} |
| 304 void WmNewDisplayAdded(ui::mojom::DisplayPtr display, | 305 void WmNewDisplayAdded(const display::Display& display, |
| 305 ui::mojom::WindowDataPtr root, | 306 ui::mojom::WindowDataPtr root, |
| 306 bool drawn) override {} | 307 bool drawn) override {} |
| 307 void WmSetBounds(uint32_t change_id, | 308 void WmSetBounds(uint32_t change_id, |
| 308 uint32_t window_id, | 309 uint32_t window_id, |
| 309 const gfx::Rect& bounds) override {} | 310 const gfx::Rect& bounds) override {} |
| 310 void WmSetProperty(uint32_t change_id, | 311 void WmSetProperty(uint32_t change_id, |
| 311 uint32_t window_id, | 312 uint32_t window_id, |
| 312 const mojo::String& name, | 313 const mojo::String& name, |
| 313 mojo::Array<uint8_t> value) override {} | 314 mojo::Array<uint8_t> value) override {} |
| 314 void WmCreateTopLevelWindow( | 315 void WmCreateTopLevelWindow( |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 570 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 571 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 571 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 572 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 572 ServerWindow* parent, | 573 ServerWindow* parent, |
| 573 ClientWindowId* client_id); | 574 ClientWindowId* client_id); |
| 574 | 575 |
| 575 } // namespace test | 576 } // namespace test |
| 576 } // namespace ws | 577 } // namespace ws |
| 577 } // namespace ui | 578 } // namespace ui |
| 578 | 579 |
| 579 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 580 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |