| 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); | 187 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); |
| 188 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); | 188 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); |
| 189 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = | 189 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = |
| 190 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); | 190 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); |
| 191 r.SITE_SETTINGS_MIDI_DEVICES = r.SITE_SETTINGS.createChild('midiDevices'); | 191 r.SITE_SETTINGS_MIDI_DEVICES = r.SITE_SETTINGS.createChild('midiDevices'); |
| 192 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); | 192 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); |
| 193 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); | 193 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); |
| 194 r.SITE_SETTINGS_PDF_DOCUMENTS = r.SITE_SETTINGS.createChild('pdfDocuments'); | 194 r.SITE_SETTINGS_PDF_DOCUMENTS = r.SITE_SETTINGS.createChild('pdfDocuments'); |
| 195 r.SITE_SETTINGS_PROTECTED_CONTENT = | 195 r.SITE_SETTINGS_PROTECTED_CONTENT = |
| 196 r.SITE_SETTINGS.createChild('protectedContent'); | 196 r.SITE_SETTINGS.createChild('protectedContent'); |
| 197 r.SITE_SETTINGS_SUBRESOURCE_FILTER = |
| 198 r.SITE_SETTINGS.createChild('subresourceFilter'); |
| 197 | 199 |
| 198 // <if expr="chromeos"> | 200 // <if expr="chromeos"> |
| 199 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); | 201 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); |
| 200 // </if> | 202 // </if> |
| 201 | 203 |
| 202 r.PASSWORDS = | 204 r.PASSWORDS = |
| 203 r.ADVANCED.createSection('/passwordsAndForms', 'passwordsAndForms'); | 205 r.ADVANCED.createSection('/passwordsAndForms', 'passwordsAndForms'); |
| 204 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); | 206 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); |
| 205 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/passwords'); | 207 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/passwords'); |
| 206 | 208 |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 getRouteForPath: getRouteForPath, | 423 getRouteForPath: getRouteForPath, |
| 422 initializeRouteFromUrl: initializeRouteFromUrl, | 424 initializeRouteFromUrl: initializeRouteFromUrl, |
| 423 resetRouteForTesting: resetRouteForTesting, | 425 resetRouteForTesting: resetRouteForTesting, |
| 424 getCurrentRoute: getCurrentRoute, | 426 getCurrentRoute: getCurrentRoute, |
| 425 getQueryParameters: getQueryParameters, | 427 getQueryParameters: getQueryParameters, |
| 426 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 428 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
| 427 navigateTo: navigateTo, | 429 navigateTo: navigateTo, |
| 428 navigateToPreviousRoute: navigateToPreviousRoute, | 430 navigateToPreviousRoute: navigateToPreviousRoute, |
| 429 }; | 431 }; |
| 430 }); | 432 }); |
| OLD | NEW |