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

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

Issue 2687003002: DevTools RDP: add parameters to DOMDebugger.getEventListeners (Closed)
Patch Set: f-e compile Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 // TODO(kozyatinskiy): figure out how this should work for |window| when there is no DOMDebugger. 553 // TODO(kozyatinskiy): figure out how this should work for |window| when there is no DOMDebugger.
554 fulfill([]); 554 fulfill([]);
555 return; 555 return;
556 } 556 }
557 557
558 if (!this._objectId) { 558 if (!this._objectId) {
559 reject(new Error('No object id specified')); 559 reject(new Error('No object id specified'));
560 return; 560 return;
561 } 561 }
562 562
563 this.target().domdebuggerAgent().getEventListeners(this._objectId, mycallb ack.bind(this)); 563 this.target().domdebuggerAgent().getEventListeners(this._objectId, undefin ed, undefined, mycallback.bind(this));
564 564
565 /** 565 /**
566 * @this {SDK.RemoteObjectImpl} 566 * @this {SDK.RemoteObjectImpl}
567 * @param {?Protocol.Error} error 567 * @param {?Protocol.Error} error
568 * @param {!Array<!Protocol.DOMDebugger.EventListener>} payloads 568 * @param {!Array<!Protocol.DOMDebugger.EventListener>} payloads
569 */ 569 */
570 function mycallback(error, payloads) { 570 function mycallback(error, payloads) {
571 if (error) { 571 if (error) {
572 reject(new Error(error)); 572 reject(new Error(error));
573 return; 573 return;
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
1458 * @const 1458 * @const
1459 * @type {!RegExp} 1459 * @type {!RegExp}
1460 */ 1460 */
1461 SDK.RemoteObject._descriptionLengthParenRegex = /\(([0-9]+)\)/; 1461 SDK.RemoteObject._descriptionLengthParenRegex = /\(([0-9]+)\)/;
1462 1462
1463 /** 1463 /**
1464 * @const 1464 * @const
1465 * @type {!RegExp} 1465 * @type {!RegExp}
1466 */ 1466 */
1467 SDK.RemoteObject._descriptionLengthSquareRegex = /\[([0-9]+)\]/; 1467 SDK.RemoteObject._descriptionLengthSquareRegex = /\[([0-9]+)\]/;
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/inspector/browser_protocol.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698