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

Side by Side Diff: mash/example/window_type_launcher/window_type_launcher.cc

Issue 2804373002: Eliminate Connector::Connect(), Connection, etc. (Closed)
Patch Set: . Created 3 years, 8 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 | « mash/example/views_examples/views_examples.cc ('k') | mash/session/session.cc » ('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 (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 "mash/example/window_type_launcher/window_type_launcher.h" 5 #include "mash/example/window_type_launcher/window_type_launcher.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
11 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/threading/platform_thread.h" 14 #include "base/threading/platform_thread.h"
15 #include "services/service_manager/public/c/main.h" 15 #include "services/service_manager/public/c/main.h"
16 #include "services/service_manager/public/cpp/connection.h"
17 #include "services/service_manager/public/cpp/connector.h" 16 #include "services/service_manager/public/cpp/connector.h"
18 #include "services/service_manager/public/cpp/interface_registry.h" 17 #include "services/service_manager/public/cpp/interface_registry.h"
19 #include "services/service_manager/public/cpp/service.h" 18 #include "services/service_manager/public/cpp/service.h"
20 #include "services/service_manager/public/cpp/service_context.h" 19 #include "services/service_manager/public/cpp/service_context.h"
21 #include "services/service_manager/public/cpp/service_runner.h" 20 #include "services/service_manager/public/cpp/service_runner.h"
22 #include "services/ui/public/cpp/property_type_converters.h" 21 #include "services/ui/public/cpp/property_type_converters.h"
23 #include "services/ui/public/interfaces/window_manager.mojom.h" 22 #include "services/ui/public/interfaces/window_manager.mojom.h"
24 #include "ui/aura/window.h" 23 #include "ui/aura/window.h"
25 #include "ui/aura/window_event_dispatcher.h" 24 #include "ui/aura/window_event_dispatcher.h"
26 #include "ui/compositor/layer.h" 25 #include "ui/compositor/layer.h"
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 void WindowTypeLauncher::Create( 478 void WindowTypeLauncher::Create(
480 const service_manager::Identity& remote_identity, 479 const service_manager::Identity& remote_identity,
481 mash::mojom::LaunchableRequest request) { 480 mash::mojom::LaunchableRequest request) {
482 bindings_.AddBinding(this, std::move(request)); 481 bindings_.AddBinding(this, std::move(request));
483 } 482 }
484 483
485 MojoResult ServiceMain(MojoHandle service_request_handle) { 484 MojoResult ServiceMain(MojoHandle service_request_handle) {
486 return service_manager::ServiceRunner(new WindowTypeLauncher) 485 return service_manager::ServiceRunner(new WindowTypeLauncher)
487 .Run(service_request_handle); 486 .Run(service_request_handle);
488 } 487 }
OLDNEW
« no previous file with comments | « mash/example/views_examples/views_examples.cc ('k') | mash/session/session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698