| 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/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/threading/platform_thread.h" | 13 #include "base/threading/platform_thread.h" |
| 14 #include "mash/session/public/interfaces/session.mojom.h" | 14 #include "mash/session/public/interfaces/session.mojom.h" |
| 15 #include "services/shell/public/c/main.h" | 15 #include "services/service_manager/public/c/main.h" |
| 16 #include "services/shell/public/cpp/connection.h" | 16 #include "services/service_manager/public/cpp/connection.h" |
| 17 #include "services/shell/public/cpp/connector.h" | 17 #include "services/service_manager/public/cpp/connector.h" |
| 18 #include "services/shell/public/cpp/service.h" | 18 #include "services/service_manager/public/cpp/service.h" |
| 19 #include "services/shell/public/cpp/service_runner.h" | 19 #include "services/service_manager/public/cpp/service_runner.h" |
| 20 #include "services/ui/public/cpp/property_type_converters.h" | 20 #include "services/ui/public/cpp/property_type_converters.h" |
| 21 #include "ui/aura/window.h" | 21 #include "ui/aura/window.h" |
| 22 #include "ui/aura/window_event_dispatcher.h" | 22 #include "ui/aura/window_event_dispatcher.h" |
| 23 #include "ui/compositor/layer.h" | 23 #include "ui/compositor/layer.h" |
| 24 #include "ui/gfx/canvas.h" | 24 #include "ui/gfx/canvas.h" |
| 25 #include "ui/views/background.h" | 25 #include "ui/views/background.h" |
| 26 #include "ui/views/context_menu_controller.h" | 26 #include "ui/views/context_menu_controller.h" |
| 27 #include "ui/views/controls/button/button.h" | 27 #include "ui/views/controls/button/button.h" |
| 28 #include "ui/views/controls/button/md_text_button.h" | 28 #include "ui/views/controls/button/md_text_button.h" |
| 29 #include "ui/views/controls/menu/menu_delegate.h" | 29 #include "ui/views/controls/menu/menu_delegate.h" |
| (...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 499 |
| 500 void WindowTypeLauncher::Create(const shell::Identity& remote_identity, | 500 void WindowTypeLauncher::Create(const shell::Identity& remote_identity, |
| 501 mash::mojom::LaunchableRequest request) { | 501 mash::mojom::LaunchableRequest request) { |
| 502 bindings_.AddBinding(this, std::move(request)); | 502 bindings_.AddBinding(this, std::move(request)); |
| 503 } | 503 } |
| 504 | 504 |
| 505 MojoResult ServiceMain(MojoHandle service_request_handle) { | 505 MojoResult ServiceMain(MojoHandle service_request_handle) { |
| 506 return shell::ServiceRunner(new WindowTypeLauncher) | 506 return shell::ServiceRunner(new WindowTypeLauncher) |
| 507 .Run(service_request_handle); | 507 .Run(service_request_handle); |
| 508 } | 508 } |
| OLD | NEW |