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

Unified Diff: Source/core/inspector/InjectedScript.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/InjectedScript.cpp
diff --git a/Source/core/inspector/InjectedScript.cpp b/Source/core/inspector/InjectedScript.cpp
index c6c60548a54dcdbbea5484f9db9625c0ce8680f7..46adf5a9ddd000b92c75ca7ecc251e50be41c8d6 100644
--- a/Source/core/inspector/InjectedScript.cpp
+++ b/Source/core/inspector/InjectedScript.cpp
@@ -334,6 +334,18 @@ void InjectedScript::releaseObject(const String& objectId)
m_native->unbind(boundId);
}
+ScriptValue InjectedScript::librariesEventListeners(const String& objectId)
+{
+ ScriptFunctionCall function(injectedScriptObject(), "librariesEventListenersByObjectId");
+ function.appendArgument(objectId);
+ bool hadException = false;
+ ScriptValue result = callFunctionWithEvalEnabled(function, hadException);
+ if (!hadException)
+ return result;
+ return ScriptValue();
+}
+
+
PassRefPtr<Array<CallFrame>> InjectedScript::wrapCallFrames(v8::Local<v8::Object> callFrames, int asyncOrdinal)
{
ASSERT(!isEmpty());

Powered by Google App Engine
This is Rietveld 408576698