Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(61)

Side by Side Diff: chrome/browser/resources/options/chromeos/change_picture_options.js

Issue 917093003: Shorten Closure template notation from Array.<*> to Array<*>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove cvox Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 296
297 /** 297 /**
298 * @param {boolean} present Whether camera is detected. 298 * @param {boolean} present Whether camera is detected.
299 */ 299 */
300 setCameraPresent_: function(present) { 300 setCameraPresent_: function(present) {
301 $('user-image-grid').cameraPresent = present; 301 $('user-image-grid').cameraPresent = present;
302 }, 302 },
303 303
304 /** 304 /**
305 * Appends default images to the image grid. Should only be called once. 305 * Appends default images to the image grid. Should only be called once.
306 * @param {Array.<{url: string, author: string, website: string}>} 306 * @param {Array<{url: string, author: string, website: string}>}
307 * imagesData An array of default images data, including URL, author and 307 * imagesData An array of default images data, including URL, author and
308 * website. 308 * website.
309 * @private 309 * @private
310 */ 310 */
311 setDefaultImages_: function(imagesData) { 311 setDefaultImages_: function(imagesData) {
312 $('user-image-grid').setDefaultImages(imagesData); 312 $('user-image-grid').setDefaultImages(imagesData);
313 }, 313 },
314 }; 314 };
315 315
316 // Forward public APIs to private implementations. 316 // Forward public APIs to private implementations.
317 cr.makePublic(ChangePictureOptions, [ 317 cr.makePublic(ChangePictureOptions, [
318 'closeOverlay', 318 'closeOverlay',
319 'setCameraPresent', 319 'setCameraPresent',
320 'setDefaultImages', 320 'setDefaultImages',
321 'setOldImage', 321 'setOldImage',
322 'setProfileImage', 322 'setProfileImage',
323 'setSelectedImage', 323 'setSelectedImage',
324 ]); 324 ]);
325 325
326 // Export 326 // Export
327 return { 327 return {
328 ChangePictureOptions: ChangePictureOptions 328 ChangePictureOptions: ChangePictureOptions
329 }; 329 };
330 330
331 }); 331 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698