| 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);
|
| }
|
| }
|
| },
|
|
|