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

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

Issue 23187005: [DevTools] Use device metrics emulation implemented in content. (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Reupload Created 7 years, 3 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/page/FrameView.h
diff --git a/Source/core/page/FrameView.h b/Source/core/page/FrameView.h
index 81c9895520b5be611b611437bf866f2d96001c34..3813791f7e9c6066945afa3853a9f5c155cadf91 100644
--- a/Source/core/page/FrameView.h
+++ b/Source/core/page/FrameView.h
@@ -155,6 +155,9 @@ public:
virtual float visibleContentScaleFactor() const OVERRIDE { return m_visibleContentScaleFactor; }
void setVisibleContentScaleFactor(float);
+ virtual float inputEventsScaleFactor() const OVERRIDE { return visibleContentScaleFactor() * m_inputEventsScaleFactorForEmulation; }
+ void setInputEventsScaleFactorForEmulation(float);
+
virtual void setScrollPosition(const IntPoint&) OVERRIDE;
virtual void repaintFixedElementsAfterScrolling();
virtual void updateFixedElementsAfterScrolling();
@@ -536,6 +539,7 @@ private:
bool m_hasSoftwareFilters;
float m_visibleContentScaleFactor;
+ float m_inputEventsScaleFactorForEmulation;
PartialLayoutState m_partialLayout;
};

Powered by Google App Engine
This is Rietveld 408576698