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

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

Issue 53173008: Add mojom_bindings_generator.gypi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing gypi file Created 7 years, 1 month 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 { 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 'name': 'sample_service', 2 // Use of this source code is governed by a BSD-style license that can be
3 'namespace': 'sample', 3 // found in the LICENSE file.
4 'structs': [{ 4
5 'name': 'Bar', 5 // HYPOTHETICAL IDL:
6 'fields': [ 6
7 {'name': 'alpha', 'kind': 'u8', 'ordinal': 0}, 7 module sample {
8 {'name': 'beta', 'kind': 'u8', 'ordinal': 1}, 8
9 {'name': 'gamma', 'kind': 'u8', 'ordinal': 2}]}, { 9 struct Bar {
10 'name': 'Foo', 10 uint8 alpha @0;
11 'fields': [ 11 uint8 beta @1;
12 {'name': 'name', 'kind': 's', 'ordinal': 8}, 12 uint8 gamma @2;
13 {'name': 'x', 'kind': 'i32', 'ordinal': 0}, 13 };
14 {'name': 'y', 'kind': 'i32', 'ordinal': 1}, 14
15 {'name': 'a', 'kind': 'b', 'ordinal': 2}, 15 [RequiredFields=7]
16 {'name': 'b', 'kind': 'b', 'ordinal': 3}, 16 struct Foo {
17 {'name': 'c', 'kind': 'b', 'ordinal': 4}, 17 string name @8;
18 {'name': 'bar', 'kind': 'x:Bar', 'ordinal': 5}, 18 int32 x @0;
19 {'name': 'extra_bars', 'kind': 'a:x:Bar', 'ordinal': 7}, 19 int32 y @1;
20 {'name': 'data', 'kind': 'a:u8', 'ordinal': 6}, 20 bool a @2;
21 {'name': 'files', 'kind': 'a:h', 'ordinal': 9}]}], 21 bool b @3;
22 'interfaces': [{ 22 bool c @4;
23 'name': 'Service', 23 Bar bar @5;
24 'methods': [{ 24 Bar[] extra_bars @7;
25 'name': 'Frobinate', 25 uint8[] data @6;
26 'ordinal': 0, 26 handle[] files @9;
27 'parameters': [ 27 };
28 {'name': 'foo', 'kind': 'x:Foo', 'ordinal': 0}, 28
29 {'name': 'baz', 'kind': 'b', 'ordinal': 1}, 29 interface Service {
30 {'name': 'port', 'kind': 'h', 'ordinal': 2}]}]}] 30 void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0;
31 };
32
31 } 33 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698