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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 } | 71 } |
72 | 72 |
73 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS
ONValue> hints) | 73 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS
ONValue> hints) |
74 { | 74 { |
75 if (InspectorAgent* inspectorAgent = m_instrumentingAgents ? m_instrumenting
Agents->inspectorAgent() : 0) { | 75 if (InspectorAgent* inspectorAgent = m_instrumentingAgents ? m_instrumenting
Agents->inspectorAgent() : 0) { |
76 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R
untime::RemoteObject::runtimeCast(object); | 76 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R
untime::RemoteObject::runtimeCast(object); |
77 inspectorAgent->inspect(remoteObject, hints->asObject()); | 77 inspectorAgent->inspect(remoteObject, hints->asObject()); |
78 } | 78 } |
79 } | 79 } |
80 | 80 |
81 void InjectedScriptHost::getEventListenersImpl(Node* node, Vector<EventListenerI
nfo>& listenersArray) | 81 void InjectedScriptHost::getEventListenersImpl(EventTarget* target, Vector<Event
ListenerInfo>& listenersArray) |
82 { | 82 { |
83 InspectorDOMAgent::getEventListeners(node, listenersArray, false); | 83 InspectorDOMAgent::getEventListeners(target, listenersArray, false); |
84 } | 84 } |
85 | 85 |
86 void InjectedScriptHost::clearConsoleMessages() | 86 void InjectedScriptHost::clearConsoleMessages() |
87 { | 87 { |
88 if (InspectorConsoleAgent* consoleAgent = m_instrumentingAgents ? m_instrume
ntingAgents->inspectorConsoleAgent() : 0) { | 88 if (InspectorConsoleAgent* consoleAgent = m_instrumentingAgents ? m_instrume
ntingAgents->inspectorConsoleAgent() : 0) { |
89 ErrorString error; | 89 ErrorString error; |
90 consoleAgent->clearMessages(&error); | 90 consoleAgent->clearMessages(&error); |
91 } | 91 } |
92 } | 92 } |
93 | 93 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 } | 155 } |
156 | 156 |
157 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 157 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
158 { | 158 { |
159 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) | 159 if (InspectorDebuggerAgent* debuggerAgent = m_instrumentingAgents ? m_instru
mentingAgents->inspectorDebuggerAgent() : 0) |
160 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); | 160 debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, Insp
ectorDebuggerAgent::MonitorCommandBreakpointSource); |
161 } | 161 } |
162 | 162 |
163 } // namespace WebCore | 163 } // namespace WebCore |
164 | 164 |
OLD | NEW |