| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 { | 166 { |
| 167 ScriptDebugServer::shared().stepOutOfFunction(); | 167 ScriptDebugServer::shared().stepOutOfFunction(); |
| 168 } | 168 } |
| 169 | 169 |
| 170 void InspectorDebuggerAgent::setPauseOnExceptionsState(long pauseState, long* ne
wState) | 170 void InspectorDebuggerAgent::setPauseOnExceptionsState(long pauseState, long* ne
wState) |
| 171 { | 171 { |
| 172 ScriptDebugServer::shared().setPauseOnExceptionsState(static_cast<ScriptDebu
gServer::PauseOnExceptionsState>(pauseState)); | 172 ScriptDebugServer::shared().setPauseOnExceptionsState(static_cast<ScriptDebu
gServer::PauseOnExceptionsState>(pauseState)); |
| 173 *newState = ScriptDebugServer::shared().pauseOnExceptionsState(); | 173 *newState = ScriptDebugServer::shared().pauseOnExceptionsState(); |
| 174 } | 174 } |
| 175 | 175 |
| 176 void InspectorDebuggerAgent::evaluateOnCallFrame(PassRefPtr<InspectorObject> cal
lFrameId, const String& expression, const String& objectGroup, RefPtr<InspectorV
alue>* result) | 176 void InspectorDebuggerAgent::evaluateOnCallFrame(PassRefPtr<InspectorObject> cal
lFrameId, const String& expression, const String& objectGroup, bool includeComma
ndLineAPI, RefPtr<InspectorValue>* result) |
| 177 { | 177 { |
| 178 InjectedScript injectedScript = m_inspectorController->injectedScriptHost()-
>injectedScriptForObjectId(callFrameId.get()); | 178 InjectedScript injectedScript = m_inspectorController->injectedScriptHost()-
>injectedScriptForObjectId(callFrameId.get()); |
| 179 if (!injectedScript.hasNoValue()) | 179 if (!injectedScript.hasNoValue()) |
| 180 injectedScript.evaluateOnCallFrame(callFrameId, expression, objectGroup,
result); | 180 injectedScript.evaluateOnCallFrame(callFrameId, expression, objectGroup,
includeCommandLineAPI, result); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void InspectorDebuggerAgent::getCompletionsOnCallFrame(PassRefPtr<InspectorObjec
t> callFrameId, const String& expression, bool includeInspectorCommandLineAPI, R
efPtr<InspectorValue>* result) | 183 void InspectorDebuggerAgent::getCompletionsOnCallFrame(PassRefPtr<InspectorObjec
t> callFrameId, const String& expression, bool includeCommandLineAPI, RefPtr<Ins
pectorValue>* result) |
| 184 { | 184 { |
| 185 InjectedScript injectedScript = m_inspectorController->injectedScriptHost()-
>injectedScriptForObjectId(callFrameId.get()); | 185 InjectedScript injectedScript = m_inspectorController->injectedScriptHost()-
>injectedScriptForObjectId(callFrameId.get()); |
| 186 if (!injectedScript.hasNoValue()) | 186 if (!injectedScript.hasNoValue()) |
| 187 injectedScript.getCompletionsOnCallFrame(callFrameId, expression, includ
eInspectorCommandLineAPI, result); | 187 injectedScript.getCompletionsOnCallFrame(callFrameId, expression, includ
eCommandLineAPI, result); |
| 188 } | 188 } |
| 189 | 189 |
| 190 void InspectorDebuggerAgent::clearForPageNavigation() | 190 void InspectorDebuggerAgent::clearForPageNavigation() |
| 191 { | 191 { |
| 192 m_scriptIDToContent.clear(); | 192 m_scriptIDToContent.clear(); |
| 193 m_urlToSourceIDs.clear(); | 193 m_urlToSourceIDs.clear(); |
| 194 m_stickyBreakpoints.clear(); | 194 m_stickyBreakpoints.clear(); |
| 195 } | 195 } |
| 196 | 196 |
| 197 PassRefPtr<InspectorValue> InspectorDebuggerAgent::currentCallFrames() | 197 PassRefPtr<InspectorValue> InspectorDebuggerAgent::currentCallFrames() |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 { | 263 { |
| 264 m_breakProgramDetails = InspectorObject::create(); | 264 m_breakProgramDetails = InspectorObject::create(); |
| 265 m_breakProgramDetails->setNumber("eventType", type); | 265 m_breakProgramDetails->setNumber("eventType", type); |
| 266 m_breakProgramDetails->setValue("eventData", data); | 266 m_breakProgramDetails->setValue("eventData", data); |
| 267 ScriptDebugServer::shared().breakProgram(); | 267 ScriptDebugServer::shared().breakProgram(); |
| 268 } | 268 } |
| 269 | 269 |
| 270 } // namespace WebCore | 270 } // namespace WebCore |
| 271 | 271 |
| 272 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) | 272 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) |
| OLD | NEW |