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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/DebuggerWorkspaceBinding.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @implements {WebInspector.TargetManager.Observer} 7 * @implements {WebInspector.TargetManager.Observer}
8 * @param {!WebInspector.TargetManager} targetManager 8 * @param {!WebInspector.TargetManager} targetManager
9 * @param {!WebInspector.Workspace} workspace 9 * @param {!WebInspector.Workspace} workspace
10 * @param {!WebInspector.NetworkMapping} networkMapping 10 * @param {!WebInspector.NetworkMapping} networkMapping
(...skipping 451 matching lines...) Expand 10 before | Expand all | Expand 10 after
462 * @return {!WebInspector.DebuggerSourceMapping} 462 * @return {!WebInspector.DebuggerSourceMapping}
463 */ 463 */
464 _popSourceMapping: function() 464 _popSourceMapping: function()
465 { 465 {
466 var sourceMapping = this._sourceMappings.pop(); 466 var sourceMapping = this._sourceMappings.pop();
467 this._updateLocations(); 467 this._updateLocations();
468 return sourceMapping; 468 return sourceMapping;
469 }, 469 },
470 470
471 /** 471 /**
472 * @param {!WebInspector.LiveLocation} location 472 * @param {!WebInspector.DebuggerWorkspaceBinding.Location} location
473 */ 473 */
474 _addLocation: function(location) 474 _addLocation: function(location)
475 { 475 {
476 this._locations.add(location); 476 this._locations.add(location);
477 WebInspector.blackboxManager.addLiveLocation(location);
477 location.update(); 478 location.update();
478 }, 479 },
479 480
480 /** 481 /**
481 * @param {!WebInspector.LiveLocation} location 482 * @param {!WebInspector.DebuggerWorkspaceBinding.Location} location
482 */ 483 */
483 _removeLocation: function(location) 484 _removeLocation: function(location)
484 { 485 {
485 this._locations.delete(location); 486 this._locations.delete(location);
487 WebInspector.blackboxManager.removeLiveLocation(location);
486 }, 488 },
487 489
488 _updateLocations: function() 490 _updateLocations: function()
489 { 491 {
490 for (var location of this._locations) 492 for (var location of this._locations)
491 location.update(); 493 location.update();
492 }, 494 },
493 495
494 /** 496 /**
495 * @param {!WebInspector.DebuggerModel.Location} rawLocation 497 * @param {!WebInspector.DebuggerModel.Location} rawLocation
(...skipping 27 matching lines...) Expand all
523 } 525 }
524 526
525 WebInspector.DebuggerWorkspaceBinding.Location.prototype = { 527 WebInspector.DebuggerWorkspaceBinding.Location.prototype = {
526 /** 528 /**
527 * @override 529 * @override
528 * @return {!WebInspector.UILocation} 530 * @return {!WebInspector.UILocation}
529 */ 531 */
530 uiLocation: function() 532 uiLocation: function()
531 { 533 {
532 var debuggerModelLocation = this._rawLocation; 534 var debuggerModelLocation = this._rawLocation;
533 return this._binding.rawLocationToUILocation(debuggerModelLocation); 535 var isBlackboxed = WebInspector.blackboxManager.isBlackboxedRawLocation( debuggerModelLocation);
536 var uiLocation = this._binding.rawLocationToUILocation(debuggerModelLoca tion);
537 uiLocation.setBlackboxed(isBlackboxed);
dgozman 2016/02/17 22:46:22 Please add LiveLocation.isBlackboxed() and make cl
kozy 2016/02/18 01:52:24 Done.
538 return uiLocation;
534 }, 539 },
535 540
536 dispose: function() 541 dispose: function()
537 { 542 {
538 WebInspector.LiveLocation.prototype.dispose.call(this); 543 WebInspector.LiveLocation.prototype.dispose.call(this);
539 this._binding._removeLiveLocation(this); 544 this._binding._removeLiveLocation(this);
540 }, 545 },
541 546
547 /**
548 * @return {!WebInspector.Script}
549 */
550 script: function()
551 {
552 return this._script;
553 },
554
542 __proto__: WebInspector.LiveLocation.prototype 555 __proto__: WebInspector.LiveLocation.prototype
543 } 556 }
544 557
545 /** 558 /**
546 * @interface 559 * @interface
547 */ 560 */
548 WebInspector.DebuggerSourceMapping = function() 561 WebInspector.DebuggerSourceMapping = function()
549 { 562 {
550 } 563 }
551 564
(...skipping 22 matching lines...) Expand all
574 * @param {number} lineNumber 587 * @param {number} lineNumber
575 * @return {boolean} 588 * @return {boolean}
576 */ 589 */
577 uiLineHasMapping: function(uiSourceCode, lineNumber) { } 590 uiLineHasMapping: function(uiSourceCode, lineNumber) { }
578 } 591 }
579 592
580 /** 593 /**
581 * @type {!WebInspector.DebuggerWorkspaceBinding} 594 * @type {!WebInspector.DebuggerWorkspaceBinding}
582 */ 595 */
583 WebInspector.debuggerWorkspaceBinding; 596 WebInspector.debuggerWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698