diff --git a/cef/src/bindings/aarch64_apple_darwin.rs b/cef/src/bindings/aarch64_apple_darwin.rs index a8f2aa3..cfcc8ef 100644 --- a/cef/src/bindings/aarch64_apple_darwin.rs +++ b/cef/src/bindings/aarch64_apple_darwin.rs @@ -34736,6 +34736,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44909,6 +45054,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -44958,6 +45109,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -44995,6 +45152,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45032,6 +45195,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45077,6 +45246,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45120,6 +45295,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45157,6 +45338,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45194,6 +45381,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45231,6 +45424,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45273,6 +45472,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45318,6 +45523,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45369,6 +45580,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45404,6 +45621,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46019,6 +46242,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46093,6 +46322,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46205,6 +46440,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46265,6 +46506,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46345,6 +46592,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46413,6 +46666,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46488,6 +46747,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46567,6 +46832,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46639,6 +46910,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46674,6 +46951,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46721,6 +47004,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46762,6 +47051,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46801,6 +47096,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46838,6 +47139,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46889,6 +47196,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46928,6 +47241,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47013,6 +47332,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47050,6 +47375,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47089,6 +47420,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47130,6 +47467,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47165,6 +47508,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47237,6 +47586,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47313,6 +47668,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47439,6 +47800,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47476,6 +47843,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47521,6 +47894,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47564,6 +47943,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47620,6 +48005,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47661,6 +48052,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47729,6 +48126,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47770,6 +48173,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47824,6 +48233,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -47950,6 +48365,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -47991,6 +48412,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48071,6 +48498,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48112,6 +48545,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48246,6 +48685,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48291,6 +48736,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48327,6 +48778,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48368,6 +48825,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48405,6 +48868,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48458,6 +48927,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48514,6 +48989,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48552,6 +49033,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48589,6 +49076,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48632,6 +49125,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48673,6 +49172,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48714,6 +49219,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48751,6 +49262,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48790,6 +49307,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48837,6 +49360,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48886,6 +49415,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48925,6 +49460,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -48973,6 +49514,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49014,6 +49561,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49124,6 +49677,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49196,6 +49755,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49239,6 +49804,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49288,6 +49859,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49337,6 +49914,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49378,6 +49961,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49508,6 +50097,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49561,6 +50156,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49604,6 +50205,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49647,6 +50254,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49721,6 +50334,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49831,6 +50450,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49873,6 +50498,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49912,6 +50543,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -49950,6 +50587,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50073,6 +50716,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50108,6 +50757,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50145,6 +50800,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50192,6 +50853,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50251,6 +50918,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52958,6 +53631,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/aarch64_pc_windows_msvc.rs b/cef/src/bindings/aarch64_pc_windows_msvc.rs index cc11aa3..93f07d2 100644 --- a/cef/src/bindings/aarch64_pc_windows_msvc.rs +++ b/cef/src/bindings/aarch64_pc_windows_msvc.rs @@ -34764,6 +34764,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44937,6 +45082,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -44986,6 +45137,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -45023,6 +45180,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45060,6 +45223,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45105,6 +45274,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45148,6 +45323,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45185,6 +45366,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45222,6 +45409,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45259,6 +45452,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45301,6 +45500,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45346,6 +45551,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45397,6 +45608,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45432,6 +45649,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46047,6 +46270,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46121,6 +46350,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46233,6 +46468,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46293,6 +46534,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46373,6 +46620,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46441,6 +46694,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46516,6 +46775,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46595,6 +46860,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46667,6 +46938,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46702,6 +46979,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46749,6 +47032,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46790,6 +47079,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46829,6 +47124,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46866,6 +47167,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46917,6 +47224,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46956,6 +47269,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47041,6 +47360,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47078,6 +47403,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47117,6 +47448,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47158,6 +47495,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47193,6 +47536,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47265,6 +47614,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47341,6 +47696,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47467,6 +47828,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47504,6 +47871,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47549,6 +47922,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47592,6 +47971,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47648,6 +48033,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47689,6 +48080,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47757,6 +48154,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47798,6 +48201,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47852,6 +48261,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -47978,6 +48393,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -48019,6 +48440,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48099,6 +48526,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48140,6 +48573,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48274,6 +48713,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48319,6 +48764,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48355,6 +48806,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48396,6 +48853,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48433,6 +48896,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48486,6 +48955,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48542,6 +49017,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48580,6 +49061,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48617,6 +49104,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48660,6 +49153,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48701,6 +49200,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48742,6 +49247,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48779,6 +49290,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48818,6 +49335,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48865,6 +49388,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48914,6 +49443,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48953,6 +49488,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -49001,6 +49542,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49042,6 +49589,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49152,6 +49705,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49224,6 +49783,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49267,6 +49832,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49316,6 +49887,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49365,6 +49942,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49406,6 +49989,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49536,6 +50125,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49589,6 +50184,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49632,6 +50233,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49675,6 +50282,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49749,6 +50362,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49859,6 +50478,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49901,6 +50526,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49940,6 +50571,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -49978,6 +50615,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50101,6 +50744,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50136,6 +50785,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50173,6 +50828,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50220,6 +50881,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50279,6 +50946,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52946,6 +53619,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/aarch64_unknown_linux_gnu.rs b/cef/src/bindings/aarch64_unknown_linux_gnu.rs index 73994f3..4d692a2 100644 --- a/cef/src/bindings/aarch64_unknown_linux_gnu.rs +++ b/cef/src/bindings/aarch64_unknown_linux_gnu.rs @@ -34807,6 +34807,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44980,6 +45125,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -45029,6 +45180,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -45066,6 +45223,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45103,6 +45266,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45148,6 +45317,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45191,6 +45366,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45228,6 +45409,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45265,6 +45452,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45302,6 +45495,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45344,6 +45543,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45389,6 +45594,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45440,6 +45651,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45475,6 +45692,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46090,6 +46313,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46164,6 +46393,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46276,6 +46511,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46336,6 +46577,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46416,6 +46663,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46484,6 +46737,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46559,6 +46818,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46638,6 +46903,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46710,6 +46981,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46745,6 +47022,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46792,6 +47075,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46833,6 +47122,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46872,6 +47167,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46909,6 +47210,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46960,6 +47267,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46999,6 +47312,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47084,6 +47403,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47121,6 +47446,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47160,6 +47491,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47201,6 +47538,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47236,6 +47579,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47308,6 +47657,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47384,6 +47739,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47510,6 +47871,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47547,6 +47914,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47592,6 +47965,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47635,6 +48014,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47691,6 +48076,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47732,6 +48123,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47800,6 +48197,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47841,6 +48244,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47895,6 +48304,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -48021,6 +48436,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -48062,6 +48483,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48142,6 +48569,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48183,6 +48616,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48317,6 +48756,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48362,6 +48807,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48398,6 +48849,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48439,6 +48896,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48476,6 +48939,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48529,6 +48998,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48585,6 +49060,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48623,6 +49104,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48660,6 +49147,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48703,6 +49196,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48744,6 +49243,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48785,6 +49290,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48822,6 +49333,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48861,6 +49378,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48908,6 +49431,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48957,6 +49486,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48996,6 +49531,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -49044,6 +49585,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49085,6 +49632,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49195,6 +49748,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49267,6 +49826,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49310,6 +49875,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49359,6 +49930,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49408,6 +49985,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49449,6 +50032,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49579,6 +50168,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49632,6 +50227,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49675,6 +50276,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49718,6 +50325,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49792,6 +50405,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49902,6 +50521,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49944,6 +50569,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49983,6 +50614,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -50021,6 +50658,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50144,6 +50787,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50179,6 +50828,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50216,6 +50871,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50263,6 +50924,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50322,6 +50989,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52997,6 +53670,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/arm_unknown_linux_gnueabi.rs b/cef/src/bindings/arm_unknown_linux_gnueabi.rs index 73994f3..4d692a2 100644 --- a/cef/src/bindings/arm_unknown_linux_gnueabi.rs +++ b/cef/src/bindings/arm_unknown_linux_gnueabi.rs @@ -34807,6 +34807,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44980,6 +45125,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -45029,6 +45180,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -45066,6 +45223,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45103,6 +45266,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45148,6 +45317,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45191,6 +45366,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45228,6 +45409,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45265,6 +45452,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45302,6 +45495,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45344,6 +45543,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45389,6 +45594,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45440,6 +45651,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45475,6 +45692,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46090,6 +46313,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46164,6 +46393,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46276,6 +46511,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46336,6 +46577,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46416,6 +46663,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46484,6 +46737,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46559,6 +46818,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46638,6 +46903,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46710,6 +46981,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46745,6 +47022,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46792,6 +47075,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46833,6 +47122,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46872,6 +47167,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46909,6 +47210,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46960,6 +47267,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46999,6 +47312,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47084,6 +47403,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47121,6 +47446,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47160,6 +47491,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47201,6 +47538,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47236,6 +47579,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47308,6 +47657,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47384,6 +47739,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47510,6 +47871,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47547,6 +47914,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47592,6 +47965,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47635,6 +48014,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47691,6 +48076,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47732,6 +48123,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47800,6 +48197,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47841,6 +48244,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47895,6 +48304,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -48021,6 +48436,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -48062,6 +48483,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48142,6 +48569,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48183,6 +48616,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48317,6 +48756,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48362,6 +48807,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48398,6 +48849,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48439,6 +48896,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48476,6 +48939,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48529,6 +48998,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48585,6 +49060,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48623,6 +49104,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48660,6 +49147,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48703,6 +49196,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48744,6 +49243,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48785,6 +49290,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48822,6 +49333,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48861,6 +49378,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48908,6 +49431,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48957,6 +49486,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48996,6 +49531,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -49044,6 +49585,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49085,6 +49632,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49195,6 +49748,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49267,6 +49826,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49310,6 +49875,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49359,6 +49930,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49408,6 +49985,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49449,6 +50032,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49579,6 +50168,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49632,6 +50227,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49675,6 +50276,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49718,6 +50325,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49792,6 +50405,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49902,6 +50521,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49944,6 +50569,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49983,6 +50614,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -50021,6 +50658,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50144,6 +50787,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50179,6 +50828,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50216,6 +50871,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50263,6 +50924,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50322,6 +50989,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52997,6 +53670,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/i686_pc_windows_msvc.rs b/cef/src/bindings/i686_pc_windows_msvc.rs index 3770bd8..c2c48b3 100644 --- a/cef/src/bindings/i686_pc_windows_msvc.rs +++ b/cef/src/bindings/i686_pc_windows_msvc.rs @@ -12001,6 +12001,74 @@ impl Default for SharedProcessMessageBuilder { } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone, Debug)] +pub struct TaskManager { + pub base: BaseRefCounted, + pub get_tasks_count: + ::std::option::Option usize>, + pub get_task_ids_list: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + pub get_task_info: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + pub kill_task: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +impl TaskManager { + fn get_raw(&self) -> _cef_task_manager_t { + self.clone().into() + } +} +impl From<_cef_task_manager_t> for TaskManager { + fn from(value: _cef_task_manager_t) -> Self { + Self { + base: value.base.into(), + get_tasks_count: value.get_tasks_count, + get_task_ids_list: value.get_task_ids_list, + get_task_info: value.get_task_info, + kill_task: value.kill_task, + get_task_id_for_browser_id: value.get_task_id_for_browser_id, + } + } +} +impl From for _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + Self { + base: value.base.into(), + get_tasks_count: value.get_tasks_count, + get_task_ids_list: value.get_task_ids_list, + get_task_info: value.get_task_info, + kill_task: value.kill_task, + get_task_id_for_browser_id: value.get_task_id_for_browser_id, + } + } +} +impl Default for TaskManager { + fn default() -> Self { + unsafe { std::mem::zeroed() } + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone, Debug)] pub struct Thread { @@ -15118,6 +15186,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -15167,6 +15241,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -15204,6 +15284,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -15241,6 +15327,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -15286,6 +15378,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -15329,6 +15427,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -15366,6 +15470,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -15403,6 +15513,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -15440,6 +15556,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -15482,6 +15604,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -15527,6 +15655,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -15578,6 +15712,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -15613,6 +15753,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -16228,6 +16374,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -16302,6 +16454,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -16414,6 +16572,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -16474,6 +16638,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -16554,6 +16724,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -16622,6 +16798,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -16697,6 +16879,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -16776,6 +16964,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -16848,6 +17042,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -16883,6 +17083,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -16930,6 +17136,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -16971,6 +17183,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -17010,6 +17228,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -17047,6 +17271,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -17098,6 +17328,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -17137,6 +17373,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -17222,6 +17464,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -17259,6 +17507,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -17298,6 +17552,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -17339,6 +17599,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -17374,6 +17640,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -17446,6 +17718,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -17522,6 +17800,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -17648,6 +17932,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -17685,6 +17975,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -17730,6 +18026,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -17773,6 +18075,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -17829,6 +18137,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -17870,6 +18184,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -17938,6 +18258,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -17979,6 +18305,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -18033,6 +18365,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -18159,6 +18497,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -18200,6 +18544,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -18280,6 +18630,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -18321,6 +18677,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -18455,6 +18817,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -18500,6 +18868,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -18536,6 +18910,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -18577,6 +18957,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -18614,6 +19000,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -18667,6 +19059,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -18723,6 +19121,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -18761,6 +19165,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -18798,6 +19208,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -18841,6 +19257,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -18882,6 +19304,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -18923,6 +19351,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -18960,6 +19394,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -18999,6 +19439,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -19046,6 +19492,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -19095,6 +19547,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -19134,6 +19592,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -19182,6 +19646,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -19223,6 +19693,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -19333,6 +19809,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -19405,6 +19887,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -19448,6 +19936,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -19497,6 +19991,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -19546,6 +20046,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -19587,6 +20093,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -19717,6 +20229,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -19770,6 +20288,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -19813,6 +20337,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -19856,6 +20386,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -19930,6 +20466,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -20040,6 +20582,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -20082,6 +20630,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -20121,6 +20675,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -20159,6 +20719,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -20282,6 +20848,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -20317,6 +20889,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -20354,6 +20932,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -20401,6 +20985,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -20460,6 +21050,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -23100,6 +23696,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/x86_64_apple_darwin.rs b/cef/src/bindings/x86_64_apple_darwin.rs index a8f2aa3..cfcc8ef 100644 --- a/cef/src/bindings/x86_64_apple_darwin.rs +++ b/cef/src/bindings/x86_64_apple_darwin.rs @@ -34736,6 +34736,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44909,6 +45054,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -44958,6 +45109,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -44995,6 +45152,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45032,6 +45195,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45077,6 +45246,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45120,6 +45295,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45157,6 +45338,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45194,6 +45381,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45231,6 +45424,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45273,6 +45472,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45318,6 +45523,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45369,6 +45580,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45404,6 +45621,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46019,6 +46242,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46093,6 +46322,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46205,6 +46440,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46265,6 +46506,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46345,6 +46592,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46413,6 +46666,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46488,6 +46747,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46567,6 +46832,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46639,6 +46910,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46674,6 +46951,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46721,6 +47004,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46762,6 +47051,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46801,6 +47096,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46838,6 +47139,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46889,6 +47196,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46928,6 +47241,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47013,6 +47332,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47050,6 +47375,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47089,6 +47420,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47130,6 +47467,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47165,6 +47508,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47237,6 +47586,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47313,6 +47668,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47439,6 +47800,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47476,6 +47843,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47521,6 +47894,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47564,6 +47943,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47620,6 +48005,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47661,6 +48052,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47729,6 +48126,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47770,6 +48173,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47824,6 +48233,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -47950,6 +48365,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -47991,6 +48412,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48071,6 +48498,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48112,6 +48545,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48246,6 +48685,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48291,6 +48736,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48327,6 +48778,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48368,6 +48825,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48405,6 +48868,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48458,6 +48927,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48514,6 +48989,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48552,6 +49033,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48589,6 +49076,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48632,6 +49125,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48673,6 +49172,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48714,6 +49219,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48751,6 +49262,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48790,6 +49307,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48837,6 +49360,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48886,6 +49415,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48925,6 +49460,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -48973,6 +49514,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49014,6 +49561,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49124,6 +49677,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49196,6 +49755,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49239,6 +49804,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49288,6 +49859,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49337,6 +49914,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49378,6 +49961,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49508,6 +50097,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49561,6 +50156,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49604,6 +50205,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49647,6 +50254,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49721,6 +50334,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49831,6 +50450,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49873,6 +50498,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49912,6 +50543,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -49950,6 +50587,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50073,6 +50716,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50108,6 +50757,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50145,6 +50800,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50192,6 +50853,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50251,6 +50918,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52958,6 +53631,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/x86_64_pc_windows_msvc.rs b/cef/src/bindings/x86_64_pc_windows_msvc.rs index cc11aa3..93f07d2 100644 --- a/cef/src/bindings/x86_64_pc_windows_msvc.rs +++ b/cef/src/bindings/x86_64_pc_windows_msvc.rs @@ -34764,6 +34764,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44937,6 +45082,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -44986,6 +45137,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -45023,6 +45180,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45060,6 +45223,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45105,6 +45274,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45148,6 +45323,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45185,6 +45366,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45222,6 +45409,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45259,6 +45452,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45301,6 +45500,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45346,6 +45551,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45397,6 +45608,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45432,6 +45649,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46047,6 +46270,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46121,6 +46350,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46233,6 +46468,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46293,6 +46534,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46373,6 +46620,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46441,6 +46694,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46516,6 +46775,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46595,6 +46860,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46667,6 +46938,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46702,6 +46979,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46749,6 +47032,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46790,6 +47079,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46829,6 +47124,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46866,6 +47167,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46917,6 +47224,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46956,6 +47269,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47041,6 +47360,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47078,6 +47403,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47117,6 +47448,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47158,6 +47495,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47193,6 +47536,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47265,6 +47614,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47341,6 +47696,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47467,6 +47828,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47504,6 +47871,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47549,6 +47922,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47592,6 +47971,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47648,6 +48033,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47689,6 +48080,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47757,6 +48154,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47798,6 +48201,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47852,6 +48261,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -47978,6 +48393,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -48019,6 +48440,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48099,6 +48526,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48140,6 +48573,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48274,6 +48713,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48319,6 +48764,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48355,6 +48806,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48396,6 +48853,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48433,6 +48896,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48486,6 +48955,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48542,6 +49017,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48580,6 +49061,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48617,6 +49104,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48660,6 +49153,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48701,6 +49200,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48742,6 +49247,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48779,6 +49290,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48818,6 +49335,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48865,6 +49388,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48914,6 +49443,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48953,6 +49488,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -49001,6 +49542,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49042,6 +49589,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49152,6 +49705,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49224,6 +49783,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49267,6 +49832,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49316,6 +49887,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49365,6 +49942,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49406,6 +49989,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49536,6 +50125,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49589,6 +50184,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49632,6 +50233,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49675,6 +50282,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49749,6 +50362,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49859,6 +50478,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49901,6 +50526,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49940,6 +50571,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -49978,6 +50615,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50101,6 +50744,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50136,6 +50785,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50173,6 +50828,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50220,6 +50881,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50279,6 +50946,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52946,6 +53619,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/cef/src/bindings/x86_64_unknown_linux_gnu.rs b/cef/src/bindings/x86_64_unknown_linux_gnu.rs index 73994f3..4d692a2 100644 --- a/cef/src/bindings/x86_64_unknown_linux_gnu.rs +++ b/cef/src/bindings/x86_64_unknown_linux_gnu.rs @@ -34807,6 +34807,151 @@ impl From for *mut _cef_shared_process_message_buil } } +/// See [`_cef_task_manager_t`] for more documentation. +#[derive(Clone)] +pub struct TaskManager(RefGuard<_cef_task_manager_t>); +pub trait ImplTaskManager: Clone + Sized + Rc { + #[doc = "See [`_cef_task_manager_t::get_tasks_count`] for more documentation."] + fn tasks_count(&self) -> usize; + #[doc = "See [`_cef_task_manager_t::get_task_ids_list`] for more documentation."] + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_info`] for more documentation."] + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::kill_task`] for more documentation."] + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int; + #[doc = "See [`_cef_task_manager_t::get_task_id_for_browser_id`] for more documentation."] + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64; + fn get_raw(&self) -> *mut _cef_task_manager_t; +} +impl ImplTaskManager for TaskManager { + fn tasks_count(&self) -> usize { + unsafe { + self.0 + .get_tasks_count + .map(|f| { + let arg_self_ = self.into_raw(); + let result = f(arg_self_); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_ids_list(&self, task_ids: Option<&mut Vec>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_ids_list + .map(|f| { + let arg_task_ids = task_ids; + let arg_self_ = self.into_raw(); + let mut out_task_ids_count = arg_task_ids + .as_ref() + .map(|arg| arg.len()) + .unwrap_or_default(); + let arg_task_ids_count = &mut out_task_ids_count; + let out_task_ids = arg_task_ids; + let mut vec_task_ids = out_task_ids + .as_ref() + .map(|arg| arg.iter().map(|elem| *elem).collect::>()) + .unwrap_or_default(); + let arg_task_ids = if vec_task_ids.is_empty() { + std::ptr::null_mut() + } else { + vec_task_ids.as_mut_ptr() + }; + let result = f(arg_self_, arg_task_ids_count, arg_task_ids); + if let Some(out_task_ids) = out_task_ids { + *out_task_ids = vec_task_ids + .into_iter() + .take(out_task_ids_count) + .map(|elem| elem.wrap_result()) + .collect(); + } + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_info(&self, task_id: i64, info: Option<&mut TaskInfo>) -> ::std::os::raw::c_int { + unsafe { + self.0 + .get_task_info + .map(|f| { + let (arg_task_id, arg_info) = (task_id, info); + let arg_self_ = self.into_raw(); + let mut arg_info = arg_info.cloned().map(|arg| arg.into()); + let arg_info = arg_info + .as_mut() + .map(std::ptr::from_mut) + .unwrap_or(std::ptr::null_mut()); + let result = f(arg_self_, arg_task_id, arg_info); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn kill_task(&self, task_id: i64) -> ::std::os::raw::c_int { + unsafe { + self.0 + .kill_task + .map(|f| { + let arg_task_id = task_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_task_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn task_id_for_browser_id(&self, browser_id: ::std::os::raw::c_int) -> i64 { + unsafe { + self.0 + .get_task_id_for_browser_id + .map(|f| { + let arg_browser_id = browser_id; + let arg_self_ = self.into_raw(); + let result = f(arg_self_, arg_browser_id); + result.wrap_result() + }) + .unwrap_or_default() + } + } + fn get_raw(&self) -> *mut _cef_task_manager_t { + unsafe { RefGuard::into_raw(&self.0) } + } +} +impl Rc for _cef_task_manager_t { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.base.as_base() + } +} +impl Rc for TaskManager { + fn as_base(&self) -> &_cef_base_ref_counted_t { + self.0.as_base() + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertParam<*mut _cef_task_manager_t> for &mut TaskManager { + fn into_raw(self) -> *mut _cef_task_manager_t { + ImplTaskManager::get_raw(self) + } +} +impl ConvertReturnValue for *mut _cef_task_manager_t { + fn wrap_result(self) -> TaskManager { + TaskManager(unsafe { RefGuard::from_raw(self) }) + } +} +impl From for *mut _cef_task_manager_t { + fn from(value: TaskManager) -> Self { + let object = ImplTaskManager::get_raw(&value); + std::mem::forget(value); + object + } +} + /// See [`_cef_thread_t`] for more documentation. #[derive(Clone)] pub struct Thread(RefGuard<_cef_thread_t>); @@ -44980,6 +45125,12 @@ impl ContentSettingTypes { pub const NUM_VALUES: Self = Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_NUM_VALUES); } +impl ContentSettingTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingTypes { fn default() -> Self { Self(cef_content_setting_types_t::CEF_CONTENT_SETTING_TYPE_COOKIES) @@ -45029,6 +45180,12 @@ impl ContentSettingValues { pub const NUM_VALUES: Self = Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_NUM_VALUES); } +impl ContentSettingValues { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContentSettingValues { fn default() -> Self { Self(cef_content_setting_values_t::CEF_CONTENT_SETTING_VALUE_DEFAULT) @@ -45066,6 +45223,12 @@ impl ColorType { #[doc = "See [`cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_type_t::CEF_COLOR_TYPE_NUM_VALUES); } +impl ColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorType { fn default() -> Self { Self(cef_color_type_t::CEF_COLOR_TYPE_RGBA_8888) @@ -45103,6 +45266,12 @@ impl RuntimeStyle { #[doc = "See [`cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY`] for more documentation."] pub const ALLOY: Self = Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_ALLOY); } +impl RuntimeStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for RuntimeStyle { fn default() -> Self { Self(cef_runtime_style_t::CEF_RUNTIME_STYLE_DEFAULT) @@ -45148,6 +45317,12 @@ impl LogSeverity { #[doc = "See [`cef_log_severity_t::LOGSEVERITY_DISABLE`] for more documentation."] pub const DISABLE: Self = Self(cef_log_severity_t::LOGSEVERITY_DISABLE); } +impl LogSeverity { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogSeverity { fn default() -> Self { Self(cef_log_severity_t::LOGSEVERITY_DEFAULT) @@ -45191,6 +45366,12 @@ impl LogItems { #[doc = "See [`cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT`] for more documentation."] pub const FLAG_TICK_COUNT: Self = Self(cef_log_items_t::LOG_ITEMS_FLAG_TICK_COUNT); } +impl LogItems { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for LogItems { fn default() -> Self { Self(cef_log_items_t::LOG_ITEMS_DEFAULT) @@ -45228,6 +45409,12 @@ impl State { #[doc = "See [`cef_state_t::STATE_DISABLED`] for more documentation."] pub const DISABLED: Self = Self(cef_state_t::STATE_DISABLED); } +impl State { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for State { fn default() -> Self { Self(cef_state_t::STATE_DEFAULT) @@ -45265,6 +45452,12 @@ impl ReturnValue { #[doc = "See [`cef_return_value_t::RV_CONTINUE_ASYNC`] for more documentation."] pub const CONTINUE_ASYNC: Self = Self(cef_return_value_t::RV_CONTINUE_ASYNC); } +impl ReturnValue { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReturnValue { fn default() -> Self { Self(cef_return_value_t::RV_CANCEL) @@ -45302,6 +45495,12 @@ impl CookiePriority { #[doc = "See [`cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH`] for more documentation."] pub const HIGH: Self = Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_HIGH); } +impl CookiePriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for CookiePriority { fn default() -> Self { Self(cef_cookie_priority_t::CEF_COOKIE_PRIORITY_LOW) @@ -45344,6 +45543,12 @@ impl CookieSameSite { #[doc = "See [`cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_NUM_VALUES); } +impl CookieSameSite { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CookieSameSite { fn default() -> Self { Self(cef_cookie_same_site_t::CEF_COOKIE_SAME_SITE_UNSPECIFIED) @@ -45389,6 +45594,12 @@ impl TerminationStatus { #[doc = "See [`cef_termination_status_t::TS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_termination_status_t::TS_NUM_VALUES); } +impl TerminationStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TerminationStatus { fn default() -> Self { Self(cef_termination_status_t::TS_ABNORMAL_TERMINATION) @@ -45440,6 +45651,12 @@ impl PathKey { #[doc = "See [`cef_path_key_t::PK_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_path_key_t::PK_NUM_VALUES); } +impl PathKey { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PathKey { fn default() -> Self { Self(cef_path_key_t::PK_DIR_CURRENT) @@ -45475,6 +45692,12 @@ impl StorageType { #[doc = "See [`cef_storage_type_t::ST_SESSIONSTORAGE`] for more documentation."] pub const SESSIONSTORAGE: Self = Self(cef_storage_type_t::ST_SESSIONSTORAGE); } +impl StorageType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for StorageType { fn default() -> Self { Self(cef_storage_type_t::ST_LOCALSTORAGE) @@ -46090,6 +46313,12 @@ impl Errorcode { pub const BLOB_REFERENCED_FILE_UNAVAILABLE: Self = Self(cef_errorcode_t::ERR_BLOB_REFERENCED_FILE_UNAVAILABLE); } +impl Errorcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for Errorcode { fn default() -> Self { Self(cef_errorcode_t::ERR_NONE) @@ -46164,6 +46393,12 @@ impl CertStatus { pub const CT_COMPLIANCE_FAILED: Self = Self(cef_cert_status_t::CERT_STATUS_CT_COMPLIANCE_FAILED); } +impl CertStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CertStatus { fn default() -> Self { Self(cef_cert_status_t::CERT_STATUS_NONE) @@ -46276,6 +46511,12 @@ impl Resultcode { #[doc = "See [`cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resultcode_t::CEF_RESULT_CODE_NUM_VALUES); } +impl Resultcode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for Resultcode { fn default() -> Self { Self(cef_resultcode_t::CEF_RESULT_CODE_NORMAL_EXIT) @@ -46336,6 +46577,12 @@ impl WindowOpenDisposition { #[doc = "See [`cef_window_open_disposition_t::CEF_WOD_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_window_open_disposition_t::CEF_WOD_NUM_VALUES); } +impl WindowOpenDisposition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for WindowOpenDisposition { fn default() -> Self { Self(cef_window_open_disposition_t::CEF_WOD_UNKNOWN) @@ -46416,6 +46663,12 @@ impl TextInputMode { #[doc = "See [`cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_NUM_VALUES); } +impl TextInputMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextInputMode { fn default() -> Self { Self(cef_text_input_mode_t::CEF_TEXT_INPUT_MODE_DEFAULT) @@ -46484,6 +46737,12 @@ impl PostdataelementType { #[doc = "See [`cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_postdataelement_type_t::PDE_TYPE_NUM_VALUES); } +impl PostdataelementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PostdataelementType { fn default() -> Self { Self(cef_postdataelement_type_t::PDE_TYPE_EMPTY) @@ -46559,6 +46818,12 @@ impl ResourceType { #[doc = "See [`cef_resource_type_t::RT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_resource_type_t::RT_NUM_VALUES); } +impl ResourceType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResourceType { fn default() -> Self { Self(cef_resource_type_t::RT_MAIN_FRAME) @@ -46638,6 +46903,12 @@ impl TransitionType { #[doc = "See [`cef_transition_type_t::TT_QUALIFIER_MASK`] for more documentation."] pub const QUALIFIER_MASK: Self = Self(cef_transition_type_t::TT_QUALIFIER_MASK); } +impl TransitionType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TransitionType { fn default() -> Self { Self(cef_transition_type_t::TT_LINK) @@ -46710,6 +46981,12 @@ impl UrlrequestStatus { #[doc = "See [`cef_urlrequest_status_t::UR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_urlrequest_status_t::UR_NUM_VALUES); } +impl UrlrequestStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UrlrequestStatus { fn default() -> Self { Self(cef_urlrequest_status_t::UR_UNKNOWN) @@ -46745,6 +47022,12 @@ impl ProcessId { #[doc = "See [`cef_process_id_t::PID_RENDERER`] for more documentation."] pub const RENDERER: Self = Self(cef_process_id_t::PID_RENDERER); } +impl ProcessId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ProcessId { fn default() -> Self { Self(cef_process_id_t::PID_BROWSER) @@ -46792,6 +47075,12 @@ impl ThreadId { #[doc = "See [`cef_thread_id_t::TID_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_id_t::TID_NUM_VALUES); } +impl ThreadId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadId { fn default() -> Self { Self(cef_thread_id_t::TID_UI) @@ -46833,6 +47122,12 @@ impl ThreadPriority { #[doc = "See [`cef_thread_priority_t::TP_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_thread_priority_t::TP_NUM_VALUES); } +impl ThreadPriority { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ThreadPriority { fn default() -> Self { Self(cef_thread_priority_t::TP_BACKGROUND) @@ -46872,6 +47167,12 @@ impl MessageLoopType { #[doc = "See [`cef_message_loop_type_t::ML_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_message_loop_type_t::ML_NUM_VALUES); } +impl MessageLoopType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MessageLoopType { fn default() -> Self { Self(cef_message_loop_type_t::ML_TYPE_DEFAULT) @@ -46909,6 +47210,12 @@ impl ComInitMode { #[doc = "See [`cef_com_init_mode_t::COM_INIT_MODE_MTA`] for more documentation."] pub const MTA: Self = Self(cef_com_init_mode_t::COM_INIT_MODE_MTA); } +impl ComInitMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ComInitMode { fn default() -> Self { Self(cef_com_init_mode_t::COM_INIT_MODE_NONE) @@ -46960,6 +47267,12 @@ impl ValueType { #[doc = "See [`cef_value_type_t::VTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_value_type_t::VTYPE_NUM_VALUES); } +impl ValueType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ValueType { fn default() -> Self { Self(cef_value_type_t::VTYPE_INVALID) @@ -46999,6 +47312,12 @@ impl JsdialogType { #[doc = "See [`cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_jsdialog_type_t::JSDIALOGTYPE_NUM_VALUES); } +impl JsdialogType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsdialogType { fn default() -> Self { Self(cef_jsdialog_type_t::JSDIALOGTYPE_ALERT) @@ -47084,6 +47403,12 @@ impl MenuId { #[doc = "See [`cef_menu_id_t::MENU_ID_USER_LAST`] for more documentation."] pub const USER_LAST: Self = Self(cef_menu_id_t::MENU_ID_USER_LAST); } +impl MenuId { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuId { fn default() -> Self { Self(cef_menu_id_t::MENU_ID_BACK) @@ -47121,6 +47446,12 @@ impl MouseButtonType { #[doc = "See [`cef_mouse_button_type_t::MBT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_mouse_button_type_t::MBT_RIGHT); } +impl MouseButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MouseButtonType { fn default() -> Self { Self(cef_mouse_button_type_t::MBT_LEFT) @@ -47160,6 +47491,12 @@ impl TouchEventType { #[doc = "See [`cef_touch_event_type_t::CEF_TET_CANCELLED`] for more documentation."] pub const CANCELLED: Self = Self(cef_touch_event_type_t::CEF_TET_CANCELLED); } +impl TouchEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TouchEventType { fn default() -> Self { Self(cef_touch_event_type_t::CEF_TET_RELEASED) @@ -47201,6 +47538,12 @@ impl PointerType { #[doc = "See [`cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN`] for more documentation."] pub const UNKNOWN: Self = Self(cef_pointer_type_t::CEF_POINTER_TYPE_UNKNOWN); } +impl PointerType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PointerType { fn default() -> Self { Self(cef_pointer_type_t::CEF_POINTER_TYPE_TOUCH) @@ -47236,6 +47579,12 @@ impl PaintElementType { #[doc = "See [`cef_paint_element_type_t::PET_POPUP`] for more documentation."] pub const POPUP: Self = Self(cef_paint_element_type_t::PET_POPUP); } +impl PaintElementType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PaintElementType { fn default() -> Self { Self(cef_paint_element_type_t::PET_VIEW) @@ -47308,6 +47657,12 @@ impl MenuItemType { #[doc = "See [`cef_menu_item_type_t::MENUITEMTYPE_SUBMENU`] for more documentation."] pub const SUBMENU: Self = Self(cef_menu_item_type_t::MENUITEMTYPE_SUBMENU); } +impl MenuItemType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuItemType { fn default() -> Self { Self(cef_menu_item_type_t::MENUITEMTYPE_NONE) @@ -47384,6 +47739,12 @@ impl ContextMenuMediaType { #[doc = "See [`cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NUM_VALUES); } +impl ContextMenuMediaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ContextMenuMediaType { fn default() -> Self { Self(cef_context_menu_media_type_t::CM_MEDIATYPE_NONE) @@ -47510,6 +47871,12 @@ impl KeyEventType { #[doc = "See [`cef_key_event_type_t::KEYEVENT_CHAR`] for more documentation."] pub const CHAR: Self = Self(cef_key_event_type_t::KEYEVENT_CHAR); } +impl KeyEventType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for KeyEventType { fn default() -> Self { Self(cef_key_event_type_t::KEYEVENT_RAWKEYDOWN) @@ -47547,6 +47914,12 @@ impl FocusSource { #[doc = "See [`cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_focus_source_t::FOCUS_SOURCE_NUM_VALUES); } +impl FocusSource { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FocusSource { fn default() -> Self { Self(cef_focus_source_t::FOCUS_SOURCE_NAVIGATION) @@ -47592,6 +47965,12 @@ impl NavigationType { #[doc = "See [`cef_navigation_type_t::NAVIGATION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_navigation_type_t::NAVIGATION_NUM_VALUES); } +impl NavigationType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for NavigationType { fn default() -> Self { Self(cef_navigation_type_t::NAVIGATION_LINK_CLICKED) @@ -47635,6 +48014,12 @@ impl XmlEncodingType { #[doc = "See [`cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_encoding_type_t::XML_ENCODING_NUM_VALUES); } +impl XmlEncodingType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlEncodingType { fn default() -> Self { Self(cef_xml_encoding_type_t::XML_ENCODING_NONE) @@ -47691,6 +48076,12 @@ impl XmlNodeType { #[doc = "See [`cef_xml_node_type_t::XML_NODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_xml_node_type_t::XML_NODE_NUM_VALUES); } +impl XmlNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for XmlNodeType { fn default() -> Self { Self(cef_xml_node_type_t::XML_NODE_UNSUPPORTED) @@ -47732,6 +48123,12 @@ impl DomDocumentType { #[doc = "See [`cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_NUM_VALUES); } +impl DomDocumentType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomDocumentType { fn default() -> Self { Self(cef_dom_document_type_t::DOM_DOCUMENT_TYPE_UNKNOWN) @@ -47800,6 +48197,12 @@ impl DomEventCategory { pub const XMLHTTPREQUEST_PROGRESS: Self = Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS); } +impl DomEventCategory { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventCategory { fn default() -> Self { Self(cef_dom_event_category_t::DOM_EVENT_CATEGORY_UNKNOWN) @@ -47841,6 +48244,12 @@ impl DomEventPhase { #[doc = "See [`cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_NUM_VALUES); } +impl DomEventPhase { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomEventPhase { fn default() -> Self { Self(cef_dom_event_phase_t::DOM_EVENT_PHASE_UNKNOWN) @@ -47895,6 +48304,12 @@ impl DomNodeType { #[doc = "See [`cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_dom_node_type_t::DOM_NODE_TYPE_NUM_VALUES); } +impl DomNodeType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomNodeType { fn default() -> Self { Self(cef_dom_node_type_t::DOM_NODE_TYPE_UNSUPPORTED) @@ -48021,6 +48436,12 @@ impl DomFormControlType { pub const NUM_VALUES: Self = Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_NUM_VALUES); } +impl DomFormControlType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DomFormControlType { fn default() -> Self { Self(cef_dom_form_control_type_t::DOM_FORM_CONTROL_TYPE_UNSUPPORTED) @@ -48062,6 +48483,12 @@ impl FileDialogMode { #[doc = "See [`cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_file_dialog_mode_t::FILE_DIALOG_NUM_VALUES); } +impl FileDialogMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for FileDialogMode { fn default() -> Self { Self(cef_file_dialog_mode_t::FILE_DIALOG_OPEN) @@ -48142,6 +48569,12 @@ impl ColorModel { #[doc = "See [`cef_color_model_t::COLOR_MODEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_model_t::COLOR_MODEL_NUM_VALUES); } +impl ColorModel { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorModel { fn default() -> Self { Self(cef_color_model_t::COLOR_MODEL_UNKNOWN) @@ -48183,6 +48616,12 @@ impl DuplexMode { #[doc = "See [`cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_duplex_mode_t::DUPLEX_MODE_NUM_VALUES); } +impl DuplexMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for DuplexMode { fn default() -> Self { Self(cef_duplex_mode_t::DUPLEX_MODE_UNKNOWN) @@ -48317,6 +48756,12 @@ impl CursorType { #[doc = "See [`cef_cursor_type_t::CT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_cursor_type_t::CT_NUM_VALUES); } +impl CursorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CursorType { fn default() -> Self { Self(cef_cursor_type_t::CT_POINTER) @@ -48362,6 +48807,12 @@ impl UriUnescapeRule { pub const REPLACE_PLUS_WITH_SPACE: Self = Self(cef_uri_unescape_rule_t::UU_REPLACE_PLUS_WITH_SPACE); } +impl UriUnescapeRule { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for UriUnescapeRule { fn default() -> Self { Self(cef_uri_unescape_rule_t::UU_NONE) @@ -48398,6 +48849,12 @@ impl JsonParserOptions { pub const ALLOW_TRAILING_COMMAS: Self = Self(cef_json_parser_options_t::JSON_PARSER_ALLOW_TRAILING_COMMAS); } +impl JsonParserOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonParserOptions { fn default() -> Self { Self(cef_json_parser_options_t::JSON_PARSER_RFC) @@ -48439,6 +48896,12 @@ impl JsonWriterOptions { #[doc = "See [`cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT`] for more documentation."] pub const PRETTY_PRINT: Self = Self(cef_json_writer_options_t::JSON_WRITER_PRETTY_PRINT); } +impl JsonWriterOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for JsonWriterOptions { fn default() -> Self { Self(cef_json_writer_options_t::JSON_WRITER_DEFAULT) @@ -48476,6 +48939,12 @@ impl PdfPrintMarginType { #[doc = "See [`cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM`] for more documentation."] pub const CUSTOM: Self = Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_CUSTOM); } +impl PdfPrintMarginType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PdfPrintMarginType { fn default() -> Self { Self(cef_pdf_print_margin_type_t::PDF_PRINT_MARGIN_DEFAULT) @@ -48529,6 +48998,12 @@ impl ScaleFactor { #[doc = "See [`cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_scale_factor_t::SCALE_FACTOR_NUM_VALUES); } +impl ScaleFactor { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ScaleFactor { fn default() -> Self { Self(cef_scale_factor_t::SCALE_FACTOR_NONE) @@ -48585,6 +49060,12 @@ impl ReferrerPolicy { #[doc = "See [`cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_referrer_policy_t::REFERRER_POLICY_NUM_VALUES); } +impl ReferrerPolicy { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ReferrerPolicy { fn default() -> Self { Self (cef_referrer_policy_t :: REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE) @@ -48623,6 +49104,12 @@ impl ResponseFilterStatus { #[doc = "See [`cef_response_filter_status_t::RESPONSE_FILTER_ERROR`] for more documentation."] pub const ERROR: Self = Self(cef_response_filter_status_t::RESPONSE_FILTER_ERROR); } +impl ResponseFilterStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ResponseFilterStatus { fn default() -> Self { Self(cef_response_filter_status_t::RESPONSE_FILTER_NEED_MORE_DATA) @@ -48660,6 +49147,12 @@ impl AlphaType { #[doc = "See [`cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED`] for more documentation."] pub const POSTMULTIPLIED: Self = Self(cef_alpha_type_t::CEF_ALPHA_TYPE_POSTMULTIPLIED); } +impl AlphaType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AlphaType { fn default() -> Self { Self(cef_alpha_type_t::CEF_ALPHA_TYPE_OPAQUE) @@ -48703,6 +49196,12 @@ impl TextStyle { #[doc = "See [`cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_style_t::CEF_TEXT_STYLE_NUM_VALUES); } +impl TextStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextStyle { fn default() -> Self { Self(cef_text_style_t::CEF_TEXT_STYLE_BOLD) @@ -48744,6 +49243,12 @@ impl AxisAlignment { #[doc = "See [`cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_NUM_VALUES); } +impl AxisAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for AxisAlignment { fn default() -> Self { Self(cef_axis_alignment_t::CEF_AXIS_ALIGNMENT_START) @@ -48785,6 +49290,12 @@ impl ButtonState { #[doc = "See [`cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_button_state_t::CEF_BUTTON_STATE_NUM_VALUES); } +impl ButtonState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ButtonState { fn default() -> Self { Self(cef_button_state_t::CEF_BUTTON_STATE_NORMAL) @@ -48822,6 +49333,12 @@ impl HorizontalAlignment { #[doc = "See [`cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT`] for more documentation."] pub const RIGHT: Self = Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_RIGHT); } +impl HorizontalAlignment { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for HorizontalAlignment { fn default() -> Self { Self(cef_horizontal_alignment_t::CEF_HORIZONTAL_ALIGNMENT_LEFT) @@ -48861,6 +49378,12 @@ impl MenuAnchorPosition { #[doc = "See [`cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_NUM_VALUES); } +impl MenuAnchorPosition { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuAnchorPosition { fn default() -> Self { Self(cef_menu_anchor_position_t::CEF_MENU_ANCHOR_TOPLEFT) @@ -48908,6 +49431,12 @@ impl MenuColorType { #[doc = "See [`cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_menu_color_type_t::CEF_MENU_COLOR_NUM_VALUES); } +impl MenuColorType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MenuColorType { fn default() -> Self { Self(cef_menu_color_type_t::CEF_MENU_COLOR_TEXT) @@ -48957,6 +49486,12 @@ impl SslVersion { #[doc = "See [`cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_NUM_VALUES); } +impl SslVersion { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslVersion { fn default() -> Self { Self(cef_ssl_version_t::SSL_CONNECTION_VERSION_UNKNOWN) @@ -48996,6 +49531,12 @@ impl SslContentStatus { pub const RAN_INSECURE_CONTENT: Self = Self(cef_ssl_content_status_t::SSL_CONTENT_RAN_INSECURE_CONTENT); } +impl SslContentStatus { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SslContentStatus { fn default() -> Self { Self(cef_ssl_content_status_t::SSL_CONTENT_NORMAL_CONTENT) @@ -49044,6 +49585,12 @@ impl SchemeOptions { #[doc = "See [`cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED`] for more documentation."] pub const FETCH_ENABLED: Self = Self(cef_scheme_options_t::CEF_SCHEME_OPTION_FETCH_ENABLED); } +impl SchemeOptions { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for SchemeOptions { fn default() -> Self { Self(cef_scheme_options_t::CEF_SCHEME_OPTION_NONE) @@ -49085,6 +49632,12 @@ impl CompositionUnderlineStyle { #[doc = "See [`cef_composition_underline_style_t::CEF_CUS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_composition_underline_style_t::CEF_CUS_NUM_VALUES); } +impl CompositionUnderlineStyle { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for CompositionUnderlineStyle { fn default() -> Self { Self(cef_composition_underline_style_t::CEF_CUS_SOLID) @@ -49195,6 +49748,12 @@ impl ChannelLayout { #[doc = "See [`cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_channel_layout_t::CEF_CHANNEL_NUM_VALUES); } +impl ChannelLayout { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChannelLayout { fn default() -> Self { Self(cef_channel_layout_t::CEF_CHANNEL_LAYOUT_NONE) @@ -49267,6 +49826,12 @@ impl MediaRouteCreateResult { #[doc = "See [`cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_create_result_t::CEF_MRCR_NUM_VALUES); } +impl MediaRouteCreateResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaRouteCreateResult { fn default() -> Self { Self(cef_media_route_create_result_t::CEF_MRCR_UNKNOWN_ERROR) @@ -49310,6 +49875,12 @@ impl MediaRouteConnectionState { #[doc = "See [`cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_route_connection_state_t::CEF_MRCS_NUM_VALUES); } +impl MediaRouteConnectionState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> i32 { + self.0 as i32 + } +} impl Default for MediaRouteConnectionState { fn default() -> Self { Self(cef_media_route_connection_state_t::CEF_MRCS_UNKNOWN) @@ -49359,6 +49930,12 @@ impl MediaSinkIconType { #[doc = "See [`cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_media_sink_icon_type_t::CEF_MSIT_NUM_VALUES); } +impl MediaSinkIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaSinkIconType { fn default() -> Self { Self(cef_media_sink_icon_type_t::CEF_MSIT_CAST) @@ -49408,6 +49985,12 @@ impl TextFieldCommands { #[doc = "See [`cef_text_field_commands_t::CEF_TFC_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_text_field_commands_t::CEF_TFC_NUM_VALUES); } +impl TextFieldCommands { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TextFieldCommands { fn default() -> Self { Self(cef_text_field_commands_t::CEF_TFC_UNKNOWN) @@ -49449,6 +50032,12 @@ impl ChromeToolbarType { #[doc = "See [`cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_type_t::CEF_CTT_NUM_VALUES); } +impl ChromeToolbarType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarType { fn default() -> Self { Self(cef_chrome_toolbar_type_t::CEF_CTT_UNKNOWN) @@ -49579,6 +50168,12 @@ impl ChromePageActionIconType { #[doc = "See [`cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_NUM_VALUES); } +impl ChromePageActionIconType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromePageActionIconType { fn default() -> Self { Self(cef_chrome_page_action_icon_type_t::CEF_CPAIT_BOOKMARK_STAR) @@ -49632,6 +50227,12 @@ impl ChromeToolbarButtonType { #[doc = "See [`cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_NUM_VALUES); } +impl ChromeToolbarButtonType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ChromeToolbarButtonType { fn default() -> Self { Self(cef_chrome_toolbar_button_type_t::CEF_CTBT_CAST_DEPRECATED) @@ -49675,6 +50276,12 @@ impl DockingMode { #[doc = "See [`cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_docking_mode_t::CEF_DOCKING_MODE_NUM_VALUES); } +impl DockingMode { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DockingMode { fn default() -> Self { Self(cef_docking_mode_t::CEF_DOCKING_MODE_TOP_LEFT) @@ -49718,6 +50325,12 @@ impl ShowState { #[doc = "See [`cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_show_state_t::CEF_SHOW_STATE_NUM_VALUES); } +impl ShowState { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ShowState { fn default() -> Self { Self(cef_show_state_t::CEF_SHOW_STATE_NORMAL) @@ -49792,6 +50405,12 @@ impl MediaAccessPermissionTypes { pub const DESKTOP_VIDEO_CAPTURE: Self = Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE); } +impl MediaAccessPermissionTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for MediaAccessPermissionTypes { fn default() -> Self { Self(cef_media_access_permission_types_t::CEF_MEDIA_PERMISSION_NONE) @@ -49902,6 +50521,12 @@ impl PermissionRequestTypes { pub const LOCAL_NETWORK_ACCESS: Self = Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS); } +impl PermissionRequestTypes { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestTypes { fn default() -> Self { Self(cef_permission_request_types_t::CEF_PERMISSION_TYPE_NONE) @@ -49944,6 +50569,12 @@ impl PermissionRequestResult { pub const NUM_VALUES: Self = Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_NUM_VALUES); } +impl PermissionRequestResult { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PermissionRequestResult { fn default() -> Self { Self(cef_permission_request_result_t::CEF_PERMISSION_RESULT_ACCEPT) @@ -49983,6 +50614,12 @@ impl TestCertType { #[doc = "See [`cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_test_cert_type_t::CEF_TEST_CERT_NUM_VALUES); } +impl TestCertType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TestCertType { fn default() -> Self { Self(cef_test_cert_type_t::CEF_TEST_CERT_OK_IP) @@ -50021,6 +50658,12 @@ impl PreferencesType { #[doc = "See [`cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_NUM_VALUES); } +impl PreferencesType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for PreferencesType { fn default() -> Self { Self(cef_preferences_type_t::CEF_PREFERENCES_TYPE_GLOBAL) @@ -50144,6 +50787,12 @@ impl DownloadInterruptReason { pub const CRASH: Self = Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_CRASH); } +impl DownloadInterruptReason { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for DownloadInterruptReason { fn default() -> Self { Self(cef_download_interrupt_reason_t::CEF_DOWNLOAD_INTERRUPT_REASON_NONE) @@ -50179,6 +50828,12 @@ impl GestureCommand { #[doc = "See [`cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD`] for more documentation."] pub const FORWARD: Self = Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_FORWARD); } +impl GestureCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for GestureCommand { fn default() -> Self { Self(cef_gesture_command_t::CEF_GESTURE_COMMAND_BACK) @@ -50216,6 +50871,12 @@ impl ZoomCommand { #[doc = "See [`cef_zoom_command_t::CEF_ZOOM_COMMAND_IN`] for more documentation."] pub const IN: Self = Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_IN); } +impl ZoomCommand { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ZoomCommand { fn default() -> Self { Self(cef_zoom_command_t::CEF_ZOOM_COMMAND_OUT) @@ -50263,6 +50924,12 @@ impl ColorVariant { #[doc = "See [`cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_color_variant_t::CEF_COLOR_VARIANT_NUM_VALUES); } +impl ColorVariant { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for ColorVariant { fn default() -> Self { Self(cef_color_variant_t::CEF_COLOR_VARIANT_SYSTEM) @@ -50322,6 +50989,12 @@ impl TaskType { #[doc = "See [`cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES`] for more documentation."] pub const NUM_VALUES: Self = Self(cef_task_type_t::CEF_TASK_TYPE_NUM_VALUES); } +impl TaskType { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> u32 { + self.0 as u32 + } +} impl Default for TaskType { fn default() -> Self { Self(cef_task_type_t::CEF_TASK_TYPE_UNKNOWN) @@ -52997,6 +53670,18 @@ pub fn shared_process_message_builder_create( } } +/// See [`cef_task_manager_get`] for more documentation. +pub fn task_manager_get() -> Option { + unsafe { + let result = cef_task_manager_get(); + if result.is_null() { + None + } else { + Some(result.wrap_result()) + } + } +} + /// See [`cef_get_current_platform_thread_id`] for more documentation. pub fn get_current_platform_thread_id() -> cef_platform_thread_id_t { unsafe { diff --git a/sys/src/bindings/aarch64_apple_darwin.rs b/sys/src/bindings/aarch64_apple_darwin.rs index a5b99e6..070c863 100644 --- a/sys/src/bindings/aarch64_apple_darwin.rs +++ b/sys/src/bindings/aarch64_apple_darwin.rs @@ -14533,6 +14533,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type pthread_t = __darwin_pthread_t; pub type pid_t = __darwin_pid_t; pub type cef_platform_thread_id_t = pid_t; diff --git a/sys/src/bindings/aarch64_pc_windows_msvc.rs b/sys/src/bindings/aarch64_pc_windows_msvc.rs index 90a17dc..e572a0b 100644 --- a/sys/src/bindings/aarch64_pc_windows_msvc.rs +++ b/sys/src/bindings/aarch64_pc_windows_msvc.rs @@ -14568,6 +14568,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type cef_platform_thread_id_t = DWORD; unsafe extern "C" { #[doc = "\n Returns the current platform thread ID.\n"] diff --git a/sys/src/bindings/aarch64_unknown_linux_gnu.rs b/sys/src/bindings/aarch64_unknown_linux_gnu.rs index 525487b..d04e16f 100644 --- a/sys/src/bindings/aarch64_unknown_linux_gnu.rs +++ b/sys/src/bindings/aarch64_unknown_linux_gnu.rs @@ -14528,6 +14528,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type pthread_t = ::std::os::raw::c_ulong; pub type cef_platform_thread_id_t = pid_t; unsafe extern "C" { diff --git a/sys/src/bindings/arm_unknown_linux_gnueabi.rs b/sys/src/bindings/arm_unknown_linux_gnueabi.rs index a6cffe7..8896c04 100644 --- a/sys/src/bindings/arm_unknown_linux_gnueabi.rs +++ b/sys/src/bindings/arm_unknown_linux_gnueabi.rs @@ -14521,6 +14521,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 40usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 4usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 20usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 24usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 28usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 32usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 36usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type pthread_t = ::std::os::raw::c_ulong; pub type cef_platform_thread_id_t = pid_t; unsafe extern "C" { diff --git a/sys/src/bindings/i686_pc_windows_msvc.rs b/sys/src/bindings/i686_pc_windows_msvc.rs index 8352bcd..595cbdb 100644 --- a/sys/src/bindings/i686_pc_windows_msvc.rs +++ b/sys/src/bindings/i686_pc_windows_msvc.rs @@ -14750,6 +14750,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "stdcall" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 40usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 4usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 20usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 24usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 28usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 32usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 36usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type cef_platform_thread_id_t = DWORD; unsafe extern "C" { #[doc = "\n Returns the current platform thread ID.\n"] diff --git a/sys/src/bindings/x86_64_apple_darwin.rs b/sys/src/bindings/x86_64_apple_darwin.rs index a5b99e6..070c863 100644 --- a/sys/src/bindings/x86_64_apple_darwin.rs +++ b/sys/src/bindings/x86_64_apple_darwin.rs @@ -14533,6 +14533,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type pthread_t = __darwin_pthread_t; pub type pid_t = __darwin_pid_t; pub type cef_platform_thread_id_t = pid_t; diff --git a/sys/src/bindings/x86_64_pc_windows_msvc.rs b/sys/src/bindings/x86_64_pc_windows_msvc.rs index 90a17dc..e572a0b 100644 --- a/sys/src/bindings/x86_64_pc_windows_msvc.rs +++ b/sys/src/bindings/x86_64_pc_windows_msvc.rs @@ -14568,6 +14568,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type cef_platform_thread_id_t = DWORD; unsafe extern "C" { #[doc = "\n Returns the current platform thread ID.\n"] diff --git a/sys/src/bindings/x86_64_unknown_linux_gnu.rs b/sys/src/bindings/x86_64_unknown_linux_gnu.rs index 3ec53aa..6343213 100644 --- a/sys/src/bindings/x86_64_unknown_linux_gnu.rs +++ b/sys/src/bindings/x86_64_unknown_linux_gnu.rs @@ -14528,6 +14528,69 @@ unsafe extern "C" { byte_size: usize, ) -> *mut cef_shared_process_message_builder_t; } +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_task_manager_t { + #[doc = "\n Base structure.\n"] + pub base: cef_base_ref_counted_t, + #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"] + pub get_tasks_count: + ::std::option::Option usize>, + #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"] + pub get_task_ids_list: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_idsCount: *mut usize, + task_ids: *mut i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"] + pub get_task_info: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + info: *mut _cef_task_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"] + pub kill_task: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + task_id: i64, + ) -> ::std::os::raw::c_int, + >, + #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"] + pub get_task_id_for_browser_id: ::std::option::Option< + unsafe extern "C" fn( + self_: *mut _cef_task_manager_t, + browser_id: ::std::os::raw::c_int, + ) -> i64, + >, +} +#[allow(clippy::unnecessary_operation, clippy::identity_op)] +const _: () = { + ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize]; + ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize]; + ["Offset of field: _cef_task_manager_t::base"] + [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize]; + ["Offset of field: _cef_task_manager_t::get_tasks_count"] + [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize]; + ["Offset of field: _cef_task_manager_t::get_task_ids_list"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize]; + ["Offset of field: _cef_task_manager_t::get_task_info"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize]; + ["Offset of field: _cef_task_manager_t::kill_task"] + [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize]; + ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"] + [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize]; +}; +#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"] +pub type cef_task_manager_t = _cef_task_manager_t; +unsafe extern "C" { + #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"] + pub fn cef_task_manager_get() -> *mut cef_task_manager_t; +} pub type pthread_t = ::std::os::raw::c_ulong; pub type cef_platform_thread_id_t = pid_t; unsafe extern "C" { diff --git a/sys/wrapper.h b/sys/wrapper.h index 3e5450e..cf458e4 100644 --- a/sys/wrapper.h +++ b/sys/wrapper.h @@ -77,7 +77,7 @@ #include "include/capi/cef_stream_capi.h" #include "include/capi/cef_string_visitor_capi.h" #include "include/capi/cef_task_capi.h" -// #include "include/capi/cef_task_manager_capi.h" NOTE: Not yet included because bindings generate incorrect out-parameter +#include "include/capi/cef_task_manager_capi.h" #include "include/capi/cef_thread_capi.h" #include "include/capi/cef_trace_capi.h" #include "include/capi/cef_unresponsive_process_callback_capi.h" diff --git a/update-bindings/src/parse_tree.rs b/update-bindings/src/parse_tree.rs index 8582c45..6ea1dea 100644 --- a/update-bindings/src/parse_tree.rs +++ b/update-bindings/src/parse_tree.rs @@ -599,11 +599,18 @@ impl SignatureRef<'_> { let arg_name = format_ident!("arg_{slice_name}"); let out_name = format_ident!("out_{slice_name}"); let vec_name = format_ident!("vec_{slice_name}"); - let add_refs = if tree.root(&slice_ty.to_token_stream().to_string()) == BASE_REF_COUNTED { - Some(quote! { elem.add_ref(); }) + let slice_ty = slice_ty.to_token_stream().to_string(); + let get_elem = if tree.root(&slice_ty) == BASE_REF_COUNTED { + quote! { + elem.add_ref(); + elem.get_raw() + } + } else if tree.cef_name_map.contains_key(&slice_ty) { + quote! { elem.get_raw() } } else { - None + quote! { *elem } }; + match (count_modifiers.as_slice(), slice_modifiers.as_slice()) { ([], [TypeModifier::Slice]) => Some(quote! { let #arg_count = #arg_name @@ -615,8 +622,7 @@ impl SignatureRef<'_> { .map(|arg| arg .iter() .map(|elem| { - #add_refs - elem.get_raw() + #get_elem }) .collect::>()) .unwrap_or_default(); @@ -638,8 +644,7 @@ impl SignatureRef<'_> { .map(|elem| elem .as_ref() .map(|elem| { - #add_refs - elem.get_raw() + #get_elem }) .unwrap_or(std::ptr::null_mut())) .collect::>()) @@ -662,8 +667,7 @@ impl SignatureRef<'_> { .map(|arg| arg .iter() .map(|elem| { - #add_refs - elem.get_raw() + #get_elem }) .collect::>()) .unwrap_or_default(); @@ -687,8 +691,7 @@ impl SignatureRef<'_> { .map(|elem| elem .as_ref() .map(|elem| { - #add_refs - elem.get_raw() + #get_elem }) .unwrap_or(std::ptr::null_mut())) .collect::>()) @@ -3514,6 +3517,31 @@ fn make_my_struct() -> {rust_name} {{ }) } }); + let impl_raw_repr = e.ty.and_then(|ty| { + ty.attrs + .iter() + .find_map(|attr| match (attr.style, &attr.meta) { + ( + syn::AttrStyle::Outer, + syn::Meta::List(syn::MetaList { + path, + delimiter: syn::MacroDelimiter::Paren(_), + tokens, + }), + ) if path.to_token_stream().to_string() == quote! { repr }.to_string() => { + let repr = syn::parse2::(tokens.clone()).ok()?; + Some(quote! { + impl #rust_name { + #[doc = "Get the raw integer representation."] + pub fn get_raw(&self) -> #repr { + self.0 as #repr + } + } + }) + } + _ => None, + }) + }); let impl_default = e.ty.and_then(|ty| ty.variants.first()) .map(|v| { @@ -3551,6 +3579,8 @@ fn make_my_struct() -> {rust_name} {{ #declare_values + #impl_raw_repr + impl Default for #rust_name { fn default() -> Self { #impl_default