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 Page = cr.ui.pageManager.Page; | 6 var Page = cr.ui.pageManager.Page; |
7 var PageManager = cr.ui.pageManager.PageManager; | 7 var PageManager = cr.ui.pageManager.PageManager; |
8 var UserImagesGrid = options.UserImagesGrid; | 8 var UserImagesGrid = options.UserImagesGrid; |
9 var ButtonImages = UserImagesGrid.ButtonImages; | 9 var ButtonImages = UserImagesGrid.ButtonImages; |
10 | 10 |
11 /** | 11 /** |
12 * Array of button URLs used on this page. | 12 * Array of button URLs used on this page. |
13 * @type {Array.<string>} | 13 * @type {Array.<string>} |
14 * @const | 14 * @const |
15 */ | 15 */ |
16 var ButtonImageUrls = [ | 16 var ButtonImageUrls = [ |
17 ButtonImages.TAKE_PHOTO, | 17 ButtonImages.TAKE_PHOTO, |
18 ButtonImages.CHOOSE_FILE | 18 ButtonImages.CHOOSE_FILE |
19 ]; | 19 ]; |
20 | 20 |
21 ///////////////////////////////////////////////////////////////////////////// | 21 ///////////////////////////////////////////////////////////////////////////// |
22 // ChangePictureOptions class: | 22 // ChangePictureOptions class: |
23 | 23 |
24 /** | 24 /** |
25 * Encapsulated handling of ChromeOS change picture options page. | 25 * Encapsulated handling of ChromeOS change picture options page. |
26 * @constructor | 26 * @constructor |
| 27 * @extends {cr.ui.pageManager.Page} |
27 */ | 28 */ |
28 function ChangePictureOptions() { | 29 function ChangePictureOptions() { |
29 Page.call(this, 'changePicture', | 30 Page.call(this, 'changePicture', |
30 loadTimeData.getString('changePicturePage'), | 31 loadTimeData.getString('changePicturePage'), |
31 'change-picture-page'); | 32 'change-picture-page'); |
32 } | 33 } |
33 | 34 |
34 cr.addSingletonGetter(ChangePictureOptions); | 35 cr.addSingletonGetter(ChangePictureOptions); |
35 | 36 |
36 ChangePictureOptions.prototype = { | 37 ChangePictureOptions.prototype = { |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
336 return instance[name + '_'].apply(instance, arguments); | 337 return instance[name + '_'].apply(instance, arguments); |
337 }; | 338 }; |
338 }); | 339 }); |
339 | 340 |
340 // Export | 341 // Export |
341 return { | 342 return { |
342 ChangePictureOptions: ChangePictureOptions | 343 ChangePictureOptions: ChangePictureOptions |
343 }; | 344 }; |
344 | 345 |
345 }); | 346 }); |
OLD | NEW |