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"] 8module sample; 9 10const uint64 kLong = 4405; 11 12enum Enum { 13 VALUE 14}; 15 16interface PingTest { 17 Ping() => (); 18}; 19 20interface 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 28interface IntegerAccessor { 29 GetInteger() => (int64 data, [MinVersion=2] Enum type); 30 [MinVersion=1] 31 SetInteger(int64 data, [MinVersion=3] Enum type); 32}; 33