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

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

Issue 2035653006: [DevTools] Move Console to v8 inspector. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: improved api a bit Created 4 years, 5 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "core/inspector/InspectorMemoryAgent.h" 48 #include "core/inspector/InspectorMemoryAgent.h"
49 #include "core/inspector/InspectorNetworkAgent.h" 49 #include "core/inspector/InspectorNetworkAgent.h"
50 #include "core/inspector/InspectorPageAgent.h" 50 #include "core/inspector/InspectorPageAgent.h"
51 #include "core/inspector/InspectorResourceContainer.h" 51 #include "core/inspector/InspectorResourceContainer.h"
52 #include "core/inspector/InspectorResourceContentLoader.h" 52 #include "core/inspector/InspectorResourceContentLoader.h"
53 #include "core/inspector/InspectorTaskRunner.h" 53 #include "core/inspector/InspectorTaskRunner.h"
54 #include "core/inspector/InspectorTracingAgent.h" 54 #include "core/inspector/InspectorTracingAgent.h"
55 #include "core/inspector/InspectorWorkerAgent.h" 55 #include "core/inspector/InspectorWorkerAgent.h"
56 #include "core/inspector/LayoutEditor.h" 56 #include "core/inspector/LayoutEditor.h"
57 #include "core/inspector/MainThreadDebugger.h" 57 #include "core/inspector/MainThreadDebugger.h"
58 #include "core/inspector/PageConsoleAgent.h"
59 #include "core/layout/api/LayoutViewItem.h" 58 #include "core/layout/api/LayoutViewItem.h"
60 #include "core/page/FocusController.h" 59 #include "core/page/FocusController.h"
61 #include "core/page/Page.h" 60 #include "core/page/Page.h"
62 #include "modules/accessibility/InspectorAccessibilityAgent.h" 61 #include "modules/accessibility/InspectorAccessibilityAgent.h"
63 #include "modules/cachestorage/InspectorCacheStorageAgent.h" 62 #include "modules/cachestorage/InspectorCacheStorageAgent.h"
64 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" 63 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h"
65 #include "modules/indexeddb/InspectorIndexedDBAgent.h" 64 #include "modules/indexeddb/InspectorIndexedDBAgent.h"
66 #include "modules/storage/InspectorDOMStorageAgent.h" 65 #include "modules/storage/InspectorDOMStorageAgent.h"
67 #include "modules/webdatabase/InspectorDatabaseAgent.h" 66 #include "modules/webdatabase/InspectorDatabaseAgent.h"
68 #include "platform/RuntimeEnabledFeatures.h" 67 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 m_session->append(cssAgent); 384 m_session->append(cssAgent);
386 385
387 m_session->append(new InspectorAnimationAgent(m_inspectedFrames.get(), m_dom Agent, cssAgent, m_session->v8Session())); 386 m_session->append(new InspectorAnimationAgent(m_inspectedFrames.get(), m_dom Agent, cssAgent, m_session->v8Session()));
388 387
389 m_session->append(InspectorMemoryAgent::create()); 388 m_session->append(InspectorMemoryAgent::create());
390 389
391 m_session->append(InspectorApplicationCacheAgent::create(m_inspectedFrames.g et())); 390 m_session->append(InspectorApplicationCacheAgent::create(m_inspectedFrames.g et()));
392 391
393 m_session->append(InspectorIndexedDBAgent::create(m_inspectedFrames.get())); 392 m_session->append(InspectorIndexedDBAgent::create(m_inspectedFrames.get()));
394 393
395 m_session->append(new PageConsoleAgent(m_session->v8Session(), m_domAgent, m _inspectedFrames.get()));
396
397 InspectorWorkerAgent* workerAgent = new InspectorWorkerAgent(m_inspectedFram es.get()); 394 InspectorWorkerAgent* workerAgent = new InspectorWorkerAgent(m_inspectedFram es.get());
398 m_session->append(workerAgent); 395 m_session->append(workerAgent);
399 396
400 InspectorTracingAgent* tracingAgent = InspectorTracingAgent::create(this, wo rkerAgent, m_inspectedFrames.get()); 397 InspectorTracingAgent* tracingAgent = InspectorTracingAgent::create(this, wo rkerAgent, m_inspectedFrames.get());
401 m_tracingAgent = tracingAgent; 398 m_tracingAgent = tracingAgent;
402 m_session->append(tracingAgent); 399 m_session->append(tracingAgent);
403 400
404 m_session->append(new InspectorDOMDebuggerAgent(isolate, m_domAgent, m_sessi on->v8Session())); 401 m_session->append(new InspectorDOMDebuggerAgent(isolate, m_domAgent, m_sessi on->v8Session()));
405 402
406 m_session->append(InspectorInputAgent::create(m_inspectedFrames.get())); 403 m_session->append(InspectorInputAgent::create(m_inspectedFrames.get()));
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
592 if (m_overlay) 589 if (m_overlay)
593 m_overlay->suspend(); 590 m_overlay->suspend();
594 } 591 }
595 592
596 void WebDevToolsAgentImpl::profilingStopped() 593 void WebDevToolsAgentImpl::profilingStopped()
597 { 594 {
598 if (m_overlay) 595 if (m_overlay)
599 m_overlay->resume(); 596 m_overlay->resume();
600 } 597 }
601 598
599 void WebDevToolsAgentImpl::consoleCleared()
600 {
601 if (m_domAgent)
602 m_domAgent->releaseDanglingNodes();
603 }
604
602 void WebDevToolsAgentImpl::pageLayoutInvalidated(bool resized) 605 void WebDevToolsAgentImpl::pageLayoutInvalidated(bool resized)
603 { 606 {
604 if (m_overlay) 607 if (m_overlay)
605 m_overlay->pageLayoutInvalidated(resized); 608 m_overlay->pageLayoutInvalidated(resized);
606 } 609 }
607 610
608 void WebDevToolsAgentImpl::setPausedInDebuggerMessage(const String& message) 611 void WebDevToolsAgentImpl::setPausedInDebuggerMessage(const String& message)
609 { 612 {
610 if (m_overlay) 613 if (m_overlay)
611 m_overlay->setPausedInDebuggerMessage(message); 614 m_overlay->setPausedInDebuggerMessage(message);
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
668 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) 671 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method)
669 { 672 {
670 return method == "Debugger.pause" 673 return method == "Debugger.pause"
671 || method == "Debugger.setBreakpoint" 674 || method == "Debugger.setBreakpoint"
672 || method == "Debugger.setBreakpointByUrl" 675 || method == "Debugger.setBreakpointByUrl"
673 || method == "Debugger.removeBreakpoint" 676 || method == "Debugger.removeBreakpoint"
674 || method == "Debugger.setBreakpointsActive"; 677 || method == "Debugger.setBreakpointsActive";
675 } 678 }
676 679
677 } // namespace blink 680 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.h ('k') | third_party/WebKit/Source/web/WebPepperSocketImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698