diff options
author | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 18:28:30 +0000 |
---|---|---|
committer | leandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-21 18:28:30 +0000 |
commit | f1c3c7977af93d1421db66d39ea83b9aa97747e2 (patch) | |
tree | 80a97f67fc5aa7490705628333fe2f8088f36c56 /android_webview/native/android_webview_jni_registrar.h | |
parent | a9b4441d02e85aac508fc2707b9f2cbde142421b (diff) | |
download | chromium_src-f1c3c7977af93d1421db66d39ea83b9aa97747e2.zip chromium_src-f1c3c7977af93d1421db66d39ea83b9aa97747e2.tar.gz chromium_src-f1c3c7977af93d1421db66d39ea83b9aa97747e2.tar.bz2 |
Refactor the Android port to allow access to the chrome layer.
While in desktop chrome the main WebContentsDelegate is implemented in the
chrome layer by the Browser class, the Android port implements it in the
content layer in its ContentViewClient class. However, because of the content
layering limitations this renders the chrome layer out of reach.
This patch splits the WebContentsDelegate implementation in ContentViewClient
into a separate class named WebContentsDelegateAndroid in the first chrome browser component "web_contents_delegate_android".
Also, this patch introduces stubs for Chrome-specific and WebView-specific extensions of WebContentsDelegateAndroid in order to set the foundations for later patches.
BUG=137967
TEST=existing tests
Review URL: https://chromiumcodereview.appspot.com/10831060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native/android_webview_jni_registrar.h')
-rw-r--r-- | android_webview/native/android_webview_jni_registrar.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/android_webview/native/android_webview_jni_registrar.h b/android_webview/native/android_webview_jni_registrar.h new file mode 100644 index 0000000..a1a3748 --- /dev/null +++ b/android_webview/native/android_webview_jni_registrar.h @@ -0,0 +1,17 @@ +// Copyright (c) 2012 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef ANDROID_WEBVIEW_NATIVE_ANDROID_WEBVIEW_JNI_REGISTRAR_H_ +#define ANDROID_WEBVIEW_NATIVE_ANDROID_WEBVIEW_JNI_REGISTRAR_H_ + +#include <jni.h> + +namespace android_webview { + +// Register all JNI bindings necessary for chrome. +bool RegisterJni(JNIEnv* env); + +} // namespace android_webview + +#endif // ANDROID_WEBVIEW_NATIVE_ANDROID_WEBVIEW_JNI_REGISTRAR_H_ |