| 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 "sky/engine/config.h" | 31 #include "sky/engine/config.h" |
| 32 #include "sky/engine/v8_inspector/PageDebuggerAgent.h" | 32 #include "sky/engine/v8_inspector/PageDebuggerAgent.h" |
| 33 | 33 |
| 34 #include "sky/engine/bindings/core/v8/DOMWrapperWorld.h" | 34 #include "sky/engine/bindings/core/v8/DOMWrapperWorld.h" |
| 35 #include "sky/engine/bindings/core/v8/ScriptController.h" | 35 #include "sky/engine/bindings/core/v8/ScriptController.h" |
| 36 #include "sky/engine/bindings/core/v8/ScriptSourceCode.h" | 36 #include "sky/engine/bindings/core/v8/ScriptSourceCode.h" |
| 37 #include "sky/engine/core/frame/FrameConsole.h" | 37 #include "sky/engine/core/frame/FrameConsole.h" |
| 38 #include "sky/engine/core/frame/LocalFrame.h" | |
| 39 #include "sky/engine/core/page/Page.h" | |
| 40 #include "sky/engine/v8_inspector/inspector_host.h" | 38 #include "sky/engine/v8_inspector/inspector_host.h" |
| 41 | 39 |
| 42 namespace blink { | 40 namespace blink { |
| 43 | 41 |
| 44 PassOwnPtr<PageDebuggerAgent> PageDebuggerAgent::create(PageScriptDebugServer* p
ageScriptDebugServer, inspector::InspectorHost* host, InjectedScriptManager* inj
ectedScriptManager) | 42 PassOwnPtr<PageDebuggerAgent> PageDebuggerAgent::create(PageScriptDebugServer* p
ageScriptDebugServer, inspector::InspectorHost* host, InjectedScriptManager* inj
ectedScriptManager) |
| 45 { | 43 { |
| 46 return adoptPtr(new PageDebuggerAgent(pageScriptDebugServer, host, injectedS
criptManager)); | 44 return adoptPtr(new PageDebuggerAgent(pageScriptDebugServer, host, injectedS
criptManager)); |
| 47 } | 45 } |
| 48 | 46 |
| 49 PageDebuggerAgent::PageDebuggerAgent(PageScriptDebugServer* pageScriptDebugServe
r, inspector::InspectorHost* host, InjectedScriptManager* injectedScriptManager) | 47 PageDebuggerAgent::PageDebuggerAgent(PageScriptDebugServer* pageScriptDebugServe
r, inspector::InspectorHost* host, InjectedScriptManager* injectedScriptManager) |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 printf("OVERLAY REMOVED\n"); | 100 printf("OVERLAY REMOVED\n"); |
| 103 } | 101 } |
| 104 | 102 |
| 105 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame) | 103 void PageDebuggerAgent::didClearDocumentOfWindowObject(LocalFrame* frame) |
| 106 { | 104 { |
| 107 reset(); | 105 reset(); |
| 108 scriptDebugServer().setPreprocessorSource(String()); | 106 scriptDebugServer().setPreprocessorSource(String()); |
| 109 } | 107 } |
| 110 | 108 |
| 111 } // namespace blink | 109 } // namespace blink |
| OLD | NEW |