Home | History | Annotate | Download | only in sdk

Lines Matching defs:uiSourceCode

59 WebInspector.BreakpointManager._sourceFileId = function(uiSourceCode)
61 if (!uiSourceCode.url)
63 return uiSourceCode.uri();
103 * @param {!WebInspector.UISourceCode} uiSourceCode
105 _restoreBreakpoints: function(uiSourceCode)
107 var sourceFileId = WebInspector.BreakpointManager._sourceFileId(uiSourceCode);
112 var breakpointItems = this._storage.breakpointItems(uiSourceCode);
119 if (!this._breakpointsForPrimaryUISourceCode.get(uiSourceCode))
120 this._breakpointsForPrimaryUISourceCode.put(uiSourceCode, []);
121 this._breakpointsForPrimaryUISourceCode.get(uiSourceCode).push(provisionalBreakpoint);
124 this._innerSetBreakpoint(uiSourceCode, breakpointItem.lineNumber, breakpointItem.columnNumber, breakpointItem.condition, breakpointItem.enabled);
136 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.data);
137 this._restoreBreakpoints(uiSourceCode);
138 if (uiSourceCode.contentType() === WebInspector.resourceTypes.Script || uiSourceCode.contentType() === WebInspector.resourceTypes.Document)
139 uiSourceCode.addEventListener(WebInspector.UISourceCode.Events.SourceMappingChanged, this._uiSourceCodeMappingChanged, this);
147 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.data);
148 this._removeUISourceCode(uiSourceCode);
156 var uiSourceCode = /** @type {!WebInspector.UISourceCode} */ (event.target);
161 var breakpoints = this._breakpointsForPrimaryUISourceCode.get(uiSourceCode) || [];
167 * @param {!WebInspector.UISourceCode} uiSourceCode
169 _removeUISourceCode: function(uiSourceCode)
171 var breakpoints = this._breakpointsForPrimaryUISourceCode.get(uiSourceCode) || [];
172 var sourceFileId = WebInspector.BreakpointManager._sourceFileId(uiSourceCode);
178 uiSourceCode.removeEventListener(WebInspector.UISourceCode.Events.SourceMappingChanged, this._uiSourceCodeMappingChanged, this);
179 this._breakpointsForPrimaryUISourceCode.remove(uiSourceCode);
183 * @param {!WebInspector.UISourceCode} uiSourceCode
190 setBreakpoint: function(uiSourceCode, lineNumber, columnNumber, condition, enabled)
195 return this._innerSetBreakpoint(uiSourceCode, lineNumber, columnNumber, condition, enabled);
199 * @param {!WebInspector.UISourceCode} uiSourceCode
206 _innerSetBreakpoint: function(uiSourceCode, lineNumber, columnNumber, condition, enabled)
208 var breakpoint = this.findBreakpoint(uiSourceCode, lineNumber, columnNumber);
213 var projectId = uiSourceCode.project().id();
214 var path = uiSourceCode.path();
215 var sourceFileId = WebInspector.BreakpointManager._sourceFileId(uiSourceCode);
217 if (!this._breakpointsForPrimaryUISourceCode.get(uiSourceCode))
218 this._breakpointsForPrimaryUISourceCode.put(uiSourceCode, []);
219 this._breakpointsForPrimaryUISourceCode.get(uiSourceCode).push(breakpoint);
224 * @param {!WebInspector.UISourceCode} uiSourceCode
229 findBreakpoint: function(uiSourceCode, lineNumber, columnNumber)
231 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode);
238 * @param {!WebInspector.UISourceCode} uiSourceCode
242 findBreakpointOnLine: function(uiSourceCode, lineNumber)
244 var breakpoints = this._breakpointsForUISourceCode.get(uiSourceCode);
250 * @param {!WebInspector.UISourceCode} uiSourceCode
253 breakpointsForUISourceCode: function(uiSourceCode)
256 var uiSourceCodeBreakpoints = this._breakpointsForUISourceCode.get(uiSourceCode);
279 * @param {!WebInspector.UISourceCode} uiSourceCode
282 breakpointLocationsForUISourceCode: function(uiSourceCode)
284 var uiSourceCodeBreakpoints = this._breakpointsForUISourceCode.get(uiSourceCode);
296 var uiLocation = uiSourceCode.uiLocation(lineNumber, columnNumber);
347 var uiSourceCode = breakpoint.uiSourceCode();
348 var breakpoints = uiSourceCode ? this._breakpointsForPrimaryUISourceCode.get(uiSourceCode) || [] : [];
361 var breakpoints = this._breakpointsForUISourceCode.get(uiLocation.uiSourceCode);
364 this._breakpointsForUISourceCode.put(uiLocation.uiSourceCode, breakpoints);
386 var breakpoints = this._breakpointsForUISourceCode.get(uiLocation.uiSourceCode);
402 this._breakpointsForUISourceCode.remove(uiLocation.uiSourceCode);
497 * @return {?WebInspector.UISourceCode}
499 uiSourceCode: function()
501 return this._breakpointManager._workspace.uiSourceCode(this._projectId, this._path);
632 var uiSourceCode = this._breakpointManager._workspace.uiSourceCode(this._projectId, this._path);
633 if (!uiSourceCode)
636 this._fakePrimaryLocation = uiSourceCode.uiLocation(this._lineNumber, this._columnNumber);
719 var uiSourceCode = this._breakpoint.uiSourceCode();
720 if (!uiSourceCode || !this._breakpoint._enabled)
722 var scriptFile = uiSourceCode.scriptFileForTarget(this._target);
728 var rawLocation = uiSourceCode.uiLocationToRawLocation(this._target, lineNumber, columnNumber);
733 else if (uiSourceCode.url)
734 this.target().debuggerModel.setBreakpointByURL(uiSourceCode.url, lineNumber, columnNumber, condition, this._didSetBreakpointInDebugger.bind(this));
791 var breakpoint = this._breakpoint._breakpointManager.findBreakpoint(uiLocation.uiSourceCode, uiLocation.lineNumber, uiLocation.columnNumber);
848 * @param {!WebInspector.UISourceCode} uiSourceCode
851 breakpointItems: function(uiSourceCode)
854 var sourceFileId = WebInspector.BreakpointManager._sourceFileId(uiSourceCode);