| 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 module arc.mojom; | 5 module arc.mojom; |
| 6 | 6 |
| 7 [Extensible] | 7 [Extensible] |
| 8 enum NetworkResult { | 8 enum NetworkResult { |
| 9 SUCCESS = 0, | 9 SUCCESS = 0, |
| 10 FAILURE = 1, | 10 FAILURE = 1, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 NOT_CONNECTED = 2, | 23 NOT_CONNECTED = 2, |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 struct VisibleNetworkDetails { | 26 struct VisibleNetworkDetails { |
| 27 int32 frequency; | 27 int32 frequency; |
| 28 int32 signal_strength; | 28 int32 signal_strength; |
| 29 string bssid; | 29 string bssid; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 struct ConfiguredNetworkDetails { | 32 struct ConfiguredNetworkDetails { |
| 33 string passphrase; | 33 string? passphrase; |
| 34 bool autoconnect; | 34 bool autoconnect; |
| 35 }; | 35 }; |
| 36 | 36 |
| 37 union NetworkDetails { | 37 union NetworkDetails { |
| 38 VisibleNetworkDetails visible; | 38 VisibleNetworkDetails visible; |
| 39 ConfiguredNetworkDetails configured; | 39 ConfiguredNetworkDetails configured; |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 struct WifiConfiguration { | 42 struct WifiConfiguration { |
| 43 // These correspond to ONC properties returned by | 43 // These correspond to ONC properties returned by |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 [MinVersion=4] StartDisconnect@8(string guid) => (NetworkResult status); | 104 [MinVersion=4] StartDisconnect@8(string guid) => (NetworkResult status); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 interface NetInstance { | 107 interface NetInstance { |
| 108 // Establishes full-duplex communication with the host. | 108 // Establishes full-duplex communication with the host. |
| 109 Init@0(NetHost host_ptr); | 109 Init@0(NetHost host_ptr); |
| 110 | 110 |
| 111 // Notifies the instance of a WiFI AP scan being completed. | 111 // Notifies the instance of a WiFI AP scan being completed. |
| 112 [MinVersion=1] ScanCompleted@1(); | 112 [MinVersion=1] ScanCompleted@1(); |
| 113 }; | 113 }; |
| OLD | NEW |