OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef APP_GTK_SIGNAL_H_ | 5 #ifndef UI_BASE_GTK_GTK_SIGNAL_H_ |
6 #define APP_GTK_SIGNAL_H_ | 6 #define UI_BASE_GTK_GTK_SIGNAL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 typedef void* gpointer; | 9 typedef void* gpointer; |
10 typedef struct _GtkWidget GtkWidget; | 10 typedef struct _GtkWidget GtkWidget; |
11 | 11 |
12 // At the time of writing this, there were two common ways of binding our C++ | 12 // At the time of writing this, there were two common ways of binding our C++ |
13 // code to the gobject C system. We either defined a whole bunch of "static | 13 // code to the gobject C system. We either defined a whole bunch of "static |
14 // MethodThunk()" which just called nonstatic Method()s on a class (which hurt | 14 // MethodThunk()" which just called nonstatic Method()s on a class (which hurt |
15 // readability of the headers and signal connection code) OR we declared | 15 // readability of the headers and signal connection code) OR we declared |
16 // "static Method()" and passed in the current object as the gpointer (and hurt | 16 // "static Method()" and passed in the current object as the gpointer (and hurt |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 #define CHROMEGTK_CALLBACK_5(CLASS, RETURN, METHOD, ARG1, ARG2, ARG3, ARG4, \ | 107 #define CHROMEGTK_CALLBACK_5(CLASS, RETURN, METHOD, ARG1, ARG2, ARG3, ARG4, \ |
108 ARG5) \ | 108 ARG5) \ |
109 CHROMEG_CALLBACK_5(CLASS, RETURN, METHOD, GtkWidget*, ARG1, ARG2, ARG3, \ | 109 CHROMEG_CALLBACK_5(CLASS, RETURN, METHOD, GtkWidget*, ARG1, ARG2, ARG3, \ |
110 ARG4, ARG5); | 110 ARG4, ARG5); |
111 | 111 |
112 #define CHROMEGTK_CALLBACK_6(CLASS, RETURN, METHOD, ARG1, ARG2, ARG3, ARG4, \ | 112 #define CHROMEGTK_CALLBACK_6(CLASS, RETURN, METHOD, ARG1, ARG2, ARG3, ARG4, \ |
113 ARG5, ARG6) \ | 113 ARG5, ARG6) \ |
114 CHROMEG_CALLBACK_6(CLASS, RETURN, METHOD, GtkWidget*, ARG1, ARG2, ARG3, \ | 114 CHROMEG_CALLBACK_6(CLASS, RETURN, METHOD, GtkWidget*, ARG1, ARG2, ARG3, \ |
115 ARG4, ARG5, ARG6); | 115 ARG4, ARG5, ARG6); |
116 | 116 |
117 #endif // APP_GTK_SIGNAL_H_ | 117 #endif // UI_BASE_GTK_GTK_SIGNAL_H_ |
OLD | NEW |