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 (function() { | 9 (function() { |
10 'use strict'; | 10 'use strict'; |
11 | 11 |
12 Polymer({ | 12 Polymer({ |
13 is: 'settings-languages-page', | 13 is: 'settings-languages-page', |
14 | 14 |
| 15 behaviors: [ |
| 16 I18nBehavior, |
| 17 ], |
| 18 |
15 properties: { | 19 properties: { |
16 /** | 20 /** |
17 * The current active route. | 21 * The current active route. |
18 */ | 22 */ |
19 currentRoute: { | 23 currentRoute: { |
20 type: Object, | 24 type: Object, |
21 notify: true, | 25 notify: true, |
22 }, | 26 }, |
23 | 27 |
24 /** | 28 /** |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 * HACK(michaelpg): This is necessary to show the list when navigating to | 159 * HACK(michaelpg): This is necessary to show the list when navigating to |
156 * the sub-page. Remove this function when PolymerElements/neon-animation#60 | 160 * the sub-page. Remove this function when PolymerElements/neon-animation#60 |
157 * is fixed. | 161 * is fixed. |
158 * @param {string} tagName Name of the element containing the <iron-list>. | 162 * @param {string} tagName Name of the element containing the <iron-list>. |
159 */ | 163 */ |
160 forceRenderList_: function(tagName) { | 164 forceRenderList_: function(tagName) { |
161 this.$$(tagName).$$('iron-list').fire('iron-resize'); | 165 this.$$(tagName).$$('iron-list').fire('iron-resize'); |
162 }, | 166 }, |
163 }); | 167 }); |
164 })(); | 168 })(); |
OLD | NEW |