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

Side by Side Diff: chrome/browser/resources/options2/options.js

Issue 9382032: [uber page] Migrate the change picture sub-page to a dialog (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/resources/options2/options.html ('k') | no next file » | 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 var AddLanguageOverlay = options.AddLanguageOverlay; 5 var AddLanguageOverlay = options.AddLanguageOverlay;
6 var AdvancedOptions = options.AdvancedOptions; 6 var AdvancedOptions = options.AdvancedOptions;
7 var AlertOverlay = options.AlertOverlay; 7 var AlertOverlay = options.AlertOverlay;
8 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; 8 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay;
9 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; 9 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay;
10 var AutofillOptions = options.AutofillOptions; 10 var AutofillOptions = options.AutofillOptions;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 OptionsPage.register(BrowserOptions.getInstance()); 68 OptionsPage.register(BrowserOptions.getInstance());
69 69
70 // BrowserOptions sub-pages. 70 // BrowserOptions sub-pages.
71 OptionsPage.registerSubPage(AdvancedOptions.getInstance(), 71 OptionsPage.registerSubPage(AdvancedOptions.getInstance(),
72 BrowserOptions.getInstance(), 72 BrowserOptions.getInstance(),
73 [$('advanced-settings')]); 73 [$('advanced-settings')]);
74 if (cr.isChromeOS) { 74 if (cr.isChromeOS) {
75 OptionsPage.registerSubPage(AccountsOptions.getInstance(), 75 OptionsPage.registerSubPage(AccountsOptions.getInstance(),
76 BrowserOptions.getInstance(), 76 BrowserOptions.getInstance(),
77 [$('manage-accounts-button')]); 77 [$('manage-accounts-button')]);
78 OptionsPage.registerSubPage(ChangePictureOptions.getInstance(),
79 BrowserOptions.getInstance(),
80 [$('change-picture-button')]);
81 OptionsPage.registerSubPage(InternetOptions.getInstance(), 78 OptionsPage.registerSubPage(InternetOptions.getInstance(),
82 BrowserOptions.getInstance(), 79 BrowserOptions.getInstance(),
83 [$('internet-options-button')]); 80 [$('internet-options-button')]);
84 } 81 }
85 82
86 // AdvancedOptions sub-pages. 83 // AdvancedOptions sub-pages.
87 OptionsPage.registerSubPage(ContentSettings.getInstance(), 84 OptionsPage.registerSubPage(ContentSettings.getInstance(),
88 AdvancedOptions.getInstance(), 85 AdvancedOptions.getInstance(),
89 [$('privacyContentSettingsButton')]); 86 [$('privacyContentSettingsButton')]);
90 87
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 OptionsPage.registerOverlay(StartupOverlay.getInstance(), 180 OptionsPage.registerOverlay(StartupOverlay.getInstance(),
184 BrowserOptions.getInstance()); 181 BrowserOptions.getInstance());
185 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(), 182 OptionsPage.registerOverlay(SyncSetupOverlay.getInstance(),
186 BrowserOptions.getInstance()); 183 BrowserOptions.getInstance());
187 if (cr.isChromeOS) { 184 if (cr.isChromeOS) {
188 OptionsPage.registerOverlay(BluetoothOptions.getInstance(), 185 OptionsPage.registerOverlay(BluetoothOptions.getInstance(),
189 AdvancedOptions.getInstance(), 186 AdvancedOptions.getInstance(),
190 [$('bluetooth-add-device')]); 187 [$('bluetooth-add-device')]);
191 OptionsPage.registerOverlay(BluetoothPairing.getInstance(), 188 OptionsPage.registerOverlay(BluetoothPairing.getInstance(),
192 AdvancedOptions.getInstance()); 189 AdvancedOptions.getInstance());
190 OptionsPage.registerOverlay(ChangePictureOptions.getInstance(),
191 BrowserOptions.getInstance(),
192 [$('change-picture-button')]);
193 OptionsPage.registerOverlay(DetailsInternetPage.getInstance(), 193 OptionsPage.registerOverlay(DetailsInternetPage.getInstance(),
194 InternetOptions.getInstance()); 194 InternetOptions.getInstance());
195 OptionsPage.registerOverlay(KeyboardOverlay.getInstance(), 195 OptionsPage.registerOverlay(KeyboardOverlay.getInstance(),
196 BrowserOptions.getInstance(), 196 BrowserOptions.getInstance(),
197 [$('keyboard-settings-button')]); 197 [$('keyboard-settings-button')]);
198 OptionsPage.registerOverlay(PointerOverlay.getInstance(), 198 OptionsPage.registerOverlay(PointerOverlay.getInstance(),
199 BrowserOptions.getInstance(), 199 BrowserOptions.getInstance(),
200 [$('pointer-settings-button')]); 200 [$('pointer-settings-button')]);
201 OptionsPage.registerOverlay(ProxyOptions.getInstance(), 201 OptionsPage.registerOverlay(ProxyOptions.getInstance(),
202 InternetOptions.getInstance()); 202 InternetOptions.getInstance());
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 options.OptionsPage.willClose(); 260 options.OptionsPage.willClose();
261 }; 261 };
262 262
263 /** 263 /**
264 * Listener for the |popstate| event. 264 * Listener for the |popstate| event.
265 * @param {Event} e The |popstate| event. 265 * @param {Event} e The |popstate| event.
266 */ 266 */
267 window.onpopstate = function(e) { 267 window.onpopstate = function(e) {
268 options.OptionsPage.setState(e.state); 268 options.OptionsPage.setState(e.state);
269 }; 269 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/options.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698