Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(157)

Side by Side Diff: chrome/browser/resources/settings/appearance_page/appearance_page.js

Issue 1347193003: Add cr-settings-radio-group wrapper (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert startup pages button change Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698