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

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

Issue 1879293002: Modify devtools to show passive event listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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: third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
diff --git a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
index 5d3a91ffa1f4e8b5725254d33ae5c9780b19bc2a..bd8c6cb9f326a66e315fc2efd61863c0efe3672e 100644
--- a/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
+++ b/third_party/WebKit/Source/devtools/front_end/sdk/RuntimeModel.js
@@ -613,17 +613,19 @@ WebInspector.ExecutionContext.prototype = {
* @param {!WebInspector.Target} target
* @param {string} type
* @param {boolean} useCapture
+ * @param {boolean} passive
* @param {?WebInspector.RemoteObject} handler
* @param {?WebInspector.RemoteObject} originalHandler
* @param {!WebInspector.DebuggerModel.Location} location
* @param {?WebInspector.RemoteObject} removeFunction
* @param {string=} listenerType
*/
-WebInspector.EventListener = function(target, type, useCapture, handler, originalHandler, location, removeFunction, listenerType)
+WebInspector.EventListener = function(target, type, useCapture, passive, handler, originalHandler, location, removeFunction, listenerType)
{
WebInspector.SDKObject.call(this, target);
this._type = type;
this._useCapture = useCapture;
+ this._passive = passive;
this._handler = handler;
this._originalHandler = originalHandler || handler;
this._location = location;
@@ -651,6 +653,14 @@ WebInspector.EventListener.prototype = {
},
/**
+ * @return {boolean}
+ */
+ passive: function()
+ {
+ return this._passive;
+ },
+
+ /**
* @return {?WebInspector.RemoteObject}
*/
handler: function()
@@ -709,18 +719,20 @@ WebInspector.EventListener.prototype = {
WebInspector.RemoteObject.toCallArgument(this._removeFunction),
WebInspector.RemoteObject.toCallArgument(this._type),
WebInspector.RemoteObject.toCallArgument(this._originalHandler),
- WebInspector.RemoteObject.toCallArgument(this._useCapture)
+ WebInspector.RemoteObject.toCallArgument(this._useCapture),
+ WebInspector.RemoteObject.toCallArgument(this._passive),
], success);
/**
- * @param {function(string, function(), boolean)} func
+ * @param {function(string, function(), boolean, boolean)} func
* @param {string} type
* @param {function()} listener
* @param {boolean} useCapture
+ * @param {boolean} passive
*/
- function callCustomRemove(func, type, listener, useCapture)
+ function callCustomRemove(func, type, listener, useCapture, passive)
{
- func.call(null, type, listener, useCapture);
+ func.call(null, type, listener, useCapture, passive);
}
}
},
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js ('k') | third_party/WebKit/Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698