OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 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 17 matching lines...) Expand all Loading... |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "core/inspector/PageDebuggerAgent.h" | 32 #include "core/inspector/PageDebuggerAgent.h" |
33 | 33 |
34 #include "bindings/v8/PageScriptDebugServer.h" | 34 #include "bindings/v8/PageScriptDebugServer.h" |
35 #include "core/inspector/InspectorOverlay.h" | 35 #include "core/inspector/InspectorOverlay.h" |
36 #include "core/inspector/InspectorPageAgent.h" | 36 #include "core/inspector/InspectorPageAgent.h" |
37 #include "core/inspector/InstrumentingAgents.h" | 37 #include "core/inspector/InstrumentingAgents.h" |
38 #include "core/page/Page.h" | |
39 #include "core/page/PageConsole.h" | 38 #include "core/page/PageConsole.h" |
40 | 39 |
41 namespace WebCore { | 40 namespace WebCore { |
42 | 41 |
43 PassOwnPtr<PageDebuggerAgent> PageDebuggerAgent::create(InstrumentingAgents* ins
trumentingAgents, InspectorCompositeState* inspectorState, InspectorPageAgent* p
ageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overla
y) | 42 PassOwnPtr<PageDebuggerAgent> PageDebuggerAgent::create(InstrumentingAgents* ins
trumentingAgents, InspectorCompositeState* inspectorState, InspectorPageAgent* p
ageAgent, InjectedScriptManager* injectedScriptManager, InspectorOverlay* overla
y) |
44 { | 43 { |
45 return adoptPtr(new PageDebuggerAgent(instrumentingAgents, inspectorState, p
ageAgent, injectedScriptManager, overlay)); | 44 return adoptPtr(new PageDebuggerAgent(instrumentingAgents, inspectorState, p
ageAgent, injectedScriptManager, overlay)); |
46 } | 45 } |
47 | 46 |
48 PageDebuggerAgent::PageDebuggerAgent(InstrumentingAgents* instrumentingAgents, I
nspectorCompositeState* inspectorState, InspectorPageAgent* pageAgent, InjectedS
criptManager* injectedScriptManager, InspectorOverlay* overlay) | 47 PageDebuggerAgent::PageDebuggerAgent(InstrumentingAgents* instrumentingAgents, I
nspectorCompositeState* inspectorState, InspectorPageAgent* pageAgent, InjectedS
criptManager* injectedScriptManager, InspectorOverlay* overlay) |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 } | 110 } |
112 | 111 |
113 void PageDebuggerAgent::didClearMainFrameWindowObject() | 112 void PageDebuggerAgent::didClearMainFrameWindowObject() |
114 { | 113 { |
115 reset(); | 114 reset(); |
116 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor())
; | 115 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor())
; |
117 } | 116 } |
118 | 117 |
119 } // namespace WebCore | 118 } // namespace WebCore |
120 | 119 |
OLD | NEW |