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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/timeline/CountersGraph.js

Issue 2161253002: DevTools: Use proper target when processing worker thread events. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 this._canvasContainer.addEventListener("click", this._onClick.bind(this), tr ue); 68 this._canvasContainer.addEventListener("click", this._onClick.bind(this), tr ue);
69 // We create extra timeline grid here to reuse its event dividers. 69 // We create extra timeline grid here to reuse its event dividers.
70 this._timelineGrid = new WebInspector.TimelineGrid(); 70 this._timelineGrid = new WebInspector.TimelineGrid();
71 this._canvasContainer.appendChild(this._timelineGrid.dividersElement); 71 this._canvasContainer.appendChild(this._timelineGrid.dividersElement);
72 72
73 this._counters = []; 73 this._counters = [];
74 this._counterUI = []; 74 this._counterUI = [];
75 } 75 }
76 76
77 WebInspector.CountersGraph.prototype = { 77 WebInspector.CountersGraph.prototype = {
78 /**
79 * @return {?WebInspector.Target}
80 */
81 target: function()
82 {
83 return this._model.target();
84 },
85
86 _createCurrentValuesBar: function() 78 _createCurrentValuesBar: function()
87 { 79 {
88 this._currentValuesBar = this._graphsContainer.element.createChild("div" ); 80 this._currentValuesBar = this._graphsContainer.element.createChild("div" );
89 this._currentValuesBar.id = "counter-values-bar"; 81 this._currentValuesBar.id = "counter-values-bar";
90 }, 82 },
91 83
92 /** 84 /**
93 * @param {string} uiName 85 * @param {string} uiName
94 * @param {string} uiValueTemplate 86 * @param {string} uiValueTemplate
95 * @param {string} color 87 * @param {string} color
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 627
636 /** 628 /**
637 * @override 629 * @override
638 * @return {number} 630 * @return {number}
639 */ 631 */
640 boundarySpan: function() 632 boundarySpan: function()
641 { 633 {
642 return this._maximumBoundary - this._minimumBoundary; 634 return this._maximumBoundary - this._minimumBoundary;
643 } 635 }
644 } 636 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698