| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 this.onHomePageChanged_.bind(this)); | 171 this.onHomePageChanged_.bind(this)); |
| 172 Preferences.getInstance().addEventListener('homepage_is_newtabpage', | 172 Preferences.getInstance().addEventListener('homepage_is_newtabpage', |
| 173 this.onHomePageIsNtpChanged_.bind(this)); | 173 this.onHomePageIsNtpChanged_.bind(this)); |
| 174 | 174 |
| 175 $('change-home-page').onclick = function(event) { | 175 $('change-home-page').onclick = function(event) { |
| 176 OptionsPage.navigateToPage('homePageOverlay'); | 176 OptionsPage.navigateToPage('homePageOverlay'); |
| 177 }; | 177 }; |
| 178 | 178 |
| 179 if ($('set-wallpaper')) { | 179 if ($('set-wallpaper')) { |
| 180 $('set-wallpaper').onclick = function(event) { | 180 $('set-wallpaper').onclick = function(event) { |
| 181 OptionsPage.navigateToPage('setWallpaper'); | 181 chrome.send('openWallpaperManager'); |
| 182 }; | 182 }; |
| 183 } | 183 } |
| 184 | 184 |
| 185 $('themes-gallery').onclick = function(event) { | 185 $('themes-gallery').onclick = function(event) { |
| 186 window.open(loadTimeData.getString('themesGalleryURL')); | 186 window.open(loadTimeData.getString('themesGalleryURL')); |
| 187 }; | 187 }; |
| 188 $('themes-reset').onclick = function(event) { | 188 $('themes-reset').onclick = function(event) { |
| 189 chrome.send('themesReset'); | 189 chrome.send('themesReset'); |
| 190 }; | 190 }; |
| 191 | 191 |
| (...skipping 1279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1471 BrowserOptions.getLoggedInUsername = function() { | 1471 BrowserOptions.getLoggedInUsername = function() { |
| 1472 return BrowserOptions.getInstance().username_; | 1472 return BrowserOptions.getInstance().username_; |
| 1473 }; | 1473 }; |
| 1474 } | 1474 } |
| 1475 | 1475 |
| 1476 // Export | 1476 // Export |
| 1477 return { | 1477 return { |
| 1478 BrowserOptions: BrowserOptions | 1478 BrowserOptions: BrowserOptions |
| 1479 }; | 1479 }; |
| 1480 }); | 1480 }); |
| OLD | NEW |