| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 // Abbreviated variable for easier definitions. | 86 // Abbreviated variable for easier definitions. |
| 87 var r = Route; | 87 var r = Route; |
| 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.IMPORT_DATA = r.BASIC.createChild('/importData'); |
| 96 r.SIGN_OUT = r.BASIC.createChild('/signOut'); | 97 r.SIGN_OUT = r.BASIC.createChild('/signOut'); |
| 97 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); | 98 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); |
| 98 r.RESET_DIALOG = r.ADVANCED.createChild('/resetProfileSettings'); | 99 r.RESET_DIALOG = r.ADVANCED.createChild('/resetProfileSettings'); |
| 99 r.TRIGGERED_RESET_DIALOG = | 100 r.TRIGGERED_RESET_DIALOG = |
| 100 r.ADVANCED.createChild('/triggeredResetProfileSettings'); | 101 r.ADVANCED.createChild('/triggeredResetProfileSettings'); |
| 101 | 102 |
| 102 <if expr="chromeos"> | 103 <if expr="chromeos"> |
| 103 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); | 104 r.INTERNET = r.BASIC.createSection('/internet', 'internet'); |
| 104 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); | 105 r.NETWORK_DETAIL = r.INTERNET.createChild('/networkDetail'); |
| 105 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); | 106 r.KNOWN_NETWORKS = r.INTERNET.createChild('/knownNetworks'); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 RouteObserverBehavior: RouteObserverBehavior, | 371 RouteObserverBehavior: RouteObserverBehavior, |
| 371 getRouteForPath: getRouteForPath, | 372 getRouteForPath: getRouteForPath, |
| 372 initializeRouteFromUrl: initializeRouteFromUrl, | 373 initializeRouteFromUrl: initializeRouteFromUrl, |
| 373 getCurrentRoute: getCurrentRoute, | 374 getCurrentRoute: getCurrentRoute, |
| 374 getQueryParameters: getQueryParameters, | 375 getQueryParameters: getQueryParameters, |
| 375 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 376 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
| 376 navigateTo: navigateTo, | 377 navigateTo: navigateTo, |
| 377 navigateToPreviousRoute: navigateToPreviousRoute, | 378 navigateToPreviousRoute: navigateToPreviousRoute, |
| 378 }; | 379 }; |
| 379 }); | 380 }); |
| OLD | NEW |