From 84458bd575b98ef275e3a3024d7cdc4549e56fe5 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Tue, 23 Dec 2025 21:01:23 -0800 Subject: [PATCH 1/6] feat: add cef_task_manager_capi.h --- sys/wrapper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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" From 1cf21761c3432e814eeb52e583a73467d566174c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 00:48:05 +0000 Subject: [PATCH 2/6] chore: update bindings --- cef/src/bindings/aarch64_apple_darwin.rs | 157 ++++++++++++++++++ cef/src/bindings/aarch64_pc_windows_msvc.rs | 157 ++++++++++++++++++ cef/src/bindings/aarch64_unknown_linux_gnu.rs | 157 ++++++++++++++++++ cef/src/bindings/arm_unknown_linux_gnueabi.rs | 157 ++++++++++++++++++ cef/src/bindings/i686_pc_windows_msvc.rs | 80 +++++++++ cef/src/bindings/x86_64_apple_darwin.rs | 157 ++++++++++++++++++ cef/src/bindings/x86_64_pc_windows_msvc.rs | 157 ++++++++++++++++++ cef/src/bindings/x86_64_unknown_linux_gnu.rs | 157 ++++++++++++++++++ sys/src/bindings/aarch64_apple_darwin.rs | 63 +++++++ sys/src/bindings/aarch64_pc_windows_msvc.rs | 63 +++++++ sys/src/bindings/aarch64_unknown_linux_gnu.rs | 63 +++++++ sys/src/bindings/arm_unknown_linux_gnueabi.rs | 63 +++++++ sys/src/bindings/i686_pc_windows_msvc.rs | 63 +++++++ sys/src/bindings/x86_64_apple_darwin.rs | 63 +++++++ sys/src/bindings/x86_64_pc_windows_msvc.rs | 63 +++++++ sys/src/bindings/x86_64_unknown_linux_gnu.rs | 63 +++++++ 16 files changed, 1683 insertions(+) diff --git a/cef/src/bindings/aarch64_apple_darwin.rs b/cef/src/bindings/aarch64_apple_darwin.rs index a8f2aa3..9c5c0a5 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.get_raw()).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>); @@ -52958,6 +53103,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..1d58aba 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.get_raw()).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>); @@ -52946,6 +53091,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..2abf5c4 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.get_raw()).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>); @@ -52997,6 +53142,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..2abf5c4 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.get_raw()).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>); @@ -52997,6 +53142,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..c205dd4 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 { @@ -23100,6 +23168,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..9c5c0a5 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.get_raw()).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>); @@ -52958,6 +53103,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..1d58aba 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.get_raw()).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>); @@ -52946,6 +53091,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..2abf5c4 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.get_raw()).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>); @@ -52997,6 +53142,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" { From fd8b3e4c6aef0376e2da21c62f0058123c4e1eb1 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Sun, 28 Dec 2025 16:59:33 -0800 Subject: [PATCH 3/6] fix: skip call to get_raw for primitive types --- update-bindings/src/parse_tree.rs | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/update-bindings/src/parse_tree.rs b/update-bindings/src/parse_tree.rs index 8582c45..5de49c9 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::>()) From 285ed78897da4af9de0618b2afce86361a16dc9c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 29 Dec 2025 01:41:02 +0000 Subject: [PATCH 4/6] chore: update bindings --- cef/src/bindings/aarch64_apple_darwin.rs | 2 +- cef/src/bindings/aarch64_pc_windows_msvc.rs | 2 +- cef/src/bindings/aarch64_unknown_linux_gnu.rs | 2 +- cef/src/bindings/arm_unknown_linux_gnueabi.rs | 2 +- cef/src/bindings/x86_64_apple_darwin.rs | 2 +- cef/src/bindings/x86_64_pc_windows_msvc.rs | 2 +- cef/src/bindings/x86_64_unknown_linux_gnu.rs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/cef/src/bindings/aarch64_apple_darwin.rs b/cef/src/bindings/aarch64_apple_darwin.rs index 9c5c0a5..99e1585 100644 --- a/cef/src/bindings/aarch64_apple_darwin.rs +++ b/cef/src/bindings/aarch64_apple_darwin.rs @@ -34780,7 +34780,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/aarch64_pc_windows_msvc.rs b/cef/src/bindings/aarch64_pc_windows_msvc.rs index 1d58aba..21b6ee5 100644 --- a/cef/src/bindings/aarch64_pc_windows_msvc.rs +++ b/cef/src/bindings/aarch64_pc_windows_msvc.rs @@ -34808,7 +34808,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/aarch64_unknown_linux_gnu.rs b/cef/src/bindings/aarch64_unknown_linux_gnu.rs index 2abf5c4..fa71a5c 100644 --- a/cef/src/bindings/aarch64_unknown_linux_gnu.rs +++ b/cef/src/bindings/aarch64_unknown_linux_gnu.rs @@ -34851,7 +34851,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/arm_unknown_linux_gnueabi.rs b/cef/src/bindings/arm_unknown_linux_gnueabi.rs index 2abf5c4..fa71a5c 100644 --- a/cef/src/bindings/arm_unknown_linux_gnueabi.rs +++ b/cef/src/bindings/arm_unknown_linux_gnueabi.rs @@ -34851,7 +34851,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/x86_64_apple_darwin.rs b/cef/src/bindings/x86_64_apple_darwin.rs index 9c5c0a5..99e1585 100644 --- a/cef/src/bindings/x86_64_apple_darwin.rs +++ b/cef/src/bindings/x86_64_apple_darwin.rs @@ -34780,7 +34780,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/x86_64_pc_windows_msvc.rs b/cef/src/bindings/x86_64_pc_windows_msvc.rs index 1d58aba..21b6ee5 100644 --- a/cef/src/bindings/x86_64_pc_windows_msvc.rs +++ b/cef/src/bindings/x86_64_pc_windows_msvc.rs @@ -34808,7 +34808,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() diff --git a/cef/src/bindings/x86_64_unknown_linux_gnu.rs b/cef/src/bindings/x86_64_unknown_linux_gnu.rs index 2abf5c4..fa71a5c 100644 --- a/cef/src/bindings/x86_64_unknown_linux_gnu.rs +++ b/cef/src/bindings/x86_64_unknown_linux_gnu.rs @@ -34851,7 +34851,7 @@ impl ImplTaskManager for TaskManager { let out_task_ids = arg_task_ids; let mut vec_task_ids = out_task_ids .as_ref() - .map(|arg| arg.iter().map(|elem| elem.get_raw()).collect::>()) + .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() From 8b1c6470267145da5eb582b99cb86a1772cc6136 Mon Sep 17 00:00:00 2001 From: Bill Avery Date: Mon, 29 Dec 2025 17:27:21 -0800 Subject: [PATCH 5/6] feat: add get_raw accessor to enum types --- update-bindings/src/parse_tree.rs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/update-bindings/src/parse_tree.rs b/update-bindings/src/parse_tree.rs index 5de49c9..6ea1dea 100644 --- a/update-bindings/src/parse_tree.rs +++ b/update-bindings/src/parse_tree.rs @@ -3517,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| { @@ -3554,6 +3579,8 @@ fn make_my_struct() -> {rust_name} {{ #declare_values + #impl_raw_repr + impl Default for #rust_name { fn default() -> Self { #impl_default From 93440199d832ba5396f96a015d0a3a12c7a7e6b3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 30 Dec 2025 01:36:05 +0000 Subject: [PATCH 6/6] chore: update bindings --- cef/src/bindings/aarch64_apple_darwin.rs | 528 ++++++++++++++++++ cef/src/bindings/aarch64_pc_windows_msvc.rs | 528 ++++++++++++++++++ cef/src/bindings/aarch64_unknown_linux_gnu.rs | 528 ++++++++++++++++++ cef/src/bindings/arm_unknown_linux_gnueabi.rs | 528 ++++++++++++++++++ cef/src/bindings/i686_pc_windows_msvc.rs | 528 ++++++++++++++++++ cef/src/bindings/x86_64_apple_darwin.rs | 528 ++++++++++++++++++ cef/src/bindings/x86_64_pc_windows_msvc.rs | 528 ++++++++++++++++++ cef/src/bindings/x86_64_unknown_linux_gnu.rs | 528 ++++++++++++++++++ 8 files changed, 4224 insertions(+) diff --git a/cef/src/bindings/aarch64_apple_darwin.rs b/cef/src/bindings/aarch64_apple_darwin.rs index 99e1585..cfcc8ef 100644 --- a/cef/src/bindings/aarch64_apple_darwin.rs +++ b/cef/src/bindings/aarch64_apple_darwin.rs @@ -45054,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) @@ -45103,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) @@ -45140,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) @@ -45177,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) @@ -45222,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) @@ -45265,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) @@ -45302,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) @@ -45339,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) @@ -45376,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) @@ -45418,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) @@ -45463,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) @@ -45514,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) @@ -45549,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) @@ -46164,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) @@ -46238,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) @@ -46350,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) @@ -46410,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) @@ -46490,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) @@ -46558,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) @@ -46633,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) @@ -46712,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) @@ -46784,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) @@ -46819,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) @@ -46866,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) @@ -46907,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) @@ -46946,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) @@ -46983,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) @@ -47034,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) @@ -47073,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) @@ -47158,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) @@ -47195,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) @@ -47234,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) @@ -47275,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) @@ -47310,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) @@ -47382,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) @@ -47458,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) @@ -47584,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) @@ -47621,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) @@ -47666,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) @@ -47709,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) @@ -47765,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) @@ -47806,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) @@ -47874,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) @@ -47915,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) @@ -47969,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) @@ -48095,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) @@ -48136,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) @@ -48216,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) @@ -48257,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) @@ -48391,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) @@ -48436,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) @@ -48472,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) @@ -48513,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) @@ -48550,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) @@ -48603,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) @@ -48659,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) @@ -48697,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) @@ -48734,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) @@ -48777,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) @@ -48818,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) @@ -48859,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) @@ -48896,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) @@ -48935,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) @@ -48982,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) @@ -49031,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) @@ -49070,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) @@ -49118,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) @@ -49159,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) @@ -49269,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) @@ -49341,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) @@ -49384,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) @@ -49433,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) @@ -49482,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) @@ -49523,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) @@ -49653,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) @@ -49706,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) @@ -49749,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) @@ -49792,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) @@ -49866,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) @@ -49976,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) @@ -50018,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) @@ -50057,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) @@ -50095,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) @@ -50218,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) @@ -50253,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) @@ -50290,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) @@ -50337,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) @@ -50396,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) diff --git a/cef/src/bindings/aarch64_pc_windows_msvc.rs b/cef/src/bindings/aarch64_pc_windows_msvc.rs index 21b6ee5..93f07d2 100644 --- a/cef/src/bindings/aarch64_pc_windows_msvc.rs +++ b/cef/src/bindings/aarch64_pc_windows_msvc.rs @@ -45082,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) @@ -45131,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) @@ -45168,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) @@ -45205,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) @@ -45250,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) @@ -45293,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) @@ -45330,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) @@ -45367,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) @@ -45404,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) @@ -45446,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) @@ -45491,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) @@ -45542,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) @@ -45577,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) @@ -46192,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) @@ -46266,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) @@ -46378,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) @@ -46438,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) @@ -46518,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) @@ -46586,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) @@ -46661,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) @@ -46740,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) @@ -46812,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) @@ -46847,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) @@ -46894,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) @@ -46935,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) @@ -46974,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) @@ -47011,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) @@ -47062,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) @@ -47101,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) @@ -47186,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) @@ -47223,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) @@ -47262,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) @@ -47303,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) @@ -47338,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) @@ -47410,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) @@ -47486,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) @@ -47612,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) @@ -47649,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) @@ -47694,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) @@ -47737,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) @@ -47793,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) @@ -47834,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) @@ -47902,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) @@ -47943,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) @@ -47997,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) @@ -48123,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) @@ -48164,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) @@ -48244,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) @@ -48285,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) @@ -48419,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) @@ -48464,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) @@ -48500,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) @@ -48541,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) @@ -48578,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) @@ -48631,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) @@ -48687,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) @@ -48725,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) @@ -48762,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) @@ -48805,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) @@ -48846,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) @@ -48887,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) @@ -48924,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) @@ -48963,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) @@ -49010,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) @@ -49059,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) @@ -49098,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) @@ -49146,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) @@ -49187,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) @@ -49297,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) @@ -49369,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) @@ -49412,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) @@ -49461,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) @@ -49510,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) @@ -49551,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) @@ -49681,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) @@ -49734,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) @@ -49777,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) @@ -49820,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) @@ -49894,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) @@ -50004,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) @@ -50046,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) @@ -50085,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) @@ -50123,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) @@ -50246,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) @@ -50281,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) @@ -50318,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) @@ -50365,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) @@ -50424,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) diff --git a/cef/src/bindings/aarch64_unknown_linux_gnu.rs b/cef/src/bindings/aarch64_unknown_linux_gnu.rs index fa71a5c..4d692a2 100644 --- a/cef/src/bindings/aarch64_unknown_linux_gnu.rs +++ b/cef/src/bindings/aarch64_unknown_linux_gnu.rs @@ -45125,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) @@ -45174,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) @@ -45211,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) @@ -45248,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) @@ -45293,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) @@ -45336,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) @@ -45373,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) @@ -45410,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) @@ -45447,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) @@ -45489,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) @@ -45534,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) @@ -45585,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) @@ -45620,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) @@ -46235,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) @@ -46309,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) @@ -46421,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) @@ -46481,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) @@ -46561,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) @@ -46629,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) @@ -46704,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) @@ -46783,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) @@ -46855,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) @@ -46890,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) @@ -46937,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) @@ -46978,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) @@ -47017,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) @@ -47054,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) @@ -47105,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) @@ -47144,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) @@ -47229,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) @@ -47266,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) @@ -47305,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) @@ -47346,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) @@ -47381,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) @@ -47453,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) @@ -47529,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) @@ -47655,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) @@ -47692,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) @@ -47737,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) @@ -47780,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) @@ -47836,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) @@ -47877,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) @@ -47945,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) @@ -47986,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) @@ -48040,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) @@ -48166,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) @@ -48207,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) @@ -48287,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) @@ -48328,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) @@ -48462,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) @@ -48507,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) @@ -48543,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) @@ -48584,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) @@ -48621,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) @@ -48674,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) @@ -48730,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) @@ -48768,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) @@ -48805,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) @@ -48848,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) @@ -48889,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) @@ -48930,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) @@ -48967,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) @@ -49006,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) @@ -49053,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) @@ -49102,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) @@ -49141,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) @@ -49189,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) @@ -49230,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) @@ -49340,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) @@ -49412,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) @@ -49455,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) @@ -49504,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) @@ -49553,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) @@ -49594,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) @@ -49724,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) @@ -49777,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) @@ -49820,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) @@ -49863,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) @@ -49937,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) @@ -50047,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) @@ -50089,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) @@ -50128,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) @@ -50166,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) @@ -50289,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) @@ -50324,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) @@ -50361,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) @@ -50408,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) @@ -50467,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) diff --git a/cef/src/bindings/arm_unknown_linux_gnueabi.rs b/cef/src/bindings/arm_unknown_linux_gnueabi.rs index fa71a5c..4d692a2 100644 --- a/cef/src/bindings/arm_unknown_linux_gnueabi.rs +++ b/cef/src/bindings/arm_unknown_linux_gnueabi.rs @@ -45125,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) @@ -45174,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) @@ -45211,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) @@ -45248,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) @@ -45293,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) @@ -45336,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) @@ -45373,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) @@ -45410,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) @@ -45447,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) @@ -45489,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) @@ -45534,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) @@ -45585,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) @@ -45620,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) @@ -46235,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) @@ -46309,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) @@ -46421,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) @@ -46481,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) @@ -46561,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) @@ -46629,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) @@ -46704,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) @@ -46783,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) @@ -46855,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) @@ -46890,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) @@ -46937,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) @@ -46978,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) @@ -47017,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) @@ -47054,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) @@ -47105,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) @@ -47144,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) @@ -47229,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) @@ -47266,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) @@ -47305,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) @@ -47346,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) @@ -47381,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) @@ -47453,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) @@ -47529,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) @@ -47655,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) @@ -47692,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) @@ -47737,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) @@ -47780,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) @@ -47836,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) @@ -47877,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) @@ -47945,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) @@ -47986,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) @@ -48040,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) @@ -48166,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) @@ -48207,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) @@ -48287,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) @@ -48328,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) @@ -48462,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) @@ -48507,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) @@ -48543,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) @@ -48584,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) @@ -48621,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) @@ -48674,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) @@ -48730,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) @@ -48768,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) @@ -48805,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) @@ -48848,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) @@ -48889,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) @@ -48930,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) @@ -48967,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) @@ -49006,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) @@ -49053,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) @@ -49102,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) @@ -49141,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) @@ -49189,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) @@ -49230,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) @@ -49340,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) @@ -49412,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) @@ -49455,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) @@ -49504,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) @@ -49553,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) @@ -49594,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) @@ -49724,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) @@ -49777,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) @@ -49820,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) @@ -49863,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) @@ -49937,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) @@ -50047,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) @@ -50089,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) @@ -50128,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) @@ -50166,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) @@ -50289,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) @@ -50324,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) @@ -50361,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) @@ -50408,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) @@ -50467,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) diff --git a/cef/src/bindings/i686_pc_windows_msvc.rs b/cef/src/bindings/i686_pc_windows_msvc.rs index c205dd4..c2c48b3 100644 --- a/cef/src/bindings/i686_pc_windows_msvc.rs +++ b/cef/src/bindings/i686_pc_windows_msvc.rs @@ -15186,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) @@ -15235,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) @@ -15272,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) @@ -15309,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) @@ -15354,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) @@ -15397,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) @@ -15434,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) @@ -15471,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) @@ -15508,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) @@ -15550,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) @@ -15595,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) @@ -15646,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) @@ -15681,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) @@ -16296,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) @@ -16370,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) @@ -16482,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) @@ -16542,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) @@ -16622,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) @@ -16690,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) @@ -16765,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) @@ -16844,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) @@ -16916,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) @@ -16951,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) @@ -16998,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) @@ -17039,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) @@ -17078,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) @@ -17115,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) @@ -17166,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) @@ -17205,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) @@ -17290,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) @@ -17327,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) @@ -17366,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) @@ -17407,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) @@ -17442,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) @@ -17514,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) @@ -17590,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) @@ -17716,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) @@ -17753,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) @@ -17798,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) @@ -17841,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) @@ -17897,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) @@ -17938,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) @@ -18006,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) @@ -18047,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) @@ -18101,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) @@ -18227,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) @@ -18268,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) @@ -18348,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) @@ -18389,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) @@ -18523,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) @@ -18568,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) @@ -18604,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) @@ -18645,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) @@ -18682,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) @@ -18735,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) @@ -18791,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) @@ -18829,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) @@ -18866,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) @@ -18909,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) @@ -18950,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) @@ -18991,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) @@ -19028,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) @@ -19067,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) @@ -19114,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) @@ -19163,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) @@ -19202,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) @@ -19250,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) @@ -19291,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) @@ -19401,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) @@ -19473,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) @@ -19516,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) @@ -19565,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) @@ -19614,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) @@ -19655,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) @@ -19785,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) @@ -19838,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) @@ -19881,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) @@ -19924,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) @@ -19998,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) @@ -20108,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) @@ -20150,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) @@ -20189,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) @@ -20227,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) @@ -20350,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) @@ -20385,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) @@ -20422,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) @@ -20469,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) @@ -20528,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) diff --git a/cef/src/bindings/x86_64_apple_darwin.rs b/cef/src/bindings/x86_64_apple_darwin.rs index 99e1585..cfcc8ef 100644 --- a/cef/src/bindings/x86_64_apple_darwin.rs +++ b/cef/src/bindings/x86_64_apple_darwin.rs @@ -45054,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) @@ -45103,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) @@ -45140,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) @@ -45177,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) @@ -45222,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) @@ -45265,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) @@ -45302,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) @@ -45339,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) @@ -45376,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) @@ -45418,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) @@ -45463,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) @@ -45514,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) @@ -45549,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) @@ -46164,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) @@ -46238,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) @@ -46350,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) @@ -46410,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) @@ -46490,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) @@ -46558,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) @@ -46633,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) @@ -46712,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) @@ -46784,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) @@ -46819,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) @@ -46866,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) @@ -46907,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) @@ -46946,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) @@ -46983,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) @@ -47034,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) @@ -47073,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) @@ -47158,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) @@ -47195,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) @@ -47234,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) @@ -47275,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) @@ -47310,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) @@ -47382,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) @@ -47458,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) @@ -47584,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) @@ -47621,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) @@ -47666,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) @@ -47709,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) @@ -47765,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) @@ -47806,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) @@ -47874,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) @@ -47915,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) @@ -47969,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) @@ -48095,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) @@ -48136,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) @@ -48216,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) @@ -48257,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) @@ -48391,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) @@ -48436,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) @@ -48472,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) @@ -48513,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) @@ -48550,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) @@ -48603,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) @@ -48659,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) @@ -48697,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) @@ -48734,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) @@ -48777,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) @@ -48818,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) @@ -48859,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) @@ -48896,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) @@ -48935,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) @@ -48982,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) @@ -49031,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) @@ -49070,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) @@ -49118,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) @@ -49159,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) @@ -49269,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) @@ -49341,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) @@ -49384,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) @@ -49433,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) @@ -49482,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) @@ -49523,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) @@ -49653,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) @@ -49706,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) @@ -49749,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) @@ -49792,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) @@ -49866,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) @@ -49976,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) @@ -50018,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) @@ -50057,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) @@ -50095,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) @@ -50218,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) @@ -50253,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) @@ -50290,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) @@ -50337,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) @@ -50396,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) diff --git a/cef/src/bindings/x86_64_pc_windows_msvc.rs b/cef/src/bindings/x86_64_pc_windows_msvc.rs index 21b6ee5..93f07d2 100644 --- a/cef/src/bindings/x86_64_pc_windows_msvc.rs +++ b/cef/src/bindings/x86_64_pc_windows_msvc.rs @@ -45082,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) @@ -45131,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) @@ -45168,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) @@ -45205,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) @@ -45250,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) @@ -45293,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) @@ -45330,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) @@ -45367,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) @@ -45404,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) @@ -45446,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) @@ -45491,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) @@ -45542,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) @@ -45577,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) @@ -46192,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) @@ -46266,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) @@ -46378,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) @@ -46438,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) @@ -46518,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) @@ -46586,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) @@ -46661,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) @@ -46740,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) @@ -46812,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) @@ -46847,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) @@ -46894,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) @@ -46935,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) @@ -46974,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) @@ -47011,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) @@ -47062,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) @@ -47101,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) @@ -47186,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) @@ -47223,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) @@ -47262,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) @@ -47303,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) @@ -47338,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) @@ -47410,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) @@ -47486,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) @@ -47612,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) @@ -47649,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) @@ -47694,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) @@ -47737,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) @@ -47793,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) @@ -47834,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) @@ -47902,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) @@ -47943,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) @@ -47997,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) @@ -48123,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) @@ -48164,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) @@ -48244,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) @@ -48285,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) @@ -48419,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) @@ -48464,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) @@ -48500,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) @@ -48541,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) @@ -48578,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) @@ -48631,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) @@ -48687,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) @@ -48725,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) @@ -48762,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) @@ -48805,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) @@ -48846,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) @@ -48887,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) @@ -48924,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) @@ -48963,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) @@ -49010,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) @@ -49059,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) @@ -49098,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) @@ -49146,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) @@ -49187,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) @@ -49297,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) @@ -49369,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) @@ -49412,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) @@ -49461,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) @@ -49510,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) @@ -49551,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) @@ -49681,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) @@ -49734,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) @@ -49777,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) @@ -49820,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) @@ -49894,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) @@ -50004,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) @@ -50046,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) @@ -50085,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) @@ -50123,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) @@ -50246,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) @@ -50281,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) @@ -50318,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) @@ -50365,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) @@ -50424,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) diff --git a/cef/src/bindings/x86_64_unknown_linux_gnu.rs b/cef/src/bindings/x86_64_unknown_linux_gnu.rs index fa71a5c..4d692a2 100644 --- a/cef/src/bindings/x86_64_unknown_linux_gnu.rs +++ b/cef/src/bindings/x86_64_unknown_linux_gnu.rs @@ -45125,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) @@ -45174,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) @@ -45211,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) @@ -45248,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) @@ -45293,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) @@ -45336,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) @@ -45373,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) @@ -45410,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) @@ -45447,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) @@ -45489,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) @@ -45534,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) @@ -45585,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) @@ -45620,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) @@ -46235,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) @@ -46309,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) @@ -46421,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) @@ -46481,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) @@ -46561,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) @@ -46629,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) @@ -46704,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) @@ -46783,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) @@ -46855,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) @@ -46890,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) @@ -46937,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) @@ -46978,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) @@ -47017,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) @@ -47054,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) @@ -47105,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) @@ -47144,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) @@ -47229,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) @@ -47266,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) @@ -47305,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) @@ -47346,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) @@ -47381,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) @@ -47453,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) @@ -47529,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) @@ -47655,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) @@ -47692,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) @@ -47737,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) @@ -47780,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) @@ -47836,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) @@ -47877,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) @@ -47945,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) @@ -47986,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) @@ -48040,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) @@ -48166,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) @@ -48207,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) @@ -48287,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) @@ -48328,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) @@ -48462,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) @@ -48507,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) @@ -48543,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) @@ -48584,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) @@ -48621,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) @@ -48674,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) @@ -48730,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) @@ -48768,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) @@ -48805,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) @@ -48848,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) @@ -48889,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) @@ -48930,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) @@ -48967,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) @@ -49006,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) @@ -49053,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) @@ -49102,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) @@ -49141,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) @@ -49189,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) @@ -49230,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) @@ -49340,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) @@ -49412,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) @@ -49455,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) @@ -49504,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) @@ -49553,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) @@ -49594,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) @@ -49724,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) @@ -49777,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) @@ -49820,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) @@ -49863,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) @@ -49937,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) @@ -50047,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) @@ -50089,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) @@ -50128,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) @@ -50166,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) @@ -50289,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) @@ -50324,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) @@ -50361,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) @@ -50408,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) @@ -50467,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)