| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "mojo/shell/android/mojo_main.h" | 5 #include "mojo/shell/android/mojo_main.h" |
| 6 | 6 |
| 7 #include "base/android/jni_string.h" | 7 #include "base/android/jni_string.h" |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 15 #include "jni/MojoMain_jni.h" | 15 #include "jni/MojoMain_jni.h" |
| 16 #include "mojo/public/cpp/application/application.h" | |
| 17 #include "mojo/public/cpp/environment/environment.h" | 16 #include "mojo/public/cpp/environment/environment.h" |
| 17 #include "mojo/public/cpp/shell/application.h" |
| 18 #include "mojo/service_manager/service_loader.h" | 18 #include "mojo/service_manager/service_loader.h" |
| 19 #include "mojo/service_manager/service_manager.h" | 19 #include "mojo/service_manager/service_manager.h" |
| 20 #include "mojo/shell/context.h" | 20 #include "mojo/shell/context.h" |
| 21 #include "mojo/shell/init.h" | 21 #include "mojo/shell/init.h" |
| 22 #include "mojo/shell/run.h" | 22 #include "mojo/shell/run.h" |
| 23 #include "ui/gl/gl_surface_egl.h" | 23 #include "ui/gl/gl_surface_egl.h" |
| 24 | 24 |
| 25 using base::LazyInstance; | 25 using base::LazyInstance; |
| 26 | 26 |
| 27 namespace mojo { | 27 namespace mojo { |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 g_context.Get().reset(shell_context); | 85 g_context.Get().reset(shell_context); |
| 86 shell::Run(shell_context); | 86 shell::Run(shell_context); |
| 87 } | 87 } |
| 88 | 88 |
| 89 bool RegisterMojoMain(JNIEnv* env) { | 89 bool RegisterMojoMain(JNIEnv* env) { |
| 90 return RegisterNativesImpl(env); | 90 return RegisterNativesImpl(env); |
| 91 } | 91 } |
| 92 | 92 |
| 93 } // namespace mojo | 93 } // namespace mojo |
| OLD | NEW |