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

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

Issue 355393004: [DevTools] Rename "emulateViewport" to "mobile". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: another rebase Created 6 years, 6 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 | « Source/core/inspector/InspectorClient.h ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorPageAgent.h
diff --git a/Source/core/inspector/InspectorPageAgent.h b/Source/core/inspector/InspectorPageAgent.h
index 03b9f98f92f1a91492a75eeef82fcf7c8d88359b..c7ec55e94769eb4cfa86f047d7f64866a6793c45 100644
--- a/Source/core/inspector/InspectorPageAgent.h
+++ b/Source/core/inspector/InspectorPageAgent.h
@@ -108,7 +108,7 @@ public:
virtual void hasTouchInputs(ErrorString*, bool* result) OVERRIDE;
virtual void searchInResource(ErrorString*, const String& frameId, const String& url, const String& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefPtr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&) OVERRIDE;
virtual void setDocumentContent(ErrorString*, const String& frameId, const String& html) OVERRIDE;
- virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, double deviceScaleFactor, bool emulateViewport, bool fitWindow, const double* optionalScale, const double* optionalOffsetX, const double* optionalOffsetY) OVERRIDE;
+ virtual void setDeviceMetricsOverride(ErrorString*, int width, int height, double deviceScaleFactor, bool mobile, bool fitWindow, const double* optionalScale, const double* optionalOffsetX, const double* optionalOffsetY) OVERRIDE;
virtual void clearDeviceMetricsOverride(ErrorString*) OVERRIDE;
virtual void resetScrollAndPageScaleFactor(ErrorString*) OVERRIDE;
virtual void setShowPaintRects(ErrorString*, bool show) OVERRIDE;
@@ -174,9 +174,9 @@ private:
class GetResourceContentLoadListener;
InspectorPageAgent(Page*, InjectedScriptManager*, InspectorClient*, InspectorOverlay*);
- bool deviceMetricsChanged(bool enabled, int width, int height, double deviceScaleFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, double offsetY);
+ bool deviceMetricsChanged(bool enabled, int width, int height, double deviceScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offsetY);
void updateViewMetricsFromState();
- void updateViewMetrics(bool enabled, int width, int height, double deviceScaleFactor, bool emulateViewport, bool fitWindow, double scale, double offsetX, double offsetY);
+ void updateViewMetrics(bool enabled, int width, int height, double deviceScaleFactor, bool mobile, bool fitWindow, double scale, double offsetX, double offsetY);
void updateTouchEventEmulationInPage(bool);
bool compositingEnabled(ErrorString*);
@@ -204,7 +204,7 @@ private:
bool m_enabled;
bool m_ignoreScriptsEnabledNotification;
bool m_deviceMetricsOverridden;
- bool m_emulateViewportEnabled;
+ bool m_emulateMobileEnabled;
bool m_touchEmulationEnabled;
bool m_originalTouchEnabled;
« no previous file with comments | « Source/core/inspector/InspectorClient.h ('k') | Source/core/inspector/InspectorPageAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698