| Index: mojo/public/bindings/sample/sample_service.mojom
|
| diff --git a/mojo/public/bindings/sample/sample_service.mojom b/mojo/public/bindings/sample/sample_service.mojom
|
| index 134739aecacf95bddda76d0b096ac30a36d7e8f8..4251dd881a986c06f6a9d98cbace483792be8b68 100644
|
| --- a/mojo/public/bindings/sample/sample_service.mojom
|
| +++ b/mojo/public/bindings/sample/sample_service.mojom
|
| @@ -1,41 +1,37 @@
|
| -{
|
| - 'name': 'sample_service',
|
| - 'namespace': 'sample',
|
| - 'structs': [{
|
| - 'name': 'Bar',
|
| - 'fields': [
|
| - {'name': 'alpha', 'kind': 'u8', 'ordinal': 0},
|
| - {'name': 'beta', 'kind': 'u8', 'ordinal': 1},
|
| - {'name': 'gamma', 'kind': 'u8', 'ordinal': 2}]}, {
|
| - 'name': 'Foo',
|
| - 'fields': [
|
| - {'name': 'name', 'kind': 's', 'ordinal': 8},
|
| - {'name': 'x', 'kind': 'i32', 'ordinal': 0},
|
| - {'name': 'y', 'kind': 'i32', 'ordinal': 1},
|
| - {'name': 'a', 'kind': 'b', 'ordinal': 2},
|
| - {'name': 'b', 'kind': 'b', 'ordinal': 3},
|
| - {'name': 'c', 'kind': 'b', 'ordinal': 4},
|
| - {'name': 'bar', 'kind': 'x:Bar', 'ordinal': 5},
|
| - {'name': 'extra_bars', 'kind': 'a:x:Bar', 'ordinal': 7},
|
| - {'name': 'data', 'kind': 'a:u8', 'ordinal': 6},
|
| - {'name': 'files', 'kind': 'a:h', 'ordinal': 9}]}],
|
| - 'interfaces': [{
|
| - 'name': 'Service',
|
| - 'attributes':
|
| - {'Peer': 'ServiceClient'},
|
| - 'methods': [{
|
| - 'name': 'Frobinate',
|
| - 'ordinal': 0,
|
| - 'parameters': [
|
| - {'name': 'foo', 'kind': 'x:Foo', 'ordinal': 0},
|
| - {'name': 'baz', 'kind': 'b', 'ordinal': 1},
|
| - {'name': 'port', 'kind': 'h', 'ordinal': 2}]}]}, {
|
| - 'name': 'ServiceClient',
|
| - 'attributes':
|
| - {'Peer': 'Service'},
|
| - 'methods': [{
|
| - 'name': 'DidFrobinate',
|
| - 'ordinal': 0,
|
| - 'parameters': [
|
| - {'name': 'result', 'kind': 'i32', 'ordinal': 0}]}]}]
|
| +// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +module sample {
|
| +
|
| +struct Bar {
|
| + uint8 alpha @0;
|
| + uint8 beta @1;
|
| + uint8 gamma @2;
|
| +};
|
| +
|
| +[RequiredFields=7]
|
| +struct Foo {
|
| + string name @8;
|
| + int32 x @0;
|
| + int32 y @1;
|
| + bool a @2;
|
| + bool b @3;
|
| + bool c @4;
|
| + Bar bar @5;
|
| + Bar[] extra_bars @7;
|
| + uint8[] data @6;
|
| + handle[] files @9;
|
| +};
|
| +
|
| +[Peer=ServiceClient]
|
| +interface Service {
|
| + void Frobinate(Foo foo @0, bool baz @1, handle port @2) @0;
|
| +};
|
| +
|
| +[Peer=Service]
|
| +interface ServiceClient {
|
| + void DidFrobinate(int32 result @0) @0;
|
| +};
|
| +
|
| }
|
|
|