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.
5 package org.xwalk.runtime;
7 import android.app.Activity;
8 import android.content.Context;
9 import android.content.Intent;
10 import android.view.View;
12 import org.xwalk.runtime.extension.XWalkExtensionManager;
15 * The abstract class to provide the common implementation for inherited classes.
16 * Here is to use XWalkExtensionManager to manage extension system.
18 public abstract class XWalkRuntimeViewProviderBase implements XWalkRuntimeViewProvider {
19 private Context mContext;
20 private Activity mActivity;
21 protected XWalkExtensionManager mExtensionManager;
23 XWalkRuntimeViewProviderBase(Context context, Activity activity) {
29 public void onCreate() {
33 public void onResume() {
34 mExtensionManager.onResume();
38 public void onPause() {
39 mExtensionManager.onPause();
43 public void onDestroy() {
44 mExtensionManager.onDestroy();
48 public void onActivityResult(int requestCode, int resultCode, Intent data) {
49 mExtensionManager.onActivityResult(requestCode, resultCode, data);