Home | History | Annotate | Download | only in tests
      1 // Copyright 2014 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 [JavaPackage="org.chromium.mojo.bindings.test.mojom.sample",
      6  JavaConstantsClassName="InterfaceConstants",
      7  Foo = "hello world"]
      8 module sample;
      9 
     10 const uint64 kLong = 4405;
     11 
     12 enum Enum {
     13   VALUE
     14 };
     15 
     16 interface PingTest {
     17   Ping() => ();
     18 };
     19 
     20 interface Provider {
     21   EchoString(string a) => (string a);
     22   EchoStrings(string a, string b) => (string a, string b);
     23   EchoMessagePipeHandle(handle<message_pipe> a) => (handle<message_pipe> a);
     24   EchoEnum(Enum a) => (Enum a);
     25   EchoInt(int32 a) => (int32 a);
     26 };
     27 
     28 interface IntegerAccessor {
     29   GetInteger() => (int64 data, [MinVersion=2] Enum type);
     30   [MinVersion=1]
     31   SetInteger(int64 data, [MinVersion=3] Enum type);
     32 };
     33