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 20 matching lines...) Expand all Loading... |
31 | 31 |
32 /** | 32 /** |
33 * Translated strings used in data binding. | 33 * Translated strings used in data binding. |
34 */ | 34 */ |
35 i18n_: { | 35 i18n_: { |
36 type: Object, | 36 type: Object, |
37 value: function() { | 37 value: function() { |
38 return { | 38 return { |
39 homePageNtp: loadTimeData.getString('homePageNtp'), | 39 homePageNtp: loadTimeData.getString('homePageNtp'), |
40 openThisPage: loadTimeData.getString('openThisPage'), | 40 openThisPage: loadTimeData.getString('openThisPage'), |
| 41 onStartupEnterUrl: loadTimeData.getString('onStartupEnterUrl'), |
41 }; | 42 }; |
42 }, | 43 }, |
43 }, | 44 }, |
44 }, | 45 }, |
45 | 46 |
46 /** @override */ | 47 /** @override */ |
47 attached: function() { | 48 attached: function() { |
48 // Query the initial state. | 49 // Query the initial state. |
49 cr.sendWithCallback('getResetThemeEnabled', undefined, | 50 cr.sendWithCallback('getResetThemeEnabled', undefined, |
50 this.setResetThemeEnabled.bind(this)); | 51 this.setResetThemeEnabled.bind(this)); |
(...skipping 10 matching lines...) Expand all Loading... |
61 /** @private */ | 62 /** @private */ |
62 openThemesGallery_: function() { | 63 openThemesGallery_: function() { |
63 window.open(loadTimeData.getString('themesGalleryUrl')); | 64 window.open(loadTimeData.getString('themesGalleryUrl')); |
64 }, | 65 }, |
65 | 66 |
66 /** @private */ | 67 /** @private */ |
67 resetTheme_: function() { | 68 resetTheme_: function() { |
68 chrome.send('resetTheme'); | 69 chrome.send('resetTheme'); |
69 }, | 70 }, |
70 }); | 71 }); |
OLD | NEW |