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

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

Issue 9703031: Retry landing "Enable users change desktop background image from settings page in Chromeos Aura bui… (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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 'change', this.onHomePageSelectChange_.bind(this)); 119 'change', this.onHomePageSelectChange_.bind(this));
120 120
121 ['browser.show_home_button', 121 ['browser.show_home_button',
122 'homepage', 122 'homepage',
123 'homepage_is_newtabpage'].forEach(function(pref) { 123 'homepage_is_newtabpage'].forEach(function(pref) {
124 Preferences.getInstance().addEventListener( 124 Preferences.getInstance().addEventListener(
125 pref, 125 pref,
126 self.onHomePagePrefChanged_.bind(self)); 126 self.onHomePagePrefChanged_.bind(self));
127 }); 127 });
128 128
129 if ($('set-wallpaper')) {
130 $('set-wallpaper').onclick = function(event) {
131 OptionsPage.navigateToPage('setWallpaper');
132 };
133 }
134
129 $('themes-gallery').onclick = function(event) { 135 $('themes-gallery').onclick = function(event) {
130 window.open(localStrings.getString('themesGalleryURL')); 136 window.open(localStrings.getString('themesGalleryURL'));
131 }; 137 };
132 $('themes-reset').onclick = function(event) { 138 $('themes-reset').onclick = function(event) {
133 chrome.send('themesReset'); 139 chrome.send('themesReset');
134 }; 140 };
135 141
136 // Device section (ChromeOS only). 142 // Device section (ChromeOS only).
137 if (cr.isChromeOS) { 143 if (cr.isChromeOS) {
138 $('keyboard-settings-button').onclick = function(evt) { 144 $('keyboard-settings-button').onclick = function(evt) {
(...skipping 1138 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 BrowserOptions.getLoggedInUsername = function() { 1283 BrowserOptions.getLoggedInUsername = function() {
1278 return BrowserOptions.getInstance().username_; 1284 return BrowserOptions.getInstance().username_;
1279 }; 1285 };
1280 } 1286 }
1281 1287
1282 // Export 1288 // Export
1283 return { 1289 return {
1284 BrowserOptions: BrowserOptions 1290 BrowserOptions: BrowserOptions
1285 }; 1291 };
1286 }); 1292 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698