| 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 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 var UserImagesGrid = options.UserImagesGrid; | 8 var UserImagesGrid = options.UserImagesGrid; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| 11 // SetWallpaperOptions class: | 11 // SetWallpaperOptions class: |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Encapsulated handling of ChromeOS set wallpaper options page. | 14 * Encapsulated handling of ChromeOS set wallpaper options page. |
| 15 * @constructor | 15 * @constructor |
| 16 */ | 16 */ |
| 17 function SetWallpaperOptions() { | 17 function SetWallpaperOptions() { |
| 18 OptionsPage.call( | 18 OptionsPage.call( |
| 19 this, | 19 this, |
| 20 'setWallpaper', | 20 'setWallpaper', |
| 21 localStrings.getString('setWallpaper'), | 21 loadTimeData.getString('setWallpaper'), |
| 22 'set-wallpaper-page'); | 22 'set-wallpaper-page'); |
| 23 } | 23 } |
| 24 | 24 |
| 25 cr.addSingletonGetter(SetWallpaperOptions); | 25 cr.addSingletonGetter(SetWallpaperOptions); |
| 26 | 26 |
| 27 SetWallpaperOptions.prototype = { | 27 SetWallpaperOptions.prototype = { |
| 28 // Inherit SetWallpaperOptions from OptionsPage. | 28 // Inherit SetWallpaperOptions from OptionsPage. |
| 29 __proto__: options.OptionsPage.prototype, | 29 __proto__: options.OptionsPage.prototype, |
| 30 | 30 |
| 31 /** | 31 /** |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 }; | 191 }; |
| 192 }); | 192 }); |
| 193 | 193 |
| 194 // Export | 194 // Export |
| 195 return { | 195 return { |
| 196 SetWallpaperOptions: SetWallpaperOptions | 196 SetWallpaperOptions: SetWallpaperOptions |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 }); | 199 }); |
| 200 | 200 |
| OLD | NEW |