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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sdk/RemoteObject.js

Issue 2022503002: Add ability to toggle passive state on an individual event listener. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout tests Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
575 fulfill(payloads.map(createEventListener.bind(this))); 575 fulfill(payloads.map(createEventListener.bind(this)));
576 } 576 }
577 577
578 /** 578 /**
579 * @this {!WebInspector.RemoteObject} 579 * @this {!WebInspector.RemoteObject}
580 * @param {!DOMDebuggerAgent.EventListener} payload 580 * @param {!DOMDebuggerAgent.EventListener} payload
581 */ 581 */
582 function createEventListener(payload) 582 function createEventListener(payload)
583 { 583 {
584 return new WebInspector.EventListener(this._target, 584 return new WebInspector.EventListener(this._target,
585 this,
585 payload.type, 586 payload.type,
586 payload.useCapture, 587 payload.useCapture,
587 payload.passive, 588 payload.passive,
588 payload.handler ? this.tar get().runtimeModel.createRemoteObject(payload.handler) : null, 589 payload.handler ? this.tar get().runtimeModel.createRemoteObject(payload.handler) : null,
589 payload.originalHandler ? this.target().runtimeModel.createRemoteObject(payload.originalHandler) : null, 590 payload.originalHandler ? this.target().runtimeModel.createRemoteObject(payload.originalHandler) : null,
590 WebInspector.DebuggerModel .Location.fromPayload(this._debuggerModel, payload.location), 591 WebInspector.DebuggerModel .Location.fromPayload(this._debuggerModel, payload.location),
591 payload.removeFunction ? t his.target().runtimeModel.createRemoteObject(payload.removeFunction) : null); 592 payload.removeFunction ? t his.target().runtimeModel.createRemoteObject(payload.removeFunction) : null);
592 } 593 }
593 } 594 }
594 }, 595 },
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1607 { 1608 {
1608 if (!this._cachedDescription) { 1609 if (!this._cachedDescription) {
1609 var children = this._children(); 1610 var children = this._children();
1610 this._cachedDescription = "{" + this._formatValue(children[0].value) + " => " + this._formatValue(children[1].value) + "}"; 1611 this._cachedDescription = "{" + this._formatValue(children[0].value) + " => " + this._formatValue(children[1].value) + "}";
1611 } 1612 }
1612 return this._cachedDescription; 1613 return this._cachedDescription;
1613 }, 1614 },
1614 1615
1615 __proto__: WebInspector.LocalJSONObject.prototype 1616 __proto__: WebInspector.LocalJSONObject.prototype
1616 } 1617 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698