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 /** | 5 /** |
6 * Specifies all possible routes in settings. | 6 * Specifies all possible routes in settings. |
7 * | 7 * |
8 * @typedef {{ | 8 * @typedef {{ |
9 * ABOUT: (undefined|!settings.Route), | 9 * ABOUT: (undefined|!settings.Route), |
10 * ABOUT_ABOUT: (undefined|!settings.Route), | 10 * ABOUT_ABOUT: (undefined|!settings.Route), |
(...skipping 26 matching lines...) Expand all Loading... |
37 * INPUT_METHODS: (undefined|!settings.Route), | 37 * INPUT_METHODS: (undefined|!settings.Route), |
38 * INTERNET: (undefined|!settings.Route), | 38 * INTERNET: (undefined|!settings.Route), |
39 * INTERNET_NETWORKS: (undefined|!settings.Route), | 39 * INTERNET_NETWORKS: (undefined|!settings.Route), |
40 * KEYBOARD: (undefined|!settings.Route), | 40 * KEYBOARD: (undefined|!settings.Route), |
41 * KNOWN_NETWORKS: (undefined|!settings.Route), | 41 * KNOWN_NETWORKS: (undefined|!settings.Route), |
42 * LANGUAGES: (undefined|!settings.Route), | 42 * LANGUAGES: (undefined|!settings.Route), |
43 * LOCK_SCREEN: (undefined|!settings.Route), | 43 * LOCK_SCREEN: (undefined|!settings.Route), |
44 * MANAGE_ACCESSIBILITY: (undefined|!settings.Route), | 44 * MANAGE_ACCESSIBILITY: (undefined|!settings.Route), |
45 * MANAGE_PASSWORDS: (undefined|!settings.Route), | 45 * MANAGE_PASSWORDS: (undefined|!settings.Route), |
46 * MANAGE_PROFILE: (undefined|!settings.Route), | 46 * MANAGE_PROFILE: (undefined|!settings.Route), |
| 47 * MULTIDEVICE: (undefined|!settings.Route), |
47 * NETWORK_CONFIG: (undefined|!settings.Route), | 48 * NETWORK_CONFIG: (undefined|!settings.Route), |
48 * NETWORK_DETAIL: (undefined|!settings.Route), | 49 * NETWORK_DETAIL: (undefined|!settings.Route), |
49 * ON_STARTUP: (undefined|!settings.Route), | 50 * ON_STARTUP: (undefined|!settings.Route), |
50 * PASSWORDS: (undefined|!settings.Route), | 51 * PASSWORDS: (undefined|!settings.Route), |
51 * PEOPLE: (undefined|!settings.Route), | 52 * PEOPLE: (undefined|!settings.Route), |
52 * POINTERS: (undefined|!settings.Route), | 53 * POINTERS: (undefined|!settings.Route), |
53 * POWER: (undefined|!settings.Route), | 54 * POWER: (undefined|!settings.Route), |
54 * PRINTING: (undefined|!settings.Route), | 55 * PRINTING: (undefined|!settings.Route), |
55 * PRIVACY: (undefined|!settings.Route), | 56 * PRIVACY: (undefined|!settings.Route), |
56 * RESET: (undefined|!settings.Route), | 57 * RESET: (undefined|!settings.Route), |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
338 if (pageVisibility.downloads !== false) { | 339 if (pageVisibility.downloads !== false) { |
339 r.DOWNLOADS = r.ADVANCED.createSection('/downloads', 'downloads'); | 340 r.DOWNLOADS = r.ADVANCED.createSection('/downloads', 'downloads'); |
340 } | 341 } |
341 | 342 |
342 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); | 343 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); |
343 r.CLOUD_PRINTERS = r.PRINTING.createChild('/cloudPrinters'); | 344 r.CLOUD_PRINTERS = r.PRINTING.createChild('/cloudPrinters'); |
344 // <if expr="chromeos"> | 345 // <if expr="chromeos"> |
345 r.CUPS_PRINTERS = r.PRINTING.createChild('/cupsPrinters'); | 346 r.CUPS_PRINTERS = r.PRINTING.createChild('/cupsPrinters'); |
346 r.CUPS_PRINTER_DETAIL = | 347 r.CUPS_PRINTER_DETAIL = |
347 r.CUPS_PRINTERS.createChild('/cupsPrinterDetails'); | 348 r.CUPS_PRINTERS.createChild('/cupsPrinterDetails'); |
| 349 |
| 350 r.MULTIDEVICE = r.ADVANCED.createSection('/multidevice', 'multidevice'); |
348 // </if> | 351 // </if> |
349 | 352 |
350 r.ACCESSIBILITY = r.ADVANCED.createSection('/accessibility', 'a11y'); | 353 r.ACCESSIBILITY = r.ADVANCED.createSection('/accessibility', 'a11y'); |
351 // <if expr="chromeos"> | 354 // <if expr="chromeos"> |
352 r.MANAGE_ACCESSIBILITY = | 355 r.MANAGE_ACCESSIBILITY = |
353 r.ACCESSIBILITY.createChild('/manageAccessibility'); | 356 r.ACCESSIBILITY.createChild('/manageAccessibility'); |
354 // </if> | 357 // </if> |
355 | 358 |
356 r.SYSTEM = r.ADVANCED.createSection('/system', 'system'); | 359 r.SYSTEM = r.ADVANCED.createSection('/system', 'system'); |
357 | 360 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 getRouteForPath: getRouteForPath, | 620 getRouteForPath: getRouteForPath, |
618 initializeRouteFromUrl: initializeRouteFromUrl, | 621 initializeRouteFromUrl: initializeRouteFromUrl, |
619 resetRouteForTesting: resetRouteForTesting, | 622 resetRouteForTesting: resetRouteForTesting, |
620 getCurrentRoute: getCurrentRoute, | 623 getCurrentRoute: getCurrentRoute, |
621 getQueryParameters: getQueryParameters, | 624 getQueryParameters: getQueryParameters, |
622 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 625 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
623 navigateTo: navigateTo, | 626 navigateTo: navigateTo, |
624 navigateToPreviousRoute: navigateToPreviousRoute, | 627 navigateToPreviousRoute: navigateToPreviousRoute, |
625 }; | 628 }; |
626 }); | 629 }); |
OLD | NEW |