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; | 5 module arc; |
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 29 matching lines...) Expand all Loading... | |
40 | 40 |
41 // Sends a request to get enabled / disabled status of WiFi. | 41 // Sends a request to get enabled / disabled status of WiFi. |
42 GetWifiEnabledState@1() => (bool is_enabled); | 42 GetWifiEnabledState@1() => (bool is_enabled); |
43 | 43 |
44 // Sends a request to start scan of WiFi APs. | 44 // Sends a request to start scan of WiFi APs. |
45 [MinVersion=1] StartScan@2(); | 45 [MinVersion=1] StartScan@2(); |
46 | 46 |
47 // Sends a request to get configured or visible WiFi networks based on the | 47 // Sends a request to get configured or visible WiFi networks based on the |
48 // request type. | 48 // request type. |
49 [MinVersion=2] GetNetworks@3(GetNetworksRequestType type) => (NetworkData data ); | 49 [MinVersion=2] GetNetworks@3(GetNetworksRequestType type) => (NetworkData data ); |
50 | |
51 // Sends a request to enable or disable WiFi. | |
52 [MinVersion=3] SetWifiEnabledState@4(bool is_enabled) => (bool result); | |
hidehiko
2016/03/16 00:45:58
As |result| is not actually if "setting is succeed
| |
50 }; | 53 }; |
51 | 54 |
52 interface NetInstance { | 55 interface NetInstance { |
53 // Establishes full-duplex communication with the host. | 56 // Establishes full-duplex communication with the host. |
54 Init@0(NetHost host_ptr); | 57 Init@0(NetHost host_ptr); |
55 | 58 |
56 // Notifies the instance of a WiFI AP scan being completed. | 59 // Notifies the instance of a WiFI AP scan being completed. |
57 [MinVersion=1] ScanCompleted@1(); | 60 [MinVersion=1] ScanCompleted@1(); |
58 }; | 61 }; |
OLD | NEW |