embedding: fix type decls

This commit is contained in:
Mike Blumenkrantz 2014-11-18 15:39:44 -05:00
parent b4c3aec383
commit cb77e79522

View file

@ -12,33 +12,21 @@ pub enum cef_text_input_context_t {}
pub enum cef_event_handle_t {} pub enum cef_event_handle_t {}
//these all need to be done... //these all need to be done...
pub enum cef_binary_value_val {} pub enum cef_binary_value_t {}
pub type cef_binary_value = *mut cef_binary_value_val; pub enum cef_dictionary_value_t {}
pub enum cef_dictionary_value_val {}
pub type cef_dictionary_value = *mut cef_dictionary_value_val;
pub enum cef_client_t {} pub enum cef_client_t {}
pub enum cef_request_t {} pub enum cef_request_t {}
pub enum cef_response_t {} pub enum cef_response_t {}
pub enum cef_urlrequest_client_t {} pub enum cef_urlrequest_client_t {}
pub enum cef_frame_val {} pub enum cef_frame_t {}
pub type cef_frame = *mut cef_frame_val; pub enum cef_domnode_t {}
pub enum cef_domnode_val {} pub enum cef_load_handler_t {}
pub type cef_domnode = *mut cef_domnode_val;
pub enum cef_load_handler_val {}
pub type cef_load_handler = *mut cef_load_handler_val;
pub enum cef_request_val {}
pub type cef_request = *mut cef_request_val;
pub enum cef_navigation_type_val {}
pub type cef_navigation_type = *mut cef_navigation_type_val;
pub enum cef_request_context_t {} pub enum cef_request_context_t {}
pub enum cef_window_info_t {} pub enum cef_window_info_t {}
pub enum cef_browser_settings_t {} pub enum cef_browser_settings_t {}
pub enum cef_v8context_val {} pub enum cef_v8context_t {}
pub type cef_v8context = *mut cef_v8context_val; pub enum cef_v8exception_t {}
pub enum cef_v8exception_val {} pub enum cef_v8stack_trace_t {}
pub type cef_v8exception = *mut cef_v8exception_val;
pub enum cef_v8stack_trace_val {}
pub type cef_v8stack_trace = *mut cef_v8stack_trace_val;
pub enum cef_window_handle_t {} //FIXME: wtf is this pub enum cef_window_handle_t {} //FIXME: wtf is this
pub type cef_string_t = cef_string_utf8; //FIXME: this is #defined... pub type cef_string_t = cef_string_utf8; //FIXME: this is #defined...
@ -534,7 +522,7 @@ pub struct cef_process_message {
/// ///
// Returns the list of arguments. // Returns the list of arguments.
/// ///
pub get_argument_list: Option<extern "C" fn(process_message: *mut cef_process_message) -> *mut cef_list_value>, pub get_argument_list: Option<extern "C" fn(process_message: *mut cef_process_message) -> *mut cef_list_value_t>,
} }
/// ///
@ -984,7 +972,7 @@ pub struct cef_resource_bundle_handler {
// string and return true (1). To use the default translation return false // string and return true (1). To use the default translation return false
// (0). Supported message IDs are listed in cef_pack_strings.h. // (0). Supported message IDs are listed in cef_pack_strings.h.
/// ///
pub get_localized_string: Option<extern "C" fn(bundle_handler: *mut cef_resource_bundle_handler, pub get_localized_string: Option<extern "C" fn(bundle_handler: *mut cef_resource_bundle_handler_t,
message_id: c_int, string: *mut cef_string_t) -> c_int>, message_id: c_int, string: *mut cef_string_t) -> c_int>,
/// ///
@ -995,7 +983,7 @@ pub struct cef_resource_bundle_handler {
// resident in memory. Supported resource IDs are listed in // resident in memory. Supported resource IDs are listed in
// cef_pack_resources.h. // cef_pack_resources.h.
/// ///
pub get_data_resource: Option<extern "C" fn(bundle_handler: *mut cef_resource_bundle_handler, pub get_data_resource: Option<extern "C" fn(bundle_handler: *mut cef_resource_bundle_handler_t,
resource_id: c_int, data: *mut *mut c_void, data_size: *mut size_t) -> c_int>, resource_id: c_int, data: *mut *mut c_void, data_size: *mut size_t) -> c_int>,
} }
@ -1015,115 +1003,115 @@ pub struct cef_list_value {
// Returns true (1) if this object is valid. Do not call any other functions // Returns true (1) if this object is valid. Do not call any other functions
// if this function returns false (0). // if this function returns false (0).
/// ///
pub is_valid: Option<extern "C" fn(list_value: *mut cef_list_value) -> c_int>, pub is_valid: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> c_int>,
/// ///
// Returns true (1) if this object is currently owned by another object. // Returns true (1) if this object is currently owned by another object.
/// ///
pub is_owned: Option<extern "C" fn(list_value: *mut cef_list_value) -> c_int>, pub is_owned: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> c_int>,
/// ///
// Returns true (1) if the values of this object are read-only. Some APIs may // Returns true (1) if the values of this object are read-only. Some APIs may
// expose read-only objects. // expose read-only objects.
/// ///
pub is_read_only: Option<extern "C" fn(list_value: *mut cef_list_value) -> c_int>, pub is_read_only: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> c_int>,
/// ///
// Returns a writable copy of this object. // Returns a writable copy of this object.
/// ///
pub copy: Option<extern "C" fn(list_value: *mut cef_list_value) -> *mut cef_list_value>, pub copy: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> *mut cef_list_value_t>,
/// ///
// Sets the number of values. If the number of values is expanded all new // Sets the number of values. If the number of values is expanded all new
// value slots will default to type null. Returns true (1) on success. // value slots will default to type null. Returns true (1) on success.
/// ///
pub set_size: Option<extern "C" fn(list_value: *mut cef_list_value, size: size_t) -> c_int>, pub set_size: Option<extern "C" fn(list_value: *mut cef_list_value_t, size: size_t) -> c_int>,
/// ///
// Returns the number of values. // Returns the number of values.
/// ///
pub get_size: Option<extern "C" fn(list_value: *mut cef_list_value) -> size_t>, pub get_size: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> size_t>,
/// ///
// Removes all values. Returns true (1) on success. // Removes all values. Returns true (1) on success.
/// ///
pub clear: Option<extern "C" fn(list_value: *mut cef_list_value) -> c_int>, pub clear: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> c_int>,
/// ///
// Removes the value at the specified index. // Removes the value at the specified index.
/// ///
pub remove: Option<extern "C" fn(list_value: *mut cef_list_value) -> c_int>, pub remove: Option<extern "C" fn(list_value: *mut cef_list_value_t) -> c_int>,
/// ///
// Returns the value type at the specified index. // Returns the value type at the specified index.
/// ///
pub get_type: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> cef_value_type_t>, pub get_type: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> cef_value_type_t>,
/// ///
// Returns the value at the specified index as type bool. // Returns the value at the specified index as type bool.
/// ///
pub get_bool: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> c_int>, pub get_bool: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> c_int>,
/// ///
// Returns the value at the specified index as type int. // Returns the value at the specified index as type int.
/// ///
pub get_int: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> c_int>, pub get_int: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> c_int>,
/// ///
// Returns the value at the specified index as type double. // Returns the value at the specified index as type double.
/// ///
pub get_double: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> c_double>, pub get_double: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> c_double>,
/// ///
// Returns the value at the specified index as type string. // Returns the value at the specified index as type string.
/// ///
// The resulting string must be freed by calling cef_string_userfree_free(). // The resulting string must be freed by calling cef_string_userfree_free().
pub get_string: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> *mut cef_string_userfree_t>, pub get_string: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> *mut cef_string_userfree_t>,
/// ///
// Returns the value at the specified index as type binary. // Returns the value at the specified index as type binary.
/// ///
pub get_binary: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> *mut cef_binary_value>, pub get_binary: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> *mut cef_binary_value_t>,
/// ///
// Returns the value at the specified index as type dictionary. // Returns the value at the specified index as type dictionary.
/// ///
pub get_dictionary: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> *mut cef_dictionary_value>, pub get_dictionary: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> *mut cef_dictionary_value_t>,
/// ///
// Returns the value at the specified index as type list. // Returns the value at the specified index as type list.
/// ///
pub get_list: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> *mut cef_list_value>, pub get_list: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> *mut cef_list_value_t>,
/// ///
// Sets the value at the specified index as type null. Returns true (1) if the // Sets the value at the specified index as type null. Returns true (1) if the
// value was set successfully. // value was set successfully.
/// ///
pub set_null: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int) -> c_int>, pub set_null: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int) -> c_int>,
/// ///
// Sets the value at the specified index as type bool. Returns true (1) if the // Sets the value at the specified index as type bool. Returns true (1) if the
// value was set successfully. // value was set successfully.
/// ///
pub set_bool: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: c_int) -> c_int>, pub set_bool: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: c_int) -> c_int>,
/// ///
// Sets the value at the specified index as type int. Returns true (1) if the // Sets the value at the specified index as type int. Returns true (1) if the
// value was set successfully. // value was set successfully.
/// ///
pub set_int: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: c_int) -> c_int>, pub set_int: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: c_int) -> c_int>,
/// ///
// Sets the value at the specified index as type double. Returns true (1) if // Sets the value at the specified index as type double. Returns true (1) if
// the value was set successfully. // the value was set successfully.
/// ///
pub set_double: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: c_double) -> c_int>, pub set_double: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: c_double) -> c_int>,
/// ///
// Sets the value at the specified index as type string. Returns true (1) if // Sets the value at the specified index as type string. Returns true (1) if
// the value was set successfully. // the value was set successfully.
/// ///
pub set_string: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: *const cef_string_t) -> c_int>, pub set_string: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: *const cef_string_t) -> c_int>,
/// ///
// Sets the value at the specified index as type binary. Returns true (1) if // Sets the value at the specified index as type binary. Returns true (1) if
@ -1133,7 +1121,7 @@ pub struct cef_list_value {
// change. Otherwise, ownership will be transferred to this object and the // change. Otherwise, ownership will be transferred to this object and the
// |value| reference will be invalidated. // |value| reference will be invalidated.
/// ///
pub set_binary: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: *mut cef_binary_value) -> c_int>, pub set_binary: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: *mut cef_binary_value_t) -> c_int>,
/// ///
// Sets the value at the specified index as type dict. Returns true (1) if the // Sets the value at the specified index as type dict. Returns true (1) if the
@ -1143,7 +1131,7 @@ pub struct cef_list_value {
// Otherwise, ownership will be transferred to this object and the |value| // Otherwise, ownership will be transferred to this object and the |value|
// reference will be invalidated. // reference will be invalidated.
/// ///
pub set_dictionary: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: *mut cef_dictionary_value) -> c_int>, pub set_dictionary: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: *mut cef_dictionary_value_t) -> c_int>,
/// ///
// Sets the value at the specified index as type list. Returns true (1) if the // Sets the value at the specified index as type list. Returns true (1) if the
@ -1153,7 +1141,7 @@ pub struct cef_list_value {
// Otherwise, ownership will be transferred to this object and the |value| // Otherwise, ownership will be transferred to this object and the |value|
// reference will be invalidated. // reference will be invalidated.
/// ///
pub set_list: Option<extern "C" fn(list_value: *mut cef_list_value, index: c_int, value: *mut cef_list_value) -> c_int>, pub set_list: Option<extern "C" fn(list_value: *mut cef_list_value_t, index: c_int, value: *mut cef_list_value_t) -> c_int>,
} }
/// ///
@ -1190,7 +1178,7 @@ pub struct cef_browser_process_handler {
// cef_render_process_handler_t::on_render_thread_created() in the render // cef_render_process_handler_t::on_render_thread_created() in the render
// process. Do not keep a reference to |extra_info| outside of this function. // process. Do not keep a reference to |extra_info| outside of this function.
/// ///
pub on_render_process_thread_created: Option<extern "C" fn(browser_handler: *mut cef_browser_process_handler, extra_info: *mut cef_list_value)>, pub on_render_process_thread_created: Option<extern "C" fn(browser_handler: *mut cef_browser_process_handler, extra_info: *mut cef_list_value_t)>,
} }
@ -1232,7 +1220,7 @@ pub struct cef_browser_host {
/// ///
// Returns the hosted browser object. // Returns the hosted browser object.
/// ///
pub get_browser: Option<extern "C" fn(browser_host: *mut cef_browser_host) -> *mut cef_browser>, pub get_browser: Option<extern "C" fn(browser_host: *mut cef_browser_host) -> *mut cef_browser_t>,
/// ///
// Call this function before destroying a contained browser window. This // Call this function before destroying a contained browser window. This
@ -1480,111 +1468,111 @@ pub struct cef_browser {
// Returns the browser host object. This function can only be called in the // Returns the browser host object. This function can only be called in the
// browser process. // browser process.
/// ///
pub get_host: Option<extern "C" fn(browser: *mut cef_browser) -> *mut cef_browser_host>, pub get_host: Option<extern "C" fn(browser: *mut cef_browser_t) -> *mut cef_browser_host>,
/// ///
// Returns true (1) if the browser can navigate backwards. // Returns true (1) if the browser can navigate backwards.
/// ///
pub can_go_back: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub can_go_back: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Navigate backwards. // Navigate backwards.
/// ///
pub go_back: Option<extern "C" fn(browser: *mut cef_browser)>, pub go_back: Option<extern "C" fn(browser: *mut cef_browser_t)>,
/// ///
// Returns true (1) if the browser can navigate forwards. // Returns true (1) if the browser can navigate forwards.
/// ///
pub can_go_forward: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub can_go_forward: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Navigate forwards. // Navigate forwards.
/// ///
pub go_forward: Option<extern "C" fn(browser: *mut cef_browser)>, pub go_forward: Option<extern "C" fn(browser: *mut cef_browser_t)>,
/// ///
// Returns true (1) if the browser is currently loading. // Returns true (1) if the browser is currently loading.
/// ///
pub is_loading: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub is_loading: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Reload the current page. // Reload the current page.
/// ///
pub reload: Option<extern "C" fn(browser: *mut cef_browser)>, pub reload: Option<extern "C" fn(browser: *mut cef_browser_t)>,
/// ///
// Reload the current page ignoring any cached data. // Reload the current page ignoring any cached data.
/// ///
pub reload_ignore_cache: Option<extern "C" fn(browser: *mut cef_browser)>, pub reload_ignore_cache: Option<extern "C" fn(browser: *mut cef_browser_t)>,
/// ///
// Stop loading the page. // Stop loading the page.
/// ///
pub stop_load: Option<extern "C" fn(browser: *mut cef_browser)>, pub stop_load: Option<extern "C" fn(browser: *mut cef_browser_t)>,
/// ///
// Returns the globally unique identifier for this browser. // Returns the globally unique identifier for this browser.
/// ///
pub get_identifier: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub get_identifier: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Returns true (1) if this object is pointing to the same handle as |that| // Returns true (1) if this object is pointing to the same handle as |that|
// object. // object.
/// ///
pub is_same: Option<extern "C" fn(browser: *mut cef_browser, that: *mut cef_browser) -> c_int>, pub is_same: Option<extern "C" fn(browser: *mut cef_browser_t, that: *mut cef_browser_t) -> c_int>,
/// ///
// Returns true (1) if the window is a popup window. // Returns true (1) if the window is a popup window.
/// ///
pub is_popup: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub is_popup: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Returns true (1) if a document has been loaded in the browser. // Returns true (1) if a document has been loaded in the browser.
/// ///
pub has_document: Option<extern "C" fn(browser: *mut cef_browser) -> c_int>, pub has_document: Option<extern "C" fn(browser: *mut cef_browser_t) -> c_int>,
/// ///
// Returns the main (top-level) frame for the browser window. // Returns the main (top-level) frame for the browser window.
/// ///
pub get_main_frame: Option<extern "C" fn(browser: *mut cef_browser) -> *mut cef_frame>, pub get_main_frame: Option<extern "C" fn(browser: *mut cef_browser_t) -> *mut cef_frame_t>,
/// ///
// Returns the focused frame for the browser window. // Returns the focused frame for the browser window.
/// ///
pub get_focused_frame: Option<extern "C" fn(browser: *mut cef_browser) -> *mut cef_frame>, pub get_focused_frame: Option<extern "C" fn(browser: *mut cef_browser_t) -> *mut cef_frame_t>,
/// ///
// Returns the frame with the specified identifier, or NULL if not found. // Returns the frame with the specified identifier, or NULL if not found.
/// ///
pub get_frame_byident: Option<extern "C" fn(browser: *mut cef_browser, identifier: c_longlong) -> *mut cef_frame>, pub get_frame_byident: Option<extern "C" fn(browser: *mut cef_browser_t, identifier: c_longlong) -> *mut cef_frame_t>,
/// ///
// Returns the frame with the specified name, or NULL if not found. // Returns the frame with the specified name, or NULL if not found.
/// ///
pub get_frame: Option<extern "C" fn(browser: *mut cef_browser, name: *const cef_string_t) -> *mut cef_frame>, pub get_frame: Option<extern "C" fn(browser: *mut cef_browser_t, name: *const cef_string_t) -> *mut cef_frame_t>,
/// ///
// Returns the number of frames that currently exist. // Returns the number of frames that currently exist.
/// ///
pub get_frame_count: Option<extern "C" fn(browser: *mut cef_browser) -> size_t>, pub get_frame_count: Option<extern "C" fn(browser: *mut cef_browser_t) -> size_t>,
/// ///
// Returns the identifiers of all existing frames. // Returns the identifiers of all existing frames.
/// ///
pub get_frame_identifiers: Option<extern "C" fn(browser: *mut cef_browser, pub get_frame_identifiers: Option<extern "C" fn(browser: *mut cef_browser_t,
identifiersCount: *mut size_t, identifiersCount: *mut size_t,
identifiers: *mut c_longlong)>, identifiers: *mut c_longlong)>,
/// ///
// Returns the names of all existing frames. // Returns the names of all existing frames.
/// ///
pub get_frame_names: Option<extern "C" fn(browser: *mut cef_browser, names: *mut cef_string_list_t)>, pub get_frame_names: Option<extern "C" fn(browser: *mut cef_browser_t, names: *mut cef_string_list_t)>,
// //
// Send a message to the specified |target_process|. Returns true (1) if the // Send a message to the specified |target_process|. Returns true (1) if the
// message was sent successfully. // message was sent successfully.
/// ///
pub send_process_message: Option<extern "C" fn(browser: *mut cef_browser, target_process: cef_process_id_t, pub send_process_message: Option<extern "C" fn(browser: *mut cef_browser_t, target_process: cef_process_id_t,
message: *mut cef_process_message) -> c_int>, message: *mut cef_process_message) -> c_int>,
} }
@ -1606,40 +1594,40 @@ pub struct cef_render_process_handler {
// cef_browser_process_handler_t::on_render_process_thread_created(). Do not // cef_browser_process_handler_t::on_render_process_thread_created(). Do not
// keep a reference to |extra_info| outside of this function. // keep a reference to |extra_info| outside of this function.
/// ///
pub on_render_thread_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, extra_info: *mut cef_list_value)>, pub on_render_thread_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t, extra_info: *mut cef_list_value_t)>,
/// ///
// Called after WebKit has been initialized. // Called after WebKit has been initialized.
/// ///
pub on_web_kit_initialized: Option<extern "C" fn(render_handler: *mut cef_render_process_handler)>, pub on_web_kit_initialized: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t)>,
/// ///
// Called after a browser has been created. When browsing cross-origin a new // Called after a browser has been created. When browsing cross-origin a new
// browser will be created before the old browser with the same identifier is // browser will be created before the old browser with the same identifier is
// destroyed. // destroyed.
/// ///
pub on_browser_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, browser: *mut cef_browser)>, pub on_browser_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t, browser: *mut cef_browser_t)>,
/// ///
// Called before a browser is destroyed. // Called before a browser is destroyed.
/// ///
pub on_browser_destroyed: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, browser: *mut cef_browser)>, pub on_browser_destroyed: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t, browser: *mut cef_browser_t)>,
/// ///
// Return the handler for browser load status events. // Return the handler for browser load status events.
/// ///
pub get_load_handler: Option<extern "C" fn(render_handler: *mut cef_render_process_handler) -> *mut cef_load_handler>, pub get_load_handler: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t) -> *mut cef_load_handler_t>,
/// ///
// Called before browser navigation. Return true (1) to cancel the navigation // Called before browser navigation. Return true (1) to cancel the navigation
// or false (0) to allow the navigation to proceed. The |request| object // or false (0) to allow the navigation to proceed. The |request| object
// cannot be modified in this callback. // cannot be modified in this callback.
/// ///
pub on_before_navigation: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_before_navigation: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
frame: *mut cef_frame, frame: *mut cef_frame_t,
request: *mut cef_request, request: *mut cef_request_t,
navigation_type: *mut cef_navigation_type, navigation_type: *mut cef_navigation_type_t,
is_redirect: c_int) -> c_int>, is_redirect: c_int) -> c_int>,
/// ///
@ -1650,31 +1638,31 @@ pub struct cef_render_process_handler {
// on the associated thread can be retrieved via the // on the associated thread can be retrieved via the
// cef_v8context_t::get_task_runner() function. // cef_v8context_t::get_task_runner() function.
/// ///
pub on_context_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_context_created: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
frame: *mut cef_frame, frame: *mut cef_frame_t,
context: *mut cef_v8context)>, context: *mut cef_v8context_t)>,
/// ///
// Called immediately before the V8 context for a frame is released. No // Called immediately before the V8 context for a frame is released. No
// references to the context should be kept after this function is called. // references to the context should be kept after this function is called.
/// ///
pub on_context_released: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_context_released: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
frame: *mut cef_frame, frame: *mut cef_frame_t,
context: *mut cef_v8context)>, context: *mut cef_v8context_t)>,
/// ///
// Called for global uncaught exceptions in a frame. Execution of this // Called for global uncaught exceptions in a frame. Execution of this
// callback is disabled by default. To enable set // callback is disabled by default. To enable set
// CefSettings.uncaught_exception_stack_size 0. // CefSettings.uncaught_exception_stack_size 0.
/// ///
pub on_uncaught_exception: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_uncaught_exception: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
frame: *mut cef_frame, frame: *mut cef_frame_t,
context: *mut cef_v8context, context: *mut cef_v8context_t,
exception: *mut cef_v8exception, exception: *mut cef_v8exception_t,
stackTrace: *mut cef_v8stack_trace)>, stackTrace: *mut cef_v8stack_trace_t)>,
/// ///
// Called when a new node in the the browser gets focus. The |node| value may // Called when a new node in the the browser gets focus. The |node| value may
@ -1684,18 +1672,18 @@ pub struct cef_render_process_handler {
// keep references to or attempt to access any DOM objects outside the scope // keep references to or attempt to access any DOM objects outside the scope
// of this function. // of this function.
/// ///
pub on_focused_node_changed: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_focused_node_changed: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
frame: *mut cef_frame, frame: *mut cef_frame_t,
node: *mut cef_domnode)>, node: *mut cef_domnode_t)>,
/// ///
// Called when a new message is received from a different process. Return true // Called when a new message is received from a different process. Return true
// (1) if the message was handled or false (0) otherwise. Do not keep a // (1) if the message was handled or false (0) otherwise. Do not keep a
// reference to or attempt to access the message outside of this callback. // reference to or attempt to access the message outside of this callback.
/// ///
pub on_process_message_received: Option<extern "C" fn(render_handler: *mut cef_render_process_handler, pub on_process_message_received: Option<extern "C" fn(render_handler: *mut cef_render_process_handler_t,
browser: *mut cef_browser, browser: *mut cef_browser_t,
source_process: cef_process_id_t, source_process: cef_process_id_t,
message: *mut cef_process_message) ->c_int>, message: *mut cef_process_message) ->c_int>,
} }
@ -1738,7 +1726,7 @@ pub struct cef_app {
// If no handler is returned resources will be loaded from pack files. This // If no handler is returned resources will be loaded from pack files. This
// function is called by the browser and render processes on multiple threads. // function is called by the browser and render processes on multiple threads.
/// ///
pub get_resource_bundle_handler: Option<extern "C" fn(app: *mut cef_app_t) -> *mut cef_resource_bundle_handler>, pub get_resource_bundle_handler: Option<extern "C" fn(app: *mut cef_app_t) -> *mut cef_resource_bundle_handler_t>,
/// ///
// Return the handler for functionality specific to the browser process. This // Return the handler for functionality specific to the browser process. This
@ -1750,7 +1738,7 @@ pub struct cef_app {
// Return the handler for functionality specific to the render process. This // Return the handler for functionality specific to the render process. This
// function is called on the render process main thread. // function is called on the render process main thread.
/// ///
pub get_render_process_handler: Option<extern "C" fn(app: *mut cef_app_t) -> *mut cef_render_process_handler>, pub get_render_process_handler: Option<extern "C" fn(app: *mut cef_app_t) -> *mut cef_render_process_handler_t>,
} }
@ -1877,34 +1865,34 @@ pub struct cef_post_data {
/// ///
// Returns true (1) if this object is read-only. // Returns true (1) if this object is read-only.
/// ///
pub is_read_only: Option<extern "C" fn(post_data: *mut cef_post_data) -> c_int>, pub is_read_only: Option<extern "C" fn(post_data: *mut cef_post_data_t) -> c_int>,
/// ///
// Returns the number of existing post data elements. // Returns the number of existing post data elements.
/// ///
pub get_element_count: Option<extern "C" fn(post_data: *mut cef_post_data) -> size_t>, pub get_element_count: Option<extern "C" fn(post_data: *mut cef_post_data_t) -> size_t>,
/// ///
// Retrieve the post data elements. // Retrieve the post data elements.
/// ///
pub get_elements: Option<extern "C" fn(post_data: *mut cef_post_data, pub get_elements: Option<extern "C" fn(post_data: *mut cef_post_data_t,
elements_count: *mut size_t, elements: *mut *mut cef_post_data_element)>, elements_count: *mut size_t, elements: *mut *mut cef_post_data_element)>,
/// ///
// Remove the specified post data element. Returns true (1) if the removal // Remove the specified post data element. Returns true (1) if the removal
// succeeds. // succeeds.
/// ///
pub remove_element: Option<extern "C" fn(post_data: *mut cef_post_data, pub remove_element: Option<extern "C" fn(post_data: *mut cef_post_data_t,
element: *mut cef_post_data_element) -> c_int>, element: *mut cef_post_data_element) -> c_int>,
/// ///
// Add the specified post data element. Returns true (1) if the add succeeds. // Add the specified post data element. Returns true (1) if the add succeeds.
/// ///
pub add_element: Option<extern "C" fn(post_data: *mut cef_post_data, pub add_element: Option<extern "C" fn(post_data: *mut cef_post_data_t,
element: *mut cef_post_data_element) -> c_int>, element: *mut cef_post_data_element) -> c_int>,
/// ///
// Remove all existing post data elements. // Remove all existing post data elements.
/// ///
pub remove_elements: Option<extern "C" fn(post_data: *mut cef_post_data)>, pub remove_elements: Option<extern "C" fn(post_data: *mut cef_post_data_t)>,
} }