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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/bindings/CSSWorkspaceBinding.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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 */ 93 */
94 updateLocations: function(header) 94 updateLocations: function(header)
95 { 95 {
96 var info = this._headerInfo(header); 96 var info = this._headerInfo(header);
97 if (info) 97 if (info)
98 info._updateLocations(); 98 info._updateLocations();
99 }, 99 },
100 100
101 /** 101 /**
102 * @param {!WebInspector.CSSLocation} rawLocation 102 * @param {!WebInspector.CSSLocation} rawLocation
103 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDel egate 103 * @param {function(!WebInspector.LiveLocation)} updateDelegate
104 * @return {!WebInspector.CSSWorkspaceBinding.LiveLocation} 104 * @return {!WebInspector.CSSWorkspaceBinding.LiveLocation}
105 */ 105 */
106 createLiveLocation: function(rawLocation, updateDelegate) 106 createLiveLocation: function(rawLocation, updateDelegate)
107 { 107 {
108 var header = rawLocation.styleSheetId ? rawLocation.cssModel().styleShee tHeaderForId(rawLocation.styleSheetId) : null; 108 var header = rawLocation.styleSheetId ? rawLocation.cssModel().styleShee tHeaderForId(rawLocation.styleSheetId) : null;
109 return new WebInspector.CSSWorkspaceBinding.LiveLocation(rawLocation.css Model(), header, rawLocation, this, updateDelegate); 109 return new WebInspector.CSSWorkspaceBinding.LiveLocation(rawLocation.css Model(), header, rawLocation, this, updateDelegate);
110 }, 110 },
111 111
112 /** 112 /**
113 * @param {!WebInspector.CSSWorkspaceBinding.LiveLocation} location 113 * @param {!WebInspector.CSSWorkspaceBinding.LiveLocation} location
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 } 307 }
308 } 308 }
309 309
310 /** 310 /**
311 * @constructor 311 * @constructor
312 * @extends {WebInspector.LiveLocation} 312 * @extends {WebInspector.LiveLocation}
313 * @param {!WebInspector.CSSStyleModel} cssModel 313 * @param {!WebInspector.CSSStyleModel} cssModel
314 * @param {?WebInspector.CSSStyleSheetHeader} header 314 * @param {?WebInspector.CSSStyleSheetHeader} header
315 * @param {!WebInspector.CSSLocation} rawLocation 315 * @param {!WebInspector.CSSLocation} rawLocation
316 * @param {!WebInspector.CSSWorkspaceBinding} binding 316 * @param {!WebInspector.CSSWorkspaceBinding} binding
317 * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegat e 317 * @param {function(!WebInspector.LiveLocation)} updateDelegate
318 */ 318 */
319 WebInspector.CSSWorkspaceBinding.LiveLocation = function(cssModel, header, rawLo cation, binding, updateDelegate) 319 WebInspector.CSSWorkspaceBinding.LiveLocation = function(cssModel, header, rawLo cation, binding, updateDelegate)
320 { 320 {
321 WebInspector.LiveLocation.call(this, updateDelegate); 321 WebInspector.LiveLocation.call(this, updateDelegate);
322 this._cssModel = cssModel; 322 this._cssModel = cssModel;
323 this._rawLocation = rawLocation; 323 this._rawLocation = rawLocation;
324 this._binding = binding; 324 this._binding = binding;
325 if (!header) 325 if (!header)
326 this._clearStyleSheet(); 326 this._clearStyleSheet();
327 else 327 else
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 390
391 dispose: function() 391 dispose: function()
392 { 392 {
393 WebInspector.LiveLocation.prototype.dispose.call(this); 393 WebInspector.LiveLocation.prototype.dispose.call(this);
394 if (this._header) 394 if (this._header)
395 this._binding._removeLiveLocation(this); 395 this._binding._removeLiveLocation(this);
396 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetAdded, this._styleSheetAdded, this); 396 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetAdded, this._styleSheetAdded, this);
397 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetRemoved, this._styleSheetRemoved, this); 397 this._cssModel.removeEventListener(WebInspector.CSSStyleModel.Events.Sty leSheetRemoved, this._styleSheetRemoved, this);
398 }, 398 },
399 399
400 /**
401 * @override
402 * @return {boolean}
403 */
404 isBlackboxed: function()
405 {
406 return false;
407 },
408
400 __proto__: WebInspector.LiveLocation.prototype 409 __proto__: WebInspector.LiveLocation.prototype
401 } 410 }
402 411
403 /** 412 /**
404 * @interface 413 * @interface
405 */ 414 */
406 WebInspector.CSSSourceMapping = function() 415 WebInspector.CSSSourceMapping = function()
407 { 416 {
408 } 417 }
409 418
(...skipping 22 matching lines...) Expand all
432 * @param {number} lineNumber 441 * @param {number} lineNumber
433 * @return {boolean} 442 * @return {boolean}
434 */ 443 */
435 uiLineHasMapping: function(uiSourceCode, lineNumber) { } 444 uiLineHasMapping: function(uiSourceCode, lineNumber) { }
436 } 445 }
437 446
438 /** 447 /**
439 * @type {!WebInspector.CSSWorkspaceBinding} 448 * @type {!WebInspector.CSSWorkspaceBinding}
440 */ 449 */
441 WebInspector.cssWorkspaceBinding; 450 WebInspector.cssWorkspaceBinding;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698