| 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 WindowTreeTestApi(WindowTree* tree); | 69 WindowTreeTestApi(WindowTree* tree); |
| 70 ~WindowTreeTestApi(); | 70 ~WindowTreeTestApi(); |
| 71 | 71 |
| 72 void set_window_manager_internal(mojom::WindowManager* wm_internal) { | 72 void set_window_manager_internal(mojom::WindowManager* wm_internal) { |
| 73 tree_->window_manager_internal_ = wm_internal; | 73 tree_->window_manager_internal_ = wm_internal; |
| 74 } | 74 } |
| 75 | 75 |
| 76 void ClearAck() { tree_->event_ack_id_ = 0; } | 76 void ClearAck() { tree_->event_ack_id_ = 0; } |
| 77 void EnableCapture() { tree_->event_ack_id_ = 1u; } | 77 void EnableCapture() { tree_->event_ack_id_ = 1u; } |
| 78 | 78 |
| 79 void OnWindowInputEventAck(uint32_t event_id, mojom::EventResult result) { |
| 80 tree_->OnWindowInputEventAck(event_id, result); |
| 81 } |
| 82 |
| 79 private: | 83 private: |
| 80 WindowTree* tree_; | 84 WindowTree* tree_; |
| 81 | 85 |
| 82 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); | 86 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); |
| 83 }; | 87 }; |
| 84 | 88 |
| 85 // ----------------------------------------------------------------------------- | 89 // ----------------------------------------------------------------------------- |
| 86 | 90 |
| 87 class DisplayTestApi { | 91 class DisplayTestApi { |
| 88 public: | 92 public: |
| (...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 | 404 |
| 401 // Creates a new visible window as a child of the single root of |tree|. | 405 // Creates a new visible window as a child of the single root of |tree|. |
| 402 // |client_id| set to the ClientWindowId of the new window. | 406 // |client_id| set to the ClientWindowId of the new window. |
| 403 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 407 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 404 | 408 |
| 405 } // namespace test | 409 } // namespace test |
| 406 } // namespace ws | 410 } // namespace ws |
| 407 } // namespace mus | 411 } // namespace mus |
| 408 | 412 |
| 409 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ | 413 #endif // COMPONENTS_MUS_WS_TEST_UTILS_H_ |
| OLD | NEW |