| 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 Polymer element wrapping cr-network-list including the | 6 * @fileoverview Polymer element wrapping cr-network-list including the |
| 7 * networkingPrivate calls to populate it. | 7 * networkingPrivate calls to populate it. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'cr-network-select', | 11 is: 'cr-network-select', |
| 12 | 12 |
| 13 behaviors: [I18nBehavior], | |
| 14 | |
| 15 properties: { | 13 properties: { |
| 16 /** | 14 /** |
| 17 * Show all buttons in list items. | 15 * Show all buttons in list items. |
| 18 */ | 16 */ |
| 19 showButtons: { | 17 showButtons: { |
| 20 type: Boolean, | 18 type: Boolean, |
| 21 value: false, | 19 value: false, |
| 22 reflectToAttribute: true, | 20 reflectToAttribute: true, |
| 23 }, | 21 }, |
| 24 | 22 |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 if (state.ConnectionState != CrOnc.ConnectionState.NOT_CONNECTED) | 133 if (state.ConnectionState != CrOnc.ConnectionState.NOT_CONNECTED) |
| 136 return; | 134 return; |
| 137 | 135 |
| 138 chrome.networkingPrivate.startConnect(state.GUID, function() { | 136 chrome.networkingPrivate.startConnect(state.GUID, function() { |
| 139 var lastError = chrome.runtime.lastError; | 137 var lastError = chrome.runtime.lastError; |
| 140 if (lastError && lastError != 'connecting') | 138 if (lastError && lastError != 'connecting') |
| 141 console.error('networkingPrivate.startConnect error: ' + lastError); | 139 console.error('networkingPrivate.startConnect error: ' + lastError); |
| 142 }); | 140 }); |
| 143 }, | 141 }, |
| 144 }); | 142 }); |
| OLD | NEW |