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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 m_inspectedObjects.prepend(object); | 99 m_inspectedObjects.prepend(object); |
100 while (m_inspectedObjects.size() > 5) | 100 while (m_inspectedObjects.size() > 5) |
101 m_inspectedObjects.removeLast(); | 101 m_inspectedObjects.removeLast(); |
102 } | 102 } |
103 | 103 |
104 void InjectedScriptHost::clearInspectedObjects() | 104 void InjectedScriptHost::clearInspectedObjects() |
105 { | 105 { |
106 m_inspectedObjects.clear(); | 106 m_inspectedObjects.clear(); |
107 } | 107 } |
108 | 108 |
109 InjectedScriptHost::InspectableObject* InjectedScriptHost::inspectedObject(unsig
ned int 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 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i
nt columnNumber) | 116 void InjectedScriptHost::debugFunction(const String& scriptId, int lineNumber, i
nt columnNumber) |
117 { | 117 { |
118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 118 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect
orDebuggerAgent::DebugCommandBreakpointSource); | 119 debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspect
orDebuggerAgent::DebugCommandBreakpointSource); |
(...skipping 19 matching lines...) Expand all Loading... |
139 } | 139 } |
140 | 140 |
141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 141 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
142 { | 142 { |
143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 143 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); | 144 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); |
145 } | 145 } |
146 | 146 |
147 } // namespace WebCore | 147 } // namespace WebCore |
148 | 148 |
OLD | NEW |