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

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: Another rebase 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 | « Source/web/WebDevToolsAgentPrivate.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/WebFrameImpl.h
diff --git a/Source/web/WebFrameImpl.h b/Source/web/WebFrameImpl.h
index 22891212c8d1b7feef996dd1d4aabc52f83063ac..392edf5637178dca1c9dacfd6a26025f15d37037 100644
--- a/Source/web/WebFrameImpl.h
+++ b/Source/web/WebFrameImpl.h
@@ -302,6 +302,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:
@@ -499,6 +501,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)
« no previous file with comments | « Source/web/WebDevToolsAgentPrivate.h ('k') | Source/web/WebFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698