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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe_screen_user_image.js

Issue 557633002: Add public API generation with cr.makePublic() and handle it in compiler pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_3
Patch Set: fix bug with oobe Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/resources/options/automatic_settings_reset_banner.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * @fileoverview Oobe user image screen implementation. 6 * @fileoverview Oobe user image screen implementation.
7 */ 7 */
8 8
9 cr.define('login', function() { 9 cr.define('login', function() {
10 var UserImagesGrid = options.UserImagesGrid; 10 var UserImagesGrid = options.UserImagesGrid;
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 notifyImageSelected_: function() { 437 notifyImageSelected_: function() {
438 var imageGrid = $('user-image-grid'); 438 var imageGrid = $('user-image-grid');
439 chrome.send('selectImage', 439 chrome.send('selectImage',
440 [imageGrid.selectedItemUrl, 440 [imageGrid.selectedItemUrl,
441 imageGrid.selectionType, 441 imageGrid.selectionType,
442 !imageGrid.inProgramSelection]); 442 !imageGrid.inProgramSelection]);
443 }, 443 },
444 }; 444 };
445 445
446 // Forward public APIs to private implementations. 446 // Forward public APIs to private implementations.
447 [ 447 cr.makePublic(UserImageScreen, [
448 'setDefaultImages', 448 'setDefaultImages',
449 'setCameraPresent', 449 'setCameraPresent',
450 'setProfilePictureEnabled', 450 'setProfilePictureEnabled',
451 'setProfileImage', 451 'setProfileImage',
452 'setSelectedImage', 452 'setSelectedImage',
453 'hideCurtain' 453 'hideCurtain'
454 ].forEach(function(name) { 454 ], 'user-image');
455 UserImageScreen[name] = function(value) {
456 $('user-image')[name + '_'](value);
457 };
458 });
459 455
460 return { 456 return {
461 UserImageScreen: UserImageScreen 457 UserImageScreen: UserImageScreen
462 }; 458 };
463 }); 459 });
464 460
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/options/automatic_settings_reset_banner.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698