| 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 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 // ----------------------------------------------------------------------------- | 105 // ----------------------------------------------------------------------------- |
| 106 | 106 |
| 107 class EventDispatcherTestApi { | 107 class EventDispatcherTestApi { |
| 108 public: | 108 public: |
| 109 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} | 109 explicit EventDispatcherTestApi(EventDispatcher* ed) : ed_(ed) {} |
| 110 ~EventDispatcherTestApi() {} | 110 ~EventDispatcherTestApi() {} |
| 111 | 111 |
| 112 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } | 112 bool AreAnyPointersDown() const { return ed_->AreAnyPointersDown(); } |
| 113 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } | 113 bool is_mouse_button_down() const { return ed_->mouse_button_down_; } |
| 114 bool IsObservingWindow(ServerWindow* window) { | 114 bool IsWindowPointerTarget(const ServerWindow* window) const; |
| 115 return ed_->IsObservingWindow(window); | 115 int NumberPointerTargetsForWindow(ServerWindow* window); |
| 116 ServerWindow* GetActiveSystemModalWindow() const { |
| 117 return ed_->GetActiveSystemModalWindow(); |
| 116 } | 118 } |
| 117 int NumberPointerTargetsForWindow(ServerWindow* window); | |
| 118 | 119 |
| 119 private: | 120 private: |
| 120 EventDispatcher* ed_; | 121 EventDispatcher* ed_; |
| 121 | 122 |
| 122 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); | 123 DISALLOW_COPY_AND_ASSIGN(EventDispatcherTestApi); |
| 123 }; | 124 }; |
| 124 | 125 |
| 125 // ----------------------------------------------------------------------------- | 126 // ----------------------------------------------------------------------------- |
| 126 | 127 |
| 127 class WindowManagerStateTestApi { | 128 class WindowManagerStateTestApi { |
| (...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 409 | 410 |
| 410 // Creates a new visible window as a child of the single root of |tree|. | 411 // Creates a new visible window as a child of the single root of |tree|. |
| 411 // |client_id| set to the ClientWindowId of the new window. | 412 // |client_id| set to the ClientWindowId of the new window. |
| 412 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 413 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 413 | 414 |
| 414 } // namespace test | 415 } // namespace test |
| 415 } // namespace ws | 416 } // namespace ws |
| 416 } // namespace mus | 417 } // namespace mus |
| 417 | 418 |
| 418 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 419 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |