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 */ var ArrayDataModel = cr.ui.ArrayDataModel; | 6 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
7 /** @const */ var Grid = cr.ui.Grid; | 7 /** @const */ var Grid = cr.ui.Grid; |
8 /** @const */ var GridItem = cr.ui.GridItem; | 8 /** @const */ var GridItem = cr.ui.GridItem; |
9 /** @const */ var GridSelectionController = cr.ui.GridSelectionController; | 9 /** @const */ var GridSelectionController = cr.ui.GridSelectionController; |
10 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; | 10 /** @const */ var ListSingleSelectionModel = cr.ui.ListSingleSelectionModel; |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 /** | 282 /** |
283 * Handles successful camera capture start. | 283 * Handles successful camera capture start. |
284 * @private | 284 * @private |
285 */ | 285 */ |
286 handleVideoStarted_: function() { | 286 handleVideoStarted_: function() { |
287 this.cameraOnline = true; | 287 this.cameraOnline = true; |
288 this.handleVideoUpdate_(); | 288 this.handleVideoUpdate_(); |
289 }, | 289 }, |
290 | 290 |
291 /** | 291 /** |
292 * Handles camera stream update. Called regularly (at rate no greater then | 292 * Handles camera stream update. Called regularly (at rate no greater than |
293 * 4/sec) while camera stream is live. | 293 * 4/sec) while camera stream is live. |
294 * @private | 294 * @private |
295 */ | 295 */ |
296 handleVideoUpdate_: function() { | 296 handleVideoUpdate_: function() { |
297 this.lastFrameTime_ = new Date().getTime(); | 297 this.lastFrameTime_ = new Date().getTime(); |
298 }, | 298 }, |
299 | 299 |
300 /** | 300 /** |
301 * Type of the selected image (one of 'default', 'profile', 'camera'). | 301 * Type of the selected image (one of 'default', 'profile', 'camera'). |
302 * Setting it will update class list of |previewElement|. | 302 * Setting it will update class list of |previewElement|. |
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
671 UserImagesGrid.ButtonImages = { | 671 UserImagesGrid.ButtonImages = { |
672 TAKE_PHOTO: 'chrome://theme/IDR_BUTTON_USER_IMAGE_TAKE_PHOTO', | 672 TAKE_PHOTO: 'chrome://theme/IDR_BUTTON_USER_IMAGE_TAKE_PHOTO', |
673 CHOOSE_FILE: 'chrome://theme/IDR_BUTTON_USER_IMAGE_CHOOSE_FILE', | 673 CHOOSE_FILE: 'chrome://theme/IDR_BUTTON_USER_IMAGE_CHOOSE_FILE', |
674 PROFILE_PICTURE: 'chrome://theme/IDR_PROFILE_PICTURE_LOADING' | 674 PROFILE_PICTURE: 'chrome://theme/IDR_PROFILE_PICTURE_LOADING' |
675 }; | 675 }; |
676 | 676 |
677 return { | 677 return { |
678 UserImagesGrid: UserImagesGrid | 678 UserImagesGrid: UserImagesGrid |
679 }; | 679 }; |
680 }); | 680 }); |
OLD | NEW |