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

Unified Diff: Source/web/WebLocalFrameImpl.cpp

Issue 316053007: Navigation transitions: Added notifyTransitionsShown and setupTransitionsView to WebLocalFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 5 months 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
Index: Source/web/WebLocalFrameImpl.cpp
diff --git a/Source/web/WebLocalFrameImpl.cpp b/Source/web/WebLocalFrameImpl.cpp
index d246d6429bb3d4d14845836d5cef76892d60a94b..4c482dbec7e4e64c17923c276db32f38a7d8df97 100644
--- a/Source/web/WebLocalFrameImpl.cpp
+++ b/Source/web/WebLocalFrameImpl.cpp
@@ -1224,6 +1224,27 @@ void WebLocalFrameImpl::extendSelectionAndDelete(int before, int after)
frame()->inputMethodController().extendSelectionAndDelete(before, after);
}
+void WebLocalFrameImpl::beginExitTransition(const WebString& cssSelector)
+{
+ frame()->document()->hideTransitionElements(cssSelector);
+ frame()->loader().closeURL();
abarth-chromium 2014/07/29 17:07:15 Will this cause us to dispatch the unload event tw
oystein (OOO til 10th of July) 2014/07/30 22:11:51 After discussing this with Simon, it turns out thi
+ frame()->document()->styleEngine()->enableExitTransitionStylesheets();
abarth-chromium 2014/07/29 17:07:15 It seems like the document is in a strange state a
+}
+
+void WebLocalFrameImpl::setIsTransitionDocument()
+{
+ // This ensures the transition UA stylesheet gets applied.
+ frame()->document()->setIsTransitionDocument();
abarth-chromium 2014/07/29 17:07:15 Given that this function operates exclusively on t
oystein (OOO til 10th of July) 2014/07/30 22:11:51 Done.
+}
+
+void WebLocalFrameImpl::navigateToSandboxedMarkup(const WebData& markup)
+{
+ ASSERT(document().securityOrigin().isUnique());
+ frame()->document()->enforceSandboxFlags(SandboxAll);
+
+ loadHTMLString(markup, document().url(), WebURL(), true);
+}
+
void WebLocalFrameImpl::setCaretVisible(bool visible)
{
frame()->selection().setCaretVisible(visible);

Powered by Google App Engine
This is Rietveld 408576698