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

Unified Diff: Source/web/InspectorClientImpl.cpp

Issue 184043004: DevTools: specify trace event filter when installing trace callback (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: unsetTraceEventHandler -> resetTraceEventHandler Created 6 years, 10 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/InspectorClientImpl.h ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/InspectorClientImpl.cpp
diff --git a/Source/web/InspectorClientImpl.cpp b/Source/web/InspectorClientImpl.cpp
index 004f247d3012c31aa53cb9717313bc02cf46451e..7f7c4f7835825cc375293bf672f3d3f8bc0ee11f 100644
--- a/Source/web/InspectorClientImpl.cpp
+++ b/Source/web/InspectorClientImpl.cpp
@@ -160,10 +160,16 @@ void InspectorClientImpl::dispatchMouseEvent(const PlatformMouseEvent& event)
agent->dispatchMouseEvent(event);
}
-void InspectorClientImpl::setTraceEventCallback(TraceEventCallback callback)
+void InspectorClientImpl::setTraceEventCallback(const String& categoryFilter, TraceEventCallback callback)
{
if (WebDevToolsAgentImpl* agent = devToolsAgent())
- agent->setTraceEventCallback(callback);
+ agent->setTraceEventCallback(categoryFilter, callback);
+}
+
+void InspectorClientImpl::resetTraceEventCallback()
+{
+ if (WebDevToolsAgentImpl* agent = devToolsAgent())
+ agent->resetTraceEventCallback();
}
void InspectorClientImpl::startGPUEventsRecording()
« no previous file with comments | « Source/web/InspectorClientImpl.h ('k') | Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698