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

Unified Diff: content/renderer/render_view_impl.h

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated according to discussion with rjkroege Created 8 years, 10 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: content/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index c34ade4703e4dc391b2587fea0eb0751fb7d2f4d..640d513c8bf9a5232f8a72ba38bb55c067701031 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -580,6 +580,7 @@ class RenderViewImpl : public RenderWidget,
virtual gfx::Size GetSize() OVERRIDE;
virtual gfx::NativeViewId GetHostWindow() OVERRIDE;
virtual WebPreferences& GetWebkitPreferences() OVERRIDE;
+ virtual int GetDefaultDeviceScaleFactor() const OVERRIDE;
virtual WebKit::WebView* GetWebView() OVERRIDE;
virtual WebKit::WebNode GetFocusedNode() const OVERRIDE;
virtual WebKit::WebNode GetContextMenuNode() const OVERRIDE;
@@ -1012,6 +1013,8 @@ class RenderViewImpl : public RenderWidget,
// should be drawn.
gfx::Size disable_scrollbars_size_limit_;
+ int default_device_scale_factor_;
+
// Loading state -------------------------------------------------------------
// True if the top level frame is currently being loaded.

Powered by Google App Engine
This is Rietveld 408576698