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

Unified Diff: Source/devtools/front_end/profiler/CPUProfileView.js

Issue 722713002: DevTools: get rid of getters and setters in StatusBarButton. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/profiler/CPUProfileView.js
diff --git a/Source/devtools/front_end/profiler/CPUProfileView.js b/Source/devtools/front_end/profiler/CPUProfileView.js
index 10bd4c470424cf1bb5d8f4781dfb7345681fd43b..45284048dc0e0b8d46d5a9f5202076c5fd78c447 100644
--- a/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -72,7 +72,7 @@ WebInspector.CPUProfileView = function(profileHeader)
this._statusBarButtonsElement.appendChild(this.excludeButton.element);
this.resetButton = new WebInspector.StatusBarButton(WebInspector.UIString("Restore all functions."), "reset-profile-status-bar-item");
- this.resetButton.visible = false;
+ this.resetButton.setVisible(false);
this.resetButton.addEventListener("click", this._resetClicked, this);
this._statusBarButtonsElement.appendChild(this.resetButton.element);
@@ -317,7 +317,7 @@ WebInspector.CPUProfileView.prototype = {
if (!this.dataGrid.selectedNode)
return;
- this.resetButton.visible = true;
+ this.resetButton.setVisible(true);
this.profileDataGridTree.focus(this.dataGrid.selectedNode);
this.refresh();
this.refreshVisibleData();
@@ -332,7 +332,7 @@ WebInspector.CPUProfileView.prototype = {
selectedNode.deselect();
- this.resetButton.visible = true;
+ this.resetButton.setVisible(true);
this.profileDataGridTree.exclude(selectedNode);
this.refresh();
this.refreshVisibleData();
@@ -340,7 +340,7 @@ WebInspector.CPUProfileView.prototype = {
_resetClicked: function(event)
{
- this.resetButton.visible = false;
+ this.resetButton.setVisible(false);
this.profileDataGridTree.restore();
this._linkifier.reset();
this.refresh();
« no previous file with comments | « Source/devtools/front_end/network/NetworkPanel.js ('k') | Source/devtools/front_end/profiler/HeapSnapshotView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698