| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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]+)\]/; |
| OLD | NEW |