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

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

Issue 145003002: [DevTools] Switch from blink-based to content-based touch emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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.cpp
diff --git a/Source/core/inspector/InspectorPageAgent.cpp b/Source/core/inspector/InspectorPageAgent.cpp
index 5486d3a78009e39f173dcf32e6887c28062348a0..d0e55391d67a2dcf1160c25f6e64f38b0d465d2a 100644
--- a/Source/core/inspector/InspectorPageAgent.cpp
+++ b/Source/core/inspector/InspectorPageAgent.cpp
@@ -1160,8 +1160,7 @@ void InspectorPageAgent::updateViewMetrics(int width, int height, double deviceS
void InspectorPageAgent::updateTouchEventEmulationInPage(bool enabled)
{
m_state->setBoolean(PageAgentState::touchEventEmulationEnabled, enabled);
- if (mainFrame() && mainFrame()->settings())
- mainFrame()->settings()->setTouchEventEmulationEnabled(enabled);
+ m_client->setTouchEventEmulationEnabled(enabled);
}
void InspectorPageAgent::setTouchEmulationEnabled(ErrorString*, bool enabled)

Powered by Google App Engine
This is Rietveld 408576698