Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(497)

Side by Side Diff: Source/core/inspector/InjectedScriptHost.cpp

Issue 1238083002: Oilpan: Move the EventListener hierarchy to Oilpan's heap (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 } 75 }
76 76
77 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS ONValue> hints) 77 void InjectedScriptHost::inspectImpl(PassRefPtr<JSONValue> object, PassRefPtr<JS ONValue> hints)
78 { 78 {
79 if (m_inspectCallback) { 79 if (m_inspectCallback) {
80 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R untime::RemoteObject::runtimeCast(object); 80 RefPtr<TypeBuilder::Runtime::RemoteObject> remoteObject = TypeBuilder::R untime::RemoteObject::runtimeCast(object);
81 (*m_inspectCallback)(remoteObject, hints->asObject()); 81 (*m_inspectCallback)(remoteObject, hints->asObject());
82 } 82 }
83 } 83 }
84 84
85 void InjectedScriptHost::getEventListenersImpl(EventTarget* target, Vector<Event ListenerInfo>& listenersArray) 85 void InjectedScriptHost::getEventListenersImpl(EventTarget* target, WillBeHeapVe ctor<EventListenerInfo>& listenersArray)
86 { 86 {
87 EventListenerInfo::getEventListeners(target, listenersArray, false); 87 EventListenerInfo::getEventListeners(target, listenersArray, false);
88 } 88 }
89 89
90 void InjectedScriptHost::clearConsoleMessages() 90 void InjectedScriptHost::clearConsoleMessages()
91 { 91 {
92 if (m_consoleAgent) { 92 if (m_consoleAgent) {
93 ErrorString error; 93 ErrorString error;
94 m_consoleAgent->clearMessages(&error); 94 m_consoleAgent->clearMessages(&error);
95 } 95 }
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspe ctorDebuggerAgent::MonitorCommandBreakpointSource, builder.toString()); 144 m_debuggerAgent->setBreakpoint(scriptId, lineNumber, columnNumber, Inspe ctorDebuggerAgent::MonitorCommandBreakpointSource, builder.toString());
145 } 145 }
146 146
147 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber) 147 void InjectedScriptHost::unmonitorFunction(const String& scriptId, int lineNumbe r, int columnNumber)
148 { 148 {
149 if (m_debuggerAgent) 149 if (m_debuggerAgent)
150 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, In spectorDebuggerAgent::MonitorCommandBreakpointSource); 150 m_debuggerAgent->removeBreakpoint(scriptId, lineNumber, columnNumber, In spectorDebuggerAgent::MonitorCommandBreakpointSource);
151 } 151 }
152 152
153 } // namespace blink 153 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698