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

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

Issue 2440953003: DevTools: use semicolons after each statement. (Closed)
Patch Set: rebaseline Created 4 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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 var selectTargetText = targetSpan.createChild("span"); 49 var selectTargetText = targetSpan.createChild("span");
50 selectTargetText.textContent = WebInspector.UIString("Target:"); 50 selectTargetText.textContent = WebInspector.UIString("Target:");
51 var targetsSelect = targetSpan.createChild("select", "chrome-select"); 51 var targetsSelect = targetSpan.createChild("select", "chrome-select");
52 new WebInspector.TargetsComboBoxController(targetsSelect, targetSpan); 52 new WebInspector.TargetsComboBoxController(targetsSelect, targetSpan);
53 this._controlButton = createTextButton("", this._controlButtonClicked.bind(t his), "control-profiling"); 53 this._controlButton = createTextButton("", this._controlButtonClicked.bind(t his), "control-profiling");
54 this._contentElement.appendChild(this._controlButton); 54 this._contentElement.appendChild(this._controlButton);
55 this._recordButtonEnabled = true; 55 this._recordButtonEnabled = true;
56 this._loadButton = createTextButton(WebInspector.UIString("Load"), this._loa dButtonClicked.bind(this), "load-profile"); 56 this._loadButton = createTextButton(WebInspector.UIString("Load"), this._loa dButtonClicked.bind(this), "load-profile");
57 this._contentElement.appendChild(this._loadButton); 57 this._contentElement.appendChild(this._loadButton);
58 WebInspector.targetManager.observeTargets(this); 58 WebInspector.targetManager.observeTargets(this);
59 } 59 };
60 60
61 WebInspector.ProfileLauncherView.prototype = { 61 WebInspector.ProfileLauncherView.prototype = {
62 /** 62 /**
63 * @return {?WebInspector.SearchableView} 63 * @return {?WebInspector.SearchableView}
64 */ 64 */
65 searchableView: function() 65 searchableView: function()
66 { 66 {
67 return null; 67 return null;
68 }, 68 },
69 69
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 */ 151 */
152 updateProfileType: function(profileType, recordButtonEnabled) 152 updateProfileType: function(profileType, recordButtonEnabled)
153 { 153 {
154 this._isInstantProfile = profileType.isInstantProfile(); 154 this._isInstantProfile = profileType.isInstantProfile();
155 this._recordButtonEnabled = recordButtonEnabled; 155 this._recordButtonEnabled = recordButtonEnabled;
156 this._isEnabled = profileType.isEnabled(); 156 this._isEnabled = profileType.isEnabled();
157 this._updateControls(); 157 this._updateControls();
158 }, 158 },
159 159
160 __proto__: WebInspector.VBox.prototype 160 __proto__: WebInspector.VBox.prototype
161 } 161 };
162 162
163 163
164 /** 164 /**
165 * @constructor 165 * @constructor
166 * @extends {WebInspector.ProfileLauncherView} 166 * @extends {WebInspector.ProfileLauncherView}
167 * @param {!WebInspector.ProfilesPanel} profilesPanel 167 * @param {!WebInspector.ProfilesPanel} profilesPanel
168 */ 168 */
169 WebInspector.MultiProfileLauncherView = function(profilesPanel) 169 WebInspector.MultiProfileLauncherView = function(profilesPanel)
170 { 170 {
171 WebInspector.ProfileLauncherView.call(this, profilesPanel); 171 WebInspector.ProfileLauncherView.call(this, profilesPanel);
172 172
173 this._selectedProfileTypeSetting = WebInspector.settings.createSetting("sele ctedProfileType", "CPU"); 173 this._selectedProfileTypeSetting = WebInspector.settings.createSetting("sele ctedProfileType", "CPU");
174 174
175 var header = this._innerContentElement.createChild("h1"); 175 var header = this._innerContentElement.createChild("h1");
176 header.textContent = WebInspector.UIString("Select profiling type"); 176 header.textContent = WebInspector.UIString("Select profiling type");
177 177
178 this._profileTypeSelectorForm = this._innerContentElement.createChild("form" ); 178 this._profileTypeSelectorForm = this._innerContentElement.createChild("form" );
179 179
180 this._innerContentElement.createChild("div", "flexible-space"); 180 this._innerContentElement.createChild("div", "flexible-space");
181 181
182 this._typeIdToOptionElement = {}; 182 this._typeIdToOptionElement = {};
183 } 183 };
184 184
185 /** @enum {symbol} */ 185 /** @enum {symbol} */
186 WebInspector.MultiProfileLauncherView.Events = { 186 WebInspector.MultiProfileLauncherView.Events = {
187 ProfileTypeSelected: Symbol("ProfileTypeSelected") 187 ProfileTypeSelected: Symbol("ProfileTypeSelected")
188 } 188 };
189 189
190 WebInspector.MultiProfileLauncherView.prototype = { 190 WebInspector.MultiProfileLauncherView.prototype = {
191 /** 191 /**
192 * @override 192 * @override
193 * @param {!WebInspector.ProfileType} profileType 193 * @param {!WebInspector.ProfileType} profileType
194 */ 194 */
195 addProfileType: function(profileType) 195 addProfileType: function(profileType)
196 { 196 {
197 var labelElement = createRadioLabel("profile-type", profileType.name); 197 var labelElement = createRadioLabel("profile-type", profileType.name);
198 this._profileTypeSelectorForm.appendChild(labelElement); 198 this._profileTypeSelectorForm.appendChild(labelElement);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 this._updateControls(); 251 this._updateControls();
252 }, 252 },
253 253
254 profileFinished: function() 254 profileFinished: function()
255 { 255 {
256 this._isProfiling = false; 256 this._isProfiling = false;
257 this._updateControls(); 257 this._updateControls();
258 }, 258 },
259 259
260 __proto__: WebInspector.ProfileLauncherView.prototype 260 __proto__: WebInspector.ProfileLauncherView.prototype
261 } 261 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698