| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 * @param {!DebuggerAgent.Location} location | 810 * @param {!DebuggerAgent.Location} location |
| 811 */ | 811 */ |
| 812 breakpointResolved: function(breakpointId, location) | 812 breakpointResolved: function(breakpointId, location) |
| 813 { | 813 { |
| 814 this._debuggerModel._breakpointResolved(breakpointId, location); | 814 this._debuggerModel._breakpointResolved(breakpointId, location); |
| 815 } | 815 } |
| 816 } | 816 } |
| 817 | 817 |
| 818 /** | 818 /** |
| 819 * @constructor | 819 * @constructor |
| 820 * @implements {WebInspector.RawLocation} | |
| 821 * @extends {WebInspector.SDKObject} | 820 * @extends {WebInspector.SDKObject} |
| 822 * @param {!WebInspector.Target} target | 821 * @param {!WebInspector.Target} target |
| 823 * @param {string} scriptId | 822 * @param {string} scriptId |
| 824 * @param {number} lineNumber | 823 * @param {number} lineNumber |
| 825 * @param {number=} columnNumber | 824 * @param {number=} columnNumber |
| 826 */ | 825 */ |
| 827 WebInspector.DebuggerModel.Location = function(target, scriptId, lineNumber, col
umnNumber) | 826 WebInspector.DebuggerModel.Location = function(target, scriptId, lineNumber, col
umnNumber) |
| 828 { | 827 { |
| 829 WebInspector.SDKObject.call(this, target); | 828 WebInspector.SDKObject.call(this, target); |
| 830 this._debuggerModel = target.debuggerModel; | 829 this._debuggerModel = target.debuggerModel; |
| 831 this.scriptId = scriptId; | 830 this.scriptId = scriptId; |
| 832 this.lineNumber = lineNumber; | 831 this.lineNumber = lineNumber; |
| 833 this.columnNumber = columnNumber; | 832 this.columnNumber = columnNumber || 0; |
| 834 } | 833 } |
| 835 | 834 |
| 836 /** | 835 /** |
| 837 * @param {!WebInspector.Target} target | 836 * @param {!WebInspector.Target} target |
| 838 * @param {!DebuggerAgent.Location} payload | 837 * @param {!DebuggerAgent.Location} payload |
| 839 * @return {!WebInspector.DebuggerModel.Location} | 838 * @return {!WebInspector.DebuggerModel.Location} |
| 840 */ | 839 */ |
| 841 WebInspector.DebuggerModel.Location.fromPayload = function(target, payload) | 840 WebInspector.DebuggerModel.Location.fromPayload = function(target, payload) |
| 842 { | 841 { |
| 843 return new WebInspector.DebuggerModel.Location(target, payload.scriptId, pay
load.lineNumber, payload.columnNumber); | 842 return new WebInspector.DebuggerModel.Location(target, payload.scriptId, pay
load.lineNumber, payload.columnNumber); |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1101 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime
Agent.RemoteObject} */(this.auxData)); | 1100 return this.target().runtimeModel.createRemoteObject(/** @type {!Runtime
Agent.RemoteObject} */(this.auxData)); |
| 1102 }, | 1101 }, |
| 1103 | 1102 |
| 1104 __proto__: WebInspector.SDKObject.prototype | 1103 __proto__: WebInspector.SDKObject.prototype |
| 1105 } | 1104 } |
| 1106 | 1105 |
| 1107 /** | 1106 /** |
| 1108 * @type {!WebInspector.DebuggerModel} | 1107 * @type {!WebInspector.DebuggerModel} |
| 1109 */ | 1108 */ |
| 1110 WebInspector.debuggerModel; | 1109 WebInspector.debuggerModel; |
| OLD | NEW |