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

Unified Diff: public/web/WebView.h

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: git rebase Created 7 years, 3 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: public/web/WebView.h
diff --git a/public/web/WebView.h b/public/web/WebView.h
index 29ef2c4b9b9adb059ab45f7ab1984cb34220200d..7e8cc71edd7cf7a4c8af069df5b892b1621fe20c 100644
--- a/public/web/WebView.h
+++ b/public/web/WebView.h
@@ -304,17 +304,17 @@ public:
virtual void setDeviceScaleFactor(float) = 0;
- // Fixed Layout --------------------------------------------------------
+ // Layout size -----------------------------------------------------------
- // In fixed layout mode, the layout of the page is independent of the
- // view port size, given by WebWidget::size().
-
- virtual bool isFixedLayoutModeEnabled() const = 0;
- virtual void enableFixedLayoutMode(bool enable) = 0;
-
- virtual WebSize fixedLayoutSize() const = 0;
+ // Locks the main frame's layout size to a fixed value and causes
+ // it to ignore the viewport arguments/window resize. Setting width
+ // and height to 0 will remove the lock and renable viewport/resize.
virtual void setFixedLayoutSize(const WebSize&) = 0;
+ // TODO: Remove once Chrome side changes land
+ virtual void enableFixedLayoutMode(bool enable) { }
+ virtual bool isFixedLayoutModeEnabled() { return true; }
+
// Auto-Resize -----------------------------------------------------------
« Source/web/WebViewImpl.cpp ('K') | « Source/web/tests/data/viewport-height-1000.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698