1 /*
2 
3 Boost Software License - Version 1.0 - August 17th, 2003
4 
5 Permission is hereby granted, free of charge, to any person or organization
6 obtaining a copy of the software and accompanying documentation covered by
7 this license (the "Software") to use, reproduce, display, distribute,
8 execute, and transmit the Software, and to prepare derivative works of the
9 Software, and to permit third-parties to whom the Software is furnished to
10 do so, all subject to the following:
11 
12 The copyright notices in the Software and this entire statement, including
13 the above license grant, this restriction and the following disclaimer,
14 must be included in all copies of the Software, in whole or in part, and
15 all derivative works of the Software, unless such copies or derivative
16 works are solely in the form of machine-executable object code generated by
17 a source language processor.
18 
19 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21 FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
22 SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
23 FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
24 ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
25 DEALINGS IN THE SOFTWARE.
26 
27 */
28 module derelict.cef.functions;
29 
30 private {
31     import core.stdc.stddef,
32            core.stdc.time;
33     import derelict.cef.types;
34 }
35 
36 extern( C ) @nogc nothrow {
37     // cef_logging_internal.h
38     alias da_cef_get_min_log_level = int function();
39     alias da_cef_get_vlog_level = int function( const( char )*, size_t );
40     alias da_cef_log = void function(const( char )*, int, int, const( char )* );
41     
42     // cef_string_list.h
43     alias da_cef_string_list_alloc = cef_string_list_t function();
44     alias da_cef_string_list_size = int function( cef_string_list_t );
45     alias da_cef_string_list_value = int function( cef_string_list_t,int,cef_string_t* );
46     alias da_cef_string_list_append = void function( cef_string_list_t,const( cef_string_t )* );
47     alias da_cef_string_list_clear = void function( cef_string_list_t );
48     alias da_cef_string_list_free = void function( cef_string_list_t );
49     alias da_cef_string_list_copy = cef_string_list_t function( cef_string_list_t );
50 
51     // cef_string_map.h
52     alias da_cef_string_map_alloc = cef_string_map_t function();
53     alias da_cef_string_map_size = int function( cef_string_map_t );
54     alias da_cef_string_map_find = int function( cef_string_map_t,const( cef_string_t )*,cef_string_t* );
55     alias da_cef_string_map_key = int function( cef_string_map_t,int,cef_string_t* );
56     alias da_cef_string_map_value = int function( cef_string_map_t,int,cef_string_t* );
57     alias da_cef_string_map_append = int function( cef_string_map_t,const( cef_string_t )*,const( cef_string_t )* );
58     alias da_cef_string_map_clear = void function( cef_string_map_t );
59     alias da_cef_string_map_free = void function( cef_string_map_t );
60 
61     // cef_string_multimap.h
62     alias da_cef_string_multimap_alloc = cef_string_multimap_t function();
63     alias da_cef_string_multimap_size = int function( cef_string_multimap_t );
64     alias da_cef_string_multimap_find_count = int function( cef_string_multimap_t,const( cef_string_t )* );
65     alias da_cef_string_multimap_enumerate = int function( cef_string_multimap_t,const( cef_string_t )*,int,cef_string_t* );
66     alias da_cef_string_multimap_key = int function( cef_string_multimap_t,int,cef_string_t* );
67     alias da_cef_string_multimap_value = int function( cef_string_multimap_t,int,cef_string_t* );
68     alias da_cef_string_multimap_append = int function( cef_string_multimap_t,const( cef_string_t )*,const( cef_string_t )* );
69     alias da_cef_string_multimap_clear = void function( cef_string_multimap_t );
70     alias da_cef_string_multimap_free = void function( cef_string_multimap_t );
71 
72     // cef_string_types.h
73     alias da_cef_string_wide_set = int function( const( wchar_t )*,size_t,cef_string_wide_t*,int );
74     alias da_cef_string_utf8_set = int function( const( char )*,size_t,cef_string_utf8_t*,int );
75     alias da_cef_string_utf16_set = int function( const( wchar )*,size_t,cef_string_utf16_t*,int );
76     alias da_cef_string_wide_clear = void function( cef_string_wide_t* );
77     alias da_cef_string_utf8_clear = void function( cef_string_utf8_t* );
78     alias da_cef_string_utf16_clear = void function( cef_string_utf16_t* );
79     alias da_cef_string_wide_cmp = void function( const( cef_string_wide_t )*,const( cef_string_wide_t )* );
80     alias da_cef_string_utf8_cmp = void function( const( cef_string_utf8_t )*,const( cef_string_utf8_t )* );
81     alias da_cef_string_utf16_cmp = void function( const( cef_string_utf16_t )*,const( cef_string_utf16_t )* );
82     alias da_cef_string_wide_to_utf8 = void function( const( wchar_t )*,size_t,cef_string_utf8_t* );
83     alias da_cef_string_utf8_to_wide = void function( const( char )*,size_t,cef_string_wide_t* );
84     alias da_cef_string_wide_to_utf16 = void function( const( wchar_t )*,size_t,cef_string_utf16_t* );
85     alias da_cef_string_utf16_to_wide = void function( const( wchar )*,size_t,cef_string_wide_t* );
86     alias da_cef_string_utf8_to_utf16 = void function( const( char )*,size_t,cef_string_utf16_t* );
87     alias da_cef_string_utf16_to_utf8 = void function( const( wchar )*,size_t,cef_string_utf8_t* );
88     alias da_cef_string_ascii_to_wide = void function( const( char )*,size_t,cef_string_wide_t* );
89     alias da_cef_string_ascii_to_utf16 = void function( const( char )*,size_t,cef_string_utf16_t* );
90     alias da_cef_string_userfree_wide_alloc = cef_string_userfree_wide_t function();
91     alias da_cef_string_userfree_utf8_alloc = cef_string_userfree_utf8_t function();
92     alias da_cef_string_userfree_utf16_alloc = cef_string_userfree_utf16_t function();
93     alias da_cef_string_userfree_wide_free = void function( cef_string_userfree_wide_t );
94     alias da_cef_string_userfree_utf8_free = void function( cef_string_userfree_utf8_t );
95     alias da_cef_string_userfree_utf16_free = void function( cef_string_userfree_utf16_t );
96     alias da_cef_string_utf16_to_lower = int function( const( wchar )*, size_t, cef_string_utf16_t*);
97     alias da_cef_string_utf16_to_upper = int function( const( wchar )*, size_t, cef_string_utf16_t* );
98 
99     int cef_string_wide_copy(wchar_t* src, size_t srclen, cef_string_wide_t* output ) {
100         return cef_string_wide_set( src, srclen, output, 1 );
101     }
102 
103     int cef_string_utf8_copy(char* src, size_t srclen, cef_string_utf8_t* output ) {
104         return cef_string_utf8_set( src, srclen, output, 1 );
105     }
106 
107     int cef_string_utf16_copy(wchar* src, size_t srclen, cef_string_utf16_t* output ) {
108         return cef_string_utf16_set( src, srclen, output, 1 );
109     }
110 
111     static if( CEF_STRING_TYPE_WIDE ) {
112         alias cef_string_set = cef_string_wide_set;
113         alias cef_string_copy = cef_string_wide_copy;
114         alias cef_string_clear = cef_string_wide_clear;
115         alias cef_string_userfree_alloc = cef_string_userfree_wide_alloc;
116         alias cef_string_userfree_free = cef_string_userfree_wide_free;
117         alias cef_string_from_ascii = cef_string_ascii_to_wide;
118         alias cef_string_to_utf8 = cef_string_wide_to_utf8;
119         alias cef_string_from_utf8 = cef_string_utf8_to_wide;
120         alias cef_string_to_utf16 = cef_string_wide_to_utf16;
121         alias cef_string_from_utf16 = cef_string_utf16_to_wide;
122         alias cef_string_to_wide = cef_string_wide_copy;
123         alias cef_string_from_wide = cef_string_wide_copy;
124     } else static if( CEF_STRING_TYPE_UTF8 ) {
125         alias cef_string_set = cef_string_utf8_set;
126         alias cef_string_copy = cef_string_utf8_copy;
127         alias cef_string_clear = cef_string_utf8_clear;
128         alias cef_string_userfree_alloc = cef_string_userfree_utf8_alloc;
129         alias cef_string_userfree_free = cef_string_userfree_utf8_free;
130         alias cef_string_from_ascii = cef_string_utf8_copy;
131         alias cef_string_to_utf8 = cef_string_utf8_copy;
132         alias cef_string_from_utf8 = cef_string_utf8_copy;
133         alias cef_string_to_utf16 = cef_string_utf8_to_utf16;
134         alias cef_string_from_utf16 = cef_string_utf16_to_utf8;
135         alias cef_string_to_wide = cef_string_utf8_to_wide;
136         alias cef_string_from_wide = cef_string_wide_to_utf8;
137     } else {
138         alias cef_string_set = cef_string_utf16_set;
139         alias cef_string_copy = cef_string_utf16_copy;
140         alias cef_string_clear = cef_string_utf16_clear;
141         alias cef_string_userfree_alloc = cef_string_userfree_utf16_alloc;
142         alias cef_string_userfree_free = cef_string_userfree_utf16_free;
143         alias cef_string_from_ascii = cef_string_ascii_to_utf16;
144         alias cef_string_to_utf8 = cef_string_utf16_to_utf8;
145         alias cef_string_from_utf8 = cef_string_utf8_to_utf16;
146         alias cef_string_to_utf16 = cef_string_utf16_copy;
147         alias cef_string_from_utf16 = cef_string_utf16_copy;
148         alias cef_string_to_wide = cef_string_utf16_to_wide;
149         alias cef_string_from_wide = cef_string_wide_to_utf16;
150     }
151 
152     // cef_thread_internal.h
153     alias da_cef_get_current_platform_thread_id = cef_platform_thread_id_t function();
154     alias da_cef_get_current_platform_thread_handle = cef_platform_thread_handle_t function();
155 
156     // cef_time.h
157     alias da_cef_time_to_timet = int function( const( cef_time_t )*,time_t* );
158     alias da_cef_time_from_timet = int function( time_t,cef_time_t* );
159     alias da_cef_time_to_doublet = int function( const( cef_time_t )*,double* );
160     alias da_cef_time_from_doublet = int function( double,cef_time_t* );
161     alias da_cef_time_now = int function( cef_time_t* );
162     alias da_cef_time_delta = int function( const( cef_time_t )*,const( cef_time_t )*,long* );
163 
164     // cef_trace_event_internal.h
165     alias da_cef_trace_event_instant = void function(const( char )*, const( char )*, const( char )*, ulong, const( char )*, ulong, int );
166     alias da_cef_trace_event_begin = void function(const( char )*, const( char )*, const( char )*, ulong, const( char )*, ulong, int );
167     alias da_cef_trace_event_end = void function(const( char )*, const( char )*, const( char )*, ulong, const( char )*, ulong, int );
168     alias da_cef_trace_counter = void function(const( char )*, const( char )*, const( char )*, ulong, const( char )*, ulong, int );
169     alias da_cef_trace_counter_id = void function(const( char )*, const( char )*, ulong, const( char )*, ulong, const( char )*, ulong, int);
170     alias da_cef_trace_event_async_begin = void function( const( char )*, const( char )*, ulong, const( char )*, ulong, const( char )*, ulong, int );
171     alias da_cef_trace_event_async_step_into = void function( const( char )*, const( char )*, ulong, ulong, const( char )*, ulong, int );
172     alias da_cef_trace_event_async_step_past = void function( const( char )*, const( char )*, ulong, ulong, const( char )*, ulong, int );
173     alias da_cef_trace_event_async_end = void function( const( char )*, const( char )*, ulong, const( char )*, ulong, const( char* ), ulong, int );
174 
175     // cef_app_capi.h
176     alias da_cef_execute_process = int function( const( cef_main_args_t )*,cef_app_t*,void* );
177     alias da_cef_initialize = int function( const( cef_main_args_t )*,cef_settings_t*,cef_app_t*,void* );
178     alias da_cef_shutdown = void function();
179     alias da_cef_do_message_loop_work = void function();
180     alias da_cef_run_message_loop = void function();
181     alias da_cef_quit_message_loop = void function();
182     alias da_cef_set_osmodal_loop = void function( int );
183     alias da_cef_enable_highdpi_support = void function();
184 
185     // cef_browser_capi.h
186     alias da_cef_browser_host_create_browser = int function( const( cef_window_info_t)*,cef_client_t*,const( cef_string_t )*,const( cef_browser_settings_t )*,cef_request_context_t* );
187     alias da_cef_browser_host_create_browser_sync = cef_browser_t* function( const( cef_window_info_t )*,cef_client_t*,const( cef_string_t )*,const( cef_browser_settings_t )*,cef_request_context_t* );
188 
189     // cef_command_line_capi.h
190     alias da_cef_command_line_create = cef_command_line_t* function();
191     alias da_cef_command_line_get_global = cef_command_line_t* function();
192 
193     // cef_cookie_capi.h
194     alias da_cef_cookie_manager_get_global_manager = cef_cookie_manager_t* function();
195     alias da_cef_cookie_manager_create_manager = cef_cookie_manager_t* function( const( cef_string_t )*,int );
196 
197     // cef_crash_util_capi.h
198     alias da_cef_crash_reporting_enabled = int function();
199     alias da_cef_set_crash_key_value = void function( const( cef_string_t )*, const( cef_string_t )* );
200 
201     // cef_drag_data_capi.h
202     alias da_cef_drag_data_create = cef_drag_data_t* function();
203 
204     // cef_file_util_capi.h
205     alias da_cef_create_directory = int function(const( cef_string_t )* );
206     alias da_cef_get_temp_directory = int function(cef_string_t* );
207     alias da_cef_create_new_temp_directory = int function(const( cef_string_t )* , cef_string_t* );
208     alias da_cef_create_temp_directory_in_directory = int function( const( cef_string_t )* , const( cef_string_t )* , cef_string_t* );
209     alias da_cef_directory_exists = int function(const( cef_string_t )* );
210     alias da_cef_delete_file = int function(const( cef_string_t )* , int );
211     alias da_cef_zip_directory = int function(const( cef_string_t )* , const( cef_string_t )* , int );
212     alias da_cef_load_crlsets_file = void function(const( cef_string_t )* );
213 
214     // cef_image_capi.h
215     alias da_cef_image_create = cef_image_t* function();
216 
217     // cef_menu_model_capi.h
218     alias da_cef_menu_model_create = cef_menu_model_t* function( cef_menu_model_delegate_t* );
219 
220     // cef_origin_whitelist_capi.h
221     alias da_cef_add_cross_origin_whitelist_entry = int function( const( cef_string_t )*,const( cef_string_t )*,const( cef_string_t )*, int );
222     alias da_cef_remove_cross_origin_whitelist_entry = int function( const( cef_string_t )*,const( cef_string_t )*,const( cef_string_t )*,int );
223     alias da_cef_clear_cross_origin_whitelist = int function();
224 
225     // cef_parser_capi.h
226     alias da_cef_parse_url = int function( const( cef_string_t )*, cef_urlparts_t* );
227     alias da_cef_create_url = int function( const( cef_urlparts_t )*, cef_string_t* );
228     alias da_cef_format_url_for_security_display = cef_string_userfree_t function( const( cef_string_t )* );
229     alias da_cef_get_mime_type = cef_string_userfree_t function( const( cef_string_t )* );
230     alias da_cef_get_extensions_for_mime_type = void function( const( cef_string_t )*, cef_string_list_t );
231     alias da_cef_base64encode = cef_string_userfree_t function( const( void )*, size_t );
232     alias da_cef_base64decode = cef_binary_value_t* function( const( cef_string_t )* );
233     alias da_cef_uriencode = cef_string_userfree_t function( const( cef_string_t )*, int );
234     alias da_cef_uridecode =  cef_string_userfree_t function( const( cef_string_t )*, int, cef_uri_unescape_rule_t );
235     alias da_cef_parse_json = cef_value_t* function( const( cef_string_t )*, cef_json_parser_options_t );
236     alias da_cef_parse_jsonand_return_error = cef_value_t* function( const( cef_string_t )*, cef_json_parser_options_t, cef_json_parser_error_t*, cef_string_t* );
237     alias da_cef_write_json = cef_string_userfree_t function( cef_value_t*, cef_json_writer_options_t );
238 
239     // cef_path_util_capi.h
240     alias da_cef_get_path = int function( cef_path_key_t,cef_string_t* );
241 
242     // cef_print_settings_capi.h
243     alias da_cef_print_settings_create = cef_print_settings_t* function();
244 
245     // cef_process_message_capi.h
246     alias da_cef_process_message_create = cef_process_message_t* function( const( cef_string_t )* );
247 
248     // cef_process_util_capi.h
249     alias da_cef_launch_process = int function( cef_command_line_t* );
250 
251     // cef_request_capi.h
252     alias da_cef_request_create = cef_request_t* function();
253     alias da_cef_post_data_create = cef_post_data_t* function();
254     alias da_cef_post_data_element_create = cef_post_data_element_t* function();
255 
256     // cef_request_context_capi.h
257     alias da_cef_request_context_get_global_context = cef_request_context_t* function();
258     alias da_cef_request_context_create_context = cef_request_context_t* function( cef_request_context_handler_t* );
259     alias da_cef_create_context_shared = cef_request_context_t* function( cef_request_context_t*, cef_request_context_handler_t* );
260 
261     // cef_resource_bundle_capi.h
262     alias da_cef_resource_bundle_get_global = cef_resource_bundle_t* function();
263 
264     // cef_response_capi.h
265     alias da_cef_response_create = cef_response_t* function();
266 
267     // cef_scheme_capi.h
268     alias da_cef_register_scheme_handler_factory = int function( const( cef_string_t )*,const( cef_string_t )*,cef_scheme_handler_factory_t* );
269     alias da_cef_clear_scheme_handler_factories = int function();
270 
271     // cef_server_capi.h
272     alias da_cef_server_create = void function(const( cef_string_t )*, ushort, int, cef_server_handler_t* );
273 
274     // cef_ssl_info_capi.h
275     alias da_cef_is_cert_status_error = int function( cef_cert_status_t );
276     alias da_cef_is_cert_status_minor_error = int function( cef_cert_status_t );
277 
278     // cef_stream_capi.h
279     alias da_cef_stream_reader_create_for_file = cef_stream_reader_t* function( const( cef_string_t )* );
280     alias da_cef_stream_reader_create_for_data = cef_stream_reader_t* function( void*,size_t );
281     alias da_cef_stream_reader_create_for_handler = cef_stream_reader_t* function( cef_read_handler_t* );
282     alias da_cef_stream_writer_create_for_file = cef_stream_writer_t* function( const( cef_string_t )* );
283     alias da_cef_stream_writer_create_for_handler = cef_stream_writer_t* function( cef_write_handler_t* );
284 
285     // cef_task_capi.h
286     alias da_cef_task_runner_get_for_current_thread = cef_task_runner_t* function();
287     alias da_cef_task_runner_get_for_thread = cef_task_runner_t* function( cef_thread_id_t );
288     alias da_cef_currently_on = int function( cef_thread_id_t );
289     alias da_cef_post_task = int function( cef_thread_id_t,cef_task_t* );
290     alias da_cef_post_delayed_task = int function( cef_thread_id_t,cef_task_t*,int64 );
291 
292     // cef_thread_capi.h
293     alias da_cef_thread_create = cef_thread_t* function( const( cef_string_t )*, cef_thread_priority_t, cef_message_loop_type_t, int, cef_com_init_mode_t );
294 
295     // cef_trace_capi.h
296     alias da_cef_begin_tracing = int function( const( cef_string_t )* );
297     alias da_cef_end_tracing = int function( const( cef_string_t )*,cef_end_tracing_callback_t* );
298     alias da_cef_now_from_system_trace_time = int64 function();
299 
300     // cef_urlrequest_capi.h
301     alias da_cef_urlrequest_create = cef_urlrequest_t* function( cef_request_t*,cef_urlrequest_client_t* );
302 
303     // cef_v8_capi.h
304     alias da_cef_v8context_get_current_context = cef_v8context_t* function();
305     alias da_cef_v8context_get_entered_context = cef_v8context_t* function();
306     alias da_cef_v8context_in_context = int function();
307     alias da_cef_v8value_create_undefined = cef_v8value_t* function();
308     alias da_cef_v8value_create_null = cef_v8value_t* function();
309     alias da_cef_v8value_create_bool = cef_v8value_t* function( int );
310     alias da_cef_v8value_create_int = cef_v8value_t* function( int32 );
311     alias da_cef_v8value_create_uint = cef_v8value_t* function( uint32 );
312     alias da_cef_v8value_create_double = cef_v8value_t* function( double );
313     alias da_cef_v8value_create_date = cef_v8value_t* function( const( cef_time_t )* );
314     alias da_cef_v8value_create_string = cef_v8value_t* function( const( cef_string_t )* );
315     alias da_cef_v8value_create_object = cef_v8value_t* function( cef_v8accessor_t* );
316     alias da_cef_v8value_create_array = cef_v8value_t* function( int );
317     alias da_cef_v8value_create_array_buffer = cef_v8value_t* function( void*, size_t, cef_v8array_buffer_release_callback_t* );
318     alias da_cef_v8value_create_function = cef_v8value_t* function( const( cef_string_t )*,cef_v8handler_t* );
319     alias da_cef_v8stack_trace_get_current = cef_v8stack_trace_t* function( int );
320     alias da_cef_register_extension = int function( const( cef_string_t )*,const( cef_string_t )*,cef_v8handler_t*);
321 
322     // cef_values_capi.h
323     alias da_cef_value_create = cef_value_t* function();
324     alias da_cef_binary_value_create = cef_binary_value_t* function( const( void )*,size_t );
325     alias da_cef_dictionary_value_create = cef_dictionary_value_t* function();
326     alias da_cef_list_value_create = cef_list_value_t* function();
327 
328     // cef_waitable_event_capi.h
329     alias da_cef_waitable_event_create = cef_waitable_event_t* function( int, int );
330 
331     // cef_web_plugin_capi.h
332     alias da_cef_visit_web_plugin_info = void function( cef_web_plugin_info_visitor_t* );
333     alias da_cef_refresh_web_plugins = void function();
334     alias da_cef_unregister_internal_web_plugin = void function( const( cef_string_t )* );
335     alias da_cef_register_web_plugin_crash = void function( const( cef_string_t )* );
336     alias da_cef_is_web_plugin_unstable = void function( const( cef_string_t )*,cef_web_plugin_unstable_callback_t* );
337     alias da_cef_register_widevine_cdm = void function( const( cef_string_t )*, cef_register_cdm_callback_t* );
338 
339     // cef_xml_reader_capi.h
340     alias da_cef_xml_reader_create = cef_xml_reader_t* function( cef_stream_reader_t*,cef_xml_encoding_type_t,const( cef_string_t )* );
341 
342     // cef_zip_reader_capi.h
343     alias da_cef_zip_reader_create = cef_zip_reader_t* function( cef_stream_reader_t* );
344 
345     // test/cef_test_helpers_capi.h
346     alias da_cef_execute_java_script_with_user_gesture_for_tests = void function( cef_frame_t*, const( cef_string_t )* );
347 
348     // test/cef_translator_test_capi.h
349     alias da_cef_translator_test_create = cef_translator_test_t* function();
350     alias da_cef_translator_test_ref_ptr_library_create = cef_translator_test_ref_ptr_library_t* function( int );
351     alias da_cef_translator_test_ref_ptr_library_child_create = cef_translator_test_ref_ptr_library_child_t* function( int , int );
352     alias da_cef_translator_test_ref_ptr_library_child_child_create = cef_translator_test_ref_ptr_library_child_child_t* function( int, int, int );
353     alias da_cef_translator_test_scoped_library_create = cef_translator_test_scoped_library_t* function( int );
354     alias da_cef_translator_test_scoped_library_child_create = cef_translator_test_scoped_library_child_t* function( int, int );
355     alias da_cef_translator_test_scoped_library_child_child_create = cef_translator_test_scoped_library_child_child_t* function( int, int, int );
356 
357     // views/cef_browser_view_capi.h
358     alias da_cef_browser_view_create = cef_browser_view_t* function( cef_client_t*, const( cef_string_t ) *, const ( cef_browser_settings_t )*, cef_request_context_t*, cef_browser_view_delegate_t* );
359     alias da_cef_browser_view_get_for_browser = cef_browser_view_t* function( cef_browser_t* );
360 
361     // views/cef_display_capi.h
362     alias da_cef_display_get_primary = cef_display_t* function();
363     alias da_cef_display_get_nearest_point = cef_display_t* function( const( cef_point_t )*, int );
364     alias da_cef_display_get_matching_bounds = cef_display_t* function( const( cef_rect_t )*, int );
365     alias da_cef_display_get_count = size_t function();
366     alias da_cef_display_get_alls = void function( size_t*, cef_display_t** );
367 
368     // views/cef_label_button_capi.h
369     alias da_cef_label_button_create = cef_label_button_t* function( cef_button_delegate_t*, const( cef_string_t )*, int );
370 
371     // views/cef_menu_button_capi.h
372     alias da_cef_menu_button_create = cef_menu_button_t* function( cef_menu_button_delegate_t*, const( cef_string_t )*, int );
373 
374     // views/cef_panel_capi.h
375     alias da_cef_panel_create = cef_panel_t* function( cef_panel_delegate_t* );
376     
377     // views/cef_scroll_view_capi.h
378     alias da_cef_scroll_view_create = cef_scroll_view_t* function( cef_view_delegate_t* );
379     
380     // views/cef_scroll_view_capi.h
381     alias da_cef_textfield_create = cef_textfield_t* function( cef_textfield_delegate_t* );
382 
383     // views/cef_window_capi.h
384     alias da_cef_window_create_top_level = cef_window_t* function( cef_window_delegate_t* );
385 }
386 
387 __gshared {
388     da_cef_get_min_log_level cef_get_min_log_level;
389     da_cef_get_vlog_level cef_get_vlog_level;
390     da_cef_log cef_log;
391     da_cef_string_list_alloc cef_string_list_alloc;
392     da_cef_string_list_size cef_string_list_size;
393     da_cef_string_list_value cef_string_list_value;
394     da_cef_string_list_append cef_string_list_append;
395     da_cef_string_list_clear cef_string_list_clear;
396     da_cef_string_list_free cef_string_list_free;
397     da_cef_string_list_copy cef_string_list_copy;
398     da_cef_string_map_alloc cef_string_map_alloc;
399     da_cef_string_map_size cef_string_map_size;
400     da_cef_string_map_find cef_string_map_find;
401     da_cef_string_map_key cef_string_map_key;
402     da_cef_string_map_value cef_string_map_value;
403     da_cef_string_map_append cef_string_map_append;
404     da_cef_string_map_clear cef_string_map_clear;
405     da_cef_string_map_free cef_string_map_free;
406     da_cef_string_multimap_alloc cef_string_multimap_alloc;
407     da_cef_string_multimap_size cef_string_multimap_size;
408     da_cef_string_multimap_find_count cef_string_multimap_find_count;
409     da_cef_string_multimap_enumerate cef_string_multimap_enumerate;
410     da_cef_string_multimap_key cef_string_multimap_key;
411     da_cef_string_multimap_value cef_string_multimap_value;
412     da_cef_string_multimap_append cef_string_multimap_append;
413     da_cef_string_multimap_clear cef_string_multimap_clear;
414     da_cef_string_multimap_free cef_string_multimap_free;
415     da_cef_string_wide_set cef_string_wide_set;
416     da_cef_string_utf8_set cef_string_utf8_set;
417     da_cef_string_utf16_set cef_string_utf16_set;
418     da_cef_string_wide_clear cef_string_wide_clear;
419     da_cef_string_utf8_clear cef_string_utf8_clear;
420     da_cef_string_utf16_clear cef_string_utf16_clear;
421     da_cef_string_wide_cmp cef_string_wide_cmp;
422     da_cef_string_utf8_cmp cef_string_utf8_cmp;
423     da_cef_string_utf16_cmp cef_string_utf16_cmp;
424     da_cef_string_wide_to_utf8 cef_string_wide_to_utf8;
425     da_cef_string_utf8_to_wide cef_string_utf8_to_wide;
426     da_cef_string_wide_to_utf16 cef_string_wide_to_utf16;
427     da_cef_string_utf16_to_wide cef_string_utf16_to_wide;
428     da_cef_string_utf8_to_utf16 cef_string_utf8_to_utf16;
429     da_cef_string_utf16_to_utf8 cef_string_utf16_to_utf8;
430     da_cef_string_ascii_to_wide cef_string_ascii_to_wide;
431     da_cef_string_ascii_to_utf16 cef_string_ascii_to_utf16;
432     da_cef_string_userfree_wide_alloc cef_string_userfree_wide_alloc;
433     da_cef_string_userfree_utf8_alloc cef_string_userfree_utf8_alloc;
434     da_cef_string_userfree_utf16_alloc cef_string_userfree_utf16_alloc;
435     da_cef_string_userfree_wide_free cef_string_userfree_wide_free;
436     da_cef_string_userfree_utf8_free cef_string_userfree_utf8_free;
437     da_cef_string_userfree_utf16_free cef_string_userfree_utf16_free;
438     da_cef_string_utf16_to_lower cef_string_utf16_to_lower;
439     da_cef_string_utf16_to_upper cef_string_utf16_to_upper;
440     da_cef_get_current_platform_thread_id cef_get_current_platform_thread_id;
441     da_cef_get_current_platform_thread_handle cef_get_current_platform_thread_handle;
442     da_cef_time_to_timet cef_time_to_timet;
443     da_cef_time_from_timet cef_time_from_timet;
444     da_cef_time_to_doublet cef_time_to_doublet;
445     da_cef_time_from_doublet cef_time_from_doublet;
446     da_cef_time_now cef_time_now;
447     da_cef_time_delta cef_time_delta;
448     da_cef_trace_event_instant cef_trace_event_instant;
449     da_cef_trace_event_begin cef_trace_event_begin;
450     da_cef_trace_event_end cef_trace_event_end;
451     da_cef_trace_counter cef_trace_counter;
452     da_cef_trace_counter_id cef_trace_counter_id;
453     da_cef_trace_event_async_begin cef_trace_event_async_begin;
454     da_cef_trace_event_async_step_into cef_trace_event_async_step_into;
455     da_cef_trace_event_async_step_past cef_trace_event_async_step_past;
456     da_cef_trace_event_async_end cef_trace_event_async_end;
457     da_cef_execute_process cef_execute_process;
458     da_cef_initialize cef_initialize;
459     da_cef_shutdown cef_shutdown;
460     da_cef_do_message_loop_work cef_do_message_loop_work;
461     da_cef_run_message_loop cef_run_message_loop;
462     da_cef_quit_message_loop cef_quit_message_loop;
463     da_cef_set_osmodal_loop cef_set_osmodal_loop;
464     da_cef_enable_highdpi_support cef_enable_highdpi_support;
465     da_cef_browser_host_create_browser cef_browser_host_create_browser;
466     da_cef_browser_host_create_browser_sync cef_browser_host_create_browser_sync;
467     da_cef_command_line_create cef_command_line_create;
468     da_cef_command_line_get_global cef_command_line_get_global;
469     da_cef_cookie_manager_get_global_manager cef_cookie_manager_get_global_manager;
470     da_cef_cookie_manager_create_manager cef_cookie_manager_create_manager;
471     da_cef_crash_reporting_enabled cef_crash_reporting_enabled;
472     da_cef_set_crash_key_value cef_set_crash_key_value;
473     da_cef_drag_data_create cef_drag_data_create;
474     da_cef_create_directory cef_create_directory;
475     da_cef_get_temp_directory cef_get_temp_directory;
476     da_cef_create_new_temp_directory cef_create_new_temp_directory;
477     da_cef_create_temp_directory_in_directory cef_create_temp_directory_in_directory;
478     da_cef_directory_exists cef_directory_exists;
479     da_cef_delete_file cef_delete_file;
480     da_cef_zip_directory cef_zip_directory;
481     da_cef_load_crlsets_file cef_load_crlsets_file;
482     da_cef_image_create cef_image_create;
483     da_cef_menu_model_create cef_menu_model_create;
484     da_cef_add_cross_origin_whitelist_entry cef_add_cross_origin_whitelist_entry;
485     da_cef_remove_cross_origin_whitelist_entry cef_remove_cross_origin_whitelist_entry;
486     da_cef_clear_cross_origin_whitelist cef_clear_cross_origin_whitelist;
487     da_cef_parse_url cef_parse_url;
488     da_cef_create_url cef_create_url;
489     da_cef_format_url_for_security_display cef_format_url_for_security_display;
490     da_cef_get_mime_type cef_get_mime_type;
491     da_cef_get_extensions_for_mime_type cef_get_extensions_for_mime_type;
492     da_cef_base64encode cef_base64encode;
493     da_cef_base64decode cef_base64decode;
494     da_cef_uriencode cef_uriencode;
495     da_cef_uridecode cef_uridecode;
496     da_cef_parse_json cef_parse_json;
497     da_cef_parse_jsonand_return_error cef_parse_jsonand_return_error;
498     da_cef_write_json cef_write_json;
499     da_cef_get_path cef_get_path;
500     da_cef_print_settings_create cef_print_settings_create;
501     da_cef_process_message_create cef_process_message_create;
502     da_cef_launch_process cef_launch_process;
503     da_cef_request_create cef_request_create;
504     da_cef_post_data_create cef_post_data_create;
505     da_cef_post_data_element_create cef_post_data_element_create;
506     da_cef_request_context_get_global_context cef_request_context_get_global_context;
507     da_cef_request_context_create_context cef_request_context_create_context;
508     da_cef_create_context_shared cef_create_context_shared;
509     da_cef_resource_bundle_get_global cef_resource_bundle_get_global;
510     da_cef_response_create cef_response_create;
511     da_cef_register_scheme_handler_factory cef_register_scheme_handler_factory;
512     da_cef_clear_scheme_handler_factories cef_clear_scheme_handler_factories;
513     da_cef_server_create cef_server_create;
514     da_cef_is_cert_status_error cef_is_cert_status_error;
515     da_cef_is_cert_status_minor_error cef_is_cert_status_minor_error;
516     da_cef_stream_reader_create_for_file cef_stream_reader_create_for_file;
517     da_cef_stream_reader_create_for_data cef_stream_reader_create_for_data;
518     da_cef_stream_reader_create_for_handler cef_stream_reader_create_for_handler;
519     da_cef_stream_writer_create_for_file cef_stream_writer_create_for_file;
520     da_cef_stream_writer_create_for_handler cef_stream_writer_create_for_handler;
521     da_cef_task_runner_get_for_current_thread cef_task_runner_get_for_current_thread;
522     da_cef_task_runner_get_for_thread cef_task_runner_get_for_thread;
523     da_cef_currently_on cef_currently_on;
524     da_cef_post_task cef_post_task;
525     da_cef_post_delayed_task cef_post_delayed_task;
526     da_cef_thread_create cef_thread_create;
527     da_cef_begin_tracing cef_begin_tracing;
528     da_cef_end_tracing cef_end_tracing;
529     da_cef_now_from_system_trace_time cef_now_from_system_trace_time;
530     da_cef_urlrequest_create cef_urlrequest_create;
531     da_cef_v8context_get_current_context cef_v8context_get_current_context;
532     da_cef_v8context_get_entered_context cef_v8context_get_entered_context;
533     da_cef_v8context_in_context cef_v8context_in_context;
534     da_cef_v8value_create_undefined cef_v8value_create_undefined;
535     da_cef_v8value_create_null cef_v8value_create_null;
536     da_cef_v8value_create_bool cef_v8value_create_bool;
537     da_cef_v8value_create_int cef_v8value_create_int;
538     da_cef_v8value_create_uint cef_v8value_create_uint;
539     da_cef_v8value_create_double cef_v8value_create_double;
540     da_cef_v8value_create_date cef_v8value_create_date;
541     da_cef_v8value_create_string cef_v8value_create_string;
542     da_cef_v8value_create_object cef_v8value_create_object;
543     da_cef_v8value_create_array cef_v8value_create_array;
544     da_cef_v8value_create_array_buffer cef_v8value_create_array_buffer;    
545     da_cef_v8value_create_function cef_v8value_create_function;
546     da_cef_v8stack_trace_get_current cef_v8stack_trace_get_current;
547     da_cef_register_extension cef_register_extension;
548     da_cef_value_create cef_value_create;
549     da_cef_binary_value_create cef_binary_value_create;
550     da_cef_dictionary_value_create cef_dictionary_value_create;
551     da_cef_list_value_create cef_list_value_create;
552     da_cef_waitable_event_create cef_waitable_event_create;
553     da_cef_visit_web_plugin_info cef_visit_web_plugin_info;
554     da_cef_refresh_web_plugins cef_refresh_web_plugins;
555     da_cef_unregister_internal_web_plugin cef_unregister_internal_web_plugin;
556     da_cef_register_web_plugin_crash cef_register_web_plugin_crash;
557     da_cef_is_web_plugin_unstable cef_is_web_plugin_unstable;
558     da_cef_register_widevine_cdm cef_register_widevine_cdm;
559     da_cef_xml_reader_create cef_xml_reader_create;
560     da_cef_zip_reader_create cef_zip_reader_create;
561     da_cef_execute_java_script_with_user_gesture_for_tests cef_execute_java_script_with_user_gesture_for_tests;
562     da_cef_translator_test_create cef_translator_test_create;
563     da_cef_translator_test_ref_ptr_library_create cef_translator_test_ref_ptr_library_create;
564     da_cef_translator_test_ref_ptr_library_child_create cef_translator_test_ref_ptr_library_child_create;
565     da_cef_translator_test_ref_ptr_library_child_child_create cef_translator_test_ref_ptr_library_child_child_create;
566     da_cef_translator_test_scoped_library_create cef_translator_test_scoped_library_create;
567     da_cef_translator_test_scoped_library_child_create cef_translator_test_scoped_library_child_create;
568     da_cef_translator_test_scoped_library_child_child_create cef_translator_test_scoped_library_child_child_create;
569     da_cef_browser_view_create cef_browser_view_create;
570     da_cef_browser_view_get_for_browser cef_browser_view_get_for_browser;
571     da_cef_display_get_primary cef_display_get_primary;
572     da_cef_display_get_nearest_point cef_display_get_nearest_point;
573     da_cef_display_get_matching_bounds cef_display_get_matching_bounds;
574     da_cef_display_get_count cef_display_get_count;
575     da_cef_display_get_alls cef_display_get_alls;
576     da_cef_label_button_create cef_label_button_create;
577     da_cef_menu_button_create cef_menu_button_create;
578     da_cef_panel_create cef_panel_create;
579     da_cef_scroll_view_create cef_scroll_view_create;
580     da_cef_textfield_create cef_textfield_create;
581     da_cef_window_create_top_level cef_window_create_top_level;
582 }