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

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: Move RemoteObject onto EventListener 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 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
627 } 627 }
628 } 628 }
629 629
630 /** 630 /**
631 * @this {!WebInspector.RemoteObject} 631 * @this {!WebInspector.RemoteObject}
632 * @param {!DOMDebuggerAgent.EventListener} payload 632 * @param {!DOMDebuggerAgent.EventListener} payload
633 */ 633 */
634 function createEventListener(payload) 634 function createEventListener(payload)
635 { 635 {
636 return new WebInspector.EventListener(this._target, 636 return new WebInspector.EventListener(this._target,
637 this,
637 payload.type, 638 payload.type,
638 payload.useCapture, 639 payload.useCapture,
639 payload.passive, 640 payload.passive,
640 payload.handler ? this.tar get().runtimeModel.createRemoteObject(payload.handler) : null, 641 payload.handler ? this.tar get().runtimeModel.createRemoteObject(payload.handler) : null,
641 payload.originalHandler ? this.target().runtimeModel.createRemoteObject(payload.originalHandler) : null, 642 payload.originalHandler ? this.target().runtimeModel.createRemoteObject(payload.originalHandler) : null,
642 WebInspector.DebuggerModel .Location.fromPayload(this._debuggerModel, payload.location), 643 WebInspector.DebuggerModel .Location.fromPayload(this._debuggerModel, payload.location),
643 removeFunction); 644 removeFunction);
644 } 645 }
645 } 646 }
646 }, 647 },
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 { 1660 {
1660 if (!this._cachedDescription) { 1661 if (!this._cachedDescription) {
1661 var children = this._children(); 1662 var children = this._children();
1662 this._cachedDescription = "{" + this._formatValue(children[0].value) + " => " + this._formatValue(children[1].value) + "}"; 1663 this._cachedDescription = "{" + this._formatValue(children[0].value) + " => " + this._formatValue(children[1].value) + "}";
1663 } 1664 }
1664 return this._cachedDescription; 1665 return this._cachedDescription;
1665 }, 1666 },
1666 1667
1667 __proto__: WebInspector.LocalJSONObject.prototype 1668 __proto__: WebInspector.LocalJSONObject.prototype
1668 } 1669 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698