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 | 6 |
7 /** | 7 /** |
8 * 'cr-settings-appearance-page' is the settings page containing appearance | 8 * 'cr-settings-appearance-page' is the settings page containing appearance |
9 * settings. | 9 * settings. |
10 * | 10 * |
(...skipping 23 matching lines...) Expand all Loading... |
34 }, | 34 }, |
35 | 35 |
36 properties: { | 36 properties: { |
37 /** | 37 /** |
38 * Preferences state. | 38 * Preferences state. |
39 */ | 39 */ |
40 prefs: { | 40 prefs: { |
41 type: Object, | 41 type: Object, |
42 notify: true, | 42 notify: true, |
43 }, | 43 }, |
| 44 |
| 45 /** |
| 46 * Translated strings used in data binding. |
| 47 */ |
| 48 i18n_: { |
| 49 type: Object, |
| 50 value: function() { |
| 51 return { |
| 52 homePageNtp: loadTimeData.getString('homePageNtp'), |
| 53 openThisPage: loadTimeData.getString('openThisPage'), |
| 54 }; |
| 55 }, |
| 56 }, |
44 }, | 57 }, |
45 | 58 |
46 setResetThemeEnabled: function(enabled) { | 59 setResetThemeEnabled: function(enabled) { |
47 this.$.resetTheme.disabled = !enabled; | 60 this.$.resetTheme.disabled = !enabled; |
48 }, | 61 }, |
49 | 62 |
50 /** @private */ | 63 /** @private */ |
51 openThemesGallery_: function() { | 64 openThemesGallery_: function() { |
52 window.open(loadTimeData.getString('themesGalleryUrl')); | 65 window.open(loadTimeData.getString('themesGalleryUrl')); |
53 }, | 66 }, |
54 | 67 |
55 /** @private */ | 68 /** @private */ |
56 resetTheme_: function() { | 69 resetTheme_: function() { |
57 chrome.send('resetTheme'); | 70 chrome.send('resetTheme'); |
58 }, | 71 }, |
59 }); | 72 }); |
OLD | NEW |