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 "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/connector.h" | 16 #include "services/service_manager/public/cpp/connector.h" |
17 #include "services/service_manager/public/cpp/interface_registry.h" | |
18 #include "services/service_manager/public/cpp/service.h" | 17 #include "services/service_manager/public/cpp/service.h" |
19 #include "services/service_manager/public/cpp/service_context.h" | 18 #include "services/service_manager/public/cpp/service_context.h" |
20 #include "services/service_manager/public/cpp/service_runner.h" | 19 #include "services/service_manager/public/cpp/service_runner.h" |
21 #include "services/ui/public/cpp/property_type_converters.h" | 20 #include "services/ui/public/cpp/property_type_converters.h" |
22 #include "services/ui/public/interfaces/window_manager.mojom.h" | 21 #include "services/ui/public/interfaces/window_manager.mojom.h" |
23 #include "ui/aura/window.h" | 22 #include "ui/aura/window.h" |
24 #include "ui/aura/window_event_dispatcher.h" | 23 #include "ui/aura/window_event_dispatcher.h" |
25 #include "ui/compositor/layer.h" | 24 #include "ui/compositor/layer.h" |
26 #include "ui/gfx/canvas.h" | 25 #include "ui/gfx/canvas.h" |
27 #include "ui/views/background.h" | 26 #include "ui/views/background.h" |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
477 void WindowTypeLauncher::Create( | 476 void WindowTypeLauncher::Create( |
478 const service_manager::Identity& remote_identity, | 477 const service_manager::Identity& remote_identity, |
479 mash::mojom::LaunchableRequest request) { | 478 mash::mojom::LaunchableRequest request) { |
480 bindings_.AddBinding(this, std::move(request)); | 479 bindings_.AddBinding(this, std::move(request)); |
481 } | 480 } |
482 | 481 |
483 MojoResult ServiceMain(MojoHandle service_request_handle) { | 482 MojoResult ServiceMain(MojoHandle service_request_handle) { |
484 return service_manager::ServiceRunner(new WindowTypeLauncher) | 483 return service_manager::ServiceRunner(new WindowTypeLauncher) |
485 .Run(service_request_handle); | 484 .Run(service_request_handle); |
486 } | 485 } |
OLD | NEW |