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

Unified Diff: Source/web/WebViewImpl.h

Issue 382543003: Add a force-layout-height-to-zero layout mode to WebViewImpl (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
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/tests/WebFrameTest.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebViewImpl.h
diff --git a/Source/web/WebViewImpl.h b/Source/web/WebViewImpl.h
index 25dcb4f8f1924629ae227b7fa939749d97bebb80..178626b87c39d5a108541b3df427cf53178ded77 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -192,6 +192,7 @@ public:
virtual float deviceScaleFactor() const OVERRIDE;
virtual void setDeviceScaleFactor(float) OVERRIDE;
+ virtual void setForceZeroLayoutHeight(bool enable) OVERRIDE;
virtual void setFixedLayoutSize(const WebSize&) OVERRIDE;
virtual void enableAutoResizeMode(
@@ -578,6 +579,7 @@ private:
WebSize m_size;
bool m_fixedLayoutSizeLock;
+ bool m_forceZeroLayoutHeight;
// If true, automatically resize the render view around its content.
bool m_shouldAutoResize;
// The lower bound on the size when auto-resizing.
« no previous file with comments | « no previous file | Source/web/WebViewImpl.cpp » ('j') | Source/web/tests/WebFrameTest.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698