| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 if (!breakpoint) | 270 if (!breakpoint) |
| 271 return; | 271 return; |
| 272 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); | 272 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); |
| 273 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a JavaScript breakpoint.")); | 273 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a JavaScript breakpoint.")); |
| 274 } | 274 } |
| 275 | 275 |
| 276 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { | 276 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { |
| 277 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a
uxData); | 277 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a
uxData); |
| 278 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess
age(details, didCreateBreakpointHitStatusMessage.bind(this)); | 278 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess
age(details, didCreateBreakpointHitStatusMessage.bind(this)); |
| 279 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve
ntListener) { | 279 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Eve
ntListener) { |
| 280 var eventName = details.auxData.eventName; | 280 var eventName = details.auxData["eventName"]; |
| 281 this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(detai
ls.auxData.eventName); | 281 var targetName = details.auxData["targetName"]; |
| 282 this.sidebarPanes.eventListenerBreakpoints.highlightBreakpoint(event
Name, targetName); |
| 282 var eventNameForUI = WebInspector.EventListenerBreakpointsSidebarPan
e.eventNameForUI(eventName, details.auxData); | 283 var eventNameForUI = WebInspector.EventListenerBreakpointsSidebarPan
e.eventNameForUI(eventName, details.auxData); |
| 283 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a \"%s\" Event Listener.", eventNameForUI)); | 284 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a \"%s\" Event Listener.", eventNameForUI)); |
| 284 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR
) { | 285 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.XHR
) { |
| 285 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData
["breakpointURL"]); | 286 this.sidebarPanes.xhrBreakpoints.highlightBreakpoint(details.auxData
["breakpointURL"]); |
| 286 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a XMLHttpRequest.")); | 287 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a XMLHttpRequest.")); |
| 287 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc
eption) | 288 } else if (details.reason === WebInspector.DebuggerModel.BreakReason.Exc
eption) |
| 288 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on exception: '%s'.", details.auxData.description)); | 289 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on exception: '%s'.", details.auxData["description"])); |
| 289 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Asser
t) | 290 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Asser
t) |
| 290 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on assertion.")); | 291 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on assertion.")); |
| 291 else if (details.reason === WebInspector.DebuggerModel.BreakReason.CSPVi
olation) | 292 else if (details.reason === WebInspector.DebuggerModel.BreakReason.CSPVi
olation) |
| 292 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a script blocked due to Content Security Policy directive: \"%s\".", details.
auxData["directiveText"])); | 293 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a script blocked due to Content Security Policy directive: \"%s\".", details.
auxData["directiveText"])); |
| 293 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Debug
Command) | 294 else if (details.reason === WebInspector.DebuggerModel.BreakReason.Debug
Command) |
| 294 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a debugged function")); | 295 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused
on a debugged function")); |
| 295 else { | 296 else { |
| 296 if (details.callFrames.length) | 297 if (details.callFrames.length) |
| 297 details.callFrames[0].createLiveLocation(didGetUILocation.bind(t
his)); | 298 details.callFrames[0].createLiveLocation(didGetUILocation.bind(t
his)); |
| 298 else | 299 else |
| (...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1411 WebInspector.SourcesPanel.TogglePauseActionDelegate.prototype = { | 1412 WebInspector.SourcesPanel.TogglePauseActionDelegate.prototype = { |
| 1412 /** | 1413 /** |
| 1413 * @return {boolean} | 1414 * @return {boolean} |
| 1414 */ | 1415 */ |
| 1415 handleAction: function() | 1416 handleAction: function() |
| 1416 { | 1417 { |
| 1417 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorView.sh
owPanel("sources")).togglePause(); | 1418 /** @type {!WebInspector.SourcesPanel} */ (WebInspector.inspectorView.sh
owPanel("sources")).togglePause(); |
| 1418 return true; | 1419 return true; |
| 1419 } | 1420 } |
| 1420 } | 1421 } |
| OLD | NEW |