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

Side by Side Diff: mojo/public/interfaces/bindings/tests/sample_service.mojom

Issue 262633005: Adding attributes to module and struct in mojom. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix annotations Created 6 years, 7 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 import "sample_import.mojom" 5 import "sample_import.mojom"
6 import "sample_import2.mojom" 6 import "sample_import2.mojom"
7 7
8 [JavaPackage="org.chromium.mojo.bindings.test"]
8 module sample { 9 module sample {
9 10
10 struct Bar { 11 struct Bar {
11 enum Type { 12 enum Type {
12 TYPE_VERTICAL = 1 << 0, 13 TYPE_VERTICAL = 1 << 0,
13 TYPE_HORIZONTAL = (1 << 1) + 0, 14 TYPE_HORIZONTAL = (1 << 1) + 0,
14 TYPE_BOTH = TYPE_VERTICAL | TYPE_HORIZONTAL, 15 TYPE_BOTH = TYPE_VERTICAL | TYPE_HORIZONTAL,
15 TYPE_INVALID 16 TYPE_INVALID
16 }; 17 };
17 uint8 alpha = (0x100 - 1) @0; 18 uint8 alpha = (0x100 - 1) @0;
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 DidFrobinate@0(int32 result @0); 67 DidFrobinate@0(int32 result @0);
67 }; 68 };
68 69
69 // This interface is referenced above where it is defined. It also refers to 70 // This interface is referenced above where it is defined. It also refers to
70 // itself from a method. 71 // itself from a method.
71 interface Port { 72 interface Port {
72 PostMessage@0(string message_text @0, Port[] extra_ports@1); 73 PostMessage@0(string message_text @0, Port[] extra_ports@1);
73 }; 74 };
74 75
75 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698