| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> | 3 * Copyright (C) 2008 Matt Lilek <webkit@mattlilek.com> |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 m_inspectedObjects.clear(); | 106 m_inspectedObjects.clear(); |
| 107 } | 107 } |
| 108 | 108 |
| 109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig
ned num) | 109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig
ned num) |
| 110 { | 110 { |
| 111 if (num >= m_inspectedObjects.size()) | 111 if (num >= m_inspectedObjects.size()) |
| 112 return m_defaultInspectableObject.get(); | 112 return m_defaultInspectableObject.get(); |
| 113 return m_inspectedObjects[num].get(); | 113 return m_inspectedObjects[num].get(); |
| 114 } | 114 } |
| 115 | 115 |
| 116 unsigned InjectedScriptHost::numInspectedObjects() |
| 117 { |
| 118 return m_inspectedObjects.size(); |
| 119 } |
| 120 |
| 116 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i
nt columnNumber) | 121 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i
nt columnNumber) |
| 117 { | 122 { |
| 118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 123 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
| 119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect
orDebuggerAgent::DebugCommandBreakpointSource); | 124 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect
orDebuggerAgent::DebugCommandBreakpointSource); |
| 120 } | 125 } |
| 121 | 126 |
| 122 void InjectedScriptHost::undebugFunction(const String& scriptId, int lineNumber,
int columnNumber) | 127 void InjectedScriptHost::undebugFunction(const String& scriptId, int lineNumber,
int columnNumber) |
| 123 { | 128 { |
| 124 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 129 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
| 125 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::DebugCommandBreakpointSource); | 130 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::DebugCommandBreakpointSource); |
| (...skipping 13 matching lines...) Expand all Loading... |
| 139 } | 144 } |
| 140 | 145 |
| 141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 146 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 142 { | 147 { |
| 143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 148 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
| 144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); | 149 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); |
| 145 } | 150 } |
| 146 | 151 |
| 147 } // namespace WebCore | 152 } // namespace WebCore |
| 148 | 153 |
| OLD | NEW |