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

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

Issue 2188033005: Add note page to options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stylus-settings
Patch Set: Initial upload Created 4 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
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 AlertOverlay = options.AlertOverlay; 6 var AlertOverlay = options.AlertOverlay;
7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay; 7 var AutofillEditAddressOverlay = options.AutofillEditAddressOverlay;
8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay; 8 var AutofillEditCreditCardOverlay = options.AutofillEditCreditCardOverlay;
9 var AutofillOptions = options.AutofillOptions; 9 var AutofillOptions = options.AutofillOptions;
10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner; 10 var AutomaticSettingsResetBanner = options.AutomaticSettingsResetBanner;
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 PageManager.registerOverlay(DisplayOverscan.getInstance(), 218 PageManager.registerOverlay(DisplayOverscan.getInstance(),
219 DisplayOptions.getInstance()); 219 DisplayOptions.getInstance());
220 PageManager.registerOverlay(KeyboardOverlay.getInstance(), 220 PageManager.registerOverlay(KeyboardOverlay.getInstance(),
221 BrowserOptions.getInstance(), 221 BrowserOptions.getInstance(),
222 [$('keyboard-settings-button')]); 222 [$('keyboard-settings-button')]);
223 PageManager.registerOverlay(PointerOverlay.getInstance(), 223 PageManager.registerOverlay(PointerOverlay.getInstance(),
224 BrowserOptions.getInstance(), 224 BrowserOptions.getInstance(),
225 [$('pointer-settings-button')]); 225 [$('pointer-settings-button')]);
226 PageManager.registerOverlay(PreferredNetworks.getInstance(), 226 PageManager.registerOverlay(PreferredNetworks.getInstance(),
227 BrowserOptions.getInstance()); 227 BrowserOptions.getInstance());
228 PageManager.registerOverlay(NoteOverlay.getInstance(),
229 BrowserOptions.getInstance(),
230 [$('note-settings-link')]);
228 PageManager.registerOverlay(PowerOverlay.getInstance(), 231 PageManager.registerOverlay(PowerOverlay.getInstance(),
229 BrowserOptions.getInstance(), 232 BrowserOptions.getInstance(),
230 [$('power-settings-link')]); 233 [$('power-settings-link')]);
231 PageManager.registerOverlay(StorageManager.getInstance(), 234 PageManager.registerOverlay(StorageManager.getInstance(),
232 BrowserOptions.getInstance(), 235 BrowserOptions.getInstance(),
233 [$('storage-manager-button')]); 236 [$('storage-manager-button')]);
234 PageManager.registerOverlay(ThirdPartyImeConfirmOverlay.getInstance(), 237 PageManager.registerOverlay(ThirdPartyImeConfirmOverlay.getInstance(),
235 LanguageOptions.getInstance()); 238 LanguageOptions.getInstance());
236 PageManager.registerOverlay( 239 PageManager.registerOverlay(
237 new ConfirmDialog( 240 new ConfirmDialog(
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 }; 304 };
302 305
303 /** 306 /**
304 * Listener for the |popstate| event. 307 * Listener for the |popstate| event.
305 * @param {Event} e The |popstate| event. 308 * @param {Event} e The |popstate| event.
306 */ 309 */
307 window.onpopstate = function(e) { 310 window.onpopstate = function(e) {
308 var pageName = PageManager.getPageNameFromPath(); 311 var pageName = PageManager.getPageNameFromPath();
309 PageManager.setState(pageName, location.hash, e.state); 312 PageManager.setState(pageName, location.hash, e.state);
310 }; 313 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | chrome/browser/resources/options/options_bundle.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698