| 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 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 403 mojo::Array<uint8_t> new_data) override; | 403 mojo::Array<uint8_t> new_data) override; |
| 404 void OnWindowInputEvent(uint32_t event_id, | 404 void OnWindowInputEvent(uint32_t event_id, |
| 405 uint32_t window, | 405 uint32_t window, |
| 406 std::unique_ptr<ui::Event> event, | 406 std::unique_ptr<ui::Event> event, |
| 407 bool matches_pointer_watcher) override; | 407 bool matches_pointer_watcher) override; |
| 408 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, | 408 void OnPointerEventObserved(std::unique_ptr<ui::Event> event, |
| 409 uint32_t window_id) override; | 409 uint32_t window_id) override; |
| 410 void OnWindowFocused(uint32_t focused_window_id) override; | 410 void OnWindowFocused(uint32_t focused_window_id) override; |
| 411 void OnWindowPredefinedCursorChanged(uint32_t window_id, | 411 void OnWindowPredefinedCursorChanged(uint32_t window_id, |
| 412 mojom::Cursor cursor_id) override; | 412 mojom::Cursor cursor_id) override; |
| 413 void OnDragEnter(uint32_t window, |
| 414 mojo::Map<mojo::String, mojo::Array<uint8_t>> drag_data, |
| 415 uint32_t key_state, |
| 416 const gfx::Point& position, |
| 417 uint32_t effect_bitmask, |
| 418 const OnDragEnterCallback& callback) override; |
| 419 void OnDragOver(uint32_t window, |
| 420 uint32_t key_state, |
| 421 const gfx::Point& position, |
| 422 uint32_t effect_bitmask, |
| 423 const OnDragOverCallback& callback) override; |
| 424 void OnDragLeave(uint32_t window) override; |
| 425 void OnDragDrop(uint32_t window, |
| 426 uint32_t key_state, |
| 427 const gfx::Point& position, |
| 428 uint32_t effect_bitmask, |
| 429 const OnDragDropCallback& callback) override; |
| 413 void OnChangeCompleted(uint32_t change_id, bool success) override; | 430 void OnChangeCompleted(uint32_t change_id, bool success) override; |
| 414 void RequestClose(uint32_t window_id) override; | 431 void RequestClose(uint32_t window_id) override; |
| 415 void GetWindowManager( | 432 void GetWindowManager( |
| 416 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) override; | 433 mojo::AssociatedInterfaceRequest<mojom::WindowManager> internal) override; |
| 417 | 434 |
| 418 TestChangeTracker tracker_; | 435 TestChangeTracker tracker_; |
| 419 mojo::Binding<mojom::WindowTreeClient> binding_; | 436 mojo::Binding<mojom::WindowTreeClient> binding_; |
| 420 bool record_on_change_completed_ = false; | 437 bool record_on_change_completed_ = false; |
| 421 | 438 |
| 422 DISALLOW_COPY_AND_ASSIGN(TestWindowTreeClient); | 439 DISALLOW_COPY_AND_ASSIGN(TestWindowTreeClient); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 575 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 592 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 576 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 593 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 577 ServerWindow* parent, | 594 ServerWindow* parent, |
| 578 ClientWindowId* client_id); | 595 ClientWindowId* client_id); |
| 579 | 596 |
| 580 } // namespace test | 597 } // namespace test |
| 581 } // namespace ws | 598 } // namespace ws |
| 582 } // namespace ui | 599 } // namespace ui |
| 583 | 600 |
| 584 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 601 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |