| OLD | NEW |
| 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 * @fileoverview 'settings-languages-page' is the settings page | 6 * @fileoverview 'settings-languages-page' is the settings page |
| 7 * for language and input method settings. | 7 * for language and input method settings. |
| 8 * | 8 * |
| 9 * @group Chrome Settings Elements | 9 * @group Chrome Settings Elements |
| 10 * @element settings-languages-page | 10 * @element settings-languages-page |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 /** | 35 /** |
| 36 * Read-only reference to the languages model provided by the | 36 * Read-only reference to the languages model provided by the |
| 37 * 'settings-languages' instance. | 37 * 'settings-languages' instance. |
| 38 * @type {LanguagesModel|undefined} | 38 * @type {LanguagesModel|undefined} |
| 39 */ | 39 */ |
| 40 languages: { | 40 languages: { |
| 41 type: Object, | 41 type: Object, |
| 42 notify: true, | 42 notify: true, |
| 43 }, | 43 }, |
| 44 |
| 45 /** @private */ |
| 46 languagesSecondary_: { |
| 47 type: String, |
| 48 value: 'Placeholder, e.g. English (United States)', |
| 49 }, |
| 50 |
| 51 /** @private */ |
| 52 inputMethodsSecondary_: { |
| 53 type: String, |
| 54 value: 'Placeholder, e.g. US keyboard', |
| 55 }, |
| 56 |
| 57 /** @private */ |
| 58 spellCheckSecondary_: { |
| 59 type: String, |
| 60 value: 'Placeholder, e.g. English (United States)', |
| 61 }, |
| 44 }, | 62 }, |
| 45 | 63 |
| 46 /** @private {!LanguageHelper} */ | 64 /** @private {!LanguageHelper} */ |
| 47 languageHelper_: LanguageHelperImpl.getInstance(), | 65 languageHelper_: LanguageHelperImpl.getInstance(), |
| 48 | 66 |
| 49 /** | 67 /** |
| 50 * Handler for clicking a language on the main page, which selects the | 68 * Handler for clicking a language on the main page, which selects the |
| 51 * language as the prospective UI language on Chrome OS and Windows. | 69 * language as the prospective UI language on Chrome OS and Windows. |
| 52 * @param {!{model: !{item: !LanguageInfo}}} e | 70 * @param {!{model: !{item: !LanguageInfo}}} e |
| 53 */ | 71 */ |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 * HACK(michaelpg): This is necessary to show the list when navigating to | 158 * HACK(michaelpg): This is necessary to show the list when navigating to |
| 141 * the sub-page. Remove this function when PolymerElements/neon-animation#60 | 159 * the sub-page. Remove this function when PolymerElements/neon-animation#60 |
| 142 * is fixed. | 160 * is fixed. |
| 143 * @param {string} tagName Name of the element containing the <iron-list>. | 161 * @param {string} tagName Name of the element containing the <iron-list>. |
| 144 */ | 162 */ |
| 145 forceRenderList_: function(tagName) { | 163 forceRenderList_: function(tagName) { |
| 146 this.$$(tagName).$$('iron-list').fire('iron-resize'); | 164 this.$$(tagName).$$('iron-list').fire('iron-resize'); |
| 147 }, | 165 }, |
| 148 }); | 166 }); |
| 149 })(); | 167 })(); |
| OLD | NEW |