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

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

Issue 1349543006: [MD settings] adding homepage url input (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@appearance7b
Patch Set: merge with master Created 5 years, 2 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 20 matching lines...) Expand all
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
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 });
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