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

Unified Diff: Source/web/WebFrameImpl.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/web/WebFrameImpl.h
diff --git a/Source/web/WebFrameImpl.h b/Source/web/WebFrameImpl.h
index 18696db49c5f91d0674899fa1422e2116c2c11bd..08b03733c3c5e5d1499f691e4545c9c8c5f1b7f7 100644
--- a/Source/web/WebFrameImpl.h
+++ b/Source/web/WebFrameImpl.h
@@ -298,6 +298,8 @@ public:
WebFrameClient* client() const { return m_client; }
void setClient(WebFrameClient* client) { m_client = client; }
+ void setInputEventsScaleFactorForEmulation(float);
+
static void selectWordAroundPosition(WebCore::Frame*, WebCore::VisiblePosition);
private:
@@ -495,6 +497,9 @@ private:
// Ensure we don't overwrite valid history data during same document loads
// from HistoryItems
bool m_inSameDocumentHistoryLoad;
+
+ // Stores the additional input evetns scale when device metrics emulation is enabled.
+ float m_inputEventsScaleFactorForEmulation;
};
inline WebFrameImpl* toWebFrameImpl(WebFrame* webFrame)

Powered by Google App Engine
This is Rietveld 408576698