OLD | NEW |
---|---|
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; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 LanguageList.prototype = { | 94 LanguageList.prototype = { |
95 __proto__: DeletableItemList.prototype, | 95 __proto__: DeletableItemList.prototype, |
96 | 96 |
97 // The list item being dragged. | 97 // The list item being dragged. |
98 draggedItem: null, | 98 draggedItem: null, |
99 // The drop position information: "below" or "above". | 99 // The drop position information: "below" or "above". |
100 dropPos: null, | 100 dropPos: null, |
101 // The preference is a CSV string that describes preferred languages | 101 // The preference is a CSV string that describes preferred languages |
102 // in Chrome OS. The language list is used for showing the language | 102 // in Chrome OS. The language list is used for showing the language |
103 // list in "Language and Input" options page. | 103 // list in "Language and Input" options page. |
104 preferredLanguagesPref: 'settings.language.preferred_languages', | 104 preferredLanguagesPref: 'settings.language.preferred_languages_local', |
michaelpg
2014/06/04 01:12:02
hajimehoshi@ asked:
"Currently, 'settings.languag
hajimehoshi
2014/06/04 05:55:01
AFAIK, currently, changing the language list at no
| |
105 // The preference is a CSV string that describes accept languages used | 105 // The preference is a CSV string that describes accept languages used |
106 // for content negotiation. To be more precise, the list will be used | 106 // for content negotiation. To be more precise, the list will be used |
107 // in "Accept-Language" header in HTTP requests. | 107 // in "Accept-Language" header in HTTP requests. |
108 acceptLanguagesPref: 'intl.accept_languages', | 108 acceptLanguagesPref: 'intl.accept_languages', |
109 | 109 |
110 /** @override */ | 110 /** @override */ |
111 decorate: function() { | 111 decorate: function() { |
112 DeletableItemList.prototype.decorate.call(this); | 112 DeletableItemList.prototype.decorate.call(this); |
113 this.selectionModel = new ListSingleSelectionModel; | 113 this.selectionModel = new ListSingleSelectionModel; |
114 | 114 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 }); |
OLD | NEW |