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

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

Issue 2912563003: DevTools: cleanup button styles (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 29 matching lines...) Expand all
40 this._panel = profilesPanel; 40 this._panel = profilesPanel;
41 this.element.classList.add('profile-launcher-view', 'panel-enabler-view'); 41 this.element.classList.add('profile-launcher-view', 'panel-enabler-view');
42 42
43 this._contentElement = this.element.createChild('div', 'profile-launcher-vie w-content'); 43 this._contentElement = this.element.createChild('div', 'profile-launcher-vie w-content');
44 this._innerContentElement = this._contentElement.createChild('div'); 44 this._innerContentElement = this._contentElement.createChild('div');
45 var controlDiv = this._contentElement.createChild('div', 'hbox profile-launc her-control'); 45 var controlDiv = this._contentElement.createChild('div', 'hbox profile-launc her-control');
46 var targetDiv = controlDiv.createChild('div', 'hbox profile-launcher-target' ); 46 var targetDiv = controlDiv.createChild('div', 'hbox profile-launcher-target' );
47 targetDiv.createChild('div').textContent = Common.UIString('Target:'); 47 targetDiv.createChild('div').textContent = Common.UIString('Target:');
48 var targetsSelect = targetDiv.createChild('select', 'chrome-select'); 48 var targetsSelect = targetDiv.createChild('select', 'chrome-select');
49 new Profiler.TargetsComboBoxController(targetsSelect, targetDiv); 49 new Profiler.TargetsComboBoxController(targetsSelect, targetDiv);
50 this._controlButton = UI.createTextButton('', this._controlButtonClicked.bin d(this)); 50 this._controlButton = UI.createTextButton('', this._controlButtonClicked.bin d(this), 'profile-launcher-button');
51 controlDiv.appendChild(this._controlButton); 51 this._contentElement.appendChild(this._controlButton);
52 this._recordButtonEnabled = true; 52 this._recordButtonEnabled = true;
53 this._loadButton = UI.createTextButton(Common.UIString('Load'), this._loadBu ttonClicked.bind(this), 'load-profile'); 53 this._loadButton =
54 UI.createTextButton(Common.UIString('Load'), this._loadButtonClicked.bin d(this), 'profile-launcher-button');
54 this._contentElement.appendChild(this._loadButton); 55 this._contentElement.appendChild(this._loadButton);
55 56
56 this._selectedProfileTypeSetting = Common.settings.createSetting('selectedPr ofileType', 'CPU'); 57 this._selectedProfileTypeSetting = Common.settings.createSetting('selectedPr ofileType', 'CPU');
57 this._header = this._innerContentElement.createChild('h1'); 58 this._header = this._innerContentElement.createChild('h1');
58 this._profileTypeSelectorForm = this._innerContentElement.createChild('form' ); 59 this._profileTypeSelectorForm = this._innerContentElement.createChild('form' );
59 this._innerContentElement.createChild('div', 'flexible-space'); 60 this._innerContentElement.createChild('div', 'flexible-space');
60 /** @type {!Map<string, !HTMLOptionElement>} */ 61 /** @type {!Map<string, !HTMLOptionElement>} */
61 this._typeIdToOptionElement = new Map(); 62 this._typeIdToOptionElement = new Map();
62 } 63 }
63 64
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 this._isEnabled = profileType.isEnabled(); 151 this._isEnabled = profileType.isEnabled();
151 this._updateControls(); 152 this._updateControls();
152 this._selectedProfileTypeSetting.set(profileType.id); 153 this._selectedProfileTypeSetting.set(profileType.id);
153 } 154 }
154 }; 155 };
155 156
156 /** @enum {symbol} */ 157 /** @enum {symbol} */
157 Profiler.ProfileLauncherView.Events = { 158 Profiler.ProfileLauncherView.Events = {
158 ProfileTypeSelected: Symbol('ProfileTypeSelected') 159 ProfileTypeSelected: Symbol('ProfileTypeSelected')
159 }; 160 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698