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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/ListWidget.js

Issue 2864263002: [DevTools] Expose TCP targets config in frontend, use it for Node (Closed)
Patch Set: panel 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 /** 4 /**
5 * @unrestricted 5 * @unrestricted
6 */ 6 */
7 UI.ListWidget = class extends UI.VBox { 7 UI.ListWidget = class extends UI.VBox {
8 /** 8 /**
9 * @param {!UI.ListWidget.Delegate} delegate 9 * @param {!UI.ListWidget.Delegate} delegate
10 */ 10 */
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 } 301 }
302 302
303 /** 303 /**
304 * @return {!Element} 304 * @return {!Element}
305 */ 305 */
306 contentElement() { 306 contentElement() {
307 return this._contentElement; 307 return this._contentElement;
308 } 308 }
309 309
310 /** 310 /**
311 * @param {boolean} material
312 */
313 setMaterial(material) {
314 this._commitButton.classList.toggle('material-button', material);
315 this._commitButton.classList.toggle('default', material);
316 this._cancelButton.classList.toggle('material-button', material);
317 this.element.classList.toggle('material', material);
318 }
319
320 /**
311 * @param {string} name 321 * @param {string} name
312 * @param {string} type 322 * @param {string} type
313 * @param {string} title 323 * @param {string} title
314 * @param {function(*, number, (!HTMLInputElement|!HTMLSelectElement)):boolean } validator 324 * @param {function(*, number, (!HTMLInputElement|!HTMLSelectElement)):boolean } validator
315 * @return {!HTMLInputElement} 325 * @return {!HTMLInputElement}
316 */ 326 */
317 createInput(name, type, title, validator) { 327 createInput(name, type, title, validator) {
318 var input = /** @type {!HTMLInputElement} */ (createElement('input')); 328 var input = /** @type {!HTMLInputElement} */ (createElement('input'));
319 input.type = type; 329 input.type = type;
320 input.placeholder = title; 330 input.placeholder = title;
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 413
404 _cancelClicked() { 414 _cancelClicked() {
405 var cancel = this._cancel; 415 var cancel = this._cancel;
406 this._commit = null; 416 this._commit = null;
407 this._cancel = null; 417 this._cancel = null;
408 this._item = null; 418 this._item = null;
409 this._index = -1; 419 this._index = -1;
410 cancel(); 420 cancel();
411 } 421 }
412 }; 422 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698