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

Unified Diff: Source/core/inspector/EventListenerInfo.cpp

Issue 1268353005: [DevTools] Support JQuery event listeners (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/EventListenerInfo.cpp
diff --git a/Source/core/inspector/EventListenerInfo.cpp b/Source/core/inspector/EventListenerInfo.cpp
index b5d83f61ee14f697fbb948d492c4d812e6cc621f..a5e2c02b8fb2841e59b8da774452ef6cd6d7f139 100644
--- a/Source/core/inspector/EventListenerInfo.cpp
+++ b/Source/core/inspector/EventListenerInfo.cpp
@@ -77,23 +77,4 @@ const EventListenerInfo& RegisteredEventListenerIterator::currentEventListenerIn
return m_listenersArray[m_infoIndex];
}
-PassRefPtr<TypeBuilder::Runtime::RemoteObject> eventHandlerObject(ExecutionContext* context, EventListener* eventListener, InjectedScriptManager* manager, const String* objectGroupId)
-{
- ScriptValue functionValue = eventListenerHandler(context, eventListener);
- if (functionValue.isEmpty() || !context->isDocument())
- return nullptr;
-
- LocalFrame* frame = toDocument(context)->frame();
- if (!frame)
- return nullptr;
-
- ScriptState* scriptState = eventListenerHandlerScriptState(frame, eventListener);
- if (scriptState) {
- InjectedScript injectedScript = manager->injectedScriptFor(scriptState);
- if (!injectedScript.isEmpty())
- return injectedScript.wrapObject(functionValue, *objectGroupId);
- }
- return nullptr;
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698