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

Unified Diff: content/public/renderer/render_view.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/public/renderer/render_view.h
diff --git a/content/public/renderer/render_view.h b/content/public/renderer/render_view.h
index 14020aebf208296b06c5435663bf5c1e19659d06..122a8f66233ee8db8b784fa613ae637e89bcca6c 100644
--- a/content/public/renderer/render_view.h
+++ b/content/public/renderer/render_view.h
@@ -68,6 +68,10 @@ class CONTENT_EXPORT RenderView : public IPC::Message::Sender {
// Gets WebKit related preferences associated with this view.
virtual WebPreferences& GetWebkitPreferences() = 0;
+ // Gets the default device scale factor of the render view in absense
rjkroege 2012/02/16 23:35:05 absence
Fady Samuel 2012/02/17 00:05:47 Done.
+ // of a viewport meta tag.
+ virtual int GetDefaultDeviceScaleFactor() const = 0;
+
// Returns the associated WebView. May return NULL when the view is closing.
virtual WebKit::WebView* GetWebView() = 0;

Powered by Google App Engine
This is Rietveld 408576698