| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 r.DOWNLOADS = r.ADVANCED.createSection('/downloadsDirectory', 'downloads'); | 240 r.DOWNLOADS = r.ADVANCED.createSection('/downloadsDirectory', 'downloads'); |
| 241 | 241 |
| 242 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); | 242 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); |
| 243 r.CLOUD_PRINTERS = r.PRINTING.createChild('/cloudPrinters', 'cloud-printers'); | 243 r.CLOUD_PRINTERS = r.PRINTING.createChild('/cloudPrinters', 'cloud-printers'); |
| 244 <if expr="chromeos"> | 244 <if expr="chromeos"> |
| 245 r.CUPS_PRINTERS = r.PRINTING.createChild('/cupsPrinters', 'cups-printers'); | 245 r.CUPS_PRINTERS = r.PRINTING.createChild('/cupsPrinters', 'cups-printers'); |
| 246 </if> | 246 </if> |
| 247 | 247 |
| 248 r.ACCESSIBILITY = r.ADVANCED.createSection('/accessibility', 'a11y'); | 248 r.ACCESSIBILITY = r.ADVANCED.createSection('/accessibility', 'a11y'); |
| 249 r.MANAGE_ACCESSIBILITY = r.ACCESSIBILITY.createChild( |
| 250 '/manageAccessibility', 'manage-a11y'); |
| 251 |
| 249 r.SYSTEM = r.ADVANCED.createSection('/system', 'system'); | 252 r.SYSTEM = r.ADVANCED.createSection('/system', 'system'); |
| 250 r.RESET = r.ADVANCED.createSection('/reset', 'reset'); | 253 r.RESET = r.ADVANCED.createSection('/reset', 'reset'); |
| 251 | 254 |
| 252 <if expr="chromeos"> | 255 <if expr="chromeos"> |
| 253 r.INPUT_METHODS = | 256 r.INPUT_METHODS = |
| 254 r.LANGUAGES.createChild('/inputMethods', 'manage-input-methods'); | 257 r.LANGUAGES.createChild('/inputMethods', 'manage-input-methods'); |
| 255 r.DETAILED_BUILD_INFO = | 258 r.DETAILED_BUILD_INFO = |
| 256 r.ABOUT.createChild('/help/details', 'detailed-build-info'); | 259 r.ABOUT.createChild('/help/details', 'detailed-build-info'); |
| 257 r.DETAILED_BUILD_INFO.section = 'about'; | 260 r.DETAILED_BUILD_INFO.section = 'about'; |
| 258 </if> | 261 </if> |
| (...skipping 22 matching lines...) Expand all Loading... |
| 281 | 284 |
| 282 return Route[matchingKey]; | 285 return Route[matchingKey]; |
| 283 }; | 286 }; |
| 284 | 287 |
| 285 return { | 288 return { |
| 286 Route: Route, | 289 Route: Route, |
| 287 navigateTo: navigateTo, | 290 navigateTo: navigateTo, |
| 288 getRouteForPath: getRouteForPath, | 291 getRouteForPath: getRouteForPath, |
| 289 }; | 292 }; |
| 290 }); | 293 }); |
| OLD | NEW |