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

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

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « components/arc/common/ime.mojom ('k') | components/arc/common/power.mojom » ('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=True]
7 enum NetworkResult { 8 enum NetworkResult {
8 SUCCESS = 0, 9 SUCCESS = 0,
9 FAILURE = 1, 10 FAILURE = 1,
10 }; 11 };
11 12
12 struct WifiConfiguration { 13 struct WifiConfiguration {
13 // These correspond to ONC properties returned by 14 // These correspond to ONC properties returned by
14 // chrome.networkingPrivate.getNetworks(). 15 // chrome.networkingPrivate.getNetworks().
15 // See components/onc/docs/onc_spec.html 16 // See components/onc/docs/onc_spec.html
16 string ssid; 17 string ssid;
(...skipping 11 matching lines...) Expand all
28 interface NetHost { 29 interface NetHost {
29 // Sends a request to get configured or visible WiFi networks based on the 30 // Sends a request to get configured or visible WiFi networks based on the
30 // |configured_only| and |visible_only| flags. 31 // |configured_only| and |visible_only| flags.
31 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data); 32 GetNetworks@0(bool configured_only, bool visible_only) => (NetworkData data);
32 }; 33 };
33 34
34 interface NetInstance { 35 interface NetInstance {
35 // Establishes full-duplex communication with the host. 36 // Establishes full-duplex communication with the host.
36 Init@0(NetHost host_ptr); 37 Init@0(NetHost host_ptr);
37 }; 38 };
OLDNEW
« no previous file with comments | « components/arc/common/ime.mojom ('k') | components/arc/common/power.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698