| 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 const ArrayDataModel = cr.ui.ArrayDataModel; | 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 7 const Grid = cr.ui.Grid; | 7 /** @const */ var Grid = cr.ui.Grid; |
| 8 const GridItem = cr.ui.GridItem; | 8 /** @const */ var GridItem = cr.ui.GridItem; |
| 9 const GridSelectionController = cr.ui.GridSelectionController; | 9 /** @const */ var GridSelectionController = cr.ui.GridSelectionController; |
| 10 const ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 10 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * Creates a new user images grid item. | 13 * Creates a new user images grid item. |
| 14 * @param {{url: string, title: string=, decorateFn: function=, | 14 * @param {{url: string, title: string=, decorateFn: function=, |
| 15 * clickHandler: function=}} imageInfo User image URL, optional title, | 15 * clickHandler: function=}} imageInfo User image URL, optional title, |
| 16 * decorator callback and click handler. | 16 * decorator callback and click handler. |
| 17 * @constructor | 17 * @constructor |
| 18 * @extends {cr.ui.GridItem} | 18 * @extends {cr.ui.GridItem} |
| 19 */ | 19 */ |
| 20 function UserImagesGridItem(imageInfo) { | 20 function UserImagesGridItem(imageInfo) { |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 UserImagesGrid.ButtonImages = { | 248 UserImagesGrid.ButtonImages = { |
| 249 TAKE_PHOTO: 'chrome://theme/IDR_BUTTON_USER_IMAGE_TAKE_PHOTO', | 249 TAKE_PHOTO: 'chrome://theme/IDR_BUTTON_USER_IMAGE_TAKE_PHOTO', |
| 250 CHOOSE_FILE: 'chrome://theme/IDR_BUTTON_USER_IMAGE_CHOOSE_FILE', | 250 CHOOSE_FILE: 'chrome://theme/IDR_BUTTON_USER_IMAGE_CHOOSE_FILE', |
| 251 PROFILE_PICTURE: 'chrome://theme/IDR_PROFILE_PICTURE_LOADING' | 251 PROFILE_PICTURE: 'chrome://theme/IDR_PROFILE_PICTURE_LOADING' |
| 252 }; | 252 }; |
| 253 | 253 |
| 254 return { | 254 return { |
| 255 UserImagesGrid: UserImagesGrid | 255 UserImagesGrid: UserImagesGrid |
| 256 }; | 256 }; |
| 257 }); | 257 }); |
| OLD | NEW |