| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS
ONValue> hints) | 79 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS
ONValue> hints) |
| 80 { | 80 { |
| 81 if (m_inspectCallback) { | 81 if (m_inspectCallback) { |
| 82 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R
untime::RemoteObject::runtimeCast(object); | 82 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R
untime::RemoteObject::runtimeCast(object); |
| 83 (*m_inspectCallback)(remoteObject, hints->asObject()); | 83 (*m_inspectCallback)(remoteObject, hints->asObject()); |
| 84 } | 84 } |
| 85 } | 85 } |
| 86 | 86 |
| 87 void InjectedScriptHost::getEventListenersImpl(EventTarget* target, Vector<Event
ListenerInfo>& listenersArray) | 87 void InjectedScriptHost::getEventListenersImpl(EventTarget* target, Vector<Event
ListenerInfo>& listenersArray) |
| 88 { | 88 { |
| 89 InspectorDOMAgent::getEventListeners(target, listenersArray, false); | 89 EventListenerInfo::getEventListeners(target, listenersArray, false); |
| 90 } | 90 } |
| 91 | 91 |
| 92 void InjectedScriptHost::clearConsoleMessages() | 92 void InjectedScriptHost::clearConsoleMessages() |
| 93 { | 93 { |
| 94 if (m_consoleAgent) { | 94 if (m_consoleAgent) { |
| 95 ErrorString error; | 95 ErrorString error; |
| 96 m_consoleAgent->clearMessages(&error); | 96 m_consoleAgent->clearMessages(&error); |
| 97 } | 97 } |
| 98 } | 98 } |
| 99 | 99 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspe
ctorDebuggerAgent::MonitorCommandBreakpointSource, builder.toString()); | 146 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspe
ctorDebuggerAgent::MonitorCommandBreakpointSource, builder.toString()); |
| 147 } | 147 } |
| 148 | 148 |
| 149 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) | 149 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe
r, int columnNumber) |
| 150 { | 150 { |
| 151 if (m_debuggerAgent) | 151 if (m_debuggerAgent) |
| 152 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, In
spectorDebuggerAgent::MonitorCommandBreakpointSource); | 152 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, In
spectorDebuggerAgent::MonitorCommandBreakpointSource); |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| OLD | NEW |