| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 * @param {!WebInspector.DebuggerPausedDetails} details | 269 * @param {!WebInspector.DebuggerPausedDetails} details |
| 270 */ | 270 */ |
| 271 _showDebuggerPausedDetails: function(details) | 271 _showDebuggerPausedDetails: function(details) |
| 272 { | 272 { |
| 273 this._paused = true; | 273 this._paused = true; |
| 274 this._updateDebuggerButtons(); | 274 this._updateDebuggerButtons(); |
| 275 | 275 |
| 276 this.sidebarPanes.callstack.update(details); | 276 this.sidebarPanes.callstack.update(details); |
| 277 | 277 |
| 278 /** | 278 /** |
| 279 * @param {!Element} element | |
| 280 * @this {WebInspector.SourcesPanel} | |
| 281 */ | |
| 282 function didCreateBreakpointHitStatusMessage(element) | |
| 283 { | |
| 284 this.sidebarPanes.callstack.setStatus(element); | |
| 285 } | |
| 286 | |
| 287 /** | |
| 288 * @param {!WebInspector.LiveLocation} liveLocation | 279 * @param {!WebInspector.LiveLocation} liveLocation |
| 289 * @this {WebInspector.SourcesPanel} | 280 * @this {WebInspector.SourcesPanel} |
| 290 */ | 281 */ |
| 291 function didGetUILocation(liveLocation) | 282 function didGetUILocation(liveLocation) |
| 292 { | 283 { |
| 293 var uiLocation = liveLocation.uiLocation(); | 284 var uiLocation = liveLocation.uiLocation(); |
| 294 if (!uiLocation) | 285 if (!uiLocation) |
| 295 return; | 286 return; |
| 296 var breakpoint = WebInspector.breakpointManager.findBreakpointOnLine
(uiLocation.uiSourceCode, uiLocation.lineNumber); | 287 var breakpoint = WebInspector.breakpointManager.findBreakpointOnLine
(uiLocation.uiSourceCode, uiLocation.lineNumber); |
| 297 if (!breakpoint) | 288 if (!breakpoint) |
| 298 return; | 289 return; |
| 299 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); | 290 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); |
| 300 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a JavaScript breakpoint.")); | 291 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a JavaScript breakpoint.")); |
| 301 } | 292 } |
| 302 | 293 |
| 303 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { | 294 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { |
| 304 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a
uxData); | 295 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a
uxData); |
| 305 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess
age(details, didCreateBreakpointHitStatusMessage.bind(this)); | 296 this.sidebarPanes.callstack.setStatus(WebInspector.domBreakpointsSid
ebarPane.createBreakpointHitStatusMessage(details)); |
| 306 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve
ntListener) { | 297 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve
ntListener) { |
| 307 var eventName = details.auxData["eventName"]; | 298 var eventName = details.auxData["eventName"]; |
| 308 var targetName = details.auxData["targetName"]; | 299 var targetName = details.auxData["targetName"]; |
| 309 this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(event
Name, targetName); | 300 this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(event
Name, targetName); |
| 310 var eventNameForUI = WebInspector.EventListenerBreakpointsSidebarPan
e.eventNameForUI(eventName, details.auxData); | 301 var eventNameForUI = WebInspector.EventListenerBreakpointsSidebarPan
e.eventNameForUI(eventName, details.auxData); |
| 311 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a \"%s\" Event Listener.", eventNameForUI)); | 302 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a \"%s\" Event Listener.", eventNameForUI)); |
| 312 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR
) { | 303 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR
) { |
| 313 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData
["breakpointURL"]); | 304 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData
["breakpointURL"]); |
| 314 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a XMLHttpRequest.")); | 305 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a XMLHttpRequest.")); |
| 315 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc
eption) { | 306 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc
eption) { |
| (...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1498 __proto__: WebInspector.VBox.prototype | 1489 __proto__: WebInspector.VBox.prototype |
| 1499 } | 1490 } |
| 1500 | 1491 |
| 1501 /** | 1492 /** |
| 1502 * @return {boolean} | 1493 * @return {boolean} |
| 1503 */ | 1494 */ |
| 1504 WebInspector.SourcesPanel.WrapperView.isShowing = function() | 1495 WebInspector.SourcesPanel.WrapperView.isShowing = function() |
| 1505 { | 1496 { |
| 1506 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou
rcesPanel.WrapperView._instance.isShowing(); | 1497 return !!WebInspector.SourcesPanel.WrapperView._instance && WebInspector.Sou
rcesPanel.WrapperView._instance.isShowing(); |
| 1507 } | 1498 } |
| OLD | NEW |