OLD | NEW |
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" | 65 #include "modules/device_orientation/DeviceOrientationInspectorAgent.h" |
66 #include "modules/indexeddb/InspectorIndexedDBAgent.h" | 66 #include "modules/indexeddb/InspectorIndexedDBAgent.h" |
67 #include "modules/storage/InspectorDOMStorageAgent.h" | 67 #include "modules/storage/InspectorDOMStorageAgent.h" |
68 #include "modules/webdatabase/InspectorDatabaseAgent.h" | 68 #include "modules/webdatabase/InspectorDatabaseAgent.h" |
69 #include "platform/CrossThreadFunctional.h" | 69 #include "platform/CrossThreadFunctional.h" |
70 #include "platform/RuntimeEnabledFeatures.h" | 70 #include "platform/RuntimeEnabledFeatures.h" |
71 #include "platform/TraceEvent.h" | 71 #include "platform/TraceEvent.h" |
72 #include "platform/graphics/GraphicsContext.h" | 72 #include "platform/graphics/GraphicsContext.h" |
73 #include "platform/graphics/paint/PaintController.h" | 73 #include "platform/graphics/paint/PaintController.h" |
74 #include "platform/inspector_protocol/Values.h" | 74 #include "platform/inspector_protocol/Values.h" |
75 #include "platform/v8_inspector/public/V8Debugger.h" | 75 #include "platform/v8_inspector/public/V8Inspector.h" |
76 #include "platform/v8_inspector/public/V8InspectorSession.h" | 76 #include "platform/v8_inspector/public/V8InspectorSession.h" |
77 #include "public/platform/Platform.h" | 77 #include "public/platform/Platform.h" |
78 #include "public/platform/WebLayerTreeView.h" | 78 #include "public/platform/WebLayerTreeView.h" |
79 #include "public/platform/WebRect.h" | 79 #include "public/platform/WebRect.h" |
80 #include "public/platform/WebString.h" | 80 #include "public/platform/WebString.h" |
81 #include "public/web/WebDevToolsAgentClient.h" | 81 #include "public/web/WebDevToolsAgentClient.h" |
82 #include "public/web/WebSettings.h" | 82 #include "public/web/WebSettings.h" |
83 #include "web/DevToolsEmulator.h" | 83 #include "web/DevToolsEmulator.h" |
84 #include "web/InspectorEmulationAgent.h" | 84 #include "web/InspectorEmulationAgent.h" |
85 #include "web/InspectorOverlay.h" | 85 #include "web/InspectorOverlay.h" |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 m_client = nullptr; | 361 m_client = nullptr; |
362 } | 362 } |
363 | 363 |
364 void WebDevToolsAgentImpl::initializeSession(int sessionId, const String& hostId
, String* state) | 364 void WebDevToolsAgentImpl::initializeSession(int sessionId, const String& hostId
, String* state) |
365 { | 365 { |
366 DCHECK(m_client); | 366 DCHECK(m_client); |
367 ClientMessageLoopAdapter::ensureMainThreadDebuggerCreated(m_client); | 367 ClientMessageLoopAdapter::ensureMainThreadDebuggerCreated(m_client); |
368 MainThreadDebugger* mainThreadDebugger = MainThreadDebugger::instance(); | 368 MainThreadDebugger* mainThreadDebugger = MainThreadDebugger::instance(); |
369 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); | 369 v8::Isolate* isolate = V8PerIsolateData::mainThreadIsolate(); |
370 | 370 |
371 m_session = new InspectorSession(this, m_instrumentingAgents.get(), sessionI
d, false /* autoFlush */, mainThreadDebugger->debugger(), mainThreadDebugger->co
ntextGroupId(m_inspectedFrames->root()), state); | 371 m_session = new InspectorSession(this, m_instrumentingAgents.get(), sessionI
d, false /* autoFlush */, mainThreadDebugger->v8Inspector(), mainThreadDebugger-
>contextGroupId(m_inspectedFrames->root()), state); |
372 | 372 |
373 InspectorDOMAgent* domAgent = new InspectorDOMAgent(isolate, m_inspectedFram
es.get(), m_session->v8Session(), m_overlay.get()); | 373 InspectorDOMAgent* domAgent = new InspectorDOMAgent(isolate, m_inspectedFram
es.get(), m_session->v8Session(), m_overlay.get()); |
374 m_domAgent = domAgent; | 374 m_domAgent = domAgent; |
375 m_session->append(domAgent); | 375 m_session->append(domAgent); |
376 | 376 |
377 InspectorLayerTreeAgent* layerTreeAgent = InspectorLayerTreeAgent::create(m_
inspectedFrames.get()); | 377 InspectorLayerTreeAgent* layerTreeAgent = InspectorLayerTreeAgent::create(m_
inspectedFrames.get()); |
378 m_layerTreeAgent = layerTreeAgent; | 378 m_layerTreeAgent = layerTreeAgent; |
379 m_session->append(layerTreeAgent); | 379 m_session->append(layerTreeAgent); |
380 | 380 |
381 InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(m_inspec
tedFrames.get()); | 381 InspectorNetworkAgent* networkAgent = InspectorNetworkAgent::create(m_inspec
tedFrames.get()); |
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) | 668 bool WebDevToolsAgent::shouldInterruptForMethod(const WebString& method) |
669 { | 669 { |
670 return method == "Debugger.pause" | 670 return method == "Debugger.pause" |
671 || method == "Debugger.setBreakpoint" | 671 || method == "Debugger.setBreakpoint" |
672 || method == "Debugger.setBreakpointByUrl" | 672 || method == "Debugger.setBreakpointByUrl" |
673 || method == "Debugger.removeBreakpoint" | 673 || method == "Debugger.removeBreakpoint" |
674 || method == "Debugger.setBreakpointsActive"; | 674 || method == "Debugger.setBreakpointsActive"; |
675 } | 675 } |
676 | 676 |
677 } // namespace blink | 677 } // namespace blink |
OLD | NEW |