libcef.g.cs 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. //
  2. // DO NOT MODIFY! THIS IS AUTOGENERATED FILE!
  3. //
  4. namespace Xilium.CefGlue.Interop
  5. {
  6. using System;
  7. using System.Runtime.InteropServices;
  8. using System.Diagnostics.CodeAnalysis;
  9. internal static unsafe partial class libcef
  10. {
  11. // CefExecuteProcess
  12. [DllImport(libcef.DllName, EntryPoint = "cef_execute_process", CallingConvention = libcef.CEF_CALL)]
  13. public static extern int execute_process(cef_main_args_t* args, cef_app_t* application, void* windows_sandbox_info);
  14. // CefInitialize
  15. [DllImport(libcef.DllName, EntryPoint = "cef_initialize", CallingConvention = libcef.CEF_CALL)]
  16. public static extern int initialize(cef_main_args_t* args, cef_settings_t* settings, cef_app_t* application, void* windows_sandbox_info);
  17. // CefShutdown
  18. [DllImport(libcef.DllName, EntryPoint = "cef_shutdown", CallingConvention = libcef.CEF_CALL)]
  19. public static extern void shutdown();
  20. // CefDoMessageLoopWork
  21. [DllImport(libcef.DllName, EntryPoint = "cef_do_message_loop_work", CallingConvention = libcef.CEF_CALL)]
  22. public static extern void do_message_loop_work();
  23. // CefRunMessageLoop
  24. [DllImport(libcef.DllName, EntryPoint = "cef_run_message_loop", CallingConvention = libcef.CEF_CALL)]
  25. public static extern void run_message_loop();
  26. // CefQuitMessageLoop
  27. [DllImport(libcef.DllName, EntryPoint = "cef_quit_message_loop", CallingConvention = libcef.CEF_CALL)]
  28. public static extern void quit_message_loop();
  29. // CefSetOSModalLoop
  30. [DllImport(libcef.DllName, EntryPoint = "cef_set_osmodal_loop", CallingConvention = libcef.CEF_CALL)]
  31. public static extern void set_osmodal_loop(int osModalLoop);
  32. // CefEnableHighDPISupport
  33. [DllImport(libcef.DllName, EntryPoint = "cef_enable_highdpi_support", CallingConvention = libcef.CEF_CALL)]
  34. public static extern void enable_highdpi_support();
  35. // CefCrashReportingEnabled
  36. [DllImport(libcef.DllName, EntryPoint = "cef_crash_reporting_enabled", CallingConvention = libcef.CEF_CALL)]
  37. public static extern int crash_reporting_enabled();
  38. // CefSetCrashKeyValue
  39. [DllImport(libcef.DllName, EntryPoint = "cef_set_crash_key_value", CallingConvention = libcef.CEF_CALL)]
  40. public static extern void set_crash_key_value(cef_string_t* key, cef_string_t* value);
  41. // CefCreateDirectory
  42. [DllImport(libcef.DllName, EntryPoint = "cef_create_directory", CallingConvention = libcef.CEF_CALL)]
  43. public static extern int create_directory(cef_string_t* full_path);
  44. // CefGetTempDirectory
  45. [DllImport(libcef.DllName, EntryPoint = "cef_get_temp_directory", CallingConvention = libcef.CEF_CALL)]
  46. public static extern int get_temp_directory(cef_string_t* temp_dir);
  47. // CefCreateNewTempDirectory
  48. [DllImport(libcef.DllName, EntryPoint = "cef_create_new_temp_directory", CallingConvention = libcef.CEF_CALL)]
  49. public static extern int create_new_temp_directory(cef_string_t* prefix, cef_string_t* new_temp_path);
  50. // CefCreateTempDirectoryInDirectory
  51. [DllImport(libcef.DllName, EntryPoint = "cef_create_temp_directory_in_directory", CallingConvention = libcef.CEF_CALL)]
  52. public static extern int create_temp_directory_in_directory(cef_string_t* base_dir, cef_string_t* prefix, cef_string_t* new_dir);
  53. // CefDirectoryExists
  54. [DllImport(libcef.DllName, EntryPoint = "cef_directory_exists", CallingConvention = libcef.CEF_CALL)]
  55. public static extern int directory_exists(cef_string_t* path);
  56. // CefDeleteFile
  57. [DllImport(libcef.DllName, EntryPoint = "cef_delete_file", CallingConvention = libcef.CEF_CALL)]
  58. public static extern int delete_file(cef_string_t* path, int recursive);
  59. // CefZipDirectory
  60. [DllImport(libcef.DllName, EntryPoint = "cef_zip_directory", CallingConvention = libcef.CEF_CALL)]
  61. public static extern int zip_directory(cef_string_t* src_dir, cef_string_t* dest_file, int include_hidden_files);
  62. // CefLoadCRLSetsFile
  63. [DllImport(libcef.DllName, EntryPoint = "cef_load_crlsets_file", CallingConvention = libcef.CEF_CALL)]
  64. public static extern void load_crlsets_file(cef_string_t* path);
  65. // CefAddCrossOriginWhitelistEntry
  66. [DllImport(libcef.DllName, EntryPoint = "cef_add_cross_origin_whitelist_entry", CallingConvention = libcef.CEF_CALL)]
  67. public static extern int add_cross_origin_whitelist_entry(cef_string_t* source_origin, cef_string_t* target_protocol, cef_string_t* target_domain, int allow_target_subdomains);
  68. // CefRemoveCrossOriginWhitelistEntry
  69. [DllImport(libcef.DllName, EntryPoint = "cef_remove_cross_origin_whitelist_entry", CallingConvention = libcef.CEF_CALL)]
  70. public static extern int remove_cross_origin_whitelist_entry(cef_string_t* source_origin, cef_string_t* target_protocol, cef_string_t* target_domain, int allow_target_subdomains);
  71. // CefClearCrossOriginWhitelist
  72. [DllImport(libcef.DllName, EntryPoint = "cef_clear_cross_origin_whitelist", CallingConvention = libcef.CEF_CALL)]
  73. public static extern int clear_cross_origin_whitelist();
  74. // CefParseURL
  75. [DllImport(libcef.DllName, EntryPoint = "cef_parse_url", CallingConvention = libcef.CEF_CALL)]
  76. public static extern int parse_url(cef_string_t* url, cef_urlparts_t* parts);
  77. // CefCreateURL
  78. [DllImport(libcef.DllName, EntryPoint = "cef_create_url", CallingConvention = libcef.CEF_CALL)]
  79. public static extern int create_url(cef_urlparts_t* parts, cef_string_t* url);
  80. // CefFormatUrlForSecurityDisplay
  81. [DllImport(libcef.DllName, EntryPoint = "cef_format_url_for_security_display", CallingConvention = libcef.CEF_CALL)]
  82. public static extern cef_string_userfree* format_url_for_security_display(cef_string_t* origin_url);
  83. // CefGetMimeType
  84. [DllImport(libcef.DllName, EntryPoint = "cef_get_mime_type", CallingConvention = libcef.CEF_CALL)]
  85. public static extern cef_string_userfree* get_mime_type(cef_string_t* extension);
  86. // CefGetExtensionsForMimeType
  87. [DllImport(libcef.DllName, EntryPoint = "cef_get_extensions_for_mime_type", CallingConvention = libcef.CEF_CALL)]
  88. public static extern void get_extensions_for_mime_type(cef_string_t* mime_type, cef_string_list* extensions);
  89. // CefBase64Encode
  90. [DllImport(libcef.DllName, EntryPoint = "cef_base64encode", CallingConvention = libcef.CEF_CALL)]
  91. public static extern cef_string_userfree* base64encode(void* data, UIntPtr data_size);
  92. // CefBase64Decode
  93. [DllImport(libcef.DllName, EntryPoint = "cef_base64decode", CallingConvention = libcef.CEF_CALL)]
  94. public static extern cef_binary_value_t* base64decode(cef_string_t* data);
  95. // CefURIEncode
  96. [DllImport(libcef.DllName, EntryPoint = "cef_uriencode", CallingConvention = libcef.CEF_CALL)]
  97. public static extern cef_string_userfree* uriencode(cef_string_t* text, int use_plus);
  98. // CefURIDecode
  99. [DllImport(libcef.DllName, EntryPoint = "cef_uridecode", CallingConvention = libcef.CEF_CALL)]
  100. public static extern cef_string_userfree* uridecode(cef_string_t* text, int convert_to_utf8, CefUriUnescapeRules unescape_rule);
  101. // CefParseJSON
  102. [DllImport(libcef.DllName, EntryPoint = "cef_parse_json", CallingConvention = libcef.CEF_CALL)]
  103. public static extern cef_value_t* parse_json(cef_string_t* json_string, CefJsonParserOptions options);
  104. // CefParseJSON
  105. [DllImport(libcef.DllName, EntryPoint = "cef_parse_json_buffer", CallingConvention = libcef.CEF_CALL)]
  106. public static extern cef_value_t* parse_json_buffer(void* json, UIntPtr json_size, CefJsonParserOptions options);
  107. // CefParseJSONAndReturnError
  108. [DllImport(libcef.DllName, EntryPoint = "cef_parse_jsonand_return_error", CallingConvention = libcef.CEF_CALL)]
  109. public static extern cef_value_t* parse_jsonand_return_error(cef_string_t* json_string, CefJsonParserOptions options, cef_string_t* error_msg_out);
  110. // CefWriteJSON
  111. [DllImport(libcef.DllName, EntryPoint = "cef_write_json", CallingConvention = libcef.CEF_CALL)]
  112. public static extern cef_string_userfree* write_json(cef_value_t* node, CefJsonWriterOptions options);
  113. // CefGetPath
  114. [DllImport(libcef.DllName, EntryPoint = "cef_get_path", CallingConvention = libcef.CEF_CALL)]
  115. public static extern int get_path(CefPathKey key, cef_string_t* path);
  116. // CefLaunchProcess
  117. [DllImport(libcef.DllName, EntryPoint = "cef_launch_process", CallingConvention = libcef.CEF_CALL)]
  118. public static extern int launch_process(cef_command_line_t* command_line);
  119. // CefRegisterSchemeHandlerFactory
  120. [DllImport(libcef.DllName, EntryPoint = "cef_register_scheme_handler_factory", CallingConvention = libcef.CEF_CALL)]
  121. public static extern int register_scheme_handler_factory(cef_string_t* scheme_name, cef_string_t* domain_name, cef_scheme_handler_factory_t* factory);
  122. // CefClearSchemeHandlerFactories
  123. [DllImport(libcef.DllName, EntryPoint = "cef_clear_scheme_handler_factories", CallingConvention = libcef.CEF_CALL)]
  124. public static extern int clear_scheme_handler_factories();
  125. // CefIsCertStatusError
  126. [DllImport(libcef.DllName, EntryPoint = "cef_is_cert_status_error", CallingConvention = libcef.CEF_CALL)]
  127. public static extern int is_cert_status_error(CefCertStatus status);
  128. // CefCurrentlyOn
  129. [DllImport(libcef.DllName, EntryPoint = "cef_currently_on", CallingConvention = libcef.CEF_CALL)]
  130. public static extern int currently_on(CefThreadId threadId);
  131. // CefPostTask
  132. [DllImport(libcef.DllName, EntryPoint = "cef_post_task", CallingConvention = libcef.CEF_CALL)]
  133. public static extern int post_task(CefThreadId threadId, cef_task_t* task);
  134. // CefPostDelayedTask
  135. [DllImport(libcef.DllName, EntryPoint = "cef_post_delayed_task", CallingConvention = libcef.CEF_CALL)]
  136. public static extern int post_delayed_task(CefThreadId threadId, cef_task_t* task, long delay_ms);
  137. // CefBeginTracing
  138. [DllImport(libcef.DllName, EntryPoint = "cef_begin_tracing", CallingConvention = libcef.CEF_CALL)]
  139. public static extern int begin_tracing(cef_string_t* categories, cef_completion_callback_t* callback);
  140. // CefEndTracing
  141. [DllImport(libcef.DllName, EntryPoint = "cef_end_tracing", CallingConvention = libcef.CEF_CALL)]
  142. public static extern int end_tracing(cef_string_t* tracing_file, cef_end_tracing_callback_t* callback);
  143. // CefNowFromSystemTraceTime
  144. [DllImport(libcef.DllName, EntryPoint = "cef_now_from_system_trace_time", CallingConvention = libcef.CEF_CALL)]
  145. public static extern long now_from_system_trace_time();
  146. // CefRegisterExtension
  147. [DllImport(libcef.DllName, EntryPoint = "cef_register_extension", CallingConvention = libcef.CEF_CALL)]
  148. public static extern int register_extension(cef_string_t* extension_name, cef_string_t* javascript_code, cef_v8handler_t* handler);
  149. // CefVisitWebPluginInfo
  150. [DllImport(libcef.DllName, EntryPoint = "cef_visit_web_plugin_info", CallingConvention = libcef.CEF_CALL)]
  151. public static extern void visit_web_plugin_info(cef_web_plugin_info_visitor_t* visitor);
  152. // CefRefreshWebPlugins
  153. [DllImport(libcef.DllName, EntryPoint = "cef_refresh_web_plugins", CallingConvention = libcef.CEF_CALL)]
  154. public static extern void refresh_web_plugins();
  155. // CefUnregisterInternalWebPlugin
  156. [DllImport(libcef.DllName, EntryPoint = "cef_unregister_internal_web_plugin", CallingConvention = libcef.CEF_CALL)]
  157. public static extern void unregister_internal_web_plugin(cef_string_t* path);
  158. // CefRegisterWebPluginCrash
  159. [DllImport(libcef.DllName, EntryPoint = "cef_register_web_plugin_crash", CallingConvention = libcef.CEF_CALL)]
  160. public static extern void register_web_plugin_crash(cef_string_t* path);
  161. // CefIsWebPluginUnstable
  162. [DllImport(libcef.DllName, EntryPoint = "cef_is_web_plugin_unstable", CallingConvention = libcef.CEF_CALL)]
  163. public static extern void is_web_plugin_unstable(cef_string_t* path, cef_web_plugin_unstable_callback_t* callback);
  164. // CefRegisterWidevineCdm
  165. [DllImport(libcef.DllName, EntryPoint = "cef_register_widevine_cdm", CallingConvention = libcef.CEF_CALL)]
  166. public static extern void register_widevine_cdm(cef_string_t* path, cef_register_cdm_callback_t* callback);
  167. }
  168. }