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

Unified Diff: Source/core/page/FrameView.h

Issue 15927026: Enabled using viewport on desktop browsers behind experimental flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: WIP Created 7 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
Index: Source/core/page/FrameView.h
diff --git a/Source/core/page/FrameView.h b/Source/core/page/FrameView.h
index ff021cf007f9659f1daf79d2159ae7c9807b55b5..1c96bb3156bc1baf21a32cbec278284c8eb7db90 100644
--- a/Source/core/page/FrameView.h
+++ b/Source/core/page/FrameView.h
@@ -86,6 +86,9 @@ public:
void setMarginWidth(LayoutUnit);
void setMarginHeight(LayoutUnit);
+ virtual IntSize layoutSize(VisibleContentRectIncludesScrollbars = ExcludeScrollbars) const;
+ void setLayoutSize(const IntSize&);
+
virtual void setCanHaveScrollbars(bool);
void updateCanHaveScrollbars();
@@ -464,6 +467,9 @@ private:
IntSize m_lastViewportSize;
float m_lastZoomFactor;
+ // Client can explicitly set a layout size, if unset the frameRect is used
+ IntSize m_layoutSize;
+
AtomicString m_mediaType;
AtomicString m_mediaTypeWhenNotPrinting;

Powered by Google App Engine
This is Rietveld 408576698