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

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

Issue 1345253002: [MD settings] adding dom-if to hide homepage settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review changes 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
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 * '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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698