| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 </if> | 115 </if> |
| 116 <if expr="chromeos"> | 116 <if expr="chromeos"> |
| 117 r.CHANGE_PICTURE = r.PEOPLE.createChild('/changePicture'); | 117 r.CHANGE_PICTURE = r.PEOPLE.createChild('/changePicture'); |
| 118 r.ACCOUNTS = r.PEOPLE.createChild('/accounts'); | 118 r.ACCOUNTS = r.PEOPLE.createChild('/accounts'); |
| 119 r.LOCK_SCREEN = r.PEOPLE.createChild('/lockScreen'); | 119 r.LOCK_SCREEN = r.PEOPLE.createChild('/lockScreen'); |
| 120 | 120 |
| 121 r.DEVICE = r.BASIC.createSection('/device', 'device'); | 121 r.DEVICE = r.BASIC.createSection('/device', 'device'); |
| 122 r.POINTERS = r.DEVICE.createChild('/pointer-overlay'); | 122 r.POINTERS = r.DEVICE.createChild('/pointer-overlay'); |
| 123 r.KEYBOARD = r.DEVICE.createChild('/keyboard-overlay'); | 123 r.KEYBOARD = r.DEVICE.createChild('/keyboard-overlay'); |
| 124 r.DISPLAY = r.DEVICE.createChild('/display'); | 124 r.DISPLAY = r.DEVICE.createChild('/display'); |
| 125 r.NOTES = r.DEVICE.createChild('/note'); | 125 r.STYLUS = r.DEVICE.createChild('/stylus'); |
| 126 </if> | 126 </if> |
| 127 | 127 |
| 128 r.PRIVACY = r.ADVANCED.createSection('/privacy', 'privacy'); | 128 r.PRIVACY = r.ADVANCED.createSection('/privacy', 'privacy'); |
| 129 r.CERTIFICATES = r.PRIVACY.createChild('/certificates'); | 129 r.CERTIFICATES = r.PRIVACY.createChild('/certificates'); |
| 130 | 130 |
| 131 // CLEAR_BROWSER_DATA is the only navigable dialog route. It's the only child | 131 // CLEAR_BROWSER_DATA is the only navigable dialog route. It's the only child |
| 132 // of a root page that's not a section. Don't add any more routes like these. | 132 // of a root page that's not a section. Don't add any more routes like these. |
| 133 // If more navigable dialogs are needed, add explicit support in Route. | 133 // If more navigable dialogs are needed, add explicit support in Route. |
| 134 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); | 134 r.CLEAR_BROWSER_DATA = r.ADVANCED.createChild('/clearBrowserData'); |
| 135 | 135 |
| (...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 341 Route: Route, | 341 Route: Route, |
| 342 RouteObserverBehavior: RouteObserverBehavior, | 342 RouteObserverBehavior: RouteObserverBehavior, |
| 343 getRouteForPath: getRouteForPath, | 343 getRouteForPath: getRouteForPath, |
| 344 initializeRouteFromUrl: initializeRouteFromUrl, | 344 initializeRouteFromUrl: initializeRouteFromUrl, |
| 345 getCurrentRoute: getCurrentRoute, | 345 getCurrentRoute: getCurrentRoute, |
| 346 getQueryParameters: getQueryParameters, | 346 getQueryParameters: getQueryParameters, |
| 347 navigateTo: navigateTo, | 347 navigateTo: navigateTo, |
| 348 navigateToPreviousRoute: navigateToPreviousRoute, | 348 navigateToPreviousRoute: navigateToPreviousRoute, |
| 349 }; | 349 }; |
| 350 }); | 350 }); |
| OLD | NEW |