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 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 r.FONTS = r.APPEARANCE.createChild('/fonts'); | 217 r.FONTS = r.APPEARANCE.createChild('/fonts'); |
218 } | 218 } |
219 | 219 |
220 if (pageVisibility.defaultBrowser !== false) { | 220 if (pageVisibility.defaultBrowser !== false) { |
221 r.DEFAULT_BROWSER = | 221 r.DEFAULT_BROWSER = |
222 r.BASIC.createSection('/defaultBrowser', 'defaultBrowser'); | 222 r.BASIC.createSection('/defaultBrowser', 'defaultBrowser'); |
223 } | 223 } |
224 | 224 |
225 r.SEARCH = r.BASIC.createSection('/search', 'search'); | 225 r.SEARCH = r.BASIC.createSection('/search', 'search'); |
226 r.SEARCH_ENGINES = r.SEARCH.createChild('/searchEngines'); | 226 r.SEARCH_ENGINES = r.SEARCH.createChild('/searchEngines'); |
| 227 // <if expr="chromeos"> |
| 228 r.GOOGLE_ASSISTANT = r.SEARCH.createChild('/googleAssistant'); |
| 229 // </if> |
227 | 230 |
228 // <if expr="chromeos"> | 231 // <if expr="chromeos"> |
229 r.ANDROID_APPS = r.BASIC.createSection('/androidApps', 'androidApps'); | 232 r.ANDROID_APPS = r.BASIC.createSection('/androidApps', 'androidApps'); |
230 r.ANDROID_APPS_DETAILS = r.ANDROID_APPS.createChild('/androidApps/details'); | 233 r.ANDROID_APPS_DETAILS = r.ANDROID_APPS.createChild('/androidApps/details'); |
231 // </if> | 234 // </if> |
232 | 235 |
233 if (pageVisibility.onStartup !== false) { | 236 if (pageVisibility.onStartup !== false) { |
234 r.ON_STARTUP = r.BASIC.createSection('/onStartup', 'onStartup'); | 237 r.ON_STARTUP = r.BASIC.createSection('/onStartup', 'onStartup'); |
235 r.STARTUP_URLS = r.ON_STARTUP.createChild('/startupUrls'); | 238 r.STARTUP_URLS = r.ON_STARTUP.createChild('/startupUrls'); |
236 } | 239 } |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 getRouteForPath: getRouteForPath, | 623 getRouteForPath: getRouteForPath, |
621 initializeRouteFromUrl: initializeRouteFromUrl, | 624 initializeRouteFromUrl: initializeRouteFromUrl, |
622 resetRouteForTesting: resetRouteForTesting, | 625 resetRouteForTesting: resetRouteForTesting, |
623 getCurrentRoute: getCurrentRoute, | 626 getCurrentRoute: getCurrentRoute, |
624 getQueryParameters: getQueryParameters, | 627 getQueryParameters: getQueryParameters, |
625 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 628 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
626 navigateTo: navigateTo, | 629 navigateTo: navigateTo, |
627 navigateToPreviousRoute: navigateToPreviousRoute, | 630 navigateToPreviousRoute: navigateToPreviousRoute, |
628 }; | 631 }; |
629 }); | 632 }); |
OLD | NEW |