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

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

Issue 2466123002: DevTools: reformat front-end code to match chromium style. (Closed)
Patch Set: 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 // 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 /** 5 /**
6 * @constructor 6 * @constructor
7 * @extends {WebInspector.VBox} 7 * @extends {WebInspector.VBox}
8 * @param {!WebInspector.ListWidget.Delegate} delegate 8 * @param {!WebInspector.ListWidget.Delegate} delegate
9 */ 9 */
10 WebInspector.ListWidget = function(delegate) 10 WebInspector.ListWidget = function(delegate)
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 * @this {WebInspector.ListWidget} 187 * @this {WebInspector.ListWidget}
188 */ 188 */
189 function onRemoveClicked(event) 189 function onRemoveClicked(event)
190 { 190 {
191 event.consume(); 191 event.consume();
192 var index = this._elements.indexOf(element); 192 var index = this._elements.indexOf(element);
193 this._delegate.removeItemRequested(this._items[index], index); 193 this._delegate.removeItemRequested(this._items[index], index);
194 } 194 }
195 }, 195 },
196 196
197 /**
198 * @override
199 */
197 wasShown: function() 200 wasShown: function()
198 { 201 {
199 WebInspector.VBox.prototype.wasShown.call(this); 202 WebInspector.VBox.prototype.wasShown.call(this);
200 this._stopEditing(); 203 this._stopEditing();
201 }, 204 },
202 205
203 _updatePlaceholder: function() 206 _updatePlaceholder: function()
204 { 207 {
205 if (!this._emptyPlaceholder) 208 if (!this._emptyPlaceholder)
206 return; 209 return;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 _cancelClicked: function() 425 _cancelClicked: function()
423 { 426 {
424 var cancel = this._cancel; 427 var cancel = this._cancel;
425 this._commit = null; 428 this._commit = null;
426 this._cancel = null; 429 this._cancel = null;
427 this._item = null; 430 this._item = null;
428 this._index = -1; 431 this._index = -1;
429 cancel(); 432 cancel();
430 } 433 }
431 }; 434 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698