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

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

Issue 133843004: Revert 244233 "Add support for using expressions as enum values." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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
« no previous file with comments | « trunk/src/mojo/public/bindings/parse/mojo_parser.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 << 0, 8 BAR_VERTICAL = 1,
9 BAR_HORIZONTAL = (1 << 1) + 0, 9 BAR_HORIZONTAL = 2,
10 BAR_BOTH = BAR_VERTICAL | BAR_HORIZONTAL,
11 BAR_INVALID 10 BAR_INVALID
12 }; 11 };
13 12
14 struct Bar { 13 struct Bar {
15 uint8 alpha @0; 14 uint8 alpha @0;
16 uint8 beta @1; 15 uint8 beta @1;
17 uint8 gamma @2; 16 uint8 gamma @2;
18 int32 type @3; 17 int32 type @3;
19 }; 18 };
20 19
(...skipping 21 matching lines...) Expand all
42 }; 41 };
43 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0; 42 void Frobinate(Foo foo @0, int32 baz @1, handle<message_pipe> port @2) @0;
44 }; 43 };
45 44
46 [Peer=Service] 45 [Peer=Service]
47 interface ServiceClient { 46 interface ServiceClient {
48 void DidFrobinate(int32 result @0) @0; 47 void DidFrobinate(int32 result @0) @0;
49 }; 48 };
50 49
51 } 50 }
OLDNEW
« no previous file with comments | « trunk/src/mojo/public/bindings/parse/mojo_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698