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

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

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 var UserImagesGrid = options.UserImagesGrid; 8 var UserImagesGrid = options.UserImagesGrid;
9 var ButtonImages = UserImagesGrid.ButtonImages; 9 var ButtonImages = UserImagesGrid.ButtonImages;
10 10
(...skipping 21 matching lines...) Expand all
32 loadTimeData.getString('changePicturePage'), 32 loadTimeData.getString('changePicturePage'),
33 'change-picture-page'); 33 'change-picture-page');
34 } 34 }
35 35
36 cr.addSingletonGetter(ChangePictureOptions); 36 cr.addSingletonGetter(ChangePictureOptions);
37 37
38 ChangePictureOptions.prototype = { 38 ChangePictureOptions.prototype = {
39 // Inherit ChangePictureOptions from OptionsPage. 39 // Inherit ChangePictureOptions from OptionsPage.
40 __proto__: options.OptionsPage.prototype, 40 __proto__: options.OptionsPage.prototype,
41 41
42 /** 42 /** @override */
43 * Initializes ChangePictureOptions page.
44 */
45 initializePage: function() { 43 initializePage: function() {
46 // Call base class implementation to start preferences initialization. 44 // Call base class implementation to start preferences initialization.
47 OptionsPage.prototype.initializePage.call(this); 45 OptionsPage.prototype.initializePage.call(this);
48 46
49 var imageGrid = $('user-image-grid'); 47 var imageGrid = $('user-image-grid');
50 UserImagesGrid.decorate(imageGrid); 48 UserImagesGrid.decorate(imageGrid);
51 49
52 // Preview image will track the selected item's URL. 50 // Preview image will track the selected item's URL.
53 var previewElement = $('user-image-preview'); 51 var previewElement = $('user-image-preview');
54 previewElement.oncontextmenu = function(e) { e.preventDefault(); }; 52 previewElement.oncontextmenu = function(e) { e.preventDefault(); };
(...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 return instance[name + '_'].apply(instance, arguments); 339 return instance[name + '_'].apply(instance, arguments);
342 }; 340 };
343 }); 341 });
344 342
345 // Export 343 // Export
346 return { 344 return {
347 ChangePictureOptions: ChangePictureOptions 345 ChangePictureOptions: ChangePictureOptions
348 }; 346 };
349 347
350 }); 348 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698