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

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

Issue 1688283002: [DevTools] Blackboxing in LiveLocations is supported in Linkifier (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add-source-map-support-v3
Patch Set: Created 4 years, 10 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 /** 235 /**
236 * @param {!Element} element 236 * @param {!Element} element
237 * @this {WebInspector.SourcesPanel} 237 * @this {WebInspector.SourcesPanel}
238 */ 238 */
239 function didCreateBreakpointHitStatusMessage(element) 239 function didCreateBreakpointHitStatusMessage(element)
240 { 240 {
241 this.sidebarPanes.callstack.setStatus(element); 241 this.sidebarPanes.callstack.setStatus(element);
242 } 242 }
243 243
244 /** 244 /**
245 * @param {!WebInspector.UILocation} uiLocation 245 * @param {!WebInspector.LiveLocation} liveLocation
246 * @this {WebInspector.SourcesPanel} 246 * @this {WebInspector.SourcesPanel}
247 */ 247 */
248 function didGetUILocation(uiLocation) 248 function didGetUILocation(liveLocation)
249 { 249 {
250 var uiLocation = liveLocation.uiLocation;
250 var breakpoint = WebInspector.breakpointManager.findBreakpointOnLine (uiLocation.uiSourceCode, uiLocation.lineNumber); 251 var breakpoint = WebInspector.breakpointManager.findBreakpointOnLine (uiLocation.uiSourceCode, uiLocation.lineNumber);
251 if (!breakpoint) 252 if (!breakpoint)
252 return; 253 return;
253 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint); 254 this.sidebarPanes.jsBreakpoints.highlightBreakpoint(breakpoint);
254 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a JavaScript breakpoint.")); 255 this.sidebarPanes.callstack.setStatus(WebInspector.UIString("Paused on a JavaScript breakpoint."));
255 } 256 }
256 257
257 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) { 258 if (details.reason === WebInspector.DebuggerModel.BreakReason.DOM) {
258 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a uxData); 259 WebInspector.domBreakpointsSidebarPane.highlightBreakpoint(details.a uxData);
259 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess age(details, didCreateBreakpointHitStatusMessage.bind(this)); 260 WebInspector.domBreakpointsSidebarPane.createBreakpointHitStatusMess age(details, didCreateBreakpointHitStatusMessage.bind(this));
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 { 382 {
382 this._ignoreExecutionLineEvents = ignoreExecutionLineEvents; 383 this._ignoreExecutionLineEvents = ignoreExecutionLineEvents;
383 }, 384 },
384 385
385 updateLastModificationTime: function() 386 updateLastModificationTime: function()
386 { 387 {
387 this._lastModificationTime = window.performance.now(); 388 this._lastModificationTime = window.performance.now();
388 }, 389 },
389 390
390 /** 391 /**
391 * @param {!WebInspector.UILocation} uiLocation 392 * @param {!WebInspector.LiveLocation} liveLocation
392 */ 393 */
393 _executionLineChanged: function(uiLocation) 394 _executionLineChanged: function(liveLocation)
394 { 395 {
396 var uiLocation = /** @type {!WebInspector.UILocation} */(liveLocation.ui Location);
395 this._sourcesView.clearCurrentExecutionLine(); 397 this._sourcesView.clearCurrentExecutionLine();
396 this._sourcesView.setExecutionLocation(uiLocation); 398 this._sourcesView.setExecutionLocation(uiLocation);
397 if (window.performance.now() - this._lastModificationTime < WebInspector .SourcesPanel._lastModificationTimeout) 399 if (window.performance.now() - this._lastModificationTime < WebInspector .SourcesPanel._lastModificationTimeout)
398 return; 400 return;
399 this._sourcesView.showSourceLocation(uiLocation.uiSourceCode, uiLocation .lineNumber, uiLocation.columnNumber, undefined, true); 401 this._sourcesView.showSourceLocation(uiLocation.uiSourceCode, uiLocation .lineNumber, uiLocation.columnNumber, undefined, true);
400 }, 402 },
401 403
402 _lastModificationTimeoutPassedForTest: function() 404 _lastModificationTimeoutPassedForTest: function()
403 { 405 {
404 WebInspector.SourcesPanel._lastModificationTimeout = Number.MIN_VALUE; 406 WebInspector.SourcesPanel._lastModificationTimeout = Number.MIN_VALUE;
(...skipping 1015 matching lines...) Expand 10 before | Expand all | Expand 10 after
1420 WebInspector.SourcesPanelFactory.prototype = { 1422 WebInspector.SourcesPanelFactory.prototype = {
1421 /** 1423 /**
1422 * @override 1424 * @override
1423 * @return {!WebInspector.Panel} 1425 * @return {!WebInspector.Panel}
1424 */ 1426 */
1425 createPanel: function() 1427 createPanel: function()
1426 { 1428 {
1427 return WebInspector.SourcesPanel.instance(); 1429 return WebInspector.SourcesPanel.instance();
1428 } 1430 }
1429 } 1431 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698