summaryrefslogtreecommitdiffstats
path: root/content/browser
diff options
context:
space:
mode:
authorsimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 19:14:13 +0000
committersimonhatch@chromium.org <simonhatch@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-06-03 19:14:13 +0000
commita1493a66d15a825bbce1f6c9cf587bd16ef7e2eb (patch)
tree1d0e514a1a7b254aebdd2b80d82b4a7e420adbe4 /content/browser
parented07ee9bc8e51d8df63e6db026172b905121d006 (diff)
downloadchromium_src-a1493a66d15a825bbce1f6c9cf587bd16ef7e2eb.zip
chromium_src-a1493a66d15a825bbce1f6c9cf587bd16ef7e2eb.tar.gz
chromium_src-a1493a66d15a825bbce1f6c9cf587bd16ef7e2eb.tar.bz2
Navigation transitions: Exposed "setBackgroundOpaque" to ContentViewCore
The navigation transition needs the transition page to render transparently over top the current tab, so we need to expose this call to java. Design doc: https://docs.google.com/a/chromium.org/document/d/17jg1RRL3RI969cLwbKBIcoGDsPwqaEdBxafGNYGwiY4/edit# Implementation details: https://docs.google.com/a/chromium.org/document/d/1kREPtFJaeLoDKwrfmrYTD7DHCdxX1RzFBga2gNY8lyE/edit#heading=h.bng2kpmyvxq5 BUG=370696 Review URL: https://codereview.chromium.org/284413007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@274587 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser')
-rw-r--r--content/browser/android/content_view_core_impl.cc6
-rw-r--r--content/browser/android/content_view_core_impl.h2
2 files changed, 8 insertions, 0 deletions
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc
index 35e2709..8fdfb8c 100644
--- a/content/browser/android/content_view_core_impl.cc
+++ b/content/browser/android/content_view_core_impl.cc
@@ -1594,6 +1594,12 @@ jint ContentViewCoreImpl::GetCurrentRenderProcessId(JNIEnv* env, jobject obj) {
web_contents_->GetRenderViewHost());
}
+void ContentViewCoreImpl::SetBackgroundOpaque(JNIEnv* env, jobject jobj,
+ jboolean opaque) {
+ if (GetRenderWidgetHostViewAndroid())
+ GetRenderWidgetHostViewAndroid()->SetBackgroundOpaque(opaque);
+}
+
void ContentViewCoreImpl::OnSmartClipDataExtracted(
const base::string16& result) {
JNIEnv* env = AttachCurrentThread();
diff --git a/content/browser/android/content_view_core_impl.h b/content/browser/android/content_view_core_impl.h
index 919dad8..269ac88 100644
--- a/content/browser/android/content_view_core_impl.h
+++ b/content/browser/android/content_view_core_impl.h
@@ -220,6 +220,8 @@ class ContentViewCoreImpl : public ContentViewCore,
jint width,
jint height);
+ void SetBackgroundOpaque(JNIEnv* env, jobject jobj, jboolean opaque);
+
jint GetCurrentRenderProcessId(JNIEnv* env, jobject obj);
// --------------------------------------------------------------------------