Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/sources/SourcesPanel.js

Issue 2186653002: [DevTools] Remove V8InspectorSession::backtraceObjectGroup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: targetNodeId Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698