Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(606)

Side by Side Diff: ui/aura/test/mus/test_window_tree_client_setup.cc

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "services/ui/public/cpp/tests/test_window_tree_client_setup.h" 5 #include "ui/aura/test/mus/test_window_tree_client_setup.h"
6 6
7 #include "services/ui/public/cpp/tests/test_window_tree.h" 7 #include "base/memory/ptr_util.h"
8 #include "services/ui/public/cpp/tests/window_tree_client_private.h" 8 #include "ui/aura/mus/window_tree_client.h"
9 #include "services/ui/public/cpp/window_tree_client.h" 9 #include "ui/aura/test/mus/test_window_tree.h"
10 #include "ui/aura/test/mus/window_tree_client_private.h"
10 #include "ui/display/display.h" 11 #include "ui/display/display.h"
11 12
12 namespace ui { 13 namespace aura {
13 14
14 TestWindowTreeClientSetup::TestWindowTreeClientSetup() {} 15 TestWindowTreeClientSetup::TestWindowTreeClientSetup() {}
15 16
16 TestWindowTreeClientSetup::~TestWindowTreeClientSetup() {} 17 TestWindowTreeClientSetup::~TestWindowTreeClientSetup() {}
17 18
18 void TestWindowTreeClientSetup::Init( 19 void TestWindowTreeClientSetup::Init(
19 WindowTreeClientDelegate* window_tree_delegate) { 20 WindowTreeClientDelegate* window_tree_delegate) {
20 CommonInit(window_tree_delegate, nullptr); 21 CommonInit(window_tree_delegate, nullptr);
21 WindowTreeClientPrivate(window_tree_client_.get()) 22 WindowTreeClientPrivate(window_tree_client_.get())
22 .OnEmbed(window_tree_.get()); 23 .OnEmbed(window_tree_.get());
(...skipping 14 matching lines...) Expand all
37 } 38 }
38 39
39 WindowTreeClient* TestWindowTreeClientSetup::window_tree_client() { 40 WindowTreeClient* TestWindowTreeClientSetup::window_tree_client() {
40 return window_tree_client_.get(); 41 return window_tree_client_.get();
41 } 42 }
42 43
43 void TestWindowTreeClientSetup::CommonInit( 44 void TestWindowTreeClientSetup::CommonInit(
44 WindowTreeClientDelegate* window_tree_delegate, 45 WindowTreeClientDelegate* window_tree_delegate,
45 WindowManagerDelegate* window_manager_delegate) { 46 WindowManagerDelegate* window_manager_delegate) {
46 window_tree_.reset(new TestWindowTree); 47 window_tree_.reset(new TestWindowTree);
47 window_tree_client_.reset(new WindowTreeClient( 48 window_tree_client_ = base::MakeUnique<WindowTreeClient>(
48 window_tree_delegate, window_manager_delegate, nullptr)); 49 window_tree_delegate, window_manager_delegate, nullptr);
50 window_tree_->set_client(window_tree_client_.get());
49 } 51 }
50 52
51 } // namespace ui 53 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/test/mus/test_window_tree_client_setup.h ('k') | ui/aura/test/mus/window_tree_client_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698