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

Unified Diff: Source/core/inspector/InspectorPageAgent.h

Issue 146683003: Settings should not call into inspector (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/inspector/InspectorPageAgent.h
diff --git a/Source/core/inspector/InspectorPageAgent.h b/Source/core/inspector/InspectorPageAgent.h
old mode 100644
new mode 100755
index 958404fe8ccf5f72986704c458baa05ce4c9cc44..edab57ec632ac01d53364510b5c53ffade0b7087
--- a/Source/core/inspector/InspectorPageAgent.h
+++ b/Source/core/inspector/InspectorPageAgent.h
@@ -127,9 +127,9 @@ public:
GeolocationPosition* overrideGeolocationPosition(GeolocationPosition*);
// Text autosizing override helpers.
- bool overrideTextAutosizing(bool);
+ bool overrideTextAutosizing();
pfeldman 2014/01/24 16:25:21 These are now private then.
gnana 2014/01/27 16:31:07 Done.
// Note: This is used by Settings::deviceScaleAdjustment to calculate the overridden device scale adjustment.
- float overrideFontScaleFactor(float);
+ float overrideFontScaleFactor();
// InspectorInstrumentation API
void didClearWindowObjectInWorld(Frame*, DOMWrapperWorld*);
@@ -153,6 +153,8 @@ public:
void didResizeMainFrame();
void didRecalculateStyle();
void scriptsEnabled(bool isEnabled);
+ void textAutosizingEnabled(bool isEnabled);
+ void fontScaleFactor(float factor);
// Inspector Controller API
virtual void setFrontend(InspectorFrontend*) OVERRIDE;
@@ -207,6 +209,8 @@ private:
bool m_ignoreScriptsEnabledNotification;
bool m_deviceMetricsOverridden;
bool m_emulateViewportEnabled;
+ bool m_settingsCacheTextAutosizingEnabled;
+ float m_settingsCacheFontScaleFactor;
RefPtr<GeolocationPosition> m_geolocationPosition;
RefPtr<GeolocationPosition> m_platformGeolocationPosition;
};

Powered by Google App Engine
This is Rietveld 408576698