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

Unified Diff: third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: rebase over cleanup Created 3 years, 7 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
Index: third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
diff --git a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
index 7cc895cd5a36183a0bcf31cac1e09cdc400bcac6..32917a0931adcfdce33a31d39b27af83513434f8 100644
--- a/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
+++ b/third_party/WebKit/Source/devtools/front_end/profiler/ProfileLauncherView.js
@@ -47,7 +47,8 @@ Profiler.ProfileLauncherView = class extends UI.VBox {
targetDiv.createChild('div').textContent = Common.UIString('Target:');
var targetsSelect = targetDiv.createChild('select', 'chrome-select');
new Profiler.TargetsComboBoxController(targetsSelect, targetDiv);
- this._controlButton = UI.createTextButton('', this._controlButtonClicked.bind(this), 'profile-launcher-button');
+ this._controlButton =
+ UI.createTextButton('', this._controlButtonClicked.bind(this), 'profile-launcher-button', true /* primary */);
this._contentElement.appendChild(this._controlButton);
this._recordButtonEnabled = true;
this._loadButton =
@@ -74,12 +75,15 @@ Profiler.ProfileLauncherView = class extends UI.VBox {
this._controlButton.title = this._recordButtonEnabled ? '' : UI.anotherProfilerActiveLabel();
if (this._isInstantProfile) {
this._controlButton.classList.remove('running');
+ this._controlButton.classList.add('primary');
this._controlButton.textContent = Common.UIString('Take Snapshot');
} else if (this._isProfiling) {
this._controlButton.classList.add('running');
+ this._controlButton.classList.remove('primary');
this._controlButton.textContent = Common.UIString('Stop');
} else {
this._controlButton.classList.remove('running');
+ this._controlButton.classList.add('primary');
this._controlButton.textContent = Common.UIString('Start');
}
for (var item of this._typeIdToOptionElement.values())

Powered by Google App Engine
This is Rietveld 408576698