| 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 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 482 return; | 482 return; |
| 483 } | 483 } |
| 484 fulfill(payloads.map(createEventListener.bind(this))); | 484 fulfill(payloads.map(createEventListener.bind(this))); |
| 485 } | 485 } |
| 486 /** | 486 /** |
| 487 * @this {!WebInspector.RemoteObject} | 487 * @this {!WebInspector.RemoteObject} |
| 488 * @param {!DOMDebuggerAgent.EventListener} payload | 488 * @param {!DOMDebuggerAgent.EventListener} payload |
| 489 */ | 489 */ |
| 490 function createEventListener(payload) | 490 function createEventListener(payload) |
| 491 { | 491 { |
| 492 return new WebInspector.EventListener(this._debuggerModel, paylo
ad, this._objectId); | 492 return new WebInspector.EventListener(this._target, |
| 493 payload.type, |
| 494 payload.useCapture, |
| 495 payload.handler ? this.tar
get().runtimeModel.createRemoteObject(payload.handler) : null, |
| 496 WebInspector.DebuggerModel
.Location.fromPayload(this._debuggerModel, payload.location)); |
| 493 } | 497 } |
| 494 } | 498 } |
| 495 }, | 499 }, |
| 496 | 500 |
| 497 /** | 501 /** |
| 498 * @param {!Array.<string>} propertyPath | 502 * @param {!Array.<string>} propertyPath |
| 499 * @param {function(?WebInspector.RemoteObject, boolean=)} callback | 503 * @param {function(?WebInspector.RemoteObject, boolean=)} callback |
| 500 */ | 504 */ |
| 501 getProperty: function(propertyPath, callback) | 505 getProperty: function(propertyPath, callback) |
| 502 { | 506 { |
| (...skipping 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1285 { | 1289 { |
| 1286 if (!this._cachedDescription) { | 1290 if (!this._cachedDescription) { |
| 1287 var children = this._children(); | 1291 var children = this._children(); |
| 1288 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; | 1292 this._cachedDescription = "{" + this._formatValue(children[0].value)
+ " => " + this._formatValue(children[1].value) + "}"; |
| 1289 } | 1293 } |
| 1290 return this._cachedDescription; | 1294 return this._cachedDescription; |
| 1291 }, | 1295 }, |
| 1292 | 1296 |
| 1293 __proto__: WebInspector.LocalJSONObject.prototype | 1297 __proto__: WebInspector.LocalJSONObject.prototype |
| 1294 } | 1298 } |
| OLD | NEW |