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

Unified Diff: chrome/browser/resources/options/chromeos/change_picture_options.js

Issue 410293004: Split OptionsPage into Page and PageManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ugh just no Created 6 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/options/chromeos/change_picture_options.js
diff --git a/chrome/browser/resources/options/chromeos/change_picture_options.js b/chrome/browser/resources/options/chromeos/change_picture_options.js
index cf2d2beaa3d6e17b3891951b082dadc2457fad14..e41e5041ee70a9cff14f4e766de56da08228cb44 100644
--- a/chrome/browser/resources/options/chromeos/change_picture_options.js
+++ b/chrome/browser/resources/options/chromeos/change_picture_options.js
@@ -3,8 +3,8 @@
// found in the LICENSE file.
cr.define('options', function() {
-
- var OptionsPage = options.OptionsPage;
+ var Page = cr.ui.pageManager.Page;
+ var PageManager = cr.ui.pageManager.PageManager;
var UserImagesGrid = options.UserImagesGrid;
var ButtonImages = UserImagesGrid.ButtonImages;
@@ -26,23 +26,20 @@ cr.define('options', function() {
* @constructor
*/
function ChangePictureOptions() {
- OptionsPage.call(
- this,
- 'changePicture',
- loadTimeData.getString('changePicturePage'),
- 'change-picture-page');
+ Page.call(this, 'changePicture',
+ loadTimeData.getString('changePicturePage'),
+ 'change-picture-page');
}
cr.addSingletonGetter(ChangePictureOptions);
ChangePictureOptions.prototype = {
- // Inherit ChangePictureOptions from OptionsPage.
- __proto__: options.OptionsPage.prototype,
+ // Inherit ChangePictureOptions from Page.
+ __proto__: Page.prototype,
/** @override */
initializePage: function() {
- // Call base class implementation to start preferences initialization.
- OptionsPage.prototype.initializePage.call(this);
+ Page.prototype.initializePage.call(this);
var imageGrid = $('user-image-grid');
UserImagesGrid.decorate(imageGrid);
@@ -146,7 +143,7 @@ cr.define('options', function() {
*/
closeOverlay_: function() {
if (!$('change-picture-page').hidden)
- OptionsPage.closeOverlay();
+ PageManager.closeOverlay();
},
/**

Powered by Google App Engine
This is Rietveld 408576698