| OLD | NEW |
| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 this.onHomePageChanged_.bind(this)); | 133 this.onHomePageChanged_.bind(this)); |
| 134 Preferences.getInstance().addEventListener('homepage_is_newtabpage', | 134 Preferences.getInstance().addEventListener('homepage_is_newtabpage', |
| 135 this.onHomePageIsNtpChanged_.bind(this)); | 135 this.onHomePageIsNtpChanged_.bind(this)); |
| 136 | 136 |
| 137 $('change-home-page').onclick = function(event) { | 137 $('change-home-page').onclick = function(event) { |
| 138 OptionsPage.navigateToPage('homePageOverlay'); | 138 OptionsPage.navigateToPage('homePageOverlay'); |
| 139 }; | 139 }; |
| 140 | 140 |
| 141 if ($('set-wallpaper')) { | 141 if ($('set-wallpaper')) { |
| 142 $('set-wallpaper').onclick = function(event) { | 142 $('set-wallpaper').onclick = function(event) { |
| 143 OptionsPage.navigateToPage('setWallpaper'); | 143 chrome.send('openWallpaperManager'); |
| 144 }; | 144 }; |
| 145 } | 145 } |
| 146 | 146 |
| 147 $('themes-gallery').onclick = function(event) { | 147 $('themes-gallery').onclick = function(event) { |
| 148 window.open(loadTimeData.getString('themesGalleryURL')); | 148 window.open(loadTimeData.getString('themesGalleryURL')); |
| 149 }; | 149 }; |
| 150 $('themes-reset').onclick = function(event) { | 150 $('themes-reset').onclick = function(event) { |
| 151 chrome.send('themesReset'); | 151 chrome.send('themesReset'); |
| 152 }; | 152 }; |
| 153 | 153 |
| (...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 BrowserOptions.getLoggedInUsername = function() { | 1345 BrowserOptions.getLoggedInUsername = function() { |
| 1346 return BrowserOptions.getInstance().username_; | 1346 return BrowserOptions.getInstance().username_; |
| 1347 }; | 1347 }; |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 // Export | 1350 // Export |
| 1351 return { | 1351 return { |
| 1352 BrowserOptions: BrowserOptions | 1352 BrowserOptions: BrowserOptions |
| 1353 }; | 1353 }; |
| 1354 }); | 1354 }); |
| OLD | NEW |