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

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

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! Created 6 years, 3 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 {DeletableItem.ListItem} 17 * @extends {options.DeletableItem.ListItem}
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 = {
(...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
431 } 431 }
432 return filteredLanguageCodes; 432 return filteredLanguageCodes;
433 }, 433 },
434 }; 434 };
435 435
436 return { 436 return {
437 LanguageList: LanguageList, 437 LanguageList: LanguageList,
438 LanguageListItem: LanguageListItem 438 LanguageListItem: LanguageListItem
439 }; 439 };
440 }); 440 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698