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

Side by Side Diff: services/ui/test_wm/test_wm.cc

Issue 2850743004: Replace ServiceInfo with BindSourceInfo. (Closed)
Patch Set: . Created 3 years, 7 months 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
« no previous file with comments | « services/ui/service.cc ('k') | services/ui/ws/window_server_service_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 5 #include <memory>
6 #include <utility> 6 #include <utility>
7 7
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/threading/thread_task_runner_handle.h" 9 #include "base/threading/thread_task_runner_handle.h"
10 #include "mojo/public/cpp/bindings/binding.h" 10 #include "mojo/public/cpp/bindings/binding.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 CHECK(!started_); 56 CHECK(!started_);
57 started_ = true; 57 started_ = true;
58 screen_ = base::MakeUnique<display::ScreenBase>(); 58 screen_ = base::MakeUnique<display::ScreenBase>();
59 display::Screen::SetScreenInstance(screen_.get()); 59 display::Screen::SetScreenInstance(screen_.get());
60 aura_env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS); 60 aura_env_ = aura::Env::CreateInstance(aura::Env::Mode::MUS);
61 window_tree_client_ = base::MakeUnique<aura::WindowTreeClient>( 61 window_tree_client_ = base::MakeUnique<aura::WindowTreeClient>(
62 context()->connector(), this, this); 62 context()->connector(), this, this);
63 aura_env_->SetWindowTreeClient(window_tree_client_.get()); 63 aura_env_->SetWindowTreeClient(window_tree_client_.get());
64 window_tree_client_->ConnectAsWindowManager(); 64 window_tree_client_->ConnectAsWindowManager();
65 } 65 }
66 void OnBindInterface(const service_manager::ServiceInfo& source_info, 66 void OnBindInterface(const service_manager::BindSourceInfo& source_info,
67 const std::string& interface_name, 67 const std::string& interface_name,
68 mojo::ScopedMessagePipeHandle interface_pipe) override {} 68 mojo::ScopedMessagePipeHandle interface_pipe) override {}
69 69
70 // aura::WindowTreeClientDelegate: 70 // aura::WindowTreeClientDelegate:
71 void OnEmbed( 71 void OnEmbed(
72 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override { 72 std::unique_ptr<aura::WindowTreeHostMus> window_tree_host) override {
73 // WindowTreeClients configured as the window manager should never get 73 // WindowTreeClients configured as the window manager should never get
74 // OnEmbed(). 74 // OnEmbed().
75 NOTREACHED(); 75 NOTREACHED();
76 } 76 }
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 DISALLOW_COPY_AND_ASSIGN(TestWM); 195 DISALLOW_COPY_AND_ASSIGN(TestWM);
196 }; 196 };
197 197
198 } // namespace test 198 } // namespace test
199 } // namespace ui 199 } // namespace ui
200 200
201 MojoResult ServiceMain(MojoHandle service_request_handle) { 201 MojoResult ServiceMain(MojoHandle service_request_handle) {
202 service_manager::ServiceRunner runner(new ui::test::TestWM); 202 service_manager::ServiceRunner runner(new ui::test::TestWM);
203 return runner.Run(service_request_handle); 203 return runner.Run(service_request_handle);
204 } 204 }
OLDNEW
« no previous file with comments | « services/ui/service.cc ('k') | services/ui/ws/window_server_service_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698