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/renderer/render_frame_impl.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/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 9dfdf6b0a1a9a383e1a3c5da5997b169842dba26..371c5410d073f35956a8badbbb94c38a35c01c94 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -938,6 +938,10 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
OnSetEditableSelectionOffsets)
IPC_MESSAGE_HANDLER(FrameMsg_SetupTransitionView, OnSetupTransitionView)
IPC_MESSAGE_HANDLER(FrameMsg_BeginExitTransition, OnBeginExitTransition)
+ IPC_MESSAGE_HANDLER(FrameMsg_HideTransitionElements,
+ OnHideTransitionElements)
+ IPC_MESSAGE_HANDLER(FrameMsg_ShowTransitionElements,
+ OnShowTransitionElements)
IPC_MESSAGE_HANDLER(FrameMsg_Reload, OnReload)
IPC_MESSAGE_HANDLER(FrameMsg_TextSurroundingSelectionRequest,
OnTextSurroundingSelectionRequest)
@@ -1493,6 +1497,18 @@ void RenderFrameImpl::OnBeginExitTransition(const std::string& css_selector) {
frame_->document().beginExitTransition(WebString::fromUTF8(css_selector));
}
+void RenderFrameImpl::OnHideTransitionElements(
+ const std::string& css_selector) {
+ frame_->document().setIsTransitionDocument();
+ frame_->document().hideTransitionElements(WebString::fromUTF8(css_selector));
+}
+
+void RenderFrameImpl::OnShowTransitionElements(
+ const std::string& css_selector) {
+ frame_->document().setIsTransitionDocument();
+ frame_->document().showTransitionElements(WebString::fromUTF8(css_selector));
+}
+
bool RenderFrameImpl::RunJavaScriptMessage(JavaScriptMessageType type,
const base::string16& message,
const base::string16& default_value,
« no previous file with comments | « content/renderer/render_frame_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698