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

Unified Diff: Source/web/WebViewImpl.h

Issue 23819019: Refactor fixed layout mode (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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 | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »
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 3112cc6106dfd3b3291b29336abcc29ad4a718f3..a2e9aff6fda808158856d8f14bb463d31045ee9c 100644
--- a/Source/web/WebViewImpl.h
+++ b/Source/web/WebViewImpl.h
@@ -240,10 +240,15 @@ public:
virtual float deviceScaleFactor() const;
virtual void setDeviceScaleFactor(float);
- virtual bool isFixedLayoutModeEnabled() const;
- virtual void enableFixedLayoutMode(bool enable);
- virtual WebSize fixedLayoutSize() const;
+
virtual void setFixedLayoutSize(const WebSize&);
+
+ // DEPRECATED: Will be removed soon.
+ // See https://codereview.chromium.org/23819019/
+ virtual bool isFixedLayoutModeEnabled() const { return true; }
+ virtual void enableFixedLayoutMode(bool) { }
+ virtual WebSize fixedLayoutSize() const { return WebSize(); }
+
virtual void enableAutoResizeMode(
const WebSize& minSize,
const WebSize& maxSize);
@@ -446,7 +451,8 @@ public:
return m_maxAutoSize;
}
- void updatePageDefinedPageScaleConstraints(const WebCore::ViewportDescription&);
+ void updateMainFrameLayoutSize();
+ void updatePageDefinedViewportConstraints(const WebCore::ViewportDescription&);
// Start a system drag and drop operation.
void startDragging(
« no previous file with comments | « Source/web/WebFrameImpl.cpp ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698