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

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

Issue 49913005: Add Settings::deviceScaleAdjustment. (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 | « no previous file | Source/core/page/Settings.cpp » ('j') | Source/core/page/Settings.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Settings.h
diff --git a/Source/core/page/Settings.h b/Source/core/page/Settings.h
index 41f89e23f784d89be55ed04f1b272b3e101d9821..4959bedc1798164cd08daace892e48a3bd04754b 100644
--- a/Source/core/page/Settings.h
+++ b/Source/core/page/Settings.h
@@ -91,6 +91,9 @@ public:
void setTextAutosizingFontScaleFactor(float);
float textAutosizingFontScaleFactor() const { return m_textAutosizingFontScaleFactor; }
+ void setDeviceScaleAdjustment(float);
pdr. 2013/10/29 02:04:44 Can you add a comment here describing what this is
skobes 2013/10/29 17:43:32 Done.
+ float deviceScaleAdjustment() const { return m_deviceScaleAdjustment; }
+
// Only set by Layout Tests, and only used if textAutosizingEnabled() returns true.
void setTextAutosizingWindowSizeOverride(const IntSize&);
const IntSize& textAutosizingWindowSizeOverride() const { return m_textAutosizingWindowSizeOverride; }
@@ -168,6 +171,7 @@ private:
ScriptFontFamilyMap m_fantasyFontFamilyMap;
ScriptFontFamilyMap m_pictographFontFamilyMap;
float m_textAutosizingFontScaleFactor;
+ float m_deviceScaleAdjustment;
IntSize m_textAutosizingWindowSizeOverride;
bool m_textAutosizingEnabled : 1;
bool m_useWideViewport : 1;
@@ -192,6 +196,7 @@ private:
Timer<Settings> m_setImageLoadingSettingsTimer;
void imageLoadingSettingsTimerFired(Timer<Settings>*);
+ void recalculateAutosizingMultipliers();
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/core/page/Settings.cpp » ('j') | Source/core/page/Settings.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698