| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @fileoverview | 6 * @fileoverview |
| 7 * 'Settings page for managing bluetooth properties and devices. This page | 7 * 'Settings page for managing bluetooth properties and devices. This page |
| 8 * just provodes a summary and link to the subpage. | 8 * just provodes a summary and link to the subpage. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 adapterState_: { | 63 adapterState_: { |
| 64 type: Object, | 64 type: Object, |
| 65 notify: true, | 65 notify: true, |
| 66 }, | 66 }, |
| 67 | 67 |
| 68 /** @private {!Map<string, string>} */ | 68 /** @private {!Map<string, string>} */ |
| 69 focusConfig_: { | 69 focusConfig_: { |
| 70 type: Object, | 70 type: Object, |
| 71 value: function() { | 71 value: function() { |
| 72 var map = new Map(); | 72 var map = new Map(); |
| 73 map.set( | 73 if (settings.routes.BLUETOOTH_DEVICES) { |
| 74 settings.Route.BLUETOOTH_DEVICES.path, | 74 map.set( |
| 75 '#bluetoothDevices .subpage-arrow'); | 75 settings.routes.BLUETOOTH_DEVICES.path, |
| 76 '#bluetoothDevices .subpage-arrow'); |
| 77 } |
| 76 return map; | 78 return map; |
| 77 }, | 79 }, |
| 78 }, | 80 }, |
| 79 | 81 |
| 80 /** | 82 /** |
| 81 * Interface for bluetooth calls. May be overriden by tests. | 83 * Interface for bluetooth calls. May be overriden by tests. |
| 82 * @type {Bluetooth} | 84 * @type {Bluetooth} |
| 83 * @private | 85 * @private |
| 84 */ | 86 */ |
| 85 bluetooth: { | 87 bluetooth: { |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 if (chrome.runtime.lastError) { | 207 if (chrome.runtime.lastError) { |
| 206 console.error( | 208 console.error( |
| 207 'Error enabling bluetooth: ' + | 209 'Error enabling bluetooth: ' + |
| 208 chrome.runtime.lastError.message); | 210 chrome.runtime.lastError.message); |
| 209 } | 211 } |
| 210 }); | 212 }); |
| 211 }, | 213 }, |
| 212 | 214 |
| 213 /** @private */ | 215 /** @private */ |
| 214 openSubpage_: function() { | 216 openSubpage_: function() { |
| 215 settings.navigateTo(settings.Route.BLUETOOTH_DEVICES); | 217 settings.navigateTo(settings.routes.BLUETOOTH_DEVICES); |
| 216 } | 218 } |
| 217 }); | 219 }); |
| OLD | NEW |