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

Side by Side Diff: chrome/browser/resources/options2/browser_options.js

Issue 9580023: Enable user change background image in settings page in Aura build. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to trunk Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.define('options', function() { 5 cr.define('options', function() {
6 var OptionsPage = options.OptionsPage; 6 var OptionsPage = options.OptionsPage;
7 var ArrayDataModel = cr.ui.ArrayDataModel; 7 var ArrayDataModel = cr.ui.ArrayDataModel;
8 var RepeatingButton = cr.ui.RepeatingButton; 8 var RepeatingButton = cr.ui.RepeatingButton;
9 9
10 // 10 //
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 'change', this.onHomePageSelectChange_.bind(this)); 94 'change', this.onHomePageSelectChange_.bind(this));
95 95
96 ['browser.show_home_button', 96 ['browser.show_home_button',
97 'homepage', 97 'homepage',
98 'homepage_is_newtabpage'].forEach(function(pref) { 98 'homepage_is_newtabpage'].forEach(function(pref) {
99 Preferences.getInstance().addEventListener( 99 Preferences.getInstance().addEventListener(
100 pref, 100 pref,
101 self.onHomePagePrefChanged_.bind(self)); 101 self.onHomePagePrefChanged_.bind(self));
102 }); 102 });
103 103
104 if ($('set-wallpaper')) {
105 $('set-wallpaper').onclick = function(event) {
106 OptionsPage.navigateToPage('setWallpaper');
107 };
108 }
109
104 $('themes-gallery').onclick = function(event) { 110 $('themes-gallery').onclick = function(event) {
105 window.open(localStrings.getString('themesGalleryURL')); 111 window.open(localStrings.getString('themesGalleryURL'));
106 }; 112 };
107 $('themes-reset').onclick = function(event) { 113 $('themes-reset').onclick = function(event) {
108 chrome.send('themesReset'); 114 chrome.send('themesReset');
109 }; 115 };
110 116
111 // Device section (ChromeOS only). 117 // Device section (ChromeOS only).
112 if (cr.isChromeOS) { 118 if (cr.isChromeOS) {
113 $('keyboard-settings-button').onclick = function(evt) { 119 $('keyboard-settings-button').onclick = function(evt) {
(...skipping 1101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 BrowserOptions.getLoggedInUsername = function() { 1221 BrowserOptions.getLoggedInUsername = function() {
1216 return BrowserOptions.getInstance().username_; 1222 return BrowserOptions.getInstance().username_;
1217 }; 1223 };
1218 } 1224 }
1219 1225
1220 // Export 1226 // Export
1221 return { 1227 return {
1222 BrowserOptions: BrowserOptions 1228 BrowserOptions: BrowserOptions
1223 }; 1229 };
1224 }); 1230 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698