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

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

Issue 2632633006: Implement NavigationThrottle::BLOCK_REQUEST_AND_COLLAPSE. (Closed)
Patch Set: Remove surplus semicolon. Created 3 years, 11 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 0cb62fd8e335545ffaf00c793c0686c16e556e38..f62f570633d8b3eda448ecba7f61e9947c544c55 100644
--- a/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
+++ b/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp
@@ -628,6 +628,11 @@ bool WebLocalFrameImpl::hasVerticalScrollbar() const {
return frame() && frame()->view() && frame()->view()->verticalScrollbar();
}
+void WebLocalFrameImpl::collapseFrameOwner(bool collapsed) {
+ DCHECK(frame()->owner()->isLocal());
+ frame()->owner()->setShouldCollapse(collapsed);
+}
+
WebView* WebLocalFrameImpl::view() const {
return viewImpl();
}

Powered by Google App Engine
This is Rietveld 408576698