Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1149)

Unified Diff: content/browser/web_contents/web_contents_android.cc

Issue 712183002: Navigation transitions (web to native app): Hide/Show transition elements (Chrome side) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_android.cc
diff --git a/content/browser/web_contents/web_contents_android.cc b/content/browser/web_contents/web_contents_android.cc
index 85490c178b8f4f45d1fc57fc6319399a99f8e3ec..fd759f9301f6513af71ad370c684f3051ac5d804 100644
--- a/content/browser/web_contents/web_contents_android.cc
+++ b/content/browser/web_contents/web_contents_android.cc
@@ -183,6 +183,25 @@ void WebContentsAndroid::BeginExitTransition(JNIEnv* env,
ConvertJavaStringToUTF8(env, css_selector)));
}
+void WebContentsAndroid::HideTransitionElements(JNIEnv* env,
+ jobject jobj,
+ jstring css_selector) {
+ web_contents_->GetMainFrame()->Send(
+ new FrameMsg_HideTransitionElements(
+ web_contents_->GetMainFrame()->GetRoutingID(),
+ ConvertJavaStringToUTF8(env, css_selector)));
+}
+
+void WebContentsAndroid::ShowTransitionElements(JNIEnv* env,
+ jobject jobj,
+ jstring css_selector) {
+ web_contents_->GetMainFrame()->Send(
+ new FrameMsg_ShowTransitionElements(
+ web_contents_->GetMainFrame()->GetRoutingID(),
+ ConvertJavaStringToUTF8(env, css_selector)));
+}
+
+
void WebContentsAndroid::ClearNavigationTransitionData(JNIEnv* env,
jobject jobj) {
static_cast<WebContentsImpl*>(web_contents_)->ClearNavigationTransitionData();
« no previous file with comments | « content/browser/web_contents/web_contents_android.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698