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

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

Issue 543493002: Compile chrome://settings, part 2: reduce from 950 to 400 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@F_settings
Patch Set: rebase? rebase! 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
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698