OLD | NEW |
1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2013 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 | 5 |
6 /* From extensions/dev/ppb_events_dev.idl modified Sun Mar 10 10:37:48 2013. */ | 6 /* From extensions/dev/ppb_ext_events_dev.idl, |
| 7 * modified Mon Mar 18 17:18:20 2013. |
| 8 */ |
7 | 9 |
8 #ifndef PPAPI_C_EXTENSIONS_DEV_PPB_EVENTS_DEV_H_ | 10 #ifndef PPAPI_C_EXTENSIONS_DEV_PPB_EXT_EVENTS_DEV_H_ |
9 #define PPAPI_C_EXTENSIONS_DEV_PPB_EVENTS_DEV_H_ | 11 #define PPAPI_C_EXTENSIONS_DEV_PPB_EXT_EVENTS_DEV_H_ |
10 | 12 |
11 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
12 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
13 #include "ppapi/c/pp_stdint.h" | 15 #include "ppapi/c/pp_stdint.h" |
14 | 16 |
15 #define PPB_EXT_EVENTS_DEV_INTERFACE_0_1 "PPB_Ext_Events(Dev);0.1" | 17 #define PPB_EXT_EVENTS_DEV_INTERFACE_0_1 "PPB_Ext_Events(Dev);0.1" |
16 #define PPB_EXT_EVENTS_DEV_INTERFACE PPB_EXT_EVENTS_DEV_INTERFACE_0_1 | 18 #define PPB_EXT_EVENTS_DEV_INTERFACE PPB_EXT_EVENTS_DEV_INTERFACE_0_1 |
17 | 19 |
18 /** | 20 /** |
19 * @file | 21 * @file |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 PP_INLINE struct PP_Ext_EventListener PP_Ext_MakeEventListener( | 109 PP_INLINE struct PP_Ext_EventListener PP_Ext_MakeEventListener( |
108 const char* event_name, | 110 const char* event_name, |
109 PP_Ext_GenericFuncType func, | 111 PP_Ext_GenericFuncType func, |
110 void* user_data) { | 112 void* user_data) { |
111 struct PP_Ext_EventListener listener; | 113 struct PP_Ext_EventListener listener; |
112 listener.event_name = event_name; | 114 listener.event_name = event_name; |
113 listener.func = func; | 115 listener.func = func; |
114 listener.user_data = user_data; | 116 listener.user_data = user_data; |
115 return listener; | 117 return listener; |
116 } | 118 } |
117 #endif /* PPAPI_C_EXTENSIONS_DEV_PPB_EVENTS_DEV_H_ */ | 119 #endif /* PPAPI_C_EXTENSIONS_DEV_PPB_EXT_EVENTS_DEV_H_ */ |
118 | 120 |
OLD | NEW |