summaryrefslogtreecommitdiffstats
path: root/chrome/browser/android/content_view_util.h
diff options
context:
space:
mode:
authorleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 18:28:30 +0000
committerleandrogracia@chromium.org <leandrogracia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-21 18:28:30 +0000
commitf1c3c7977af93d1421db66d39ea83b9aa97747e2 (patch)
tree80a97f67fc5aa7490705628333fe2f8088f36c56 /chrome/browser/android/content_view_util.h
parenta9b4441d02e85aac508fc2707b9f2cbde142421b (diff)
downloadchromium_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 'chrome/browser/android/content_view_util.h')
-rw-r--r--chrome/browser/android/content_view_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/android/content_view_util.h b/chrome/browser/android/content_view_util.h
new file mode 100644
index 0000000..ea68300
--- /dev/null
+++ b/chrome/browser/android/content_view_util.h
@@ -0,0 +1,14 @@
+// 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 CHROME_BROWSER_ANDROID_CONTENT_VIEW_UTIL_H_
+#define CHROME_BROWSER_ANDROID_CONTENT_VIEW_UTIL_H_
+
+#include "base/android/jni_android.h"
+
+// Register the ContentViewUtil's native methods through JNI.
+bool RegisterContentViewUtil(JNIEnv* env);
+
+#endif // CHROME_BROWSER_ANDROID_CONTENT_VIEW_UTIL_H_
+