From 1348407ec7a21383adf27d3b0314ee4dc381f9b0 Mon Sep 17 00:00:00 2001 From: abba23 Date: Sat, 1 May 2021 17:47:39 +0200 Subject: [PATCH] Reduce size of CEF bindings Only generate bindings that are actually needed. --- src/{cef_urlrequest_capi.rs => cef.rs} | 1597 +----------------------- src/lib.rs | 4 +- 2 files changed, 60 insertions(+), 1541 deletions(-) rename src/{cef_urlrequest_capi.rs => cef.rs} (61%) diff --git a/src/cef_urlrequest_capi.rs b/src/cef.rs similarity index 61% rename from src/cef_urlrequest_capi.rs rename to src/cef.rs index 9aefeb1..0dc5278 100644 --- a/src/cef_urlrequest_capi.rs +++ b/src/cef.rs @@ -27,760 +27,32 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -// bindgen --no-doc-comments --no-derive-copy --no-derive-debug --no-layout-tests include/capi/cef_urlrequest_capi.h -- -I. - #![allow(dead_code, non_camel_case_types, non_snake_case, non_upper_case_globals)] +// bindgen --no-doc-comments --no-derive-copy --no-derive-debug --no-layout-tests --whitelist-function cef_urlrequest_create --whitelist-function cef_string_userfree_utf16_free -o src/cef.rs include/capi/cef_urlrequest_capi.h -- -I. + /* automatically generated by rust-bindgen 0.57.0 */ -pub const _STDINT_H: u32 = 1; -pub const _FEATURES_H: u32 = 1; -pub const _DEFAULT_SOURCE: u32 = 1; -pub const __GLIBC_USE_ISOC2X: u32 = 0; -pub const __USE_ISOC11: u32 = 1; -pub const __USE_ISOC99: u32 = 1; -pub const __USE_ISOC95: u32 = 1; -pub const __USE_POSIX_IMPLICITLY: u32 = 1; -pub const _POSIX_SOURCE: u32 = 1; -pub const _POSIX_C_SOURCE: u32 = 200809; -pub const __USE_POSIX: u32 = 1; -pub const __USE_POSIX2: u32 = 1; -pub const __USE_POSIX199309: u32 = 1; -pub const __USE_POSIX199506: u32 = 1; -pub const __USE_XOPEN2K: u32 = 1; -pub const __USE_XOPEN2K8: u32 = 1; -pub const _ATFILE_SOURCE: u32 = 1; -pub const __USE_MISC: u32 = 1; -pub const __USE_ATFILE: u32 = 1; -pub const __USE_FORTIFY_LEVEL: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_GETS: u32 = 0; -pub const __GLIBC_USE_DEPRECATED_SCANF: u32 = 0; -pub const _STDC_PREDEF_H: u32 = 1; -pub const __STDC_IEC_559__: u32 = 1; -pub const __STDC_IEC_559_COMPLEX__: u32 = 1; -pub const __STDC_ISO_10646__: u32 = 201706; -pub const __GNU_LIBRARY__: u32 = 6; -pub const __GLIBC__: u32 = 2; -pub const __GLIBC_MINOR__: u32 = 33; -pub const _SYS_CDEFS_H: u32 = 1; -pub const __glibc_c99_flexarr_available: u32 = 1; -pub const __WORDSIZE: u32 = 64; -pub const __WORDSIZE_TIME64_COMPAT32: u32 = 1; -pub const __SYSCALL_WORDSIZE: u32 = 64; -pub const __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI: u32 = 0; -pub const __HAVE_GENERIC_SELECTION: u32 = 1; -pub const __GLIBC_USE_LIB_EXT2: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_BFP_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT: u32 = 0; -pub const __GLIBC_USE_IEC_60559_FUNCS_EXT_C2X: u32 = 0; -pub const __GLIBC_USE_IEC_60559_TYPES_EXT: u32 = 0; -pub const _BITS_TYPES_H: u32 = 1; -pub const __TIMESIZE: u32 = 64; -pub const _BITS_TYPESIZES_H: u32 = 1; -pub const __OFF_T_MATCHES_OFF64_T: u32 = 1; -pub const __INO_T_MATCHES_INO64_T: u32 = 1; -pub const __RLIM_T_MATCHES_RLIM64_T: u32 = 1; -pub const __STATFS_MATCHES_STATFS64: u32 = 1; -pub const __KERNEL_OLD_TIMEVAL_MATCHES_TIMEVAL64: u32 = 1; -pub const __FD_SETSIZE: u32 = 1024; -pub const _BITS_TIME64_H: u32 = 1; -pub const _BITS_WCHAR_H: u32 = 1; -pub const _BITS_STDINT_INTN_H: u32 = 1; -pub const _BITS_STDINT_UINTN_H: u32 = 1; -pub const INT8_MIN: i32 = -128; -pub const INT16_MIN: i32 = -32768; -pub const INT32_MIN: i32 = -2147483648; -pub const INT8_MAX: u32 = 127; -pub const INT16_MAX: u32 = 32767; -pub const INT32_MAX: u32 = 2147483647; -pub const UINT8_MAX: u32 = 255; -pub const UINT16_MAX: u32 = 65535; -pub const UINT32_MAX: u32 = 4294967295; -pub const INT_LEAST8_MIN: i32 = -128; -pub const INT_LEAST16_MIN: i32 = -32768; -pub const INT_LEAST32_MIN: i32 = -2147483648; -pub const INT_LEAST8_MAX: u32 = 127; -pub const INT_LEAST16_MAX: u32 = 32767; -pub const INT_LEAST32_MAX: u32 = 2147483647; -pub const UINT_LEAST8_MAX: u32 = 255; -pub const UINT_LEAST16_MAX: u32 = 65535; -pub const UINT_LEAST32_MAX: u32 = 4294967295; -pub const INT_FAST8_MIN: i32 = -128; -pub const INT_FAST16_MIN: i64 = -9223372036854775808; -pub const INT_FAST32_MIN: i64 = -9223372036854775808; -pub const INT_FAST8_MAX: u32 = 127; -pub const INT_FAST16_MAX: u64 = 9223372036854775807; -pub const INT_FAST32_MAX: u64 = 9223372036854775807; -pub const UINT_FAST8_MAX: u32 = 255; -pub const UINT_FAST16_MAX: i32 = -1; -pub const UINT_FAST32_MAX: i32 = -1; -pub const INTPTR_MIN: i64 = -9223372036854775808; -pub const INTPTR_MAX: u64 = 9223372036854775807; -pub const UINTPTR_MAX: i32 = -1; -pub const PTRDIFF_MIN: i64 = -9223372036854775808; -pub const PTRDIFF_MAX: u64 = 9223372036854775807; -pub const SIG_ATOMIC_MIN: i32 = -2147483648; -pub const SIG_ATOMIC_MAX: u32 = 2147483647; -pub const SIZE_MAX: i32 = -1; -pub const WINT_MIN: u32 = 0; -pub const WINT_MAX: u32 = 4294967295; -pub const OS_LINUX: u32 = 1; -pub const OS_POSIX: u32 = 1; -pub const COMPILER_GCC: u32 = 1; -pub const ARCH_CPU_X86_FAMILY: u32 = 1; -pub const ARCH_CPU_X86_64: u32 = 1; -pub const ARCH_CPU_64_BITS: u32 = 1; -pub const ARCH_CPU_LITTLE_ENDIAN: u32 = 1; -pub const CEF_STRING_TYPE_UTF16: u32 = 1; -pub const _LIBC_LIMITS_H_: u32 = 1; -pub const MB_LEN_MAX: u32 = 16; -pub const _BITS_POSIX1_LIM_H: u32 = 1; -pub const _POSIX_AIO_LISTIO_MAX: u32 = 2; -pub const _POSIX_AIO_MAX: u32 = 1; -pub const _POSIX_ARG_MAX: u32 = 4096; -pub const _POSIX_CHILD_MAX: u32 = 25; -pub const _POSIX_DELAYTIMER_MAX: u32 = 32; -pub const _POSIX_HOST_NAME_MAX: u32 = 255; -pub const _POSIX_LINK_MAX: u32 = 8; -pub const _POSIX_LOGIN_NAME_MAX: u32 = 9; -pub const _POSIX_MAX_CANON: u32 = 255; -pub const _POSIX_MAX_INPUT: u32 = 255; -pub const _POSIX_MQ_OPEN_MAX: u32 = 8; -pub const _POSIX_MQ_PRIO_MAX: u32 = 32; -pub const _POSIX_NAME_MAX: u32 = 14; -pub const _POSIX_NGROUPS_MAX: u32 = 8; -pub const _POSIX_OPEN_MAX: u32 = 20; -pub const _POSIX_PATH_MAX: u32 = 256; -pub const _POSIX_PIPE_BUF: u32 = 512; -pub const _POSIX_RE_DUP_MAX: u32 = 255; -pub const _POSIX_RTSIG_MAX: u32 = 8; -pub const _POSIX_SEM_NSEMS_MAX: u32 = 256; -pub const _POSIX_SEM_VALUE_MAX: u32 = 32767; -pub const _POSIX_SIGQUEUE_MAX: u32 = 32; -pub const _POSIX_SSIZE_MAX: u32 = 32767; -pub const _POSIX_STREAM_MAX: u32 = 8; -pub const _POSIX_SYMLINK_MAX: u32 = 255; -pub const _POSIX_SYMLOOP_MAX: u32 = 8; -pub const _POSIX_TIMER_MAX: u32 = 32; -pub const _POSIX_TTY_NAME_MAX: u32 = 9; -pub const _POSIX_TZNAME_MAX: u32 = 6; -pub const _POSIX_CLOCKRES_MIN: u32 = 20000000; -pub const NR_OPEN: u32 = 1024; -pub const NGROUPS_MAX: u32 = 65536; -pub const ARG_MAX: u32 = 131072; -pub const LINK_MAX: u32 = 127; -pub const MAX_CANON: u32 = 255; -pub const MAX_INPUT: u32 = 255; -pub const NAME_MAX: u32 = 255; -pub const PATH_MAX: u32 = 4096; -pub const PIPE_BUF: u32 = 4096; -pub const XATTR_NAME_MAX: u32 = 255; -pub const XATTR_SIZE_MAX: u32 = 65536; -pub const XATTR_LIST_MAX: u32 = 65536; -pub const RTSIG_MAX: u32 = 32; -pub const _POSIX_THREAD_KEYS_MAX: u32 = 128; -pub const PTHREAD_KEYS_MAX: u32 = 1024; -pub const _POSIX_THREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const PTHREAD_DESTRUCTOR_ITERATIONS: u32 = 4; -pub const _POSIX_THREAD_THREADS_MAX: u32 = 64; -pub const AIO_PRIO_DELTA_MAX: u32 = 20; -pub const PTHREAD_STACK_MIN: u32 = 16384; -pub const DELAYTIMER_MAX: u32 = 2147483647; -pub const TTY_NAME_MAX: u32 = 32; -pub const LOGIN_NAME_MAX: u32 = 256; -pub const HOST_NAME_MAX: u32 = 64; -pub const MQ_PRIO_MAX: u32 = 32768; -pub const SEM_VALUE_MAX: u32 = 2147483647; -pub const _BITS_POSIX2_LIM_H: u32 = 1; -pub const _POSIX2_BC_BASE_MAX: u32 = 99; -pub const _POSIX2_BC_DIM_MAX: u32 = 2048; -pub const _POSIX2_BC_SCALE_MAX: u32 = 99; -pub const _POSIX2_BC_STRING_MAX: u32 = 1000; -pub const _POSIX2_COLL_WEIGHTS_MAX: u32 = 2; -pub const _POSIX2_EXPR_NEST_MAX: u32 = 32; -pub const _POSIX2_LINE_MAX: u32 = 2048; -pub const _POSIX2_RE_DUP_MAX: u32 = 255; -pub const _POSIX2_CHARCLASS_NAME_MAX: u32 = 14; -pub const BC_BASE_MAX: u32 = 99; -pub const BC_DIM_MAX: u32 = 2048; -pub const BC_SCALE_MAX: u32 = 99; -pub const BC_STRING_MAX: u32 = 1000; -pub const COLL_WEIGHTS_MAX: u32 = 255; -pub const EXPR_NEST_MAX: u32 = 32; -pub const LINE_MAX: u32 = 2048; -pub const CHARCLASS_NAME_MAX: u32 = 2048; -pub const RE_DUP_MAX: u32 = 32767; -pub const _TIME_H: u32 = 1; -pub const _BITS_TIME_H: u32 = 1; -pub const CLOCK_REALTIME: u32 = 0; -pub const CLOCK_MONOTONIC: u32 = 1; -pub const CLOCK_PROCESS_CPUTIME_ID: u32 = 2; -pub const CLOCK_THREAD_CPUTIME_ID: u32 = 3; -pub const CLOCK_MONOTONIC_RAW: u32 = 4; -pub const CLOCK_REALTIME_COARSE: u32 = 5; -pub const CLOCK_MONOTONIC_COARSE: u32 = 6; -pub const CLOCK_BOOTTIME: u32 = 7; -pub const CLOCK_REALTIME_ALARM: u32 = 8; -pub const CLOCK_BOOTTIME_ALARM: u32 = 9; -pub const CLOCK_TAI: u32 = 11; -pub const TIMER_ABSTIME: u32 = 1; -pub const __clock_t_defined: u32 = 1; -pub const __time_t_defined: u32 = 1; -pub const __struct_tm_defined: u32 = 1; -pub const _STRUCT_TIMESPEC: u32 = 1; -pub const _BITS_ENDIAN_H: u32 = 1; -pub const __LITTLE_ENDIAN: u32 = 1234; -pub const __BIG_ENDIAN: u32 = 4321; -pub const __PDP_ENDIAN: u32 = 3412; -pub const _BITS_ENDIANNESS_H: u32 = 1; -pub const __BYTE_ORDER: u32 = 1234; -pub const __FLOAT_WORD_ORDER: u32 = 1234; -pub const __clockid_t_defined: u32 = 1; -pub const __timer_t_defined: u32 = 1; -pub const __itimerspec_defined: u32 = 1; -pub const _BITS_TYPES_LOCALE_T_H: u32 = 1; -pub const _BITS_TYPES___LOCALE_T_H: u32 = 1; -pub const TIME_UTC: u32 = 1; -pub const kNullCursorHandle: u32 = 0; -pub const kNullWindowHandle: u32 = 0; -pub type __u_char = ::std::os::raw::c_uchar; -pub type __u_short = ::std::os::raw::c_ushort; -pub type __u_int = ::std::os::raw::c_uint; -pub type __u_long = ::std::os::raw::c_ulong; -pub type __int8_t = ::std::os::raw::c_schar; -pub type __uint8_t = ::std::os::raw::c_uchar; -pub type __int16_t = ::std::os::raw::c_short; -pub type __uint16_t = ::std::os::raw::c_ushort; -pub type __int32_t = ::std::os::raw::c_int; -pub type __uint32_t = ::std::os::raw::c_uint; -pub type __int64_t = ::std::os::raw::c_long; -pub type __uint64_t = ::std::os::raw::c_ulong; -pub type __int_least8_t = __int8_t; -pub type __uint_least8_t = __uint8_t; -pub type __int_least16_t = __int16_t; -pub type __uint_least16_t = __uint16_t; -pub type __int_least32_t = __int32_t; -pub type __uint_least32_t = __uint32_t; -pub type __int_least64_t = __int64_t; -pub type __uint_least64_t = __uint64_t; -pub type __quad_t = ::std::os::raw::c_long; -pub type __u_quad_t = ::std::os::raw::c_ulong; -pub type __intmax_t = ::std::os::raw::c_long; -pub type __uintmax_t = ::std::os::raw::c_ulong; -pub type __dev_t = ::std::os::raw::c_ulong; -pub type __uid_t = ::std::os::raw::c_uint; -pub type __gid_t = ::std::os::raw::c_uint; -pub type __ino_t = ::std::os::raw::c_ulong; -pub type __ino64_t = ::std::os::raw::c_ulong; -pub type __mode_t = ::std::os::raw::c_uint; -pub type __nlink_t = ::std::os::raw::c_ulong; -pub type __off_t = ::std::os::raw::c_long; -pub type __off64_t = ::std::os::raw::c_long; -pub type __pid_t = ::std::os::raw::c_int; -#[repr(C)] -pub struct __fsid_t { - pub __val: [::std::os::raw::c_int; 2usize], -} -pub type __clock_t = ::std::os::raw::c_long; -pub type __rlim_t = ::std::os::raw::c_ulong; -pub type __rlim64_t = ::std::os::raw::c_ulong; -pub type __id_t = ::std::os::raw::c_uint; -pub type __time_t = ::std::os::raw::c_long; -pub type __useconds_t = ::std::os::raw::c_uint; -pub type __suseconds_t = ::std::os::raw::c_long; -pub type __suseconds64_t = ::std::os::raw::c_long; -pub type __daddr_t = ::std::os::raw::c_int; -pub type __key_t = ::std::os::raw::c_int; -pub type __clockid_t = ::std::os::raw::c_int; -pub type __timer_t = *mut ::std::os::raw::c_void; -pub type __blksize_t = ::std::os::raw::c_long; -pub type __blkcnt_t = ::std::os::raw::c_long; -pub type __blkcnt64_t = ::std::os::raw::c_long; -pub type __fsblkcnt_t = ::std::os::raw::c_ulong; -pub type __fsblkcnt64_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt_t = ::std::os::raw::c_ulong; -pub type __fsfilcnt64_t = ::std::os::raw::c_ulong; -pub type __fsword_t = ::std::os::raw::c_long; -pub type __ssize_t = ::std::os::raw::c_long; -pub type __syscall_slong_t = ::std::os::raw::c_long; -pub type __syscall_ulong_t = ::std::os::raw::c_ulong; -pub type __loff_t = __off64_t; -pub type __caddr_t = *mut ::std::os::raw::c_char; -pub type __intptr_t = ::std::os::raw::c_long; -pub type __socklen_t = ::std::os::raw::c_uint; -pub type __sig_atomic_t = ::std::os::raw::c_int; -pub type int_least8_t = __int_least8_t; -pub type int_least16_t = __int_least16_t; -pub type int_least32_t = __int_least32_t; -pub type int_least64_t = __int_least64_t; -pub type uint_least8_t = __uint_least8_t; -pub type uint_least16_t = __uint_least16_t; -pub type uint_least32_t = __uint_least32_t; -pub type uint_least64_t = __uint_least64_t; -pub type int_fast8_t = ::std::os::raw::c_schar; -pub type int_fast16_t = ::std::os::raw::c_long; -pub type int_fast32_t = ::std::os::raw::c_long; -pub type int_fast64_t = ::std::os::raw::c_long; -pub type uint_fast8_t = ::std::os::raw::c_uchar; -pub type uint_fast16_t = ::std::os::raw::c_ulong; -pub type uint_fast32_t = ::std::os::raw::c_ulong; -pub type uint_fast64_t = ::std::os::raw::c_ulong; -pub type intmax_t = __intmax_t; -pub type uintmax_t = __uintmax_t; -pub type wchar_t = ::std::os::raw::c_int; -#[repr(C)] -#[repr(align(16))] -pub struct max_align_t { - pub __clang_max_align_nonce1: ::std::os::raw::c_longlong, - pub __bindgen_padding_0: u64, - pub __clang_max_align_nonce2: u128, -} +pub type size_t = ::std::os::raw::c_ulong; pub type int64 = ::std::os::raw::c_long; pub type uint64 = ::std::os::raw::c_ulong; -pub type int32 = ::std::os::raw::c_int; pub type uint32 = ::std::os::raw::c_uint; -pub type int16 = ::std::os::raw::c_short; -pub type uint16 = ::std::os::raw::c_ushort; pub type char16 = ::std::os::raw::c_ushort; #[repr(C)] -pub struct _cef_string_wide_t { - pub str_: *mut wchar_t, - pub length: usize, - pub dtor: ::std::option::Option, -} -pub type cef_string_wide_t = _cef_string_wide_t; -#[repr(C)] -pub struct _cef_string_utf8_t { - pub str_: *mut ::std::os::raw::c_char, - pub length: usize, - pub dtor: ::std::option::Option, -} -pub type cef_string_utf8_t = _cef_string_utf8_t; -#[repr(C)] pub struct _cef_string_utf16_t { pub str_: *mut char16, - pub length: usize, + pub length: size_t, pub dtor: ::std::option::Option, } pub type cef_string_utf16_t = _cef_string_utf16_t; -extern "C" { - pub fn cef_string_wide_set( - src: *const wchar_t, - src_len: usize, - output: *mut cef_string_wide_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_set( - src: *const ::std::os::raw::c_char, - src_len: usize, - output: *mut cef_string_utf8_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_set( - src: *const char16, - src_len: usize, - output: *mut cef_string_utf16_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_wide_clear(str_: *mut cef_string_wide_t); -} -extern "C" { - pub fn cef_string_utf8_clear(str_: *mut cef_string_utf8_t); -} -extern "C" { - pub fn cef_string_utf16_clear(str_: *mut cef_string_utf16_t); -} -extern "C" { - pub fn cef_string_wide_cmp(str1: *const cef_string_wide_t, str2: *const cef_string_wide_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_cmp(str1: *const cef_string_utf8_t, str2: *const cef_string_utf8_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_cmp( - str1: *const cef_string_utf16_t, - str2: *const cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_wide_to_utf8( - src: *const wchar_t, - src_len: usize, - output: *mut cef_string_utf8_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_to_wide( - src: *const ::std::os::raw::c_char, - src_len: usize, - output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_wide_to_utf16( - src: *const wchar_t, - src_len: usize, - output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_wide( - src: *const char16, - src_len: usize, - output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_to_utf16( - src: *const ::std::os::raw::c_char, - src_len: usize, - output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_utf8( - src: *const char16, - src_len: usize, - output: *mut cef_string_utf8_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_ascii_to_wide( - src: *const ::std::os::raw::c_char, - src_len: usize, - output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_ascii_to_utf16( - src: *const ::std::os::raw::c_char, - src_len: usize, - output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -pub type cef_string_userfree_wide_t = *mut cef_string_wide_t; -pub type cef_string_userfree_utf8_t = *mut cef_string_utf8_t; pub type cef_string_userfree_utf16_t = *mut cef_string_utf16_t; -extern "C" { - pub fn cef_string_userfree_wide_alloc() -> cef_string_userfree_wide_t; -} -extern "C" { - pub fn cef_string_userfree_utf8_alloc() -> cef_string_userfree_utf8_t; -} -extern "C" { - pub fn cef_string_userfree_utf16_alloc() -> cef_string_userfree_utf16_t; -} -extern "C" { - pub fn cef_string_userfree_wide_free(str_: cef_string_userfree_wide_t); -} -extern "C" { - pub fn cef_string_userfree_utf8_free(str_: cef_string_userfree_utf8_t); -} extern "C" { pub fn cef_string_userfree_utf16_free(str_: cef_string_userfree_utf16_t); } -extern "C" { - pub fn cef_string_utf16_to_lower( - src: *const char16, - src_len: usize, - output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_upper( - src: *const char16, - src_len: usize, - output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -pub type cef_char_t = char16; pub type cef_string_userfree_t = cef_string_userfree_utf16_t; pub type cef_string_t = cef_string_utf16_t; pub type cef_string_list_t = *mut ::std::os::raw::c_void; -extern "C" { - pub fn cef_string_list_alloc() -> cef_string_list_t; -} -extern "C" { - pub fn cef_string_list_size(list: cef_string_list_t) -> usize; -} -extern "C" { - pub fn cef_string_list_value( - list: cef_string_list_t, - index: usize, - value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_list_append(list: cef_string_list_t, value: *const cef_string_t); -} -extern "C" { - pub fn cef_string_list_clear(list: cef_string_list_t); -} -extern "C" { - pub fn cef_string_list_free(list: cef_string_list_t); -} -extern "C" { - pub fn cef_string_list_copy(list: cef_string_list_t) -> cef_string_list_t; -} pub type cef_string_map_t = *mut ::std::os::raw::c_void; -extern "C" { - pub fn cef_string_map_alloc() -> cef_string_map_t; -} -extern "C" { - pub fn cef_string_map_size(map: cef_string_map_t) -> usize; -} -extern "C" { - pub fn cef_string_map_find( - map: cef_string_map_t, - key: *const cef_string_t, - value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_map_key(map: cef_string_map_t, index: usize, key: *mut cef_string_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_map_value(map: cef_string_map_t, index: usize, value: *mut cef_string_t) - -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_map_append( - map: cef_string_map_t, - key: *const cef_string_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_map_clear(map: cef_string_map_t); -} -extern "C" { - pub fn cef_string_map_free(map: cef_string_map_t); -} pub type cef_string_multimap_t = *mut ::std::os::raw::c_void; -extern "C" { - pub fn cef_string_multimap_alloc() -> cef_string_multimap_t; -} -extern "C" { - pub fn cef_string_multimap_size(map: cef_string_multimap_t) -> usize; -} -extern "C" { - pub fn cef_string_multimap_find_count(map: cef_string_multimap_t, key: *const cef_string_t) -> usize; -} -extern "C" { - pub fn cef_string_multimap_enumerate( - map: cef_string_multimap_t, - key: *const cef_string_t, - value_index: usize, - value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_multimap_key( - map: cef_string_multimap_t, - index: usize, - key: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_multimap_value( - map: cef_string_multimap_t, - index: usize, - value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_multimap_append( - map: cef_string_multimap_t, - key: *const cef_string_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_multimap_clear(map: cef_string_multimap_t); -} -extern "C" { - pub fn cef_string_multimap_free(map: cef_string_multimap_t); -} -pub type clock_t = __clock_t; -pub type time_t = __time_t; -#[repr(C)] -pub struct tm { - pub tm_sec: ::std::os::raw::c_int, - pub tm_min: ::std::os::raw::c_int, - pub tm_hour: ::std::os::raw::c_int, - pub tm_mday: ::std::os::raw::c_int, - pub tm_mon: ::std::os::raw::c_int, - pub tm_year: ::std::os::raw::c_int, - pub tm_wday: ::std::os::raw::c_int, - pub tm_yday: ::std::os::raw::c_int, - pub tm_isdst: ::std::os::raw::c_int, - pub tm_gmtoff: ::std::os::raw::c_long, - pub tm_zone: *const ::std::os::raw::c_char, -} -#[repr(C)] -pub struct timespec { - pub tv_sec: __time_t, - pub tv_nsec: __syscall_slong_t, -} -pub type clockid_t = __clockid_t; -pub type timer_t = __timer_t; -#[repr(C)] -pub struct itimerspec { - pub it_interval: timespec, - pub it_value: timespec, -} -#[repr(C)] -pub struct sigevent { - _unused: [u8; 0], -} -pub type pid_t = __pid_t; -#[repr(C)] -pub struct __locale_struct { - pub __locales: [*mut __locale_data; 13usize], - pub __ctype_b: *const ::std::os::raw::c_ushort, - pub __ctype_tolower: *const ::std::os::raw::c_int, - pub __ctype_toupper: *const ::std::os::raw::c_int, - pub __names: [*const ::std::os::raw::c_char; 13usize], -} -pub type __locale_t = *mut __locale_struct; -pub type locale_t = __locale_t; -extern "C" { - pub fn clock() -> clock_t; -} -extern "C" { - pub fn time(__timer: *mut time_t) -> time_t; -} -extern "C" { - pub fn difftime(__time1: time_t, __time0: time_t) -> f64; -} -extern "C" { - pub fn mktime(__tp: *mut tm) -> time_t; -} -extern "C" { - pub fn strftime( - __s: *mut ::std::os::raw::c_char, - __maxsize: usize, - __format: *const ::std::os::raw::c_char, - __tp: *const tm, - ) -> usize; -} -extern "C" { - pub fn strftime_l( - __s: *mut ::std::os::raw::c_char, - __maxsize: usize, - __format: *const ::std::os::raw::c_char, - __tp: *const tm, - __loc: locale_t, - ) -> usize; -} -extern "C" { - pub fn gmtime(__timer: *const time_t) -> *mut tm; -} -extern "C" { - pub fn localtime(__timer: *const time_t) -> *mut tm; -} -extern "C" { - pub fn gmtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; -} -extern "C" { - pub fn localtime_r(__timer: *const time_t, __tp: *mut tm) -> *mut tm; -} -extern "C" { - pub fn asctime(__tp: *const tm) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn ctime(__timer: *const time_t) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn asctime_r(__tp: *const tm, __buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub fn ctime_r(__timer: *const time_t, __buf: *mut ::std::os::raw::c_char) -> *mut ::std::os::raw::c_char; -} -extern "C" { - pub static mut __tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub static mut __daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut __timezone: ::std::os::raw::c_long; -} -extern "C" { - pub static mut tzname: [*mut ::std::os::raw::c_char; 2usize]; -} -extern "C" { - pub fn tzset(); -} -extern "C" { - pub static mut daylight: ::std::os::raw::c_int; -} -extern "C" { - pub static mut timezone: ::std::os::raw::c_long; -} -extern "C" { - pub fn timegm(__tp: *mut tm) -> time_t; -} -extern "C" { - pub fn timelocal(__tp: *mut tm) -> time_t; -} -extern "C" { - pub fn dysize(__year: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn nanosleep(__requested_time: *const timespec, __remaining: *mut timespec) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn clock_getres(__clock_id: clockid_t, __res: *mut timespec) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn clock_gettime(__clock_id: clockid_t, __tp: *mut timespec) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn clock_settime(__clock_id: clockid_t, __tp: *const timespec) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn clock_nanosleep( - __clock_id: clockid_t, - __flags: ::std::os::raw::c_int, - __req: *const timespec, - __rem: *mut timespec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn clock_getcpuclockid(__pid: pid_t, __clock_id: *mut clockid_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timer_create(__clock_id: clockid_t, __evp: *mut sigevent, __timerid: *mut timer_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timer_delete(__timerid: timer_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timer_settime( - __timerid: timer_t, - __flags: ::std::os::raw::c_int, - __value: *const itimerspec, - __ovalue: *mut itimerspec, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timer_gettime(__timerid: timer_t, __value: *mut itimerspec) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timer_getoverrun(__timerid: timer_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn timespec_get(__ts: *mut timespec, __base: ::std::os::raw::c_int) -> ::std::os::raw::c_int; -} #[repr(C)] pub struct _cef_time_t { pub year: ::std::os::raw::c_int, @@ -793,34 +65,6 @@ pub struct _cef_time_t { pub millisecond: ::std::os::raw::c_int, } pub type cef_time_t = _cef_time_t; -extern "C" { - pub fn cef_time_to_timet(cef_time: *const cef_time_t, time: *mut time_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_from_timet(time: time_t, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_to_doublet(cef_time: *const cef_time_t, time: *mut f64) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_from_doublet(time: f64, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_now(cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_delta( - cef_time1: *const cef_time_t, - cef_time2: *const cef_time_t, - delta: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_int; -} -#[repr(C)] -pub struct _cef_main_args_t { - pub argc: ::std::os::raw::c_int, - pub argv: *mut *mut ::std::os::raw::c_char, -} -pub type cef_main_args_t = _cef_main_args_t; #[repr(C)] pub struct _cef_window_info_t { pub window_name: cef_string_t, @@ -834,67 +78,14 @@ pub struct _cef_window_info_t { pub external_begin_frame_enabled: ::std::os::raw::c_int, pub window: ::std::os::raw::c_ulong, } -pub type cef_window_info_t = _cef_window_info_t; pub type cef_color_t = uint32; -pub const cef_log_severity_t_LOGSEVERITY_DEFAULT: cef_log_severity_t = 0; -pub const cef_log_severity_t_LOGSEVERITY_VERBOSE: cef_log_severity_t = 1; -pub const cef_log_severity_t_LOGSEVERITY_DEBUG: cef_log_severity_t = 1; -pub const cef_log_severity_t_LOGSEVERITY_INFO: cef_log_severity_t = 2; -pub const cef_log_severity_t_LOGSEVERITY_WARNING: cef_log_severity_t = 3; -pub const cef_log_severity_t_LOGSEVERITY_ERROR: cef_log_severity_t = 4; -pub const cef_log_severity_t_LOGSEVERITY_FATAL: cef_log_severity_t = 5; -pub const cef_log_severity_t_LOGSEVERITY_DISABLE: cef_log_severity_t = 99; -pub type cef_log_severity_t = ::std::os::raw::c_uint; pub const cef_state_t_STATE_DEFAULT: cef_state_t = 0; pub const cef_state_t_STATE_ENABLED: cef_state_t = 1; pub const cef_state_t_STATE_DISABLED: cef_state_t = 2; pub type cef_state_t = ::std::os::raw::c_uint; #[repr(C)] -pub struct _cef_settings_t { - pub size: usize, - pub no_sandbox: ::std::os::raw::c_int, - pub browser_subprocess_path: cef_string_t, - pub framework_dir_path: cef_string_t, - pub main_bundle_path: cef_string_t, - pub multi_threaded_message_loop: ::std::os::raw::c_int, - pub external_message_pump: ::std::os::raw::c_int, - pub windowless_rendering_enabled: ::std::os::raw::c_int, - pub command_line_args_disabled: ::std::os::raw::c_int, - pub cache_path: cef_string_t, - pub root_cache_path: cef_string_t, - pub user_data_path: cef_string_t, - pub persist_session_cookies: ::std::os::raw::c_int, - pub persist_user_preferences: ::std::os::raw::c_int, - pub user_agent: cef_string_t, - pub product_version: cef_string_t, - pub locale: cef_string_t, - pub log_file: cef_string_t, - pub log_severity: cef_log_severity_t, - pub javascript_flags: cef_string_t, - pub resources_dir_path: cef_string_t, - pub locales_dir_path: cef_string_t, - pub pack_loading_disabled: ::std::os::raw::c_int, - pub remote_debugging_port: ::std::os::raw::c_int, - pub uncaught_exception_stack_size: ::std::os::raw::c_int, - pub ignore_certificate_errors: ::std::os::raw::c_int, - pub background_color: cef_color_t, - pub accept_language_list: cef_string_t, - pub application_client_id_for_file_scanning: cef_string_t, -} -pub type cef_settings_t = _cef_settings_t; -#[repr(C)] -pub struct _cef_request_context_settings_t { - pub size: usize, - pub cache_path: cef_string_t, - pub persist_session_cookies: ::std::os::raw::c_int, - pub persist_user_preferences: ::std::os::raw::c_int, - pub ignore_certificate_errors: ::std::os::raw::c_int, - pub accept_language_list: cef_string_t, -} -pub type cef_request_context_settings_t = _cef_request_context_settings_t; -#[repr(C)] pub struct _cef_browser_settings_t { - pub size: usize, + pub size: size_t, pub windowless_frame_rate: ::std::os::raw::c_int, pub standard_font_family: cef_string_t, pub fixed_font_family: cef_string_t, @@ -927,24 +118,6 @@ pub struct _cef_browser_settings_t { pub background_color: cef_color_t, pub accept_language_list: cef_string_t, } -pub type cef_browser_settings_t = _cef_browser_settings_t; -pub const cef_return_value_t_RV_CANCEL: cef_return_value_t = 0; -pub const cef_return_value_t_RV_CONTINUE: cef_return_value_t = 1; -pub const cef_return_value_t_RV_CONTINUE_ASYNC: cef_return_value_t = 2; -pub type cef_return_value_t = ::std::os::raw::c_uint; -#[repr(C)] -pub struct _cef_urlparts_t { - pub spec: cef_string_t, - pub scheme: cef_string_t, - pub username: cef_string_t, - pub password: cef_string_t, - pub host: cef_string_t, - pub port: cef_string_t, - pub origin: cef_string_t, - pub path: cef_string_t, - pub query: cef_string_t, -} -pub type cef_urlparts_t = _cef_urlparts_t; #[repr(C)] pub struct _cef_cookie_t { pub name: cef_string_t, @@ -958,25 +131,6 @@ pub struct _cef_cookie_t { pub has_expires: ::std::os::raw::c_int, pub expires: cef_time_t, } -pub type cef_cookie_t = _cef_cookie_t; -pub const cef_termination_status_t_TS_ABNORMAL_TERMINATION: cef_termination_status_t = 0; -pub const cef_termination_status_t_TS_PROCESS_WAS_KILLED: cef_termination_status_t = 1; -pub const cef_termination_status_t_TS_PROCESS_CRASHED: cef_termination_status_t = 2; -pub const cef_termination_status_t_TS_PROCESS_OOM: cef_termination_status_t = 3; -pub type cef_termination_status_t = ::std::os::raw::c_uint; -pub const cef_path_key_t_PK_DIR_CURRENT: cef_path_key_t = 0; -pub const cef_path_key_t_PK_DIR_EXE: cef_path_key_t = 1; -pub const cef_path_key_t_PK_DIR_MODULE: cef_path_key_t = 2; -pub const cef_path_key_t_PK_DIR_TEMP: cef_path_key_t = 3; -pub const cef_path_key_t_PK_FILE_EXE: cef_path_key_t = 4; -pub const cef_path_key_t_PK_FILE_MODULE: cef_path_key_t = 5; -pub const cef_path_key_t_PK_LOCAL_APP_DATA: cef_path_key_t = 6; -pub const cef_path_key_t_PK_USER_DATA: cef_path_key_t = 7; -pub const cef_path_key_t_PK_DIR_RESOURCES: cef_path_key_t = 8; -pub type cef_path_key_t = ::std::os::raw::c_uint; -pub const cef_storage_type_t_ST_LOCALSTORAGE: cef_storage_type_t = 0; -pub const cef_storage_type_t_ST_SESSIONSTORAGE: cef_storage_type_t = 1; -pub type cef_storage_type_t = ::std::os::raw::c_uint; pub const cef_errorcode_t_ERR_NONE: cef_errorcode_t = 0; pub const cef_errorcode_t_ERR_IO_PENDING: cef_errorcode_t = -1; pub const cef_errorcode_t_ERR_FAILED: cef_errorcode_t = -2; @@ -1223,17 +377,6 @@ pub const cef_cert_status_t_CERT_STATUS_REV_CHECKING_ENABLED: cef_cert_status_t pub const cef_cert_status_t_CERT_STATUS_SHA1_SIGNATURE_PRESENT: cef_cert_status_t = 524288; pub const cef_cert_status_t_CERT_STATUS_CT_COMPLIANCE_FAILED: cef_cert_status_t = 1048576; pub type cef_cert_status_t = ::std::os::raw::c_uint; -pub const cef_window_open_disposition_t_WOD_UNKNOWN: cef_window_open_disposition_t = 0; -pub const cef_window_open_disposition_t_WOD_CURRENT_TAB: cef_window_open_disposition_t = 1; -pub const cef_window_open_disposition_t_WOD_SINGLETON_TAB: cef_window_open_disposition_t = 2; -pub const cef_window_open_disposition_t_WOD_NEW_FOREGROUND_TAB: cef_window_open_disposition_t = 3; -pub const cef_window_open_disposition_t_WOD_NEW_BACKGROUND_TAB: cef_window_open_disposition_t = 4; -pub const cef_window_open_disposition_t_WOD_NEW_POPUP: cef_window_open_disposition_t = 5; -pub const cef_window_open_disposition_t_WOD_NEW_WINDOW: cef_window_open_disposition_t = 6; -pub const cef_window_open_disposition_t_WOD_SAVE_TO_DISK: cef_window_open_disposition_t = 7; -pub const cef_window_open_disposition_t_WOD_OFF_THE_RECORD: cef_window_open_disposition_t = 8; -pub const cef_window_open_disposition_t_WOD_IGNORE_ACTION: cef_window_open_disposition_t = 9; -pub type cef_window_open_disposition_t = ::std::os::raw::c_uint; pub const cef_drag_operations_mask_t_DRAG_OPERATION_NONE: cef_drag_operations_mask_t = 0; pub const cef_drag_operations_mask_t_DRAG_OPERATION_COPY: cef_drag_operations_mask_t = 1; pub const cef_drag_operations_mask_t_DRAG_OPERATION_LINK: cef_drag_operations_mask_t = 2; @@ -1243,27 +386,6 @@ pub const cef_drag_operations_mask_t_DRAG_OPERATION_MOVE: cef_drag_operations_ma pub const cef_drag_operations_mask_t_DRAG_OPERATION_DELETE: cef_drag_operations_mask_t = 32; pub const cef_drag_operations_mask_t_DRAG_OPERATION_EVERY: cef_drag_operations_mask_t = 4294967295; pub type cef_drag_operations_mask_t = ::std::os::raw::c_uint; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_DEFAULT: cef_text_input_mode_t = 0; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_NONE: cef_text_input_mode_t = 1; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_TEXT: cef_text_input_mode_t = 2; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_TEL: cef_text_input_mode_t = 3; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_URL: cef_text_input_mode_t = 4; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_EMAIL: cef_text_input_mode_t = 5; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_NUMERIC: cef_text_input_mode_t = 6; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_DECIMAL: cef_text_input_mode_t = 7; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_SEARCH: cef_text_input_mode_t = 8; -pub const cef_text_input_mode_t_CEF_TEXT_INPUT_MODE_MAX: cef_text_input_mode_t = 8; -pub type cef_text_input_mode_t = ::std::os::raw::c_uint; -pub const cef_v8_accesscontrol_t_V8_ACCESS_CONTROL_DEFAULT: cef_v8_accesscontrol_t = 0; -pub const cef_v8_accesscontrol_t_V8_ACCESS_CONTROL_ALL_CAN_READ: cef_v8_accesscontrol_t = 1; -pub const cef_v8_accesscontrol_t_V8_ACCESS_CONTROL_ALL_CAN_WRITE: cef_v8_accesscontrol_t = 2; -pub const cef_v8_accesscontrol_t_V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING: cef_v8_accesscontrol_t = 4; -pub type cef_v8_accesscontrol_t = ::std::os::raw::c_uint; -pub const cef_v8_propertyattribute_t_V8_PROPERTY_ATTRIBUTE_NONE: cef_v8_propertyattribute_t = 0; -pub const cef_v8_propertyattribute_t_V8_PROPERTY_ATTRIBUTE_READONLY: cef_v8_propertyattribute_t = 1; -pub const cef_v8_propertyattribute_t_V8_PROPERTY_ATTRIBUTE_DONTENUM: cef_v8_propertyattribute_t = 2; -pub const cef_v8_propertyattribute_t_V8_PROPERTY_ATTRIBUTE_DONTDELETE: cef_v8_propertyattribute_t = 4; -pub type cef_v8_propertyattribute_t = ::std::os::raw::c_uint; pub const cef_postdataelement_type_t_PDE_TYPE_EMPTY: cef_postdataelement_type_t = 0; pub const cef_postdataelement_type_t_PDE_TYPE_BYTES: cef_postdataelement_type_t = 1; pub const cef_postdataelement_type_t_PDE_TYPE_FILE: cef_postdataelement_type_t = 2; @@ -1304,16 +426,6 @@ pub const cef_transition_type_t_TT_SERVER_REDIRECT_FLAG: cef_transition_type_t = pub const cef_transition_type_t_TT_IS_REDIRECT_MASK: cef_transition_type_t = 3221225472; pub const cef_transition_type_t_TT_QUALIFIER_MASK: cef_transition_type_t = 4294967040; pub type cef_transition_type_t = ::std::os::raw::c_uint; -pub const cef_urlrequest_flags_t_UR_FLAG_NONE: cef_urlrequest_flags_t = 0; -pub const cef_urlrequest_flags_t_UR_FLAG_SKIP_CACHE: cef_urlrequest_flags_t = 1; -pub const cef_urlrequest_flags_t_UR_FLAG_ONLY_FROM_CACHE: cef_urlrequest_flags_t = 2; -pub const cef_urlrequest_flags_t_UR_FLAG_DISABLE_CACHE: cef_urlrequest_flags_t = 4; -pub const cef_urlrequest_flags_t_UR_FLAG_ALLOW_STORED_CREDENTIALS: cef_urlrequest_flags_t = 8; -pub const cef_urlrequest_flags_t_UR_FLAG_REPORT_UPLOAD_PROGRESS: cef_urlrequest_flags_t = 16; -pub const cef_urlrequest_flags_t_UR_FLAG_NO_DOWNLOAD_DATA: cef_urlrequest_flags_t = 32; -pub const cef_urlrequest_flags_t_UR_FLAG_NO_RETRY_ON_5XX: cef_urlrequest_flags_t = 64; -pub const cef_urlrequest_flags_t_UR_FLAG_STOP_ON_REDIRECT: cef_urlrequest_flags_t = 128; -pub type cef_urlrequest_flags_t = ::std::os::raw::c_uint; pub const cef_urlrequest_status_t_UR_UNKNOWN: cef_urlrequest_status_t = 0; pub const cef_urlrequest_status_t_UR_SUCCESS: cef_urlrequest_status_t = 1; pub const cef_urlrequest_status_t_UR_IO_PENDING: cef_urlrequest_status_t = 2; @@ -1346,45 +458,9 @@ pub struct _cef_range_t { pub to: ::std::os::raw::c_int, } pub type cef_range_t = _cef_range_t; -#[repr(C)] -pub struct _cef_insets_t { - pub top: ::std::os::raw::c_int, - pub left: ::std::os::raw::c_int, - pub bottom: ::std::os::raw::c_int, - pub right: ::std::os::raw::c_int, -} -pub type cef_insets_t = _cef_insets_t; -#[repr(C)] -pub struct _cef_draggable_region_t { - pub bounds: cef_rect_t, - pub draggable: ::std::os::raw::c_int, -} -pub type cef_draggable_region_t = _cef_draggable_region_t; pub const cef_process_id_t_PID_BROWSER: cef_process_id_t = 0; pub const cef_process_id_t_PID_RENDERER: cef_process_id_t = 1; pub type cef_process_id_t = ::std::os::raw::c_uint; -pub const cef_thread_id_t_TID_UI: cef_thread_id_t = 0; -pub const cef_thread_id_t_TID_FILE_BACKGROUND: cef_thread_id_t = 1; -pub const cef_thread_id_t_TID_FILE: cef_thread_id_t = 1; -pub const cef_thread_id_t_TID_FILE_USER_VISIBLE: cef_thread_id_t = 2; -pub const cef_thread_id_t_TID_FILE_USER_BLOCKING: cef_thread_id_t = 3; -pub const cef_thread_id_t_TID_PROCESS_LAUNCHER: cef_thread_id_t = 4; -pub const cef_thread_id_t_TID_IO: cef_thread_id_t = 5; -pub const cef_thread_id_t_TID_RENDERER: cef_thread_id_t = 6; -pub type cef_thread_id_t = ::std::os::raw::c_uint; -pub const cef_thread_priority_t_TP_BACKGROUND: cef_thread_priority_t = 0; -pub const cef_thread_priority_t_TP_NORMAL: cef_thread_priority_t = 1; -pub const cef_thread_priority_t_TP_DISPLAY: cef_thread_priority_t = 2; -pub const cef_thread_priority_t_TP_REALTIME_AUDIO: cef_thread_priority_t = 3; -pub type cef_thread_priority_t = ::std::os::raw::c_uint; -pub const cef_message_loop_type_t_ML_TYPE_DEFAULT: cef_message_loop_type_t = 0; -pub const cef_message_loop_type_t_ML_TYPE_UI: cef_message_loop_type_t = 1; -pub const cef_message_loop_type_t_ML_TYPE_IO: cef_message_loop_type_t = 2; -pub type cef_message_loop_type_t = ::std::os::raw::c_uint; -pub const cef_com_init_mode_t_COM_INIT_MODE_NONE: cef_com_init_mode_t = 0; -pub const cef_com_init_mode_t_COM_INIT_MODE_STA: cef_com_init_mode_t = 1; -pub const cef_com_init_mode_t_COM_INIT_MODE_MTA: cef_com_init_mode_t = 2; -pub type cef_com_init_mode_t = ::std::os::raw::c_uint; pub const cef_value_type_t_VTYPE_INVALID: cef_value_type_t = 0; pub const cef_value_type_t_VTYPE_NULL: cef_value_type_t = 1; pub const cef_value_type_t_VTYPE_BOOL: cef_value_type_t = 2; @@ -1395,48 +471,6 @@ pub const cef_value_type_t_VTYPE_BINARY: cef_value_type_t = 6; pub const cef_value_type_t_VTYPE_DICTIONARY: cef_value_type_t = 7; pub const cef_value_type_t_VTYPE_LIST: cef_value_type_t = 8; pub type cef_value_type_t = ::std::os::raw::c_uint; -pub const cef_jsdialog_type_t_JSDIALOGTYPE_ALERT: cef_jsdialog_type_t = 0; -pub const cef_jsdialog_type_t_JSDIALOGTYPE_CONFIRM: cef_jsdialog_type_t = 1; -pub const cef_jsdialog_type_t_JSDIALOGTYPE_PROMPT: cef_jsdialog_type_t = 2; -pub type cef_jsdialog_type_t = ::std::os::raw::c_uint; -#[repr(C)] -pub struct _cef_screen_info_t { - pub device_scale_factor: f32, - pub depth: ::std::os::raw::c_int, - pub depth_per_component: ::std::os::raw::c_int, - pub is_monochrome: ::std::os::raw::c_int, - pub rect: cef_rect_t, - pub available_rect: cef_rect_t, -} -pub type cef_screen_info_t = _cef_screen_info_t; -pub const cef_menu_id_t_MENU_ID_BACK: cef_menu_id_t = 100; -pub const cef_menu_id_t_MENU_ID_FORWARD: cef_menu_id_t = 101; -pub const cef_menu_id_t_MENU_ID_RELOAD: cef_menu_id_t = 102; -pub const cef_menu_id_t_MENU_ID_RELOAD_NOCACHE: cef_menu_id_t = 103; -pub const cef_menu_id_t_MENU_ID_STOPLOAD: cef_menu_id_t = 104; -pub const cef_menu_id_t_MENU_ID_UNDO: cef_menu_id_t = 110; -pub const cef_menu_id_t_MENU_ID_REDO: cef_menu_id_t = 111; -pub const cef_menu_id_t_MENU_ID_CUT: cef_menu_id_t = 112; -pub const cef_menu_id_t_MENU_ID_COPY: cef_menu_id_t = 113; -pub const cef_menu_id_t_MENU_ID_PASTE: cef_menu_id_t = 114; -pub const cef_menu_id_t_MENU_ID_DELETE: cef_menu_id_t = 115; -pub const cef_menu_id_t_MENU_ID_SELECT_ALL: cef_menu_id_t = 116; -pub const cef_menu_id_t_MENU_ID_FIND: cef_menu_id_t = 130; -pub const cef_menu_id_t_MENU_ID_PRINT: cef_menu_id_t = 131; -pub const cef_menu_id_t_MENU_ID_VIEW_SOURCE: cef_menu_id_t = 132; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_0: cef_menu_id_t = 200; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_1: cef_menu_id_t = 201; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_2: cef_menu_id_t = 202; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_3: cef_menu_id_t = 203; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_4: cef_menu_id_t = 204; -pub const cef_menu_id_t_MENU_ID_SPELLCHECK_SUGGESTION_LAST: cef_menu_id_t = 204; -pub const cef_menu_id_t_MENU_ID_NO_SPELLING_SUGGESTIONS: cef_menu_id_t = 205; -pub const cef_menu_id_t_MENU_ID_ADD_TO_DICTIONARY: cef_menu_id_t = 206; -pub const cef_menu_id_t_MENU_ID_CUSTOM_FIRST: cef_menu_id_t = 220; -pub const cef_menu_id_t_MENU_ID_CUSTOM_LAST: cef_menu_id_t = 250; -pub const cef_menu_id_t_MENU_ID_USER_FIRST: cef_menu_id_t = 26500; -pub const cef_menu_id_t_MENU_ID_USER_LAST: cef_menu_id_t = 28500; -pub type cef_menu_id_t = ::std::os::raw::c_uint; pub const cef_mouse_button_type_t_MBT_LEFT: cef_mouse_button_type_t = 0; pub const cef_mouse_button_type_t_MBT_MIDDLE: cef_mouse_button_type_t = 1; pub const cef_mouse_button_type_t_MBT_RIGHT: cef_mouse_button_type_t = 2; @@ -1447,7 +481,6 @@ pub struct _cef_mouse_event_t { pub y: ::std::os::raw::c_int, pub modifiers: uint32, } -pub type cef_mouse_event_t = _cef_mouse_event_t; pub const cef_touch_event_type_t_CEF_TET_RELEASED: cef_touch_event_type_t = 0; pub const cef_touch_event_type_t_CEF_TET_PRESSED: cef_touch_event_type_t = 1; pub const cef_touch_event_type_t_CEF_TET_MOVED: cef_touch_event_type_t = 2; @@ -1472,69 +505,9 @@ pub struct _cef_touch_event_t { pub modifiers: uint32, pub pointer_type: cef_pointer_type_t, } -pub type cef_touch_event_t = _cef_touch_event_t; pub const cef_paint_element_type_t_PET_VIEW: cef_paint_element_type_t = 0; pub const cef_paint_element_type_t_PET_POPUP: cef_paint_element_type_t = 1; pub type cef_paint_element_type_t = ::std::os::raw::c_uint; -pub const cef_event_flags_t_EVENTFLAG_NONE: cef_event_flags_t = 0; -pub const cef_event_flags_t_EVENTFLAG_CAPS_LOCK_ON: cef_event_flags_t = 1; -pub const cef_event_flags_t_EVENTFLAG_SHIFT_DOWN: cef_event_flags_t = 2; -pub const cef_event_flags_t_EVENTFLAG_CONTROL_DOWN: cef_event_flags_t = 4; -pub const cef_event_flags_t_EVENTFLAG_ALT_DOWN: cef_event_flags_t = 8; -pub const cef_event_flags_t_EVENTFLAG_LEFT_MOUSE_BUTTON: cef_event_flags_t = 16; -pub const cef_event_flags_t_EVENTFLAG_MIDDLE_MOUSE_BUTTON: cef_event_flags_t = 32; -pub const cef_event_flags_t_EVENTFLAG_RIGHT_MOUSE_BUTTON: cef_event_flags_t = 64; -pub const cef_event_flags_t_EVENTFLAG_COMMAND_DOWN: cef_event_flags_t = 128; -pub const cef_event_flags_t_EVENTFLAG_NUM_LOCK_ON: cef_event_flags_t = 256; -pub const cef_event_flags_t_EVENTFLAG_IS_KEY_PAD: cef_event_flags_t = 512; -pub const cef_event_flags_t_EVENTFLAG_IS_LEFT: cef_event_flags_t = 1024; -pub const cef_event_flags_t_EVENTFLAG_IS_RIGHT: cef_event_flags_t = 2048; -pub type cef_event_flags_t = ::std::os::raw::c_uint; -pub const cef_menu_item_type_t_MENUITEMTYPE_NONE: cef_menu_item_type_t = 0; -pub const cef_menu_item_type_t_MENUITEMTYPE_COMMAND: cef_menu_item_type_t = 1; -pub const cef_menu_item_type_t_MENUITEMTYPE_CHECK: cef_menu_item_type_t = 2; -pub const cef_menu_item_type_t_MENUITEMTYPE_RADIO: cef_menu_item_type_t = 3; -pub const cef_menu_item_type_t_MENUITEMTYPE_SEPARATOR: cef_menu_item_type_t = 4; -pub const cef_menu_item_type_t_MENUITEMTYPE_SUBMENU: cef_menu_item_type_t = 5; -pub type cef_menu_item_type_t = ::std::os::raw::c_uint; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_NONE: cef_context_menu_type_flags_t = 0; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_PAGE: cef_context_menu_type_flags_t = 1; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_FRAME: cef_context_menu_type_flags_t = 2; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_LINK: cef_context_menu_type_flags_t = 4; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_MEDIA: cef_context_menu_type_flags_t = 8; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_SELECTION: cef_context_menu_type_flags_t = 16; -pub const cef_context_menu_type_flags_t_CM_TYPEFLAG_EDITABLE: cef_context_menu_type_flags_t = 32; -pub type cef_context_menu_type_flags_t = ::std::os::raw::c_uint; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_NONE: cef_context_menu_media_type_t = 0; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_IMAGE: cef_context_menu_media_type_t = 1; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_VIDEO: cef_context_menu_media_type_t = 2; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_AUDIO: cef_context_menu_media_type_t = 3; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_FILE: cef_context_menu_media_type_t = 4; -pub const cef_context_menu_media_type_t_CM_MEDIATYPE_PLUGIN: cef_context_menu_media_type_t = 5; -pub type cef_context_menu_media_type_t = ::std::os::raw::c_uint; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_NONE: cef_context_menu_media_state_flags_t = 0; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_ERROR: cef_context_menu_media_state_flags_t = 1; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_PAUSED: cef_context_menu_media_state_flags_t = 2; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_MUTED: cef_context_menu_media_state_flags_t = 4; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_LOOP: cef_context_menu_media_state_flags_t = 8; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_CAN_SAVE: cef_context_menu_media_state_flags_t = 16; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_HAS_AUDIO: cef_context_menu_media_state_flags_t = 32; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_HAS_VIDEO: cef_context_menu_media_state_flags_t = 64; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT: cef_context_menu_media_state_flags_t = - 128; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_CAN_PRINT: cef_context_menu_media_state_flags_t = 256; -pub const cef_context_menu_media_state_flags_t_CM_MEDIAFLAG_CAN_ROTATE: cef_context_menu_media_state_flags_t = 512; -pub type cef_context_menu_media_state_flags_t = ::std::os::raw::c_uint; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_NONE: cef_context_menu_edit_state_flags_t = 0; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_UNDO: cef_context_menu_edit_state_flags_t = 1; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_REDO: cef_context_menu_edit_state_flags_t = 2; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_CUT: cef_context_menu_edit_state_flags_t = 4; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_COPY: cef_context_menu_edit_state_flags_t = 8; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_PASTE: cef_context_menu_edit_state_flags_t = 16; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_DELETE: cef_context_menu_edit_state_flags_t = 32; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_SELECT_ALL: cef_context_menu_edit_state_flags_t = 64; -pub const cef_context_menu_edit_state_flags_t_CM_EDITFLAG_CAN_TRANSLATE: cef_context_menu_edit_state_flags_t = 128; -pub type cef_context_menu_edit_state_flags_t = ::std::os::raw::c_uint; pub const cef_key_event_type_t_KEYEVENT_RAWKEYDOWN: cef_key_event_type_t = 0; pub const cef_key_event_type_t_KEYEVENT_KEYDOWN: cef_key_event_type_t = 1; pub const cef_key_event_type_t_KEYEVENT_KEYUP: cef_key_event_type_t = 2; @@ -1551,79 +524,11 @@ pub struct _cef_key_event_t { pub unmodified_character: char16, pub focus_on_editable_field: ::std::os::raw::c_int, } -pub type cef_key_event_t = _cef_key_event_t; -pub const cef_focus_source_t_FOCUS_SOURCE_NAVIGATION: cef_focus_source_t = 0; -pub const cef_focus_source_t_FOCUS_SOURCE_SYSTEM: cef_focus_source_t = 1; -pub type cef_focus_source_t = ::std::os::raw::c_uint; -pub const cef_navigation_type_t_NAVIGATION_LINK_CLICKED: cef_navigation_type_t = 0; -pub const cef_navigation_type_t_NAVIGATION_FORM_SUBMITTED: cef_navigation_type_t = 1; -pub const cef_navigation_type_t_NAVIGATION_BACK_FORWARD: cef_navigation_type_t = 2; -pub const cef_navigation_type_t_NAVIGATION_RELOAD: cef_navigation_type_t = 3; -pub const cef_navigation_type_t_NAVIGATION_FORM_RESUBMITTED: cef_navigation_type_t = 4; -pub const cef_navigation_type_t_NAVIGATION_OTHER: cef_navigation_type_t = 5; -pub type cef_navigation_type_t = ::std::os::raw::c_uint; -pub const cef_xml_encoding_type_t_XML_ENCODING_NONE: cef_xml_encoding_type_t = 0; -pub const cef_xml_encoding_type_t_XML_ENCODING_UTF8: cef_xml_encoding_type_t = 1; -pub const cef_xml_encoding_type_t_XML_ENCODING_UTF16LE: cef_xml_encoding_type_t = 2; -pub const cef_xml_encoding_type_t_XML_ENCODING_UTF16BE: cef_xml_encoding_type_t = 3; -pub const cef_xml_encoding_type_t_XML_ENCODING_ASCII: cef_xml_encoding_type_t = 4; -pub type cef_xml_encoding_type_t = ::std::os::raw::c_uint; -pub const cef_xml_node_type_t_XML_NODE_UNSUPPORTED: cef_xml_node_type_t = 0; -pub const cef_xml_node_type_t_XML_NODE_PROCESSING_INSTRUCTION: cef_xml_node_type_t = 1; -pub const cef_xml_node_type_t_XML_NODE_DOCUMENT_TYPE: cef_xml_node_type_t = 2; -pub const cef_xml_node_type_t_XML_NODE_ELEMENT_START: cef_xml_node_type_t = 3; -pub const cef_xml_node_type_t_XML_NODE_ELEMENT_END: cef_xml_node_type_t = 4; -pub const cef_xml_node_type_t_XML_NODE_ATTRIBUTE: cef_xml_node_type_t = 5; -pub const cef_xml_node_type_t_XML_NODE_TEXT: cef_xml_node_type_t = 6; -pub const cef_xml_node_type_t_XML_NODE_CDATA: cef_xml_node_type_t = 7; -pub const cef_xml_node_type_t_XML_NODE_ENTITY_REFERENCE: cef_xml_node_type_t = 8; -pub const cef_xml_node_type_t_XML_NODE_WHITESPACE: cef_xml_node_type_t = 9; -pub const cef_xml_node_type_t_XML_NODE_COMMENT: cef_xml_node_type_t = 10; -pub type cef_xml_node_type_t = ::std::os::raw::c_uint; -#[repr(C)] -pub struct _cef_popup_features_t { - pub x: ::std::os::raw::c_int, - pub xSet: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub ySet: ::std::os::raw::c_int, - pub width: ::std::os::raw::c_int, - pub widthSet: ::std::os::raw::c_int, - pub height: ::std::os::raw::c_int, - pub heightSet: ::std::os::raw::c_int, - pub menuBarVisible: ::std::os::raw::c_int, - pub statusBarVisible: ::std::os::raw::c_int, - pub toolBarVisible: ::std::os::raw::c_int, - pub scrollbarsVisible: ::std::os::raw::c_int, -} -pub type cef_popup_features_t = _cef_popup_features_t; pub const cef_dom_document_type_t_DOM_DOCUMENT_TYPE_UNKNOWN: cef_dom_document_type_t = 0; pub const cef_dom_document_type_t_DOM_DOCUMENT_TYPE_HTML: cef_dom_document_type_t = 1; pub const cef_dom_document_type_t_DOM_DOCUMENT_TYPE_XHTML: cef_dom_document_type_t = 2; pub const cef_dom_document_type_t_DOM_DOCUMENT_TYPE_PLUGIN: cef_dom_document_type_t = 3; pub type cef_dom_document_type_t = ::std::os::raw::c_uint; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_UNKNOWN: cef_dom_event_category_t = 0; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_UI: cef_dom_event_category_t = 1; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_MOUSE: cef_dom_event_category_t = 2; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_MUTATION: cef_dom_event_category_t = 4; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_KEYBOARD: cef_dom_event_category_t = 8; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_TEXT: cef_dom_event_category_t = 16; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_COMPOSITION: cef_dom_event_category_t = 32; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_DRAG: cef_dom_event_category_t = 64; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_CLIPBOARD: cef_dom_event_category_t = 128; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_MESSAGE: cef_dom_event_category_t = 256; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_WHEEL: cef_dom_event_category_t = 512; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED: cef_dom_event_category_t = 1024; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_OVERFLOW: cef_dom_event_category_t = 2048; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_PAGE_TRANSITION: cef_dom_event_category_t = 4096; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_POPSTATE: cef_dom_event_category_t = 8192; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_PROGRESS: cef_dom_event_category_t = 16384; -pub const cef_dom_event_category_t_DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS: cef_dom_event_category_t = 32768; -pub type cef_dom_event_category_t = ::std::os::raw::c_uint; -pub const cef_dom_event_phase_t_DOM_EVENT_PHASE_UNKNOWN: cef_dom_event_phase_t = 0; -pub const cef_dom_event_phase_t_DOM_EVENT_PHASE_CAPTURING: cef_dom_event_phase_t = 1; -pub const cef_dom_event_phase_t_DOM_EVENT_PHASE_AT_TARGET: cef_dom_event_phase_t = 2; -pub const cef_dom_event_phase_t_DOM_EVENT_PHASE_BUBBLING: cef_dom_event_phase_t = 3; -pub type cef_dom_event_phase_t = ::std::os::raw::c_uint; pub const cef_dom_node_type_t_DOM_NODE_TYPE_UNSUPPORTED: cef_dom_node_type_t = 0; pub const cef_dom_node_type_t_DOM_NODE_TYPE_ELEMENT: cef_dom_node_type_t = 1; pub const cef_dom_node_type_t_DOM_NODE_TYPE_ATTRIBUTE: cef_dom_node_type_t = 2; @@ -1643,113 +548,6 @@ pub const cef_file_dialog_mode_t_FILE_DIALOG_TYPE_MASK: cef_file_dialog_mode_t = pub const cef_file_dialog_mode_t_FILE_DIALOG_OVERWRITEPROMPT_FLAG: cef_file_dialog_mode_t = 16777216; pub const cef_file_dialog_mode_t_FILE_DIALOG_HIDEREADONLY_FLAG: cef_file_dialog_mode_t = 33554432; pub type cef_file_dialog_mode_t = ::std::os::raw::c_uint; -pub const cef_color_model_t_COLOR_MODEL_UNKNOWN: cef_color_model_t = 0; -pub const cef_color_model_t_COLOR_MODEL_GRAY: cef_color_model_t = 1; -pub const cef_color_model_t_COLOR_MODEL_COLOR: cef_color_model_t = 2; -pub const cef_color_model_t_COLOR_MODEL_CMYK: cef_color_model_t = 3; -pub const cef_color_model_t_COLOR_MODEL_CMY: cef_color_model_t = 4; -pub const cef_color_model_t_COLOR_MODEL_KCMY: cef_color_model_t = 5; -pub const cef_color_model_t_COLOR_MODEL_CMY_K: cef_color_model_t = 6; -pub const cef_color_model_t_COLOR_MODEL_BLACK: cef_color_model_t = 7; -pub const cef_color_model_t_COLOR_MODEL_GRAYSCALE: cef_color_model_t = 8; -pub const cef_color_model_t_COLOR_MODEL_RGB: cef_color_model_t = 9; -pub const cef_color_model_t_COLOR_MODEL_RGB16: cef_color_model_t = 10; -pub const cef_color_model_t_COLOR_MODEL_RGBA: cef_color_model_t = 11; -pub const cef_color_model_t_COLOR_MODEL_COLORMODE_COLOR: cef_color_model_t = 12; -pub const cef_color_model_t_COLOR_MODEL_COLORMODE_MONOCHROME: cef_color_model_t = 13; -pub const cef_color_model_t_COLOR_MODEL_HP_COLOR_COLOR: cef_color_model_t = 14; -pub const cef_color_model_t_COLOR_MODEL_HP_COLOR_BLACK: cef_color_model_t = 15; -pub const cef_color_model_t_COLOR_MODEL_PRINTOUTMODE_NORMAL: cef_color_model_t = 16; -pub const cef_color_model_t_COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY: cef_color_model_t = 17; -pub const cef_color_model_t_COLOR_MODEL_PROCESSCOLORMODEL_CMYK: cef_color_model_t = 18; -pub const cef_color_model_t_COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE: cef_color_model_t = 19; -pub const cef_color_model_t_COLOR_MODEL_PROCESSCOLORMODEL_RGB: cef_color_model_t = 20; -pub type cef_color_model_t = ::std::os::raw::c_uint; -pub const cef_duplex_mode_t_DUPLEX_MODE_UNKNOWN: cef_duplex_mode_t = -1; -pub const cef_duplex_mode_t_DUPLEX_MODE_SIMPLEX: cef_duplex_mode_t = 0; -pub const cef_duplex_mode_t_DUPLEX_MODE_LONG_EDGE: cef_duplex_mode_t = 1; -pub const cef_duplex_mode_t_DUPLEX_MODE_SHORT_EDGE: cef_duplex_mode_t = 2; -pub type cef_duplex_mode_t = ::std::os::raw::c_int; -pub const cef_cursor_type_t_CT_POINTER: cef_cursor_type_t = 0; -pub const cef_cursor_type_t_CT_CROSS: cef_cursor_type_t = 1; -pub const cef_cursor_type_t_CT_HAND: cef_cursor_type_t = 2; -pub const cef_cursor_type_t_CT_IBEAM: cef_cursor_type_t = 3; -pub const cef_cursor_type_t_CT_WAIT: cef_cursor_type_t = 4; -pub const cef_cursor_type_t_CT_HELP: cef_cursor_type_t = 5; -pub const cef_cursor_type_t_CT_EASTRESIZE: cef_cursor_type_t = 6; -pub const cef_cursor_type_t_CT_NORTHRESIZE: cef_cursor_type_t = 7; -pub const cef_cursor_type_t_CT_NORTHEASTRESIZE: cef_cursor_type_t = 8; -pub const cef_cursor_type_t_CT_NORTHWESTRESIZE: cef_cursor_type_t = 9; -pub const cef_cursor_type_t_CT_SOUTHRESIZE: cef_cursor_type_t = 10; -pub const cef_cursor_type_t_CT_SOUTHEASTRESIZE: cef_cursor_type_t = 11; -pub const cef_cursor_type_t_CT_SOUTHWESTRESIZE: cef_cursor_type_t = 12; -pub const cef_cursor_type_t_CT_WESTRESIZE: cef_cursor_type_t = 13; -pub const cef_cursor_type_t_CT_NORTHSOUTHRESIZE: cef_cursor_type_t = 14; -pub const cef_cursor_type_t_CT_EASTWESTRESIZE: cef_cursor_type_t = 15; -pub const cef_cursor_type_t_CT_NORTHEASTSOUTHWESTRESIZE: cef_cursor_type_t = 16; -pub const cef_cursor_type_t_CT_NORTHWESTSOUTHEASTRESIZE: cef_cursor_type_t = 17; -pub const cef_cursor_type_t_CT_COLUMNRESIZE: cef_cursor_type_t = 18; -pub const cef_cursor_type_t_CT_ROWRESIZE: cef_cursor_type_t = 19; -pub const cef_cursor_type_t_CT_MIDDLEPANNING: cef_cursor_type_t = 20; -pub const cef_cursor_type_t_CT_EASTPANNING: cef_cursor_type_t = 21; -pub const cef_cursor_type_t_CT_NORTHPANNING: cef_cursor_type_t = 22; -pub const cef_cursor_type_t_CT_NORTHEASTPANNING: cef_cursor_type_t = 23; -pub const cef_cursor_type_t_CT_NORTHWESTPANNING: cef_cursor_type_t = 24; -pub const cef_cursor_type_t_CT_SOUTHPANNING: cef_cursor_type_t = 25; -pub const cef_cursor_type_t_CT_SOUTHEASTPANNING: cef_cursor_type_t = 26; -pub const cef_cursor_type_t_CT_SOUTHWESTPANNING: cef_cursor_type_t = 27; -pub const cef_cursor_type_t_CT_WESTPANNING: cef_cursor_type_t = 28; -pub const cef_cursor_type_t_CT_MOVE: cef_cursor_type_t = 29; -pub const cef_cursor_type_t_CT_VERTICALTEXT: cef_cursor_type_t = 30; -pub const cef_cursor_type_t_CT_CELL: cef_cursor_type_t = 31; -pub const cef_cursor_type_t_CT_CONTEXTMENU: cef_cursor_type_t = 32; -pub const cef_cursor_type_t_CT_ALIAS: cef_cursor_type_t = 33; -pub const cef_cursor_type_t_CT_PROGRESS: cef_cursor_type_t = 34; -pub const cef_cursor_type_t_CT_NODROP: cef_cursor_type_t = 35; -pub const cef_cursor_type_t_CT_COPY: cef_cursor_type_t = 36; -pub const cef_cursor_type_t_CT_NONE: cef_cursor_type_t = 37; -pub const cef_cursor_type_t_CT_NOTALLOWED: cef_cursor_type_t = 38; -pub const cef_cursor_type_t_CT_ZOOMIN: cef_cursor_type_t = 39; -pub const cef_cursor_type_t_CT_ZOOMOUT: cef_cursor_type_t = 40; -pub const cef_cursor_type_t_CT_GRAB: cef_cursor_type_t = 41; -pub const cef_cursor_type_t_CT_GRABBING: cef_cursor_type_t = 42; -pub const cef_cursor_type_t_CT_CUSTOM: cef_cursor_type_t = 43; -pub type cef_cursor_type_t = ::std::os::raw::c_uint; -#[repr(C)] -pub struct _cef_cursor_info_t { - pub hotspot: cef_point_t, - pub image_scale_factor: f32, - pub buffer: *mut ::std::os::raw::c_void, - pub size: cef_size_t, -} -pub type cef_cursor_info_t = _cef_cursor_info_t; -pub const cef_uri_unescape_rule_t_UU_NONE: cef_uri_unescape_rule_t = 0; -pub const cef_uri_unescape_rule_t_UU_NORMAL: cef_uri_unescape_rule_t = 1; -pub const cef_uri_unescape_rule_t_UU_SPACES: cef_uri_unescape_rule_t = 2; -pub const cef_uri_unescape_rule_t_UU_PATH_SEPARATORS: cef_uri_unescape_rule_t = 4; -pub const cef_uri_unescape_rule_t_UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS: cef_uri_unescape_rule_t = 8; -pub const cef_uri_unescape_rule_t_UU_SPOOFING_AND_CONTROL_CHARS: cef_uri_unescape_rule_t = 16; -pub const cef_uri_unescape_rule_t_UU_REPLACE_PLUS_WITH_SPACE: cef_uri_unescape_rule_t = 32; -pub type cef_uri_unescape_rule_t = ::std::os::raw::c_uint; -pub const cef_json_parser_options_t_JSON_PARSER_RFC: cef_json_parser_options_t = 0; -pub const cef_json_parser_options_t_JSON_PARSER_ALLOW_TRAILING_COMMAS: cef_json_parser_options_t = 1; -pub type cef_json_parser_options_t = ::std::os::raw::c_uint; -pub const cef_json_parser_error_t_JSON_NO_ERROR: cef_json_parser_error_t = 0; -pub const cef_json_parser_error_t_JSON_INVALID_ESCAPE: cef_json_parser_error_t = 1; -pub const cef_json_parser_error_t_JSON_SYNTAX_ERROR: cef_json_parser_error_t = 2; -pub const cef_json_parser_error_t_JSON_UNEXPECTED_TOKEN: cef_json_parser_error_t = 3; -pub const cef_json_parser_error_t_JSON_TRAILING_COMMA: cef_json_parser_error_t = 4; -pub const cef_json_parser_error_t_JSON_TOO_MUCH_NESTING: cef_json_parser_error_t = 5; -pub const cef_json_parser_error_t_JSON_UNEXPECTED_DATA_AFTER_ROOT: cef_json_parser_error_t = 6; -pub const cef_json_parser_error_t_JSON_UNSUPPORTED_ENCODING: cef_json_parser_error_t = 7; -pub const cef_json_parser_error_t_JSON_UNQUOTED_DICTIONARY_KEY: cef_json_parser_error_t = 8; -pub const cef_json_parser_error_t_JSON_PARSE_ERROR_COUNT: cef_json_parser_error_t = 9; -pub type cef_json_parser_error_t = ::std::os::raw::c_uint; -pub const cef_json_writer_options_t_JSON_WRITER_DEFAULT: cef_json_writer_options_t = 0; -pub const cef_json_writer_options_t_JSON_WRITER_OMIT_BINARY_VALUES: cef_json_writer_options_t = 1; -pub const cef_json_writer_options_t_JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION: cef_json_writer_options_t = 2; -pub const cef_json_writer_options_t_JSON_WRITER_PRETTY_PRINT: cef_json_writer_options_t = 4; -pub type cef_json_writer_options_t = ::std::os::raw::c_uint; pub const cef_pdf_print_margin_type_t_PDF_PRINT_MARGIN_DEFAULT: cef_pdf_print_margin_type_t = 0; pub const cef_pdf_print_margin_type_t_PDF_PRINT_MARGIN_NONE: cef_pdf_print_margin_type_t = 1; pub const cef_pdf_print_margin_type_t_PDF_PRINT_MARGIN_MINIMUM: cef_pdf_print_margin_type_t = 2; @@ -1772,23 +570,6 @@ pub struct _cef_pdf_print_settings_t { pub landscape: ::std::os::raw::c_int, pub backgrounds_enabled: ::std::os::raw::c_int, } -pub type cef_pdf_print_settings_t = _cef_pdf_print_settings_t; -pub const cef_scale_factor_t_SCALE_FACTOR_NONE: cef_scale_factor_t = 0; -pub const cef_scale_factor_t_SCALE_FACTOR_100P: cef_scale_factor_t = 1; -pub const cef_scale_factor_t_SCALE_FACTOR_125P: cef_scale_factor_t = 2; -pub const cef_scale_factor_t_SCALE_FACTOR_133P: cef_scale_factor_t = 3; -pub const cef_scale_factor_t_SCALE_FACTOR_140P: cef_scale_factor_t = 4; -pub const cef_scale_factor_t_SCALE_FACTOR_150P: cef_scale_factor_t = 5; -pub const cef_scale_factor_t_SCALE_FACTOR_180P: cef_scale_factor_t = 6; -pub const cef_scale_factor_t_SCALE_FACTOR_200P: cef_scale_factor_t = 7; -pub const cef_scale_factor_t_SCALE_FACTOR_250P: cef_scale_factor_t = 8; -pub const cef_scale_factor_t_SCALE_FACTOR_300P: cef_scale_factor_t = 9; -pub type cef_scale_factor_t = ::std::os::raw::c_uint; -pub const cef_plugin_policy_t_PLUGIN_POLICY_ALLOW: cef_plugin_policy_t = 0; -pub const cef_plugin_policy_t_PLUGIN_POLICY_DETECT_IMPORTANT: cef_plugin_policy_t = 1; -pub const cef_plugin_policy_t_PLUGIN_POLICY_BLOCK: cef_plugin_policy_t = 2; -pub const cef_plugin_policy_t_PLUGIN_POLICY_DISABLE: cef_plugin_policy_t = 3; -pub type cef_plugin_policy_t = ::std::os::raw::c_uint; pub const cef_referrer_policy_t_REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: cef_referrer_policy_t = 0; pub const cef_referrer_policy_t_REFERRER_POLICY_DEFAULT: cef_referrer_policy_t = 0; @@ -1803,10 +584,6 @@ pub const cef_referrer_policy_t_REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_ pub const cef_referrer_policy_t_REFERRER_POLICY_NO_REFERRER: cef_referrer_policy_t = 7; pub const cef_referrer_policy_t_REFERRER_POLICY_LAST_VALUE: cef_referrer_policy_t = 7; pub type cef_referrer_policy_t = ::std::os::raw::c_uint; -pub const cef_response_filter_status_t_RESPONSE_FILTER_NEED_MORE_DATA: cef_response_filter_status_t = 0; -pub const cef_response_filter_status_t_RESPONSE_FILTER_DONE: cef_response_filter_status_t = 1; -pub const cef_response_filter_status_t_RESPONSE_FILTER_ERROR: cef_response_filter_status_t = 2; -pub type cef_response_filter_status_t = ::std::os::raw::c_uint; pub const cef_color_type_t_CEF_COLOR_TYPE_RGBA_8888: cef_color_type_t = 0; pub const cef_color_type_t_CEF_COLOR_TYPE_BGRA_8888: cef_color_type_t = 1; pub type cef_color_type_t = ::std::os::raw::c_uint; @@ -1814,55 +591,6 @@ pub const cef_alpha_type_t_CEF_ALPHA_TYPE_OPAQUE: cef_alpha_type_t = 0; pub const cef_alpha_type_t_CEF_ALPHA_TYPE_PREMULTIPLIED: cef_alpha_type_t = 1; pub const cef_alpha_type_t_CEF_ALPHA_TYPE_POSTMULTIPLIED: cef_alpha_type_t = 2; pub type cef_alpha_type_t = ::std::os::raw::c_uint; -pub const cef_text_style_t_CEF_TEXT_STYLE_BOLD: cef_text_style_t = 0; -pub const cef_text_style_t_CEF_TEXT_STYLE_ITALIC: cef_text_style_t = 1; -pub const cef_text_style_t_CEF_TEXT_STYLE_STRIKE: cef_text_style_t = 2; -pub const cef_text_style_t_CEF_TEXT_STYLE_DIAGONAL_STRIKE: cef_text_style_t = 3; -pub const cef_text_style_t_CEF_TEXT_STYLE_UNDERLINE: cef_text_style_t = 4; -pub type cef_text_style_t = ::std::os::raw::c_uint; -pub const cef_main_axis_alignment_t_CEF_MAIN_AXIS_ALIGNMENT_START: cef_main_axis_alignment_t = 0; -pub const cef_main_axis_alignment_t_CEF_MAIN_AXIS_ALIGNMENT_CENTER: cef_main_axis_alignment_t = 1; -pub const cef_main_axis_alignment_t_CEF_MAIN_AXIS_ALIGNMENT_END: cef_main_axis_alignment_t = 2; -pub type cef_main_axis_alignment_t = ::std::os::raw::c_uint; -pub const cef_cross_axis_alignment_t_CEF_CROSS_AXIS_ALIGNMENT_STRETCH: cef_cross_axis_alignment_t = 0; -pub const cef_cross_axis_alignment_t_CEF_CROSS_AXIS_ALIGNMENT_START: cef_cross_axis_alignment_t = 1; -pub const cef_cross_axis_alignment_t_CEF_CROSS_AXIS_ALIGNMENT_CENTER: cef_cross_axis_alignment_t = 2; -pub const cef_cross_axis_alignment_t_CEF_CROSS_AXIS_ALIGNMENT_END: cef_cross_axis_alignment_t = 3; -pub type cef_cross_axis_alignment_t = ::std::os::raw::c_uint; -#[repr(C)] -pub struct _cef_box_layout_settings_t { - pub horizontal: ::std::os::raw::c_int, - pub inside_border_horizontal_spacing: ::std::os::raw::c_int, - pub inside_border_vertical_spacing: ::std::os::raw::c_int, - pub inside_border_insets: cef_insets_t, - pub between_child_spacing: ::std::os::raw::c_int, - pub main_axis_alignment: cef_main_axis_alignment_t, - pub cross_axis_alignment: cef_cross_axis_alignment_t, - pub minimum_cross_axis_size: ::std::os::raw::c_int, - pub default_flex: ::std::os::raw::c_int, -} -pub type cef_box_layout_settings_t = _cef_box_layout_settings_t; -pub const cef_button_state_t_CEF_BUTTON_STATE_NORMAL: cef_button_state_t = 0; -pub const cef_button_state_t_CEF_BUTTON_STATE_HOVERED: cef_button_state_t = 1; -pub const cef_button_state_t_CEF_BUTTON_STATE_PRESSED: cef_button_state_t = 2; -pub const cef_button_state_t_CEF_BUTTON_STATE_DISABLED: cef_button_state_t = 3; -pub type cef_button_state_t = ::std::os::raw::c_uint; -pub const cef_horizontal_alignment_t_CEF_HORIZONTAL_ALIGNMENT_LEFT: cef_horizontal_alignment_t = 0; -pub const cef_horizontal_alignment_t_CEF_HORIZONTAL_ALIGNMENT_CENTER: cef_horizontal_alignment_t = 1; -pub const cef_horizontal_alignment_t_CEF_HORIZONTAL_ALIGNMENT_RIGHT: cef_horizontal_alignment_t = 2; -pub type cef_horizontal_alignment_t = ::std::os::raw::c_uint; -pub const cef_menu_anchor_position_t_CEF_MENU_ANCHOR_TOPLEFT: cef_menu_anchor_position_t = 0; -pub const cef_menu_anchor_position_t_CEF_MENU_ANCHOR_TOPRIGHT: cef_menu_anchor_position_t = 1; -pub const cef_menu_anchor_position_t_CEF_MENU_ANCHOR_BOTTOMCENTER: cef_menu_anchor_position_t = 2; -pub type cef_menu_anchor_position_t = ::std::os::raw::c_uint; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_TEXT: cef_menu_color_type_t = 0; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_TEXT_HOVERED: cef_menu_color_type_t = 1; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_TEXT_ACCELERATOR: cef_menu_color_type_t = 2; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED: cef_menu_color_type_t = 3; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_BACKGROUND: cef_menu_color_type_t = 4; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_BACKGROUND_HOVERED: cef_menu_color_type_t = 5; -pub const cef_menu_color_type_t_CEF_MENU_COLOR_COUNT: cef_menu_color_type_t = 6; -pub type cef_menu_color_type_t = ::std::os::raw::c_uint; pub const cef_ssl_version_t_SSL_CONNECTION_VERSION_UNKNOWN: cef_ssl_version_t = 0; pub const cef_ssl_version_t_SSL_CONNECTION_VERSION_SSL2: cef_ssl_version_t = 1; pub const cef_ssl_version_t_SSL_CONNECTION_VERSION_SSL3: cef_ssl_version_t = 2; @@ -1876,20 +604,6 @@ pub const cef_ssl_content_status_t_SSL_CONTENT_NORMAL_CONTENT: cef_ssl_content_s pub const cef_ssl_content_status_t_SSL_CONTENT_DISPLAYED_INSECURE_CONTENT: cef_ssl_content_status_t = 1; pub const cef_ssl_content_status_t_SSL_CONTENT_RAN_INSECURE_CONTENT: cef_ssl_content_status_t = 2; pub type cef_ssl_content_status_t = ::std::os::raw::c_uint; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_NONE: cef_scheme_options_t = 0; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_STANDARD: cef_scheme_options_t = 1; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_LOCAL: cef_scheme_options_t = 2; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_DISPLAY_ISOLATED: cef_scheme_options_t = 4; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_SECURE: cef_scheme_options_t = 8; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_CORS_ENABLED: cef_scheme_options_t = 16; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_CSP_BYPASSING: cef_scheme_options_t = 32; -pub const cef_scheme_options_t_CEF_SCHEME_OPTION_FETCH_ENABLED: cef_scheme_options_t = 64; -pub type cef_scheme_options_t = ::std::os::raw::c_uint; -pub const cef_cdm_registration_error_t_CEF_CDM_REGISTRATION_ERROR_NONE: cef_cdm_registration_error_t = 0; -pub const cef_cdm_registration_error_t_CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS: cef_cdm_registration_error_t = 1; -pub const cef_cdm_registration_error_t_CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE: cef_cdm_registration_error_t = 2; -pub const cef_cdm_registration_error_t_CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED: cef_cdm_registration_error_t = 3; -pub type cef_cdm_registration_error_t = ::std::os::raw::c_uint; #[repr(C)] pub struct _cef_composition_underline_t { pub range: cef_range_t, @@ -1900,7 +614,7 @@ pub struct _cef_composition_underline_t { pub type cef_composition_underline_t = _cef_composition_underline_t; #[repr(C)] pub struct _cef_base_ref_counted_t { - pub size: usize, + pub size: size_t, pub add_ref: ::std::option::Option, pub release: ::std::option::Option ::std::os::raw::c_int>, @@ -1911,12 +625,6 @@ pub struct _cef_base_ref_counted_t { } pub type cef_base_ref_counted_t = _cef_base_ref_counted_t; #[repr(C)] -pub struct _cef_base_scoped_t { - pub size: usize, - pub del: ::std::option::Option, -} -pub type cef_base_scoped_t = _cef_base_scoped_t; -#[repr(C)] pub struct _cef_auth_callback_t { pub base: cef_base_ref_counted_t, pub cont: ::std::option::Option< @@ -1928,7 +636,6 @@ pub struct _cef_auth_callback_t { >, pub cancel: ::std::option::Option, } -pub type cef_auth_callback_t = _cef_auth_callback_t; #[repr(C)] pub struct _cef_request_t { pub base: cef_base_ref_counted_t, @@ -1989,10 +696,6 @@ pub struct _cef_request_t { ::std::option::Option cef_transition_type_t>, pub get_identifier: ::std::option::Option uint64>, } -pub type cef_request_t = _cef_request_t; -extern "C" { - pub fn cef_request_create() -> *mut cef_request_t; -} #[repr(C)] pub struct _cef_post_data_t { pub base: cef_base_ref_counted_t, @@ -2000,11 +703,11 @@ pub struct _cef_post_data_t { ::std::option::Option ::std::os::raw::c_int>, pub has_excluded_elements: ::std::option::Option ::std::os::raw::c_int>, - pub get_element_count: ::std::option::Option usize>, + pub get_element_count: ::std::option::Option size_t>, pub get_elements: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_post_data_t, - elementsCount: *mut usize, + elementsCount: *mut size_t, elements: *mut *mut _cef_post_data_element_t, ), >, @@ -2022,10 +725,6 @@ pub struct _cef_post_data_t { >, pub remove_elements: ::std::option::Option, } -pub type cef_post_data_t = _cef_post_data_t; -extern "C" { - pub fn cef_post_data_create() -> *mut cef_post_data_t; -} #[repr(C)] pub struct _cef_post_data_element_t { pub base: cef_base_ref_counted_t, @@ -2036,38 +735,26 @@ pub struct _cef_post_data_element_t { unsafe extern "C" fn(self_: *mut _cef_post_data_element_t, fileName: *const cef_string_t), >, pub set_to_bytes: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_post_data_element_t, size: usize, bytes: *const ::std::os::raw::c_void), + unsafe extern "C" fn(self_: *mut _cef_post_data_element_t, size: size_t, bytes: *const ::std::os::raw::c_void), >, pub get_type: ::std::option::Option cef_postdataelement_type_t>, pub get_file: ::std::option::Option cef_string_userfree_t>, - pub get_bytes_count: ::std::option::Option usize>, + pub get_bytes_count: ::std::option::Option size_t>, pub get_bytes: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_post_data_element_t, - size: usize, + size: size_t, bytes: *mut ::std::os::raw::c_void, - ) -> usize, + ) -> size_t, >, } -pub type cef_post_data_element_t = _cef_post_data_element_t; -extern "C" { - pub fn cef_post_data_element_create() -> *mut cef_post_data_element_t; -} -#[repr(C)] -pub struct _cef_callback_t { - pub base: cef_base_ref_counted_t, - pub cont: ::std::option::Option, - pub cancel: ::std::option::Option, -} -pub type cef_callback_t = _cef_callback_t; #[repr(C)] pub struct _cef_completion_callback_t { pub base: cef_base_ref_counted_t, pub on_complete: ::std::option::Option, } -pub type cef_completion_callback_t = _cef_completion_callback_t; #[repr(C)] pub struct _cef_cookie_manager_t { pub base: cef_base_ref_counted_t, @@ -2116,12 +803,6 @@ pub struct _cef_cookie_manager_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_cookie_manager_t = _cef_cookie_manager_t; -extern "C" { - pub fn cef_cookie_manager_get_global_manager( - callback: *mut _cef_completion_callback_t, - ) -> *mut cef_cookie_manager_t; -} #[repr(C)] pub struct _cef_cookie_visitor_t { pub base: cef_base_ref_counted_t, @@ -2135,7 +816,6 @@ pub struct _cef_cookie_visitor_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_cookie_visitor_t = _cef_cookie_visitor_t; #[repr(C)] pub struct _cef_set_cookie_callback_t { pub base: cef_base_ref_counted_t, @@ -2143,7 +823,6 @@ pub struct _cef_set_cookie_callback_t { unsafe extern "C" fn(self_: *mut _cef_set_cookie_callback_t, success: ::std::os::raw::c_int), >, } -pub type cef_set_cookie_callback_t = _cef_set_cookie_callback_t; #[repr(C)] pub struct _cef_delete_cookies_callback_t { pub base: cef_base_ref_counted_t, @@ -2151,7 +830,6 @@ pub struct _cef_delete_cookies_callback_t { unsafe extern "C" fn(self_: *mut _cef_delete_cookies_callback_t, num_deleted: ::std::os::raw::c_int), >, } -pub type cef_delete_cookies_callback_t = _cef_delete_cookies_callback_t; #[repr(C)] pub struct _cef_value_t { pub base: cef_base_ref_counted_t, @@ -2196,10 +874,6 @@ pub struct _cef_value_t { unsafe extern "C" fn(self_: *mut _cef_value_t, value: *mut _cef_list_value_t) -> ::std::os::raw::c_int, >, } -pub type cef_value_t = _cef_value_t; -extern "C" { - pub fn cef_value_create() -> *mut cef_value_t; -} #[repr(C)] pub struct _cef_binary_value_t { pub base: cef_base_ref_counted_t, @@ -2212,20 +886,16 @@ pub struct _cef_binary_value_t { unsafe extern "C" fn(self_: *mut _cef_binary_value_t, that: *mut _cef_binary_value_t) -> ::std::os::raw::c_int, >, pub copy: ::std::option::Option *mut _cef_binary_value_t>, - pub get_size: ::std::option::Option usize>, + pub get_size: ::std::option::Option size_t>, pub get_data: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_binary_value_t, buffer: *mut ::std::os::raw::c_void, - buffer_size: usize, - data_offset: usize, - ) -> usize, + buffer_size: size_t, + data_offset: size_t, + ) -> size_t, >, } -pub type cef_binary_value_t = _cef_binary_value_t; -extern "C" { - pub fn cef_binary_value_create(data: *const ::std::os::raw::c_void, data_size: usize) -> *mut cef_binary_value_t; -} #[repr(C)] pub struct _cef_dictionary_value_t { pub base: cef_base_ref_counted_t, @@ -2253,7 +923,7 @@ pub struct _cef_dictionary_value_t { exclude_empty_children: ::std::os::raw::c_int, ) -> *mut _cef_dictionary_value_t, >, - pub get_size: ::std::option::Option usize>, + pub get_size: ::std::option::Option size_t>, pub clear: ::std::option::Option ::std::os::raw::c_int>, pub has_key: ::std::option::Option< @@ -2355,10 +1025,6 @@ pub struct _cef_dictionary_value_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_dictionary_value_t = _cef_dictionary_value_t; -extern "C" { - pub fn cef_dictionary_value_create() -> *mut cef_dictionary_value_t; -} #[repr(C)] pub struct _cef_list_value_t { pub base: cef_base_ref_counted_t, @@ -2374,96 +1040,92 @@ pub struct _cef_list_value_t { >, pub copy: ::std::option::Option *mut _cef_list_value_t>, pub set_size: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, size: usize) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, size: size_t) -> ::std::os::raw::c_int, >, - pub get_size: ::std::option::Option usize>, + pub get_size: ::std::option::Option size_t>, pub clear: ::std::option::Option ::std::os::raw::c_int>, pub remove: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> ::std::os::raw::c_int, >, pub get_type: - ::std::option::Option cef_value_type_t>, + ::std::option::Option cef_value_type_t>, pub get_value: - ::std::option::Option *mut _cef_value_t>, + ::std::option::Option *mut _cef_value_t>, pub get_bool: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> ::std::os::raw::c_int, >, pub get_int: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> ::std::os::raw::c_int, >, - pub get_double: ::std::option::Option f64>, + pub get_double: ::std::option::Option f64>, pub get_string: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> cef_string_userfree_t, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> cef_string_userfree_t, >, pub get_binary: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_binary_value_t, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> *mut _cef_binary_value_t, >, pub get_dictionary: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_dictionary_value_t, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> *mut _cef_dictionary_value_t, >, pub get_list: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_list_value_t, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> *mut _cef_list_value_t, >, pub set_value: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: *mut _cef_value_t, ) -> ::std::os::raw::c_int, >, pub set_null: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t) -> ::std::os::raw::c_int, >, pub set_bool: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pub set_int: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int, >, pub set_double: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize, value: f64) -> ::std::os::raw::c_int, + unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: size_t, value: f64) -> ::std::os::raw::c_int, >, pub set_string: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: *const cef_string_t, ) -> ::std::os::raw::c_int, >, pub set_binary: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: *mut _cef_binary_value_t, ) -> ::std::os::raw::c_int, >, pub set_dictionary: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: *mut _cef_dictionary_value_t, ) -> ::std::os::raw::c_int, >, pub set_list: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_list_value_t, - index: usize, + index: size_t, value: *mut _cef_list_value_t, ) -> ::std::os::raw::c_int, >, } -pub type cef_list_value_t = _cef_list_value_t; -extern "C" { - pub fn cef_list_value_create() -> *mut cef_list_value_t; -} #[repr(C)] pub struct _cef_extension_t { pub base: cef_base_ref_counted_t, @@ -2482,7 +1144,6 @@ pub struct _cef_extension_t { pub is_loaded: ::std::option::Option ::std::os::raw::c_int>, pub unload: ::std::option::Option, } -pub type cef_extension_t = _cef_extension_t; #[repr(C)] pub struct _cef_image_t { pub base: cef_base_ref_counted_t, @@ -2499,7 +1160,7 @@ pub struct _cef_image_t { color_type: cef_color_type_t, alpha_type: cef_alpha_type_t, pixel_data: *const ::std::os::raw::c_void, - pixel_data_size: usize, + pixel_data_size: size_t, ) -> ::std::os::raw::c_int, >, pub add_png: ::std::option::Option< @@ -2507,7 +1168,7 @@ pub struct _cef_image_t { self_: *mut _cef_image_t, scale_factor: f32, png_data: *const ::std::os::raw::c_void, - png_data_size: usize, + png_data_size: size_t, ) -> ::std::os::raw::c_int, >, pub add_jpeg: ::std::option::Option< @@ -2515,11 +1176,11 @@ pub struct _cef_image_t { self_: *mut _cef_image_t, scale_factor: f32, jpeg_data: *const ::std::os::raw::c_void, - jpeg_data_size: usize, + jpeg_data_size: size_t, ) -> ::std::os::raw::c_int, >, - pub get_width: ::std::option::Option usize>, - pub get_height: ::std::option::Option usize>, + pub get_width: ::std::option::Option size_t>, + pub get_height: ::std::option::Option size_t>, pub has_representation: ::std::option::Option< unsafe extern "C" fn(self_: *mut _cef_image_t, scale_factor: f32) -> ::std::os::raw::c_int, >, @@ -2564,34 +1225,6 @@ pub struct _cef_image_t { ) -> *mut _cef_binary_value_t, >, } -pub type cef_image_t = _cef_image_t; -extern "C" { - pub fn cef_image_create() -> *mut cef_image_t; -} -#[repr(C)] -pub struct _cef_read_handler_t { - pub base: cef_base_ref_counted_t, - pub read: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut _cef_read_handler_t, - ptr: *mut ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - pub seek: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut _cef_read_handler_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub tell: ::std::option::Option int64>, - pub eof: ::std::option::Option ::std::os::raw::c_int>, - pub may_block: - ::std::option::Option ::std::os::raw::c_int>, -} -pub type cef_read_handler_t = _cef_read_handler_t; #[repr(C)] pub struct _cef_stream_reader_t { pub base: cef_base_ref_counted_t, @@ -2599,9 +1232,9 @@ pub struct _cef_stream_reader_t { unsafe extern "C" fn( self_: *mut _cef_stream_reader_t, ptr: *mut ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, + size: size_t, + n: size_t, + ) -> size_t, >, pub seek: ::std::option::Option< unsafe extern "C" fn( @@ -2615,43 +1248,6 @@ pub struct _cef_stream_reader_t { pub may_block: ::std::option::Option ::std::os::raw::c_int>, } -pub type cef_stream_reader_t = _cef_stream_reader_t; -extern "C" { - pub fn cef_stream_reader_create_for_file(fileName: *const cef_string_t) -> *mut cef_stream_reader_t; -} -extern "C" { - pub fn cef_stream_reader_create_for_data( - data: *mut ::std::os::raw::c_void, - size: usize, - ) -> *mut cef_stream_reader_t; -} -extern "C" { - pub fn cef_stream_reader_create_for_handler(handler: *mut cef_read_handler_t) -> *mut cef_stream_reader_t; -} -#[repr(C)] -pub struct _cef_write_handler_t { - pub base: cef_base_ref_counted_t, - pub write: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut _cef_write_handler_t, - ptr: *const ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - pub seek: ::std::option::Option< - unsafe extern "C" fn( - self_: *mut _cef_write_handler_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - pub tell: ::std::option::Option int64>, - pub flush: ::std::option::Option ::std::os::raw::c_int>, - pub may_block: - ::std::option::Option ::std::os::raw::c_int>, -} -pub type cef_write_handler_t = _cef_write_handler_t; #[repr(C)] pub struct _cef_stream_writer_t { pub base: cef_base_ref_counted_t, @@ -2659,9 +1255,9 @@ pub struct _cef_stream_writer_t { unsafe extern "C" fn( self_: *mut _cef_stream_writer_t, ptr: *const ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, + size: size_t, + n: size_t, + ) -> size_t, >, pub seek: ::std::option::Option< unsafe extern "C" fn( @@ -2675,13 +1271,6 @@ pub struct _cef_stream_writer_t { pub may_block: ::std::option::Option ::std::os::raw::c_int>, } -pub type cef_stream_writer_t = _cef_stream_writer_t; -extern "C" { - pub fn cef_stream_writer_create_for_file(fileName: *const cef_string_t) -> *mut cef_stream_writer_t; -} -extern "C" { - pub fn cef_stream_writer_create_for_handler(handler: *mut cef_write_handler_t) -> *mut cef_stream_writer_t; -} #[repr(C)] pub struct _cef_drag_data_t { pub base: cef_base_ref_counted_t, @@ -2706,7 +1295,7 @@ pub struct _cef_drag_data_t { pub get_file_name: ::std::option::Option cef_string_userfree_t>, pub get_file_contents: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_drag_data_t, writer: *mut _cef_stream_writer_t) -> usize, + unsafe extern "C" fn(self_: *mut _cef_drag_data_t, writer: *mut _cef_stream_writer_t) -> size_t, >, pub get_file_names: ::std::option::Option< unsafe extern "C" fn(self_: *mut _cef_drag_data_t, names: cef_string_list_t) -> ::std::os::raw::c_int, @@ -2735,17 +1324,12 @@ pub struct _cef_drag_data_t { pub get_image_hotspot: ::std::option::Option cef_point_t>, pub has_image: ::std::option::Option ::std::os::raw::c_int>, } -pub type cef_drag_data_t = _cef_drag_data_t; -extern "C" { - pub fn cef_drag_data_create() -> *mut cef_drag_data_t; -} #[repr(C)] pub struct _cef_domvisitor_t { pub base: cef_base_ref_counted_t, pub visit: ::std::option::Option, } -pub type cef_domvisitor_t = _cef_domvisitor_t; #[repr(C)] pub struct _cef_domdocument_t { pub base: cef_base_ref_counted_t, @@ -2777,7 +1361,6 @@ pub struct _cef_domdocument_t { unsafe extern "C" fn(self_: *mut _cef_domdocument_t, partialURL: *const cef_string_t) -> cef_string_userfree_t, >, } -pub type cef_domdocument_t = _cef_domdocument_t; #[repr(C)] pub struct _cef_domnode_t { pub base: cef_base_ref_counted_t, @@ -2831,7 +1414,6 @@ pub struct _cef_domnode_t { ::std::option::Option cef_string_userfree_t>, pub get_element_bounds: ::std::option::Option cef_rect_t>, } -pub type cef_domnode_t = _cef_domnode_t; #[repr(C)] pub struct _cef_process_message_t { pub base: cef_base_ref_counted_t, @@ -2846,17 +1428,12 @@ pub struct _cef_process_message_t { pub get_argument_list: ::std::option::Option *mut _cef_list_value_t>, } -pub type cef_process_message_t = _cef_process_message_t; -extern "C" { - pub fn cef_process_message_create(name: *const cef_string_t) -> *mut cef_process_message_t; -} #[repr(C)] pub struct _cef_string_visitor_t { pub base: cef_base_ref_counted_t, pub visit: ::std::option::Option, } -pub type cef_string_visitor_t = _cef_string_visitor_t; #[repr(C)] pub struct _cef_v8context_t { _unused: [u8; 0], @@ -2913,7 +1490,6 @@ pub struct _cef_frame_t { ), >, } -pub type cef_frame_t = _cef_frame_t; #[repr(C)] pub struct _cef_x509cert_principal_t { pub base: cef_base_ref_counted_t, @@ -2938,7 +1514,6 @@ pub struct _cef_x509cert_principal_t { unsafe extern "C" fn(self_: *mut _cef_x509cert_principal_t, components: cef_string_list_t), >, } -pub type cef_x509cert_principal_t = _cef_x509cert_principal_t; #[repr(C)] pub struct _cef_x509certificate_t { pub base: cef_base_ref_counted_t, @@ -2956,23 +1531,23 @@ pub struct _cef_x509certificate_t { ::std::option::Option *mut _cef_binary_value_t>, pub get_pemencoded: ::std::option::Option *mut _cef_binary_value_t>, - pub get_issuer_chain_size: ::std::option::Option usize>, + pub get_issuer_chain_size: + ::std::option::Option size_t>, pub get_derencoded_issuer_chain: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_x509certificate_t, - chainCount: *mut usize, + chainCount: *mut size_t, chain: *mut *mut _cef_binary_value_t, ), >, pub get_pemencoded_issuer_chain: ::std::option::Option< unsafe extern "C" fn( self_: *mut _cef_x509certificate_t, - chainCount: *mut usize, + chainCount: *mut size_t, chain: *mut *mut _cef_binary_value_t, ), >, } -pub type cef_x509certificate_t = _cef_x509certificate_t; #[repr(C)] pub struct _cef_sslstatus_t { pub base: cef_base_ref_counted_t, @@ -2985,7 +1560,6 @@ pub struct _cef_sslstatus_t { pub get_x509certificate: ::std::option::Option *mut _cef_x509certificate_t>, } -pub type cef_sslstatus_t = _cef_sslstatus_t; #[repr(C)] pub struct _cef_navigation_entry_t { pub base: cef_base_ref_counted_t, @@ -3010,7 +1584,6 @@ pub struct _cef_navigation_entry_t { pub get_sslstatus: ::std::option::Option *mut _cef_sslstatus_t>, } -pub type cef_navigation_entry_t = _cef_navigation_entry_t; #[repr(C)] pub struct _cef_client_t { _unused: [u8; 0], @@ -3042,14 +1615,13 @@ pub struct _cef_browser_t { pub get_frame: ::std::option::Option< unsafe extern "C" fn(self_: *mut _cef_browser_t, name: *const cef_string_t) -> *mut _cef_frame_t, >, - pub get_frame_count: ::std::option::Option usize>, + pub get_frame_count: ::std::option::Option size_t>, pub get_frame_identifiers: ::std::option::Option< - unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiersCount: *mut usize, identifiers: *mut int64), + unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiersCount: *mut size_t, identifiers: *mut int64), >, pub get_frame_names: ::std::option::Option, } -pub type cef_browser_t = _cef_browser_t; #[repr(C)] pub struct _cef_run_file_dialog_callback_t { pub base: cef_base_ref_counted_t, @@ -3061,7 +1633,6 @@ pub struct _cef_run_file_dialog_callback_t { ), >, } -pub type cef_run_file_dialog_callback_t = _cef_run_file_dialog_callback_t; #[repr(C)] pub struct _cef_navigation_entry_visitor_t { pub base: cef_base_ref_counted_t, @@ -3075,7 +1646,6 @@ pub struct _cef_navigation_entry_visitor_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_navigation_entry_visitor_t = _cef_navigation_entry_visitor_t; #[repr(C)] pub struct _cef_pdf_print_callback_t { pub base: cef_base_ref_counted_t, @@ -3087,7 +1657,6 @@ pub struct _cef_pdf_print_callback_t { ), >, } -pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t; #[repr(C)] pub struct _cef_download_image_callback_t { pub base: cef_base_ref_counted_t, @@ -3100,7 +1669,6 @@ pub struct _cef_download_image_callback_t { ), >, } -pub type cef_download_image_callback_t = _cef_download_image_callback_t; #[repr(C)] pub struct _cef_browser_host_t { pub base: cef_base_ref_counted_t, @@ -3244,7 +1812,7 @@ pub struct _cef_browser_host_t { unsafe extern "C" fn( self_: *mut _cef_browser_host_t, text: *const cef_string_t, - underlinesCount: usize, + underlinesCount: size_t, underlines: *const cef_composition_underline_t, replacement_range: *const cef_range_t, selection_range: *const cef_range_t, @@ -3310,27 +1878,6 @@ pub struct _cef_browser_host_t { pub is_audio_muted: ::std::option::Option ::std::os::raw::c_int>, } -pub type cef_browser_host_t = _cef_browser_host_t; -extern "C" { - pub fn cef_browser_host_create_browser( - windowInfo: *const cef_window_info_t, - client: *mut _cef_client_t, - url: *const cef_string_t, - settings: *const _cef_browser_settings_t, - extra_info: *mut _cef_dictionary_value_t, - request_context: *mut _cef_request_context_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_browser_host_create_browser_sync( - windowInfo: *const cef_window_info_t, - client: *mut _cef_client_t, - url: *const cef_string_t, - settings: *const _cef_browser_settings_t, - extra_info: *mut _cef_dictionary_value_t, - request_context: *mut _cef_request_context_t, - ) -> *mut cef_browser_t; -} #[repr(C)] pub struct _cef_get_extension_resource_callback_t { pub base: cef_base_ref_counted_t, @@ -3339,7 +1886,6 @@ pub struct _cef_get_extension_resource_callback_t { >, pub cancel: ::std::option::Option, } -pub type cef_get_extension_resource_callback_t = _cef_get_extension_resource_callback_t; #[repr(C)] pub struct _cef_extension_handler_t { pub base: cef_base_ref_counted_t, @@ -3401,7 +1947,6 @@ pub struct _cef_extension_handler_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_extension_handler_t = _cef_extension_handler_t; #[repr(C)] pub struct _cef_request_context_handler_t { _unused: [u8; 0], @@ -3421,7 +1966,6 @@ pub struct _cef_resolve_callback_t { ), >, } -pub type cef_resolve_callback_t = _cef_resolve_callback_t; #[repr(C)] pub struct _cef_request_context_t { pub base: cef_base_ref_counted_t, @@ -3535,22 +2079,6 @@ pub struct _cef_request_context_t { ) -> *mut _cef_extension_t, >, } -pub type cef_request_context_t = _cef_request_context_t; -extern "C" { - pub fn cef_request_context_get_global_context() -> *mut cef_request_context_t; -} -extern "C" { - pub fn cef_request_context_create_context( - settings: *const _cef_request_context_settings_t, - handler: *mut _cef_request_context_handler_t, - ) -> *mut cef_request_context_t; -} -extern "C" { - pub fn cef_create_context_shared( - other: *mut cef_request_context_t, - handler: *mut _cef_request_context_handler_t, - ) -> *mut cef_request_context_t; -} #[repr(C)] pub struct _cef_response_t { pub base: cef_base_ref_counted_t, @@ -3589,10 +2117,6 @@ pub struct _cef_response_t { pub get_url: ::std::option::Option cef_string_userfree_t>, pub set_url: ::std::option::Option, } -pub type cef_response_t = _cef_response_t; -extern "C" { - pub fn cef_response_create() -> *mut cef_response_t; -} #[repr(C)] pub struct _cef_urlrequest_t { pub base: cef_base_ref_counted_t, @@ -3644,7 +2168,7 @@ pub struct _cef_urlrequest_client_t { self_: *mut _cef_urlrequest_client_t, request: *mut _cef_urlrequest_t, data: *const ::std::os::raw::c_void, - data_length: usize, + data_length: size_t, ), >, pub get_auth_credentials: ::std::option::Option< @@ -3659,8 +2183,3 @@ pub struct _cef_urlrequest_client_t { ) -> ::std::os::raw::c_int, >, } -pub type cef_urlrequest_client_t = _cef_urlrequest_client_t; -#[repr(C)] -pub struct __locale_data { - pub _address: u8, -} diff --git a/src/lib.rs b/src/lib.rs index b48ab31..39f2b40 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,6 +1,6 @@ -mod cef_urlrequest_capi; +mod cef; -use cef_urlrequest_capi::{ +use cef::{ _cef_request_context_t, _cef_request_t, _cef_urlrequest_client_t, cef_string_userfree_utf16_free, cef_urlrequest_t, }; use lazy_static::lazy_static;