- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / common / extensions / api / test_presubmit / valid_idl_basics.idl
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
3 // found in the LICENSE file.
4
5 // Tests a valid IDL file.
6
7 namespace idl_basics {
8   enum EnumType {
9     name1,
10     name2
11   };
12
13   dictionary MyType1 {
14     DOMString a;
15   };
16
17   callback Callback1 = void();
18   callback Callback2 = void(long x);
19   callback Callback3 = void(MyType1 arg);
20   callback Callback4 = void(EnumType type);
21
22   interface Functions {
23     static void function1();
24     static void function2(long x);
25     static void function3(MyType1 arg);
26     static void function4(Callback1 cb);
27     static void function5(Callback2 cb);
28     static void function6(Callback3 cb);
29     static void function7(Callback4 cb);
30   };
31
32   interface Events {
33     static void onFoo1();
34     static void onFoo2(long x);
35     static void onFoo2(MyType1 arg);
36     static void onFoo3(EnumType type);
37   };
38 };