Upstream version 9.38.204.0
[platform/framework/web/crosswalk.git] / src / xwalk / app / android / runtime_client / src / org / xwalk / app / runtime / XWalkRuntimeViewProviderFactory.java
1 // Copyright (c) 2013 Intel Corporation. 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.xwalk.app.runtime;
6
7 import android.app.Activity;
8 import android.content.Context;
9
10 /**
11  * The factory to create a XWalkRuntimeViewProvider instance according to
12  * current setting.
13  */
14 final class XWalkRuntimeViewProviderFactory {
15     static public XWalkRuntimeViewProvider getProvider(Context context, Activity activity) {
16         // TODO(yongsheng): Do checkings here to decide which provider should
17         // be used. The default is to use runtime core provider.
18         return new XWalkCoreProviderImpl(context, activity);
19     }
20 }