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

Side by Side Diff: mojo/public/bindings/sample/sample_service.mojom

Issue 99623010: Add support for enums within structs and interfaces to mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 sample { 5 module sample {
6 6
7 enum BarType { 7 enum BarType {
8 BAR_VERTICAL = 1, 8 BAR_VERTICAL = 1,
9 BAR_HORIZONTAL = 2, 9 BAR_HORIZONTAL = 2,
10 BAR_INVALID 10 BAR_INVALID
(...skipping 17 matching lines...) Expand all
28 Bar bar @5; 28 Bar bar @5;
29 Bar[] extra_bars @7; 29 Bar[] extra_bars @7;
30 uint8[] data @6; 30 uint8[] data @6;
31 handle<message_pipe> source @9; 31 handle<message_pipe> source @9;
32 handle<data_pipe_consumer>[] input_streams @10; 32 handle<data_pipe_consumer>[] input_streams @10;
33 handle<data_pipe_producer>[] output_streams @11; 33 handle<data_pipe_producer>[] output_streams @11;
34 }; 34 };
35 35
36 [Peer=ServiceClient] 36 [Peer=ServiceClient]
37 interface Service { 37 interface Service {
38 void Frobinate(Foo foo @0, bool baz @1, handle<message_pipe> port @2) @0; 38 enum BazOptions {
39 BAZ_REGULAR = 0,
40 BAZ_EXTRA
41 };
42 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0;
39 }; 43 };
40 44
41 [Peer=Service] 45 [Peer=Service]
42 interface ServiceClient { 46 interface ServiceClient {
43 void DidFrobinate(int32 result @0) @0; 47 void DidFrobinate(int32 result @0) @0;
44 }; 48 };
45 49
46 } 50 }
OLDNEW
« no previous file with comments | « mojo/public/bindings/parse/mojo_translate.py ('k') | mojo/public/bindings/sample/sample_service_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698