Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(625)

Side by Side Diff: components/arc/common/net.mojom

Issue 1798293002: ARC: Implement SetWifiEnabledState API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Made SetWifiEnabled return a bool status. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/arc/net/arc_net_host_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 };
OLDNEW
« no previous file with comments | « no previous file | components/arc/net/arc_net_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698