OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 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 #include "android_webview/native/android_web_view_util.h" |
| 6 |
| 7 #include "android_webview/native/aw_browser_dependency_factory.h" |
| 8 #include "base/android/jni_android.h" |
| 9 #include "jni/AndroidWebViewUtil_jni.h" |
| 10 |
| 11 static jint CreateNativeWebContents( |
| 12 JNIEnv* env, jclass clazz, jboolean incognito) { |
| 13 android_webview::AwBrowserDependencyFactory* browser_deps = |
| 14 android_webview::AwBrowserDependencyFactory::GetInstance(); |
| 15 return reinterpret_cast<jint>(browser_deps->CreateWebContents(incognito)); |
| 16 } |
| 17 |
| 18 bool RegisterAndroidWebViewUtil(JNIEnv* env) { |
| 19 return RegisterNativesImpl(env); |
| 20 } |
OLD | NEW |