Chromium Code Reviews| 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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 159 r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications'); | 159 r.SITE_SETTINGS_NOTIFICATIONS = r.SITE_SETTINGS.createChild('notifications'); |
| 160 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); | 160 r.SITE_SETTINGS_FLASH = r.SITE_SETTINGS.createChild('flash'); |
| 161 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); | 161 r.SITE_SETTINGS_POPUPS = r.SITE_SETTINGS.createChild('popups'); |
| 162 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = | 162 r.SITE_SETTINGS_UNSANDBOXED_PLUGINS = |
| 163 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); | 163 r.SITE_SETTINGS.createChild('unsandboxedPlugins'); |
| 164 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); | 164 r.SITE_SETTINGS_USB_DEVICES = r.SITE_SETTINGS.createChild('usbDevices'); |
| 165 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); | 165 r.SITE_SETTINGS_ZOOM_LEVELS = r.SITE_SETTINGS.createChild('zoomLevels'); |
| 166 | 166 |
| 167 <if expr="chromeos"> | 167 <if expr="chromeos"> |
| 168 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); | 168 r.DATETIME = r.ADVANCED.createSection('/dateTime', 'dateTime'); |
| 169 | |
| 170 r.BLUETOOTH = r.ADVANCED.createSection('/bluetooth', 'bluetooth'); | 169 r.BLUETOOTH = r.ADVANCED.createSection('/bluetooth', 'bluetooth'); |
| 171 r.BLUETOOTH_ADD_DEVICE = r.BLUETOOTH.createChild('/bluetoothAddDevice'); | |
| 172 r.BLUETOOTH_PAIR_DEVICE = | |
| 173 r.BLUETOOTH_ADD_DEVICE.createChild('bluetoothPairDevice'); | |
| 174 </if> | 170 </if> |
| 175 | 171 |
| 176 r.PASSWORDS = r.ADVANCED.createSection('/passwords', 'passwordsAndForms'); | 172 r.PASSWORDS = r.ADVANCED.createSection('/passwords', 'passwordsAndForms'); |
| 177 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); | 173 r.AUTOFILL = r.PASSWORDS.createChild('/autofill'); |
| 178 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/managePasswords'); | 174 r.MANAGE_PASSWORDS = r.PASSWORDS.createChild('/managePasswords'); |
| 179 | 175 |
| 180 r.LANGUAGES = r.ADVANCED.createSection('/languages', 'languages'); | 176 r.LANGUAGES = r.ADVANCED.createSection('/languages', 'languages'); |
| 181 r.LANGUAGES_DETAIL = r.LANGUAGES.createChild('edit'); | |
|
michaelpg
2016/10/26 20:10:21
whoops, thanks!
| |
| 182 <if expr="chromeos"> | 177 <if expr="chromeos"> |
| 183 r.INPUT_METHODS = r.LANGUAGES.createChild('/inputMethods'); | 178 r.INPUT_METHODS = r.LANGUAGES.createChild('/inputMethods'); |
| 184 </if> | 179 </if> |
| 185 <if expr="not is_macosx"> | 180 <if expr="not is_macosx"> |
| 186 r.EDIT_DICTIONARY = r.LANGUAGES.createChild('/editDictionary'); | 181 r.EDIT_DICTIONARY = r.LANGUAGES.createChild('/editDictionary'); |
| 187 </if> | 182 </if> |
| 188 | 183 |
| 189 r.DOWNLOADS = r.ADVANCED.createSection('/downloadsDirectory', 'downloads'); | 184 r.DOWNLOADS = r.ADVANCED.createSection('/downloadsDirectory', 'downloads'); |
| 190 | 185 |
| 191 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); | 186 r.PRINTING = r.ADVANCED.createSection('/printing', 'printing'); |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 364 RouteObserverBehavior: RouteObserverBehavior, | 359 RouteObserverBehavior: RouteObserverBehavior, |
| 365 getRouteForPath: getRouteForPath, | 360 getRouteForPath: getRouteForPath, |
| 366 initializeRouteFromUrl: initializeRouteFromUrl, | 361 initializeRouteFromUrl: initializeRouteFromUrl, |
| 367 getCurrentRoute: getCurrentRoute, | 362 getCurrentRoute: getCurrentRoute, |
| 368 getQueryParameters: getQueryParameters, | 363 getQueryParameters: getQueryParameters, |
| 369 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, | 364 lastRouteChangeWasPopstate: lastRouteChangeWasPopstate, |
| 370 navigateTo: navigateTo, | 365 navigateTo: navigateTo, |
| 371 navigateToPreviousRoute: navigateToPreviousRoute, | 366 navigateToPreviousRoute: navigateToPreviousRoute, |
| 372 }; | 367 }; |
| 373 }); | 368 }); |
| OLD | NEW |