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

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, 3 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
« no previous file with comments | « Source/devtools/front_end/sdk/RemoteObject.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1a51bfa14bfc4cecc1c7665cca64c7252bf031b2..7cc367633d7b0edbe4e1cae950d015dc549131e0 100644
--- a/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -498,8 +498,9 @@ WebInspector.ExecutionContext.prototype = {
* @param {boolean} useCapture
* @param {?WebInspector.RemoteObject} handler
* @param {!WebInspector.DebuggerModel.Location} location
+ * @param {string=} listenerType
*/
-WebInspector.EventListener = function(target, type, useCapture, handler, location)
+WebInspector.EventListener = function(target, type, useCapture, handler, location, listenerType)
{
WebInspector.SDKObject.call(this, target);
this._type = type;
@@ -507,6 +508,7 @@ WebInspector.EventListener = function(target, type, useCapture, handler, locatio
this._handler = handler;
this._location = location;
this._sourceURL = location.script().contentURL();
+ this._listenerType = listenerType || "normal";
}
WebInspector.EventListener.prototype = {
@@ -550,5 +552,21 @@ WebInspector.EventListener.prototype = {
return this._sourceURL;
},
+ /**
+ * @return {string}
+ */
+ listenerType: function()
+ {
+ return this._listenerType;
+ },
+
+ /**
+ * @param {string} listenerType
+ */
+ setListenerType: function(listenerType)
+ {
+ this._listenerType = listenerType;
+ },
+
__proto__: WebInspector.SDKObject.prototype
}
« no previous file with comments | « Source/devtools/front_end/sdk/RemoteObject.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698