| 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 #include "ui/aura/test/aura_test_helper.h" | 5 #include "ui/aura/test/aura_test_helper.h" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
| 9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
| 10 #include "ui/aura/client/default_capture_client.h" | 10 #include "ui/aura/client/default_capture_client.h" |
| 11 #include "ui/aura/client/focus_client.h" | 11 #include "ui/aura/client/focus_client.h" |
| 12 #include "ui/aura/env.h" | 12 #include "ui/aura/env.h" |
| 13 #include "ui/aura/input_state_lookup.h" | 13 #include "ui/aura/input_state_lookup.h" |
| 14 #include "ui/aura/mus/capture_synchronizer.h" |
| 14 #include "ui/aura/mus/window_port_mus.h" | 15 #include "ui/aura/mus/window_port_mus.h" |
| 15 #include "ui/aura/mus/window_tree_client.h" | 16 #include "ui/aura/mus/window_tree_client.h" |
| 16 #include "ui/aura/test/env_test_helper.h" | 17 #include "ui/aura/test/env_test_helper.h" |
| 17 #include "ui/aura/test/event_generator_delegate_aura.h" | 18 #include "ui/aura/test/event_generator_delegate_aura.h" |
| 18 #include "ui/aura/test/mus/test_window_tree.h" | 19 #include "ui/aura/test/mus/test_window_tree.h" |
| 19 #include "ui/aura/test/mus/test_window_tree_client_setup.h" | 20 #include "ui/aura/test/mus/test_window_tree_client_setup.h" |
| 20 #include "ui/aura/test/test_focus_client.h" | 21 #include "ui/aura/test/test_focus_client.h" |
| 21 #include "ui/aura/test/test_screen.h" | 22 #include "ui/aura/test/test_screen.h" |
| 22 #include "ui/aura/test/test_window_parenting_client.h" | 23 #include "ui/aura/test/test_window_parenting_client.h" |
| 23 #include "ui/aura/window.h" | 24 #include "ui/aura/window.h" |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 188 | 189 |
| 189 client::CaptureClient* AuraTestHelper::capture_client() { | 190 client::CaptureClient* AuraTestHelper::capture_client() { |
| 190 return capture_client_.get(); | 191 return capture_client_.get(); |
| 191 } | 192 } |
| 192 | 193 |
| 193 void AuraTestHelper::InitWindowTreeClient() { | 194 void AuraTestHelper::InitWindowTreeClient() { |
| 194 window_tree_client_setup_ = base::MakeUnique<TestWindowTreeClientSetup>(); | 195 window_tree_client_setup_ = base::MakeUnique<TestWindowTreeClientSetup>(); |
| 195 window_tree_client_setup_->InitForWindowManager(window_tree_delegate_, | 196 window_tree_client_setup_->InitForWindowManager(window_tree_delegate_, |
| 196 window_manager_delegate_); | 197 window_manager_delegate_); |
| 197 window_tree_client_ = window_tree_client_setup_->window_tree_client(); | 198 window_tree_client_ = window_tree_client_setup_->window_tree_client(); |
| 199 window_tree_client_->capture_synchronizer()->AttachToCaptureClient( |
| 200 capture_client_.get()); |
| 198 } | 201 } |
| 199 | 202 |
| 200 } // namespace test | 203 } // namespace test |
| 201 } // namespace aura | 204 } // namespace aura |
| OLD | NEW |