- add sources.
[platform/framework/web/crosswalk.git] / src / mojo / shell / android / apk / src / org / chromium / mojo_shell_apk / MojoMain.java
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
3 // found in the LICENSE file.
4
5 package org.chromium.mojo_shell_apk;
6
7 import android.content.Context;
8
9 import org.chromium.base.JNINamespace;
10
11 @JNINamespace("mojo")
12 public class MojoMain {
13     /**
14      * Initializes the native system.
15      **/
16     public static void init(Context context) {
17         nativeInit(context);
18     }
19
20     /**
21      * Starts the specified application in the specified context.
22      **/
23     public static void start(Context context, String appUrl) {
24         nativeStart(context, appUrl);
25     }
26
27     private static native void nativeInit(Context context);
28     private static native void nativeStart(Context context, String appUrl);
29 };