| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Polymer({ | 5 Polymer({ |
| 6 is: 'oobe-welcome-dialog', | 6 is: 'oobe-welcome-dialog', |
| 7 properties: { | 7 properties: { |
| 8 /** | 8 /** |
| 9 * Currently selected system language (display name). | 9 * Currently selected system language (display name). |
| 10 */ | 10 */ |
| 11 currentLanguage: { | 11 currentLanguage: { |
| 12 type: String, | 12 type: String, |
| 13 value: '', | 13 value: '', |
| 14 }, | 14 }, |
| 15 /** | 15 /** |
| 16 * Controls visibility of "Timezone" button. | 16 * Controls visibility of "Timezone" button. |
| 17 */ | 17 */ |
| 18 timezoneButtonVisible: { | 18 timezoneButtonVisible: { |
| 19 type: Boolean, | 19 type: Boolean, |
| 20 value: false, | 20 value: false, |
| 21 }, | 21 }, |
| 22 |
| 23 languageButtonLabel_: { |
| 24 type: String, |
| 25 value: "languageButtonLabel", |
| 26 }, |
| 22 }, | 27 }, |
| 23 | 28 |
| 24 onLanguageClicked_: function() { | 29 onLanguageClicked_: function() { |
| 25 this.fire('language-button-clicked'); | 30 this.fire('language-button-clicked'); |
| 26 }, | 31 }, |
| 27 | 32 |
| 28 onAccessibilityClicked_: function() { | 33 onAccessibilityClicked_: function() { |
| 29 this.fire('accessibility-button-clicked'); | 34 this.fire('accessibility-button-clicked'); |
| 30 }, | 35 }, |
| 31 | 36 |
| 32 onTimezoneClicked_: function() { | 37 onTimezoneClicked_: function() { |
| 33 this.fire('timezone-button-clicked'); | 38 this.fire('timezone-button-clicked'); |
| 34 }, | 39 }, |
| 35 | 40 |
| 36 onNextClicked_: function() { | 41 onNextClicked_: function() { |
| 37 this.fire('next-button-clicked'); | 42 this.fire('next-button-clicked'); |
| 38 } | 43 }, |
| 44 |
| 45 /** |
| 46 * This function formats message for labels. |
| 47 * @param String label i18n string ID. |
| 48 * @param String parameter i18n string parameter. |
| 49 * @private |
| 50 */ |
| 51 formatMessage_: function(label, parameter) { |
| 52 return loadTimeData.getStringF(label, parameter); |
| 53 }, |
| 39 }); | 54 }); |
| OLD | NEW |