| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 : InspectorDebuggerAgent(instrumentingAgents, inspectorState, injectedScript
Manager) | 52 : InspectorDebuggerAgent(instrumentingAgents, inspectorState, injectedScript
Manager) |
| 53 , m_pageAgent(pageAgent) | 53 , m_pageAgent(pageAgent) |
| 54 , m_overlay(overlay) | 54 , m_overlay(overlay) |
| 55 { | 55 { |
| 56 } | 56 } |
| 57 | 57 |
| 58 PageDebuggerAgent::~PageDebuggerAgent() | 58 PageDebuggerAgent::~PageDebuggerAgent() |
| 59 { | 59 { |
| 60 } | 60 } |
| 61 | 61 |
| 62 void PageDebuggerAgent::enable(ErrorString* errorString) | 62 void PageDebuggerAgent::enable() |
| 63 { | 63 { |
| 64 InspectorDebuggerAgent::enable(errorString); | 64 InspectorDebuggerAgent::enable(); |
| 65 m_instrumentingAgents->setPageDebuggerAgent(this); | 65 m_instrumentingAgents->setPageDebuggerAgent(this); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void PageDebuggerAgent::disable(ErrorString* errorString) | 68 void PageDebuggerAgent::disable() |
| 69 { | 69 { |
| 70 InspectorDebuggerAgent::disable(errorString); | 70 InspectorDebuggerAgent::disable(); |
| 71 m_instrumentingAgents->setPageDebuggerAgent(0); | 71 m_instrumentingAgents->setPageDebuggerAgent(0); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void PageDebuggerAgent::startListeningScriptDebugServer() | 74 void PageDebuggerAgent::startListeningScriptDebugServer() |
| 75 { | 75 { |
| 76 scriptDebugServer().addListener(this, m_pageAgent->page()); | 76 scriptDebugServer().addListener(this, m_pageAgent->page()); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void PageDebuggerAgent::stopListeningScriptDebugServer() | 79 void PageDebuggerAgent::stopListeningScriptDebugServer() |
| 80 { | 80 { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 | 115 |
| 116 void PageDebuggerAgent::didClearMainFrameWindowObject() | 116 void PageDebuggerAgent::didClearMainFrameWindowObject() |
| 117 { | 117 { |
| 118 reset(); | 118 reset(); |
| 119 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor())
; | 119 scriptDebugServer().setScriptPreprocessor(m_pageAgent->scriptPreprocessor())
; |
| 120 } | 120 } |
| 121 | 121 |
| 122 } // namespace WebCore | 122 } // namespace WebCore |
| 123 | 123 |
| 124 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) | 124 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) |
| OLD | NEW |