| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 r.RESET_DIALOG = r.ADVANCED.createChild('/resetProfileSettings'); |
| 99 r.TRIGGERED_RESET_DIALOG = |
| 100 r.ADVANCED.createChild('/triggeredResetProfileSettings'); |
| 99 | 101 |
| 100 <if expr="chromeos"> | 102 <if expr="chromeos"> |
| 101 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); | 103 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); |
| 102 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); | 104 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); |
| 103 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); | 105 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); |
| 104 </if> | 106 </if> |
| 105 | 107 |
| 106 r.APPEARANCE = r.BASIC.createSection('/appearance', 'appearance'); | 108 r.APPEARANCE = r.BASIC.createSection('/appearance', 'appearance'); |
| 107 r.FONTS = r.APPEARANCE.createChild('/fonts'); | 109 r.FONTS = r.APPEARANCE.createChild('/fonts'); |
| 108 | 110 |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 RouteObserverBehavior: RouteObserverBehavior, | 358 RouteObserverBehavior: RouteObserverBehavior, |
| 357 getRouteForPath: getRouteForPath, | 359 getRouteForPath: getRouteForPath, |
| 358 initializeRouteFromUrl: initializeRouteFromUrl, | 360 initializeRouteFromUrl: initializeRouteFromUrl, |
| 359 getCurrentRoute: getCurrentRoute, | 361 getCurrentRoute: getCurrentRoute, |
| 360 getQueryParameters: getQueryParameters, | 362 getQueryParameters: getQueryParameters, |
| 361 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 363 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
| 362 navigateTo: navigateTo, | 364 navigateTo: navigateTo, |
| 363 navigateToPreviousRoute: navigateToPreviousRoute, | 365 navigateToPreviousRoute: navigateToPreviousRoute, |
| 364 }; | 366 }; |
| 365 }); | 367 }); |
| OLD | NEW |