| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 UI_AURA_TEST_AURA_TEST_BASE_H_ | 5 #ifndef UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ | 6 #define UI_AURA_TEST_AURA_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 void RunAllPendingInMessageLoop(); | 71 void RunAllPendingInMessageLoop(); |
| 72 | 72 |
| 73 void ParentWindow(Window* window); | 73 void ParentWindow(Window* window); |
| 74 | 74 |
| 75 // A convenience function for dispatching an event to |dispatcher()|. | 75 // A convenience function for dispatching an event to |dispatcher()|. |
| 76 // Returns whether |event| was handled. | 76 // Returns whether |event| was handled. |
| 77 bool DispatchEventUsingWindowDispatcher(ui::Event* event); | 77 bool DispatchEventUsingWindowDispatcher(ui::Event* event); |
| 78 | 78 |
| 79 Window* root_window() { return helper_->root_window(); } | 79 Window* root_window() { return helper_->root_window(); } |
| 80 WindowTreeHost* host() { return helper_->host(); } | 80 WindowTreeHost* host() { return helper_->host(); } |
| 81 ui::EventProcessor* event_processor() { return helper_->event_processor(); } | 81 ui::EventSink* event_sink() { return helper_->event_sink(); } |
| 82 TestScreen* test_screen() { return helper_->test_screen(); } | 82 TestScreen* test_screen() { return helper_->test_screen(); } |
| 83 | 83 |
| 84 TestWindowTree* window_tree() { return helper_->window_tree(); } | 84 TestWindowTree* window_tree() { return helper_->window_tree(); } |
| 85 WindowTreeClient* window_tree_client_impl() { | 85 WindowTreeClient* window_tree_client_impl() { |
| 86 return helper_->window_tree_client(); | 86 return helper_->window_tree_client(); |
| 87 } | 87 } |
| 88 ui::mojom::WindowTreeClient* window_tree_client(); | 88 ui::mojom::WindowTreeClient* window_tree_client(); |
| 89 | 89 |
| 90 // WindowTreeClientDelegate: | 90 // WindowTreeClientDelegate: |
| 91 void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) override; | 91 void OnEmbed(std::unique_ptr<WindowTreeHostMus> window_tree_host) override; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 void SetUp() override; | 170 void SetUp() override; |
| 171 | 171 |
| 172 private: | 172 private: |
| 173 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseMus); | 173 DISALLOW_COPY_AND_ASSIGN(AuraTestBaseMus); |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 } // namespace test | 176 } // namespace test |
| 177 } // namespace aura | 177 } // namespace aura |
| 178 | 178 |
| 179 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ | 179 #endif // UI_AURA_TEST_AURA_TEST_BASE_H_ |
| OLD | NEW |