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

Unified Diff: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Addressed comments, made redirect response PlzNavigate-only. Created 3 years, 8 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: third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
index 9e83b7d3d6bbdf82acd02eb5e5b16fc018e3253c..c68aa97c08930c807b04dd213d6943c3d852df0f 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -646,6 +646,12 @@ bool WebLocalFrameImpl::HasVerticalScrollbar() const {
GetFrame()->View()->VerticalScrollbar();
}
+void WebLocalFrameImpl::Collapse(bool collapsed) {
+ DCHECK(GetFrame()->Owner()->IsLocal());
+ HTMLFrameOwnerElement* owner = ToHTMLFrameOwnerElement(GetFrame()->Owner());
+ owner->SetCollapsedByClient(collapsed);
+}
+
WebView* WebLocalFrameImpl::View() const {
return ViewImpl();
}

Powered by Google App Engine
This is Rietveld 408576698