| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/bind.h" | 5 #include "base/bind.h" |
| 6 #include "mojo/application/application_runner_chromium.h" |
| 6 #include "mojo/public/c/system/main.h" | 7 #include "mojo/public/c/system/main.h" |
| 7 #include "mojo/public/cpp/application/application_delegate.h" | 8 #include "mojo/public/cpp/application/application_delegate.h" |
| 8 #include "mojo/public/cpp/application/application_impl.h" | 9 #include "mojo/public/cpp/application/application_impl.h" |
| 9 #include "mojo/public/cpp/application/application_runner_chromium.h" | |
| 10 #include "mojo/public/cpp/application/service_provider_impl.h" | 10 #include "mojo/public/cpp/application/service_provider_impl.h" |
| 11 #include "mojo/public/interfaces/application/service_provider.mojom.h" | 11 #include "mojo/public/interfaces/application/service_provider.mojom.h" |
| 12 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" | 12 #include "mojo/services/public/interfaces/view_manager/view_manager.mojom.h" |
| 13 | 13 |
| 14 namespace examples { | 14 namespace examples { |
| 15 namespace { | 15 namespace { |
| 16 void ConnectCallback(bool success) {} | 16 void ConnectCallback(bool success) {} |
| 17 } // namespace | 17 } // namespace |
| 18 | 18 |
| 19 // This application starts the view manager, embeds the window manager and then | 19 // This application starts the view manager, embeds the window manager and then |
| (...skipping 21 matching lines...) Expand all Loading... |
| 41 | 41 |
| 42 DISALLOW_COPY_AND_ASSIGN(WMFlowInit); | 42 DISALLOW_COPY_AND_ASSIGN(WMFlowInit); |
| 43 }; | 43 }; |
| 44 | 44 |
| 45 } // namespace examples | 45 } // namespace examples |
| 46 | 46 |
| 47 MojoResult MojoMain(MojoHandle shell_handle) { | 47 MojoResult MojoMain(MojoHandle shell_handle) { |
| 48 mojo::ApplicationRunnerChromium runner(new examples::WMFlowInit); | 48 mojo::ApplicationRunnerChromium runner(new examples::WMFlowInit); |
| 49 return runner.Run(shell_handle); | 49 return runner.Run(shell_handle); |
| 50 } | 50 } |
| OLD | NEW |