OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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('settings', function() { | 5 cr.define('settings', function() { |
6 /** | 6 /** |
7 * Class for navigable routes. May only be instantiated within this file. | 7 * Class for navigable routes. May only be instantiated within this file. |
8 * @constructor | 8 * @constructor |
9 * @param {string} path | 9 * @param {string} path |
10 * @private | 10 * @private |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 // Root pages. | 89 // Root pages. |
90 r.BASIC = new Route('/'); | 90 r.BASIC = new Route('/'); |
91 r.ADVANCED = new Route('/advanced'); | 91 r.ADVANCED = new Route('/advanced'); |
92 r.ABOUT = new Route('/help'); | 92 r.ABOUT = new Route('/help'); |
93 | 93 |
94 // Navigable dialogs. These are the only non-section children of root pages. | 94 // Navigable dialogs. These are the only non-section children of root pages. |
95 // These are disfavored. If we add anymore, we should add explicit support. | 95 // These are disfavored. If we add anymore, we should add explicit support. |
96 r.SIGN_OUT = r.BASIC.createChild('/signOut'); | 96 r.SIGN_OUT = r.BASIC.createChild('/signOut'); |
97 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); | 97 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); |
| 98 r.RESET_DIALOG = r.ADVANCED.createChild('/resetProfileSettings'); |
98 | 99 |
99 <if expr="chromeos"> | 100 <if expr="chromeos"> |
100 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); | 101 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); |
101 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); | 102 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); |
102 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); | 103 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); |
103 </if> | 104 </if> |
104 | 105 |
105 r.APPEARANCE = r.BASIC.createSection('/appearance', 'appearance'); | 106 r.APPEARANCE = r.BASIC.createSection('/appearance', 'appearance'); |
106 r.FONTS = r.APPEARANCE.createChild('/fonts'); | 107 r.FONTS = r.APPEARANCE.createChild('/fonts'); |
107 | 108 |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
353 RouteObserverBehavior: RouteObserverBehavior, | 354 RouteObserverBehavior: RouteObserverBehavior, |
354 getRouteForPath: getRouteForPath, | 355 getRouteForPath: getRouteForPath, |
355 initializeRouteFromUrl: initializeRouteFromUrl, | 356 initializeRouteFromUrl: initializeRouteFromUrl, |
356 getCurrentRoute: getCurrentRoute, | 357 getCurrentRoute: getCurrentRoute, |
357 getQueryParameters: getQueryParameters, | 358 getQueryParameters: getQueryParameters, |
358 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 359 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
359 navigateTo: navigateTo, | 360 navigateTo: navigateTo, |
360 navigateToPreviousRoute: navigateToPreviousRoute, | 361 navigateToPreviousRoute: navigateToPreviousRoute, |
361 }; | 362 }; |
362 }); | 363 }); |
OLD | NEW |