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 28 matching lines...) Expand all Loading... |
39 #include "core/exported/WebViewBase.h" | 39 #include "core/exported/WebViewBase.h" |
40 #include "core/frame/FrameView.h" | 40 #include "core/frame/FrameView.h" |
41 #include "core/frame/LocalFrame.h" | 41 #include "core/frame/LocalFrame.h" |
42 #include "core/frame/Settings.h" | 42 #include "core/frame/Settings.h" |
43 #include "core/inspector/InspectedFrames.h" | 43 #include "core/inspector/InspectedFrames.h" |
44 #include "core/inspector/InspectorAnimationAgent.h" | 44 #include "core/inspector/InspectorAnimationAgent.h" |
45 #include "core/inspector/InspectorApplicationCacheAgent.h" | 45 #include "core/inspector/InspectorApplicationCacheAgent.h" |
46 #include "core/inspector/InspectorCSSAgent.h" | 46 #include "core/inspector/InspectorCSSAgent.h" |
47 #include "core/inspector/InspectorDOMAgent.h" | 47 #include "core/inspector/InspectorDOMAgent.h" |
48 #include "core/inspector/InspectorDOMDebuggerAgent.h" | 48 #include "core/inspector/InspectorDOMDebuggerAgent.h" |
| 49 #include "core/inspector/InspectorDOMSnapshotAgent.h" |
49 #include "core/inspector/InspectorInputAgent.h" | 50 #include "core/inspector/InspectorInputAgent.h" |
50 #include "core/inspector/InspectorLayerTreeAgent.h" | 51 #include "core/inspector/InspectorLayerTreeAgent.h" |
51 #include "core/inspector/InspectorLogAgent.h" | 52 #include "core/inspector/InspectorLogAgent.h" |
52 #include "core/inspector/InspectorMemoryAgent.h" | 53 #include "core/inspector/InspectorMemoryAgent.h" |
53 #include "core/inspector/InspectorNetworkAgent.h" | 54 #include "core/inspector/InspectorNetworkAgent.h" |
54 #include "core/inspector/InspectorPageAgent.h" | 55 #include "core/inspector/InspectorPageAgent.h" |
55 #include "core/inspector/InspectorResourceContainer.h" | 56 #include "core/inspector/InspectorResourceContainer.h" |
56 #include "core/inspector/InspectorResourceContentLoader.h" | 57 #include "core/inspector/InspectorResourceContentLoader.h" |
57 #include "core/inspector/InspectorTaskRunner.h" | 58 #include "core/inspector/InspectorTaskRunner.h" |
58 #include "core/inspector/InspectorTracingAgent.h" | 59 #include "core/inspector/InspectorTracingAgent.h" |
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 InspectorNetworkAgent* network_agent = | 329 InspectorNetworkAgent* network_agent = |
329 InspectorNetworkAgent::Create(inspected_frames_.Get()); | 330 InspectorNetworkAgent::Create(inspected_frames_.Get()); |
330 network_agent_ = network_agent; | 331 network_agent_ = network_agent; |
331 session_->Append(network_agent); | 332 session_->Append(network_agent); |
332 | 333 |
333 InspectorCSSAgent* css_agent = InspectorCSSAgent::Create( | 334 InspectorCSSAgent* css_agent = InspectorCSSAgent::Create( |
334 dom_agent, inspected_frames_.Get(), network_agent_, | 335 dom_agent, inspected_frames_.Get(), network_agent_, |
335 resource_content_loader_.Get(), resource_container_.Get()); | 336 resource_content_loader_.Get(), resource_container_.Get()); |
336 session_->Append(css_agent); | 337 session_->Append(css_agent); |
337 | 338 |
| 339 session_->Append(InspectorDOMSnapshotAgent::Create(css_agent, dom_agent)); |
| 340 |
338 session_->Append(new InspectorAnimationAgent( | 341 session_->Append(new InspectorAnimationAgent( |
339 inspected_frames_.Get(), css_agent, session_->V8Session())); | 342 inspected_frames_.Get(), css_agent, session_->V8Session())); |
340 | 343 |
341 session_->Append(InspectorMemoryAgent::Create()); | 344 session_->Append(InspectorMemoryAgent::Create()); |
342 | 345 |
343 session_->Append( | 346 session_->Append( |
344 InspectorApplicationCacheAgent::Create(inspected_frames_.Get())); | 347 InspectorApplicationCacheAgent::Create(inspected_frames_.Get())); |
345 | 348 |
346 session_->Append(new InspectorIndexedDBAgent(inspected_frames_.Get(), | 349 session_->Append(new InspectorIndexedDBAgent(inspected_frames_.Get(), |
347 session_->V8Session())); | 350 session_->V8Session())); |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
649 } | 652 } |
650 | 653 |
651 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { | 654 bool WebDevToolsAgent::ShouldInterruptForMethod(const WebString& method) { |
652 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || | 655 return method == "Debugger.pause" || method == "Debugger.setBreakpoint" || |
653 method == "Debugger.setBreakpointByUrl" || | 656 method == "Debugger.setBreakpointByUrl" || |
654 method == "Debugger.removeBreakpoint" || | 657 method == "Debugger.removeBreakpoint" || |
655 method == "Debugger.setBreakpointsActive"; | 658 method == "Debugger.setBreakpointsActive"; |
656 } | 659 } |
657 | 660 |
658 } // namespace blink | 661 } // namespace blink |
OLD | NEW |