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 * 'cr-settings-appearance-page' is the settings page containing appearance | 6 * 'cr-settings-appearance-page' is the settings page containing appearance |
7 * settings. | 7 * settings. |
8 * | 8 * |
9 * Example: | 9 * Example: |
10 * | 10 * |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 properties: { | 23 properties: { |
24 /** | 24 /** |
25 * Preferences state. | 25 * Preferences state. |
26 */ | 26 */ |
27 prefs: { | 27 prefs: { |
28 type: Object, | 28 type: Object, |
29 notify: true, | 29 notify: true, |
30 }, | 30 }, |
31 | 31 |
| 32 i18n_: { |
| 33 type: Object, |
| 34 value: function() { |
| 35 return { |
| 36 homePageNtp: loadTimeData.getString('homePageNtp'), |
| 37 openThisPage: loadTimeData.getString('openThisPage'), |
| 38 }; |
| 39 }, |
| 40 }, |
| 41 |
32 // prefs.homepage_is_newtabpage.value | 42 // prefs.homepage_is_newtabpage.value |
33 isNewTabPageString_: { | 43 isNewTabPageString_: { |
34 type: String, | 44 type: String, |
35 notify: true, | 45 notify: true, |
36 observer: 'isNewTabPageStringChanged_', | 46 observer: 'isNewTabPageStringChanged_', |
37 } | 47 } |
38 }, | 48 }, |
39 | 49 |
40 observers: [ | 50 observers: [ |
41 'homepageIsNewTabPageChanged_(prefs.homepage_is_newtabpage.value)', | 51 'homepageIsNewTabPageChanged_(prefs.homepage_is_newtabpage.value)', |
(...skipping 28 matching lines...) Expand all Loading... |
70 /** @private */ | 80 /** @private */ |
71 openThemesGallery_: function() { | 81 openThemesGallery_: function() { |
72 window.open(loadTimeData.getString('themesGalleryUrl')); | 82 window.open(loadTimeData.getString('themesGalleryUrl')); |
73 }, | 83 }, |
74 | 84 |
75 /** @private */ | 85 /** @private */ |
76 resetTheme_: function() { | 86 resetTheme_: function() { |
77 chrome.send('resetTheme'); | 87 chrome.send('resetTheme'); |
78 }, | 88 }, |
79 }); | 89 }); |
OLD | NEW |