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

Unified Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 1521113002: DevTools: Initial implementation of slow CPU emulation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 4 landing Created 5 years 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: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
index 7eef0622f0cdaf83042b0033d2797952c9a9365c..676b7a4e86a5b7c82e9769eb2cca2ec937e8a091 100644
--- a/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
+++ b/third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp
@@ -296,7 +296,7 @@ PassOwnPtrWillBeRawPtr<WebDevToolsAgentImpl> WebDevToolsAgentImpl::create(WebLoc
// remote->local transition we cannot access mainFrameImpl() yet, so we have to store the
// frame which will become the main frame later.
agent->registerAgent(InspectorRenderingAgent::create(frame));
- agent->registerAgent(InspectorEmulationAgent::create(frame));
+ agent->registerAgent(InspectorEmulationAgent::create(frame, agent));
// TODO(dgozman): migrate each of the following agents to frame once module is ready.
agent->registerAgent(InspectorDatabaseAgent::create(view->page()));
agent->registerAgent(DeviceOrientationInspectorAgent::create(view->page()));
@@ -604,6 +604,11 @@ void WebDevToolsAgentImpl::disableTracing()
m_client->disableTracing();
}
+void WebDevToolsAgentImpl::setCPUThrottlingRate(double rate)
+{
+ m_client->setCPUThrottlingRate(rate);
+}
+
void WebDevToolsAgentImpl::dispatchOnInspectorBackend(int sessionId, const WebString& message)
{
if (!m_attached)
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.h ('k') | third_party/WebKit/public/web/WebDevToolsAgentClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698