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

Side by Side Diff: third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp

Issue 1917733002: [DevTools] Move part of CommandLineAPI to native (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/public/V8RuntimeAgent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010-2011 Google Inc. All rights reserved. 2 * Copyright (C) 2010-2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 m_session->append(InspectorInputAgent::create(m_inspectedFrames.get())); 429 m_session->append(InspectorInputAgent::create(m_inspectedFrames.get()));
430 430
431 m_session->append(InspectorProfilerAgent::create(m_v8Session->profilerAgent( ), m_overlay.get())); 431 m_session->append(InspectorProfilerAgent::create(m_v8Session->profilerAgent( ), m_overlay.get()));
432 432
433 m_session->append(InspectorHeapProfilerAgent::create(isolate, m_v8Session->h eapProfilerAgent())); 433 m_session->append(InspectorHeapProfilerAgent::create(isolate, m_v8Session->h eapProfilerAgent()));
434 434
435 InspectorPageAgent* pageAgent = InspectorPageAgent::create(m_inspectedFrames .get(), this, m_resourceContentLoader.get(), debuggerAgent); 435 InspectorPageAgent* pageAgent = InspectorPageAgent::create(m_inspectedFrames .get(), this, m_resourceContentLoader.get(), debuggerAgent);
436 m_pageAgent = pageAgent; 436 m_pageAgent = pageAgent;
437 m_session->append(pageAgent); 437 m_session->append(pageAgent);
438 438
439 runtimeAgent->setClearConsoleCallback(bind<>(&InspectorConsoleAgent::clearAl lMessages, pageConsoleAgent));
440 m_tracingAgent->setLayerTreeId(m_layerTreeId); 439 m_tracingAgent->setLayerTreeId(m_layerTreeId);
441 m_resourceAgent->setHostId(hostId); 440 m_resourceAgent->setHostId(hostId);
442 441
443 if (m_includeViewAgents) { 442 if (m_includeViewAgents) {
444 // TODO(dgozman): we should actually pass the view instead of frame, but during 443 // TODO(dgozman): we should actually pass the view instead of frame, but during
445 // remote->local transition we cannot access mainFrameImpl() yet, so we have to store the 444 // remote->local transition we cannot access mainFrameImpl() yet, so we have to store the
446 // frame which will become the main frame later. 445 // frame which will become the main frame later.
447 m_session->append(InspectorRenderingAgent::create(m_webLocalFrameImpl, m _overlay.get())); 446 m_session->append(InspectorRenderingAgent::create(m_webLocalFrameImpl, m _overlay.get()));
448 m_session->append(InspectorEmulationAgent::create(m_webLocalFrameImpl, t his)); 447 m_session->append(InspectorEmulationAgent::create(m_webLocalFrameImpl, t his));
449 // TODO(dgozman): migrate each of the following agents to frame once mod ule is ready. 448 // TODO(dgozman): migrate each of the following agents to frame once mod ule is ready.
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 if (!protocol::Dispatcher::getCommandName(message, &commandName)) 693 if (!protocol::Dispatcher::getCommandName(message, &commandName))
695 return false; 694 return false;
696 return commandName == "Debugger.pause" 695 return commandName == "Debugger.pause"
697 || commandName == "Debugger.setBreakpoint" 696 || commandName == "Debugger.setBreakpoint"
698 || commandName == "Debugger.setBreakpointByUrl" 697 || commandName == "Debugger.setBreakpointByUrl"
699 || commandName == "Debugger.removeBreakpoint" 698 || commandName == "Debugger.removeBreakpoint"
700 || commandName == "Debugger.setBreakpointsActive"; 699 || commandName == "Debugger.setBreakpointsActive";
701 } 700 }
702 701
703 } // namespace blink 702 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/v8_inspector/public/V8RuntimeAgent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698