| 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 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 544 } | 544 } |
| 545 fulfill(payloads.map(createEventListener.bind(this))); | 545 fulfill(payloads.map(createEventListener.bind(this))); |
| 546 } | 546 } |
| 547 | 547 |
| 548 /** | 548 /** |
| 549 * @this {WebInspector.RemoteObjectImpl} | 549 * @this {WebInspector.RemoteObjectImpl} |
| 550 * @param {!Protocol.DOMDebugger.EventListener} payload | 550 * @param {!Protocol.DOMDebugger.EventListener} payload |
| 551 */ | 551 */ |
| 552 function createEventListener(payload) { | 552 function createEventListener(payload) { |
| 553 return new WebInspector.EventListener( | 553 return new WebInspector.EventListener( |
| 554 this._target, this, payload.type, payload.useCapture, payload.passiv
e, | 554 this._target, this, payload.type, payload.useCapture, payload.passiv
e, payload.once, |
| 555 payload.handler ? this.target().runtimeModel.createRemoteObject(payl
oad.handler) : null, | 555 payload.handler ? this.target().runtimeModel.createRemoteObject(payl
oad.handler) : null, |
| 556 payload.originalHandler ? this.target().runtimeModel.createRemoteObj
ect(payload.originalHandler) : null, | 556 payload.originalHandler ? this.target().runtimeModel.createRemoteObj
ect(payload.originalHandler) : null, |
| 557 /** @type {!WebInspector.DebuggerModel.Location} */ (this._debuggerM
odel.createRawLocationByScriptId( | 557 /** @type {!WebInspector.DebuggerModel.Location} */ (this._debuggerM
odel.createRawLocationByScriptId( |
| 558 payload.scriptId, payload.lineNumber, payload.columnNumber)), | 558 payload.scriptId, payload.lineNumber, payload.columnNumber)), |
| 559 payload.removeFunction ? this.target().runtimeModel.createRemoteObje
ct(payload.removeFunction) : null); | 559 payload.removeFunction ? this.target().runtimeModel.createRemoteObje
ct(payload.removeFunction) : null); |
| 560 } | 560 } |
| 561 } | 561 } |
| 562 } | 562 } |
| 563 | 563 |
| 564 /** | 564 /** |
| (...skipping 850 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1415 } | 1415 } |
| 1416 } | 1416 } |
| 1417 | 1417 |
| 1418 /** | 1418 /** |
| 1419 * @return {!WebInspector.RemoteObject} | 1419 * @return {!WebInspector.RemoteObject} |
| 1420 */ | 1420 */ |
| 1421 object() { | 1421 object() { |
| 1422 return this._object; | 1422 return this._object; |
| 1423 } | 1423 } |
| 1424 }; | 1424 }; |
| OLD | NEW |