Lines Matching refs:RETURN
23 #define CHROMEG_CALLBACK_0(CLASS, RETURN, METHOD, SENDER) \
24 static RETURN METHOD ## Thunk(SENDER sender, gpointer userdata) { \
25 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender); \
28 RETURN METHOD(SENDER);
30 #define CHROMEG_CALLBACK_1(CLASS, RETURN, METHOD, SENDER, ARG1) \
31 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, \
33 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender, one); \
36 RETURN METHOD(SENDER, ARG1);
38 #define CHROMEG_CALLBACK_2(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2) \
39 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
41 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender, one, two); \
44 RETURN METHOD(SENDER, ARG1, ARG2);
46 #define CHROMEG_CALLBACK_3(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, ARG3) \
47 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
49 return reinterpret_cast<CLASS*>(userdata)-> \
53 RETURN METHOD(SENDER, ARG1, ARG2, ARG3);
55 #define CHROMEG_CALLBACK_4(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, ARG3, \
57 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
60 return reinterpret_cast<CLASS*>(userdata)-> \
64 RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4);
66 #define CHROMEG_CALLBACK_5(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, ARG3, \
68 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
71 return reinterpret_cast<CLASS*>(userdata)-> \
75 RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4, ARG5);
77 #define CHROMEG_CALLBACK_6(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, ARG3, \
79 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
82 return reinterpret_cast<CLASS*>(userdata)-> \
86 RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);
88 #define CHROMEG_VIRTUAL_CALLBACK_0(CLASS, RETURN, METHOD, SENDER) \
89 static RETURN METHOD ## Thunk(SENDER sender, gpointer userdata) { \
90 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender); \
93 virtual RETURN METHOD(SENDER);
95 #define CHROMEG_VIRTUAL_CALLBACK_1(CLASS, RETURN, METHOD, SENDER, ARG1) \
96 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, \
98 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender, one); \
101 virtual RETURN METHOD(SENDER, ARG1);
103 #define CHROMEG_VIRTUAL_CALLBACK_2(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2) \
104 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
106 return reinterpret_cast<CLASS*>(userdata)->METHOD(sender, one, two); \
109 virtual RETURN METHOD(SENDER, ARG1, ARG2);
111 #define CHROMEG_VIRTUAL_CALLBACK_3(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, \
113 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
115 return reinterpret_cast<CLASS*>(userdata)-> \
119 virtual RETURN METHOD(SENDER, ARG1, ARG2, ARG3);
121 #define CHROMEG_VIRTUAL_CALLBACK_4(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, \
123 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
126 return reinterpret_cast<CLASS*>(userdata)-> \
130 virtual RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4);
132 #define CHROMEG_VIRTUAL_CALLBACK_5(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, \
134 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
137 return reinterpret_cast<CLASS*>(userdata)-> \
141 virtual RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4, ARG5);
143 #define CHROMEG_VIRTUAL_CALLBACK_6(CLASS, RETURN, METHOD, SENDER, ARG1, ARG2, \
145 static RETURN METHOD ## Thunk(SENDER sender, ARG1 one, ARG2 two, \
148 return reinterpret_cast<CLASS*>(userdata)-> \
152 virtual RETURN METHOD(SENDER, ARG1, ARG2, ARG3, ARG4, ARG5, ARG6);