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

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

Issue 1219693002: DevTools: Restore all functions Icon should be disabled, not hidden. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 53cd49223c3fec8da5fa21e189cae03f78d4dee4..013e5c038108eecd6345226835824bc28f41557e 100644
--- a/Source/devtools/front_end/profiler/CPUProfileView.js
+++ b/Source/devtools/front_end/profiler/CPUProfileView.js
@@ -69,7 +69,7 @@ WebInspector.CPUProfileView = function(profileHeader)
this.excludeButton.addEventListener("click", this._excludeClicked, this);
this.resetButton = new WebInspector.ToolbarButton(WebInspector.UIString("Restore all functions."), "refresh-toolbar-item");
- this.resetButton.setVisible(false);
+ this.resetButton.setEnabled(false);
this.resetButton.addEventListener("click", this._resetClicked, this);
this._profileHeader = profileHeader;
@@ -331,7 +331,7 @@ WebInspector.CPUProfileView.prototype = {
if (!this.dataGrid.selectedNode)
return;
- this.resetButton.setVisible(true);
+ this.resetButton.setEnabled(true);
this.profileDataGridTree.focus(this.dataGrid.selectedNode);
this.refresh();
this.refreshVisibleData();
@@ -346,7 +346,7 @@ WebInspector.CPUProfileView.prototype = {
selectedNode.deselect();
- this.resetButton.setVisible(true);
+ this.resetButton.setEnabled(true);
this.profileDataGridTree.exclude(selectedNode);
this.refresh();
this.refreshVisibleData();
@@ -354,7 +354,7 @@ WebInspector.CPUProfileView.prototype = {
_resetClicked: function(event)
{
- this.resetButton.setVisible(false);
+ this.resetButton.setEnabled(false);
this.profileDataGridTree.restore();
this._linkifier.reset();
this.refresh();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698