Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / mojo / public / java / bindings / src / org / chromium / mojo / bindings / Callbacks.java
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 // This file was generated using
6 //     mojo/tools/generate_java_callback_interfaces.py
7
8 package org.chromium.mojo.bindings;
9
10 /**
11  * Contains a generic interface for callbacks.
12  */
13 public interface Callbacks {
14
15     /**
16      * A generic callback.
17      */
18     interface Callback0 {
19         /**
20          * Call the callback.
21          */
22         public void call();
23     }
24
25     /**
26      * A generic 1-argument callback.
27      *
28      * @param <T1> the type of argument 1.
29      */
30     interface Callback1<T1> {
31         /**
32          * Call the callback.
33          */
34         public void call(T1 arg1);
35     }
36
37     /**
38      * A generic 2-argument callback.
39      *
40      * @param <T1> the type of argument 1.
41       * @param <T2> the type of argument 2.
42      */
43     interface Callback2<T1, T2> {
44         /**
45          * Call the callback.
46          */
47         public void call(T1 arg1, T2 arg2);
48     }
49
50     /**
51      * A generic 3-argument callback.
52      *
53      * @param <T1> the type of argument 1.
54       * @param <T2> the type of argument 2.
55       * @param <T3> the type of argument 3.
56      */
57     interface Callback3<T1, T2, T3> {
58         /**
59          * Call the callback.
60          */
61         public void call(T1 arg1, T2 arg2, T3 arg3);
62     }
63
64     /**
65      * A generic 4-argument callback.
66      *
67      * @param <T1> the type of argument 1.
68       * @param <T2> the type of argument 2.
69       * @param <T3> the type of argument 3.
70       * @param <T4> the type of argument 4.
71      */
72     interface Callback4<T1, T2, T3, T4> {
73         /**
74          * Call the callback.
75          */
76         public void call(T1 arg1, T2 arg2, T3 arg3, T4 arg4);
77     }
78
79     /**
80      * A generic 5-argument callback.
81      *
82      * @param <T1> the type of argument 1.
83       * @param <T2> the type of argument 2.
84       * @param <T3> the type of argument 3.
85       * @param <T4> the type of argument 4.
86       * @param <T5> the type of argument 5.
87      */
88     interface Callback5<T1, T2, T3, T4, T5> {
89         /**
90          * Call the callback.
91          */
92         public void call(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5);
93     }
94
95     /**
96      * A generic 6-argument callback.
97      *
98      * @param <T1> the type of argument 1.
99       * @param <T2> the type of argument 2.
100       * @param <T3> the type of argument 3.
101       * @param <T4> the type of argument 4.
102       * @param <T5> the type of argument 5.
103       * @param <T6> the type of argument 6.
104      */
105     interface Callback6<T1, T2, T3, T4, T5, T6> {
106         /**
107          * Call the callback.
108          */
109         public void call(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6);
110     }
111
112     /**
113      * A generic 7-argument callback.
114      *
115      * @param <T1> the type of argument 1.
116       * @param <T2> the type of argument 2.
117       * @param <T3> the type of argument 3.
118       * @param <T4> the type of argument 4.
119       * @param <T5> the type of argument 5.
120       * @param <T6> the type of argument 6.
121       * @param <T7> the type of argument 7.
122      */
123     interface Callback7<T1, T2, T3, T4, T5, T6, T7> {
124         /**
125          * Call the callback.
126          */
127         public void call(T1 arg1, T2 arg2, T3 arg3, T4 arg4, T5 arg5, T6 arg6, T7 arg7);
128     }
129
130 }