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

Unified Diff: Source/devtools/front_end/sdk/RuntimeModel.js

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/devtools/front_end/sdk/RuntimeModel.js
diff --git a/Source/devtools/front_end/sdk/RuntimeModel.js b/Source/devtools/front_end/sdk/RuntimeModel.js
index 4bdbb8e3b33c24102ec0c978db5d9ed71ba0b85e..60a84324571444931138a9a74d707ea131f95035 100644
--- a/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -504,6 +504,7 @@ WebInspector.EventListener = function(debuggerModel, payload, objectId)
this._useCapture = payload.useCapture;
this._location = WebInspector.DebuggerModel.Location.fromPayload(debuggerModel, payload.location);
this._handler = payload.handler ? this.target().runtimeModel.createRemoteObject(payload.handler) : null;
+ this._handlerType = payload.handlerType || null;
var script = debuggerModel.scriptForId(payload.location.scriptId);
this._sourceName = script ? script.contentURL() : "";
this._objectId = objectId;
@@ -545,6 +546,14 @@ WebInspector.EventListener.prototype = {
/**
* @return {string}
*/
+ handlerType: function()
+ {
+ return this._handlerType || "general";
+ },
+
+ /**
+ * @return {string}
+ */
sourceName: function()
{
return this._sourceName;

Powered by Google App Engine
This is Rietveld 408576698