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

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

Issue 2881453003: DevTools: update buttons to new style (Closed)
Patch Set: fix test Created 3 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
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 9a82494b827a14beeac5cd70ced4e2fcaba820c0..e824d13208e38c727101fa70b99db4c80072eb89 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-button');
this._controlButton.textContent = Common.UIString('Take snapshot');
} else if (this._isProfiling) {
this._controlButton.classList.add('running');
+ this._controlButton.classList.remove('primary-button');
this._controlButton.textContent = Common.UIString('Stop');
} else {
this._controlButton.classList.remove('running');
+ this._controlButton.classList.add('primary-button');
this._controlButton.textContent = Common.UIString('Start');
}
for (var item of this._typeIdToOptionElement.values())

Powered by Google App Engine
This is Rietveld 408576698