| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); | 131 DISALLOW_COPY_AND_ASSIGN(WindowTreeTestApi); |
| 132 }; | 132 }; |
| 133 | 133 |
| 134 // ----------------------------------------------------------------------------- | 134 // ----------------------------------------------------------------------------- |
| 135 | 135 |
| 136 class DisplayTestApi { | 136 class DisplayTestApi { |
| 137 public: | 137 public: |
| 138 explicit DisplayTestApi(Display* display); | 138 explicit DisplayTestApi(Display* display); |
| 139 ~DisplayTestApi(); | 139 ~DisplayTestApi(); |
| 140 | 140 |
| 141 void OnEvent(const ui::Event& event) { display_->OnEvent(event); } | 141 void OnEvent(const ui::Event& event) { |
| 142 ignore_result(display_->OnEventFromSource(const_cast<ui::Event*>(&event))); |
| 143 } |
| 142 | 144 |
| 143 mojom::Cursor last_cursor() const { return display_->last_cursor_; } | 145 mojom::Cursor last_cursor() const { return display_->last_cursor_; } |
| 144 | 146 |
| 145 private: | 147 private: |
| 146 Display* display_; | 148 Display* display_; |
| 147 | 149 |
| 148 DISALLOW_COPY_AND_ASSIGN(DisplayTestApi); | 150 DISALLOW_COPY_AND_ASSIGN(DisplayTestApi); |
| 149 }; | 151 }; |
| 150 | 152 |
| 151 // ----------------------------------------------------------------------------- | 153 // ----------------------------------------------------------------------------- |
| (...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); | 685 ServerWindow* NewWindowInTree(WindowTree* tree, ClientWindowId* client_id); |
| 684 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, | 686 ServerWindow* NewWindowInTreeWithParent(WindowTree* tree, |
| 685 ServerWindow* parent, | 687 ServerWindow* parent, |
| 686 ClientWindowId* client_id = nullptr); | 688 ClientWindowId* client_id = nullptr); |
| 687 | 689 |
| 688 } // namespace test | 690 } // namespace test |
| 689 } // namespace ws | 691 } // namespace ws |
| 690 } // namespace ui | 692 } // namespace ui |
| 691 | 693 |
| 692 #endif // SERVICES_UI_WS_TEST_UTILS_H_ | 694 #endif // SERVICES_UI_WS_TEST_UTILS_H_ |
| OLD | NEW |