| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // Network status constants. | 6 // Network status constants. |
| 7 const StatusConnected = 'connected'; | 7 const StatusConnected = 'connected'; |
| 8 const StatusDisconnected = 'disconnected'; | 8 const StatusDisconnected = 'disconnected'; |
| 9 const StatusConnecting = 'connecting'; | 9 const StatusConnecting = 'connecting'; |
| 10 const StatusError = 'error'; | 10 const StatusError = 'error'; |
| 11 | 11 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 22 ctx.lineJoin = 'round'; | 22 ctx.lineJoin = 'round'; |
| 23 | 23 |
| 24 ctx.strokeStyle = '#4e73c7'; | 24 ctx.strokeStyle = '#4e73c7'; |
| 25 ctx.beginPath(); | 25 ctx.beginPath(); |
| 26 ctx.moveTo(lineWidth / 2, r - lineWidth / 2); | 26 ctx.moveTo(lineWidth / 2, r - lineWidth / 2); |
| 27 ctx.arc(r, r, r - lineWidth / 2, Math.PI, Math.PI * 3 / 2); | 27 ctx.arc(r, r, r - lineWidth / 2, Math.PI, Math.PI * 3 / 2); |
| 28 ctx.stroke(); | 28 ctx.stroke(); |
| 29 })(); | 29 })(); |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Sends "connect" using the 'action' DOMUI message. | 32 * Sends "connect" using the 'action' WebUI message. |
| 33 */ | 33 */ |
| 34 function sendConnect(index, passphrase, identity, auto_connect) { | 34 function sendConnect(index, passphrase, identity, auto_connect) { |
| 35 chrome.send('action', | 35 chrome.send('action', |
| 36 ['connect', | 36 ['connect', |
| 37 String(index), | 37 String(index), |
| 38 passphrase, | 38 passphrase, |
| 39 identity, | 39 identity, |
| 40 auto_connect ? '1' : '0']); | 40 auto_connect ? '1' : '0']); |
| 41 } | 41 } |
| 42 | 42 |
| (...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 event.target == item.autoConnectCheckbox.nextElementSibling || | 352 event.target == item.autoConnectCheckbox.nextElementSibling || |
| 353 event.target == item.ssidEdit || | 353 event.target == item.ssidEdit || |
| 354 event.target == item.passwordEdit) { | 354 event.target == item.passwordEdit) { |
| 355 return; | 355 return; |
| 356 } | 356 } |
| 357 } | 357 } |
| 358 | 358 |
| 359 Menu.prototype.onClick_.call(this, event, item); | 359 Menu.prototype.onClick_.call(this, event, item); |
| 360 }, | 360 }, |
| 361 }; | 361 }; |
| OLD | NEW |