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

Side by Side Diff: chrome/browser/resources/options/language_list.js

Issue 2902033002: WebUI: Fix violations of no-extra-semi lint rule. (Closed)
Patch Set: 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options', function() { 5 cr.define('options', function() {
6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel;
7 /** @const */ var DeletableItem = options.DeletableItem; 7 /** @const */ var DeletableItem = options.DeletableItem;
8 /** @const */ var DeletableItemList = options.DeletableItemList; 8 /** @const */ var DeletableItemList = options.DeletableItemList;
9 /** @const */ var List = cr.ui.List; 9 /** @const */ var List = cr.ui.List;
10 /** @const */ var ListItem = cr.ui.ListItem; 10 /** @const */ var ListItem = cr.ui.ListItem;
11 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; 11 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel;
12 12
13 /** 13 /**
14 * Creates a new Language list item. 14 * Creates a new Language list item.
15 * @param {Object} languageInfo The information of the language. 15 * @param {Object} languageInfo The information of the language.
16 * @constructor 16 * @constructor
17 * @extends {options.DeletableItem} 17 * @extends {options.DeletableItem}
18 */ 18 */
19 function LanguageListItem(languageInfo) { 19 function LanguageListItem(languageInfo) {
20 var el = cr.doc.createElement('li'); 20 var el = cr.doc.createElement('li');
21 el.__proto__ = LanguageListItem.prototype; 21 el.__proto__ = LanguageListItem.prototype;
22 el.language_ = languageInfo; 22 el.language_ = languageInfo;
23 el.decorate(); 23 el.decorate();
24 return el; 24 return el;
25 }; 25 }
26 26
27 LanguageListItem.prototype = { 27 LanguageListItem.prototype = {
28 __proto__: DeletableItem.prototype, 28 __proto__: DeletableItem.prototype,
29 29
30 /** 30 /**
31 * The language code of this language. 31 * The language code of this language.
32 * @type {?string} 32 * @type {?string}
33 * @private 33 * @private
34 */ 34 */
35 languageCode_: null, 35 languageCode_: null,
(...skipping 399 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 } 435 }
436 return filteredLanguageCodes; 436 return filteredLanguageCodes;
437 }, 437 },
438 }; 438 };
439 439
440 return { 440 return {
441 LanguageList: LanguageList, 441 LanguageList: LanguageList,
442 LanguageListItem: LanguageListItem 442 LanguageListItem: LanguageListItem
443 }; 443 };
444 }); 444 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/geolocation_options.js ('k') | chrome/browser/resources/options/startup_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698