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

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

Issue 9296038: [uber] Redoing the homepage selection UI (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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 OptionsPage.registerOverlay(AlertOverlay.getInstance()); 169 OptionsPage.registerOverlay(AlertOverlay.getInstance());
170 OptionsPage.registerOverlay(AutofillEditAddressOverlay.getInstance(), 170 OptionsPage.registerOverlay(AutofillEditAddressOverlay.getInstance(),
171 AutofillOptions.getInstance()); 171 AutofillOptions.getInstance());
172 OptionsPage.registerOverlay(AutofillEditCreditCardOverlay.getInstance(), 172 OptionsPage.registerOverlay(AutofillEditCreditCardOverlay.getInstance(),
173 AutofillOptions.getInstance()); 173 AutofillOptions.getInstance());
174 OptionsPage.registerOverlay(ClearBrowserDataOverlay.getInstance(), 174 OptionsPage.registerOverlay(ClearBrowserDataOverlay.getInstance(),
175 AdvancedOptions.getInstance(), 175 AdvancedOptions.getInstance(),
176 [$('privacyClearDataButton')]); 176 [$('privacyClearDataButton')]);
177 OptionsPage.registerOverlay(HomePageOverlay.getInstance(), 177 OptionsPage.registerOverlay(HomePageOverlay.getInstance(),
178 BrowserOptions.getInstance(), 178 BrowserOptions.getInstance(),
179 [$('toolbarShowHomeButton')]); 179 [$('home-page-select')]);
180 OptionsPage.registerOverlay(ImportDataOverlay.getInstance(), 180 OptionsPage.registerOverlay(ImportDataOverlay.getInstance(),
181 BrowserOptions.getInstance()); 181 BrowserOptions.getInstance());
182 OptionsPage.registerOverlay(InstantConfirmOverlay.getInstance(), 182 OptionsPage.registerOverlay(InstantConfirmOverlay.getInstance(),
183 BrowserOptions.getInstance()); 183 BrowserOptions.getInstance());
184 OptionsPage.registerOverlay(ManageProfileOverlay.getInstance(), 184 OptionsPage.registerOverlay(ManageProfileOverlay.getInstance(),
185 BrowserOptions.getInstance()); 185 BrowserOptions.getInstance());
186 OptionsPage.registerOverlay(SessionRestoreOverlay.getInstance(), 186 OptionsPage.registerOverlay(SessionRestoreOverlay.getInstance(),
187 BrowserOptions.getInstance()); 187 BrowserOptions.getInstance());
188 OptionsPage.registerOverlay(StartupOverlay.getInstance(), 188 OptionsPage.registerOverlay(StartupOverlay.getInstance(),
189 BrowserOptions.getInstance()); 189 BrowserOptions.getInstance());
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 250
251 document.addEventListener('DOMContentLoaded', load); 251 document.addEventListener('DOMContentLoaded', load);
252 252
253 window.onbeforeunload = function() { 253 window.onbeforeunload = function() {
254 options.OptionsPage.willClose(); 254 options.OptionsPage.willClose();
255 }; 255 };
256 256
257 window.onpopstate = function(e) { 257 window.onpopstate = function(e) {
258 options.OptionsPage.setState(e.state); 258 options.OptionsPage.setState(e.state);
259 }; 259 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options2/home_page_overlay.js ('k') | chrome/browser/resources/options2/options_page.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698