| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} | 110 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} |
| 111 ~EventDispatcherTestApi() {} | 111 ~EventDispatcherTestApi() {} |
| 112 | 112 |
| 113 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } | 113 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } |
| 114 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } | 114 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } |
| 115 bool IsWindowPointerTarget(const ServerWindow* window) const; | 115 bool IsWindowPointerTarget(const ServerWindow* window) const; |
| 116 int NumberPointerTargetsForWindow(ServerWindow* window); | 116 int NumberPointerTargetsForWindow(ServerWindow* window); |
| 117 ModalWindowController* modal_window_controller() const { | 117 ModalWindowController* modal_window_controller() const { |
| 118 return &ed_->modal_window_controller_; | 118 return &ed_->modal_window_controller_; |
| 119 } | 119 } |
| 120 ServerWindow* capture_window() { return ed_->capture_window_; } |
| 120 | 121 |
| 121 private: | 122 private: |
| 122 EventDispatcher* ed_; | 123 EventDispatcher* ed_; |
| 123 | 124 |
| 124 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); | 125 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 // ----------------------------------------------------------------------------- | 128 // ----------------------------------------------------------------------------- |
| 128 | 129 |
| 129 class ModalWindowControllerTestApi { | 130 class ModalWindowControllerTestApi { |
| (...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 | 498 |
| 498 // Creates a new visible window as a child of the single root of |tree|. | 499 // Creates a new visible window as a child of the single root of |tree|. |
| 499 // |client_id| set to the ClientWindowId of the new window. | 500 // |client_id| set to the ClientWindowId of the new window. |
| 500 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 501 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 501 | 502 |
| 502 } // namespace test | 503 } // namespace test |
| 503 } // namespace ws | 504 } // namespace ws |
| 504 } // namespace mus | 505 } // namespace mus |
| 505 | 506 |
| 506 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 507 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |