| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 r.SITE_SETTINGS_LOCATION = r.SITE_SETTINGS.createChild('location'); | 166 r.SITE_SETTINGS_LOCATION = r.SITE_SETTINGS.createChild('location'); |
| 167 r.SITE_SETTINGS_MICROPHONE = r.SITE_SETTINGS.createChild('microphone'); | 167 r.SITE_SETTINGS_MICROPHONE = r.SITE_SETTINGS.createChild('microphone'); |
| 168 r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications'); | 168 r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications'); |
| 169 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); | 169 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); |
| 170 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); | 170 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); |
| 171 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = | 171 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = |
| 172 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); | 172 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); |
| 173 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); | 173 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); |
| 174 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); | 174 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); |
| 175 r.SITE_SETTINGS_PDF_DOCUMENTS = r.SITE_SETTINGS.createChild('pdfDocuments'); | 175 r.SITE_SETTINGS_PDF_DOCUMENTS = r.SITE_SETTINGS.createChild('pdfDocuments'); |
| 176 | |
| 177 // <if expr="chromeos or is_win"> | |
| 178 r.SITE_SETTINGS_PROTECTED_CONTENT = | 176 r.SITE_SETTINGS_PROTECTED_CONTENT = |
| 179 r.SITE_SETTINGS.createChild('protectedContent'); | 177 r.SITE_SETTINGS.createChild('protectedContent'); |
| 180 // </if> | |
| 181 | 178 |
| 182 // <if expr="chromeos"> | 179 // <if expr="chromeos"> |
| 183 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); | 180 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); |
| 184 // </if> | 181 // </if> |
| 185 | 182 |
| 186 r.PASSWORDS = | 183 r.PASSWORDS = |
| 187 r.ADVANCED.createSection('/passwordsAndForms', 'passwordsAndForms'); | 184 r.ADVANCED.createSection('/passwordsAndForms', 'passwordsAndForms'); |
| 188 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); | 185 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); |
| 189 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/passwords'); | 186 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/passwords'); |
| 190 | 187 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 getRouteForPath: getRouteForPath, | 397 getRouteForPath: getRouteForPath, |
| 401 initializeRouteFromUrl: initializeRouteFromUrl, | 398 initializeRouteFromUrl: initializeRouteFromUrl, |
| 402 resetRouteForTesting: resetRouteForTesting, | 399 resetRouteForTesting: resetRouteForTesting, |
| 403 getCurrentRoute: getCurrentRoute, | 400 getCurrentRoute: getCurrentRoute, |
| 404 getQueryParameters: getQueryParameters, | 401 getQueryParameters: getQueryParameters, |
| 405 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 402 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
| 406 navigateTo: navigateTo, | 403 navigateTo: navigateTo, |
| 407 navigateToPreviousRoute: navigateToPreviousRoute, | 404 navigateToPreviousRoute: navigateToPreviousRoute, |
| 408 }; | 405 }; |
| 409 }); | 406 }); |
| OLD | NEW |