f4822802140a0108c83fde3adf226242064c9e2a
[platform/framework/web/crosswalk.git] / src / xwalk / runtime / android / java / src / org / xwalk / 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.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 }