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