Index: third_party/WebKit/Source/web/InspectorEmulationAgent.cpp |
diff --git a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp |
index ba8f31b71d66cf75371e9b2a69a84c72ef71fe77..bf1c41eb35e6d59f12502de91b73daec36960dc7 100644 |
--- a/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp |
+++ b/third_party/WebKit/Source/web/InspectorEmulationAgent.cpp |
@@ -9,6 +9,7 @@ |
#include "core/frame/Settings.h" |
#include "core/page/Page.h" |
#include "platform/geometry/DoubleRect.h" |
+#include "public/platform/WebViewScheduler.h" |
#include "web/DevToolsEmulator.h" |
#include "web/WebLocalFrameImpl.h" |
#include "web/WebViewImpl.h" |
@@ -92,6 +93,16 @@ void InspectorEmulationAgent::setCPUThrottlingRate(ErrorString*, double throttli |
m_client->setCPUThrottlingRate(throttlingRate); |
} |
+void InspectorEmulationAgent::enableVirtualTime(ErrorString*) |
+{ |
+ m_webLocalFrameImpl->view()->scheduler()->enableVirtualTime(); |
+} |
+ |
+void InspectorEmulationAgent::setVirtualTimePolicy(ErrorString*, const String& in_policy) |
+{ |
+ m_webLocalFrameImpl->view()->scheduler()->setVirtualTimePolicy(in_policy); |
+} |
+ |
DEFINE_TRACE(InspectorEmulationAgent) |
{ |
visitor->trace(m_webLocalFrameImpl); |