diff options
Diffstat (limited to 'webkit/glue/devtools/js/inject_dispatch.js')
-rw-r--r-- | webkit/glue/devtools/js/inject_dispatch.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/webkit/glue/devtools/js/inject_dispatch.js b/webkit/glue/devtools/js/inject_dispatch.js index a6127580..fa7fb10 100644 --- a/webkit/glue/devtools/js/inject_dispatch.js +++ b/webkit/glue/devtools/js/inject_dispatch.js @@ -61,6 +61,18 @@ function dispatch(method, var_args) { return; } + // Sniff some inspector controller state changes in order to support + // cross-navigation instrumentation. Keep names in sync with + // webdevtoolsagent_impl. + if (method == 'timelineProfilerWasStarted') + DevToolsAgentHost.runtimeFeatureStateChanged('timeline-profiler', true); + else if (method == 'timelineProfilerWasStopped') + DevToolsAgentHost.runtimeFeatureStateChanged('timeline-profiler', false); + else if (method == 'resourceTrackingWasEnabled') + DevToolsAgentHost.runtimeFeatureStateChanged('resource-tracking', true); + else if (method == 'resourceTrackingWasDisabled') + DevToolsAgentHost.runtimeFeatureStateChanged('resource-tracking', false); + if (ApuAgentDispatcher.enabled) { ApuAgentDispatcher.dispatchToApu(method, args); return; |