Index: Source/devtools/front_end/timeline/CountersGraph.js |
diff --git a/Source/devtools/front_end/timeline/CountersGraph.js b/Source/devtools/front_end/timeline/CountersGraph.js |
index 3fe10baea57ee1ed36d85cacd57986c57e92bc66..22b69173d8a27cbd8af6eb5bf37191af307a735f 100644 |
--- a/Source/devtools/front_end/timeline/CountersGraph.js |
+++ b/Source/devtools/front_end/timeline/CountersGraph.js |
@@ -30,7 +30,7 @@ |
/** |
* @constructor |
- * @extends {WebInspector.SplitView} |
+ * @extends {WebInspector.SplitWidget} |
* @implements {WebInspector.TimelineModeView} |
* @param {string} title |
* @param {!WebInspector.TimelineModeViewDelegate} delegate |
@@ -38,7 +38,7 @@ |
*/ |
WebInspector.CountersGraph = function(title, delegate, model) |
{ |
- WebInspector.SplitView.call(this, true, false); |
+ WebInspector.SplitWidget.call(this, true, false); |
this.element.id = "memory-graphs-container"; |
@@ -47,11 +47,11 @@ WebInspector.CountersGraph = function(title, delegate, model) |
this._calculator = new WebInspector.TimelineCalculator(this._model); |
this._graphsContainer = new WebInspector.VBox(); |
- this.setMainView(this._graphsContainer); |
+ this.setMainWidget(this._graphsContainer); |
this._createCurrentValuesBar(); |
- this._canvasView = new WebInspector.VBoxWithResizeCallback(this._resize.bind(this)); |
- this._canvasView.show(this._graphsContainer.element); |
- this._canvasContainer = this._canvasView.element; |
+ var canvasWidget = new WebInspector.VBoxWithResizeCallback(this._resize.bind(this)); |
+ canvasWidget.show(this._graphsContainer.element); |
+ this._canvasContainer = canvasWidget.element; |
this._canvasContainer.id = "memory-graphs-canvas-container"; |
this._canvas = this._canvasContainer.createChild("canvas"); |
this._canvas.id = "memory-counters-graph"; |
@@ -65,10 +65,10 @@ WebInspector.CountersGraph = function(title, delegate, model) |
this._canvasContainer.appendChild(this._timelineGrid.dividersElement); |
// Populate sidebar |
- this._infoView = new WebInspector.VBox(); |
- this._infoView.element.classList.add("sidebar-tree"); |
- this._infoView.element.createChild("div", "sidebar-tree-section").textContent = title; |
- this.setSidebarView(this._infoView); |
+ this._infoWidget = new WebInspector.VBox(); |
+ this._infoWidget.element.classList.add("sidebar-tree"); |
+ this._infoWidget.element.createChild("div", "sidebar-tree-section").textContent = title; |
+ this.setSidebarWidget(this._infoWidget); |
this._counters = []; |
this._counterUI = []; |
} |
@@ -104,7 +104,7 @@ WebInspector.CountersGraph.prototype = { |
/** |
* @override |
- * @return {!WebInspector.View} |
+ * @return {!WebInspector.Widget} |
*/ |
view: function() |
{ |
@@ -291,7 +291,7 @@ WebInspector.CountersGraph.prototype = { |
{ |
}, |
- __proto__: WebInspector.SplitView.prototype |
+ __proto__: WebInspector.SplitWidget.prototype |
} |
/** |
@@ -401,7 +401,7 @@ WebInspector.CountersGraph.CounterUI = function(memoryCountersPane, title, curre |
{ |
this._memoryCountersPane = memoryCountersPane; |
this.counter = counter; |
- var container = memoryCountersPane._infoView.element.createChild("div", "memory-counter-sidebar-info"); |
+ var container = memoryCountersPane._infoWidget.element.createChild("div", "memory-counter-sidebar-info"); |
var swatchColor = graphColor; |
this._swatch = new WebInspector.SwatchCheckbox(WebInspector.UIString(title), swatchColor); |
this._swatch.addEventListener(WebInspector.SwatchCheckbox.Events.Changed, this._toggleCounterGraph.bind(this)); |