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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Addressed comments from csharrison@. 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/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index 78684536f81e8520769f3b1ff03679ea53276f70..ba0404efcce1a3473e79565ad76b4238df763aec 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -170,6 +170,12 @@ void WebFrame::SetFrameOwnerProperties(
owner->SetAllowedFeatures(properties.allowed_features);
}
+void WebFrame::Collapse(bool collapsed) {
+ FrameOwner* owner = ToCoreFrame(*this)->Owner();
+ DCHECK(owner->IsLocal());
+ ToHTMLFrameOwnerElement(owner)->SetCollapsedByClient(collapsed);
+}
+
WebFrame* WebFrame::Opener() const {
return opener_;
}

Powered by Google App Engine
This is Rietveld 408576698