cef_dll_sys/bindings/
x86_64_unknown_linux_gnu.rs

1/* automatically generated by rust-bindgen 0.71.1 */
2
3pub const CEF_API_VERSION_13300: i32 = 13300;
4pub const CEF_API_VERSION_13301: i32 = 13301;
5pub const CEF_API_VERSION_13302: i32 = 13302;
6pub const CEF_API_VERSION_13303: i32 = 13303;
7pub const CEF_API_VERSION_13304: i32 = 13304;
8pub const CEF_API_VERSION_13400: i32 = 13400;
9pub const CEF_API_VERSION_13401: i32 = 13401;
10pub const CEF_API_VERSION_999998: i32 = 999998;
11pub const CEF_API_VERSION_999999: i32 = 999999;
12pub const CEF_API_VERSION_MIN: i32 = 13300;
13pub const CEF_API_VERSION_LAST: i32 = 13401;
14pub const CEF_API_VERSION_EXPERIMENTAL: i32 = 999999;
15pub const CEF_API_VERSION_NEXT: i32 = 999998;
16pub const CEF_API_VERSION: i32 = 999999;
17pub type __uint16_t = ::std::os::raw::c_ushort;
18pub type __uint_least16_t = __uint16_t;
19pub type __time_t = ::std::os::raw::c_long;
20unsafe extern "C" {
21    #[doc = "\n Configures the CEF API version and returns API hashes for the libcef\n library. The returned string is owned by the library and should not be\n freed. The |version| parameter should be CEF_API_VERSION and any changes to\n this value will be ignored after the first call to this method. The |entry|\n parameter describes which hash value will be returned:\n\n 0 - CEF_API_HASH_PLATFORM\n 1 - CEF_API_HASH_UNIVERSAL (deprecated, same as CEF_API_HASH_PLATFORM)\n 2 - CEF_COMMIT_HASH (from cef_version.h)\n"]
22    pub fn cef_api_hash(
23        version: ::std::os::raw::c_int,
24        entry: ::std::os::raw::c_int,
25    ) -> *const ::std::os::raw::c_char;
26}
27unsafe extern "C" {
28    #[doc = "\n Returns the CEF API version that was configured by the first call to\n cef_api_hash().\n"]
29    pub fn cef_api_version() -> ::std::os::raw::c_int;
30}
31pub type wchar_t = ::std::os::raw::c_int;
32pub type char16_t = __uint_least16_t;
33#[doc = "\n CEF string type definitions. Whomever allocates |str| is responsible for\n providing an appropriate |dtor| implementation that will free the string in\n the same memory space. When reusing an existing string structure make sure\n to call |dtor| for the old value before assigning new |str| and |dtor|\n values. Static strings will have a NULL |dtor| value. Using the below\n functions if you want this managed for you.\n"]
34#[repr(C)]
35#[derive(Debug, Copy, Clone)]
36pub struct _cef_string_wide_t {
37    pub str_: *mut wchar_t,
38    pub length: usize,
39    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut wchar_t)>,
40}
41#[allow(clippy::unnecessary_operation, clippy::identity_op)]
42const _: () = {
43    ["Size of _cef_string_wide_t"][::std::mem::size_of::<_cef_string_wide_t>() - 24usize];
44    ["Alignment of _cef_string_wide_t"][::std::mem::align_of::<_cef_string_wide_t>() - 8usize];
45    ["Offset of field: _cef_string_wide_t::str_"]
46        [::std::mem::offset_of!(_cef_string_wide_t, str_) - 0usize];
47    ["Offset of field: _cef_string_wide_t::length"]
48        [::std::mem::offset_of!(_cef_string_wide_t, length) - 8usize];
49    ["Offset of field: _cef_string_wide_t::dtor"]
50        [::std::mem::offset_of!(_cef_string_wide_t, dtor) - 16usize];
51};
52#[doc = "\n CEF string type definitions. Whomever allocates |str| is responsible for\n providing an appropriate |dtor| implementation that will free the string in\n the same memory space. When reusing an existing string structure make sure\n to call |dtor| for the old value before assigning new |str| and |dtor|\n values. Static strings will have a NULL |dtor| value. Using the below\n functions if you want this managed for you.\n"]
53pub type cef_string_wide_t = _cef_string_wide_t;
54#[repr(C)]
55#[derive(Debug, Copy, Clone)]
56pub struct _cef_string_utf8_t {
57    pub str_: *mut ::std::os::raw::c_char,
58    pub length: usize,
59    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut ::std::os::raw::c_char)>,
60}
61#[allow(clippy::unnecessary_operation, clippy::identity_op)]
62const _: () = {
63    ["Size of _cef_string_utf8_t"][::std::mem::size_of::<_cef_string_utf8_t>() - 24usize];
64    ["Alignment of _cef_string_utf8_t"][::std::mem::align_of::<_cef_string_utf8_t>() - 8usize];
65    ["Offset of field: _cef_string_utf8_t::str_"]
66        [::std::mem::offset_of!(_cef_string_utf8_t, str_) - 0usize];
67    ["Offset of field: _cef_string_utf8_t::length"]
68        [::std::mem::offset_of!(_cef_string_utf8_t, length) - 8usize];
69    ["Offset of field: _cef_string_utf8_t::dtor"]
70        [::std::mem::offset_of!(_cef_string_utf8_t, dtor) - 16usize];
71};
72pub type cef_string_utf8_t = _cef_string_utf8_t;
73#[repr(C)]
74#[derive(Debug, Copy, Clone)]
75pub struct _cef_string_utf16_t {
76    pub str_: *mut char16_t,
77    pub length: usize,
78    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut char16_t)>,
79}
80#[allow(clippy::unnecessary_operation, clippy::identity_op)]
81const _: () = {
82    ["Size of _cef_string_utf16_t"][::std::mem::size_of::<_cef_string_utf16_t>() - 24usize];
83    ["Alignment of _cef_string_utf16_t"][::std::mem::align_of::<_cef_string_utf16_t>() - 8usize];
84    ["Offset of field: _cef_string_utf16_t::str_"]
85        [::std::mem::offset_of!(_cef_string_utf16_t, str_) - 0usize];
86    ["Offset of field: _cef_string_utf16_t::length"]
87        [::std::mem::offset_of!(_cef_string_utf16_t, length) - 8usize];
88    ["Offset of field: _cef_string_utf16_t::dtor"]
89        [::std::mem::offset_of!(_cef_string_utf16_t, dtor) - 16usize];
90};
91pub type cef_string_utf16_t = _cef_string_utf16_t;
92unsafe extern "C" {
93    #[doc = "\n These functions set string values. If |copy| is true (1) the value will be\n copied instead of referenced. It is up to the user to properly manage\n the lifespan of references.\n"]
94    pub fn cef_string_wide_set(
95        src: *const wchar_t,
96        src_len: usize,
97        output: *mut cef_string_wide_t,
98        copy: ::std::os::raw::c_int,
99    ) -> ::std::os::raw::c_int;
100}
101unsafe extern "C" {
102    pub fn cef_string_utf8_set(
103        src: *const ::std::os::raw::c_char,
104        src_len: usize,
105        output: *mut cef_string_utf8_t,
106        copy: ::std::os::raw::c_int,
107    ) -> ::std::os::raw::c_int;
108}
109unsafe extern "C" {
110    pub fn cef_string_utf16_set(
111        src: *const char16_t,
112        src_len: usize,
113        output: *mut cef_string_utf16_t,
114        copy: ::std::os::raw::c_int,
115    ) -> ::std::os::raw::c_int;
116}
117unsafe extern "C" {
118    #[doc = "\n These functions clear string values. The structure itself is not freed.\n"]
119    pub fn cef_string_wide_clear(str_: *mut cef_string_wide_t);
120}
121unsafe extern "C" {
122    pub fn cef_string_utf8_clear(str_: *mut cef_string_utf8_t);
123}
124unsafe extern "C" {
125    pub fn cef_string_utf16_clear(str_: *mut cef_string_utf16_t);
126}
127unsafe extern "C" {
128    #[doc = "\n These functions compare two string values with the same results as strcmp().\n"]
129    pub fn cef_string_wide_cmp(
130        str1: *const cef_string_wide_t,
131        str2: *const cef_string_wide_t,
132    ) -> ::std::os::raw::c_int;
133}
134unsafe extern "C" {
135    pub fn cef_string_utf8_cmp(
136        str1: *const cef_string_utf8_t,
137        str2: *const cef_string_utf8_t,
138    ) -> ::std::os::raw::c_int;
139}
140unsafe extern "C" {
141    pub fn cef_string_utf16_cmp(
142        str1: *const cef_string_utf16_t,
143        str2: *const cef_string_utf16_t,
144    ) -> ::std::os::raw::c_int;
145}
146unsafe extern "C" {
147    #[doc = "\n These functions convert between UTF-8, -16, and -32 strings. They are\n potentially slow so unnecessary conversions should be avoided. The best\n possible result will always be written to |output| with the boolean return\n value indicating whether the conversion is 100% valid.\n"]
148    pub fn cef_string_wide_to_utf8(
149        src: *const wchar_t,
150        src_len: usize,
151        output: *mut cef_string_utf8_t,
152    ) -> ::std::os::raw::c_int;
153}
154unsafe extern "C" {
155    pub fn cef_string_utf8_to_wide(
156        src: *const ::std::os::raw::c_char,
157        src_len: usize,
158        output: *mut cef_string_wide_t,
159    ) -> ::std::os::raw::c_int;
160}
161unsafe extern "C" {
162    pub fn cef_string_wide_to_utf16(
163        src: *const wchar_t,
164        src_len: usize,
165        output: *mut cef_string_utf16_t,
166    ) -> ::std::os::raw::c_int;
167}
168unsafe extern "C" {
169    pub fn cef_string_utf16_to_wide(
170        src: *const char16_t,
171        src_len: usize,
172        output: *mut cef_string_wide_t,
173    ) -> ::std::os::raw::c_int;
174}
175unsafe extern "C" {
176    pub fn cef_string_utf8_to_utf16(
177        src: *const ::std::os::raw::c_char,
178        src_len: usize,
179        output: *mut cef_string_utf16_t,
180    ) -> ::std::os::raw::c_int;
181}
182unsafe extern "C" {
183    pub fn cef_string_utf16_to_utf8(
184        src: *const char16_t,
185        src_len: usize,
186        output: *mut cef_string_utf8_t,
187    ) -> ::std::os::raw::c_int;
188}
189unsafe extern "C" {
190    #[doc = "\n These functions convert an ASCII string, typically a hardcoded constant, to\n a Wide/UTF16 string. Use instead of the UTF8 conversion routines if you know\n the string is ASCII.\n"]
191    pub fn cef_string_ascii_to_wide(
192        src: *const ::std::os::raw::c_char,
193        src_len: usize,
194        output: *mut cef_string_wide_t,
195    ) -> ::std::os::raw::c_int;
196}
197unsafe extern "C" {
198    pub fn cef_string_ascii_to_utf16(
199        src: *const ::std::os::raw::c_char,
200        src_len: usize,
201        output: *mut cef_string_utf16_t,
202    ) -> ::std::os::raw::c_int;
203}
204#[doc = "\n It is sometimes necessary for the system to allocate string structures with\n the expectation that the user will free them. The userfree types act as a\n hint that the user is responsible for freeing the structure.\n"]
205pub type cef_string_userfree_wide_t = *mut cef_string_wide_t;
206pub type cef_string_userfree_utf8_t = *mut cef_string_utf8_t;
207pub type cef_string_userfree_utf16_t = *mut cef_string_utf16_t;
208unsafe extern "C" {
209    #[doc = "\n These functions allocate a new string structure. They must be freed by\n calling the associated free function.\n"]
210    pub fn cef_string_userfree_wide_alloc() -> cef_string_userfree_wide_t;
211}
212unsafe extern "C" {
213    pub fn cef_string_userfree_utf8_alloc() -> cef_string_userfree_utf8_t;
214}
215unsafe extern "C" {
216    pub fn cef_string_userfree_utf16_alloc() -> cef_string_userfree_utf16_t;
217}
218unsafe extern "C" {
219    #[doc = "\n These functions free the string structure allocated by the associated\n alloc function. Any string contents will first be cleared.\n"]
220    pub fn cef_string_userfree_wide_free(str_: cef_string_userfree_wide_t);
221}
222unsafe extern "C" {
223    pub fn cef_string_userfree_utf8_free(str_: cef_string_userfree_utf8_t);
224}
225unsafe extern "C" {
226    pub fn cef_string_userfree_utf16_free(str_: cef_string_userfree_utf16_t);
227}
228unsafe extern "C" {
229    #[doc = "\n These functions convert utf16 string case using the current ICU locale. This\n may change the length of the string in some cases.\n"]
230    pub fn cef_string_utf16_to_lower(
231        src: *const char16_t,
232        src_len: usize,
233        output: *mut cef_string_utf16_t,
234    ) -> ::std::os::raw::c_int;
235}
236unsafe extern "C" {
237    pub fn cef_string_utf16_to_upper(
238        src: *const char16_t,
239        src_len: usize,
240        output: *mut cef_string_utf16_t,
241    ) -> ::std::os::raw::c_int;
242}
243pub type cef_char_t = char16_t;
244pub type cef_string_userfree_t = cef_string_userfree_utf16_t;
245pub type cef_string_t = cef_string_utf16_t;
246#[repr(C)]
247#[derive(Debug, Copy, Clone)]
248pub struct _cef_string_list_t {
249    _unused: [u8; 0],
250}
251#[doc = "\n CEF string maps are a set of key/value string pairs.\n"]
252pub type cef_string_list_t = *mut _cef_string_list_t;
253unsafe extern "C" {
254    #[doc = "\n Allocate a new string map.\n"]
255    pub fn cef_string_list_alloc() -> cef_string_list_t;
256}
257unsafe extern "C" {
258    #[doc = "\n Return the number of elements in the string list.\n"]
259    pub fn cef_string_list_size(list: cef_string_list_t) -> usize;
260}
261unsafe extern "C" {
262    #[doc = "\n Retrieve the value at the specified zero-based string list index. Returns\n true (1) if the value was successfully retrieved.\n"]
263    pub fn cef_string_list_value(
264        list: cef_string_list_t,
265        index: usize,
266        value: *mut cef_string_t,
267    ) -> ::std::os::raw::c_int;
268}
269unsafe extern "C" {
270    #[doc = "\n Append a new value at the end of the string list.\n"]
271    pub fn cef_string_list_append(list: cef_string_list_t, value: *const cef_string_t);
272}
273unsafe extern "C" {
274    #[doc = "\n Clear the string list.\n"]
275    pub fn cef_string_list_clear(list: cef_string_list_t);
276}
277unsafe extern "C" {
278    #[doc = "\n Free the string list.\n"]
279    pub fn cef_string_list_free(list: cef_string_list_t);
280}
281unsafe extern "C" {
282    #[doc = "\n Creates a copy of an existing string list.\n"]
283    pub fn cef_string_list_copy(list: cef_string_list_t) -> cef_string_list_t;
284}
285#[repr(C)]
286#[derive(Debug, Copy, Clone)]
287pub struct _cef_string_map_t {
288    _unused: [u8; 0],
289}
290#[doc = "\n CEF string maps are a set of key/value string pairs.\n"]
291pub type cef_string_map_t = *mut _cef_string_map_t;
292unsafe extern "C" {
293    #[doc = "\n Allocate a new string map.\n"]
294    pub fn cef_string_map_alloc() -> cef_string_map_t;
295}
296unsafe extern "C" {
297    #[doc = "\n Return the number of elements in the string map.\n"]
298    pub fn cef_string_map_size(map: cef_string_map_t) -> usize;
299}
300unsafe extern "C" {
301    #[doc = "\n Return the value assigned to the specified key.\n"]
302    pub fn cef_string_map_find(
303        map: cef_string_map_t,
304        key: *const cef_string_t,
305        value: *mut cef_string_t,
306    ) -> ::std::os::raw::c_int;
307}
308unsafe extern "C" {
309    #[doc = "\n Return the key at the specified zero-based string map index.\n"]
310    pub fn cef_string_map_key(
311        map: cef_string_map_t,
312        index: usize,
313        key: *mut cef_string_t,
314    ) -> ::std::os::raw::c_int;
315}
316unsafe extern "C" {
317    #[doc = "\n Return the value at the specified zero-based string map index.\n"]
318    pub fn cef_string_map_value(
319        map: cef_string_map_t,
320        index: usize,
321        value: *mut cef_string_t,
322    ) -> ::std::os::raw::c_int;
323}
324unsafe extern "C" {
325    #[doc = "\n Append a new key/value pair at the end of the string map. If the key exists,\n overwrite the existing value with a new value w/o changing the pair order.\n"]
326    pub fn cef_string_map_append(
327        map: cef_string_map_t,
328        key: *const cef_string_t,
329        value: *const cef_string_t,
330    ) -> ::std::os::raw::c_int;
331}
332unsafe extern "C" {
333    #[doc = "\n Clear the string map.\n"]
334    pub fn cef_string_map_clear(map: cef_string_map_t);
335}
336unsafe extern "C" {
337    #[doc = "\n Free the string map.\n"]
338    pub fn cef_string_map_free(map: cef_string_map_t);
339}
340#[repr(C)]
341#[derive(Debug, Copy, Clone)]
342pub struct _cef_string_multimap_t {
343    _unused: [u8; 0],
344}
345#[doc = "\n CEF string multimaps are a set of key/value string pairs.\n More than one value can be assigned to a single key.\n"]
346pub type cef_string_multimap_t = *mut _cef_string_multimap_t;
347unsafe extern "C" {
348    #[doc = "\n Allocate a new string multimap.\n"]
349    pub fn cef_string_multimap_alloc() -> cef_string_multimap_t;
350}
351unsafe extern "C" {
352    #[doc = "\n Return the number of elements in the string multimap.\n"]
353    pub fn cef_string_multimap_size(map: cef_string_multimap_t) -> usize;
354}
355unsafe extern "C" {
356    #[doc = "\n Return the number of values with the specified key.\n"]
357    pub fn cef_string_multimap_find_count(
358        map: cef_string_multimap_t,
359        key: *const cef_string_t,
360    ) -> usize;
361}
362unsafe extern "C" {
363    #[doc = "\n Return the value_index-th value with the specified key.\n"]
364    pub fn cef_string_multimap_enumerate(
365        map: cef_string_multimap_t,
366        key: *const cef_string_t,
367        value_index: usize,
368        value: *mut cef_string_t,
369    ) -> ::std::os::raw::c_int;
370}
371unsafe extern "C" {
372    #[doc = "\n Return the key at the specified zero-based string multimap index.\n"]
373    pub fn cef_string_multimap_key(
374        map: cef_string_multimap_t,
375        index: usize,
376        key: *mut cef_string_t,
377    ) -> ::std::os::raw::c_int;
378}
379unsafe extern "C" {
380    #[doc = "\n Return the value at the specified zero-based string multimap index.\n"]
381    pub fn cef_string_multimap_value(
382        map: cef_string_multimap_t,
383        index: usize,
384        value: *mut cef_string_t,
385    ) -> ::std::os::raw::c_int;
386}
387unsafe extern "C" {
388    #[doc = "\n Append a new key/value pair at the end of the string multimap.\n"]
389    pub fn cef_string_multimap_append(
390        map: cef_string_multimap_t,
391        key: *const cef_string_t,
392        value: *const cef_string_t,
393    ) -> ::std::os::raw::c_int;
394}
395unsafe extern "C" {
396    #[doc = "\n Clear the string multimap.\n"]
397    pub fn cef_string_multimap_clear(map: cef_string_multimap_t);
398}
399unsafe extern "C" {
400    #[doc = "\n Free the string multimap.\n"]
401    pub fn cef_string_multimap_free(map: cef_string_multimap_t);
402}
403pub type time_t = __time_t;
404#[doc = "\n Represents a wall clock time in UTC. Values are not guaranteed to be\n monotonically non-decreasing and are subject to large amounts of skew.\n Time is stored internally as microseconds since the Windows epoch (1601).\n\n This is equivalent of Chromium `base::Time` (see base/time/time.h).\n"]
405#[repr(C)]
406#[derive(Debug, Copy, Clone)]
407pub struct _cef_basetime_t {
408    pub val: i64,
409}
410#[allow(clippy::unnecessary_operation, clippy::identity_op)]
411const _: () = {
412    ["Size of _cef_basetime_t"][::std::mem::size_of::<_cef_basetime_t>() - 8usize];
413    ["Alignment of _cef_basetime_t"][::std::mem::align_of::<_cef_basetime_t>() - 8usize];
414    ["Offset of field: _cef_basetime_t::val"]
415        [::std::mem::offset_of!(_cef_basetime_t, val) - 0usize];
416};
417#[doc = "\n Represents a wall clock time in UTC. Values are not guaranteed to be\n monotonically non-decreasing and are subject to large amounts of skew.\n Time is stored internally as microseconds since the Windows epoch (1601).\n\n This is equivalent of Chromium `base::Time` (see base/time/time.h).\n"]
418pub type cef_basetime_t = _cef_basetime_t;
419#[doc = "\n Time information. Values should always be in UTC.\n"]
420#[repr(C)]
421#[derive(Debug, Copy, Clone)]
422pub struct _cef_time_t {
423    #[doc = "\n Four or five digit year \"2007\" (1601 to 30827 on Windows, 1970 to 2038 on\n 32-bit POSIX)\n"]
424    pub year: ::std::os::raw::c_int,
425    #[doc = "\n 1-based month (values 1 = January, etc.)\n"]
426    pub month: ::std::os::raw::c_int,
427    #[doc = "\n 0-based day of week (0 = Sunday, etc.)\n"]
428    pub day_of_week: ::std::os::raw::c_int,
429    #[doc = "\n 1-based day of month (1-31)\n"]
430    pub day_of_month: ::std::os::raw::c_int,
431    #[doc = "\n Hour within the current day (0-23)\n"]
432    pub hour: ::std::os::raw::c_int,
433    #[doc = "\n Minute within the current hour (0-59)\n"]
434    pub minute: ::std::os::raw::c_int,
435    #[doc = "\n Second within the current minute (0-59 plus leap seconds which may take\n it up to 60).\n"]
436    pub second: ::std::os::raw::c_int,
437    #[doc = "\n Milliseconds within the current second (0-999)\n"]
438    pub millisecond: ::std::os::raw::c_int,
439}
440#[allow(clippy::unnecessary_operation, clippy::identity_op)]
441const _: () = {
442    ["Size of _cef_time_t"][::std::mem::size_of::<_cef_time_t>() - 32usize];
443    ["Alignment of _cef_time_t"][::std::mem::align_of::<_cef_time_t>() - 4usize];
444    ["Offset of field: _cef_time_t::year"][::std::mem::offset_of!(_cef_time_t, year) - 0usize];
445    ["Offset of field: _cef_time_t::month"][::std::mem::offset_of!(_cef_time_t, month) - 4usize];
446    ["Offset of field: _cef_time_t::day_of_week"]
447        [::std::mem::offset_of!(_cef_time_t, day_of_week) - 8usize];
448    ["Offset of field: _cef_time_t::day_of_month"]
449        [::std::mem::offset_of!(_cef_time_t, day_of_month) - 12usize];
450    ["Offset of field: _cef_time_t::hour"][::std::mem::offset_of!(_cef_time_t, hour) - 16usize];
451    ["Offset of field: _cef_time_t::minute"][::std::mem::offset_of!(_cef_time_t, minute) - 20usize];
452    ["Offset of field: _cef_time_t::second"][::std::mem::offset_of!(_cef_time_t, second) - 24usize];
453    ["Offset of field: _cef_time_t::millisecond"]
454        [::std::mem::offset_of!(_cef_time_t, millisecond) - 28usize];
455};
456#[doc = "\n Time information. Values should always be in UTC.\n"]
457pub type cef_time_t = _cef_time_t;
458unsafe extern "C" {
459    #[doc = "\n Converts cef_time_t to/from time_t. Returns true (1) on success and false\n (0) on failure.\n"]
460    pub fn cef_time_to_timet(
461        cef_time: *const cef_time_t,
462        time: *mut time_t,
463    ) -> ::std::os::raw::c_int;
464}
465unsafe extern "C" {
466    pub fn cef_time_from_timet(time: time_t, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
467}
468unsafe extern "C" {
469    #[doc = "\n Converts cef_time_t to/from a double which is the number of seconds since\n epoch (Jan 1, 1970). Webkit uses this format to represent time. A value of 0\n means \"not initialized\". Returns true (1) on success and false (0) on\n failure.\n"]
470    pub fn cef_time_to_doublet(
471        cef_time: *const cef_time_t,
472        time: *mut f64,
473    ) -> ::std::os::raw::c_int;
474}
475unsafe extern "C" {
476    pub fn cef_time_from_doublet(time: f64, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
477}
478unsafe extern "C" {
479    #[doc = "\n Retrieve the current system time. Returns true (1) on success and false (0)\n on failure.\n"]
480    pub fn cef_time_now(cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
481}
482unsafe extern "C" {
483    #[doc = "\n Retrieve the current system time.\n"]
484    pub fn cef_basetime_now() -> cef_basetime_t;
485}
486unsafe extern "C" {
487    #[doc = "\n Retrieve the delta in milliseconds between two time values. Returns true (1)\n on success and false (0) on failure."]
488    pub fn cef_time_delta(
489        cef_time1: *const cef_time_t,
490        cef_time2: *const cef_time_t,
491        delta: *mut ::std::os::raw::c_longlong,
492    ) -> ::std::os::raw::c_int;
493}
494unsafe extern "C" {
495    #[doc = "\n Converts cef_time_t to cef_basetime_t. Returns true (1) on success and\n false (0) on failure.\n"]
496    pub fn cef_time_to_basetime(
497        from: *const cef_time_t,
498        to: *mut cef_basetime_t,
499    ) -> ::std::os::raw::c_int;
500}
501unsafe extern "C" {
502    #[doc = "\n Converts cef_basetime_t to cef_time_t. Returns true (1) on success and\n false (0) on failure.\n"]
503    pub fn cef_time_from_basetime(
504        from: cef_basetime_t,
505        to: *mut cef_time_t,
506    ) -> ::std::os::raw::c_int;
507}
508#[repr(u32)]
509#[non_exhaustive]
510#[doc = "\n Supported content setting types. Some types are platform-specific or only\n supported with Chrome style. Should be kept in sync with Chromium's\n ContentSettingsType type.\n"]
511#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
512pub enum cef_content_setting_types_t {
513    #[doc = " provided context. However, it may be overridden by other settings. This\n enum should NOT be read directly to determine whether cookies are enabled;\n the client should instead rely on the CookieSettings API."]
514    CEF_CONTENT_SETTING_TYPE_COOKIES = 0,
515    #[doc = " provided context. However, it may be overridden by other settings. This\n enum should NOT be read directly to determine whether cookies are enabled;\n the client should instead rely on the CookieSettings API."]
516    CEF_CONTENT_SETTING_TYPE_IMAGES = 1,
517    #[doc = " provided context. However, it may be overridden by other settings. This\n enum should NOT be read directly to determine whether cookies are enabled;\n the client should instead rely on the CookieSettings API."]
518    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT = 2,
519    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
520    CEF_CONTENT_SETTING_TYPE_POPUPS = 3,
521    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
522    CEF_CONTENT_SETTING_TYPE_GEOLOCATION = 4,
523    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
524    CEF_CONTENT_SETTING_TYPE_NOTIFICATIONS = 5,
525    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
526    CEF_CONTENT_SETTING_TYPE_AUTO_SELECT_CERTIFICATE = 6,
527    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
528    CEF_CONTENT_SETTING_TYPE_MIXEDSCRIPT = 7,
529    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
530    CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_MIC = 8,
531    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
532    CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_CAMERA = 9,
533    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
534    CEF_CONTENT_SETTING_TYPE_PROTOCOL_HANDLERS = 10,
535    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
536    CEF_CONTENT_SETTING_TYPE_DEPRECATED_PPAPI_BROKER = 11,
537    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
538    CEF_CONTENT_SETTING_TYPE_AUTOMATIC_DOWNLOADS = 12,
539    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
540    CEF_CONTENT_SETTING_TYPE_MIDI_SYSEX = 13,
541    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
542    CEF_CONTENT_SETTING_TYPE_SSL_CERT_DECISIONS = 14,
543    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
544    CEF_CONTENT_SETTING_TYPE_PROTECTED_MEDIA_IDENTIFIER = 15,
545    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
546    CEF_CONTENT_SETTING_TYPE_APP_BANNER = 16,
547    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
548    CEF_CONTENT_SETTING_TYPE_SITE_ENGAGEMENT = 17,
549    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
550    CEF_CONTENT_SETTING_TYPE_DURABLE_STORAGE = 18,
551    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
552    CEF_CONTENT_SETTING_TYPE_USB_CHOOSER_DATA = 19,
553    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
554    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_GUARD = 20,
555    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
556    CEF_CONTENT_SETTING_TYPE_BACKGROUND_SYNC = 21,
557    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
558    CEF_CONTENT_SETTING_TYPE_AUTOPLAY = 22,
559    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
560    CEF_CONTENT_SETTING_TYPE_IMPORTANT_SITE_INFO = 23,
561    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
562    CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOBLOCKER_DATA = 24,
563    #[doc = " Advanced device-specific functions on MIDI devices. MIDI-SysEx\n communications can be used for changing the MIDI device's persistent state\n such as firmware."]
564    CEF_CONTENT_SETTING_TYPE_ADS = 25,
565    #[doc = " Website setting which stores metadata for the subresource filter to aid in\n decisions for whether or not to show the UI."]
566    CEF_CONTENT_SETTING_TYPE_ADS_DATA = 26,
567    #[doc = " MIDI stands for Musical Instrument Digital Interface. It is a standard\n that allows electronic musical instruments, computers, and other devices\n to communicate with each other."]
568    CEF_CONTENT_SETTING_TYPE_MIDI = 27,
569    #[doc = " This content setting type is for caching password protection service's\n verdicts of each origin."]
570    CEF_CONTENT_SETTING_TYPE_PASSWORD_PROTECTION = 28,
571    #[doc = " Website setting which stores engagement data for media related to a\n specific origin."]
572    CEF_CONTENT_SETTING_TYPE_MEDIA_ENGAGEMENT = 29,
573    #[doc = " Content setting which stores whether or not the site can play audible\n sound. This will not block playback but instead the user will not hear it."]
574    CEF_CONTENT_SETTING_TYPE_SOUND = 30,
575    #[doc = " Website setting which stores the list of client hints that the origin\n requested the browser to remember. The browser is expected to send all\n client hints in the HTTP request headers for every resource requested\n from that origin."]
576    CEF_CONTENT_SETTING_TYPE_CLIENT_HINTS = 31,
577    #[doc = " Generic Sensor API covering ambient-light-sensor, accelerometer, gyroscope\n and magnetometer are all mapped to a single content_settings_type.\n Setting for the Generic Sensor API covering ambient-light-sensor,\n accelerometer, gyroscope and magnetometer. These are all mapped to a\n single ContentSettingsType."]
578    CEF_CONTENT_SETTING_TYPE_SENSORS = 32,
579    #[doc = " Content setting which stores whether or not the user has granted the site\n permission to respond to accessibility events, which can be used to\n provide a custom accessibility experience. Requires explicit user consent\n because some users may not want sites to know they're using assistive\n technology. Deprecated in M131."]
580    CEF_CONTENT_SETTING_TYPE_DEPRECATED_ACCESSIBILITY_EVENTS = 33,
581    #[doc = " Used to store whether to allow a website to install a payment handler."]
582    CEF_CONTENT_SETTING_TYPE_PAYMENT_HANDLER = 34,
583    #[doc = " Content setting which stores whether to allow sites to ask for permission\n to access USB devices. If this is allowed specific device permissions are\n stored under USB_CHOOSER_DATA."]
584    CEF_CONTENT_SETTING_TYPE_USB_GUARD = 35,
585    #[doc = " Nothing is stored in this setting at present. Please refer to\n BackgroundFetchPermissionContext for details on how this permission\n is ascertained."]
586    CEF_CONTENT_SETTING_TYPE_BACKGROUND_FETCH = 36,
587    #[doc = " Website setting which stores the amount of times the user has dismissed\n intent picker UI without explicitly choosing an option."]
588    CEF_CONTENT_SETTING_TYPE_INTENT_PICKER_DISPLAY = 37,
589    #[doc = " Used to store whether to allow a website to detect user active/idle state."]
590    CEF_CONTENT_SETTING_TYPE_IDLE_DETECTION = 38,
591    #[doc = " Content settings for access to serial ports. The \"guard\" content setting\n stores whether to allow sites to ask for permission to access a port. The\n permissions granted to access particular ports are stored in the \"chooser\n data\" website setting."]
592    CEF_CONTENT_SETTING_TYPE_SERIAL_GUARD = 39,
593    #[doc = " Content settings for access to serial ports. The \"guard\" content setting\n stores whether to allow sites to ask for permission to access a port. The\n permissions granted to access particular ports are stored in the \"chooser\n data\" website setting."]
594    CEF_CONTENT_SETTING_TYPE_SERIAL_CHOOSER_DATA = 40,
595    #[doc = " Nothing is stored in this setting at present. Please refer to\n PeriodicBackgroundSyncPermissionContext for details on how this permission\n is ascertained.\n This content setting is not registered because it does not require access\n to any existing providers."]
596    CEF_CONTENT_SETTING_TYPE_PERIODIC_BACKGROUND_SYNC = 41,
597    #[doc = " Content setting which stores whether to allow sites to ask for permission\n to do Bluetooth scanning."]
598    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_SCANNING = 42,
599    #[doc = " Content settings for access to HID devices. The \"guard\" content setting\n stores whether to allow sites to ask for permission to access a device.\n The permissions granted to access particular devices are stored in the\n \"chooser data\" website setting."]
600    CEF_CONTENT_SETTING_TYPE_HID_GUARD = 43,
601    #[doc = " Content settings for access to HID devices. The \"guard\" content setting\n stores whether to allow sites to ask for permission to access a device.\n The permissions granted to access particular devices are stored in the\n \"chooser data\" website setting."]
602    CEF_CONTENT_SETTING_TYPE_HID_CHOOSER_DATA = 44,
603    #[doc = " Wake Lock API, which has two lock types: screen and system locks.\n Currently, screen locks do not need any additional permission, and system\n locks are always denied while the right UI is worked out."]
604    CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SCREEN = 45,
605    #[doc = " Wake Lock API, which has two lock types: screen and system locks.\n Currently, screen locks do not need any additional permission, and system\n locks are always denied while the right UI is worked out."]
606    CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SYSTEM = 46,
607    #[doc = " Legacy SameSite cookie behavior. This disables SameSite=Lax-by-default,\n SameSite=None requires Secure, and Schemeful Same-Site, forcing the\n legacy behavior wherein 1) cookies that don't specify SameSite are treated\n as SameSite=None, 2) SameSite=None cookies are not required to be Secure,\n and 3) schemeful same-site is not active.\n\n This will also be used to revert to legacy behavior when future changes\n in cookie handling are introduced."]
608    CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_ACCESS = 47,
609    #[doc = " Content settings which stores whether to allow sites to ask for permission\n to save changes to an original file selected by the user through the\n File System Access API."]
610    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_WRITE_GUARD = 48,
611    #[doc = " Used to store whether to allow a website to exchange data with NFC\n devices."]
612    CEF_CONTENT_SETTING_TYPE_NFC = 49,
613    #[doc = " Website setting to store permissions granted to access particular\n Bluetooth devices."]
614    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_CHOOSER_DATA = 50,
615    #[doc = " Full access to the system clipboard (sanitized read without user gesture,\n and unsanitized read and write with user gesture)."]
616    CEF_CONTENT_SETTING_TYPE_CLIPBOARD_READ_WRITE = 51,
617    #[doc = " This is special-cased in the permissions layer to always allow, and as\n such doesn't have associated prefs data."]
618    CEF_CONTENT_SETTING_TYPE_CLIPBOARD_SANITIZED_WRITE = 52,
619    #[doc = " This content setting type is for caching safe browsing real time url\n check's verdicts of each origin."]
620    CEF_CONTENT_SETTING_TYPE_SAFE_BROWSING_URL_CHECK_DATA = 53,
621    #[doc = " Used to store whether a site is allowed to request AR or VR sessions with\n the WebXr Device API."]
622    CEF_CONTENT_SETTING_TYPE_VR = 54,
623    #[doc = " Used to store whether a site is allowed to request AR or VR sessions with\n the WebXr Device API."]
624    CEF_CONTENT_SETTING_TYPE_AR = 55,
625    #[doc = " Content setting which stores whether to allow site to open and read files\n and directories selected through the File System Access API."]
626    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_READ_GUARD = 56,
627    #[doc = " Access to first party storage in a third-party context. Exceptions are\n scoped to the combination of requesting/top-level origin, and are managed\n through the Storage Access API. For the time being, this content setting\n exists in parallel to third-party cookie rules stored in COOKIES."]
628    CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS = 57,
629    #[doc = " Content setting which stores whether to allow a site to control camera\n movements. It does not give access to camera."]
630    CEF_CONTENT_SETTING_TYPE_CAMERA_PAN_TILT_ZOOM = 58,
631    #[doc = " Content setting for Screen Enumeration and Screen Detail functionality.\n Permits access to detailed multi-screen information, like size and\n position. Permits placing fullscreen and windowed content on specific\n screens. See also: https://w3c.github.io/window-placement"]
632    CEF_CONTENT_SETTING_TYPE_WINDOW_MANAGEMENT = 59,
633    #[doc = " Stores whether to allow insecure websites to make private network\n requests.\n See also: https://wicg.github.io/cors-rfc1918\n Set through enterprise policies only."]
634    CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK = 60,
635    #[doc = " Content setting which stores whether or not a site can access low-level\n locally installed font data using the Local Fonts Access API."]
636    CEF_CONTENT_SETTING_TYPE_LOCAL_FONTS = 61,
637    #[doc = " Stores per-origin state for permission auto-revocation (for all permission\n types)."]
638    CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOREVOCATION_DATA = 62,
639    #[doc = " Stores per-origin state of the most recently selected directory for the\n use by the File System Access API."]
640    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY = 63,
641    #[doc = " Controls access to the getDisplayMedia API."]
642    CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE = 64,
643    #[doc = " Website setting to store permissions metadata granted to paths on the\n local file system via the File System Access API.\n |FILE_SYSTEM_WRITE_GUARD| is the corresponding \"guard\" setting. The stored\n data represents valid permission only if\n |FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION| is enabled via user opt-in.\n Otherwise, they represent \"recently granted but revoked permission\", which\n are used to restore the permission."]
644    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_CHOOSER_DATA = 65,
645    #[doc = " Stores a grant that allows a relying party to send a request for identity\n information to specified identity providers, potentially through any\n anti-tracking measures that would otherwise prevent it. This setting is\n associated with the relying party's origin."]
646    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_SHARING = 66,
647    #[doc = " Whether to use the v8 optimized JIT for running JavaScript on the page."]
648    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_JIT = 67,
649    #[doc = " Content setting which stores user decisions to allow loading a site over\n HTTP. Entries are added by hostname when a user bypasses the HTTPS-First\n Mode interstitial warning when a site does not support HTTPS. Allowed\n hosts are exact hostname matches -- subdomains of a host on the allowlist\n must be separately allowlisted."]
650    CEF_CONTENT_SETTING_TYPE_HTTP_ALLOWED = 68,
651    #[doc = " Stores metadata related to form fill, such as e.g. whether user data was\n autofilled on a specific website."]
652    CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA = 69,
653    #[doc = " Setting to indicate that there is an active federated sign-in session\n between a specified relying party and a specified identity provider for\n a specified account. When this is present it allows access to session\n management capabilities between the sites. This setting is associated\n with the relying party's origin."]
654    CEF_CONTENT_SETTING_TYPE_DEPRECATED_FEDERATED_IDENTITY_ACTIVE_SESSION = 70,
655    #[doc = " Setting to indicate whether Chrome should automatically apply darkening to\n web content."]
656    CEF_CONTENT_SETTING_TYPE_AUTO_DARK_WEB_CONTENT = 71,
657    #[doc = " Setting to indicate whether Chrome should request the desktop view of a\n site instead of the mobile one."]
658    CEF_CONTENT_SETTING_TYPE_REQUEST_DESKTOP_SITE = 72,
659    #[doc = " Setting to indicate whether browser should allow signing into a website\n via the browser FedCM API."]
660    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_API = 73,
661    #[doc = " Stores notification interactions per origin for the past 90 days.\n Interactions per origin are pre-aggregated over seven-day windows: A\n notification interaction or display is assigned to the last Monday\n midnight in local time."]
662    CEF_CONTENT_SETTING_TYPE_NOTIFICATION_INTERACTIONS = 74,
663    #[doc = " Website setting which stores the last reduced accept language negotiated\n for a given origin, to be used on future visits to the origin."]
664    CEF_CONTENT_SETTING_TYPE_REDUCED_ACCEPT_LANGUAGE = 75,
665    #[doc = " Website setting which is used for NotificationPermissionReviewService to\n store origin blocklist from review notification permissions feature."]
666    CEF_CONTENT_SETTING_TYPE_NOTIFICATION_PERMISSION_REVIEW = 76,
667    #[doc = " Website setting to store permissions granted to access particular devices\n in private network."]
668    CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_GUARD = 77,
669    #[doc = " Website setting to store permissions granted to access particular devices\n in private network."]
670    CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_CHOOSER_DATA = 78,
671    #[doc = " Website setting which stores whether the browser has observed the user\n signing into an identity-provider based on observing the IdP-SignIn-Status\n HTTP header."]
672    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS = 79,
673    #[doc = " Website setting which is used for UnusedSitePermissionsService to\n store revoked permissions of unused sites from unused site permissions\n feature."]
674    CEF_CONTENT_SETTING_TYPE_REVOKED_UNUSED_SITE_PERMISSIONS = 80,
675    #[doc = " Similar to STORAGE_ACCESS, but applicable at the page-level rather than\n being specific to a frame."]
676    CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_STORAGE_ACCESS = 81,
677    #[doc = " Setting to indicate whether user has opted in to allowing auto re-authn\n via the FedCM API."]
678    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_AUTO_REAUTHN_PERMISSION = 82,
679    #[doc = " Website setting which stores whether the user has explicitly registered\n a website as an identity-provider."]
680    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_REGISTRATION = 83,
681    #[doc = " Content setting which is used to indicate whether anti-abuse functionality\n should be enabled."]
682    CEF_CONTENT_SETTING_TYPE_ANTI_ABUSE = 84,
683    #[doc = " Content setting used to indicate whether third-party storage partitioning\n should be enabled."]
684    CEF_CONTENT_SETTING_TYPE_THIRD_PARTY_STORAGE_PARTITIONING = 85,
685    #[doc = " Used to indicate whether HTTPS-First Mode is enabled on the hostname."]
686    CEF_CONTENT_SETTING_TYPE_HTTPS_ENFORCED = 86,
687    #[doc = " Setting for enabling the `getAllScreensMedia` API. Spec link:\n https://github.com/screen-share/capture-all-screens"]
688    CEF_CONTENT_SETTING_TYPE_ALL_SCREEN_CAPTURE = 87,
689    #[doc = " Stores per origin metadata for cookie controls."]
690    CEF_CONTENT_SETTING_TYPE_COOKIE_CONTROLS_METADATA = 88,
691    #[doc = " Content Setting for temporary 3PC accesses granted by user behavior\n heuristics."]
692    CEF_CONTENT_SETTING_TYPE_TPCD_HEURISTICS_GRANTS = 89,
693    #[doc = " Content Setting for 3PC accesses granted by metadata delivered via the\n component updater service. This type will only be used when\n `net::features::kTpcdMetadataGrants` is enabled."]
694    CEF_CONTENT_SETTING_TYPE_TPCD_METADATA_GRANTS = 90,
695    #[doc = " Content Setting for 3PC accesses granted via 3PC deprecation trial."]
696    CEF_CONTENT_SETTING_TYPE_TPCD_TRIAL = 91,
697    #[doc = " Content Setting for 3PC accesses granted via top-level 3PC deprecation\n trial. Similar to TPCD_TRIAL, but applicable at the page-level for the\n lifetime of the page that served the token, rather than being specific to\n a requesting-origin/top-level-site combination and persistent."]
698    CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_TRIAL = 92,
699    #[doc = " Content Setting for a first-party origin trial that allows websites to\n enable third-party cookie deprecation.\n ALLOW (default): no effect (e.g. third-party cookies allowed, if not\n                  blocked otherwise).\n BLOCK: third-party cookies blocked, but 3PCD mitigations enabled."]
700    CEF_CONTENT_SETTING_TOP_LEVEL_TPCD_ORIGIN_TRIAL = 93,
701    #[doc = " Content setting used to indicate whether entering picture-in-picture\n automatically should be enabled."]
702    CEF_CONTENT_SETTING_TYPE_AUTO_PICTURE_IN_PICTURE = 94,
703    #[doc = " Whether user has opted into keeping file/directory permissions persistent\n between visits for a given origin. When enabled, permission metadata\n stored under |FILE_SYSTEM_ACCESS_CHOOSER_DATA| can auto-grant incoming\n permission request."]
704    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION = 95,
705    #[doc = " Whether the FSA Persistent Permissions restore prompt is eligible to be\n shown to the user, for a given origin."]
706    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_RESTORE_PERMISSION = 96,
707    #[doc = " Whether an application capturing another tab, may scroll and zoom\n the captured tab."]
708    CEF_CONTENT_SETTING_TYPE_CAPTURED_SURFACE_CONTROL = 97,
709    #[doc = " Content setting for access to smart card readers.\n The \"guard\" content setting stores whether to allow sites to access the\n Smart Card API."]
710    CEF_CONTENT_SETTING_TYPE_SMART_CARD_GUARD = 98,
711    #[doc = " Content setting for access to smart card readers.\n The \"guard\" content setting stores whether to allow sites to access the\n Smart Card API."]
712    CEF_CONTENT_SETTING_TYPE_SMART_CARD_DATA = 99,
713    #[doc = " Content settings for access to printers for the Web Printing API."]
714    CEF_CONTENT_SETTING_TYPE_WEB_PRINTING = 100,
715    #[doc = " Content setting used to indicate whether entering HTML Fullscreen\n automatically (i.e. without transient activation) should be enabled."]
716    CEF_CONTENT_SETTING_TYPE_AUTOMATIC_FULLSCREEN = 101,
717    #[doc = " Content settings used to indicate that a web app is allowed to prompt the\n user for the installation of sub apps."]
718    CEF_CONTENT_SETTING_TYPE_SUB_APP_INSTALLATION_PROMPTS = 102,
719    #[doc = " Whether an application can enumerate audio output device."]
720    CEF_CONTENT_SETTING_TYPE_SPEAKER_SELECTION = 103,
721    #[doc = " Content settings for access to the Direct Sockets API."]
722    CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS = 104,
723    #[doc = " Keyboard Lock API allows a site to capture keyboard inputs that would\n otherwise be handled by the OS or the browser."]
724    CEF_CONTENT_SETTING_TYPE_KEYBOARD_LOCK = 105,
725    #[doc = " Pointer Lock API allows a site to hide the cursor and have exclusive\n access to mouse inputs."]
726    CEF_CONTENT_SETTING_TYPE_POINTER_LOCK = 106,
727    #[doc = " Website setting which is used for UnusedSitePermissionsService to store\n auto-revoked notification permissions from abusive sites."]
728    CEF_CONTENT_SETTING_TYPE_REVOKED_ABUSIVE_NOTIFICATION_PERMISSIONS = 107,
729    #[doc = " Content setting that controls tracking protection status per site.\n BLOCK: Protections enabled. This is the default state.\n ALLOW: Protections disabled."]
730    CEF_CONTENT_SETTING_TYPE_TRACKING_PROTECTION = 108,
731    #[doc = " With this permission, when the application calls `getDisplayMedia()`, a\n system audio track can be returned without showing the display media\n selection picker. The application can explicitly specify\n `systemAudio: 'exclude'` or `video: true` to still show the display media\n selection picker if needed. Please note that the setting only works for\n WebUI."]
732    CEF_CONTENT_SETTING_TYPE_DISPLAY_MEDIA_SYSTEM_AUDIO = 109,
733    #[doc = " Whether to use the higher-tier v8 optimizers for running JavaScript on the\n page."]
734    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_OPTIMIZER = 110,
735    #[doc = " Content Setting for the Storage Access Headers persistent origin trial\n that allows origins to opt into the storage access header behavior. Should\n be scoped to `REQUESTING_ORIGIN_AND_TOP_SCHEMEFUL_SITE_SCOPE` in order to\n correspond to the design of persistent origin trials. See also:\n https://github.com/cfredric/storage-access-headers\n ALLOW: storage access request headers will be attached to cross-site\n        requests, and url requests will look for response headers from\n        origins to retry a request or load with storage access.\n BLOCK (default): no effect."]
736    CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS_HEADER_ORIGIN_TRIAL = 111,
737    #[doc = " Whether or not sites can request Hand Tracking data within WebXR Sessions."]
738    CEF_CONTENT_SETTING_TYPE_HAND_TRACKING = 112,
739    #[doc = " Website setting to indicate whether user has opted in to allow web apps to\n install other web apps."]
740    CEF_CONTENT_SETTING_TYPE_WEB_APP_INSTALLATION = 113,
741    #[doc = " Content settings for private network access in the context of the\n Direct Sockets API."]
742    CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS = 114,
743    #[doc = " Content settings for legacy cookie scope.\n Checks whether cookies scope is handled according to origin-bound cookies\n or legacy behavior."]
744    CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_SCOPE = 115,
745    #[doc = " Website setting to indicate whether the user has allowlisted suspicious\n notifications for the origin."]
746    CEF_CONTENT_SETTING_TYPE_ARE_SUSPICIOUS_NOTIFICATIONS_ALLOWLISTED_BY_USER = 116,
747    #[doc = " Content settings for access to the Controlled Frame API."]
748    CEF_CONTENT_SETTING_TYPE_CONTROLLED_FRAME = 117,
749    CEF_CONTENT_SETTING_TYPE_NUM_VALUES = 118,
750}
751#[repr(u32)]
752#[non_exhaustive]
753#[doc = "\n Supported content setting values. Should be kept in sync with Chromium's\n ContentSetting type.\n"]
754#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
755pub enum cef_content_setting_values_t {
756    CEF_CONTENT_SETTING_VALUE_DEFAULT = 0,
757    CEF_CONTENT_SETTING_VALUE_ALLOW = 1,
758    CEF_CONTENT_SETTING_VALUE_BLOCK = 2,
759    CEF_CONTENT_SETTING_VALUE_ASK = 3,
760    CEF_CONTENT_SETTING_VALUE_SESSION_ONLY = 4,
761    CEF_CONTENT_SETTING_VALUE_DETECT_IMPORTANT_CONTENT = 5,
762    CEF_CONTENT_SETTING_VALUE_NUM_VALUES = 6,
763}
764#[doc = "\n Structure representing a point.\n"]
765#[repr(C)]
766#[derive(Debug, Copy, Clone)]
767pub struct _cef_point_t {
768    pub x: ::std::os::raw::c_int,
769    pub y: ::std::os::raw::c_int,
770}
771#[allow(clippy::unnecessary_operation, clippy::identity_op)]
772const _: () = {
773    ["Size of _cef_point_t"][::std::mem::size_of::<_cef_point_t>() - 8usize];
774    ["Alignment of _cef_point_t"][::std::mem::align_of::<_cef_point_t>() - 4usize];
775    ["Offset of field: _cef_point_t::x"][::std::mem::offset_of!(_cef_point_t, x) - 0usize];
776    ["Offset of field: _cef_point_t::y"][::std::mem::offset_of!(_cef_point_t, y) - 4usize];
777};
778#[doc = "\n Structure representing a point.\n"]
779pub type cef_point_t = _cef_point_t;
780#[doc = "\n Structure representing a rectangle.\n"]
781#[repr(C)]
782#[derive(Debug, Copy, Clone)]
783pub struct _cef_rect_t {
784    pub x: ::std::os::raw::c_int,
785    pub y: ::std::os::raw::c_int,
786    pub width: ::std::os::raw::c_int,
787    pub height: ::std::os::raw::c_int,
788}
789#[allow(clippy::unnecessary_operation, clippy::identity_op)]
790const _: () = {
791    ["Size of _cef_rect_t"][::std::mem::size_of::<_cef_rect_t>() - 16usize];
792    ["Alignment of _cef_rect_t"][::std::mem::align_of::<_cef_rect_t>() - 4usize];
793    ["Offset of field: _cef_rect_t::x"][::std::mem::offset_of!(_cef_rect_t, x) - 0usize];
794    ["Offset of field: _cef_rect_t::y"][::std::mem::offset_of!(_cef_rect_t, y) - 4usize];
795    ["Offset of field: _cef_rect_t::width"][::std::mem::offset_of!(_cef_rect_t, width) - 8usize];
796    ["Offset of field: _cef_rect_t::height"][::std::mem::offset_of!(_cef_rect_t, height) - 12usize];
797};
798#[doc = "\n Structure representing a rectangle.\n"]
799pub type cef_rect_t = _cef_rect_t;
800#[doc = "\n Structure representing a size.\n"]
801#[repr(C)]
802#[derive(Debug, Copy, Clone)]
803pub struct _cef_size_t {
804    pub width: ::std::os::raw::c_int,
805    pub height: ::std::os::raw::c_int,
806}
807#[allow(clippy::unnecessary_operation, clippy::identity_op)]
808const _: () = {
809    ["Size of _cef_size_t"][::std::mem::size_of::<_cef_size_t>() - 8usize];
810    ["Alignment of _cef_size_t"][::std::mem::align_of::<_cef_size_t>() - 4usize];
811    ["Offset of field: _cef_size_t::width"][::std::mem::offset_of!(_cef_size_t, width) - 0usize];
812    ["Offset of field: _cef_size_t::height"][::std::mem::offset_of!(_cef_size_t, height) - 4usize];
813};
814#[doc = "\n Structure representing a size.\n"]
815pub type cef_size_t = _cef_size_t;
816#[doc = "\n Structure representing insets.\n"]
817#[repr(C)]
818#[derive(Debug, Copy, Clone)]
819pub struct _cef_insets_t {
820    pub top: ::std::os::raw::c_int,
821    pub left: ::std::os::raw::c_int,
822    pub bottom: ::std::os::raw::c_int,
823    pub right: ::std::os::raw::c_int,
824}
825#[allow(clippy::unnecessary_operation, clippy::identity_op)]
826const _: () = {
827    ["Size of _cef_insets_t"][::std::mem::size_of::<_cef_insets_t>() - 16usize];
828    ["Alignment of _cef_insets_t"][::std::mem::align_of::<_cef_insets_t>() - 4usize];
829    ["Offset of field: _cef_insets_t::top"][::std::mem::offset_of!(_cef_insets_t, top) - 0usize];
830    ["Offset of field: _cef_insets_t::left"][::std::mem::offset_of!(_cef_insets_t, left) - 4usize];
831    ["Offset of field: _cef_insets_t::bottom"]
832        [::std::mem::offset_of!(_cef_insets_t, bottom) - 8usize];
833    ["Offset of field: _cef_insets_t::right"]
834        [::std::mem::offset_of!(_cef_insets_t, right) - 12usize];
835};
836#[doc = "\n Structure representing insets.\n"]
837pub type cef_insets_t = _cef_insets_t;
838#[repr(u32)]
839#[non_exhaustive]
840#[doc = "\n Describes how to interpret the components of a pixel.\n"]
841#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
842pub enum cef_color_type_t {
843    #[doc = "\n RGBA with 8 bits per pixel (32bits total).\n"]
844    CEF_COLOR_TYPE_RGBA_8888 = 0,
845    #[doc = "\n BGRA with 8 bits per pixel (32bits total).\n"]
846    CEF_COLOR_TYPE_BGRA_8888 = 1,
847    #[doc = "\n BGRA with 8 bits per pixel (32bits total).\n"]
848    CEF_COLOR_TYPE_NUM_VALUES = 2,
849}
850#[doc = "\n Structure containing shared texture common metadata.\n For documentation on each field, please refer to\n src/media/base/video_frame_metadata.h for actual details.\n"]
851#[repr(C)]
852#[derive(Debug, Copy, Clone)]
853pub struct _cef_accelerated_paint_info_common_t {
854    #[doc = "\n Size of this structure.\n"]
855    pub size: usize,
856    #[doc = "\n Timestamp of the frame in microseconds since capture start.\n"]
857    pub timestamp: u64,
858    #[doc = "\n The full dimensions of the video frame.\n"]
859    pub coded_size: cef_size_t,
860    #[doc = "\n The visible area of the video frame.\n"]
861    pub visible_rect: cef_rect_t,
862    #[doc = "\n The region of the video frame that capturer would like to populate.\n"]
863    pub content_rect: cef_rect_t,
864    #[doc = "\n Full size of the source frame.\n"]
865    pub source_size: cef_size_t,
866    #[doc = "\n Updated area of frame, can be considered as the `dirty` area.\n"]
867    pub capture_update_rect: cef_rect_t,
868    #[doc = "\n May reflects where the frame's contents originate from if region\n capture is used internally.\n"]
869    pub region_capture_rect: cef_rect_t,
870    #[doc = "\n The increamental counter of the frame.\n"]
871    pub capture_counter: u64,
872    #[doc = "\n Optional flag of capture_update_rect\n"]
873    pub has_capture_update_rect: u8,
874    #[doc = "\n Optional flag of region_capture_rect\n"]
875    pub has_region_capture_rect: u8,
876    #[doc = "\n Optional flag of source_size\n"]
877    pub has_source_size: u8,
878    #[doc = "\n Optional flag of capture_counter\n"]
879    pub has_capture_counter: u8,
880}
881#[allow(clippy::unnecessary_operation, clippy::identity_op)]
882const _: () = {
883    ["Size of _cef_accelerated_paint_info_common_t"]
884        [::std::mem::size_of::<_cef_accelerated_paint_info_common_t>() - 112usize];
885    ["Alignment of _cef_accelerated_paint_info_common_t"]
886        [::std::mem::align_of::<_cef_accelerated_paint_info_common_t>() - 8usize];
887    ["Offset of field: _cef_accelerated_paint_info_common_t::size"]
888        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, size) - 0usize];
889    ["Offset of field: _cef_accelerated_paint_info_common_t::timestamp"]
890        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, timestamp) - 8usize];
891    ["Offset of field: _cef_accelerated_paint_info_common_t::coded_size"]
892        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, coded_size) - 16usize];
893    ["Offset of field: _cef_accelerated_paint_info_common_t::visible_rect"]
894        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, visible_rect) - 24usize];
895    ["Offset of field: _cef_accelerated_paint_info_common_t::content_rect"]
896        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, content_rect) - 40usize];
897    ["Offset of field: _cef_accelerated_paint_info_common_t::source_size"]
898        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, source_size) - 56usize];
899    ["Offset of field: _cef_accelerated_paint_info_common_t::capture_update_rect"][::std::mem::offset_of!(
900        _cef_accelerated_paint_info_common_t,
901        capture_update_rect
902    ) - 64usize];
903    ["Offset of field: _cef_accelerated_paint_info_common_t::region_capture_rect"][::std::mem::offset_of!(
904        _cef_accelerated_paint_info_common_t,
905        region_capture_rect
906    ) - 80usize];
907    ["Offset of field: _cef_accelerated_paint_info_common_t::capture_counter"]
908        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, capture_counter) - 96usize];
909    ["Offset of field: _cef_accelerated_paint_info_common_t::has_capture_update_rect"][::std::mem::offset_of!(
910        _cef_accelerated_paint_info_common_t,
911        has_capture_update_rect
912    )
913        - 104usize];
914    ["Offset of field: _cef_accelerated_paint_info_common_t::has_region_capture_rect"][::std::mem::offset_of!(
915        _cef_accelerated_paint_info_common_t,
916        has_region_capture_rect
917    )
918        - 105usize];
919    ["Offset of field: _cef_accelerated_paint_info_common_t::has_source_size"]
920        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, has_source_size) - 106usize];
921    ["Offset of field: _cef_accelerated_paint_info_common_t::has_capture_counter"][::std::mem::offset_of!(
922        _cef_accelerated_paint_info_common_t,
923        has_capture_counter
924    ) - 107usize];
925};
926#[doc = "\n Structure containing shared texture common metadata.\n For documentation on each field, please refer to\n src/media/base/video_frame_metadata.h for actual details.\n"]
927pub type cef_accelerated_paint_info_common_t = _cef_accelerated_paint_info_common_t;
928#[repr(u32)]
929#[non_exhaustive]
930#[doc = "\n CEF supports both a Chrome runtime style (based on the Chrome UI layer) and\n an Alloy runtime style (based on the Chromium content layer). Chrome style\n provides the full Chrome UI and browser functionality whereas Alloy style\n provides less default browser functionality but adds additional client\n callbacks and support for windowless (off-screen) rendering. The style type\n is individually configured for each window/browser at creation time and\n different styles can be mixed during runtime. For additional comparative\n details on runtime styles see\n https://bitbucket.org/chromiumembedded/cef/wiki/Architecture.md#markdown-header-cef3\n\n Windowless rendering will always use Alloy style. Windowed rendering with a\n default window or client-provided parent window can configure the style via\n CefWindowInfo.runtime_style. Windowed rendering with the Views framework can\n configure the style via CefWindowDelegate::GetWindowRuntimeStyle and\n CefBrowserViewDelegate::GetBrowserRuntimeStyle. Alloy style Windows with the\n Views framework can host only Alloy style BrowserViews but Chrome style\n Windows can host both style BrowserViews. Additionally, a Chrome style\n Window can host at most one Chrome style BrowserView but potentially\n multiple Alloy style BrowserViews. See CefWindowInfo.runtime_style\n documentation for any additional platform-specific limitations.\n"]
931#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
932pub enum cef_runtime_style_t {
933    #[doc = "\n Use the default style. See above documentation for exceptions.\n"]
934    CEF_RUNTIME_STYLE_DEFAULT = 0,
935    #[doc = "\n Use Chrome style.\n"]
936    CEF_RUNTIME_STYLE_CHROME = 1,
937    #[doc = "\n Use Alloy style.\n"]
938    CEF_RUNTIME_STYLE_ALLOY = 2,
939}
940#[repr(C)]
941#[derive(Copy, Clone)]
942pub struct _XEvent {
943    _unused: [u8; 0],
944}
945pub type XEvent = _XEvent;
946#[repr(C)]
947#[derive(Debug, Copy, Clone)]
948pub struct _XDisplay {
949    _unused: [u8; 0],
950}
951pub type XDisplay = _XDisplay;
952pub type cef_cursor_handle_t = ::std::os::raw::c_ulong;
953pub type cef_event_handle_t = *mut XEvent;
954pub type cef_window_handle_t = ::std::os::raw::c_ulong;
955unsafe extern "C" {
956    pub fn cef_get_xdisplay() -> *mut XDisplay;
957}
958#[doc = "\n Structure representing CefExecuteProcess arguments.\n"]
959#[repr(C)]
960#[derive(Debug, Copy, Clone)]
961pub struct _cef_main_args_t {
962    pub argc: ::std::os::raw::c_int,
963    pub argv: *mut *mut ::std::os::raw::c_char,
964}
965#[allow(clippy::unnecessary_operation, clippy::identity_op)]
966const _: () = {
967    ["Size of _cef_main_args_t"][::std::mem::size_of::<_cef_main_args_t>() - 16usize];
968    ["Alignment of _cef_main_args_t"][::std::mem::align_of::<_cef_main_args_t>() - 8usize];
969    ["Offset of field: _cef_main_args_t::argc"]
970        [::std::mem::offset_of!(_cef_main_args_t, argc) - 0usize];
971    ["Offset of field: _cef_main_args_t::argv"]
972        [::std::mem::offset_of!(_cef_main_args_t, argv) - 8usize];
973};
974#[doc = "\n Structure representing CefExecuteProcess arguments.\n"]
975pub type cef_main_args_t = _cef_main_args_t;
976#[doc = "\n Class representing window information.\n"]
977#[repr(C)]
978#[derive(Debug, Copy, Clone)]
979pub struct _cef_window_info_t {
980    #[doc = "\n Size of this structure.\n"]
981    pub size: usize,
982    #[doc = "\n The initial title of the window, to be set when the window is created.\n Some layout managers (e.g., Compiz) can look at the window title\n in order to decide where to place the window when it is\n created. When this attribute is not empty, the window title will\n be set before the window is mapped to the dispay. Otherwise the\n title will be initially empty.\n"]
983    pub window_name: cef_string_t,
984    #[doc = "\n Initial window bounds.\n"]
985    pub bounds: cef_rect_t,
986    #[doc = "\n Pointer for the parent window.\n"]
987    pub parent_window: cef_window_handle_t,
988    #[doc = "\n Set to true (1) to create the browser using windowless (off-screen)\n rendering. No window will be created for the browser and all rendering\n will occur via the CefRenderHandler interface. The |parent_window| value\n will be used to identify monitor info and to act as the parent window for\n dialogs, context menus, etc. If |parent_window| is not provided then the\n main screen monitor will be used and some functionality that requires a\n parent window may not function correctly. In order to create windowless\n browsers the CefSettings.windowless_rendering_enabled value must be set to\n true. Transparent painting is enabled by default but can be disabled by\n setting CefBrowserSettings.background_color to an opaque value.\n"]
989    pub windowless_rendering_enabled: ::std::os::raw::c_int,
990    #[doc = "\n Set to true (1) to enable shared textures for windowless rendering. Only\n valid if windowless_rendering_enabled above is also set to true. Currently\n only supported on Windows (D3D11).\n"]
991    pub shared_texture_enabled: ::std::os::raw::c_int,
992    #[doc = "\n Set to true (1) to enable the ability to issue BeginFrame requests from\n the client application by calling CefBrowserHost::SendExternalBeginFrame.\n"]
993    pub external_begin_frame_enabled: ::std::os::raw::c_int,
994    #[doc = "\n Pointer for the new browser window. Only used with windowed rendering.\n"]
995    pub window: cef_window_handle_t,
996    #[doc = "\n Optionally change the runtime style. Alloy style will always be used if\n |windowless_rendering_enabled| is true. See cef_runtime_style_t\n documentation for details.\n"]
997    pub runtime_style: cef_runtime_style_t,
998}
999#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1000const _: () = {
1001    ["Size of _cef_window_info_t"][::std::mem::size_of::<_cef_window_info_t>() - 88usize];
1002    ["Alignment of _cef_window_info_t"][::std::mem::align_of::<_cef_window_info_t>() - 8usize];
1003    ["Offset of field: _cef_window_info_t::size"]
1004        [::std::mem::offset_of!(_cef_window_info_t, size) - 0usize];
1005    ["Offset of field: _cef_window_info_t::window_name"]
1006        [::std::mem::offset_of!(_cef_window_info_t, window_name) - 8usize];
1007    ["Offset of field: _cef_window_info_t::bounds"]
1008        [::std::mem::offset_of!(_cef_window_info_t, bounds) - 32usize];
1009    ["Offset of field: _cef_window_info_t::parent_window"]
1010        [::std::mem::offset_of!(_cef_window_info_t, parent_window) - 48usize];
1011    ["Offset of field: _cef_window_info_t::windowless_rendering_enabled"]
1012        [::std::mem::offset_of!(_cef_window_info_t, windowless_rendering_enabled) - 56usize];
1013    ["Offset of field: _cef_window_info_t::shared_texture_enabled"]
1014        [::std::mem::offset_of!(_cef_window_info_t, shared_texture_enabled) - 60usize];
1015    ["Offset of field: _cef_window_info_t::external_begin_frame_enabled"]
1016        [::std::mem::offset_of!(_cef_window_info_t, external_begin_frame_enabled) - 64usize];
1017    ["Offset of field: _cef_window_info_t::window"]
1018        [::std::mem::offset_of!(_cef_window_info_t, window) - 72usize];
1019    ["Offset of field: _cef_window_info_t::runtime_style"]
1020        [::std::mem::offset_of!(_cef_window_info_t, runtime_style) - 80usize];
1021};
1022#[doc = "\n Class representing window information.\n"]
1023pub type cef_window_info_t = _cef_window_info_t;
1024#[doc = "\n Structure containing the plane information of the shared texture.\n Sync with native_pixmap_handle.h\n"]
1025#[repr(C)]
1026#[derive(Debug, Copy, Clone)]
1027pub struct _cef_accelerated_paint_native_pixmap_plane_info_t {
1028    #[doc = "\n The strides and offsets in bytes to be used when accessing the buffers via\n a memory mapping. One per plane per entry. Size in bytes of the plane is\n necessary to map the buffers.\n"]
1029    pub stride: u32,
1030    pub offset: u64,
1031    pub size: u64,
1032    #[doc = "\n File descriptor for the underlying memory object (usually dmabuf).\n"]
1033    pub fd: ::std::os::raw::c_int,
1034}
1035#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1036const _: () = {
1037    ["Size of _cef_accelerated_paint_native_pixmap_plane_info_t"]
1038        [::std::mem::size_of::<_cef_accelerated_paint_native_pixmap_plane_info_t>() - 32usize];
1039    ["Alignment of _cef_accelerated_paint_native_pixmap_plane_info_t"]
1040        [::std::mem::align_of::<_cef_accelerated_paint_native_pixmap_plane_info_t>() - 8usize];
1041    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::stride"][::std::mem::offset_of!(
1042        _cef_accelerated_paint_native_pixmap_plane_info_t,
1043        stride
1044    ) - 0usize];
1045    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::offset"][::std::mem::offset_of!(
1046        _cef_accelerated_paint_native_pixmap_plane_info_t,
1047        offset
1048    ) - 8usize];
1049    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::size"]
1050        [::std::mem::offset_of!(_cef_accelerated_paint_native_pixmap_plane_info_t, size) - 16usize];
1051    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::fd"]
1052        [::std::mem::offset_of!(_cef_accelerated_paint_native_pixmap_plane_info_t, fd) - 24usize];
1053};
1054#[doc = "\n Structure containing the plane information of the shared texture.\n Sync with native_pixmap_handle.h\n"]
1055pub type cef_accelerated_paint_native_pixmap_plane_t =
1056    _cef_accelerated_paint_native_pixmap_plane_info_t;
1057#[doc = "\n Structure containing shared texture information for the OnAcceleratedPaint\n callback. Resources will be released to the underlying pool for reuse when\n the callback returns from client code.\n"]
1058#[repr(C)]
1059#[derive(Debug, Copy, Clone)]
1060pub struct _cef_accelerated_paint_info_t {
1061    #[doc = "\n Size of this structure.\n"]
1062    pub size: usize,
1063    #[doc = "\n Planes of the shared texture, usually file descriptors of dmabufs.\n"]
1064    pub planes: [cef_accelerated_paint_native_pixmap_plane_t; 4usize],
1065    #[doc = "\n Plane count.\n"]
1066    pub plane_count: ::std::os::raw::c_int,
1067    #[doc = "\n Modifier could be used with EGL driver.\n"]
1068    pub modifier: u64,
1069    #[doc = "\n The pixel format of the texture.\n"]
1070    pub format: cef_color_type_t,
1071    #[doc = "\n The extra common info.\n"]
1072    pub extra: cef_accelerated_paint_info_common_t,
1073}
1074#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1075const _: () = {
1076    ["Size of _cef_accelerated_paint_info_t"]
1077        [::std::mem::size_of::<_cef_accelerated_paint_info_t>() - 272usize];
1078    ["Alignment of _cef_accelerated_paint_info_t"]
1079        [::std::mem::align_of::<_cef_accelerated_paint_info_t>() - 8usize];
1080    ["Offset of field: _cef_accelerated_paint_info_t::size"]
1081        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, size) - 0usize];
1082    ["Offset of field: _cef_accelerated_paint_info_t::planes"]
1083        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, planes) - 8usize];
1084    ["Offset of field: _cef_accelerated_paint_info_t::plane_count"]
1085        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, plane_count) - 136usize];
1086    ["Offset of field: _cef_accelerated_paint_info_t::modifier"]
1087        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, modifier) - 144usize];
1088    ["Offset of field: _cef_accelerated_paint_info_t::format"]
1089        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, format) - 152usize];
1090    ["Offset of field: _cef_accelerated_paint_info_t::extra"]
1091        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, extra) - 160usize];
1092};
1093#[doc = "\n Structure containing shared texture information for the OnAcceleratedPaint\n callback. Resources will be released to the underlying pool for reuse when\n the callback returns from client code.\n"]
1094pub type cef_accelerated_paint_info_t = _cef_accelerated_paint_info_t;
1095pub type cef_color_t = u32;
1096impl cef_log_severity_t {
1097    pub const LOGSEVERITY_DEBUG: cef_log_severity_t = cef_log_severity_t::LOGSEVERITY_VERBOSE;
1098}
1099#[repr(u32)]
1100#[non_exhaustive]
1101#[doc = "\n Log severity levels.\n"]
1102#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1103pub enum cef_log_severity_t {
1104    #[doc = "\n Default logging (currently INFO logging).\n"]
1105    LOGSEVERITY_DEFAULT = 0,
1106    #[doc = "\n Verbose logging.\n"]
1107    LOGSEVERITY_VERBOSE = 1,
1108    #[doc = "\n INFO logging.\n"]
1109    LOGSEVERITY_INFO = 2,
1110    #[doc = "\n WARNING logging.\n"]
1111    LOGSEVERITY_WARNING = 3,
1112    #[doc = "\n ERROR logging.\n"]
1113    LOGSEVERITY_ERROR = 4,
1114    #[doc = "\n FATAL logging.\n"]
1115    LOGSEVERITY_FATAL = 5,
1116    #[doc = "\n Disable logging to file for all messages, and to stderr for messages with\n severity less than FATAL.\n"]
1117    LOGSEVERITY_DISABLE = 99,
1118}
1119#[repr(u32)]
1120#[non_exhaustive]
1121#[doc = "\n Log items prepended to each log line.\n"]
1122#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1123pub enum cef_log_items_t {
1124    #[doc = "\n Prepend the default list of items.\n"]
1125    LOG_ITEMS_DEFAULT = 0,
1126    #[doc = "\n Prepend no items.\n"]
1127    LOG_ITEMS_NONE = 1,
1128    #[doc = "\n Prepend the process ID.\n"]
1129    LOG_ITEMS_FLAG_PROCESS_ID = 2,
1130    #[doc = "\n Prepend the thread ID.\n"]
1131    LOG_ITEMS_FLAG_THREAD_ID = 4,
1132    #[doc = "\n Prepend the timestamp.\n"]
1133    LOG_ITEMS_FLAG_TIME_STAMP = 8,
1134    #[doc = "\n Prepend the tickcount.\n"]
1135    LOG_ITEMS_FLAG_TICK_COUNT = 16,
1136}
1137#[repr(u32)]
1138#[non_exhaustive]
1139#[doc = "\n Represents the state of a setting.\n"]
1140#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1141pub enum cef_state_t {
1142    #[doc = "\n Use the default state for the setting.\n"]
1143    STATE_DEFAULT = 0,
1144    #[doc = "\n Enable or allow the setting.\n"]
1145    STATE_ENABLED = 1,
1146    #[doc = "\n Disable or disallow the setting.\n"]
1147    STATE_DISABLED = 2,
1148}
1149#[doc = "\n Initialization settings. Specify NULL or 0 to get the recommended default\n values. Many of these and other settings can also configured using command-\n line switches.\n"]
1150#[repr(C)]
1151#[derive(Debug, Copy, Clone)]
1152pub struct _cef_settings_t {
1153    #[doc = "\n Size of this structure.\n"]
1154    pub size: usize,
1155    #[doc = "\n Set to true (1) to disable the sandbox for sub-processes. See\n cef_sandbox_win.h for requirements to enable the sandbox on Windows. Also\n configurable using the \"no-sandbox\" command-line switch.\n"]
1156    pub no_sandbox: ::std::os::raw::c_int,
1157    #[doc = "\n The path to a separate executable that will be launched for sub-processes.\n If this value is empty on Windows or Linux then the main process\n executable will be used. If this value is empty on macOS then a helper\n executable must exist at \"Contents/Frameworks/<app>\n Helper.app/Contents/MacOS/<app> Helper\" in the top-level app bundle. See\n the comments on CefExecuteProcess() for details. If this value is\n non-empty then it must be an absolute path. Also configurable using the\n \"browser-subprocess-path\" command-line switch.\n"]
1158    pub browser_subprocess_path: cef_string_t,
1159    #[doc = "\n The path to the CEF framework directory on macOS. If this value is empty\n then the framework must exist at \"Contents/Frameworks/Chromium Embedded\n Framework.framework\" in the top-level app bundle. If this value is\n non-empty then it must be an absolute path. Also configurable using the\n \"framework-dir-path\" command-line switch.\n"]
1160    pub framework_dir_path: cef_string_t,
1161    #[doc = "\n The path to the main bundle on macOS. If this value is empty then it\n defaults to the top-level app bundle. If this value is non-empty then it\n must be an absolute path. Also configurable using the \"main-bundle-path\"\n command-line switch.\n"]
1162    pub main_bundle_path: cef_string_t,
1163    #[doc = "\n Set to true (1) to have the browser process message loop run in a separate\n thread. If false (0) then the CefDoMessageLoopWork() function must be\n called from your application message loop. This option is only supported\n on Windows and Linux.\n"]
1164    pub multi_threaded_message_loop: ::std::os::raw::c_int,
1165    #[doc = "\n Set to true (1) to control browser process main (UI) thread message pump\n scheduling via the CefBrowserProcessHandler::OnScheduleMessagePumpWork()\n callback. This option is recommended for use in combination with the\n CefDoMessageLoopWork() function in cases where the CEF message loop must\n be integrated into an existing application message loop (see additional\n comments and warnings on CefDoMessageLoopWork). Enabling this option is\n not recommended for most users; leave this option disabled and use either\n the CefRunMessageLoop() function or multi_threaded_message_loop if\n possible.\n"]
1166    pub external_message_pump: ::std::os::raw::c_int,
1167    #[doc = "\n Set to true (1) to enable windowless (off-screen) rendering support. Do\n not enable this value if the application does not use windowless rendering\n as it may reduce rendering performance on some systems.\n"]
1168    pub windowless_rendering_enabled: ::std::os::raw::c_int,
1169    #[doc = "\n Set to true (1) to disable configuration of browser process features using\n standard CEF and Chromium command-line arguments. Configuration can still\n be specified using CEF data structures or via the\n CefApp::OnBeforeCommandLineProcessing() method.\n"]
1170    pub command_line_args_disabled: ::std::os::raw::c_int,
1171    #[doc = "\n The directory where data for the global browser cache will be stored on\n disk. If this value is non-empty then it must be an absolute path that is\n either equal to or a child directory of CefSettings.root_cache_path. If\n this value is empty then browsers will be created in \"incognito mode\"\n where in-memory caches are used for storage and no profile-specific data\n is persisted to disk (installation-specific data will still be persisted\n in root_cache_path). HTML5 databases such as localStorage will only\n persist across sessions if a cache path is specified. Can be overridden\n for individual CefRequestContext instances via the\n CefRequestContextSettings.cache_path value. Any child directory value will\n be ignored and the \"default\" profile (also a child directory) will be used\n instead.\n"]
1172    pub cache_path: cef_string_t,
1173    #[doc = "\n The root directory for installation-specific data and the parent directory\n for profile-specific data. All CefSettings.cache_path and\n CefRequestContextSettings.cache_path values must have this parent\n directory in common. If this value is empty and CefSettings.cache_path is\n non-empty then it will default to the CefSettings.cache_path value. Any\n non-empty value must be an absolute path. If both values are empty then\n the default platform-specific directory will be used\n (\"~/.config/cef_user_data\" directory on Linux, \"~/Library/Application\n Support/CEF/User Data\" directory on MacOS, \"AppData\\Local\\CEF\\User Data\"\n directory under the user profile directory on Windows). Use of the default\n directory is not recommended in production applications (see below).\n\n Multiple application instances writing to the same root_cache_path\n directory could result in data corruption. A process singleton lock based\n on the root_cache_path value is therefore used to protect against this.\n This singleton behavior applies to all CEF-based applications using\n version 120 or newer. You should customize root_cache_path for your\n application and implement CefBrowserProcessHandler::\n OnAlreadyRunningAppRelaunch, which will then be called on any app relaunch\n with the same root_cache_path value.\n\n Failure to set the root_cache_path value correctly may result in startup\n crashes or other unexpected behaviors (for example, the sandbox blocking\n read/write access to certain files).\n"]
1174    pub root_cache_path: cef_string_t,
1175    #[doc = "\n To persist session cookies (cookies without an expiry date or validity\n interval) by default when using the global cookie manager set this value\n to true (1). Session cookies are generally intended to be transient and\n most Web browsers do not persist them. A |cache_path| value must also be\n specified to enable this feature. Also configurable using the\n \"persist-session-cookies\" command-line switch. Can be overridden for\n individual CefRequestContext instances via the\n CefRequestContextSettings.persist_session_cookies value.\n"]
1176    pub persist_session_cookies: ::std::os::raw::c_int,
1177    #[doc = "\n Value that will be returned as the User-Agent HTTP header. If empty the\n default User-Agent string will be used. Also configurable using the\n \"user-agent\" command-line switch.\n"]
1178    pub user_agent: cef_string_t,
1179    #[doc = "\n Value that will be inserted as the product portion of the default\n User-Agent string. If empty the Chromium product version will be used. If\n |userAgent| is specified this value will be ignored. Also configurable\n using the \"user-agent-product\" command-line switch.\n"]
1180    pub user_agent_product: cef_string_t,
1181    #[doc = "\n The locale string that will be passed to WebKit. If empty the default\n locale of \"en-US\" will be used. This value is ignored on Linux where\n locale is determined using environment variable parsing with the\n precedence order: LANGUAGE, LC_ALL, LC_MESSAGES and LANG. Also\n configurable using the \"lang\" command-line switch.\n"]
1182    pub locale: cef_string_t,
1183    #[doc = "\n The directory and file name to use for the debug log. If empty a default\n log file name and location will be used. On Windows and Linux a\n \"debug.log\" file will be written in the main executable directory. On\n MacOS a \"~/Library/Logs/[app name]_debug.log\" file will be written where\n [app name] is the name of the main app executable. Also configurable using\n the \"log-file\" command-line switch.\n"]
1184    pub log_file: cef_string_t,
1185    #[doc = "\n The log severity. Only messages of this severity level or higher will be\n logged. When set to DISABLE no messages will be written to the log file,\n but FATAL messages will still be output to stderr. Also configurable using\n the \"log-severity\" command-line switch with a value of \"verbose\", \"info\",\n \"warning\", \"error\", \"fatal\" or \"disable\".\n"]
1186    pub log_severity: cef_log_severity_t,
1187    #[doc = "\n The log items prepended to each log line. If not set the default log items\n will be used. Also configurable using the \"log-items\" command-line switch\n with a value of \"none\" for no log items, or a comma-delimited list of\n values \"pid\", \"tid\", \"timestamp\" or \"tickcount\" for custom log items.\n"]
1188    pub log_items: cef_log_items_t,
1189    #[doc = "\n Custom flags that will be used when initializing the V8 JavaScript engine.\n The consequences of using custom flags may not be well tested. Also\n configurable using the \"js-flags\" command-line switch.\n"]
1190    pub javascript_flags: cef_string_t,
1191    #[doc = "\n The fully qualified path for the resources directory. If this value is\n empty the *.pak files must be located in the module directory on\n Windows/Linux or the app bundle Resources directory on MacOS. If this\n value is non-empty then it must be an absolute path. Also configurable\n using the \"resources-dir-path\" command-line switch.\n"]
1192    pub resources_dir_path: cef_string_t,
1193    #[doc = "\n The fully qualified path for the locales directory. If this value is empty\n the locales directory must be located in the module directory. If this\n value is non-empty then it must be an absolute path. This value is ignored\n on MacOS where pack files are always loaded from the app bundle Resources\n directory. Also configurable using the \"locales-dir-path\" command-line\n switch.\n"]
1194    pub locales_dir_path: cef_string_t,
1195    #[doc = "\n Set to a value between 1024 and 65535 to enable remote debugging on the\n specified port. Also configurable using the \"remote-debugging-port\"\n command-line switch. Specifying 0 via the command-line switch will result\n in the selection of an ephemeral port and the port number will be printed\n as part of the WebSocket endpoint URL to stderr. If a cache directory path\n is provided the port will also be written to the\n <cache-dir>/DevToolsActivePort file. Remote debugging can be accessed by\n loading the chrome://inspect page in Google Chrome. Port numbers 9222 and\n 9229 are discoverable by default. Other port numbers may need to be\n configured via \"Discover network targets\" on the Devices tab.\n"]
1196    pub remote_debugging_port: ::std::os::raw::c_int,
1197    #[doc = "\n The number of stack trace frames to capture for uncaught exceptions.\n Specify a positive value to enable the\n CefRenderProcessHandler::OnUncaughtException() callback. Specify 0\n (default value) and OnUncaughtException() will not be called. Also\n configurable using the \"uncaught-exception-stack-size\" command-line\n switch.\n"]
1198    pub uncaught_exception_stack_size: ::std::os::raw::c_int,
1199    #[doc = "\n Background color used for the browser before a document is loaded and when\n no document color is specified. The alpha component must be either fully\n opaque (0xFF) or fully transparent (0x00). If the alpha component is fully\n opaque then the RGB components will be used as the background color. If\n the alpha component is fully transparent for a windowed browser then the\n default value of opaque white be used. If the alpha component is fully\n transparent for a windowless (off-screen) browser then transparent\n painting will be enabled.\n"]
1200    pub background_color: cef_color_t,
1201    #[doc = "\n Comma delimited ordered list of language codes without any whitespace that\n will be used in the \"Accept-Language\" HTTP request header and\n \"navigator.language\" JS attribute. Can be overridden for individual\n CefRequestContext instances via the\n CefRequestContextSettings.accept_language_list value.\n"]
1202    pub accept_language_list: cef_string_t,
1203    #[doc = "\n Comma delimited list of schemes supported by the associated\n CefCookieManager. If |cookieable_schemes_exclude_defaults| is false (0)\n the default schemes (\"http\", \"https\", \"ws\" and \"wss\") will also be\n supported. Not specifying a |cookieable_schemes_list| value and setting\n |cookieable_schemes_exclude_defaults| to true (1) will disable all loading\n and saving of cookies. These settings will only impact the global\n CefRequestContext. Individual CefRequestContext instances can be\n configured via the CefRequestContextSettings.cookieable_schemes_list and\n CefRequestContextSettings.cookieable_schemes_exclude_defaults values.\n"]
1204    pub cookieable_schemes_list: cef_string_t,
1205    pub cookieable_schemes_exclude_defaults: ::std::os::raw::c_int,
1206    #[doc = "\n Specify an ID to enable Chrome policy management via Platform and OS-user\n policies. On Windows, this is a registry key like\n \"SOFTWARE\\\\Policies\\\\Google\\\\Chrome\". On MacOS, this is a bundle ID like\n \"com.google.Chrome\". On Linux, this is an absolute directory path like\n \"/etc/opt/chrome/policies\". Only supported with Chrome style. See\n https://support.google.com/chrome/a/answer/9037717 for details.\n\n Chrome Browser Cloud Management integration, when enabled via the\n \"enable-chrome-browser-cloud-management\" command-line flag, will also use\n the specified ID. See https://support.google.com/chrome/a/answer/9116814\n for details.\n"]
1207    pub chrome_policy_id: cef_string_t,
1208    #[doc = "\n Specify an ID for an ICON resource that can be loaded from the main\n executable and used when creating default Chrome windows such as DevTools\n and Task Manager. If unspecified the default Chromium ICON (IDR_MAINFRAME\n [101]) will be loaded from libcef.dll. Only supported with Chrome style on\n Windows.\n"]
1209    pub chrome_app_icon_id: ::std::os::raw::c_int,
1210    #[doc = "\n Specify whether signal handlers must be disabled on POSIX systems.\n"]
1211    pub disable_signal_handlers: ::std::os::raw::c_int,
1212}
1213#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1214const _: () = {
1215    ["Size of _cef_settings_t"][::std::mem::size_of::<_cef_settings_t>() - 440usize];
1216    ["Alignment of _cef_settings_t"][::std::mem::align_of::<_cef_settings_t>() - 8usize];
1217    ["Offset of field: _cef_settings_t::size"]
1218        [::std::mem::offset_of!(_cef_settings_t, size) - 0usize];
1219    ["Offset of field: _cef_settings_t::no_sandbox"]
1220        [::std::mem::offset_of!(_cef_settings_t, no_sandbox) - 8usize];
1221    ["Offset of field: _cef_settings_t::browser_subprocess_path"]
1222        [::std::mem::offset_of!(_cef_settings_t, browser_subprocess_path) - 16usize];
1223    ["Offset of field: _cef_settings_t::framework_dir_path"]
1224        [::std::mem::offset_of!(_cef_settings_t, framework_dir_path) - 40usize];
1225    ["Offset of field: _cef_settings_t::main_bundle_path"]
1226        [::std::mem::offset_of!(_cef_settings_t, main_bundle_path) - 64usize];
1227    ["Offset of field: _cef_settings_t::multi_threaded_message_loop"]
1228        [::std::mem::offset_of!(_cef_settings_t, multi_threaded_message_loop) - 88usize];
1229    ["Offset of field: _cef_settings_t::external_message_pump"]
1230        [::std::mem::offset_of!(_cef_settings_t, external_message_pump) - 92usize];
1231    ["Offset of field: _cef_settings_t::windowless_rendering_enabled"]
1232        [::std::mem::offset_of!(_cef_settings_t, windowless_rendering_enabled) - 96usize];
1233    ["Offset of field: _cef_settings_t::command_line_args_disabled"]
1234        [::std::mem::offset_of!(_cef_settings_t, command_line_args_disabled) - 100usize];
1235    ["Offset of field: _cef_settings_t::cache_path"]
1236        [::std::mem::offset_of!(_cef_settings_t, cache_path) - 104usize];
1237    ["Offset of field: _cef_settings_t::root_cache_path"]
1238        [::std::mem::offset_of!(_cef_settings_t, root_cache_path) - 128usize];
1239    ["Offset of field: _cef_settings_t::persist_session_cookies"]
1240        [::std::mem::offset_of!(_cef_settings_t, persist_session_cookies) - 152usize];
1241    ["Offset of field: _cef_settings_t::user_agent"]
1242        [::std::mem::offset_of!(_cef_settings_t, user_agent) - 160usize];
1243    ["Offset of field: _cef_settings_t::user_agent_product"]
1244        [::std::mem::offset_of!(_cef_settings_t, user_agent_product) - 184usize];
1245    ["Offset of field: _cef_settings_t::locale"]
1246        [::std::mem::offset_of!(_cef_settings_t, locale) - 208usize];
1247    ["Offset of field: _cef_settings_t::log_file"]
1248        [::std::mem::offset_of!(_cef_settings_t, log_file) - 232usize];
1249    ["Offset of field: _cef_settings_t::log_severity"]
1250        [::std::mem::offset_of!(_cef_settings_t, log_severity) - 256usize];
1251    ["Offset of field: _cef_settings_t::log_items"]
1252        [::std::mem::offset_of!(_cef_settings_t, log_items) - 260usize];
1253    ["Offset of field: _cef_settings_t::javascript_flags"]
1254        [::std::mem::offset_of!(_cef_settings_t, javascript_flags) - 264usize];
1255    ["Offset of field: _cef_settings_t::resources_dir_path"]
1256        [::std::mem::offset_of!(_cef_settings_t, resources_dir_path) - 288usize];
1257    ["Offset of field: _cef_settings_t::locales_dir_path"]
1258        [::std::mem::offset_of!(_cef_settings_t, locales_dir_path) - 312usize];
1259    ["Offset of field: _cef_settings_t::remote_debugging_port"]
1260        [::std::mem::offset_of!(_cef_settings_t, remote_debugging_port) - 336usize];
1261    ["Offset of field: _cef_settings_t::uncaught_exception_stack_size"]
1262        [::std::mem::offset_of!(_cef_settings_t, uncaught_exception_stack_size) - 340usize];
1263    ["Offset of field: _cef_settings_t::background_color"]
1264        [::std::mem::offset_of!(_cef_settings_t, background_color) - 344usize];
1265    ["Offset of field: _cef_settings_t::accept_language_list"]
1266        [::std::mem::offset_of!(_cef_settings_t, accept_language_list) - 352usize];
1267    ["Offset of field: _cef_settings_t::cookieable_schemes_list"]
1268        [::std::mem::offset_of!(_cef_settings_t, cookieable_schemes_list) - 376usize];
1269    ["Offset of field: _cef_settings_t::cookieable_schemes_exclude_defaults"]
1270        [::std::mem::offset_of!(_cef_settings_t, cookieable_schemes_exclude_defaults) - 400usize];
1271    ["Offset of field: _cef_settings_t::chrome_policy_id"]
1272        [::std::mem::offset_of!(_cef_settings_t, chrome_policy_id) - 408usize];
1273    ["Offset of field: _cef_settings_t::chrome_app_icon_id"]
1274        [::std::mem::offset_of!(_cef_settings_t, chrome_app_icon_id) - 432usize];
1275    ["Offset of field: _cef_settings_t::disable_signal_handlers"]
1276        [::std::mem::offset_of!(_cef_settings_t, disable_signal_handlers) - 436usize];
1277};
1278#[doc = "\n Initialization settings. Specify NULL or 0 to get the recommended default\n values. Many of these and other settings can also configured using command-\n line switches.\n"]
1279pub type cef_settings_t = _cef_settings_t;
1280#[doc = "\n Request context initialization settings. Specify NULL or 0 to get the\n recommended default values.\n"]
1281#[repr(C)]
1282#[derive(Debug, Copy, Clone)]
1283pub struct _cef_request_context_settings_t {
1284    #[doc = "\n Size of this structure.\n"]
1285    pub size: usize,
1286    #[doc = "\n The directory where cache data for this request context will be stored on\n disk. If this value is non-empty then it must be an absolute path that is\n either equal to or a child directory of CefSettings.root_cache_path. If\n this value is empty then browsers will be created in \"incognito mode\"\n where in-memory caches are used for storage and no profile-specific data\n is persisted to disk (installation-specific data will still be persisted\n in root_cache_path). HTML5 databases such as localStorage will only\n persist across sessions if a cache path is specified. To share the global\n browser cache and related configuration set this value to match the\n CefSettings.cache_path value.\n"]
1287    pub cache_path: cef_string_t,
1288    #[doc = "\n To persist session cookies (cookies without an expiry date or validity\n interval) by default when using the global cookie manager set this value\n to true (1). Session cookies are generally intended to be transient and\n most Web browsers do not persist them. Can be set globally using the\n CefSettings.persist_session_cookies value. This value will be ignored if\n |cache_path| is empty or if it matches the CefSettings.cache_path value.\n"]
1289    pub persist_session_cookies: ::std::os::raw::c_int,
1290    #[doc = "\n Comma delimited ordered list of language codes without any whitespace that\n will be used in the \"Accept-Language\" HTTP request header and\n \"navigator.language\" JS attribute. Can be set globally using the\n CefSettings.accept_language_list value. If all values are empty then\n \"en-US,en\" will be used. This value will be ignored if |cache_path|\n matches the CefSettings.cache_path value.\n"]
1291    pub accept_language_list: cef_string_t,
1292    #[doc = "\n Comma delimited list of schemes supported by the associated\n CefCookieManager. If |cookieable_schemes_exclude_defaults| is false (0)\n the default schemes (\"http\", \"https\", \"ws\" and \"wss\") will also be\n supported. Not specifying a |cookieable_schemes_list| value and setting\n |cookieable_schemes_exclude_defaults| to true (1) will disable all loading\n and saving of cookies. These values will be ignored if |cache_path|\n matches the CefSettings.cache_path value.\n"]
1293    pub cookieable_schemes_list: cef_string_t,
1294    pub cookieable_schemes_exclude_defaults: ::std::os::raw::c_int,
1295}
1296#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1297const _: () = {
1298    ["Size of _cef_request_context_settings_t"]
1299        [::std::mem::size_of::<_cef_request_context_settings_t>() - 96usize];
1300    ["Alignment of _cef_request_context_settings_t"]
1301        [::std::mem::align_of::<_cef_request_context_settings_t>() - 8usize];
1302    ["Offset of field: _cef_request_context_settings_t::size"]
1303        [::std::mem::offset_of!(_cef_request_context_settings_t, size) - 0usize];
1304    ["Offset of field: _cef_request_context_settings_t::cache_path"]
1305        [::std::mem::offset_of!(_cef_request_context_settings_t, cache_path) - 8usize];
1306    ["Offset of field: _cef_request_context_settings_t::persist_session_cookies"][::std::mem::offset_of!(
1307        _cef_request_context_settings_t,
1308        persist_session_cookies
1309    ) - 32usize];
1310    ["Offset of field: _cef_request_context_settings_t::accept_language_list"]
1311        [::std::mem::offset_of!(_cef_request_context_settings_t, accept_language_list) - 40usize];
1312    ["Offset of field: _cef_request_context_settings_t::cookieable_schemes_list"][::std::mem::offset_of!(
1313        _cef_request_context_settings_t,
1314        cookieable_schemes_list
1315    ) - 64usize];
1316    ["Offset of field: _cef_request_context_settings_t::cookieable_schemes_exclude_defaults"][::std::mem::offset_of!(
1317        _cef_request_context_settings_t,
1318        cookieable_schemes_exclude_defaults
1319    )
1320        - 88usize];
1321};
1322#[doc = "\n Request context initialization settings. Specify NULL or 0 to get the\n recommended default values.\n"]
1323pub type cef_request_context_settings_t = _cef_request_context_settings_t;
1324#[doc = "\n Browser initialization settings. Specify NULL or 0 to get the recommended\n default values. The consequences of using custom values may not be well\n tested. Many of these and other settings can also configured using command-\n line switches.\n"]
1325#[repr(C)]
1326#[derive(Debug, Copy, Clone)]
1327pub struct _cef_browser_settings_t {
1328    #[doc = "\n Size of this structure.\n"]
1329    pub size: usize,
1330    #[doc = "\n The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint\n will be called for a windowless browser. The actual fps may be lower if\n the browser cannot generate frames at the requested rate. The minimum\n value is 1 and the maximum value is 60 (default 30). This value can also\n be changed dynamically via CefBrowserHost::SetWindowlessFrameRate.\n"]
1331    pub windowless_frame_rate: ::std::os::raw::c_int,
1332    #[doc = "\n Font settings.\n"]
1333    pub standard_font_family: cef_string_t,
1334    pub fixed_font_family: cef_string_t,
1335    pub serif_font_family: cef_string_t,
1336    pub sans_serif_font_family: cef_string_t,
1337    pub cursive_font_family: cef_string_t,
1338    pub fantasy_font_family: cef_string_t,
1339    pub default_font_size: ::std::os::raw::c_int,
1340    pub default_fixed_font_size: ::std::os::raw::c_int,
1341    pub minimum_font_size: ::std::os::raw::c_int,
1342    pub minimum_logical_font_size: ::std::os::raw::c_int,
1343    #[doc = "\n Default encoding for Web content. If empty \"ISO-8859-1\" will be used. Also\n configurable using the \"default-encoding\" command-line switch.\n"]
1344    pub default_encoding: cef_string_t,
1345    #[doc = "\n Controls the loading of fonts from remote sources. Also configurable using\n the \"disable-remote-fonts\" command-line switch.\n"]
1346    pub remote_fonts: cef_state_t,
1347    #[doc = "\n Controls whether JavaScript can be executed. Also configurable using the\n \"disable-javascript\" command-line switch.\n"]
1348    pub javascript: cef_state_t,
1349    #[doc = "\n Controls whether JavaScript can be used to close windows that were not\n opened via JavaScript. JavaScript can still be used to close windows that\n were opened via JavaScript or that have no back/forward history. Also\n configurable using the \"disable-javascript-close-windows\" command-line\n switch.\n"]
1350    pub javascript_close_windows: cef_state_t,
1351    #[doc = "\n Controls whether JavaScript can access the clipboard. Also configurable\n using the \"disable-javascript-access-clipboard\" command-line switch.\n"]
1352    pub javascript_access_clipboard: cef_state_t,
1353    #[doc = "\n Controls whether DOM pasting is supported in the editor via\n execCommand(\"paste\"). The |javascript_access_clipboard| setting must also\n be enabled. Also configurable using the \"disable-javascript-dom-paste\"\n command-line switch.\n"]
1354    pub javascript_dom_paste: cef_state_t,
1355    #[doc = "\n Controls whether image URLs will be loaded from the network. A cached\n image will still be rendered if requested. Also configurable using the\n \"disable-image-loading\" command-line switch.\n"]
1356    pub image_loading: cef_state_t,
1357    #[doc = "\n Controls whether standalone images will be shrunk to fit the page. Also\n configurable using the \"image-shrink-standalone-to-fit\" command-line\n switch.\n"]
1358    pub image_shrink_standalone_to_fit: cef_state_t,
1359    #[doc = "\n Controls whether text areas can be resized. Also configurable using the\n \"disable-text-area-resize\" command-line switch.\n"]
1360    pub text_area_resize: cef_state_t,
1361    #[doc = "\n Controls whether the tab key can advance focus to links. Also configurable\n using the \"disable-tab-to-links\" command-line switch.\n"]
1362    pub tab_to_links: cef_state_t,
1363    #[doc = "\n Controls whether local storage can be used. Also configurable using the\n \"disable-local-storage\" command-line switch.\n"]
1364    pub local_storage: cef_state_t,
1365    #[doc = "\n Controls whether databases can be used. Also configurable using the\n \"disable-databases\" command-line switch.\n"]
1366    pub databases: cef_state_t,
1367    #[doc = "\n Controls whether WebGL can be used. Note that WebGL requires hardware\n support and may not work on all systems even when enabled. Also\n configurable using the \"disable-webgl\" command-line switch.\n"]
1368    pub webgl: cef_state_t,
1369    #[doc = "\n Background color used for the browser before a document is loaded and when\n no document color is specified. The alpha component must be either fully\n opaque (0xFF) or fully transparent (0x00). If the alpha component is fully\n opaque then the RGB components will be used as the background color. If\n the alpha component is fully transparent for a windowed browser then the\n CefSettings.background_color value will be used. If the alpha component is\n fully transparent for a windowless (off-screen) browser then transparent\n painting will be enabled.\n"]
1370    pub background_color: cef_color_t,
1371    #[doc = "\n Controls whether the Chrome status bubble will be used. Only supported\n with Chrome style. For details about the status bubble see\n https://www.chromium.org/user-experience/status-bubble/\n"]
1372    pub chrome_status_bubble: cef_state_t,
1373    #[doc = "\n Controls whether the Chrome zoom bubble will be shown when zooming. Only\n supported with Chrome style.\n"]
1374    pub chrome_zoom_bubble: cef_state_t,
1375}
1376#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1377const _: () = {
1378    ["Size of _cef_browser_settings_t"]
1379        [::std::mem::size_of::<_cef_browser_settings_t>() - 264usize];
1380    ["Alignment of _cef_browser_settings_t"]
1381        [::std::mem::align_of::<_cef_browser_settings_t>() - 8usize];
1382    ["Offset of field: _cef_browser_settings_t::size"]
1383        [::std::mem::offset_of!(_cef_browser_settings_t, size) - 0usize];
1384    ["Offset of field: _cef_browser_settings_t::windowless_frame_rate"]
1385        [::std::mem::offset_of!(_cef_browser_settings_t, windowless_frame_rate) - 8usize];
1386    ["Offset of field: _cef_browser_settings_t::standard_font_family"]
1387        [::std::mem::offset_of!(_cef_browser_settings_t, standard_font_family) - 16usize];
1388    ["Offset of field: _cef_browser_settings_t::fixed_font_family"]
1389        [::std::mem::offset_of!(_cef_browser_settings_t, fixed_font_family) - 40usize];
1390    ["Offset of field: _cef_browser_settings_t::serif_font_family"]
1391        [::std::mem::offset_of!(_cef_browser_settings_t, serif_font_family) - 64usize];
1392    ["Offset of field: _cef_browser_settings_t::sans_serif_font_family"]
1393        [::std::mem::offset_of!(_cef_browser_settings_t, sans_serif_font_family) - 88usize];
1394    ["Offset of field: _cef_browser_settings_t::cursive_font_family"]
1395        [::std::mem::offset_of!(_cef_browser_settings_t, cursive_font_family) - 112usize];
1396    ["Offset of field: _cef_browser_settings_t::fantasy_font_family"]
1397        [::std::mem::offset_of!(_cef_browser_settings_t, fantasy_font_family) - 136usize];
1398    ["Offset of field: _cef_browser_settings_t::default_font_size"]
1399        [::std::mem::offset_of!(_cef_browser_settings_t, default_font_size) - 160usize];
1400    ["Offset of field: _cef_browser_settings_t::default_fixed_font_size"]
1401        [::std::mem::offset_of!(_cef_browser_settings_t, default_fixed_font_size) - 164usize];
1402    ["Offset of field: _cef_browser_settings_t::minimum_font_size"]
1403        [::std::mem::offset_of!(_cef_browser_settings_t, minimum_font_size) - 168usize];
1404    ["Offset of field: _cef_browser_settings_t::minimum_logical_font_size"]
1405        [::std::mem::offset_of!(_cef_browser_settings_t, minimum_logical_font_size) - 172usize];
1406    ["Offset of field: _cef_browser_settings_t::default_encoding"]
1407        [::std::mem::offset_of!(_cef_browser_settings_t, default_encoding) - 176usize];
1408    ["Offset of field: _cef_browser_settings_t::remote_fonts"]
1409        [::std::mem::offset_of!(_cef_browser_settings_t, remote_fonts) - 200usize];
1410    ["Offset of field: _cef_browser_settings_t::javascript"]
1411        [::std::mem::offset_of!(_cef_browser_settings_t, javascript) - 204usize];
1412    ["Offset of field: _cef_browser_settings_t::javascript_close_windows"]
1413        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_close_windows) - 208usize];
1414    ["Offset of field: _cef_browser_settings_t::javascript_access_clipboard"]
1415        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_access_clipboard) - 212usize];
1416    ["Offset of field: _cef_browser_settings_t::javascript_dom_paste"]
1417        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_dom_paste) - 216usize];
1418    ["Offset of field: _cef_browser_settings_t::image_loading"]
1419        [::std::mem::offset_of!(_cef_browser_settings_t, image_loading) - 220usize];
1420    ["Offset of field: _cef_browser_settings_t::image_shrink_standalone_to_fit"][::std::mem::offset_of!(
1421        _cef_browser_settings_t,
1422        image_shrink_standalone_to_fit
1423    ) - 224usize];
1424    ["Offset of field: _cef_browser_settings_t::text_area_resize"]
1425        [::std::mem::offset_of!(_cef_browser_settings_t, text_area_resize) - 228usize];
1426    ["Offset of field: _cef_browser_settings_t::tab_to_links"]
1427        [::std::mem::offset_of!(_cef_browser_settings_t, tab_to_links) - 232usize];
1428    ["Offset of field: _cef_browser_settings_t::local_storage"]
1429        [::std::mem::offset_of!(_cef_browser_settings_t, local_storage) - 236usize];
1430    ["Offset of field: _cef_browser_settings_t::databases"]
1431        [::std::mem::offset_of!(_cef_browser_settings_t, databases) - 240usize];
1432    ["Offset of field: _cef_browser_settings_t::webgl"]
1433        [::std::mem::offset_of!(_cef_browser_settings_t, webgl) - 244usize];
1434    ["Offset of field: _cef_browser_settings_t::background_color"]
1435        [::std::mem::offset_of!(_cef_browser_settings_t, background_color) - 248usize];
1436    ["Offset of field: _cef_browser_settings_t::chrome_status_bubble"]
1437        [::std::mem::offset_of!(_cef_browser_settings_t, chrome_status_bubble) - 252usize];
1438    ["Offset of field: _cef_browser_settings_t::chrome_zoom_bubble"]
1439        [::std::mem::offset_of!(_cef_browser_settings_t, chrome_zoom_bubble) - 256usize];
1440};
1441#[doc = "\n Browser initialization settings. Specify NULL or 0 to get the recommended\n default values. The consequences of using custom values may not be well\n tested. Many of these and other settings can also configured using command-\n line switches.\n"]
1442pub type cef_browser_settings_t = _cef_browser_settings_t;
1443#[repr(u32)]
1444#[non_exhaustive]
1445#[doc = "\n Return value types.\n"]
1446#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1447pub enum cef_return_value_t {
1448    #[doc = "\n Cancel immediately.\n"]
1449    RV_CANCEL = 0,
1450    #[doc = "\n Continue immediately.\n"]
1451    RV_CONTINUE = 1,
1452    #[doc = "\n Continue asynchronously (usually via a callback).\n"]
1453    RV_CONTINUE_ASYNC = 2,
1454}
1455#[doc = "\n URL component parts.\n"]
1456#[repr(C)]
1457#[derive(Debug, Copy, Clone)]
1458pub struct _cef_urlparts_t {
1459    #[doc = "\n Size of this structure.\n"]
1460    pub size: usize,
1461    #[doc = "\n The complete URL specification.\n"]
1462    pub spec: cef_string_t,
1463    #[doc = "\n Scheme component not including the colon (e.g., \"http\").\n"]
1464    pub scheme: cef_string_t,
1465    #[doc = "\n User name component.\n"]
1466    pub username: cef_string_t,
1467    #[doc = "\n Password component.\n"]
1468    pub password: cef_string_t,
1469    #[doc = "\n Host component. This may be a hostname, an IPv4 address or an IPv6 literal\n surrounded by square brackets (e.g., \"[2001:db8::1]\").\n"]
1470    pub host: cef_string_t,
1471    #[doc = "\n Port number component.\n"]
1472    pub port: cef_string_t,
1473    #[doc = "\n Origin contains just the scheme, host, and port from a URL. Equivalent to\n clearing any username and password, replacing the path with a slash, and\n clearing everything after that. This value will be empty for non-standard\n URLs.\n"]
1474    pub origin: cef_string_t,
1475    #[doc = "\n Path component including the first slash following the host.\n"]
1476    pub path: cef_string_t,
1477    #[doc = "\n Query string component (i.e., everything following the '?').\n"]
1478    pub query: cef_string_t,
1479    #[doc = "\n Fragment (hash) identifier component (i.e., the string following the '#').\n"]
1480    pub fragment: cef_string_t,
1481}
1482#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1483const _: () = {
1484    ["Size of _cef_urlparts_t"][::std::mem::size_of::<_cef_urlparts_t>() - 248usize];
1485    ["Alignment of _cef_urlparts_t"][::std::mem::align_of::<_cef_urlparts_t>() - 8usize];
1486    ["Offset of field: _cef_urlparts_t::size"]
1487        [::std::mem::offset_of!(_cef_urlparts_t, size) - 0usize];
1488    ["Offset of field: _cef_urlparts_t::spec"]
1489        [::std::mem::offset_of!(_cef_urlparts_t, spec) - 8usize];
1490    ["Offset of field: _cef_urlparts_t::scheme"]
1491        [::std::mem::offset_of!(_cef_urlparts_t, scheme) - 32usize];
1492    ["Offset of field: _cef_urlparts_t::username"]
1493        [::std::mem::offset_of!(_cef_urlparts_t, username) - 56usize];
1494    ["Offset of field: _cef_urlparts_t::password"]
1495        [::std::mem::offset_of!(_cef_urlparts_t, password) - 80usize];
1496    ["Offset of field: _cef_urlparts_t::host"]
1497        [::std::mem::offset_of!(_cef_urlparts_t, host) - 104usize];
1498    ["Offset of field: _cef_urlparts_t::port"]
1499        [::std::mem::offset_of!(_cef_urlparts_t, port) - 128usize];
1500    ["Offset of field: _cef_urlparts_t::origin"]
1501        [::std::mem::offset_of!(_cef_urlparts_t, origin) - 152usize];
1502    ["Offset of field: _cef_urlparts_t::path"]
1503        [::std::mem::offset_of!(_cef_urlparts_t, path) - 176usize];
1504    ["Offset of field: _cef_urlparts_t::query"]
1505        [::std::mem::offset_of!(_cef_urlparts_t, query) - 200usize];
1506    ["Offset of field: _cef_urlparts_t::fragment"]
1507        [::std::mem::offset_of!(_cef_urlparts_t, fragment) - 224usize];
1508};
1509#[doc = "\n URL component parts.\n"]
1510pub type cef_urlparts_t = _cef_urlparts_t;
1511#[repr(i32)]
1512#[non_exhaustive]
1513#[doc = "\n Cookie priority values.\n"]
1514#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1515pub enum cef_cookie_priority_t {
1516    CEF_COOKIE_PRIORITY_LOW = -1,
1517    CEF_COOKIE_PRIORITY_MEDIUM = 0,
1518    CEF_COOKIE_PRIORITY_HIGH = 1,
1519}
1520#[repr(u32)]
1521#[non_exhaustive]
1522#[doc = "\n Cookie same site values.\n"]
1523#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1524pub enum cef_cookie_same_site_t {
1525    CEF_COOKIE_SAME_SITE_UNSPECIFIED = 0,
1526    CEF_COOKIE_SAME_SITE_NO_RESTRICTION = 1,
1527    CEF_COOKIE_SAME_SITE_LAX_MODE = 2,
1528    CEF_COOKIE_SAME_SITE_STRICT_MODE = 3,
1529    CEF_COOKIE_SAME_SITE_NUM_VALUES = 4,
1530}
1531#[doc = "\n Cookie information.\n"]
1532#[repr(C)]
1533#[derive(Debug, Copy, Clone)]
1534pub struct _cef_cookie_t {
1535    #[doc = "\n Size of this structure.\n"]
1536    pub size: usize,
1537    #[doc = "\n The cookie name.\n"]
1538    pub name: cef_string_t,
1539    #[doc = "\n The cookie value.\n"]
1540    pub value: cef_string_t,
1541    #[doc = "\n If |domain| is empty a host cookie will be created instead of a domain\n cookie. Domain cookies are stored with a leading \".\" and are visible to\n sub-domains whereas host cookies are not.\n"]
1542    pub domain: cef_string_t,
1543    #[doc = "\n If |path| is non-empty only URLs at or below the path will get the cookie\n value.\n"]
1544    pub path: cef_string_t,
1545    #[doc = "\n If |secure| is true the cookie will only be sent for HTTPS requests.\n"]
1546    pub secure: ::std::os::raw::c_int,
1547    #[doc = "\n If |httponly| is true the cookie will only be sent for HTTP requests.\n"]
1548    pub httponly: ::std::os::raw::c_int,
1549    #[doc = "\n The cookie creation date. This is automatically populated by the system on\n cookie creation.\n"]
1550    pub creation: cef_basetime_t,
1551    #[doc = "\n The cookie last access date. This is automatically populated by the system\n on access.\n"]
1552    pub last_access: cef_basetime_t,
1553    #[doc = "\n The cookie expiration date is only valid if |has_expires| is true.\n"]
1554    pub has_expires: ::std::os::raw::c_int,
1555    pub expires: cef_basetime_t,
1556    #[doc = "\n Same site.\n"]
1557    pub same_site: cef_cookie_same_site_t,
1558    #[doc = "\n Priority.\n"]
1559    pub priority: cef_cookie_priority_t,
1560}
1561#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1562const _: () = {
1563    ["Size of _cef_cookie_t"][::std::mem::size_of::<_cef_cookie_t>() - 152usize];
1564    ["Alignment of _cef_cookie_t"][::std::mem::align_of::<_cef_cookie_t>() - 8usize];
1565    ["Offset of field: _cef_cookie_t::size"][::std::mem::offset_of!(_cef_cookie_t, size) - 0usize];
1566    ["Offset of field: _cef_cookie_t::name"][::std::mem::offset_of!(_cef_cookie_t, name) - 8usize];
1567    ["Offset of field: _cef_cookie_t::value"]
1568        [::std::mem::offset_of!(_cef_cookie_t, value) - 32usize];
1569    ["Offset of field: _cef_cookie_t::domain"]
1570        [::std::mem::offset_of!(_cef_cookie_t, domain) - 56usize];
1571    ["Offset of field: _cef_cookie_t::path"][::std::mem::offset_of!(_cef_cookie_t, path) - 80usize];
1572    ["Offset of field: _cef_cookie_t::secure"]
1573        [::std::mem::offset_of!(_cef_cookie_t, secure) - 104usize];
1574    ["Offset of field: _cef_cookie_t::httponly"]
1575        [::std::mem::offset_of!(_cef_cookie_t, httponly) - 108usize];
1576    ["Offset of field: _cef_cookie_t::creation"]
1577        [::std::mem::offset_of!(_cef_cookie_t, creation) - 112usize];
1578    ["Offset of field: _cef_cookie_t::last_access"]
1579        [::std::mem::offset_of!(_cef_cookie_t, last_access) - 120usize];
1580    ["Offset of field: _cef_cookie_t::has_expires"]
1581        [::std::mem::offset_of!(_cef_cookie_t, has_expires) - 128usize];
1582    ["Offset of field: _cef_cookie_t::expires"]
1583        [::std::mem::offset_of!(_cef_cookie_t, expires) - 136usize];
1584    ["Offset of field: _cef_cookie_t::same_site"]
1585        [::std::mem::offset_of!(_cef_cookie_t, same_site) - 144usize];
1586    ["Offset of field: _cef_cookie_t::priority"]
1587        [::std::mem::offset_of!(_cef_cookie_t, priority) - 148usize];
1588};
1589#[doc = "\n Cookie information.\n"]
1590pub type cef_cookie_t = _cef_cookie_t;
1591#[repr(u32)]
1592#[non_exhaustive]
1593#[doc = "\n Process termination status values.\n"]
1594#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1595pub enum cef_termination_status_t {
1596    #[doc = "\n Non-zero exit status.\n"]
1597    TS_ABNORMAL_TERMINATION = 0,
1598    #[doc = "\n SIGKILL or task manager kill.\n"]
1599    TS_PROCESS_WAS_KILLED = 1,
1600    #[doc = "\n Segmentation fault.\n"]
1601    TS_PROCESS_CRASHED = 2,
1602    #[doc = "\n Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.\n"]
1603    TS_PROCESS_OOM = 3,
1604    #[doc = "\n Child process never launched.\n"]
1605    TS_LAUNCH_FAILED = 4,
1606    #[doc = "\n On Windows, the OS terminated the process due to code integrity failure.\n"]
1607    TS_INTEGRITY_FAILURE = 5,
1608    #[doc = "\n On Windows, the OS terminated the process due to code integrity failure.\n"]
1609    TS_NUM_VALUES = 6,
1610}
1611#[repr(u32)]
1612#[non_exhaustive]
1613#[doc = "\n Path key values.\n"]
1614#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1615pub enum cef_path_key_t {
1616    #[doc = "\n Current directory.\n"]
1617    PK_DIR_CURRENT = 0,
1618    #[doc = "\n Directory containing PK_FILE_EXE.\n"]
1619    PK_DIR_EXE = 1,
1620    #[doc = "\n Directory containing PK_FILE_MODULE.\n"]
1621    PK_DIR_MODULE = 2,
1622    #[doc = "\n Temporary directory.\n"]
1623    PK_DIR_TEMP = 3,
1624    #[doc = "\n Path and filename of the current executable.\n"]
1625    PK_FILE_EXE = 4,
1626    #[doc = "\n Path and filename of the module containing the CEF code (usually the\n libcef module).\n"]
1627    PK_FILE_MODULE = 5,
1628    #[doc = "\n \"Local Settings\\Application Data\" directory under the user profile\n directory on Windows.\n"]
1629    PK_LOCAL_APP_DATA = 6,
1630    #[doc = "\n \"Application Data\" directory under the user profile directory on Windows\n and \"~/Library/Application Support\" directory on MacOS.\n"]
1631    PK_USER_DATA = 7,
1632    #[doc = "\n Directory containing application resources. Can be configured via\n CefSettings.resources_dir_path.\n"]
1633    PK_DIR_RESOURCES = 8,
1634    #[doc = "\n Directory containing application resources. Can be configured via\n CefSettings.resources_dir_path.\n"]
1635    PK_NUM_VALUES = 9,
1636}
1637#[repr(u32)]
1638#[non_exhaustive]
1639#[doc = "\n Storage types.\n"]
1640#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1641pub enum cef_storage_type_t {
1642    ST_LOCALSTORAGE = 0,
1643    ST_SESSIONSTORAGE = 1,
1644}
1645#[repr(i32)]
1646#[non_exhaustive]
1647#[doc = "\n Supported error code values. For the complete list of error values see\n \"include/base/internal/cef_net_error_list.h\".\n"]
1648#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1649pub enum cef_errorcode_t {
1650    ERR_NONE = 0,
1651    ERR_IO_PENDING = -1,
1652    ERR_FAILED = -2,
1653    ERR_ABORTED = -3,
1654    ERR_INVALID_ARGUMENT = -4,
1655    ERR_INVALID_HANDLE = -5,
1656    ERR_FILE_NOT_FOUND = -6,
1657    ERR_TIMED_OUT = -7,
1658    ERR_FILE_TOO_BIG = -8,
1659    ERR_UNEXPECTED = -9,
1660    ERR_ACCESS_DENIED = -10,
1661    ERR_NOT_IMPLEMENTED = -11,
1662    ERR_INSUFFICIENT_RESOURCES = -12,
1663    ERR_OUT_OF_MEMORY = -13,
1664    ERR_UPLOAD_FILE_CHANGED = -14,
1665    ERR_SOCKET_NOT_CONNECTED = -15,
1666    ERR_FILE_EXISTS = -16,
1667    ERR_FILE_PATH_TOO_LONG = -17,
1668    ERR_FILE_NO_SPACE = -18,
1669    ERR_FILE_VIRUS_INFECTED = -19,
1670    ERR_BLOCKED_BY_CLIENT = -20,
1671    ERR_NETWORK_CHANGED = -21,
1672    ERR_BLOCKED_BY_ADMINISTRATOR = -22,
1673    ERR_SOCKET_IS_CONNECTED = -23,
1674    ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25,
1675    ERR_CONTEXT_SHUT_DOWN = -26,
1676    ERR_BLOCKED_BY_RESPONSE = -27,
1677    ERR_CLEARTEXT_NOT_PERMITTED = -29,
1678    ERR_BLOCKED_BY_CSP = -30,
1679    ERR_H2_OR_QUIC_REQUIRED = -31,
1680    ERR_BLOCKED_BY_ORB = -32,
1681    ERR_NETWORK_ACCESS_REVOKED = -33,
1682    ERR_BLOCKED_BY_FINGERPRINTING_PROTECTION = -34,
1683    ERR_CONNECTION_CLOSED = -100,
1684    ERR_CONNECTION_RESET = -101,
1685    ERR_CONNECTION_REFUSED = -102,
1686    ERR_CONNECTION_ABORTED = -103,
1687    ERR_CONNECTION_FAILED = -104,
1688    ERR_NAME_NOT_RESOLVED = -105,
1689    ERR_INTERNET_DISCONNECTED = -106,
1690    ERR_SSL_PROTOCOL_ERROR = -107,
1691    ERR_ADDRESS_INVALID = -108,
1692    ERR_ADDRESS_UNREACHABLE = -109,
1693    ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110,
1694    ERR_TUNNEL_CONNECTION_FAILED = -111,
1695    ERR_NO_SSL_VERSIONS_ENABLED = -112,
1696    ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113,
1697    ERR_SSL_RENEGOTIATION_REQUESTED = -114,
1698    ERR_PROXY_AUTH_UNSUPPORTED = -115,
1699    ERR_BAD_SSL_CLIENT_AUTH_CERT = -117,
1700    ERR_CONNECTION_TIMED_OUT = -118,
1701    ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119,
1702    ERR_SOCKS_CONNECTION_FAILED = -120,
1703    ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121,
1704    ERR_ALPN_NEGOTIATION_FAILED = -122,
1705    ERR_SSL_NO_RENEGOTIATION = -123,
1706    ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124,
1707    ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125,
1708    ERR_SSL_BAD_RECORD_MAC_ALERT = -126,
1709    ERR_PROXY_AUTH_REQUESTED = -127,
1710    ERR_PROXY_CONNECTION_FAILED = -130,
1711    ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131,
1712    ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133,
1713    ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134,
1714    ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135,
1715    ERR_PROXY_CERTIFICATE_INVALID = -136,
1716    ERR_NAME_RESOLUTION_FAILED = -137,
1717    ERR_NETWORK_ACCESS_DENIED = -138,
1718    ERR_TEMPORARILY_THROTTLED = -139,
1719    ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT = -140,
1720    ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141,
1721    ERR_MSG_TOO_BIG = -142,
1722    ERR_WS_PROTOCOL_ERROR = -145,
1723    ERR_ADDRESS_IN_USE = -147,
1724    ERR_SSL_HANDSHAKE_NOT_COMPLETED = -148,
1725    ERR_SSL_BAD_PEER_PUBLIC_KEY = -149,
1726    ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150,
1727    ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151,
1728    ERR_SSL_DECRYPT_ERROR_ALERT = -153,
1729    ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154,
1730    ERR_SSL_SERVER_CERT_CHANGED = -156,
1731    ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159,
1732    ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160,
1733    ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161,
1734    ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162,
1735    ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163,
1736    ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164,
1737    ERR_ICANN_NAME_COLLISION = -166,
1738    ERR_SSL_SERVER_CERT_BAD_FORMAT = -167,
1739    ERR_CT_STH_PARSING_FAILED = -168,
1740    ERR_CT_STH_INCOMPLETE = -169,
1741    ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170,
1742    ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171,
1743    ERR_SSL_OBSOLETE_CIPHER = -172,
1744    ERR_WS_UPGRADE = -173,
1745    ERR_READ_IF_READY_NOT_IMPLEMENTED = -174,
1746    ERR_NO_BUFFER_SPACE = -176,
1747    ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177,
1748    ERR_EARLY_DATA_REJECTED = -178,
1749    ERR_WRONG_VERSION_ON_EARLY_DATA = -179,
1750    ERR_TLS13_DOWNGRADE_DETECTED = -180,
1751    ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181,
1752    ERR_INVALID_ECH_CONFIG_LIST = -182,
1753    ERR_ECH_NOT_NEGOTIATED = -183,
1754    ERR_ECH_FALLBACK_CERTIFICATE_INVALID = -184,
1755    ERR_CERT_COMMON_NAME_INVALID = -200,
1756    ERR_CERT_DATE_INVALID = -201,
1757    ERR_CERT_AUTHORITY_INVALID = -202,
1758    ERR_CERT_CONTAINS_ERRORS = -203,
1759    ERR_CERT_NO_REVOCATION_MECHANISM = -204,
1760    ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205,
1761    ERR_CERT_REVOKED = -206,
1762    ERR_CERT_INVALID = -207,
1763    ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208,
1764    ERR_CERT_NON_UNIQUE_NAME = -210,
1765    ERR_CERT_WEAK_KEY = -211,
1766    ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212,
1767    ERR_CERT_VALIDITY_TOO_LONG = -213,
1768    ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214,
1769    ERR_CERT_SYMANTEC_LEGACY = -215,
1770    ERR_CERT_KNOWN_INTERCEPTION_BLOCKED = -217,
1771    ERR_CERT_END = -219,
1772    ERR_INVALID_URL = -300,
1773    ERR_DISALLOWED_URL_SCHEME = -301,
1774    ERR_UNKNOWN_URL_SCHEME = -302,
1775    ERR_INVALID_REDIRECT = -303,
1776    ERR_TOO_MANY_REDIRECTS = -310,
1777    ERR_UNSAFE_REDIRECT = -311,
1778    ERR_UNSAFE_PORT = -312,
1779    ERR_INVALID_RESPONSE = -320,
1780    ERR_INVALID_CHUNKED_ENCODING = -321,
1781    ERR_METHOD_NOT_SUPPORTED = -322,
1782    ERR_UNEXPECTED_PROXY_AUTH = -323,
1783    ERR_EMPTY_RESPONSE = -324,
1784    ERR_RESPONSE_HEADERS_TOO_BIG = -325,
1785    ERR_PAC_SCRIPT_FAILED = -327,
1786    ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328,
1787    ERR_MALFORMED_IDENTITY = -329,
1788    ERR_CONTENT_DECODING_FAILED = -330,
1789    ERR_NETWORK_IO_SUSPENDED = -331,
1790    ERR_SYN_REPLY_NOT_RECEIVED = -332,
1791    ERR_ENCODING_CONVERSION_FAILED = -333,
1792    ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT = -334,
1793    ERR_NO_SUPPORTED_PROXIES = -336,
1794    ERR_HTTP2_PROTOCOL_ERROR = -337,
1795    ERR_INVALID_AUTH_CREDENTIALS = -338,
1796    ERR_UNSUPPORTED_AUTH_SCHEME = -339,
1797    ERR_ENCODING_DETECTION_FAILED = -340,
1798    ERR_MISSING_AUTH_CREDENTIALS = -341,
1799    ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342,
1800    ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343,
1801    ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344,
1802    ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345,
1803    ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346,
1804    ERR_INCOMPLETE_HTTP2_HEADERS = -347,
1805    ERR_PAC_NOT_IN_DHCP = -348,
1806    ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349,
1807    ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350,
1808    ERR_HTTP2_SERVER_REFUSED_STREAM = -351,
1809    ERR_HTTP2_PING_FAILED = -352,
1810    ERR_CONTENT_LENGTH_MISMATCH = -354,
1811    ERR_INCOMPLETE_CHUNKED_ENCODING = -355,
1812    ERR_QUIC_PROTOCOL_ERROR = -356,
1813    ERR_RESPONSE_HEADERS_TRUNCATED = -357,
1814    ERR_QUIC_HANDSHAKE_FAILED = -358,
1815    ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY = -360,
1816    ERR_HTTP2_FLOW_CONTROL_ERROR = -361,
1817    ERR_HTTP2_FRAME_SIZE_ERROR = -362,
1818    ERR_HTTP2_COMPRESSION_ERROR = -363,
1819    ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364,
1820    ERR_HTTP_1_1_REQUIRED = -365,
1821    ERR_PROXY_HTTP_1_1_REQUIRED = -366,
1822    ERR_PAC_SCRIPT_TERMINATED = -367,
1823    ERR_INVALID_HTTP_RESPONSE = -370,
1824    ERR_CONTENT_DECODING_INIT_FAILED = -371,
1825    ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED = -372,
1826    ERR_TOO_MANY_RETRIES = -375,
1827    ERR_HTTP2_STREAM_CLOSED = -376,
1828    ERR_HTTP_RESPONSE_CODE_FAILURE = -379,
1829    ERR_QUIC_CERT_ROOT_NOT_KNOWN = -380,
1830    ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED = -381,
1831    ERR_TOO_MANY_ACCEPT_CH_RESTARTS = -382,
1832    ERR_INCONSISTENT_IP_ADDRESS_SPACE = -383,
1833    ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_PRIVATE_NETWORK_ACCESS_POLICY = -384,
1834    ERR_BLOCKED_BY_PRIVATE_NETWORK_ACCESS_CHECKS = -385,
1835    ERR_ZSTD_WINDOW_SIZE_TOO_BIG = -386,
1836    ERR_DICTIONARY_LOAD_FAILED = -387,
1837    ERR_UNEXPECTED_CONTENT_DICTIONARY_HEADER = -388,
1838    ERR_CACHE_MISS = -400,
1839    ERR_CACHE_READ_FAILURE = -401,
1840    ERR_CACHE_WRITE_FAILURE = -402,
1841    ERR_CACHE_OPERATION_NOT_SUPPORTED = -403,
1842    ERR_CACHE_OPEN_FAILURE = -404,
1843    ERR_CACHE_CREATE_FAILURE = -405,
1844    ERR_CACHE_RACE = -406,
1845    ERR_CACHE_CHECKSUM_READ_FAILURE = -407,
1846    ERR_CACHE_CHECKSUM_MISMATCH = -408,
1847    ERR_CACHE_LOCK_TIMEOUT = -409,
1848    ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410,
1849    ERR_CACHE_ENTRY_NOT_SUITABLE = -411,
1850    ERR_CACHE_DOOM_FAILURE = -412,
1851    ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413,
1852    ERR_INSECURE_RESPONSE = -501,
1853    ERR_NO_PRIVATE_KEY_FOR_CERT = -502,
1854    ERR_ADD_USER_CERT_FAILED = -503,
1855    ERR_INVALID_SIGNED_EXCHANGE = -504,
1856    ERR_INVALID_WEB_BUNDLE = -505,
1857    ERR_TRUST_TOKEN_OPERATION_FAILED = -506,
1858    ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST = -507,
1859    ERR_PKCS12_IMPORT_BAD_PASSWORD = -701,
1860    ERR_PKCS12_IMPORT_FAILED = -702,
1861    ERR_IMPORT_CA_CERT_NOT_CA = -703,
1862    ERR_IMPORT_CERT_ALREADY_EXISTS = -704,
1863    ERR_IMPORT_CA_CERT_FAILED = -705,
1864    ERR_IMPORT_SERVER_CERT_FAILED = -706,
1865    ERR_PKCS12_IMPORT_INVALID_MAC = -707,
1866    ERR_PKCS12_IMPORT_INVALID_FILE = -708,
1867    ERR_PKCS12_IMPORT_UNSUPPORTED = -709,
1868    ERR_KEY_GENERATION_FAILED = -710,
1869    ERR_PRIVATE_KEY_EXPORT_FAILED = -712,
1870    ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713,
1871    ERR_CERT_DATABASE_CHANGED = -714,
1872    ERR_CERT_VERIFIER_CHANGED = -716,
1873    ERR_DNS_MALFORMED_RESPONSE = -800,
1874    ERR_DNS_SERVER_REQUIRES_TCP = -801,
1875    ERR_DNS_SERVER_FAILED = -802,
1876    ERR_DNS_TIMED_OUT = -803,
1877    ERR_DNS_CACHE_MISS = -804,
1878    ERR_DNS_SEARCH_EMPTY = -805,
1879    ERR_DNS_SORT_ERROR = -806,
1880    ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED = -808,
1881    ERR_DNS_NAME_HTTPS_ONLY = -809,
1882    ERR_DNS_REQUEST_CANCELLED = -810,
1883    ERR_DNS_NO_MATCHING_SUPPORTED_ALPN = -811,
1884    ERR_DNS_SECURE_PROBE_RECORD_INVALID = -814,
1885}
1886#[repr(u32)]
1887#[non_exhaustive]
1888#[doc = "\n Supported certificate status code values. See net\\cert\\cert_status_flags.h\n for more information. CERT_STATUS_NONE is new in CEF because we use an\n enum while cert_status_flags.h uses a typedef and static const variables.\n"]
1889#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1890pub enum cef_cert_status_t {
1891    CERT_STATUS_NONE = 0,
1892    CERT_STATUS_COMMON_NAME_INVALID = 1,
1893    CERT_STATUS_DATE_INVALID = 2,
1894    CERT_STATUS_AUTHORITY_INVALID = 4,
1895    CERT_STATUS_NO_REVOCATION_MECHANISM = 16,
1896    CERT_STATUS_UNABLE_TO_CHECK_REVOCATION = 32,
1897    CERT_STATUS_REVOKED = 64,
1898    CERT_STATUS_INVALID = 128,
1899    CERT_STATUS_WEAK_SIGNATURE_ALGORITHM = 256,
1900    CERT_STATUS_NON_UNIQUE_NAME = 1024,
1901    CERT_STATUS_WEAK_KEY = 2048,
1902    CERT_STATUS_PINNED_KEY_MISSING = 8192,
1903    CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 16384,
1904    CERT_STATUS_VALIDITY_TOO_LONG = 32768,
1905    CERT_STATUS_IS_EV = 65536,
1906    CERT_STATUS_REV_CHECKING_ENABLED = 131072,
1907    CERT_STATUS_SHA1_SIGNATURE_PRESENT = 524288,
1908    CERT_STATUS_CT_COMPLIANCE_FAILED = 1048576,
1909}
1910impl cef_resultcode_t {
1911    pub const CEF_RESULT_CODE_SANDBOX_FATAL_INTEGRITY: cef_resultcode_t =
1912        cef_resultcode_t::CEF_RESULT_CODE_SANDBOX_FATAL_FIRST;
1913}
1914#[repr(u32)]
1915#[non_exhaustive]
1916#[doc = "\n Process result codes. This is not a comprehensive list, as result codes\n might also include platform-specific crash values (Posix signal or Windows\n hardware exception), or internal-only implementation values.\n"]
1917#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1918pub enum cef_resultcode_t {
1919    CEF_RESULT_CODE_NORMAL_EXIT = 0,
1920    #[doc = " Process was killed by user or system."]
1921    CEF_RESULT_CODE_KILLED = 1,
1922    #[doc = " Process hung."]
1923    CEF_RESULT_CODE_HUNG = 2,
1924    #[doc = " A bad message caused the process termination."]
1925    CEF_RESULT_CODE_KILLED_BAD_MESSAGE = 3,
1926    #[doc = " The GPU process exited because initialization failed."]
1927    CEF_RESULT_CODE_GPU_DEAD_ON_ARRIVAL = 4,
1928    #[doc = " The GPU process exited because initialization failed."]
1929    CEF_RESULT_CODE_CHROME_FIRST = 5,
1930    #[doc = " A critical chrome file is missing."]
1931    CEF_RESULT_CODE_MISSING_DATA = 7,
1932    #[doc = " Command line parameter is not supported."]
1933    CEF_RESULT_CODE_UNSUPPORTED_PARAM = 13,
1934    #[doc = " The profile was in use on another host."]
1935    CEF_RESULT_CODE_PROFILE_IN_USE = 21,
1936    #[doc = " Failed to pack an extension via the command line."]
1937    CEF_RESULT_CODE_PACK_EXTENSION_ERROR = 22,
1938    #[doc = " The browser process exited early by passing the command line to another\n running browser."]
1939    CEF_RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED = 24,
1940    #[doc = " A browser process was sandboxed. This should never happen."]
1941    CEF_RESULT_CODE_INVALID_SANDBOX_STATE = 31,
1942    #[doc = " Cloud policy enrollment failed or was given up by user."]
1943    CEF_RESULT_CODE_CLOUD_POLICY_ENROLLMENT_FAILED = 32,
1944    #[doc = " The GPU process was terminated due to context lost."]
1945    CEF_RESULT_CODE_GPU_EXIT_ON_CONTEXT_LOST = 34,
1946    #[doc = " An early startup command was executed and the browser must exit."]
1947    CEF_RESULT_CODE_NORMAL_EXIT_PACK_EXTENSION_SUCCESS = 36,
1948    #[doc = " The browser process exited because system resources are exhausted. The\n system state can't be recovered and will be unstable."]
1949    CEF_RESULT_CODE_SYSTEM_RESOURCE_EXHAUSTED = 37,
1950    #[doc = " The browser process exited because system resources are exhausted. The\n system state can't be recovered and will be unstable."]
1951    CEF_RESULT_CODE_CHROME_LAST = 38,
1952    #[doc = " The browser process exited because system resources are exhausted. The\n system state can't be recovered and will be unstable."]
1953    CEF_RESULT_CODE_SANDBOX_FATAL_FIRST = 7006,
1954    #[doc = " Windows sandbox could not lower the token."]
1955    CEF_RESULT_CODE_SANDBOX_FATAL_DROPTOKEN = 7007,
1956    #[doc = " Windows sandbox failed to flush registry handles."]
1957    CEF_RESULT_CODE_SANDBOX_FATAL_FLUSHANDLES = 7008,
1958    #[doc = " Windows sandbox failed to forbid HCKU caching."]
1959    CEF_RESULT_CODE_SANDBOX_FATAL_CACHEDISABLE = 7009,
1960    #[doc = " Windows sandbox failed to close pending handles."]
1961    CEF_RESULT_CODE_SANDBOX_FATAL_CLOSEHANDLES = 7010,
1962    #[doc = " Windows sandbox could not set the mitigation policy."]
1963    CEF_RESULT_CODE_SANDBOX_FATAL_MITIGATION = 7011,
1964    #[doc = " Windows sandbox exceeded the job memory limit."]
1965    CEF_RESULT_CODE_SANDBOX_FATAL_MEMORY_EXCEEDED = 7012,
1966    #[doc = " Windows sandbox failed to warmup."]
1967    CEF_RESULT_CODE_SANDBOX_FATAL_WARMUP = 7013,
1968    #[doc = " Windows sandbox failed to warmup."]
1969    CEF_RESULT_CODE_SANDBOX_FATAL_BROKER_SHUTDOWN_HUNG = 7014,
1970    #[doc = " Windows sandbox failed to warmup."]
1971    CEF_RESULT_CODE_SANDBOX_FATAL_LAST = 7015,
1972    #[doc = " Windows sandbox failed to warmup."]
1973    CEF_RESULT_CODE_NUM_VALUES = 7016,
1974}
1975#[repr(u32)]
1976#[non_exhaustive]
1977#[doc = "\n The manner in which a link click should be opened. These constants match\n their equivalents in Chromium's window_open_disposition.h and should not be\n renumbered.\n"]
1978#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1979pub enum cef_window_open_disposition_t {
1980    CEF_WOD_UNKNOWN = 0,
1981    #[doc = "\n Current tab. This is the default in most cases.\n"]
1982    CEF_WOD_CURRENT_TAB = 1,
1983    #[doc = "\n Indicates that only one tab with the url should exist in the same window.\n"]
1984    CEF_WOD_SINGLETON_TAB = 2,
1985    #[doc = "\n Shift key + Middle mouse button or meta/ctrl key while clicking.\n"]
1986    CEF_WOD_NEW_FOREGROUND_TAB = 3,
1987    #[doc = "\n Middle mouse button or meta/ctrl key while clicking.\n"]
1988    CEF_WOD_NEW_BACKGROUND_TAB = 4,
1989    #[doc = "\n New popup window.\n"]
1990    CEF_WOD_NEW_POPUP = 5,
1991    #[doc = "\n Shift key while clicking.\n"]
1992    CEF_WOD_NEW_WINDOW = 6,
1993    #[doc = "\n Alt key while clicking.\n"]
1994    CEF_WOD_SAVE_TO_DISK = 7,
1995    #[doc = "\n New off-the-record (incognito) window.\n"]
1996    CEF_WOD_OFF_THE_RECORD = 8,
1997    #[doc = "\n Special case error condition from the renderer.\n"]
1998    CEF_WOD_IGNORE_ACTION = 9,
1999    #[doc = "\n Activates an existing tab containing the url, rather than navigating.\n This is similar to SINGLETON_TAB, but searches across all windows from\n the current profile and anonymity (instead of just the current one);\n closes the current tab on switching if the current tab was the NTP with\n no session history; and behaves like CURRENT_TAB instead of\n NEW_FOREGROUND_TAB when no existing tab is found.\n"]
2000    CEF_WOD_SWITCH_TO_TAB = 10,
2001    #[doc = "\n Creates a new document picture-in-picture window showing a child WebView.\n"]
2002    CEF_WOD_NEW_PICTURE_IN_PICTURE = 11,
2003    #[doc = "\n Creates a new document picture-in-picture window showing a child WebView.\n"]
2004    CEF_WOD_NUM_VALUES = 12,
2005}
2006impl cef_drag_operations_mask_t {
2007    pub const DRAG_OPERATION_NONE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(0);
2008}
2009impl cef_drag_operations_mask_t {
2010    pub const DRAG_OPERATION_COPY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(1);
2011}
2012impl cef_drag_operations_mask_t {
2013    pub const DRAG_OPERATION_LINK: cef_drag_operations_mask_t = cef_drag_operations_mask_t(2);
2014}
2015impl cef_drag_operations_mask_t {
2016    pub const DRAG_OPERATION_GENERIC: cef_drag_operations_mask_t = cef_drag_operations_mask_t(4);
2017}
2018impl cef_drag_operations_mask_t {
2019    pub const DRAG_OPERATION_PRIVATE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(8);
2020}
2021impl cef_drag_operations_mask_t {
2022    pub const DRAG_OPERATION_MOVE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(16);
2023}
2024impl cef_drag_operations_mask_t {
2025    pub const DRAG_OPERATION_DELETE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(32);
2026}
2027impl cef_drag_operations_mask_t {
2028    pub const DRAG_OPERATION_EVERY: cef_drag_operations_mask_t =
2029        cef_drag_operations_mask_t(4294967295);
2030}
2031impl ::std::ops::BitOr<cef_drag_operations_mask_t> for cef_drag_operations_mask_t {
2032    type Output = Self;
2033    #[inline]
2034    fn bitor(self, other: Self) -> Self {
2035        cef_drag_operations_mask_t(self.0 | other.0)
2036    }
2037}
2038impl ::std::ops::BitOrAssign for cef_drag_operations_mask_t {
2039    #[inline]
2040    fn bitor_assign(&mut self, rhs: cef_drag_operations_mask_t) {
2041        self.0 |= rhs.0;
2042    }
2043}
2044impl ::std::ops::BitAnd<cef_drag_operations_mask_t> for cef_drag_operations_mask_t {
2045    type Output = Self;
2046    #[inline]
2047    fn bitand(self, other: Self) -> Self {
2048        cef_drag_operations_mask_t(self.0 & other.0)
2049    }
2050}
2051impl ::std::ops::BitAndAssign for cef_drag_operations_mask_t {
2052    #[inline]
2053    fn bitand_assign(&mut self, rhs: cef_drag_operations_mask_t) {
2054        self.0 &= rhs.0;
2055    }
2056}
2057#[repr(transparent)]
2058#[doc = "\n \"Verb\" of a drag-and-drop operation as negotiated between the source and\n destination. These constants match their equivalents in WebCore's\n DragActions.h and should not be renumbered.\n"]
2059#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2060pub struct cef_drag_operations_mask_t(pub ::std::os::raw::c_uint);
2061#[repr(u32)]
2062#[non_exhaustive]
2063#[doc = "\n Input mode of a virtual keyboard. These constants match their equivalents\n in Chromium's text_input_mode.h and should not be renumbered.\n See https://html.spec.whatwg.org/#input-modalities:-the-inputmode-attribute\n"]
2064#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2065pub enum cef_text_input_mode_t {
2066    CEF_TEXT_INPUT_MODE_DEFAULT = 0,
2067    CEF_TEXT_INPUT_MODE_NONE = 1,
2068    CEF_TEXT_INPUT_MODE_TEXT = 2,
2069    CEF_TEXT_INPUT_MODE_TEL = 3,
2070    CEF_TEXT_INPUT_MODE_URL = 4,
2071    CEF_TEXT_INPUT_MODE_EMAIL = 5,
2072    CEF_TEXT_INPUT_MODE_NUMERIC = 6,
2073    CEF_TEXT_INPUT_MODE_DECIMAL = 7,
2074    CEF_TEXT_INPUT_MODE_SEARCH = 8,
2075    CEF_TEXT_INPUT_MODE_NUM_VALUES = 9,
2076}
2077#[repr(u32)]
2078#[non_exhaustive]
2079#[doc = "\n V8 property attribute values.\n"]
2080#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2081pub enum cef_v8_propertyattribute_t {
2082    #[doc = "\n Writeable, Enumerable, Configurable\n"]
2083    V8_PROPERTY_ATTRIBUTE_NONE = 0,
2084    #[doc = "\n Not writeable\n"]
2085    V8_PROPERTY_ATTRIBUTE_READONLY = 1,
2086    #[doc = "\n Not enumerable\n"]
2087    V8_PROPERTY_ATTRIBUTE_DONTENUM = 2,
2088    #[doc = "\n Not configurable\n"]
2089    V8_PROPERTY_ATTRIBUTE_DONTDELETE = 4,
2090}
2091#[repr(u32)]
2092#[non_exhaustive]
2093#[doc = "\n Post data elements may represent either bytes or files.\n"]
2094#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2095pub enum cef_postdataelement_type_t {
2096    PDE_TYPE_EMPTY = 0,
2097    PDE_TYPE_BYTES = 1,
2098    PDE_TYPE_FILE = 2,
2099    PDF_TYPE_NUM_VALUES = 3,
2100}
2101#[repr(u32)]
2102#[non_exhaustive]
2103#[doc = "\n Resource type for a request. These constants match their equivalents in\n Chromium's ResourceType and should not be renumbered.\n"]
2104#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2105pub enum cef_resource_type_t {
2106    #[doc = "\n Top level page.\n"]
2107    RT_MAIN_FRAME = 0,
2108    #[doc = "\n Frame or iframe.\n"]
2109    RT_SUB_FRAME = 1,
2110    #[doc = "\n CSS stylesheet.\n"]
2111    RT_STYLESHEET = 2,
2112    #[doc = "\n External script.\n"]
2113    RT_SCRIPT = 3,
2114    #[doc = "\n Image (jpg/gif/png/etc).\n"]
2115    RT_IMAGE = 4,
2116    #[doc = "\n Font.\n"]
2117    RT_FONT_RESOURCE = 5,
2118    #[doc = "\n Some other subresource. This is the default type if the actual type is\n unknown.\n"]
2119    RT_SUB_RESOURCE = 6,
2120    #[doc = "\n Object (or embed) tag for a plugin, or a resource that a plugin requested.\n"]
2121    RT_OBJECT = 7,
2122    #[doc = "\n Media resource.\n"]
2123    RT_MEDIA = 8,
2124    #[doc = "\n Main resource of a dedicated worker.\n"]
2125    RT_WORKER = 9,
2126    #[doc = "\n Main resource of a shared worker.\n"]
2127    RT_SHARED_WORKER = 10,
2128    #[doc = "\n Explicitly requested prefetch.\n"]
2129    RT_PREFETCH = 11,
2130    #[doc = "\n Favicon.\n"]
2131    RT_FAVICON = 12,
2132    #[doc = "\n XMLHttpRequest.\n"]
2133    RT_XHR = 13,
2134    #[doc = "\n A request for a \"<ping>\".\n"]
2135    RT_PING = 14,
2136    #[doc = "\n Main resource of a service worker.\n"]
2137    RT_SERVICE_WORKER = 15,
2138    #[doc = "\n A report of Content Security Policy violations.\n"]
2139    RT_CSP_REPORT = 16,
2140    #[doc = "\n A resource that a plugin requested.\n"]
2141    RT_PLUGIN_RESOURCE = 17,
2142    #[doc = "\n A main-frame service worker navigation preload request.\n"]
2143    RT_NAVIGATION_PRELOAD_MAIN_FRAME = 19,
2144    #[doc = "\n A sub-frame service worker navigation preload request.\n"]
2145    RT_NAVIGATION_PRELOAD_SUB_FRAME = 20,
2146    #[doc = "\n A sub-frame service worker navigation preload request.\n"]
2147    RT_NUM_VALUES = 21,
2148}
2149#[repr(u32)]
2150#[non_exhaustive]
2151#[doc = "\n Transition type for a request. Made up of one source value and 0 or more\n qualifiers.\n"]
2152#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2153pub enum cef_transition_type_t {
2154    #[doc = "\n Source is a link click or the JavaScript window.open function. This is\n also the default value for requests like sub-resource loads that are not\n navigations.\n"]
2155    TT_LINK = 0,
2156    #[doc = "\n Source is some other \"explicit\" navigation. This is the default value for\n navigations where the actual type is unknown. See also\n TT_DIRECT_LOAD_FLAG.\n"]
2157    TT_EXPLICIT = 1,
2158    #[doc = "\n User got to this page through a suggestion in the UI (for example, via the\n destinations page). Chrome style only.\n"]
2159    TT_AUTO_BOOKMARK = 2,
2160    #[doc = "\n Source is a subframe navigation. This is any content that is automatically\n loaded in a non-toplevel frame. For example, if a page consists of several\n frames containing ads, those ad URLs will have this transition type.\n The user may not even realize the content in these pages is a separate\n frame, so may not care about the URL.\n"]
2161    TT_AUTO_SUBFRAME = 3,
2162    #[doc = "\n Source is a subframe navigation explicitly requested by the user that will\n generate new navigation entries in the back/forward list. These are\n probably more important than frames that were automatically loaded in\n the background because the user probably cares about the fact that this\n link was loaded.\n"]
2163    TT_MANUAL_SUBFRAME = 4,
2164    #[doc = "\n User got to this page by typing in the URL bar and selecting an entry\n that did not look like a URL.  For example, a match might have the URL\n of a Google search result page, but appear like \"Search Google for ...\".\n These are not quite the same as EXPLICIT navigations because the user\n didn't type or see the destination URL. Chrome style only.\n See also TT_KEYWORD.\n"]
2165    TT_GENERATED = 5,
2166    #[doc = "\n This is a toplevel navigation. This is any content that is automatically\n loaded in a toplevel frame.  For example, opening a tab to show the ASH\n screen saver, opening the devtools window, opening the NTP after the safe\n browsing warning, opening web-based dialog boxes are examples of\n AUTO_TOPLEVEL navigations. Chrome style only.\n"]
2167    TT_AUTO_TOPLEVEL = 6,
2168    #[doc = "\n Source is a form submission by the user. NOTE: In some situations\n submitting a form does not result in this transition type. This can happen\n if the form uses a script to submit the contents.\n"]
2169    TT_FORM_SUBMIT = 7,
2170    #[doc = "\n Source is a \"reload\" of the page via the Reload function or by re-visiting\n the same URL. NOTE: This is distinct from the concept of whether a\n particular load uses \"reload semantics\" (i.e. bypasses cached data).\n"]
2171    TT_RELOAD = 8,
2172    #[doc = "\n The url was generated from a replaceable keyword other than the default\n search provider. If the user types a keyword (which also applies to\n tab-to-search) in the omnibox this qualifier is applied to the transition\n type of the generated url. TemplateURLModel then may generate an\n additional visit with a transition type of TT_KEYWORD_GENERATED against\n the url 'http://' + keyword. For example, if you do a tab-to-search\n against wikipedia the generated url has a transition qualifer of\n TT_KEYWORD, and TemplateURLModel generates a visit for 'wikipedia.org'\n with a transition type of TT_KEYWORD_GENERATED. Chrome style only.\n"]
2173    TT_KEYWORD = 9,
2174    #[doc = "\n Corresponds to a visit generated for a keyword. See description of\n TT_KEYWORD for more details. Chrome style only.\n"]
2175    TT_KEYWORD_GENERATED = 10,
2176    #[doc = "\n Corresponds to a visit generated for a keyword. See description of\n TT_KEYWORD for more details. Chrome style only.\n"]
2177    TT_NUM_VALUES = 11,
2178    #[doc = "\n General mask defining the bits used for the source values.\n"]
2179    TT_SOURCE_MASK = 255,
2180    #[doc = "\n Attempted to visit a URL but was blocked.\n"]
2181    TT_BLOCKED_FLAG = 8388608,
2182    #[doc = "\n Used the Forward or Back function to navigate among browsing history.\n Will be ORed to the transition type for the original load.\n"]
2183    TT_FORWARD_BACK_FLAG = 16777216,
2184    #[doc = "\n Loaded a URL directly via CreateBrowser, LoadURL or LoadRequest.\n"]
2185    TT_DIRECT_LOAD_FLAG = 33554432,
2186    #[doc = "\n User is navigating to the home page. Chrome style only.\n"]
2187    TT_HOME_PAGE_FLAG = 67108864,
2188    #[doc = "\n The transition originated from an external application; the exact\n definition of this is embedder dependent. Chrome style only.\n"]
2189    TT_FROM_API_FLAG = 134217728,
2190    #[doc = "\n The beginning of a navigation chain.\n"]
2191    TT_CHAIN_START_FLAG = 268435456,
2192    #[doc = "\n The last transition in a redirect chain.\n"]
2193    TT_CHAIN_END_FLAG = 536870912,
2194    #[doc = "\n Redirects caused by JavaScript or a meta refresh tag on the page.\n"]
2195    TT_CLIENT_REDIRECT_FLAG = 1073741824,
2196    #[doc = "\n Redirects sent from the server by HTTP headers.\n"]
2197    TT_SERVER_REDIRECT_FLAG = 2147483648,
2198    #[doc = "\n Used to test whether a transition involves a redirect.\n"]
2199    TT_IS_REDIRECT_MASK = 3221225472,
2200    #[doc = "\n General mask defining the bits used for the qualifiers.\n"]
2201    TT_QUALIFIER_MASK = 4294967040,
2202}
2203#[repr(u32)]
2204#[non_exhaustive]
2205#[doc = "\n Flags used to customize the behavior of CefURLRequest.\n"]
2206#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2207pub enum cef_urlrequest_flags_t {
2208    #[doc = "\n Default behavior.\n"]
2209    UR_FLAG_NONE = 0,
2210    #[doc = "\n If set the cache will be skipped when handling the request. Setting this\n value is equivalent to specifying the \"Cache-Control: no-cache\" request\n header. Setting this value in combination with UR_FLAG_ONLY_FROM_CACHE\n will cause the request to fail.\n"]
2211    UR_FLAG_SKIP_CACHE = 1,
2212    #[doc = "\n If set the request will fail if it cannot be served from the cache (or\n some equivalent local store). Setting this value is equivalent to\n specifying the \"Cache-Control: only-if-cached\" request header. Setting\n this value in combination with UR_FLAG_SKIP_CACHE or UR_FLAG_DISABLE_CACHE\n will cause the request to fail.\n"]
2213    UR_FLAG_ONLY_FROM_CACHE = 2,
2214    #[doc = "\n If set the cache will not be used at all. Setting this value is equivalent\n to specifying the \"Cache-Control: no-store\" request header. Setting this\n value in combination with UR_FLAG_ONLY_FROM_CACHE will cause the request\n to fail.\n"]
2215    UR_FLAG_DISABLE_CACHE = 4,
2216    #[doc = "\n If set user name, password, and cookies may be sent with the request, and\n cookies may be saved from the response.\n"]
2217    UR_FLAG_ALLOW_STORED_CREDENTIALS = 8,
2218    #[doc = "\n If set upload progress events will be generated when a request has a body.\n"]
2219    UR_FLAG_REPORT_UPLOAD_PROGRESS = 16,
2220    #[doc = "\n If set the CefURLRequestClient::OnDownloadData method will not be called.\n"]
2221    UR_FLAG_NO_DOWNLOAD_DATA = 32,
2222    #[doc = "\n If set 5XX redirect errors will be propagated to the observer instead of\n automatically re-tried. This currently only applies for requests\n originated in the browser process.\n"]
2223    UR_FLAG_NO_RETRY_ON_5XX = 64,
2224    #[doc = "\n If set 3XX responses will cause the fetch to halt immediately rather than\n continue through the redirect.\n"]
2225    UR_FLAG_STOP_ON_REDIRECT = 128,
2226}
2227#[repr(u32)]
2228#[non_exhaustive]
2229#[doc = "\n Flags that represent CefURLRequest status.\n"]
2230#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2231pub enum cef_urlrequest_status_t {
2232    #[doc = "\n Unknown status.\n"]
2233    UR_UNKNOWN = 0,
2234    #[doc = "\n Request succeeded.\n"]
2235    UR_SUCCESS = 1,
2236    #[doc = "\n An IO request is pending, and the caller will be informed when it is\n completed.\n"]
2237    UR_IO_PENDING = 2,
2238    #[doc = "\n Request was canceled programatically.\n"]
2239    UR_CANCELED = 3,
2240    #[doc = "\n Request failed for some reason.\n"]
2241    UR_FAILED = 4,
2242    #[doc = "\n Request failed for some reason.\n"]
2243    UR_NUM_VALUES = 5,
2244}
2245#[doc = " Structure representing a draggable region.\n"]
2246#[repr(C)]
2247#[derive(Debug, Copy, Clone)]
2248pub struct _cef_draggable_region_t {
2249    #[doc = "\n Bounds of the region.\n"]
2250    pub bounds: cef_rect_t,
2251    #[doc = "\n True (1) this this region is draggable and false (0) otherwise.\n"]
2252    pub draggable: ::std::os::raw::c_int,
2253}
2254#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2255const _: () = {
2256    ["Size of _cef_draggable_region_t"][::std::mem::size_of::<_cef_draggable_region_t>() - 20usize];
2257    ["Alignment of _cef_draggable_region_t"]
2258        [::std::mem::align_of::<_cef_draggable_region_t>() - 4usize];
2259    ["Offset of field: _cef_draggable_region_t::bounds"]
2260        [::std::mem::offset_of!(_cef_draggable_region_t, bounds) - 0usize];
2261    ["Offset of field: _cef_draggable_region_t::draggable"]
2262        [::std::mem::offset_of!(_cef_draggable_region_t, draggable) - 16usize];
2263};
2264#[doc = " Structure representing a draggable region.\n"]
2265pub type cef_draggable_region_t = _cef_draggable_region_t;
2266#[repr(u32)]
2267#[non_exhaustive]
2268#[doc = "\n Existing process IDs.\n"]
2269#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2270pub enum cef_process_id_t {
2271    #[doc = "\n Browser process.\n"]
2272    PID_BROWSER = 0,
2273    #[doc = "\n Renderer process.\n"]
2274    PID_RENDERER = 1,
2275}
2276#[repr(u32)]
2277#[non_exhaustive]
2278#[doc = "\n Existing thread IDs.\n"]
2279#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2280pub enum cef_thread_id_t {
2281    #[doc = "\n The main thread in the browser. This will be the same as the main\n application thread if CefInitialize() is called with a\n CefSettings.multi_threaded_message_loop value of false. Do not perform\n blocking tasks on this thread. All tasks posted after\n CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()\n are guaranteed to run. This thread will outlive all other CEF threads.\n"]
2282    TID_UI = 0,
2283    #[doc = "\n Used for blocking tasks like file system access where the user won't\n notice if the task takes an arbitrarily long time to complete. All tasks\n posted after CefBrowserProcessHandler::OnContextInitialized() and before\n CefShutdown() are guaranteed to run.\n"]
2284    TID_FILE_BACKGROUND = 1,
2285    #[doc = "\n Used for blocking tasks like file system access that affect UI or\n responsiveness of future user interactions. Do not use if an immediate\n response to a user interaction is expected. All tasks posted after\n CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()\n are guaranteed to run.\n Examples:\n - Updating the UI to reflect progress on a long task.\n - Loading data that might be shown in the UI after a future user\n   interaction.\n"]
2286    TID_FILE_USER_VISIBLE = 2,
2287    #[doc = "\n Used for blocking tasks like file system access that affect UI\n immediately after a user interaction. All tasks posted after\n CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()\n are guaranteed to run.\n Example: Generating data shown in the UI immediately after a click.\n"]
2288    TID_FILE_USER_BLOCKING = 3,
2289    #[doc = "\n Used to launch and terminate browser processes.\n"]
2290    TID_PROCESS_LAUNCHER = 4,
2291    #[doc = "\n Used to process IPC and network messages. Do not perform blocking tasks on\n this thread. All tasks posted after\n CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown()\n are guaranteed to run.\n"]
2292    TID_IO = 5,
2293    #[doc = "\n The main thread in the renderer. Used for all WebKit and V8 interaction.\n Tasks may be posted to this thread after\n CefRenderProcessHandler::OnWebKitInitialized but are not guaranteed to\n run before sub-process termination (sub-processes may be killed at any\n time without warning).\n"]
2294    TID_RENDERER = 6,
2295    #[doc = "\n The main thread in the renderer. Used for all WebKit and V8 interaction.\n Tasks may be posted to this thread after\n CefRenderProcessHandler::OnWebKitInitialized but are not guaranteed to\n run before sub-process termination (sub-processes may be killed at any\n time without warning).\n"]
2296    TID_NUM_VALUES = 7,
2297}
2298#[repr(u32)]
2299#[non_exhaustive]
2300#[doc = "\n Thread priority values listed in increasing order of importance.\n"]
2301#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2302pub enum cef_thread_priority_t {
2303    #[doc = "\n Suitable for threads that shouldn't disrupt high priority work.\n"]
2304    TP_BACKGROUND = 0,
2305    #[doc = "\n Default priority level.\n"]
2306    TP_NORMAL = 1,
2307    #[doc = "\n Suitable for threads which generate data for the display (at ~60Hz).\n"]
2308    TP_DISPLAY = 2,
2309    #[doc = "\n Suitable for low-latency, glitch-resistant audio.\n"]
2310    TP_REALTIME_AUDIO = 3,
2311    #[doc = "\n Suitable for low-latency, glitch-resistant audio.\n"]
2312    TP_NUM_VALUES = 4,
2313}
2314#[repr(u32)]
2315#[non_exhaustive]
2316#[doc = "\n Message loop types. Indicates the set of asynchronous events that a message\n loop can process.\n"]
2317#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2318pub enum cef_message_loop_type_t {
2319    #[doc = "\n Supports tasks and timers.\n"]
2320    ML_TYPE_DEFAULT = 0,
2321    #[doc = "\n Supports tasks, timers and native UI events (e.g. Windows messages).\n"]
2322    ML_TYPE_UI = 1,
2323    #[doc = "\n Supports tasks, timers and asynchronous IO events.\n"]
2324    ML_TYPE_IO = 2,
2325    #[doc = "\n Supports tasks, timers and asynchronous IO events.\n"]
2326    ML_NUM_VALUES = 3,
2327}
2328#[repr(u32)]
2329#[non_exhaustive]
2330#[doc = "\n Windows COM initialization mode. Specifies how COM will be initialized for a\n new thread.\n"]
2331#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2332pub enum cef_com_init_mode_t {
2333    #[doc = "\n No COM initialization.\n"]
2334    COM_INIT_MODE_NONE = 0,
2335    #[doc = "\n Initialize COM using single-threaded apartments.\n"]
2336    COM_INIT_MODE_STA = 1,
2337    #[doc = "\n Initialize COM using multi-threaded apartments.\n"]
2338    COM_INIT_MODE_MTA = 2,
2339}
2340#[repr(u32)]
2341#[non_exhaustive]
2342#[doc = "\n Supported value types.\n"]
2343#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2344pub enum cef_value_type_t {
2345    VTYPE_INVALID = 0,
2346    VTYPE_NULL = 1,
2347    VTYPE_BOOL = 2,
2348    VTYPE_INT = 3,
2349    VTYPE_DOUBLE = 4,
2350    VTYPE_STRING = 5,
2351    VTYPE_BINARY = 6,
2352    VTYPE_DICTIONARY = 7,
2353    VTYPE_LIST = 8,
2354    VTYPE_NUM_VALUES = 9,
2355}
2356#[repr(u32)]
2357#[non_exhaustive]
2358#[doc = "\n Supported JavaScript dialog types.\n"]
2359#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2360pub enum cef_jsdialog_type_t {
2361    JSDIALOGTYPE_ALERT = 0,
2362    JSDIALOGTYPE_CONFIRM = 1,
2363    JSDIALOGTYPE_PROMPT = 2,
2364    JSDIALOGTYPE_NUM_VALUES = 3,
2365}
2366#[doc = "\n Screen information used when window rendering is disabled. This structure is\n passed as a parameter to CefRenderHandler::GetScreenInfo and should be\n filled in by the client.\n"]
2367#[repr(C)]
2368#[derive(Debug, Copy, Clone)]
2369pub struct _cef_screen_info_t {
2370    #[doc = "\n Size of this structure.\n"]
2371    pub size: usize,
2372    #[doc = "\n Device scale factor. Specifies the ratio between physical and logical\n pixels.\n"]
2373    pub device_scale_factor: f32,
2374    #[doc = "\n The screen depth in bits per pixel.\n"]
2375    pub depth: ::std::os::raw::c_int,
2376    #[doc = "\n The bits per color component. This assumes that the colors are balanced\n equally.\n"]
2377    pub depth_per_component: ::std::os::raw::c_int,
2378    #[doc = "\n This can be true for black and white printers.\n"]
2379    pub is_monochrome: ::std::os::raw::c_int,
2380    #[doc = " The |rect| and |available_rect| properties are used to determine the\n available surface for rendering popup views.\n"]
2381    pub rect: cef_rect_t,
2382    #[doc = " The |rect| and |available_rect| properties are used to determine the\n available surface for rendering popup views.\n"]
2383    pub available_rect: cef_rect_t,
2384}
2385#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2386const _: () = {
2387    ["Size of _cef_screen_info_t"][::std::mem::size_of::<_cef_screen_info_t>() - 56usize];
2388    ["Alignment of _cef_screen_info_t"][::std::mem::align_of::<_cef_screen_info_t>() - 8usize];
2389    ["Offset of field: _cef_screen_info_t::size"]
2390        [::std::mem::offset_of!(_cef_screen_info_t, size) - 0usize];
2391    ["Offset of field: _cef_screen_info_t::device_scale_factor"]
2392        [::std::mem::offset_of!(_cef_screen_info_t, device_scale_factor) - 8usize];
2393    ["Offset of field: _cef_screen_info_t::depth"]
2394        [::std::mem::offset_of!(_cef_screen_info_t, depth) - 12usize];
2395    ["Offset of field: _cef_screen_info_t::depth_per_component"]
2396        [::std::mem::offset_of!(_cef_screen_info_t, depth_per_component) - 16usize];
2397    ["Offset of field: _cef_screen_info_t::is_monochrome"]
2398        [::std::mem::offset_of!(_cef_screen_info_t, is_monochrome) - 20usize];
2399    ["Offset of field: _cef_screen_info_t::rect"]
2400        [::std::mem::offset_of!(_cef_screen_info_t, rect) - 24usize];
2401    ["Offset of field: _cef_screen_info_t::available_rect"]
2402        [::std::mem::offset_of!(_cef_screen_info_t, available_rect) - 40usize];
2403};
2404#[doc = "\n Screen information used when window rendering is disabled. This structure is\n passed as a parameter to CefRenderHandler::GetScreenInfo and should be\n filled in by the client.\n"]
2405pub type cef_screen_info_t = _cef_screen_info_t;
2406#[doc = "\n Linux window properties, such as X11's WM_CLASS or Wayland's app_id.\n Those are passed to CefWindowDelegate, so the client can set them\n for the CefWindow's top-level. Thus, allowing window managers to correctly\n display the application's information (e.g., icons).\n"]
2407#[repr(C)]
2408#[derive(Debug, Copy, Clone)]
2409pub struct _cef_linux_window_properties_t {
2410    #[doc = "\n Size of this structure.\n"]
2411    pub size: usize,
2412    #[doc = "\n Main window's Wayland's app_id\n"]
2413    pub wayland_app_id: cef_string_t,
2414    #[doc = "\n Main window's WM_CLASS_CLASS in X11\n"]
2415    pub wm_class_class: cef_string_t,
2416    #[doc = "\n Main window's WM_CLASS_NAME in X11\n"]
2417    pub wm_class_name: cef_string_t,
2418    #[doc = "\n Main window's WM_WINDOW_ROLE in X11\n"]
2419    pub wm_role_name: cef_string_t,
2420}
2421#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2422const _: () = {
2423    ["Size of _cef_linux_window_properties_t"]
2424        [::std::mem::size_of::<_cef_linux_window_properties_t>() - 104usize];
2425    ["Alignment of _cef_linux_window_properties_t"]
2426        [::std::mem::align_of::<_cef_linux_window_properties_t>() - 8usize];
2427    ["Offset of field: _cef_linux_window_properties_t::size"]
2428        [::std::mem::offset_of!(_cef_linux_window_properties_t, size) - 0usize];
2429    ["Offset of field: _cef_linux_window_properties_t::wayland_app_id"]
2430        [::std::mem::offset_of!(_cef_linux_window_properties_t, wayland_app_id) - 8usize];
2431    ["Offset of field: _cef_linux_window_properties_t::wm_class_class"]
2432        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_class_class) - 32usize];
2433    ["Offset of field: _cef_linux_window_properties_t::wm_class_name"]
2434        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_class_name) - 56usize];
2435    ["Offset of field: _cef_linux_window_properties_t::wm_role_name"]
2436        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_role_name) - 80usize];
2437};
2438#[doc = "\n Linux window properties, such as X11's WM_CLASS or Wayland's app_id.\n Those are passed to CefWindowDelegate, so the client can set them\n for the CefWindow's top-level. Thus, allowing window managers to correctly\n display the application's information (e.g., icons).\n"]
2439pub type cef_linux_window_properties_t = _cef_linux_window_properties_t;
2440impl cef_menu_id_t {
2441    pub const MENU_ID_SPELLCHECK_SUGGESTION_LAST: cef_menu_id_t =
2442        cef_menu_id_t::MENU_ID_SPELLCHECK_SUGGESTION_4;
2443}
2444#[repr(u32)]
2445#[non_exhaustive]
2446#[doc = "\n Supported menu IDs. Non-English translations can be provided for the\n IDS_MENU_* strings in CefResourceBundleHandler::GetLocalizedString().\n"]
2447#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2448pub enum cef_menu_id_t {
2449    MENU_ID_BACK = 100,
2450    MENU_ID_FORWARD = 101,
2451    MENU_ID_RELOAD = 102,
2452    MENU_ID_RELOAD_NOCACHE = 103,
2453    MENU_ID_STOPLOAD = 104,
2454    MENU_ID_UNDO = 110,
2455    MENU_ID_REDO = 111,
2456    MENU_ID_CUT = 112,
2457    MENU_ID_COPY = 113,
2458    MENU_ID_PASTE = 114,
2459    MENU_ID_PASTE_MATCH_STYLE = 115,
2460    MENU_ID_DELETE = 116,
2461    MENU_ID_SELECT_ALL = 117,
2462    MENU_ID_FIND = 130,
2463    MENU_ID_PRINT = 131,
2464    MENU_ID_VIEW_SOURCE = 132,
2465    MENU_ID_SPELLCHECK_SUGGESTION_0 = 200,
2466    MENU_ID_SPELLCHECK_SUGGESTION_1 = 201,
2467    MENU_ID_SPELLCHECK_SUGGESTION_2 = 202,
2468    MENU_ID_SPELLCHECK_SUGGESTION_3 = 203,
2469    MENU_ID_SPELLCHECK_SUGGESTION_4 = 204,
2470    MENU_ID_NO_SPELLING_SUGGESTIONS = 205,
2471    MENU_ID_ADD_TO_DICTIONARY = 206,
2472    MENU_ID_CUSTOM_FIRST = 220,
2473    MENU_ID_CUSTOM_LAST = 250,
2474    MENU_ID_USER_FIRST = 26500,
2475    MENU_ID_USER_LAST = 28500,
2476}
2477#[repr(u32)]
2478#[non_exhaustive]
2479#[doc = "\n Mouse button types.\n"]
2480#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2481pub enum cef_mouse_button_type_t {
2482    MBT_LEFT = 0,
2483    MBT_MIDDLE = 1,
2484    MBT_RIGHT = 2,
2485}
2486#[doc = "\n Structure representing mouse event information.\n"]
2487#[repr(C)]
2488#[derive(Debug, Copy, Clone)]
2489pub struct _cef_mouse_event_t {
2490    #[doc = "\n X coordinate relative to the left side of the view.\n"]
2491    pub x: ::std::os::raw::c_int,
2492    #[doc = "\n Y coordinate relative to the top side of the view.\n"]
2493    pub y: ::std::os::raw::c_int,
2494    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
2495    pub modifiers: u32,
2496}
2497#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2498const _: () = {
2499    ["Size of _cef_mouse_event_t"][::std::mem::size_of::<_cef_mouse_event_t>() - 12usize];
2500    ["Alignment of _cef_mouse_event_t"][::std::mem::align_of::<_cef_mouse_event_t>() - 4usize];
2501    ["Offset of field: _cef_mouse_event_t::x"]
2502        [::std::mem::offset_of!(_cef_mouse_event_t, x) - 0usize];
2503    ["Offset of field: _cef_mouse_event_t::y"]
2504        [::std::mem::offset_of!(_cef_mouse_event_t, y) - 4usize];
2505    ["Offset of field: _cef_mouse_event_t::modifiers"]
2506        [::std::mem::offset_of!(_cef_mouse_event_t, modifiers) - 8usize];
2507};
2508#[doc = "\n Structure representing mouse event information.\n"]
2509pub type cef_mouse_event_t = _cef_mouse_event_t;
2510#[repr(u32)]
2511#[non_exhaustive]
2512#[doc = "\n Touch points states types.\n"]
2513#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2514pub enum cef_touch_event_type_t {
2515    CEF_TET_RELEASED = 0,
2516    CEF_TET_PRESSED = 1,
2517    CEF_TET_MOVED = 2,
2518    CEF_TET_CANCELLED = 3,
2519}
2520#[repr(u32)]
2521#[non_exhaustive]
2522#[doc = "\n The device type that caused the event.\n"]
2523#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2524pub enum cef_pointer_type_t {
2525    CEF_POINTER_TYPE_TOUCH = 0,
2526    CEF_POINTER_TYPE_MOUSE = 1,
2527    CEF_POINTER_TYPE_PEN = 2,
2528    CEF_POINTER_TYPE_ERASER = 3,
2529    CEF_POINTER_TYPE_UNKNOWN = 4,
2530}
2531#[doc = "\n Structure representing touch event information.\n"]
2532#[repr(C)]
2533#[derive(Debug, Copy, Clone)]
2534pub struct _cef_touch_event_t {
2535    #[doc = "\n Id of a touch point. Must be unique per touch, can be any number except\n -1. Note that a maximum of 16 concurrent touches will be tracked; touches\n beyond that will be ignored.\n"]
2536    pub id: ::std::os::raw::c_int,
2537    #[doc = "\n X coordinate relative to the left side of the view.\n"]
2538    pub x: f32,
2539    #[doc = "\n Y coordinate relative to the top side of the view.\n"]
2540    pub y: f32,
2541    #[doc = "\n X radius in pixels. Set to 0 if not applicable.\n"]
2542    pub radius_x: f32,
2543    #[doc = "\n Y radius in pixels. Set to 0 if not applicable.\n"]
2544    pub radius_y: f32,
2545    #[doc = "\n Rotation angle in radians. Set to 0 if not applicable.\n"]
2546    pub rotation_angle: f32,
2547    #[doc = "\n The normalized pressure of the pointer input in the range of [0,1].\n Set to 0 if not applicable.\n"]
2548    pub pressure: f32,
2549    #[doc = "\n The state of the touch point. Touches begin with one CEF_TET_PRESSED event\n followed by zero or more CEF_TET_MOVED events and finally one\n CEF_TET_RELEASED or CEF_TET_CANCELLED event. Events not respecting this\n order will be ignored.\n"]
2550    pub type_: cef_touch_event_type_t,
2551    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
2552    pub modifiers: u32,
2553    #[doc = "\n The device type that caused the event.\n"]
2554    pub pointer_type: cef_pointer_type_t,
2555}
2556#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2557const _: () = {
2558    ["Size of _cef_touch_event_t"][::std::mem::size_of::<_cef_touch_event_t>() - 40usize];
2559    ["Alignment of _cef_touch_event_t"][::std::mem::align_of::<_cef_touch_event_t>() - 4usize];
2560    ["Offset of field: _cef_touch_event_t::id"]
2561        [::std::mem::offset_of!(_cef_touch_event_t, id) - 0usize];
2562    ["Offset of field: _cef_touch_event_t::x"]
2563        [::std::mem::offset_of!(_cef_touch_event_t, x) - 4usize];
2564    ["Offset of field: _cef_touch_event_t::y"]
2565        [::std::mem::offset_of!(_cef_touch_event_t, y) - 8usize];
2566    ["Offset of field: _cef_touch_event_t::radius_x"]
2567        [::std::mem::offset_of!(_cef_touch_event_t, radius_x) - 12usize];
2568    ["Offset of field: _cef_touch_event_t::radius_y"]
2569        [::std::mem::offset_of!(_cef_touch_event_t, radius_y) - 16usize];
2570    ["Offset of field: _cef_touch_event_t::rotation_angle"]
2571        [::std::mem::offset_of!(_cef_touch_event_t, rotation_angle) - 20usize];
2572    ["Offset of field: _cef_touch_event_t::pressure"]
2573        [::std::mem::offset_of!(_cef_touch_event_t, pressure) - 24usize];
2574    ["Offset of field: _cef_touch_event_t::type_"]
2575        [::std::mem::offset_of!(_cef_touch_event_t, type_) - 28usize];
2576    ["Offset of field: _cef_touch_event_t::modifiers"]
2577        [::std::mem::offset_of!(_cef_touch_event_t, modifiers) - 32usize];
2578    ["Offset of field: _cef_touch_event_t::pointer_type"]
2579        [::std::mem::offset_of!(_cef_touch_event_t, pointer_type) - 36usize];
2580};
2581#[doc = "\n Structure representing touch event information.\n"]
2582pub type cef_touch_event_t = _cef_touch_event_t;
2583#[repr(u32)]
2584#[non_exhaustive]
2585#[doc = "\n Paint element types.\n"]
2586#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2587pub enum cef_paint_element_type_t {
2588    PET_VIEW = 0,
2589    PET_POPUP = 1,
2590}
2591#[repr(u32)]
2592#[non_exhaustive]
2593#[doc = "\n Supported event bit flags.\n"]
2594#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2595pub enum cef_event_flags_t {
2596    EVENTFLAG_NONE = 0,
2597    EVENTFLAG_CAPS_LOCK_ON = 1,
2598    EVENTFLAG_SHIFT_DOWN = 2,
2599    EVENTFLAG_CONTROL_DOWN = 4,
2600    EVENTFLAG_ALT_DOWN = 8,
2601    EVENTFLAG_LEFT_MOUSE_BUTTON = 16,
2602    EVENTFLAG_MIDDLE_MOUSE_BUTTON = 32,
2603    EVENTFLAG_RIGHT_MOUSE_BUTTON = 64,
2604    #[doc = " Mac OS-X command key."]
2605    EVENTFLAG_COMMAND_DOWN = 128,
2606    #[doc = " Mac OS-X command key."]
2607    EVENTFLAG_NUM_LOCK_ON = 256,
2608    #[doc = " Mac OS-X command key."]
2609    EVENTFLAG_IS_KEY_PAD = 512,
2610    #[doc = " Mac OS-X command key."]
2611    EVENTFLAG_IS_LEFT = 1024,
2612    #[doc = " Mac OS-X command key."]
2613    EVENTFLAG_IS_RIGHT = 2048,
2614    #[doc = " Mac OS-X command key."]
2615    EVENTFLAG_ALTGR_DOWN = 4096,
2616    #[doc = " Mac OS-X command key."]
2617    EVENTFLAG_IS_REPEAT = 8192,
2618    #[doc = " Mac OS-X command key."]
2619    EVENTFLAG_PRECISION_SCROLLING_DELTA = 16384,
2620    #[doc = " Mac OS-X command key."]
2621    EVENTFLAG_SCROLL_BY_PAGE = 32768,
2622}
2623#[repr(u32)]
2624#[non_exhaustive]
2625#[doc = "\n Supported menu item types.\n"]
2626#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2627pub enum cef_menu_item_type_t {
2628    MENUITEMTYPE_NONE = 0,
2629    MENUITEMTYPE_COMMAND = 1,
2630    MENUITEMTYPE_CHECK = 2,
2631    MENUITEMTYPE_RADIO = 3,
2632    MENUITEMTYPE_SEPARATOR = 4,
2633    MENUITEMTYPE_SUBMENU = 5,
2634}
2635#[repr(u32)]
2636#[non_exhaustive]
2637#[doc = "\n Supported context menu type flags.\n"]
2638#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2639pub enum cef_context_menu_type_flags_t {
2640    #[doc = "\n No node is selected.\n"]
2641    CM_TYPEFLAG_NONE = 0,
2642    #[doc = "\n The top page is selected.\n"]
2643    CM_TYPEFLAG_PAGE = 1,
2644    #[doc = "\n A subframe page is selected.\n"]
2645    CM_TYPEFLAG_FRAME = 2,
2646    #[doc = "\n A link is selected.\n"]
2647    CM_TYPEFLAG_LINK = 4,
2648    #[doc = "\n A media node is selected.\n"]
2649    CM_TYPEFLAG_MEDIA = 8,
2650    #[doc = "\n There is a textual or mixed selection that is selected.\n"]
2651    CM_TYPEFLAG_SELECTION = 16,
2652    #[doc = "\n An editable element is selected.\n"]
2653    CM_TYPEFLAG_EDITABLE = 32,
2654}
2655#[repr(u32)]
2656#[non_exhaustive]
2657#[doc = "\n Supported context menu media types. These constants match their equivalents\n in Chromium's ContextMenuDataMediaType and should not be renumbered.\n"]
2658#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2659pub enum cef_context_menu_media_type_t {
2660    #[doc = "\n No special node is in context.\n"]
2661    CM_MEDIATYPE_NONE = 0,
2662    #[doc = "\n An image node is selected.\n"]
2663    CM_MEDIATYPE_IMAGE = 1,
2664    #[doc = "\n A video node is selected.\n"]
2665    CM_MEDIATYPE_VIDEO = 2,
2666    #[doc = "\n An audio node is selected.\n"]
2667    CM_MEDIATYPE_AUDIO = 3,
2668    #[doc = "\n An canvas node is selected.\n"]
2669    CM_MEDIATYPE_CANVAS = 4,
2670    #[doc = "\n A file node is selected.\n"]
2671    CM_MEDIATYPE_FILE = 5,
2672    #[doc = "\n A plugin node is selected.\n"]
2673    CM_MEDIATYPE_PLUGIN = 6,
2674    #[doc = "\n A plugin node is selected.\n"]
2675    CM_MEDIATYPE_NUM_VALUES = 7,
2676}
2677#[repr(u32)]
2678#[non_exhaustive]
2679#[doc = "\n Supported context menu media state bit flags. These constants match their\n equivalents in Chromium's ContextMenuData::MediaFlags and should not be\n renumbered.\n"]
2680#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2681pub enum cef_context_menu_media_state_flags_t {
2682    CM_MEDIAFLAG_NONE = 0,
2683    CM_MEDIAFLAG_IN_ERROR = 1,
2684    CM_MEDIAFLAG_PAUSED = 2,
2685    CM_MEDIAFLAG_MUTED = 4,
2686    CM_MEDIAFLAG_LOOP = 8,
2687    CM_MEDIAFLAG_CAN_SAVE = 16,
2688    CM_MEDIAFLAG_HAS_AUDIO = 32,
2689    CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS = 64,
2690    CM_MEDIAFLAG_CONTROLS = 128,
2691    CM_MEDIAFLAG_CAN_PRINT = 256,
2692    CM_MEDIAFLAG_CAN_ROTATE = 512,
2693    CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE = 1024,
2694    CM_MEDIAFLAG_PICTURE_IN_PICTURE = 2048,
2695    CM_MEDIAFLAG_CAN_LOOP = 4096,
2696}
2697#[repr(u32)]
2698#[non_exhaustive]
2699#[doc = "\n Supported context menu edit state bit flags. These constants match their\n equivalents in Chromium's ContextMenuDataEditFlags and should not be\n renumbered.\n"]
2700#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2701pub enum cef_context_menu_edit_state_flags_t {
2702    CM_EDITFLAG_NONE = 0,
2703    CM_EDITFLAG_CAN_UNDO = 1,
2704    CM_EDITFLAG_CAN_REDO = 2,
2705    CM_EDITFLAG_CAN_CUT = 4,
2706    CM_EDITFLAG_CAN_COPY = 8,
2707    CM_EDITFLAG_CAN_PASTE = 16,
2708    CM_EDITFLAG_CAN_DELETE = 32,
2709    CM_EDITFLAG_CAN_SELECT_ALL = 64,
2710    CM_EDITFLAG_CAN_TRANSLATE = 128,
2711    CM_EDITFLAG_CAN_EDIT_RICHLY = 256,
2712}
2713#[repr(u32)]
2714#[non_exhaustive]
2715#[doc = "\n Supported quick menu state bit flags.\n"]
2716#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2717pub enum cef_quick_menu_edit_state_flags_t {
2718    QM_EDITFLAG_NONE = 0,
2719    QM_EDITFLAG_CAN_ELLIPSIS = 1,
2720    QM_EDITFLAG_CAN_CUT = 2,
2721    QM_EDITFLAG_CAN_COPY = 4,
2722    QM_EDITFLAG_CAN_PASTE = 8,
2723}
2724#[repr(u32)]
2725#[non_exhaustive]
2726#[doc = "\n Key event types.\n"]
2727#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2728pub enum cef_key_event_type_t {
2729    #[doc = "\n Notification that a key transitioned from \"up\" to \"down\".\n"]
2730    KEYEVENT_RAWKEYDOWN = 0,
2731    #[doc = "\n Notification that a key was pressed. This does not necessarily correspond\n to a character depending on the key and language. Use KEYEVENT_CHAR for\n character input.\n"]
2732    KEYEVENT_KEYDOWN = 1,
2733    #[doc = "\n Notification that a key was released.\n"]
2734    KEYEVENT_KEYUP = 2,
2735    #[doc = "\n Notification that a character was typed. Use this for text input. Key\n down events may generate 0, 1, or more than one character event depending\n on the key, locale, and operating system.\n"]
2736    KEYEVENT_CHAR = 3,
2737}
2738#[doc = "\n Structure representing keyboard event information.\n"]
2739#[repr(C)]
2740#[derive(Debug, Copy, Clone)]
2741pub struct _cef_key_event_t {
2742    #[doc = "\n Size of this structure.\n"]
2743    pub size: usize,
2744    #[doc = "\n The type of keyboard event.\n"]
2745    pub type_: cef_key_event_type_t,
2746    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
2747    pub modifiers: u32,
2748    #[doc = "\n The Windows key code for the key event. This value is used by the DOM\n specification. Sometimes it comes directly from the event (i.e. on\n Windows) and sometimes it's determined using a mapping function. See\n WebCore/platform/chromium/KeyboardCodes.h for the list of values.\n"]
2749    pub windows_key_code: ::std::os::raw::c_int,
2750    #[doc = "\n The actual key code genenerated by the platform.\n"]
2751    pub native_key_code: ::std::os::raw::c_int,
2752    #[doc = "\n Indicates whether the event is considered a \"system key\" event (see\n http://msdn.microsoft.com/en-us/library/ms646286(VS.85).aspx for details).\n This value will always be false on non-Windows platforms.\n"]
2753    pub is_system_key: ::std::os::raw::c_int,
2754    #[doc = "\n The character generated by the keystroke.\n"]
2755    pub character: char16_t,
2756    #[doc = "\n Same as |character| but unmodified by any concurrently-held modifiers\n (except shift). This is useful for working out shortcut keys.\n"]
2757    pub unmodified_character: char16_t,
2758    #[doc = "\n True if the focus is currently on an editable field on the page. This is\n useful for determining if standard key events should be intercepted.\n"]
2759    pub focus_on_editable_field: ::std::os::raw::c_int,
2760}
2761#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2762const _: () = {
2763    ["Size of _cef_key_event_t"][::std::mem::size_of::<_cef_key_event_t>() - 40usize];
2764    ["Alignment of _cef_key_event_t"][::std::mem::align_of::<_cef_key_event_t>() - 8usize];
2765    ["Offset of field: _cef_key_event_t::size"]
2766        [::std::mem::offset_of!(_cef_key_event_t, size) - 0usize];
2767    ["Offset of field: _cef_key_event_t::type_"]
2768        [::std::mem::offset_of!(_cef_key_event_t, type_) - 8usize];
2769    ["Offset of field: _cef_key_event_t::modifiers"]
2770        [::std::mem::offset_of!(_cef_key_event_t, modifiers) - 12usize];
2771    ["Offset of field: _cef_key_event_t::windows_key_code"]
2772        [::std::mem::offset_of!(_cef_key_event_t, windows_key_code) - 16usize];
2773    ["Offset of field: _cef_key_event_t::native_key_code"]
2774        [::std::mem::offset_of!(_cef_key_event_t, native_key_code) - 20usize];
2775    ["Offset of field: _cef_key_event_t::is_system_key"]
2776        [::std::mem::offset_of!(_cef_key_event_t, is_system_key) - 24usize];
2777    ["Offset of field: _cef_key_event_t::character"]
2778        [::std::mem::offset_of!(_cef_key_event_t, character) - 28usize];
2779    ["Offset of field: _cef_key_event_t::unmodified_character"]
2780        [::std::mem::offset_of!(_cef_key_event_t, unmodified_character) - 30usize];
2781    ["Offset of field: _cef_key_event_t::focus_on_editable_field"]
2782        [::std::mem::offset_of!(_cef_key_event_t, focus_on_editable_field) - 32usize];
2783};
2784#[doc = "\n Structure representing keyboard event information.\n"]
2785pub type cef_key_event_t = _cef_key_event_t;
2786#[repr(u32)]
2787#[non_exhaustive]
2788#[doc = "\n Focus sources.\n"]
2789#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2790pub enum cef_focus_source_t {
2791    #[doc = "\n The source is explicit navigation via the API (LoadURL(), etc).\n"]
2792    FOCUS_SOURCE_NAVIGATION = 0,
2793    #[doc = "\n The source is a system-generated focus event.\n"]
2794    FOCUS_SOURCE_SYSTEM = 1,
2795    #[doc = "\n The source is a system-generated focus event.\n"]
2796    FOCUS_SOURCE_NUM_VALUES = 2,
2797}
2798#[repr(u32)]
2799#[non_exhaustive]
2800#[doc = "\n Navigation types.\n"]
2801#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2802pub enum cef_navigation_type_t {
2803    NAVIGATION_LINK_CLICKED = 0,
2804    NAVIGATION_FORM_SUBMITTED = 1,
2805    NAVIGATION_BACK_FORWARD = 2,
2806    NAVIGATION_RELOAD = 3,
2807    NAVIGATION_FORM_RESUBMITTED = 4,
2808    NAVIGATION_OTHER = 5,
2809    NAVIGATION_NUM_VALUES = 6,
2810}
2811#[repr(u32)]
2812#[non_exhaustive]
2813#[doc = "\n Supported XML encoding types. The parser supports ASCII, ISO-8859-1, and\n UTF16 (LE and BE) by default. All other types must be translated to UTF8\n before being passed to the parser. If a BOM is detected and the correct\n decoder is available then that decoder will be used automatically.\n"]
2814#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2815pub enum cef_xml_encoding_type_t {
2816    XML_ENCODING_NONE = 0,
2817    XML_ENCODING_UTF8 = 1,
2818    XML_ENCODING_UTF16LE = 2,
2819    XML_ENCODING_UTF16BE = 3,
2820    XML_ENCODING_ASCII = 4,
2821    XML_ENCODING_NUM_VALUES = 5,
2822}
2823#[repr(u32)]
2824#[non_exhaustive]
2825#[doc = "\n XML node types.\n"]
2826#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2827pub enum cef_xml_node_type_t {
2828    XML_NODE_UNSUPPORTED = 0,
2829    XML_NODE_PROCESSING_INSTRUCTION = 1,
2830    XML_NODE_DOCUMENT_TYPE = 2,
2831    XML_NODE_ELEMENT_START = 3,
2832    XML_NODE_ELEMENT_END = 4,
2833    XML_NODE_ATTRIBUTE = 5,
2834    XML_NODE_TEXT = 6,
2835    XML_NODE_CDATA = 7,
2836    XML_NODE_ENTITY_REFERENCE = 8,
2837    XML_NODE_WHITESPACE = 9,
2838    XML_NODE_COMMENT = 10,
2839    XML_NODE_NUM_VALUES = 11,
2840}
2841#[doc = "\n Popup window features.\n"]
2842#[repr(C)]
2843#[derive(Debug, Copy, Clone)]
2844pub struct _cef_popup_features_t {
2845    #[doc = "\n Size of this structure.\n"]
2846    pub size: usize,
2847    pub x: ::std::os::raw::c_int,
2848    pub xSet: ::std::os::raw::c_int,
2849    pub y: ::std::os::raw::c_int,
2850    pub ySet: ::std::os::raw::c_int,
2851    pub width: ::std::os::raw::c_int,
2852    pub widthSet: ::std::os::raw::c_int,
2853    pub height: ::std::os::raw::c_int,
2854    pub heightSet: ::std::os::raw::c_int,
2855    #[doc = "\n True (1) if browser interface elements should be hidden.\n"]
2856    pub isPopup: ::std::os::raw::c_int,
2857}
2858#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2859const _: () = {
2860    ["Size of _cef_popup_features_t"][::std::mem::size_of::<_cef_popup_features_t>() - 48usize];
2861    ["Alignment of _cef_popup_features_t"]
2862        [::std::mem::align_of::<_cef_popup_features_t>() - 8usize];
2863    ["Offset of field: _cef_popup_features_t::size"]
2864        [::std::mem::offset_of!(_cef_popup_features_t, size) - 0usize];
2865    ["Offset of field: _cef_popup_features_t::x"]
2866        [::std::mem::offset_of!(_cef_popup_features_t, x) - 8usize];
2867    ["Offset of field: _cef_popup_features_t::xSet"]
2868        [::std::mem::offset_of!(_cef_popup_features_t, xSet) - 12usize];
2869    ["Offset of field: _cef_popup_features_t::y"]
2870        [::std::mem::offset_of!(_cef_popup_features_t, y) - 16usize];
2871    ["Offset of field: _cef_popup_features_t::ySet"]
2872        [::std::mem::offset_of!(_cef_popup_features_t, ySet) - 20usize];
2873    ["Offset of field: _cef_popup_features_t::width"]
2874        [::std::mem::offset_of!(_cef_popup_features_t, width) - 24usize];
2875    ["Offset of field: _cef_popup_features_t::widthSet"]
2876        [::std::mem::offset_of!(_cef_popup_features_t, widthSet) - 28usize];
2877    ["Offset of field: _cef_popup_features_t::height"]
2878        [::std::mem::offset_of!(_cef_popup_features_t, height) - 32usize];
2879    ["Offset of field: _cef_popup_features_t::heightSet"]
2880        [::std::mem::offset_of!(_cef_popup_features_t, heightSet) - 36usize];
2881    ["Offset of field: _cef_popup_features_t::isPopup"]
2882        [::std::mem::offset_of!(_cef_popup_features_t, isPopup) - 40usize];
2883};
2884#[doc = "\n Popup window features.\n"]
2885pub type cef_popup_features_t = _cef_popup_features_t;
2886#[repr(u32)]
2887#[non_exhaustive]
2888#[doc = "\n DOM document types.\n"]
2889#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2890pub enum cef_dom_document_type_t {
2891    DOM_DOCUMENT_TYPE_UNKNOWN = 0,
2892    DOM_DOCUMENT_TYPE_HTML = 1,
2893    DOM_DOCUMENT_TYPE_XHTML = 2,
2894    DOM_DOCUMENT_TYPE_PLUGIN = 3,
2895    DOM_DOCUMENT_TYPE_NUM_VALUES = 4,
2896}
2897#[repr(u32)]
2898#[non_exhaustive]
2899#[doc = "\n DOM event category flags.\n"]
2900#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2901pub enum cef_dom_event_category_t {
2902    DOM_EVENT_CATEGORY_UNKNOWN = 0,
2903    DOM_EVENT_CATEGORY_UI = 1,
2904    DOM_EVENT_CATEGORY_MOUSE = 2,
2905    DOM_EVENT_CATEGORY_MUTATION = 4,
2906    DOM_EVENT_CATEGORY_KEYBOARD = 8,
2907    DOM_EVENT_CATEGORY_TEXT = 16,
2908    DOM_EVENT_CATEGORY_COMPOSITION = 32,
2909    DOM_EVENT_CATEGORY_DRAG = 64,
2910    DOM_EVENT_CATEGORY_CLIPBOARD = 128,
2911    DOM_EVENT_CATEGORY_MESSAGE = 256,
2912    DOM_EVENT_CATEGORY_WHEEL = 512,
2913    DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED = 1024,
2914    DOM_EVENT_CATEGORY_OVERFLOW = 2048,
2915    DOM_EVENT_CATEGORY_PAGE_TRANSITION = 4096,
2916    DOM_EVENT_CATEGORY_POPSTATE = 8192,
2917    DOM_EVENT_CATEGORY_PROGRESS = 16384,
2918    DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS = 32768,
2919}
2920#[repr(u32)]
2921#[non_exhaustive]
2922#[doc = "\n DOM event processing phases.\n"]
2923#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2924pub enum cef_dom_event_phase_t {
2925    DOM_EVENT_PHASE_UNKNOWN = 0,
2926    DOM_EVENT_PHASE_CAPTURING = 1,
2927    DOM_EVENT_PHASE_AT_TARGET = 2,
2928    DOM_EVENT_PHASE_BUBBLING = 3,
2929    DOM_EVENT_PHASE_NUM_VALUES = 4,
2930}
2931#[repr(u32)]
2932#[non_exhaustive]
2933#[doc = "\n DOM node types.\n"]
2934#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2935pub enum cef_dom_node_type_t {
2936    DOM_NODE_TYPE_UNSUPPORTED = 0,
2937    DOM_NODE_TYPE_ELEMENT = 1,
2938    DOM_NODE_TYPE_ATTRIBUTE = 2,
2939    DOM_NODE_TYPE_TEXT = 3,
2940    DOM_NODE_TYPE_CDATA_SECTION = 4,
2941    DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS = 5,
2942    DOM_NODE_TYPE_COMMENT = 6,
2943    DOM_NODE_TYPE_DOCUMENT = 7,
2944    DOM_NODE_TYPE_DOCUMENT_TYPE = 8,
2945    DOM_NODE_TYPE_DOCUMENT_FRAGMENT = 9,
2946    DOM_NODE_TYPE_NUM_VALUES = 10,
2947}
2948#[repr(u32)]
2949#[non_exhaustive]
2950#[doc = "\n DOM form control types. Should be kept in sync with Chromium's\n blink::mojom::FormControlType type.\n"]
2951#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2952pub enum cef_dom_form_control_type_t {
2953    DOM_FORM_CONTROL_TYPE_UNSUPPORTED = 0,
2954    DOM_FORM_CONTROL_TYPE_BUTTON_BUTTON = 1,
2955    DOM_FORM_CONTROL_TYPE_BUTTON_SUBMIT = 2,
2956    DOM_FORM_CONTROL_TYPE_BUTTON_RESET = 3,
2957    DOM_FORM_CONTROL_TYPE_BUTTON_POPOVER = 4,
2958    DOM_FORM_CONTROL_TYPE_FIELDSET = 5,
2959    DOM_FORM_CONTROL_TYPE_INPUT_BUTTON = 6,
2960    DOM_FORM_CONTROL_TYPE_INPUT_CHECKBOX = 7,
2961    DOM_FORM_CONTROL_TYPE_INPUT_COLOR = 8,
2962    DOM_FORM_CONTROL_TYPE_INPUT_DATE = 9,
2963    DOM_FORM_CONTROL_TYPE_INPUT_DATETIME_LOCAL = 10,
2964    DOM_FORM_CONTROL_TYPE_INPUT_EMAIL = 11,
2965    DOM_FORM_CONTROL_TYPE_INPUT_FILE = 12,
2966    DOM_FORM_CONTROL_TYPE_INPUT_HIDDEN = 13,
2967    DOM_FORM_CONTROL_TYPE_INPUT_IMAGE = 14,
2968    DOM_FORM_CONTROL_TYPE_INPUT_MONTH = 15,
2969    DOM_FORM_CONTROL_TYPE_INPUT_NUMBER = 16,
2970    DOM_FORM_CONTROL_TYPE_INPUT_PASSWORD = 17,
2971    DOM_FORM_CONTROL_TYPE_INPUT_RADIO = 18,
2972    DOM_FORM_CONTROL_TYPE_INPUT_RANGE = 19,
2973    DOM_FORM_CONTROL_TYPE_INPUT_RESET = 20,
2974    DOM_FORM_CONTROL_TYPE_INPUT_SEARCH = 21,
2975    DOM_FORM_CONTROL_TYPE_INPUT_SUBMIT = 22,
2976    DOM_FORM_CONTROL_TYPE_INPUT_TELEPHONE = 23,
2977    DOM_FORM_CONTROL_TYPE_INPUT_TEXT = 24,
2978    DOM_FORM_CONTROL_TYPE_INPUT_TIME = 25,
2979    DOM_FORM_CONTROL_TYPE_INPUT_URL = 26,
2980    DOM_FORM_CONTROL_TYPE_INPUT_WEEK = 27,
2981    DOM_FORM_CONTROL_TYPE_OUTPUT = 28,
2982    DOM_FORM_CONTROL_TYPE_SELECT_ONE = 29,
2983    DOM_FORM_CONTROL_TYPE_SELECT_MULTIPLE = 30,
2984    DOM_FORM_CONTROL_TYPE_TEXT_AREA = 31,
2985    DOM_FORM_CONTROL_TYPE_NUM_VALUES = 32,
2986}
2987#[repr(u32)]
2988#[non_exhaustive]
2989#[doc = "\n Supported file dialog modes.\n"]
2990#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2991pub enum cef_file_dialog_mode_t {
2992    #[doc = "\n Requires that the file exists before allowing the user to pick it.\n"]
2993    FILE_DIALOG_OPEN = 0,
2994    #[doc = "\n Like Open, but allows picking multiple files to open.\n"]
2995    FILE_DIALOG_OPEN_MULTIPLE = 1,
2996    #[doc = "\n Like Open, but selects a folder to open.\n"]
2997    FILE_DIALOG_OPEN_FOLDER = 2,
2998    #[doc = "\n Allows picking a nonexistent file, and prompts to overwrite if the file\n already exists.\n"]
2999    FILE_DIALOG_SAVE = 3,
3000    #[doc = "\n Allows picking a nonexistent file, and prompts to overwrite if the file\n already exists.\n"]
3001    FILE_DIALOG_NUM_VALUES = 4,
3002}
3003#[repr(u32)]
3004#[non_exhaustive]
3005#[doc = "\n Print job color mode values.\n"]
3006#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3007pub enum cef_color_model_t {
3008    COLOR_MODEL_UNKNOWN = 0,
3009    COLOR_MODEL_GRAY = 1,
3010    COLOR_MODEL_COLOR = 2,
3011    COLOR_MODEL_CMYK = 3,
3012    COLOR_MODEL_CMY = 4,
3013    COLOR_MODEL_KCMY = 5,
3014    COLOR_MODEL_CMY_K = 6,
3015    COLOR_MODEL_BLACK = 7,
3016    COLOR_MODEL_GRAYSCALE = 8,
3017    COLOR_MODEL_RGB = 9,
3018    COLOR_MODEL_RGB16 = 10,
3019    COLOR_MODEL_RGBA = 11,
3020    COLOR_MODEL_COLORMODE_COLOR = 12,
3021    COLOR_MODEL_COLORMODE_MONOCHROME = 13,
3022    COLOR_MODEL_HP_COLOR_COLOR = 14,
3023    COLOR_MODEL_HP_COLOR_BLACK = 15,
3024    COLOR_MODEL_PRINTOUTMODE_NORMAL = 16,
3025    COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY = 17,
3026    COLOR_MODEL_PROCESSCOLORMODEL_CMYK = 18,
3027    COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE = 19,
3028    COLOR_MODEL_PROCESSCOLORMODEL_RGB = 20,
3029    COLOR_MODEL_NUM_VALUES = 21,
3030}
3031#[repr(i32)]
3032#[non_exhaustive]
3033#[doc = "\n Print job duplex mode values.\n"]
3034#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3035pub enum cef_duplex_mode_t {
3036    DUPLEX_MODE_UNKNOWN = -1,
3037    DUPLEX_MODE_SIMPLEX = 0,
3038    DUPLEX_MODE_LONG_EDGE = 1,
3039    DUPLEX_MODE_SHORT_EDGE = 2,
3040    DUPLEX_MODE_NUM_VALUES = 3,
3041}
3042#[repr(u32)]
3043#[non_exhaustive]
3044#[doc = "\n Cursor type values.\n"]
3045#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3046pub enum cef_cursor_type_t {
3047    CT_POINTER = 0,
3048    CT_CROSS = 1,
3049    CT_HAND = 2,
3050    CT_IBEAM = 3,
3051    CT_WAIT = 4,
3052    CT_HELP = 5,
3053    CT_EASTRESIZE = 6,
3054    CT_NORTHRESIZE = 7,
3055    CT_NORTHEASTRESIZE = 8,
3056    CT_NORTHWESTRESIZE = 9,
3057    CT_SOUTHRESIZE = 10,
3058    CT_SOUTHEASTRESIZE = 11,
3059    CT_SOUTHWESTRESIZE = 12,
3060    CT_WESTRESIZE = 13,
3061    CT_NORTHSOUTHRESIZE = 14,
3062    CT_EASTWESTRESIZE = 15,
3063    CT_NORTHEASTSOUTHWESTRESIZE = 16,
3064    CT_NORTHWESTSOUTHEASTRESIZE = 17,
3065    CT_COLUMNRESIZE = 18,
3066    CT_ROWRESIZE = 19,
3067    CT_MIDDLEPANNING = 20,
3068    CT_EASTPANNING = 21,
3069    CT_NORTHPANNING = 22,
3070    CT_NORTHEASTPANNING = 23,
3071    CT_NORTHWESTPANNING = 24,
3072    CT_SOUTHPANNING = 25,
3073    CT_SOUTHEASTPANNING = 26,
3074    CT_SOUTHWESTPANNING = 27,
3075    CT_WESTPANNING = 28,
3076    CT_MOVE = 29,
3077    CT_VERTICALTEXT = 30,
3078    CT_CELL = 31,
3079    CT_CONTEXTMENU = 32,
3080    CT_ALIAS = 33,
3081    CT_PROGRESS = 34,
3082    CT_NODROP = 35,
3083    CT_COPY = 36,
3084    CT_NONE = 37,
3085    CT_NOTALLOWED = 38,
3086    CT_ZOOMIN = 39,
3087    CT_ZOOMOUT = 40,
3088    CT_GRAB = 41,
3089    CT_GRABBING = 42,
3090    CT_MIDDLE_PANNING_VERTICAL = 43,
3091    CT_MIDDLE_PANNING_HORIZONTAL = 44,
3092    CT_CUSTOM = 45,
3093    CT_DND_NONE = 46,
3094    CT_DND_MOVE = 47,
3095    CT_DND_COPY = 48,
3096    CT_DND_LINK = 49,
3097    CT_NUM_VALUES = 50,
3098}
3099#[doc = "\n Structure representing cursor information. |buffer| will be\n |size.width|*|size.height|*4 bytes in size and represents a BGRA image with\n an upper-left origin.\n"]
3100#[repr(C)]
3101#[derive(Debug, Copy, Clone)]
3102pub struct _cef_cursor_info_t {
3103    pub hotspot: cef_point_t,
3104    pub image_scale_factor: f32,
3105    pub buffer: *mut ::std::os::raw::c_void,
3106    pub size: cef_size_t,
3107}
3108#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3109const _: () = {
3110    ["Size of _cef_cursor_info_t"][::std::mem::size_of::<_cef_cursor_info_t>() - 32usize];
3111    ["Alignment of _cef_cursor_info_t"][::std::mem::align_of::<_cef_cursor_info_t>() - 8usize];
3112    ["Offset of field: _cef_cursor_info_t::hotspot"]
3113        [::std::mem::offset_of!(_cef_cursor_info_t, hotspot) - 0usize];
3114    ["Offset of field: _cef_cursor_info_t::image_scale_factor"]
3115        [::std::mem::offset_of!(_cef_cursor_info_t, image_scale_factor) - 8usize];
3116    ["Offset of field: _cef_cursor_info_t::buffer"]
3117        [::std::mem::offset_of!(_cef_cursor_info_t, buffer) - 16usize];
3118    ["Offset of field: _cef_cursor_info_t::size"]
3119        [::std::mem::offset_of!(_cef_cursor_info_t, size) - 24usize];
3120};
3121#[doc = "\n Structure representing cursor information. |buffer| will be\n |size.width|*|size.height|*4 bytes in size and represents a BGRA image with\n an upper-left origin.\n"]
3122pub type cef_cursor_info_t = _cef_cursor_info_t;
3123#[repr(u32)]
3124#[non_exhaustive]
3125#[doc = "\n URI unescape rules passed to CefURIDecode().\n"]
3126#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3127pub enum cef_uri_unescape_rule_t {
3128    #[doc = "\n Don't unescape anything at all.\n"]
3129    UU_NONE = 0,
3130    #[doc = "\n Don't unescape anything special, but all normal unescaping will happen.\n This is a placeholder and can't be combined with other flags (since it's\n just the absence of them). All other unescape rules imply \"normal\" in\n addition to their special meaning. Things like escaped letters, digits,\n and most symbols will get unescaped with this mode.\n"]
3131    UU_NORMAL = 1,
3132    #[doc = "\n Convert %20 to spaces. In some places where we're showing URLs, we may\n want this. In places where the URL may be copied and pasted out, then\n you wouldn't want this since it might not be interpreted in one piece\n by other applications.\n"]
3133    UU_SPACES = 2,
3134    #[doc = "\n Unescapes '/' and '\\\\'. If these characters were unescaped, the resulting\n URL won't be the same as the source one. Moreover, they are dangerous to\n unescape in strings that will be used as file paths or names. This value\n should only be used when slashes don't have special meaning, like data\n URLs.\n"]
3135    UU_PATH_SEPARATORS = 4,
3136    #[doc = "\n Unescapes various characters that will change the meaning of URLs,\n including '%', '+', '&', '#'. Does not unescape path separators.\n If these characters were unescaped, the resulting URL won't be the same\n as the source one. This flag is used when generating final output like\n filenames for URLs where we won't be interpreting as a URL and want to do\n as much unescaping as possible.\n"]
3137    UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 8,
3138    #[doc = "\n URL queries use \"+\" for space. This flag controls that replacement.\n"]
3139    UU_REPLACE_PLUS_WITH_SPACE = 16,
3140}
3141#[repr(u32)]
3142#[non_exhaustive]
3143#[doc = "\n Options that can be passed to CefParseJSON.\n"]
3144#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3145pub enum cef_json_parser_options_t {
3146    #[doc = "\n Parses the input strictly according to RFC 4627. See comments in\n Chromium's base/json/json_reader.h file for known limitations/\n deviations from the RFC.\n"]
3147    JSON_PARSER_RFC = 0,
3148    #[doc = "\n Allows commas to exist after the last element in structures.\n"]
3149    JSON_PARSER_ALLOW_TRAILING_COMMAS = 1,
3150}
3151#[repr(u32)]
3152#[non_exhaustive]
3153#[doc = "\n Options that can be passed to CefWriteJSON.\n"]
3154#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3155pub enum cef_json_writer_options_t {
3156    #[doc = "\n Default behavior.\n"]
3157    JSON_WRITER_DEFAULT = 0,
3158    #[doc = "\n This option instructs the writer that if a Binary value is encountered,\n the value (and key if within a dictionary) will be omitted from the\n output, and success will be returned. Otherwise, if a binary value is\n encountered, failure will be returned.\n"]
3159    JSON_WRITER_OMIT_BINARY_VALUES = 1,
3160    #[doc = "\n This option instructs the writer to write doubles that have no fractional\n part as a normal integer (i.e., without using exponential notation\n or appending a '.0') as long as the value is within the range of a\n 64-bit int.\n"]
3161    JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 2,
3162    #[doc = "\n Return a slightly nicer formatted json string (pads with whitespace to\n help with readability).\n"]
3163    JSON_WRITER_PRETTY_PRINT = 4,
3164}
3165#[repr(u32)]
3166#[non_exhaustive]
3167#[doc = "\n Margin type for PDF printing.\n"]
3168#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3169pub enum cef_pdf_print_margin_type_t {
3170    #[doc = "\n Default margins of 1cm (~0.4 inches).\n"]
3171    PDF_PRINT_MARGIN_DEFAULT = 0,
3172    #[doc = "\n No margins.\n"]
3173    PDF_PRINT_MARGIN_NONE = 1,
3174    #[doc = "\n Custom margins using the |margin_*| values from cef_pdf_print_settings_t.\n"]
3175    PDF_PRINT_MARGIN_CUSTOM = 2,
3176}
3177#[doc = "\n Structure representing PDF print settings. These values match the parameters\n supported by the DevTools Page.printToPDF function. See\n https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF\n"]
3178#[repr(C)]
3179#[derive(Debug, Copy, Clone)]
3180pub struct _cef_pdf_print_settings_t {
3181    #[doc = "\n Size of this structure.\n"]
3182    pub size: usize,
3183    #[doc = "\n Set to true (1) for landscape mode or false (0) for portrait mode.\n"]
3184    pub landscape: ::std::os::raw::c_int,
3185    #[doc = "\n Set to true (1) to print background graphics.\n"]
3186    pub print_background: ::std::os::raw::c_int,
3187    #[doc = "\n The percentage to scale the PDF by before printing (e.g. .5 is 50%).\n If this value is less than or equal to zero the default value of 1.0\n will be used.\n"]
3188    pub scale: f64,
3189    #[doc = "\n Output paper size in inches. If either of these values is less than or\n equal to zero then the default paper size (letter, 8.5 x 11 inches) will\n be used.\n"]
3190    pub paper_width: f64,
3191    pub paper_height: f64,
3192    #[doc = "\n Set to true (1) to prefer page size as defined by css. Defaults to false\n (0), in which case the content will be scaled to fit the paper size.\n"]
3193    pub prefer_css_page_size: ::std::os::raw::c_int,
3194    #[doc = "\n Margin type.\n"]
3195    pub margin_type: cef_pdf_print_margin_type_t,
3196    #[doc = "\n Margins in inches. Only used if |margin_type| is set to\n PDF_PRINT_MARGIN_CUSTOM.\n"]
3197    pub margin_top: f64,
3198    pub margin_right: f64,
3199    pub margin_bottom: f64,
3200    pub margin_left: f64,
3201    #[doc = "\n Paper ranges to print, one based, e.g., '1-5, 8, 11-13'. Pages are printed\n in the document order, not in the order specified, and no more than once.\n Defaults to empty string, which implies the entire document is printed.\n The page numbers are quietly capped to actual page count of the document,\n and ranges beyond the end of the document are ignored. If this results in\n no pages to print, an error is reported. It is an error to specify a range\n with start greater than end.\n"]
3202    pub page_ranges: cef_string_t,
3203    #[doc = "\n Set to true (1) to display the header and/or footer. Modify\n |header_template| and/or |footer_template| to customize the display.\n"]
3204    pub display_header_footer: ::std::os::raw::c_int,
3205    #[doc = "\n HTML template for the print header. Only displayed if\n |display_header_footer| is true (1). Should be valid HTML markup with\n the following classes used to inject printing values into them:\n\n - date: formatted print date\n - title: document title\n - url: document location\n - pageNumber: current page number\n - totalPages: total pages in the document\n\n For example, \"<span class=title></span>\" would generate a span containing\n the title.\n"]
3206    pub header_template: cef_string_t,
3207    #[doc = "\n HTML template for the print footer. Only displayed if\n |display_header_footer| is true (1). Uses the same format as\n |header_template|.\n"]
3208    pub footer_template: cef_string_t,
3209    #[doc = "\n Set to true (1) to generate tagged (accessible) PDF.\n"]
3210    pub generate_tagged_pdf: ::std::os::raw::c_int,
3211    #[doc = "\n Set to true (1) to generate a document outline.\n"]
3212    pub generate_document_outline: ::std::os::raw::c_int,
3213}
3214#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3215const _: () = {
3216    ["Size of _cef_pdf_print_settings_t"]
3217        [::std::mem::size_of::<_cef_pdf_print_settings_t>() - 168usize];
3218    ["Alignment of _cef_pdf_print_settings_t"]
3219        [::std::mem::align_of::<_cef_pdf_print_settings_t>() - 8usize];
3220    ["Offset of field: _cef_pdf_print_settings_t::size"]
3221        [::std::mem::offset_of!(_cef_pdf_print_settings_t, size) - 0usize];
3222    ["Offset of field: _cef_pdf_print_settings_t::landscape"]
3223        [::std::mem::offset_of!(_cef_pdf_print_settings_t, landscape) - 8usize];
3224    ["Offset of field: _cef_pdf_print_settings_t::print_background"]
3225        [::std::mem::offset_of!(_cef_pdf_print_settings_t, print_background) - 12usize];
3226    ["Offset of field: _cef_pdf_print_settings_t::scale"]
3227        [::std::mem::offset_of!(_cef_pdf_print_settings_t, scale) - 16usize];
3228    ["Offset of field: _cef_pdf_print_settings_t::paper_width"]
3229        [::std::mem::offset_of!(_cef_pdf_print_settings_t, paper_width) - 24usize];
3230    ["Offset of field: _cef_pdf_print_settings_t::paper_height"]
3231        [::std::mem::offset_of!(_cef_pdf_print_settings_t, paper_height) - 32usize];
3232    ["Offset of field: _cef_pdf_print_settings_t::prefer_css_page_size"]
3233        [::std::mem::offset_of!(_cef_pdf_print_settings_t, prefer_css_page_size) - 40usize];
3234    ["Offset of field: _cef_pdf_print_settings_t::margin_type"]
3235        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_type) - 44usize];
3236    ["Offset of field: _cef_pdf_print_settings_t::margin_top"]
3237        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_top) - 48usize];
3238    ["Offset of field: _cef_pdf_print_settings_t::margin_right"]
3239        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_right) - 56usize];
3240    ["Offset of field: _cef_pdf_print_settings_t::margin_bottom"]
3241        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_bottom) - 64usize];
3242    ["Offset of field: _cef_pdf_print_settings_t::margin_left"]
3243        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_left) - 72usize];
3244    ["Offset of field: _cef_pdf_print_settings_t::page_ranges"]
3245        [::std::mem::offset_of!(_cef_pdf_print_settings_t, page_ranges) - 80usize];
3246    ["Offset of field: _cef_pdf_print_settings_t::display_header_footer"]
3247        [::std::mem::offset_of!(_cef_pdf_print_settings_t, display_header_footer) - 104usize];
3248    ["Offset of field: _cef_pdf_print_settings_t::header_template"]
3249        [::std::mem::offset_of!(_cef_pdf_print_settings_t, header_template) - 112usize];
3250    ["Offset of field: _cef_pdf_print_settings_t::footer_template"]
3251        [::std::mem::offset_of!(_cef_pdf_print_settings_t, footer_template) - 136usize];
3252    ["Offset of field: _cef_pdf_print_settings_t::generate_tagged_pdf"]
3253        [::std::mem::offset_of!(_cef_pdf_print_settings_t, generate_tagged_pdf) - 160usize];
3254    ["Offset of field: _cef_pdf_print_settings_t::generate_document_outline"]
3255        [::std::mem::offset_of!(_cef_pdf_print_settings_t, generate_document_outline) - 164usize];
3256};
3257#[doc = "\n Structure representing PDF print settings. These values match the parameters\n supported by the DevTools Page.printToPDF function. See\n https://chromedevtools.github.io/devtools-protocol/tot/Page/#method-printToPDF\n"]
3258pub type cef_pdf_print_settings_t = _cef_pdf_print_settings_t;
3259#[repr(u32)]
3260#[non_exhaustive]
3261#[doc = "\n Supported UI scale factors for the platform. SCALE_FACTOR_NONE is used for\n density independent resources such as string, html/js files or an image that\n can be used for any scale factors (such as wallpapers).\n"]
3262#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3263pub enum cef_scale_factor_t {
3264    SCALE_FACTOR_NONE = 0,
3265    SCALE_FACTOR_100P = 1,
3266    SCALE_FACTOR_125P = 2,
3267    SCALE_FACTOR_133P = 3,
3268    SCALE_FACTOR_140P = 4,
3269    SCALE_FACTOR_150P = 5,
3270    SCALE_FACTOR_180P = 6,
3271    SCALE_FACTOR_200P = 7,
3272    SCALE_FACTOR_250P = 8,
3273    SCALE_FACTOR_300P = 9,
3274    SCALE_FACTOR_NUM_VALUES = 10,
3275}
3276impl cef_referrer_policy_t {
3277    pub const REFERRER_POLICY_DEFAULT: cef_referrer_policy_t =
3278        cef_referrer_policy_t::REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE;
3279}
3280#[repr(u32)]
3281#[non_exhaustive]
3282#[doc = "\n Policy for how the Referrer HTTP header value will be sent during\n navigation. If the `--no-referrers` command-line flag is specified then the\n policy value will be ignored and the Referrer value will never be sent. Must\n be kept synchronized with net::URLRequest::ReferrerPolicy from Chromium.\n"]
3283#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3284pub enum cef_referrer_policy_t {
3285    #[doc = "\n Clear the referrer header if the header value is HTTPS but the request\n destination is HTTP. This is the default behavior.\n"]
3286    REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE = 0,
3287    #[doc = "\n A slight variant on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE:\n If the request destination is HTTP, an HTTPS referrer will be cleared. If\n the request's destination is cross-origin with the referrer (but does not\n downgrade), the referrer's granularity will be stripped down to an origin\n rather than a full URL. Same-origin requests will send the full referrer.\n"]
3288    REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN = 1,
3289    #[doc = "\n Strip the referrer down to an origin when the origin of the referrer is\n different from the destination's origin.\n"]
3290    REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN = 2,
3291    #[doc = "\n Never change the referrer.\n"]
3292    REFERRER_POLICY_NEVER_CLEAR_REFERRER = 3,
3293    #[doc = "\n Strip the referrer down to the origin regardless of the redirect location.\n"]
3294    REFERRER_POLICY_ORIGIN = 4,
3295    #[doc = "\n Clear the referrer when the request's referrer is cross-origin with the\n request's destination.\n"]
3296    REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN = 5,
3297    #[doc = "\n Strip the referrer down to the origin, but clear it entirely if the\n referrer value is HTTPS and the destination is HTTP.\n"]
3298    REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE = 6,
3299    #[doc = "\n Always clear the referrer regardless of the request destination.\n"]
3300    REFERRER_POLICY_NO_REFERRER = 7,
3301    #[doc = " Always the last value in this enumeration."]
3302    REFERRER_POLICY_NUM_VALUES = 8,
3303}
3304#[repr(u32)]
3305#[non_exhaustive]
3306#[doc = "\n Return values for CefResponseFilter::Filter().\n"]
3307#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3308pub enum cef_response_filter_status_t {
3309    #[doc = "\n Some or all of the pre-filter data was read successfully but more data is\n needed in order to continue filtering (filtered output is pending).\n"]
3310    RESPONSE_FILTER_NEED_MORE_DATA = 0,
3311    #[doc = "\n Some or all of the pre-filter data was read successfully and all available\n filtered output has been written.\n"]
3312    RESPONSE_FILTER_DONE = 1,
3313    #[doc = "\n An error occurred during filtering.\n"]
3314    RESPONSE_FILTER_ERROR = 2,
3315}
3316#[repr(u32)]
3317#[non_exhaustive]
3318#[doc = "\n Describes how to interpret the alpha component of a pixel.\n"]
3319#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3320pub enum cef_alpha_type_t {
3321    #[doc = "\n No transparency. The alpha component is ignored.\n"]
3322    CEF_ALPHA_TYPE_OPAQUE = 0,
3323    #[doc = "\n Transparency with pre-multiplied alpha component.\n"]
3324    CEF_ALPHA_TYPE_PREMULTIPLIED = 1,
3325    #[doc = "\n Transparency with post-multiplied alpha component.\n"]
3326    CEF_ALPHA_TYPE_POSTMULTIPLIED = 2,
3327}
3328#[repr(u32)]
3329#[non_exhaustive]
3330#[doc = "\n Text style types. Should be kepy in sync with gfx::TextStyle.\n"]
3331#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3332pub enum cef_text_style_t {
3333    CEF_TEXT_STYLE_BOLD = 0,
3334    CEF_TEXT_STYLE_ITALIC = 1,
3335    CEF_TEXT_STYLE_STRIKE = 2,
3336    CEF_TEXT_STYLE_DIAGONAL_STRIKE = 3,
3337    CEF_TEXT_STYLE_UNDERLINE = 4,
3338    CEF_TEXT_STYLE_NUM_VALUES = 5,
3339}
3340#[repr(u32)]
3341#[non_exhaustive]
3342#[doc = "\n Specifies where along the axis the CefBoxLayout child views should be laid\n out. Should be kept in sync with Chromium's views::LayoutAlignment type.\n"]
3343#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3344pub enum cef_axis_alignment_t {
3345    #[doc = " Child views will be left/top-aligned."]
3346    CEF_AXIS_ALIGNMENT_START = 0,
3347    #[doc = " Child views will be center-aligned."]
3348    CEF_AXIS_ALIGNMENT_CENTER = 1,
3349    #[doc = " Child views will be right/bottom-aligned."]
3350    CEF_AXIS_ALIGNMENT_END = 2,
3351    #[doc = " Child views will be stretched to fit."]
3352    CEF_AXIS_ALIGNMENT_STRETCH = 3,
3353    #[doc = " Child views will be stretched to fit."]
3354    CEF_AXIS_ALIGNMENT_NUM_VALUES = 4,
3355}
3356#[doc = "\n Settings used when initializing a CefBoxLayout.\n"]
3357#[repr(C)]
3358#[derive(Debug, Copy, Clone)]
3359pub struct _cef_box_layout_settings_t {
3360    #[doc = "\n Size of this structure.\n"]
3361    pub size: usize,
3362    #[doc = "\n If true (1) the layout will be horizontal, otherwise the layout will be\n vertical.\n"]
3363    pub horizontal: ::std::os::raw::c_int,
3364    #[doc = "\n Adds additional horizontal space between the child view area and the host\n view border.\n"]
3365    pub inside_border_horizontal_spacing: ::std::os::raw::c_int,
3366    #[doc = "\n Adds additional vertical space between the child view area and the host\n view border.\n"]
3367    pub inside_border_vertical_spacing: ::std::os::raw::c_int,
3368    #[doc = "\n Adds additional space around the child view area.\n"]
3369    pub inside_border_insets: cef_insets_t,
3370    #[doc = "\n Adds additional space between child views.\n"]
3371    pub between_child_spacing: ::std::os::raw::c_int,
3372    #[doc = "\n Specifies where along the main axis the child views should be laid out.\n"]
3373    pub main_axis_alignment: cef_axis_alignment_t,
3374    #[doc = "\n Specifies where along the cross axis the child views should be laid out.\n"]
3375    pub cross_axis_alignment: cef_axis_alignment_t,
3376    #[doc = "\n Minimum cross axis size.\n"]
3377    pub minimum_cross_axis_size: ::std::os::raw::c_int,
3378    #[doc = "\n Default flex for views when none is specified via CefBoxLayout methods.\n Using the preferred size as the basis, free space along the main axis is\n distributed to views in the ratio of their flex weights. Similarly, if the\n views will overflow the parent, space is subtracted in these ratios. A\n flex of 0 means this view is not resized. Flex values must not be\n negative.\n"]
3379    pub default_flex: ::std::os::raw::c_int,
3380}
3381#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3382const _: () = {
3383    ["Size of _cef_box_layout_settings_t"]
3384        [::std::mem::size_of::<_cef_box_layout_settings_t>() - 56usize];
3385    ["Alignment of _cef_box_layout_settings_t"]
3386        [::std::mem::align_of::<_cef_box_layout_settings_t>() - 8usize];
3387    ["Offset of field: _cef_box_layout_settings_t::size"]
3388        [::std::mem::offset_of!(_cef_box_layout_settings_t, size) - 0usize];
3389    ["Offset of field: _cef_box_layout_settings_t::horizontal"]
3390        [::std::mem::offset_of!(_cef_box_layout_settings_t, horizontal) - 8usize];
3391    ["Offset of field: _cef_box_layout_settings_t::inside_border_horizontal_spacing"][::std::mem::offset_of!(
3392        _cef_box_layout_settings_t,
3393        inside_border_horizontal_spacing
3394    ) - 12usize];
3395    ["Offset of field: _cef_box_layout_settings_t::inside_border_vertical_spacing"][::std::mem::offset_of!(
3396        _cef_box_layout_settings_t,
3397        inside_border_vertical_spacing
3398    ) - 16usize];
3399    ["Offset of field: _cef_box_layout_settings_t::inside_border_insets"]
3400        [::std::mem::offset_of!(_cef_box_layout_settings_t, inside_border_insets) - 20usize];
3401    ["Offset of field: _cef_box_layout_settings_t::between_child_spacing"]
3402        [::std::mem::offset_of!(_cef_box_layout_settings_t, between_child_spacing) - 36usize];
3403    ["Offset of field: _cef_box_layout_settings_t::main_axis_alignment"]
3404        [::std::mem::offset_of!(_cef_box_layout_settings_t, main_axis_alignment) - 40usize];
3405    ["Offset of field: _cef_box_layout_settings_t::cross_axis_alignment"]
3406        [::std::mem::offset_of!(_cef_box_layout_settings_t, cross_axis_alignment) - 44usize];
3407    ["Offset of field: _cef_box_layout_settings_t::minimum_cross_axis_size"]
3408        [::std::mem::offset_of!(_cef_box_layout_settings_t, minimum_cross_axis_size) - 48usize];
3409    ["Offset of field: _cef_box_layout_settings_t::default_flex"]
3410        [::std::mem::offset_of!(_cef_box_layout_settings_t, default_flex) - 52usize];
3411};
3412#[doc = "\n Settings used when initializing a CefBoxLayout.\n"]
3413pub type cef_box_layout_settings_t = _cef_box_layout_settings_t;
3414#[repr(u32)]
3415#[non_exhaustive]
3416#[doc = "\n Specifies the button display state.\n"]
3417#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3418pub enum cef_button_state_t {
3419    CEF_BUTTON_STATE_NORMAL = 0,
3420    CEF_BUTTON_STATE_HOVERED = 1,
3421    CEF_BUTTON_STATE_PRESSED = 2,
3422    CEF_BUTTON_STATE_DISABLED = 3,
3423    CEF_BUTTON_STATE_NUM_VALUES = 4,
3424}
3425#[repr(u32)]
3426#[non_exhaustive]
3427#[doc = "\n Specifies the horizontal text alignment mode.\n"]
3428#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3429pub enum cef_horizontal_alignment_t {
3430    #[doc = "\n Align the text's left edge with that of its display area.\n"]
3431    CEF_HORIZONTAL_ALIGNMENT_LEFT = 0,
3432    #[doc = "\n Align the text's center with that of its display area.\n"]
3433    CEF_HORIZONTAL_ALIGNMENT_CENTER = 1,
3434    #[doc = "\n Align the text's right edge with that of its display area.\n"]
3435    CEF_HORIZONTAL_ALIGNMENT_RIGHT = 2,
3436}
3437#[repr(u32)]
3438#[non_exhaustive]
3439#[doc = "\n Specifies how a menu will be anchored for non-RTL languages. The opposite\n position will be used for RTL languages.\n"]
3440#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3441pub enum cef_menu_anchor_position_t {
3442    CEF_MENU_ANCHOR_TOPLEFT = 0,
3443    CEF_MENU_ANCHOR_TOPRIGHT = 1,
3444    CEF_MENU_ANCHOR_BOTTOMCENTER = 2,
3445    CEF_MENU_ANCHOR_NUM_VALUES = 3,
3446}
3447#[repr(u32)]
3448#[non_exhaustive]
3449#[doc = "\n Supported color types for menu items.\n"]
3450#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3451pub enum cef_menu_color_type_t {
3452    CEF_MENU_COLOR_TEXT = 0,
3453    CEF_MENU_COLOR_TEXT_HOVERED = 1,
3454    CEF_MENU_COLOR_TEXT_ACCELERATOR = 2,
3455    CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED = 3,
3456    CEF_MENU_COLOR_BACKGROUND = 4,
3457    CEF_MENU_COLOR_BACKGROUND_HOVERED = 5,
3458    CEF_MENU_COLOR_NUM_VALUES = 6,
3459}
3460#[repr(u32)]
3461#[non_exhaustive]
3462#[doc = " Supported SSL version values. See net/ssl/ssl_connection_status_flags.h\n for more information."]
3463#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3464pub enum cef_ssl_version_t {
3465    #[doc = " Unknown SSL version."]
3466    SSL_CONNECTION_VERSION_UNKNOWN = 0,
3467    #[doc = " Unknown SSL version."]
3468    SSL_CONNECTION_VERSION_SSL2 = 1,
3469    #[doc = " Unknown SSL version."]
3470    SSL_CONNECTION_VERSION_SSL3 = 2,
3471    #[doc = " Unknown SSL version."]
3472    SSL_CONNECTION_VERSION_TLS1 = 3,
3473    #[doc = " Unknown SSL version."]
3474    SSL_CONNECTION_VERSION_TLS1_1 = 4,
3475    #[doc = " Unknown SSL version."]
3476    SSL_CONNECTION_VERSION_TLS1_2 = 5,
3477    #[doc = " Unknown SSL version."]
3478    SSL_CONNECTION_VERSION_TLS1_3 = 6,
3479    #[doc = " Unknown SSL version."]
3480    SSL_CONNECTION_VERSION_QUIC = 7,
3481    #[doc = " Unknown SSL version."]
3482    SSL_CONNECTION_VERSION_NUM_VALUES = 8,
3483}
3484#[repr(u32)]
3485#[non_exhaustive]
3486#[doc = " Supported SSL content status flags. See content/public/common/ssl_status.h\n for more information."]
3487#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3488pub enum cef_ssl_content_status_t {
3489    SSL_CONTENT_NORMAL_CONTENT = 0,
3490    SSL_CONTENT_DISPLAYED_INSECURE_CONTENT = 1,
3491    SSL_CONTENT_RAN_INSECURE_CONTENT = 2,
3492}
3493#[repr(u32)]
3494#[non_exhaustive]
3495#[doc = " Configuration options for registering a custom scheme.\n These values are used when calling AddCustomScheme."]
3496#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3497pub enum cef_scheme_options_t {
3498    CEF_SCHEME_OPTION_NONE = 0,
3499    #[doc = " For non-standard scheme URLs only the \"scheme:\" component is parsed and\n canonicalized. The remainder of the URL will be passed to the handler as-\n is. For example, \"scheme:///some%20text\" will remain the same.\n Non-standard scheme URLs cannot be used as a target for form submission.\n"]
3500    CEF_SCHEME_OPTION_STANDARD = 1,
3501    #[doc = "\n If CEF_SCHEME_OPTION_LOCAL is set the scheme will be treated with the same\n security rules as those applied to \"file\" URLs. Normal pages cannot link\n to or access local URLs. Also, by default, local URLs can only perform\n XMLHttpRequest calls to the same URL (origin + path) that originated the\n request. To allow XMLHttpRequest calls from a local URL to other URLs with\n the same origin set the CefSettings.file_access_from_file_urls_allowed\n value to true (1). To allow XMLHttpRequest calls from a local URL to all\n origins set the CefSettings.universal_access_from_file_urls_allowed value\n to true (1).\n"]
3502    CEF_SCHEME_OPTION_LOCAL = 2,
3503    #[doc = "\n If CEF_SCHEME_OPTION_DISPLAY_ISOLATED is set the scheme can only be\n displayed from other content hosted with the same scheme. For example,\n pages in other origins cannot create iframes or hyperlinks to URLs with\n the scheme. For schemes that must be accessible from other schemes don't\n set this, set CEF_SCHEME_OPTION_CORS_ENABLED, and use CORS\n \"Access-Control-Allow-Origin\" headers to further restrict access.\n"]
3504    CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 4,
3505    #[doc = "\n If CEF_SCHEME_OPTION_SECURE is set the scheme will be treated with the\n same security rules as those applied to \"https\" URLs. For example, loading\n this scheme from other secure schemes will not trigger mixed content\n warnings.\n"]
3506    CEF_SCHEME_OPTION_SECURE = 8,
3507    #[doc = "\n If CEF_SCHEME_OPTION_CORS_ENABLED is set the scheme can be sent CORS\n requests. This value should be set in most cases where\n CEF_SCHEME_OPTION_STANDARD is set.\n"]
3508    CEF_SCHEME_OPTION_CORS_ENABLED = 16,
3509    #[doc = "\n If CEF_SCHEME_OPTION_CSP_BYPASSING is set the scheme can bypass Content-\n Security-Policy (CSP) checks. This value should not be set in most cases\n where CEF_SCHEME_OPTION_STANDARD is set.\n"]
3510    CEF_SCHEME_OPTION_CSP_BYPASSING = 32,
3511    #[doc = "\n If CEF_SCHEME_OPTION_FETCH_ENABLED is set the scheme can perform Fetch API\n requests.\n"]
3512    CEF_SCHEME_OPTION_FETCH_ENABLED = 64,
3513}
3514#[doc = "\n Structure representing a range.\n"]
3515#[repr(C)]
3516#[derive(Debug, Copy, Clone)]
3517pub struct _cef_range_t {
3518    pub from: u32,
3519    pub to: u32,
3520}
3521#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3522const _: () = {
3523    ["Size of _cef_range_t"][::std::mem::size_of::<_cef_range_t>() - 8usize];
3524    ["Alignment of _cef_range_t"][::std::mem::align_of::<_cef_range_t>() - 4usize];
3525    ["Offset of field: _cef_range_t::from"][::std::mem::offset_of!(_cef_range_t, from) - 0usize];
3526    ["Offset of field: _cef_range_t::to"][::std::mem::offset_of!(_cef_range_t, to) - 4usize];
3527};
3528#[doc = "\n Structure representing a range.\n"]
3529pub type cef_range_t = _cef_range_t;
3530#[repr(u32)]
3531#[non_exhaustive]
3532#[doc = "\n Composition underline style.\n"]
3533#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3534pub enum cef_composition_underline_style_t {
3535    CEF_CUS_SOLID = 0,
3536    CEF_CUS_DOT = 1,
3537    CEF_CUS_DASH = 2,
3538    CEF_CUS_NONE = 3,
3539    CEF_CUS_NUM_VALUES = 4,
3540}
3541#[doc = "\n Structure representing IME composition underline information. This is a thin\n wrapper around Blink's WebCompositionUnderline class and should be kept in\n sync with that.\n"]
3542#[repr(C)]
3543#[derive(Debug, Copy, Clone)]
3544pub struct _cef_composition_underline_t {
3545    #[doc = "\n Size of this structure.\n"]
3546    pub size: usize,
3547    #[doc = "\n Underline character range.\n"]
3548    pub range: cef_range_t,
3549    #[doc = "\n Text color.\n"]
3550    pub color: cef_color_t,
3551    #[doc = "\n Background color.\n"]
3552    pub background_color: cef_color_t,
3553    #[doc = "\n Set to true (1) for thick underline.\n"]
3554    pub thick: ::std::os::raw::c_int,
3555    #[doc = "\n Style.\n"]
3556    pub style: cef_composition_underline_style_t,
3557}
3558#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3559const _: () = {
3560    ["Size of _cef_composition_underline_t"]
3561        [::std::mem::size_of::<_cef_composition_underline_t>() - 32usize];
3562    ["Alignment of _cef_composition_underline_t"]
3563        [::std::mem::align_of::<_cef_composition_underline_t>() - 8usize];
3564    ["Offset of field: _cef_composition_underline_t::size"]
3565        [::std::mem::offset_of!(_cef_composition_underline_t, size) - 0usize];
3566    ["Offset of field: _cef_composition_underline_t::range"]
3567        [::std::mem::offset_of!(_cef_composition_underline_t, range) - 8usize];
3568    ["Offset of field: _cef_composition_underline_t::color"]
3569        [::std::mem::offset_of!(_cef_composition_underline_t, color) - 16usize];
3570    ["Offset of field: _cef_composition_underline_t::background_color"]
3571        [::std::mem::offset_of!(_cef_composition_underline_t, background_color) - 20usize];
3572    ["Offset of field: _cef_composition_underline_t::thick"]
3573        [::std::mem::offset_of!(_cef_composition_underline_t, thick) - 24usize];
3574    ["Offset of field: _cef_composition_underline_t::style"]
3575        [::std::mem::offset_of!(_cef_composition_underline_t, style) - 28usize];
3576};
3577#[doc = "\n Structure representing IME composition underline information. This is a thin\n wrapper around Blink's WebCompositionUnderline class and should be kept in\n sync with that.\n"]
3578pub type cef_composition_underline_t = _cef_composition_underline_t;
3579#[repr(u32)]
3580#[non_exhaustive]
3581#[doc = "\n Enumerates the various representations of the ordering of audio channels.\n Must be kept synchronized with media::ChannelLayout from Chromium.\n See media\\base\\channel_layout.h\n"]
3582#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3583pub enum cef_channel_layout_t {
3584    CEF_CHANNEL_LAYOUT_NONE = 0,
3585    CEF_CHANNEL_LAYOUT_UNSUPPORTED = 1,
3586    #[doc = " Front C"]
3587    CEF_CHANNEL_LAYOUT_MONO = 2,
3588    #[doc = " Front L, Front R"]
3589    CEF_CHANNEL_LAYOUT_STEREO = 3,
3590    #[doc = " Front L, Front R, Back C"]
3591    CEF_CHANNEL_LAYOUT_2_1 = 4,
3592    #[doc = " Front L, Front R, Front C"]
3593    CEF_CHANNEL_LAYOUT_SURROUND = 5,
3594    #[doc = " Front L, Front R, Front C, Back C"]
3595    CEF_CHANNEL_LAYOUT_4_0 = 6,
3596    #[doc = " Front L, Front R, Side L, Side R"]
3597    CEF_CHANNEL_LAYOUT_2_2 = 7,
3598    #[doc = " Front L, Front R, Back L, Back R"]
3599    CEF_CHANNEL_LAYOUT_QUAD = 8,
3600    #[doc = " Front L, Front R, Front C, Side L, Side R"]
3601    CEF_CHANNEL_LAYOUT_5_0 = 9,
3602    #[doc = " Front L, Front R, Front C, LFE, Side L, Side R"]
3603    CEF_CHANNEL_LAYOUT_5_1 = 10,
3604    #[doc = " Front L, Front R, Front C, Back L, Back R"]
3605    CEF_CHANNEL_LAYOUT_5_0_BACK = 11,
3606    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R"]
3607    CEF_CHANNEL_LAYOUT_5_1_BACK = 12,
3608    #[doc = " Front L, Front R, Front C, Back L, Back R, Side L, Side R"]
3609    CEF_CHANNEL_LAYOUT_7_0 = 13,
3610    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Side L, Side R"]
3611    CEF_CHANNEL_LAYOUT_7_1 = 14,
3612    #[doc = " Front L, Front R, Front C, LFE, Front LofC, Front RofC, Side L, Side R"]
3613    CEF_CHANNEL_LAYOUT_7_1_WIDE = 15,
3614    #[doc = " Front L, Front R"]
3615    CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX = 16,
3616    #[doc = " Front L, Front R, LFE"]
3617    CEF_CHANNEL_LAYOUT_2POINT1 = 17,
3618    #[doc = " Front L, Front R, Front C, LFE"]
3619    CEF_CHANNEL_LAYOUT_3_1 = 18,
3620    #[doc = " Front L, Front R, Front C, LFE, Back C"]
3621    CEF_CHANNEL_LAYOUT_4_1 = 19,
3622    #[doc = " Front L, Front R, Front C, Back C, Side L, Side R"]
3623    CEF_CHANNEL_LAYOUT_6_0 = 20,
3624    #[doc = " Front L, Front R, Front LofC, Front RofC, Side L, Side R"]
3625    CEF_CHANNEL_LAYOUT_6_0_FRONT = 21,
3626    #[doc = " Front L, Front R, Front C, Back L, Back R, Back C"]
3627    CEF_CHANNEL_LAYOUT_HEXAGONAL = 22,
3628    #[doc = " Front L, Front R, Front C, LFE, Back C, Side L, Side R"]
3629    CEF_CHANNEL_LAYOUT_6_1 = 23,
3630    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Back C"]
3631    CEF_CHANNEL_LAYOUT_6_1_BACK = 24,
3632    #[doc = " Front L, Front R, LFE, Front LofC, Front RofC, Side L, Side R"]
3633    CEF_CHANNEL_LAYOUT_6_1_FRONT = 25,
3634    #[doc = " Front L, Front R, Front C, Front LofC, Front RofC, Side L, Side R"]
3635    CEF_CHANNEL_LAYOUT_7_0_FRONT = 26,
3636    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Front LofC, Front RofC"]
3637    CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK = 27,
3638    #[doc = " Front L, Front R, Front C, Back L, Back R, Back C, Side L, Side R"]
3639    CEF_CHANNEL_LAYOUT_OCTAGONAL = 28,
3640    #[doc = " Channels are not explicitly mapped to speakers."]
3641    CEF_CHANNEL_LAYOUT_DISCRETE = 29,
3642    #[doc = " Deprecated, but keeping the enum value for UMA consistency.\n Front L, Front R, Front C. Front C contains the keyboard mic audio. This\n layout is only intended for input for WebRTC. The Front C channel\n is stripped away in the WebRTC audio input pipeline and never seen outside\n of that."]
3643    CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC = 30,
3644    #[doc = " Front L, Front R, LFE, Side L, Side R"]
3645    CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE = 31,
3646    #[doc = " Actual channel layout is specified in the bitstream and the actual channel\n count is unknown at Chromium media pipeline level (useful for audio\n pass-through mode)."]
3647    CEF_CHANNEL_LAYOUT_BITSTREAM = 32,
3648    #[doc = " Front L, Front R, Front C, LFE, Side L, Side R,\n Front Height L, Front Height R, Rear Height L, Rear Height R\n Will be represented as six channels (5.1) due to eight channel limit\n kMaxConcurrentChannels"]
3649    CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX = 33,
3650    #[doc = " Front C, LFE"]
3651    CEF_CHANNEL_LAYOUT_1_1 = 34,
3652    #[doc = " Front L, Front R, LFE, Back C"]
3653    CEF_CHANNEL_LAYOUT_3_1_BACK = 35,
3654    #[doc = " Front L, Front R, LFE, Back C"]
3655    CEF_CHANNEL_NUM_VALUES = 36,
3656}
3657#[doc = "\n Structure representing the audio parameters for setting up the audio\n handler.\n"]
3658#[repr(C)]
3659#[derive(Debug, Copy, Clone)]
3660pub struct _cef_audio_parameters_t {
3661    #[doc = "\n Size of this structure.\n"]
3662    pub size: usize,
3663    #[doc = "\n Layout of the audio channels\n"]
3664    pub channel_layout: cef_channel_layout_t,
3665    #[doc = "\n Sample rate"]
3666    pub sample_rate: ::std::os::raw::c_int,
3667    #[doc = "\n Number of frames per buffer\n"]
3668    pub frames_per_buffer: ::std::os::raw::c_int,
3669}
3670#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3671const _: () = {
3672    ["Size of _cef_audio_parameters_t"][::std::mem::size_of::<_cef_audio_parameters_t>() - 24usize];
3673    ["Alignment of _cef_audio_parameters_t"]
3674        [::std::mem::align_of::<_cef_audio_parameters_t>() - 8usize];
3675    ["Offset of field: _cef_audio_parameters_t::size"]
3676        [::std::mem::offset_of!(_cef_audio_parameters_t, size) - 0usize];
3677    ["Offset of field: _cef_audio_parameters_t::channel_layout"]
3678        [::std::mem::offset_of!(_cef_audio_parameters_t, channel_layout) - 8usize];
3679    ["Offset of field: _cef_audio_parameters_t::sample_rate"]
3680        [::std::mem::offset_of!(_cef_audio_parameters_t, sample_rate) - 12usize];
3681    ["Offset of field: _cef_audio_parameters_t::frames_per_buffer"]
3682        [::std::mem::offset_of!(_cef_audio_parameters_t, frames_per_buffer) - 16usize];
3683};
3684#[doc = "\n Structure representing the audio parameters for setting up the audio\n handler.\n"]
3685pub type cef_audio_parameters_t = _cef_audio_parameters_t;
3686#[repr(u32)]
3687#[non_exhaustive]
3688#[doc = "\n Result codes for CefMediaRouter::CreateRoute. Should be kept in sync with\n Chromium's media_router::mojom::RouteRequestResultCode type.\n"]
3689#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3690pub enum cef_media_route_create_result_t {
3691    CEF_MRCR_UNKNOWN_ERROR = 0,
3692    CEF_MRCR_OK = 1,
3693    CEF_MRCR_TIMED_OUT = 2,
3694    CEF_MRCR_ROUTE_NOT_FOUND = 3,
3695    CEF_MRCR_SINK_NOT_FOUND = 4,
3696    CEF_MRCR_INVALID_ORIGIN = 5,
3697    CEF_MRCR_OFF_THE_RECORD_MISMATCH_DEPRECATED = 6,
3698    CEF_MRCR_NO_SUPPORTED_PROVIDER = 7,
3699    CEF_MRCR_CANCELLED = 8,
3700    CEF_MRCR_ROUTE_ALREADY_EXISTS = 9,
3701    CEF_MRCR_DESKTOP_PICKER_FAILED = 10,
3702    CEF_MRCR_ROUTE_ALREADY_TERMINATED = 11,
3703    CEF_MRCR_REDUNDANT_REQUEST = 12,
3704    CEF_MRCR_USER_NOT_ALLOWED = 13,
3705    CEF_MRCR_NOTIFICATION_DISABLED = 14,
3706    CEF_MRCR_NUM_VALUES = 15,
3707}
3708#[repr(i32)]
3709#[non_exhaustive]
3710#[doc = "\n Connection state for a MediaRoute object. Should be kept in sync with\n Chromium's blink::mojom::PresentationConnectionState type.\n"]
3711#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3712pub enum cef_media_route_connection_state_t {
3713    CEF_MRCS_UNKNOWN = -1,
3714    CEF_MRCS_CONNECTING = 0,
3715    CEF_MRCS_CONNECTED = 1,
3716    CEF_MRCS_CLOSED = 2,
3717    CEF_MRCS_TERMINATED = 3,
3718    CEF_MRCS_NUM_VALUES = 4,
3719}
3720#[repr(u32)]
3721#[non_exhaustive]
3722#[doc = "\n Icon types for a MediaSink object. Should be kept in sync with Chromium's\n media_router::SinkIconType type.\n"]
3723#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3724pub enum cef_media_sink_icon_type_t {
3725    CEF_MSIT_CAST = 0,
3726    CEF_MSIT_CAST_AUDIO_GROUP = 1,
3727    CEF_MSIT_CAST_AUDIO = 2,
3728    CEF_MSIT_MEETING = 3,
3729    CEF_MSIT_HANGOUT = 4,
3730    CEF_MSIT_EDUCATION = 5,
3731    CEF_MSIT_WIRED_DISPLAY = 6,
3732    CEF_MSIT_GENERIC = 7,
3733    CEF_MSIT_NUM_VALUES = 8,
3734}
3735#[doc = "\n Device information for a MediaSink object.\n"]
3736#[repr(C)]
3737#[derive(Debug, Copy, Clone)]
3738pub struct _cef_media_sink_device_info_t {
3739    #[doc = "\n Size of this structure.\n"]
3740    pub size: usize,
3741    pub ip_address: cef_string_t,
3742    pub port: ::std::os::raw::c_int,
3743    pub model_name: cef_string_t,
3744}
3745#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3746const _: () = {
3747    ["Size of _cef_media_sink_device_info_t"]
3748        [::std::mem::size_of::<_cef_media_sink_device_info_t>() - 64usize];
3749    ["Alignment of _cef_media_sink_device_info_t"]
3750        [::std::mem::align_of::<_cef_media_sink_device_info_t>() - 8usize];
3751    ["Offset of field: _cef_media_sink_device_info_t::size"]
3752        [::std::mem::offset_of!(_cef_media_sink_device_info_t, size) - 0usize];
3753    ["Offset of field: _cef_media_sink_device_info_t::ip_address"]
3754        [::std::mem::offset_of!(_cef_media_sink_device_info_t, ip_address) - 8usize];
3755    ["Offset of field: _cef_media_sink_device_info_t::port"]
3756        [::std::mem::offset_of!(_cef_media_sink_device_info_t, port) - 32usize];
3757    ["Offset of field: _cef_media_sink_device_info_t::model_name"]
3758        [::std::mem::offset_of!(_cef_media_sink_device_info_t, model_name) - 40usize];
3759};
3760#[doc = "\n Device information for a MediaSink object.\n"]
3761pub type cef_media_sink_device_info_t = _cef_media_sink_device_info_t;
3762#[repr(u32)]
3763#[non_exhaustive]
3764#[doc = "\n Represents commands available to TextField. Should be kept in sync with\n Chromium's views::TextField::MenuCommands type.\n"]
3765#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3766pub enum cef_text_field_commands_t {
3767    CEF_TFC_UNKNOWN = 0,
3768    CEF_TFC_CUT = 1,
3769    CEF_TFC_COPY = 2,
3770    CEF_TFC_PASTE = 3,
3771    CEF_TFC_SELECT_ALL = 4,
3772    CEF_TFC_SELECT_WORD = 5,
3773    CEF_TFC_UNDO = 6,
3774    CEF_TFC_DELETE = 7,
3775    CEF_TFC_NUM_VALUES = 8,
3776}
3777#[repr(u32)]
3778#[non_exhaustive]
3779#[doc = "\n Chrome toolbar types.\n"]
3780#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3781pub enum cef_chrome_toolbar_type_t {
3782    CEF_CTT_UNKNOWN = 0,
3783    CEF_CTT_NONE = 1,
3784    CEF_CTT_NORMAL = 2,
3785    CEF_CTT_LOCATION = 3,
3786    CEF_CTT_NUM_VALUES = 4,
3787}
3788#[repr(u32)]
3789#[non_exhaustive]
3790#[doc = "\n Chrome page action icon types. Should be kept in sync with Chromium's\n PageActionIconType type.\n"]
3791#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3792pub enum cef_chrome_page_action_icon_type_t {
3793    CEF_CPAIT_BOOKMARK_STAR = 0,
3794    CEF_CPAIT_CLICK_TO_CALL = 1,
3795    CEF_CPAIT_COOKIE_CONTROLS = 2,
3796    CEF_CPAIT_FILE_SYSTEM_ACCESS = 3,
3797    CEF_CPAIT_FIND = 4,
3798    CEF_CPAIT_MEMORY_SAVER = 5,
3799    CEF_CPAIT_INTENT_PICKER = 6,
3800    CEF_CPAIT_LOCAL_CARD_MIGRATION = 7,
3801    CEF_CPAIT_MANAGE_PASSWORDS = 8,
3802    CEF_CPAIT_PAYMENTS_OFFER_NOTIFICATION = 9,
3803    CEF_CPAIT_PRICE_TRACKING = 10,
3804    CEF_CPAIT_PWA_INSTALL = 11,
3805    CEF_CPAIT_QR_CODE_GENERATOR_DEPRECATED = 12,
3806    CEF_CPAIT_READER_MODE_DEPRECATED = 13,
3807    CEF_CPAIT_SAVE_AUTOFILL_ADDRESS = 14,
3808    CEF_CPAIT_SAVE_CARD = 15,
3809    CEF_CPAIT_SEND_TAB_TO_SELF_DEPRECATED = 16,
3810    CEF_CPAIT_SHARING_HUB = 17,
3811    CEF_CPAIT_SIDE_SEARCH_DEPRECATED = 18,
3812    CEF_CPAIT_SMS_REMOTE_FETCHER = 19,
3813    CEF_CPAIT_TRANSLATE = 20,
3814    CEF_CPAIT_VIRTUAL_CARD_ENROLL = 21,
3815    CEF_CPAIT_VIRTUAL_CARD_INFORMATION = 22,
3816    CEF_CPAIT_ZOOM = 23,
3817    CEF_CPAIT_SAVE_IBAN = 24,
3818    CEF_CPAIT_MANDATORY_REAUTH = 25,
3819    CEF_CPAIT_PRICE_INSIGHTS = 26,
3820    CEF_CPAIT_READ_ANYTHING_DEPRECATED = 27,
3821    CEF_CPAIT_PRODUCT_SPECIFICATIONS = 28,
3822    CEF_CPAIT_LENS_OVERLAY = 29,
3823    CEF_CPAIT_DISCOUNTS = 30,
3824    CEF_CPAIT_OPTIMIZATION_GUIDE = 31,
3825    CEF_CPAIT_COLLABORATION_MESSAGING = 32,
3826    CEF_CPAIT_CHANGE_PASSWORD = 33,
3827    CEF_CPAIT_NUM_VALUES = 34,
3828}
3829#[repr(u32)]
3830#[non_exhaustive]
3831#[doc = "\n Chrome toolbar button types. Should be kept in sync with CEF's internal\n ToolbarButtonType type.\n"]
3832#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3833pub enum cef_chrome_toolbar_button_type_t {
3834    CEF_CTBT_CAST = 0,
3835    CEF_CTBT_DOWNLOAD = 1,
3836    CEF_CTBT_SEND_TAB_TO_SELF = 2,
3837    CEF_CTBT_SIDE_PANEL = 3,
3838    CEF_CTBT_NUM_VALUES = 4,
3839}
3840#[repr(u32)]
3841#[non_exhaustive]
3842#[doc = "\n Docking modes supported by CefWindow::AddOverlay.\n"]
3843#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3844pub enum cef_docking_mode_t {
3845    CEF_DOCKING_MODE_TOP_LEFT = 0,
3846    CEF_DOCKING_MODE_TOP_RIGHT = 1,
3847    CEF_DOCKING_MODE_BOTTOM_LEFT = 2,
3848    CEF_DOCKING_MODE_BOTTOM_RIGHT = 3,
3849    CEF_DOCKING_MODE_CUSTOM = 4,
3850    CEF_DOCKING_MODE_NUM_VALUES = 5,
3851}
3852#[repr(u32)]
3853#[non_exhaustive]
3854#[doc = "\n Show states supported by CefWindowDelegate::GetInitialShowState.\n"]
3855#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3856pub enum cef_show_state_t {
3857    CEF_SHOW_STATE_NORMAL = 0,
3858    CEF_SHOW_STATE_MINIMIZED = 1,
3859    CEF_SHOW_STATE_MAXIMIZED = 2,
3860    CEF_SHOW_STATE_FULLSCREEN = 3,
3861    CEF_SHOW_STATE_HIDDEN = 4,
3862    CEF_SHOW_STATE_NUM_VALUES = 5,
3863}
3864#[repr(u32)]
3865#[non_exhaustive]
3866#[doc = "\n Values indicating what state of the touch handle is set.\n"]
3867#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3868pub enum cef_touch_handle_state_flags_t {
3869    CEF_THS_FLAG_NONE = 0,
3870    CEF_THS_FLAG_ENABLED = 1,
3871    CEF_THS_FLAG_ORIENTATION = 2,
3872    CEF_THS_FLAG_ORIGIN = 4,
3873    CEF_THS_FLAG_ALPHA = 8,
3874}
3875#[repr(C)]
3876#[derive(Debug, Copy, Clone)]
3877pub struct _cef_touch_handle_state_t {
3878    #[doc = "\n Size of this structure.\n"]
3879    pub size: usize,
3880    #[doc = "\n Touch handle id. Increments for each new touch handle.\n"]
3881    pub touch_handle_id: ::std::os::raw::c_int,
3882    #[doc = "\n Combination of cef_touch_handle_state_flags_t values indicating what state\n is set.\n"]
3883    pub flags: u32,
3884    #[doc = "\n Enabled state. Only set if |flags| contains CEF_THS_FLAG_ENABLED.\n"]
3885    pub enabled: ::std::os::raw::c_int,
3886    #[doc = "\n Orientation state. Only set if |flags| contains CEF_THS_FLAG_ORIENTATION.\n"]
3887    pub orientation: cef_horizontal_alignment_t,
3888    pub mirror_vertical: ::std::os::raw::c_int,
3889    pub mirror_horizontal: ::std::os::raw::c_int,
3890    #[doc = "\n Origin state. Only set if |flags| contains CEF_THS_FLAG_ORIGIN.\n"]
3891    pub origin: cef_point_t,
3892    #[doc = "\n Alpha state. Only set if |flags| contains CEF_THS_FLAG_ALPHA.\n"]
3893    pub alpha: f32,
3894}
3895#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3896const _: () = {
3897    ["Size of _cef_touch_handle_state_t"]
3898        [::std::mem::size_of::<_cef_touch_handle_state_t>() - 48usize];
3899    ["Alignment of _cef_touch_handle_state_t"]
3900        [::std::mem::align_of::<_cef_touch_handle_state_t>() - 8usize];
3901    ["Offset of field: _cef_touch_handle_state_t::size"]
3902        [::std::mem::offset_of!(_cef_touch_handle_state_t, size) - 0usize];
3903    ["Offset of field: _cef_touch_handle_state_t::touch_handle_id"]
3904        [::std::mem::offset_of!(_cef_touch_handle_state_t, touch_handle_id) - 8usize];
3905    ["Offset of field: _cef_touch_handle_state_t::flags"]
3906        [::std::mem::offset_of!(_cef_touch_handle_state_t, flags) - 12usize];
3907    ["Offset of field: _cef_touch_handle_state_t::enabled"]
3908        [::std::mem::offset_of!(_cef_touch_handle_state_t, enabled) - 16usize];
3909    ["Offset of field: _cef_touch_handle_state_t::orientation"]
3910        [::std::mem::offset_of!(_cef_touch_handle_state_t, orientation) - 20usize];
3911    ["Offset of field: _cef_touch_handle_state_t::mirror_vertical"]
3912        [::std::mem::offset_of!(_cef_touch_handle_state_t, mirror_vertical) - 24usize];
3913    ["Offset of field: _cef_touch_handle_state_t::mirror_horizontal"]
3914        [::std::mem::offset_of!(_cef_touch_handle_state_t, mirror_horizontal) - 28usize];
3915    ["Offset of field: _cef_touch_handle_state_t::origin"]
3916        [::std::mem::offset_of!(_cef_touch_handle_state_t, origin) - 32usize];
3917    ["Offset of field: _cef_touch_handle_state_t::alpha"]
3918        [::std::mem::offset_of!(_cef_touch_handle_state_t, alpha) - 40usize];
3919};
3920pub type cef_touch_handle_state_t = _cef_touch_handle_state_t;
3921#[repr(u32)]
3922#[non_exhaustive]
3923#[doc = "\n Media access permissions used by OnRequestMediaAccessPermission.\n"]
3924#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3925pub enum cef_media_access_permission_types_t {
3926    #[doc = "\n No permission.\n"]
3927    CEF_MEDIA_PERMISSION_NONE = 0,
3928    #[doc = "\n Device audio capture permission.\n"]
3929    CEF_MEDIA_PERMISSION_DEVICE_AUDIO_CAPTURE = 1,
3930    #[doc = "\n Device video capture permission.\n"]
3931    CEF_MEDIA_PERMISSION_DEVICE_VIDEO_CAPTURE = 2,
3932    #[doc = "\n Desktop audio capture permission.\n"]
3933    CEF_MEDIA_PERMISSION_DESKTOP_AUDIO_CAPTURE = 4,
3934    #[doc = "\n Desktop video capture permission.\n"]
3935    CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE = 8,
3936}
3937#[repr(u32)]
3938#[non_exhaustive]
3939#[doc = "\n Permission types used with OnShowPermissionPrompt. Some types are\n platform-specific or only supported with Chrome style. Should be kept\n in sync with Chromium's permissions::RequestType type.\n"]
3940#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3941pub enum cef_permission_request_types_t {
3942    CEF_PERMISSION_TYPE_NONE = 0,
3943    CEF_PERMISSION_TYPE_AR_SESSION = 1,
3944    CEF_PERMISSION_TYPE_CAMERA_PAN_TILT_ZOOM = 2,
3945    CEF_PERMISSION_TYPE_CAMERA_STREAM = 4,
3946    CEF_PERMISSION_TYPE_CAPTURED_SURFACE_CONTROL = 8,
3947    CEF_PERMISSION_TYPE_CLIPBOARD = 16,
3948    CEF_PERMISSION_TYPE_TOP_LEVEL_STORAGE_ACCESS = 32,
3949    CEF_PERMISSION_TYPE_DISK_QUOTA = 64,
3950    CEF_PERMISSION_TYPE_LOCAL_FONTS = 128,
3951    CEF_PERMISSION_TYPE_GEOLOCATION = 256,
3952    CEF_PERMISSION_TYPE_HAND_TRACKING = 512,
3953    CEF_PERMISSION_TYPE_IDENTITY_PROVIDER = 1024,
3954    CEF_PERMISSION_TYPE_IDLE_DETECTION = 2048,
3955    CEF_PERMISSION_TYPE_MIC_STREAM = 4096,
3956    CEF_PERMISSION_TYPE_MIDI_SYSEX = 8192,
3957    CEF_PERMISSION_TYPE_MULTIPLE_DOWNLOADS = 16384,
3958    CEF_PERMISSION_TYPE_NOTIFICATIONS = 32768,
3959    CEF_PERMISSION_TYPE_KEYBOARD_LOCK = 65536,
3960    CEF_PERMISSION_TYPE_POINTER_LOCK = 131072,
3961    CEF_PERMISSION_TYPE_PROTECTED_MEDIA_IDENTIFIER = 262144,
3962    CEF_PERMISSION_TYPE_REGISTER_PROTOCOL_HANDLER = 524288,
3963    CEF_PERMISSION_TYPE_STORAGE_ACCESS = 1048576,
3964    CEF_PERMISSION_TYPE_VR_SESSION = 2097152,
3965    CEF_PERMISSION_TYPE_WEB_APP_INSTALLATION = 4194304,
3966    CEF_PERMISSION_TYPE_WINDOW_MANAGEMENT = 8388608,
3967    CEF_PERMISSION_TYPE_FILE_SYSTEM_ACCESS = 16777216,
3968}
3969#[repr(u32)]
3970#[non_exhaustive]
3971#[doc = "\n Permission request results.\n"]
3972#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3973pub enum cef_permission_request_result_t {
3974    #[doc = "\n Accept the permission request as an explicit user action.\n"]
3975    CEF_PERMISSION_RESULT_ACCEPT = 0,
3976    #[doc = "\n Deny the permission request as an explicit user action.\n"]
3977    CEF_PERMISSION_RESULT_DENY = 1,
3978    #[doc = "\n Dismiss the permission request as an explicit user action.\n"]
3979    CEF_PERMISSION_RESULT_DISMISS = 2,
3980    #[doc = "\n Ignore the permission request. If the prompt remains unhandled (e.g.\n OnShowPermissionPrompt returns false and there is no default permissions\n UI) then any related promises may remain unresolved.\n"]
3981    CEF_PERMISSION_RESULT_IGNORE = 3,
3982    #[doc = "\n Ignore the permission request. If the prompt remains unhandled (e.g.\n OnShowPermissionPrompt returns false and there is no default permissions\n UI) then any related promises may remain unresolved.\n"]
3983    CEF_PERMISSION_RESULT_NUM_VALUES = 4,
3984}
3985#[repr(u32)]
3986#[non_exhaustive]
3987#[doc = "\n Certificate types supported by CefTestServer::CreateAndStart. The matching\n certificate file must exist in the \"net/data/ssl/certificates\" directory.\n See CefSetDataDirectoryForTests() for related configuration.\n"]
3988#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3989pub enum cef_test_cert_type_t {
3990    #[doc = " Valid certificate using the IP (127.0.0.1). Loads the \"ok_cert.pem\" file."]
3991    CEF_TEST_CERT_OK_IP = 0,
3992    #[doc = " Valid certificate using the domain (\"localhost\"). Loads the\n \"localhost_cert.pem\" file."]
3993    CEF_TEST_CERT_OK_DOMAIN = 1,
3994    #[doc = " Expired certificate. Loads the \"expired_cert.pem\" file."]
3995    CEF_TEST_CERT_EXPIRED = 2,
3996    #[doc = " Expired certificate. Loads the \"expired_cert.pem\" file."]
3997    CEF_TEST_CERT_NUM_VALUES = 3,
3998}
3999#[repr(u32)]
4000#[non_exhaustive]
4001#[doc = "\n Preferences type passed to\n CefBrowserProcessHandler::OnRegisterCustomPreferences.\n"]
4002#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4003pub enum cef_preferences_type_t {
4004    #[doc = " Global preferences registered a single time at application startup."]
4005    CEF_PREFERENCES_TYPE_GLOBAL = 0,
4006    #[doc = " Request context preferences registered each time a new CefRequestContext\n is created."]
4007    CEF_PREFERENCES_TYPE_REQUEST_CONTEXT = 1,
4008    #[doc = " Request context preferences registered each time a new CefRequestContext\n is created."]
4009    CEF_PREFERENCES_TYPE_NUM_VALUES = 2,
4010}
4011#[repr(u32)]
4012#[non_exhaustive]
4013#[doc = "\n Download interrupt reasons. Should be kept in sync with\n Chromium's download::DownloadInterruptReason type.\n"]
4014#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4015pub enum cef_download_interrupt_reason_t {
4016    CEF_DOWNLOAD_INTERRUPT_REASON_NONE = 0,
4017    #[doc = " Generic file operation failure."]
4018    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED = 1,
4019    #[doc = " The file cannot be accessed due to security restrictions."]
4020    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED = 2,
4021    #[doc = " There is not enough room on the drive."]
4022    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE = 3,
4023    #[doc = " The directory or file name is too long."]
4024    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG = 5,
4025    #[doc = " The file is too large for the file system to handle."]
4026    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE = 6,
4027    #[doc = " The file contains a virus."]
4028    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED = 7,
4029    #[doc = " The file was in use. Too many files are opened at once. We have run out of\n memory."]
4030    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR = 10,
4031    #[doc = " The file was blocked due to local policy."]
4032    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED = 11,
4033    #[doc = " An attempt to check the safety of the download failed due to unexpected\n reasons. See http://crbug.com/153212."]
4034    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED = 12,
4035    #[doc = " An attempt was made to seek past the end of a file in opening\n a file (as part of resuming a previously interrupted download)."]
4036    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT = 13,
4037    #[doc = " The partial file didn't match the expected hash."]
4038    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH = 14,
4039    #[doc = " The source and the target of the download were the same."]
4040    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SAME_AS_SOURCE = 15,
4041    #[doc = " Generic network failure."]
4042    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED = 20,
4043    #[doc = " The network operation timed out."]
4044    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT = 21,
4045    #[doc = " The network connection has been lost."]
4046    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED = 22,
4047    #[doc = " The server has gone down."]
4048    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN = 23,
4049    #[doc = " The network request was invalid. This may be due to the original URL or a\n redirected URL:\n - Having an unsupported scheme.\n - Being an invalid URL.\n - Being disallowed by policy."]
4050    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST = 24,
4051    #[doc = " The server indicates that the operation has failed (generic)."]
4052    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED = 30,
4053    #[doc = " The server does not support range requests.\n Internal use only:  must restart from the beginning."]
4054    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE = 31,
4055    #[doc = " The server does not have the requested data."]
4056    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT = 33,
4057    #[doc = " Server didn't authorize access to resource."]
4058    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED = 34,
4059    #[doc = " Server certificate problem."]
4060    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM = 35,
4061    #[doc = " Server access forbidden."]
4062    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN = 36,
4063    #[doc = " Unexpected server response. This might indicate that the responding server\n may not be the intended server."]
4064    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNREACHABLE = 37,
4065    #[doc = " The server sent fewer bytes than the content-length header. It may\n indicate that the connection was closed prematurely, or the Content-Length\n header was invalid. The download is only interrupted if strong validators\n are present. Otherwise, it is treated as finished."]
4066    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH = 38,
4067    #[doc = " An unexpected cross-origin redirect happened."]
4068    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT = 39,
4069    #[doc = " The user canceled the download."]
4070    CEF_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED = 40,
4071    #[doc = " The user shut down the browser.\n Internal use only:  resume pending downloads if possible."]
4072    CEF_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN = 41,
4073    #[doc = " The browser crashed.\n Internal use only:  resume pending downloads if possible."]
4074    CEF_DOWNLOAD_INTERRUPT_REASON_CRASH = 50,
4075}
4076#[repr(u32)]
4077#[non_exhaustive]
4078#[doc = "\n Specifies the gesture commands.\n"]
4079#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4080pub enum cef_gesture_command_t {
4081    CEF_GESTURE_COMMAND_BACK = 0,
4082    CEF_GESTURE_COMMAND_FORWARD = 1,
4083}
4084#[repr(u32)]
4085#[non_exhaustive]
4086#[doc = "\n Specifies the zoom commands supported by CefBrowserHost::Zoom.\n"]
4087#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4088pub enum cef_zoom_command_t {
4089    CEF_ZOOM_COMMAND_OUT = 0,
4090    CEF_ZOOM_COMMAND_RESET = 1,
4091    CEF_ZOOM_COMMAND_IN = 2,
4092}
4093#[repr(u32)]
4094#[non_exhaustive]
4095#[doc = "\n Specifies the color variants supported by\n CefRequestContext::SetChromeThemeColor.\n"]
4096#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4097pub enum cef_color_variant_t {
4098    CEF_COLOR_VARIANT_SYSTEM = 0,
4099    CEF_COLOR_VARIANT_LIGHT = 1,
4100    CEF_COLOR_VARIANT_DARK = 2,
4101    CEF_COLOR_VARIANT_TONAL_SPOT = 3,
4102    CEF_COLOR_VARIANT_NEUTRAL = 4,
4103    CEF_COLOR_VARIANT_VIBRANT = 5,
4104    CEF_COLOR_VARIANT_EXPRESSIVE = 6,
4105    CEF_COLOR_VARIANT_NUM_VALUES = 7,
4106}
4107#[repr(u32)]
4108#[non_exhaustive]
4109#[doc = "\n Specifies the task type variants supported by CefTaskManager.\n Should be kept in sync with Chromium's task_manager::Task::Type type.\n"]
4110#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4111pub enum cef_task_type_t {
4112    CEF_TASK_TYPE_UNKNOWN = 0,
4113    #[doc = " The main browser process."]
4114    CEF_TASK_TYPE_BROWSER = 1,
4115    #[doc = " A graphics process."]
4116    CEF_TASK_TYPE_GPU = 2,
4117    #[doc = " A Linux zygote process."]
4118    CEF_TASK_TYPE_ZYGOTE = 3,
4119    #[doc = " A browser utility process."]
4120    CEF_TASK_TYPE_UTILITY = 4,
4121    #[doc = " A normal WebContents renderer process."]
4122    CEF_TASK_TYPE_RENDERER = 5,
4123    #[doc = " An extension or app process."]
4124    CEF_TASK_TYPE_EXTENSION = 6,
4125    #[doc = " A browser plugin guest process."]
4126    CEF_TASK_TYPE_GUEST = 7,
4127    #[doc = " A plugin process."]
4128    CEF_TASK_TYPE_PLUGIN = 8,
4129    #[doc = " A sandbox helper process"]
4130    CEF_TASK_TYPE_SANDBOX_HELPER = 9,
4131    #[doc = " A dedicated worker running on the renderer process."]
4132    CEF_TASK_TYPE_DEDICATED_WORKER = 10,
4133    #[doc = " A shared worker running on the renderer process."]
4134    CEF_TASK_TYPE_SHARED_WORKER = 11,
4135    #[doc = " A service worker running on the renderer process."]
4136    CEF_TASK_TYPE_SERVICE_WORKER = 12,
4137    #[doc = " A service worker running on the renderer process."]
4138    CEF_TASK_TYPE_NUM_VALUES = 13,
4139}
4140#[doc = "\n Structure representing task information provided by CefTaskManager.\n"]
4141#[repr(C)]
4142#[derive(Debug, Copy, Clone)]
4143pub struct _cef_task_info_t {
4144    #[doc = "\n Size of this structure.\n"]
4145    pub size: usize,
4146    #[doc = " The task ID."]
4147    pub id: i64,
4148    #[doc = " The task type."]
4149    pub type_: cef_task_type_t,
4150    #[doc = " Set to true (1) if the task is killable."]
4151    pub is_killable: ::std::os::raw::c_int,
4152    #[doc = " The task title."]
4153    pub title: cef_string_t,
4154    #[doc = " The CPU usage of the process on which the task is running. The value is\n in the range zero to number_of_processors * 100%."]
4155    pub cpu_usage: f64,
4156    #[doc = " The number of processors available on the system."]
4157    pub number_of_processors: ::std::os::raw::c_int,
4158    #[doc = " The memory footprint of the task in bytes. A value of -1 means no valid\n value is currently available."]
4159    pub memory: i64,
4160    #[doc = " The GPU memory usage of the task in bytes. A value of -1 means no valid\n value is currently available."]
4161    pub gpu_memory: i64,
4162    #[doc = " Set to true (1) if this task process' GPU resource count is inflated\n because it is counting other processes' resources (e.g, the GPU process\n has this value set to true because it is the aggregate of all processes)."]
4163    pub is_gpu_memory_inflated: ::std::os::raw::c_int,
4164}
4165#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4166const _: () = {
4167    ["Size of _cef_task_info_t"][::std::mem::size_of::<_cef_task_info_t>() - 88usize];
4168    ["Alignment of _cef_task_info_t"][::std::mem::align_of::<_cef_task_info_t>() - 8usize];
4169    ["Offset of field: _cef_task_info_t::size"]
4170        [::std::mem::offset_of!(_cef_task_info_t, size) - 0usize];
4171    ["Offset of field: _cef_task_info_t::id"]
4172        [::std::mem::offset_of!(_cef_task_info_t, id) - 8usize];
4173    ["Offset of field: _cef_task_info_t::type_"]
4174        [::std::mem::offset_of!(_cef_task_info_t, type_) - 16usize];
4175    ["Offset of field: _cef_task_info_t::is_killable"]
4176        [::std::mem::offset_of!(_cef_task_info_t, is_killable) - 20usize];
4177    ["Offset of field: _cef_task_info_t::title"]
4178        [::std::mem::offset_of!(_cef_task_info_t, title) - 24usize];
4179    ["Offset of field: _cef_task_info_t::cpu_usage"]
4180        [::std::mem::offset_of!(_cef_task_info_t, cpu_usage) - 48usize];
4181    ["Offset of field: _cef_task_info_t::number_of_processors"]
4182        [::std::mem::offset_of!(_cef_task_info_t, number_of_processors) - 56usize];
4183    ["Offset of field: _cef_task_info_t::memory"]
4184        [::std::mem::offset_of!(_cef_task_info_t, memory) - 64usize];
4185    ["Offset of field: _cef_task_info_t::gpu_memory"]
4186        [::std::mem::offset_of!(_cef_task_info_t, gpu_memory) - 72usize];
4187    ["Offset of field: _cef_task_info_t::is_gpu_memory_inflated"]
4188        [::std::mem::offset_of!(_cef_task_info_t, is_gpu_memory_inflated) - 80usize];
4189};
4190#[doc = "\n Structure representing task information provided by CefTaskManager.\n"]
4191pub type cef_task_info_t = _cef_task_info_t;
4192#[doc = "\n All ref-counted framework structures must include this structure first.\n"]
4193#[repr(C)]
4194#[derive(Debug, Copy, Clone)]
4195pub struct _cef_base_ref_counted_t {
4196    #[doc = "\n Size of the data structure.\n"]
4197    pub size: usize,
4198    #[doc = "\n Called to increment the reference count for the object. Should be called\n for every new copy of a pointer to a given object.\n"]
4199    pub add_ref: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t)>,
4200    #[doc = "\n Called to decrement the reference count for the object. If the reference\n count falls to 0 the object should self-delete. Returns true (1) if the\n resulting reference count is 0.\n"]
4201    pub release: ::std::option::Option<
4202        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4203    >,
4204    #[doc = "\n Returns true (1) if the current reference count is 1.\n"]
4205    pub has_one_ref: ::std::option::Option<
4206        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4207    >,
4208    #[doc = "\n Returns true (1) if the current reference count is at least 1.\n"]
4209    pub has_at_least_one_ref: ::std::option::Option<
4210        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4211    >,
4212}
4213#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4214const _: () = {
4215    ["Size of _cef_base_ref_counted_t"][::std::mem::size_of::<_cef_base_ref_counted_t>() - 40usize];
4216    ["Alignment of _cef_base_ref_counted_t"]
4217        [::std::mem::align_of::<_cef_base_ref_counted_t>() - 8usize];
4218    ["Offset of field: _cef_base_ref_counted_t::size"]
4219        [::std::mem::offset_of!(_cef_base_ref_counted_t, size) - 0usize];
4220    ["Offset of field: _cef_base_ref_counted_t::add_ref"]
4221        [::std::mem::offset_of!(_cef_base_ref_counted_t, add_ref) - 8usize];
4222    ["Offset of field: _cef_base_ref_counted_t::release"]
4223        [::std::mem::offset_of!(_cef_base_ref_counted_t, release) - 16usize];
4224    ["Offset of field: _cef_base_ref_counted_t::has_one_ref"]
4225        [::std::mem::offset_of!(_cef_base_ref_counted_t, has_one_ref) - 24usize];
4226    ["Offset of field: _cef_base_ref_counted_t::has_at_least_one_ref"]
4227        [::std::mem::offset_of!(_cef_base_ref_counted_t, has_at_least_one_ref) - 32usize];
4228};
4229#[doc = "\n All ref-counted framework structures must include this structure first.\n"]
4230pub type cef_base_ref_counted_t = _cef_base_ref_counted_t;
4231#[doc = "\n All scoped framework structures must include this structure first.\n"]
4232#[repr(C)]
4233#[derive(Debug, Copy, Clone)]
4234pub struct _cef_base_scoped_t {
4235    #[doc = "\n Size of the data structure.\n"]
4236    pub size: usize,
4237    #[doc = "\n Called to delete this object. May be NULL if the object is not owned.\n"]
4238    pub del: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_base_scoped_t)>,
4239}
4240#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4241const _: () = {
4242    ["Size of _cef_base_scoped_t"][::std::mem::size_of::<_cef_base_scoped_t>() - 16usize];
4243    ["Alignment of _cef_base_scoped_t"][::std::mem::align_of::<_cef_base_scoped_t>() - 8usize];
4244    ["Offset of field: _cef_base_scoped_t::size"]
4245        [::std::mem::offset_of!(_cef_base_scoped_t, size) - 0usize];
4246    ["Offset of field: _cef_base_scoped_t::del"]
4247        [::std::mem::offset_of!(_cef_base_scoped_t, del) - 8usize];
4248};
4249#[doc = "\n All scoped framework structures must include this structure first.\n"]
4250pub type cef_base_scoped_t = _cef_base_scoped_t;
4251#[doc = "\n Callback structure for cef_browser_host_t::AddDevToolsMessageObserver. The\n functions of this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
4252#[repr(C)]
4253#[derive(Debug, Copy, Clone)]
4254pub struct _cef_dev_tools_message_observer_t {
4255    #[doc = "\n Base structure.\n"]
4256    pub base: cef_base_ref_counted_t,
4257    #[doc = "\n Method that will be called on receipt of a DevTools protocol message.\n |browser| is the originating browser instance. |message| is a UTF8-encoded\n JSON dictionary representing either a function result or an event.\n |message| is only valid for the scope of this callback and should be\n copied if necessary. Return true (1) if the message was handled or false\n (0) if the message should be further processed and passed to the\n OnDevToolsMethodResult or OnDevToolsEvent functions as appropriate.\n\n Method result dictionaries include an \"id\" (int) value that identifies the\n orginating function call sent from\n cef_browser_host_t::SendDevToolsMessage, and optionally either a \"result\"\n (dictionary) or \"error\" (dictionary) value. The \"error\" dictionary will\n contain \"code\" (int) and \"message\" (string) values. Event dictionaries\n include a \"function\" (string) value and optionally a \"params\" (dictionary)\n value. See the DevTools protocol documentation at\n https://chromedevtools.github.io/devtools-protocol/ for details of\n supported function calls and the expected \"result\" or \"params\" dictionary\n contents. JSON dictionaries can be parsed using the CefParseJSON function\n if desired, however be aware of performance considerations when parsing\n large messages (some of which may exceed 1MB in size).\n"]
4258    pub on_dev_tools_message: ::std::option::Option<
4259        unsafe extern "C" fn(
4260            self_: *mut _cef_dev_tools_message_observer_t,
4261            browser: *mut _cef_browser_t,
4262            message: *const ::std::os::raw::c_void,
4263            message_size: usize,
4264        ) -> ::std::os::raw::c_int,
4265    >,
4266    #[doc = "\n Method that will be called after attempted execution of a DevTools\n protocol function. |browser| is the originating browser instance.\n |message_id| is the \"id\" value that identifies the originating function\n call message. If the function succeeded |success| will be true (1) and\n |result| will be the UTF8-encoded JSON \"result\" dictionary value (which\n may be NULL). If the function failed |success| will be false (0) and\n |result| will be the UTF8-encoded JSON \"error\" dictionary value. |result|\n is only valid for the scope of this callback and should be copied if\n necessary. See the OnDevToolsMessage documentation for additional details\n on |result| contents.\n"]
4267    pub on_dev_tools_method_result: ::std::option::Option<
4268        unsafe extern "C" fn(
4269            self_: *mut _cef_dev_tools_message_observer_t,
4270            browser: *mut _cef_browser_t,
4271            message_id: ::std::os::raw::c_int,
4272            success: ::std::os::raw::c_int,
4273            result: *const ::std::os::raw::c_void,
4274            result_size: usize,
4275        ),
4276    >,
4277    #[doc = "\n Method that will be called on receipt of a DevTools protocol event.\n |browser| is the originating browser instance. |function| is the\n \"function\" value. |params| is the UTF8-encoded JSON \"params\" dictionary\n value (which may be NULL). |params| is only valid for the scope of this\n callback and should be copied if necessary. See the OnDevToolsMessage\n documentation for additional details on |params| contents.\n"]
4278    pub on_dev_tools_event: ::std::option::Option<
4279        unsafe extern "C" fn(
4280            self_: *mut _cef_dev_tools_message_observer_t,
4281            browser: *mut _cef_browser_t,
4282            method: *const cef_string_t,
4283            params: *const ::std::os::raw::c_void,
4284            params_size: usize,
4285        ),
4286    >,
4287    #[doc = "\n Method that will be called when the DevTools agent has attached. |browser|\n is the originating browser instance. This will generally occur in response\n to the first message sent while the agent is detached.\n"]
4288    pub on_dev_tools_agent_attached: ::std::option::Option<
4289        unsafe extern "C" fn(
4290            self_: *mut _cef_dev_tools_message_observer_t,
4291            browser: *mut _cef_browser_t,
4292        ),
4293    >,
4294    #[doc = "\n Method that will be called when the DevTools agent has detached. |browser|\n is the originating browser instance. Any function results that were\n pending before the agent became detached will not be delivered, and any\n active event subscriptions will be canceled.\n"]
4295    pub on_dev_tools_agent_detached: ::std::option::Option<
4296        unsafe extern "C" fn(
4297            self_: *mut _cef_dev_tools_message_observer_t,
4298            browser: *mut _cef_browser_t,
4299        ),
4300    >,
4301}
4302#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4303const _: () = {
4304    ["Size of _cef_dev_tools_message_observer_t"]
4305        [::std::mem::size_of::<_cef_dev_tools_message_observer_t>() - 80usize];
4306    ["Alignment of _cef_dev_tools_message_observer_t"]
4307        [::std::mem::align_of::<_cef_dev_tools_message_observer_t>() - 8usize];
4308    ["Offset of field: _cef_dev_tools_message_observer_t::base"]
4309        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, base) - 0usize];
4310    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_message"]
4311        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, on_dev_tools_message) - 40usize];
4312    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_method_result"][::std::mem::offset_of!(
4313        _cef_dev_tools_message_observer_t,
4314        on_dev_tools_method_result
4315    ) - 48usize];
4316    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_event"]
4317        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, on_dev_tools_event) - 56usize];
4318    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_agent_attached"][::std::mem::offset_of!(
4319        _cef_dev_tools_message_observer_t,
4320        on_dev_tools_agent_attached
4321    )
4322        - 64usize];
4323    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_agent_detached"][::std::mem::offset_of!(
4324        _cef_dev_tools_message_observer_t,
4325        on_dev_tools_agent_detached
4326    )
4327        - 72usize];
4328};
4329#[doc = "\n Callback structure for cef_browser_host_t::AddDevToolsMessageObserver. The\n functions of this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
4330pub type cef_dev_tools_message_observer_t = _cef_dev_tools_message_observer_t;
4331#[doc = "\n Structure that wraps other data value types. Complex types (binary,\n dictionary and list) will be referenced but not owned by this object. Can be\n used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4332#[repr(C)]
4333#[derive(Debug, Copy, Clone)]
4334pub struct _cef_value_t {
4335    #[doc = "\n Base structure.\n"]
4336    pub base: cef_base_ref_counted_t,
4337    #[doc = "\n Returns true (1) if the underlying data is valid. This will always be true\n (1) for simple types. For complex types (binary, dictionary and list) the\n underlying data may become invalid if owned by another object (e.g. list\n or dictionary) and that other object is then modified or destroyed. This\n value object can be re-used by calling Set*() even if the underlying data\n is invalid.\n"]
4338    pub is_valid: ::std::option::Option<
4339        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4340    >,
4341    #[doc = "\n Returns true (1) if the underlying data is owned by another object.\n"]
4342    pub is_owned: ::std::option::Option<
4343        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4344    >,
4345    #[doc = "\n Returns true (1) if the underlying data is read-only. Some APIs may expose\n read-only objects.\n"]
4346    pub is_read_only: ::std::option::Option<
4347        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4348    >,
4349    #[doc = "\n Returns true (1) if this object and |that| object have the same underlying\n data. If true (1) modifications to this object will also affect |that|\n object and vice-versa.\n"]
4350    pub is_same: ::std::option::Option<
4351        unsafe extern "C" fn(
4352            self_: *mut _cef_value_t,
4353            that: *mut _cef_value_t,
4354        ) -> ::std::os::raw::c_int,
4355    >,
4356    #[doc = "\n Returns true (1) if this object and |that| object have an equivalent\n underlying value but are not necessarily the same object.\n"]
4357    pub is_equal: ::std::option::Option<
4358        unsafe extern "C" fn(
4359            self_: *mut _cef_value_t,
4360            that: *mut _cef_value_t,
4361        ) -> ::std::os::raw::c_int,
4362    >,
4363    #[doc = "\n Returns a copy of this object. The underlying data will also be copied.\n"]
4364    pub copy:
4365        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_value_t>,
4366    #[doc = "\n Returns the underlying value type.\n"]
4367    pub get_type:
4368        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> cef_value_type_t>,
4369    #[doc = "\n Returns the underlying value as type bool.\n"]
4370    pub get_bool: ::std::option::Option<
4371        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4372    >,
4373    #[doc = "\n Returns the underlying value as type int.\n"]
4374    pub get_int: ::std::option::Option<
4375        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4376    >,
4377    #[doc = "\n Returns the underlying value as type double.\n"]
4378    pub get_double: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> f64>,
4379    #[doc = "\n Returns the underlying value as type string.\n"]
4380    pub get_string: ::std::option::Option<
4381        unsafe extern "C" fn(self_: *mut _cef_value_t) -> cef_string_userfree_t,
4382    >,
4383    #[doc = "\n Returns the underlying value as type binary. The returned reference may\n become invalid if the value is owned by another object or if ownership is\n transferred to another object in the future. To maintain a reference to\n the value after assigning ownership to a dictionary or list pass this\n object to the set_value() function instead of passing the returned\n reference to set_binary().\n"]
4384    pub get_binary: ::std::option::Option<
4385        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_binary_value_t,
4386    >,
4387    #[doc = "\n Returns the underlying value as type dictionary. The returned reference\n may become invalid if the value is owned by another object or if ownership\n is transferred to another object in the future. To maintain a reference to\n the value after assigning ownership to a dictionary or list pass this\n object to the set_value() function instead of passing the returned\n reference to set_dictionary().\n"]
4388    pub get_dictionary: ::std::option::Option<
4389        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_dictionary_value_t,
4390    >,
4391    #[doc = "\n Returns the underlying value as type list. The returned reference may\n become invalid if the value is owned by another object or if ownership is\n transferred to another object in the future. To maintain a reference to\n the value after assigning ownership to a dictionary or list pass this\n object to the set_value() function instead of passing the returned\n reference to set_list().\n"]
4392    pub get_list: ::std::option::Option<
4393        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_list_value_t,
4394    >,
4395    #[doc = "\n Sets the underlying value as type null. Returns true (1) if the value was\n set successfully.\n"]
4396    pub set_null: ::std::option::Option<
4397        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4398    >,
4399    #[doc = "\n Sets the underlying value as type bool. Returns true (1) if the value was\n set successfully.\n"]
4400    pub set_bool: ::std::option::Option<
4401        unsafe extern "C" fn(
4402            self_: *mut _cef_value_t,
4403            value: ::std::os::raw::c_int,
4404        ) -> ::std::os::raw::c_int,
4405    >,
4406    #[doc = "\n Sets the underlying value as type int. Returns true (1) if the value was\n set successfully.\n"]
4407    pub set_int: ::std::option::Option<
4408        unsafe extern "C" fn(
4409            self_: *mut _cef_value_t,
4410            value: ::std::os::raw::c_int,
4411        ) -> ::std::os::raw::c_int,
4412    >,
4413    #[doc = "\n Sets the underlying value as type double. Returns true (1) if the value\n was set successfully.\n"]
4414    pub set_double: ::std::option::Option<
4415        unsafe extern "C" fn(self_: *mut _cef_value_t, value: f64) -> ::std::os::raw::c_int,
4416    >,
4417    #[doc = "\n Sets the underlying value as type string. Returns true (1) if the value\n was set successfully.\n"]
4418    pub set_string: ::std::option::Option<
4419        unsafe extern "C" fn(
4420            self_: *mut _cef_value_t,
4421            value: *const cef_string_t,
4422        ) -> ::std::os::raw::c_int,
4423    >,
4424    #[doc = "\n Sets the underlying value as type binary. Returns true (1) if the value\n was set successfully. This object keeps a reference to |value| and\n ownership of the underlying data remains unchanged.\n"]
4425    pub set_binary: ::std::option::Option<
4426        unsafe extern "C" fn(
4427            self_: *mut _cef_value_t,
4428            value: *mut _cef_binary_value_t,
4429        ) -> ::std::os::raw::c_int,
4430    >,
4431    #[doc = "\n Sets the underlying value as type dict. Returns true (1) if the value was\n set successfully. This object keeps a reference to |value| and ownership\n of the underlying data remains unchanged.\n"]
4432    pub set_dictionary: ::std::option::Option<
4433        unsafe extern "C" fn(
4434            self_: *mut _cef_value_t,
4435            value: *mut _cef_dictionary_value_t,
4436        ) -> ::std::os::raw::c_int,
4437    >,
4438    #[doc = "\n Sets the underlying value as type list. Returns true (1) if the value was\n set successfully. This object keeps a reference to |value| and ownership\n of the underlying data remains unchanged.\n"]
4439    pub set_list: ::std::option::Option<
4440        unsafe extern "C" fn(
4441            self_: *mut _cef_value_t,
4442            value: *mut _cef_list_value_t,
4443        ) -> ::std::os::raw::c_int,
4444    >,
4445}
4446#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4447const _: () = {
4448    ["Size of _cef_value_t"][::std::mem::size_of::<_cef_value_t>() - 216usize];
4449    ["Alignment of _cef_value_t"][::std::mem::align_of::<_cef_value_t>() - 8usize];
4450    ["Offset of field: _cef_value_t::base"][::std::mem::offset_of!(_cef_value_t, base) - 0usize];
4451    ["Offset of field: _cef_value_t::is_valid"]
4452        [::std::mem::offset_of!(_cef_value_t, is_valid) - 40usize];
4453    ["Offset of field: _cef_value_t::is_owned"]
4454        [::std::mem::offset_of!(_cef_value_t, is_owned) - 48usize];
4455    ["Offset of field: _cef_value_t::is_read_only"]
4456        [::std::mem::offset_of!(_cef_value_t, is_read_only) - 56usize];
4457    ["Offset of field: _cef_value_t::is_same"]
4458        [::std::mem::offset_of!(_cef_value_t, is_same) - 64usize];
4459    ["Offset of field: _cef_value_t::is_equal"]
4460        [::std::mem::offset_of!(_cef_value_t, is_equal) - 72usize];
4461    ["Offset of field: _cef_value_t::copy"][::std::mem::offset_of!(_cef_value_t, copy) - 80usize];
4462    ["Offset of field: _cef_value_t::get_type"]
4463        [::std::mem::offset_of!(_cef_value_t, get_type) - 88usize];
4464    ["Offset of field: _cef_value_t::get_bool"]
4465        [::std::mem::offset_of!(_cef_value_t, get_bool) - 96usize];
4466    ["Offset of field: _cef_value_t::get_int"]
4467        [::std::mem::offset_of!(_cef_value_t, get_int) - 104usize];
4468    ["Offset of field: _cef_value_t::get_double"]
4469        [::std::mem::offset_of!(_cef_value_t, get_double) - 112usize];
4470    ["Offset of field: _cef_value_t::get_string"]
4471        [::std::mem::offset_of!(_cef_value_t, get_string) - 120usize];
4472    ["Offset of field: _cef_value_t::get_binary"]
4473        [::std::mem::offset_of!(_cef_value_t, get_binary) - 128usize];
4474    ["Offset of field: _cef_value_t::get_dictionary"]
4475        [::std::mem::offset_of!(_cef_value_t, get_dictionary) - 136usize];
4476    ["Offset of field: _cef_value_t::get_list"]
4477        [::std::mem::offset_of!(_cef_value_t, get_list) - 144usize];
4478    ["Offset of field: _cef_value_t::set_null"]
4479        [::std::mem::offset_of!(_cef_value_t, set_null) - 152usize];
4480    ["Offset of field: _cef_value_t::set_bool"]
4481        [::std::mem::offset_of!(_cef_value_t, set_bool) - 160usize];
4482    ["Offset of field: _cef_value_t::set_int"]
4483        [::std::mem::offset_of!(_cef_value_t, set_int) - 168usize];
4484    ["Offset of field: _cef_value_t::set_double"]
4485        [::std::mem::offset_of!(_cef_value_t, set_double) - 176usize];
4486    ["Offset of field: _cef_value_t::set_string"]
4487        [::std::mem::offset_of!(_cef_value_t, set_string) - 184usize];
4488    ["Offset of field: _cef_value_t::set_binary"]
4489        [::std::mem::offset_of!(_cef_value_t, set_binary) - 192usize];
4490    ["Offset of field: _cef_value_t::set_dictionary"]
4491        [::std::mem::offset_of!(_cef_value_t, set_dictionary) - 200usize];
4492    ["Offset of field: _cef_value_t::set_list"]
4493        [::std::mem::offset_of!(_cef_value_t, set_list) - 208usize];
4494};
4495#[doc = "\n Structure that wraps other data value types. Complex types (binary,\n dictionary and list) will be referenced but not owned by this object. Can be\n used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4496pub type cef_value_t = _cef_value_t;
4497unsafe extern "C" {
4498    #[doc = "\n Creates a new object.\n"]
4499    pub fn cef_value_create() -> *mut cef_value_t;
4500}
4501#[doc = "\n Structure representing a binary value. Can be used on any process and\n thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4502#[repr(C)]
4503#[derive(Debug, Copy, Clone)]
4504pub struct _cef_binary_value_t {
4505    #[doc = "\n Base structure.\n"]
4506    pub base: cef_base_ref_counted_t,
4507    #[doc = "\n Returns true (1) if this object is valid. This object may become invalid\n if the underlying data is owned by another object (e.g. list or\n dictionary) and that other object is then modified or destroyed. Do not\n call any other functions if this function returns false (0).\n"]
4508    pub is_valid: ::std::option::Option<
4509        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int,
4510    >,
4511    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
4512    pub is_owned: ::std::option::Option<
4513        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int,
4514    >,
4515    #[doc = "\n Returns true (1) if this object and |that| object have the same underlying\n data.\n"]
4516    pub is_same: ::std::option::Option<
4517        unsafe extern "C" fn(
4518            self_: *mut _cef_binary_value_t,
4519            that: *mut _cef_binary_value_t,
4520        ) -> ::std::os::raw::c_int,
4521    >,
4522    #[doc = "\n Returns true (1) if this object and |that| object have an equivalent\n underlying value but are not necessarily the same object.\n"]
4523    pub is_equal: ::std::option::Option<
4524        unsafe extern "C" fn(
4525            self_: *mut _cef_binary_value_t,
4526            that: *mut _cef_binary_value_t,
4527        ) -> ::std::os::raw::c_int,
4528    >,
4529    #[doc = "\n Returns a copy of this object. The data in this object will also be\n copied.\n"]
4530    pub copy: ::std::option::Option<
4531        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> *mut _cef_binary_value_t,
4532    >,
4533    #[doc = "\n Returns a pointer to the beginning of the memory block. The returned\n pointer is valid as long as the cef_binary_value_t is alive.\n"]
4534    pub get_raw_data: ::std::option::Option<
4535        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> *const ::std::os::raw::c_void,
4536    >,
4537    #[doc = "\n Returns the data size.\n"]
4538    pub get_size:
4539        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> usize>,
4540    #[doc = "\n Read up to |buffer_size| number of bytes into |buffer|. Reading begins at\n the specified byte |data_offset|. Returns the number of bytes read.\n"]
4541    pub get_data: ::std::option::Option<
4542        unsafe extern "C" fn(
4543            self_: *mut _cef_binary_value_t,
4544            buffer: *mut ::std::os::raw::c_void,
4545            buffer_size: usize,
4546            data_offset: usize,
4547        ) -> usize,
4548    >,
4549}
4550#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4551const _: () = {
4552    ["Size of _cef_binary_value_t"][::std::mem::size_of::<_cef_binary_value_t>() - 104usize];
4553    ["Alignment of _cef_binary_value_t"][::std::mem::align_of::<_cef_binary_value_t>() - 8usize];
4554    ["Offset of field: _cef_binary_value_t::base"]
4555        [::std::mem::offset_of!(_cef_binary_value_t, base) - 0usize];
4556    ["Offset of field: _cef_binary_value_t::is_valid"]
4557        [::std::mem::offset_of!(_cef_binary_value_t, is_valid) - 40usize];
4558    ["Offset of field: _cef_binary_value_t::is_owned"]
4559        [::std::mem::offset_of!(_cef_binary_value_t, is_owned) - 48usize];
4560    ["Offset of field: _cef_binary_value_t::is_same"]
4561        [::std::mem::offset_of!(_cef_binary_value_t, is_same) - 56usize];
4562    ["Offset of field: _cef_binary_value_t::is_equal"]
4563        [::std::mem::offset_of!(_cef_binary_value_t, is_equal) - 64usize];
4564    ["Offset of field: _cef_binary_value_t::copy"]
4565        [::std::mem::offset_of!(_cef_binary_value_t, copy) - 72usize];
4566    ["Offset of field: _cef_binary_value_t::get_raw_data"]
4567        [::std::mem::offset_of!(_cef_binary_value_t, get_raw_data) - 80usize];
4568    ["Offset of field: _cef_binary_value_t::get_size"]
4569        [::std::mem::offset_of!(_cef_binary_value_t, get_size) - 88usize];
4570    ["Offset of field: _cef_binary_value_t::get_data"]
4571        [::std::mem::offset_of!(_cef_binary_value_t, get_data) - 96usize];
4572};
4573#[doc = "\n Structure representing a binary value. Can be used on any process and\n thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4574pub type cef_binary_value_t = _cef_binary_value_t;
4575unsafe extern "C" {
4576    #[doc = "\n Creates a new object that is not owned by any other object. The specified\n |data| will be copied.\n"]
4577    pub fn cef_binary_value_create(
4578        data: *const ::std::os::raw::c_void,
4579        data_size: usize,
4580    ) -> *mut cef_binary_value_t;
4581}
4582#[doc = "\n Structure representing a dictionary value. Can be used on any process and\n thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4583#[repr(C)]
4584#[derive(Debug, Copy, Clone)]
4585pub struct _cef_dictionary_value_t {
4586    #[doc = "\n Base structure.\n"]
4587    pub base: cef_base_ref_counted_t,
4588    #[doc = "\n Returns true (1) if this object is valid. This object may become invalid\n if the underlying data is owned by another object (e.g. list or\n dictionary) and that other object is then modified or destroyed. Do not\n call any other functions if this function returns false (0).\n"]
4589    pub is_valid: ::std::option::Option<
4590        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4591    >,
4592    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
4593    pub is_owned: ::std::option::Option<
4594        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4595    >,
4596    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
4597    pub is_read_only: ::std::option::Option<
4598        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4599    >,
4600    #[doc = "\n Returns true (1) if this object and |that| object have the same underlying\n data. If true (1) modifications to this object will also affect |that|\n object and vice-versa.\n"]
4601    pub is_same: ::std::option::Option<
4602        unsafe extern "C" fn(
4603            self_: *mut _cef_dictionary_value_t,
4604            that: *mut _cef_dictionary_value_t,
4605        ) -> ::std::os::raw::c_int,
4606    >,
4607    #[doc = "\n Returns true (1) if this object and |that| object have an equivalent\n underlying value but are not necessarily the same object.\n"]
4608    pub is_equal: ::std::option::Option<
4609        unsafe extern "C" fn(
4610            self_: *mut _cef_dictionary_value_t,
4611            that: *mut _cef_dictionary_value_t,
4612        ) -> ::std::os::raw::c_int,
4613    >,
4614    #[doc = "\n Returns a writable copy of this object. If |exclude_NULL_children| is true\n (1) any NULL dictionaries or lists will be excluded from the copy.\n"]
4615    pub copy: ::std::option::Option<
4616        unsafe extern "C" fn(
4617            self_: *mut _cef_dictionary_value_t,
4618            exclude_empty_children: ::std::os::raw::c_int,
4619        ) -> *mut _cef_dictionary_value_t,
4620    >,
4621    #[doc = "\n Returns the number of values.\n"]
4622    pub get_size:
4623        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> usize>,
4624    #[doc = "\n Removes all values. Returns true (1) on success.\n"]
4625    pub clear: ::std::option::Option<
4626        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4627    >,
4628    #[doc = "\n Returns true (1) if the current dictionary has a value for the given key.\n"]
4629    pub has_key: ::std::option::Option<
4630        unsafe extern "C" fn(
4631            self_: *mut _cef_dictionary_value_t,
4632            key: *const cef_string_t,
4633        ) -> ::std::os::raw::c_int,
4634    >,
4635    #[doc = "\n Reads all keys for this dictionary into the specified vector.\n"]
4636    pub get_keys: ::std::option::Option<
4637        unsafe extern "C" fn(
4638            self_: *mut _cef_dictionary_value_t,
4639            keys: cef_string_list_t,
4640        ) -> ::std::os::raw::c_int,
4641    >,
4642    #[doc = "\n Removes the value at the specified key. Returns true (1) is the value was\n removed successfully.\n"]
4643    pub remove: ::std::option::Option<
4644        unsafe extern "C" fn(
4645            self_: *mut _cef_dictionary_value_t,
4646            key: *const cef_string_t,
4647        ) -> ::std::os::raw::c_int,
4648    >,
4649    #[doc = "\n Returns the value type for the specified key.\n"]
4650    pub get_type: ::std::option::Option<
4651        unsafe extern "C" fn(
4652            self_: *mut _cef_dictionary_value_t,
4653            key: *const cef_string_t,
4654        ) -> cef_value_type_t,
4655    >,
4656    #[doc = "\n Returns the value at the specified key. For simple types the returned\n value will copy existing data and modifications to the value will not\n modify this object. For complex types (binary, dictionary and list) the\n returned value will reference existing data and modifications to the value\n will modify this object.\n"]
4657    pub get_value: ::std::option::Option<
4658        unsafe extern "C" fn(
4659            self_: *mut _cef_dictionary_value_t,
4660            key: *const cef_string_t,
4661        ) -> *mut _cef_value_t,
4662    >,
4663    #[doc = "\n Returns the value at the specified key as type bool.\n"]
4664    pub get_bool: ::std::option::Option<
4665        unsafe extern "C" fn(
4666            self_: *mut _cef_dictionary_value_t,
4667            key: *const cef_string_t,
4668        ) -> ::std::os::raw::c_int,
4669    >,
4670    #[doc = "\n Returns the value at the specified key as type int.\n"]
4671    pub get_int: ::std::option::Option<
4672        unsafe extern "C" fn(
4673            self_: *mut _cef_dictionary_value_t,
4674            key: *const cef_string_t,
4675        ) -> ::std::os::raw::c_int,
4676    >,
4677    #[doc = "\n Returns the value at the specified key as type double.\n"]
4678    pub get_double: ::std::option::Option<
4679        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t, key: *const cef_string_t) -> f64,
4680    >,
4681    #[doc = "\n Returns the value at the specified key as type string.\n"]
4682    pub get_string: ::std::option::Option<
4683        unsafe extern "C" fn(
4684            self_: *mut _cef_dictionary_value_t,
4685            key: *const cef_string_t,
4686        ) -> cef_string_userfree_t,
4687    >,
4688    #[doc = "\n Returns the value at the specified key as type binary. The returned value\n will reference existing data.\n"]
4689    pub get_binary: ::std::option::Option<
4690        unsafe extern "C" fn(
4691            self_: *mut _cef_dictionary_value_t,
4692            key: *const cef_string_t,
4693        ) -> *mut _cef_binary_value_t,
4694    >,
4695    #[doc = "\n Returns the value at the specified key as type dictionary. The returned\n value will reference existing data and modifications to the value will\n modify this object.\n"]
4696    pub get_dictionary: ::std::option::Option<
4697        unsafe extern "C" fn(
4698            self_: *mut _cef_dictionary_value_t,
4699            key: *const cef_string_t,
4700        ) -> *mut _cef_dictionary_value_t,
4701    >,
4702    #[doc = "\n Returns the value at the specified key as type list. The returned value\n will reference existing data and modifications to the value will modify\n this object.\n"]
4703    pub get_list: ::std::option::Option<
4704        unsafe extern "C" fn(
4705            self_: *mut _cef_dictionary_value_t,
4706            key: *const cef_string_t,
4707        ) -> *mut _cef_list_value_t,
4708    >,
4709    #[doc = "\n Sets the value at the specified key. Returns true (1) if the value was set\n successfully. If |value| represents simple data then the underlying data\n will be copied and modifications to |value| will not modify this object.\n If |value| represents complex data (binary, dictionary or list) then the\n underlying data will be referenced and modifications to |value| will\n modify this object.\n"]
4710    pub set_value: ::std::option::Option<
4711        unsafe extern "C" fn(
4712            self_: *mut _cef_dictionary_value_t,
4713            key: *const cef_string_t,
4714            value: *mut _cef_value_t,
4715        ) -> ::std::os::raw::c_int,
4716    >,
4717    #[doc = "\n Sets the value at the specified key as type null. Returns true (1) if the\n value was set successfully.\n"]
4718    pub set_null: ::std::option::Option<
4719        unsafe extern "C" fn(
4720            self_: *mut _cef_dictionary_value_t,
4721            key: *const cef_string_t,
4722        ) -> ::std::os::raw::c_int,
4723    >,
4724    #[doc = "\n Sets the value at the specified key as type bool. Returns true (1) if the\n value was set successfully.\n"]
4725    pub set_bool: ::std::option::Option<
4726        unsafe extern "C" fn(
4727            self_: *mut _cef_dictionary_value_t,
4728            key: *const cef_string_t,
4729            value: ::std::os::raw::c_int,
4730        ) -> ::std::os::raw::c_int,
4731    >,
4732    #[doc = "\n Sets the value at the specified key as type int. Returns true (1) if the\n value was set successfully.\n"]
4733    pub set_int: ::std::option::Option<
4734        unsafe extern "C" fn(
4735            self_: *mut _cef_dictionary_value_t,
4736            key: *const cef_string_t,
4737            value: ::std::os::raw::c_int,
4738        ) -> ::std::os::raw::c_int,
4739    >,
4740    #[doc = "\n Sets the value at the specified key as type double. Returns true (1) if\n the value was set successfully.\n"]
4741    pub set_double: ::std::option::Option<
4742        unsafe extern "C" fn(
4743            self_: *mut _cef_dictionary_value_t,
4744            key: *const cef_string_t,
4745            value: f64,
4746        ) -> ::std::os::raw::c_int,
4747    >,
4748    #[doc = "\n Sets the value at the specified key as type string. Returns true (1) if\n the value was set successfully.\n"]
4749    pub set_string: ::std::option::Option<
4750        unsafe extern "C" fn(
4751            self_: *mut _cef_dictionary_value_t,
4752            key: *const cef_string_t,
4753            value: *const cef_string_t,
4754        ) -> ::std::os::raw::c_int,
4755    >,
4756    #[doc = "\n Sets the value at the specified key as type binary. Returns true (1) if\n the value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
4757    pub set_binary: ::std::option::Option<
4758        unsafe extern "C" fn(
4759            self_: *mut _cef_dictionary_value_t,
4760            key: *const cef_string_t,
4761            value: *mut _cef_binary_value_t,
4762        ) -> ::std::os::raw::c_int,
4763    >,
4764    #[doc = "\n Sets the value at the specified key as type dict. Returns true (1) if the\n value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
4765    pub set_dictionary: ::std::option::Option<
4766        unsafe extern "C" fn(
4767            self_: *mut _cef_dictionary_value_t,
4768            key: *const cef_string_t,
4769            value: *mut _cef_dictionary_value_t,
4770        ) -> ::std::os::raw::c_int,
4771    >,
4772    #[doc = "\n Sets the value at the specified key as type list. Returns true (1) if the\n value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
4773    pub set_list: ::std::option::Option<
4774        unsafe extern "C" fn(
4775            self_: *mut _cef_dictionary_value_t,
4776            key: *const cef_string_t,
4777            value: *mut _cef_list_value_t,
4778        ) -> ::std::os::raw::c_int,
4779    >,
4780}
4781#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4782const _: () = {
4783    ["Size of _cef_dictionary_value_t"]
4784        [::std::mem::size_of::<_cef_dictionary_value_t>() - 272usize];
4785    ["Alignment of _cef_dictionary_value_t"]
4786        [::std::mem::align_of::<_cef_dictionary_value_t>() - 8usize];
4787    ["Offset of field: _cef_dictionary_value_t::base"]
4788        [::std::mem::offset_of!(_cef_dictionary_value_t, base) - 0usize];
4789    ["Offset of field: _cef_dictionary_value_t::is_valid"]
4790        [::std::mem::offset_of!(_cef_dictionary_value_t, is_valid) - 40usize];
4791    ["Offset of field: _cef_dictionary_value_t::is_owned"]
4792        [::std::mem::offset_of!(_cef_dictionary_value_t, is_owned) - 48usize];
4793    ["Offset of field: _cef_dictionary_value_t::is_read_only"]
4794        [::std::mem::offset_of!(_cef_dictionary_value_t, is_read_only) - 56usize];
4795    ["Offset of field: _cef_dictionary_value_t::is_same"]
4796        [::std::mem::offset_of!(_cef_dictionary_value_t, is_same) - 64usize];
4797    ["Offset of field: _cef_dictionary_value_t::is_equal"]
4798        [::std::mem::offset_of!(_cef_dictionary_value_t, is_equal) - 72usize];
4799    ["Offset of field: _cef_dictionary_value_t::copy"]
4800        [::std::mem::offset_of!(_cef_dictionary_value_t, copy) - 80usize];
4801    ["Offset of field: _cef_dictionary_value_t::get_size"]
4802        [::std::mem::offset_of!(_cef_dictionary_value_t, get_size) - 88usize];
4803    ["Offset of field: _cef_dictionary_value_t::clear"]
4804        [::std::mem::offset_of!(_cef_dictionary_value_t, clear) - 96usize];
4805    ["Offset of field: _cef_dictionary_value_t::has_key"]
4806        [::std::mem::offset_of!(_cef_dictionary_value_t, has_key) - 104usize];
4807    ["Offset of field: _cef_dictionary_value_t::get_keys"]
4808        [::std::mem::offset_of!(_cef_dictionary_value_t, get_keys) - 112usize];
4809    ["Offset of field: _cef_dictionary_value_t::remove"]
4810        [::std::mem::offset_of!(_cef_dictionary_value_t, remove) - 120usize];
4811    ["Offset of field: _cef_dictionary_value_t::get_type"]
4812        [::std::mem::offset_of!(_cef_dictionary_value_t, get_type) - 128usize];
4813    ["Offset of field: _cef_dictionary_value_t::get_value"]
4814        [::std::mem::offset_of!(_cef_dictionary_value_t, get_value) - 136usize];
4815    ["Offset of field: _cef_dictionary_value_t::get_bool"]
4816        [::std::mem::offset_of!(_cef_dictionary_value_t, get_bool) - 144usize];
4817    ["Offset of field: _cef_dictionary_value_t::get_int"]
4818        [::std::mem::offset_of!(_cef_dictionary_value_t, get_int) - 152usize];
4819    ["Offset of field: _cef_dictionary_value_t::get_double"]
4820        [::std::mem::offset_of!(_cef_dictionary_value_t, get_double) - 160usize];
4821    ["Offset of field: _cef_dictionary_value_t::get_string"]
4822        [::std::mem::offset_of!(_cef_dictionary_value_t, get_string) - 168usize];
4823    ["Offset of field: _cef_dictionary_value_t::get_binary"]
4824        [::std::mem::offset_of!(_cef_dictionary_value_t, get_binary) - 176usize];
4825    ["Offset of field: _cef_dictionary_value_t::get_dictionary"]
4826        [::std::mem::offset_of!(_cef_dictionary_value_t, get_dictionary) - 184usize];
4827    ["Offset of field: _cef_dictionary_value_t::get_list"]
4828        [::std::mem::offset_of!(_cef_dictionary_value_t, get_list) - 192usize];
4829    ["Offset of field: _cef_dictionary_value_t::set_value"]
4830        [::std::mem::offset_of!(_cef_dictionary_value_t, set_value) - 200usize];
4831    ["Offset of field: _cef_dictionary_value_t::set_null"]
4832        [::std::mem::offset_of!(_cef_dictionary_value_t, set_null) - 208usize];
4833    ["Offset of field: _cef_dictionary_value_t::set_bool"]
4834        [::std::mem::offset_of!(_cef_dictionary_value_t, set_bool) - 216usize];
4835    ["Offset of field: _cef_dictionary_value_t::set_int"]
4836        [::std::mem::offset_of!(_cef_dictionary_value_t, set_int) - 224usize];
4837    ["Offset of field: _cef_dictionary_value_t::set_double"]
4838        [::std::mem::offset_of!(_cef_dictionary_value_t, set_double) - 232usize];
4839    ["Offset of field: _cef_dictionary_value_t::set_string"]
4840        [::std::mem::offset_of!(_cef_dictionary_value_t, set_string) - 240usize];
4841    ["Offset of field: _cef_dictionary_value_t::set_binary"]
4842        [::std::mem::offset_of!(_cef_dictionary_value_t, set_binary) - 248usize];
4843    ["Offset of field: _cef_dictionary_value_t::set_dictionary"]
4844        [::std::mem::offset_of!(_cef_dictionary_value_t, set_dictionary) - 256usize];
4845    ["Offset of field: _cef_dictionary_value_t::set_list"]
4846        [::std::mem::offset_of!(_cef_dictionary_value_t, set_list) - 264usize];
4847};
4848#[doc = "\n Structure representing a dictionary value. Can be used on any process and\n thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4849pub type cef_dictionary_value_t = _cef_dictionary_value_t;
4850unsafe extern "C" {
4851    #[doc = "\n Creates a new object that is not owned by any other object.\n"]
4852    pub fn cef_dictionary_value_create() -> *mut cef_dictionary_value_t;
4853}
4854#[doc = "\n Structure representing a list value. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
4855#[repr(C)]
4856#[derive(Debug, Copy, Clone)]
4857pub struct _cef_list_value_t {
4858    #[doc = "\n Base structure.\n"]
4859    pub base: cef_base_ref_counted_t,
4860    #[doc = "\n Returns true (1) if this object is valid. This object may become invalid\n if the underlying data is owned by another object (e.g. list or\n dictionary) and that other object is then modified or destroyed. Do not\n call any other functions if this function returns false (0).\n"]
4861    pub is_valid: ::std::option::Option<
4862        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
4863    >,
4864    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
4865    pub is_owned: ::std::option::Option<
4866        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
4867    >,
4868    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
4869    pub is_read_only: ::std::option::Option<
4870        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
4871    >,
4872    #[doc = "\n Returns true (1) if this object and |that| object have the same underlying\n data. If true (1) modifications to this object will also affect |that|\n object and vice-versa.\n"]
4873    pub is_same: ::std::option::Option<
4874        unsafe extern "C" fn(
4875            self_: *mut _cef_list_value_t,
4876            that: *mut _cef_list_value_t,
4877        ) -> ::std::os::raw::c_int,
4878    >,
4879    #[doc = "\n Returns true (1) if this object and |that| object have an equivalent\n underlying value but are not necessarily the same object.\n"]
4880    pub is_equal: ::std::option::Option<
4881        unsafe extern "C" fn(
4882            self_: *mut _cef_list_value_t,
4883            that: *mut _cef_list_value_t,
4884        ) -> ::std::os::raw::c_int,
4885    >,
4886    #[doc = "\n Returns a writable copy of this object.\n"]
4887    pub copy: ::std::option::Option<
4888        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> *mut _cef_list_value_t,
4889    >,
4890    #[doc = "\n Sets the number of values. If the number of values is expanded all new\n value slots will default to type null. Returns true (1) on success.\n"]
4891    pub set_size: ::std::option::Option<
4892        unsafe extern "C" fn(self_: *mut _cef_list_value_t, size: usize) -> ::std::os::raw::c_int,
4893    >,
4894    #[doc = "\n Returns the number of values.\n"]
4895    pub get_size:
4896        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> usize>,
4897    #[doc = "\n Removes all values. Returns true (1) on success.\n"]
4898    pub clear: ::std::option::Option<
4899        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
4900    >,
4901    #[doc = "\n Removes the value at the specified index.\n"]
4902    pub remove: ::std::option::Option<
4903        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
4904    >,
4905    #[doc = "\n Returns the value type at the specified index.\n"]
4906    pub get_type: ::std::option::Option<
4907        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> cef_value_type_t,
4908    >,
4909    #[doc = "\n Returns the value at the specified index. For simple types the returned\n value will copy existing data and modifications to the value will not\n modify this object. For complex types (binary, dictionary and list) the\n returned value will reference existing data and modifications to the value\n will modify this object.\n"]
4910    pub get_value: ::std::option::Option<
4911        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_value_t,
4912    >,
4913    #[doc = "\n Returns the value at the specified index as type bool.\n"]
4914    pub get_bool: ::std::option::Option<
4915        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
4916    >,
4917    #[doc = "\n Returns the value at the specified index as type int.\n"]
4918    pub get_int: ::std::option::Option<
4919        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
4920    >,
4921    #[doc = "\n Returns the value at the specified index as type double.\n"]
4922    pub get_double: ::std::option::Option<
4923        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> f64,
4924    >,
4925    #[doc = "\n Returns the value at the specified index as type string.\n"]
4926    pub get_string: ::std::option::Option<
4927        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> cef_string_userfree_t,
4928    >,
4929    #[doc = "\n Returns the value at the specified index as type binary. The returned\n value will reference existing data.\n"]
4930    pub get_binary: ::std::option::Option<
4931        unsafe extern "C" fn(
4932            self_: *mut _cef_list_value_t,
4933            index: usize,
4934        ) -> *mut _cef_binary_value_t,
4935    >,
4936    #[doc = "\n Returns the value at the specified index as type dictionary. The returned\n value will reference existing data and modifications to the value will\n modify this object.\n"]
4937    pub get_dictionary: ::std::option::Option<
4938        unsafe extern "C" fn(
4939            self_: *mut _cef_list_value_t,
4940            index: usize,
4941        ) -> *mut _cef_dictionary_value_t,
4942    >,
4943    #[doc = "\n Returns the value at the specified index as type list. The returned value\n will reference existing data and modifications to the value will modify\n this object.\n"]
4944    pub get_list: ::std::option::Option<
4945        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_list_value_t,
4946    >,
4947    #[doc = "\n Sets the value at the specified index. Returns true (1) if the value was\n set successfully. If |value| represents simple data then the underlying\n data will be copied and modifications to |value| will not modify this\n object. If |value| represents complex data (binary, dictionary or list)\n then the underlying data will be referenced and modifications to |value|\n will modify this object.\n"]
4948    pub set_value: ::std::option::Option<
4949        unsafe extern "C" fn(
4950            self_: *mut _cef_list_value_t,
4951            index: usize,
4952            value: *mut _cef_value_t,
4953        ) -> ::std::os::raw::c_int,
4954    >,
4955    #[doc = "\n Sets the value at the specified index as type null. Returns true (1) if\n the value was set successfully.\n"]
4956    pub set_null: ::std::option::Option<
4957        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
4958    >,
4959    #[doc = "\n Sets the value at the specified index as type bool. Returns true (1) if\n the value was set successfully.\n"]
4960    pub set_bool: ::std::option::Option<
4961        unsafe extern "C" fn(
4962            self_: *mut _cef_list_value_t,
4963            index: usize,
4964            value: ::std::os::raw::c_int,
4965        ) -> ::std::os::raw::c_int,
4966    >,
4967    #[doc = "\n Sets the value at the specified index as type int. Returns true (1) if the\n value was set successfully.\n"]
4968    pub set_int: ::std::option::Option<
4969        unsafe extern "C" fn(
4970            self_: *mut _cef_list_value_t,
4971            index: usize,
4972            value: ::std::os::raw::c_int,
4973        ) -> ::std::os::raw::c_int,
4974    >,
4975    #[doc = "\n Sets the value at the specified index as type double. Returns true (1) if\n the value was set successfully.\n"]
4976    pub set_double: ::std::option::Option<
4977        unsafe extern "C" fn(
4978            self_: *mut _cef_list_value_t,
4979            index: usize,
4980            value: f64,
4981        ) -> ::std::os::raw::c_int,
4982    >,
4983    #[doc = "\n Sets the value at the specified index as type string. Returns true (1) if\n the value was set successfully.\n"]
4984    pub set_string: ::std::option::Option<
4985        unsafe extern "C" fn(
4986            self_: *mut _cef_list_value_t,
4987            index: usize,
4988            value: *const cef_string_t,
4989        ) -> ::std::os::raw::c_int,
4990    >,
4991    #[doc = "\n Sets the value at the specified index as type binary. Returns true (1) if\n the value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
4992    pub set_binary: ::std::option::Option<
4993        unsafe extern "C" fn(
4994            self_: *mut _cef_list_value_t,
4995            index: usize,
4996            value: *mut _cef_binary_value_t,
4997        ) -> ::std::os::raw::c_int,
4998    >,
4999    #[doc = "\n Sets the value at the specified index as type dict. Returns true (1) if\n the value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
5000    pub set_dictionary: ::std::option::Option<
5001        unsafe extern "C" fn(
5002            self_: *mut _cef_list_value_t,
5003            index: usize,
5004            value: *mut _cef_dictionary_value_t,
5005        ) -> ::std::os::raw::c_int,
5006    >,
5007    #[doc = "\n Sets the value at the specified index as type list. Returns true (1) if\n the value was set successfully. If |value| is currently owned by another\n object then the value will be copied and the |value| reference will not\n change. Otherwise, ownership will be transferred to this object and the\n |value| reference will be invalidated.\n"]
5008    pub set_list: ::std::option::Option<
5009        unsafe extern "C" fn(
5010            self_: *mut _cef_list_value_t,
5011            index: usize,
5012            value: *mut _cef_list_value_t,
5013        ) -> ::std::os::raw::c_int,
5014    >,
5015}
5016#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5017const _: () = {
5018    ["Size of _cef_list_value_t"][::std::mem::size_of::<_cef_list_value_t>() - 264usize];
5019    ["Alignment of _cef_list_value_t"][::std::mem::align_of::<_cef_list_value_t>() - 8usize];
5020    ["Offset of field: _cef_list_value_t::base"]
5021        [::std::mem::offset_of!(_cef_list_value_t, base) - 0usize];
5022    ["Offset of field: _cef_list_value_t::is_valid"]
5023        [::std::mem::offset_of!(_cef_list_value_t, is_valid) - 40usize];
5024    ["Offset of field: _cef_list_value_t::is_owned"]
5025        [::std::mem::offset_of!(_cef_list_value_t, is_owned) - 48usize];
5026    ["Offset of field: _cef_list_value_t::is_read_only"]
5027        [::std::mem::offset_of!(_cef_list_value_t, is_read_only) - 56usize];
5028    ["Offset of field: _cef_list_value_t::is_same"]
5029        [::std::mem::offset_of!(_cef_list_value_t, is_same) - 64usize];
5030    ["Offset of field: _cef_list_value_t::is_equal"]
5031        [::std::mem::offset_of!(_cef_list_value_t, is_equal) - 72usize];
5032    ["Offset of field: _cef_list_value_t::copy"]
5033        [::std::mem::offset_of!(_cef_list_value_t, copy) - 80usize];
5034    ["Offset of field: _cef_list_value_t::set_size"]
5035        [::std::mem::offset_of!(_cef_list_value_t, set_size) - 88usize];
5036    ["Offset of field: _cef_list_value_t::get_size"]
5037        [::std::mem::offset_of!(_cef_list_value_t, get_size) - 96usize];
5038    ["Offset of field: _cef_list_value_t::clear"]
5039        [::std::mem::offset_of!(_cef_list_value_t, clear) - 104usize];
5040    ["Offset of field: _cef_list_value_t::remove"]
5041        [::std::mem::offset_of!(_cef_list_value_t, remove) - 112usize];
5042    ["Offset of field: _cef_list_value_t::get_type"]
5043        [::std::mem::offset_of!(_cef_list_value_t, get_type) - 120usize];
5044    ["Offset of field: _cef_list_value_t::get_value"]
5045        [::std::mem::offset_of!(_cef_list_value_t, get_value) - 128usize];
5046    ["Offset of field: _cef_list_value_t::get_bool"]
5047        [::std::mem::offset_of!(_cef_list_value_t, get_bool) - 136usize];
5048    ["Offset of field: _cef_list_value_t::get_int"]
5049        [::std::mem::offset_of!(_cef_list_value_t, get_int) - 144usize];
5050    ["Offset of field: _cef_list_value_t::get_double"]
5051        [::std::mem::offset_of!(_cef_list_value_t, get_double) - 152usize];
5052    ["Offset of field: _cef_list_value_t::get_string"]
5053        [::std::mem::offset_of!(_cef_list_value_t, get_string) - 160usize];
5054    ["Offset of field: _cef_list_value_t::get_binary"]
5055        [::std::mem::offset_of!(_cef_list_value_t, get_binary) - 168usize];
5056    ["Offset of field: _cef_list_value_t::get_dictionary"]
5057        [::std::mem::offset_of!(_cef_list_value_t, get_dictionary) - 176usize];
5058    ["Offset of field: _cef_list_value_t::get_list"]
5059        [::std::mem::offset_of!(_cef_list_value_t, get_list) - 184usize];
5060    ["Offset of field: _cef_list_value_t::set_value"]
5061        [::std::mem::offset_of!(_cef_list_value_t, set_value) - 192usize];
5062    ["Offset of field: _cef_list_value_t::set_null"]
5063        [::std::mem::offset_of!(_cef_list_value_t, set_null) - 200usize];
5064    ["Offset of field: _cef_list_value_t::set_bool"]
5065        [::std::mem::offset_of!(_cef_list_value_t, set_bool) - 208usize];
5066    ["Offset of field: _cef_list_value_t::set_int"]
5067        [::std::mem::offset_of!(_cef_list_value_t, set_int) - 216usize];
5068    ["Offset of field: _cef_list_value_t::set_double"]
5069        [::std::mem::offset_of!(_cef_list_value_t, set_double) - 224usize];
5070    ["Offset of field: _cef_list_value_t::set_string"]
5071        [::std::mem::offset_of!(_cef_list_value_t, set_string) - 232usize];
5072    ["Offset of field: _cef_list_value_t::set_binary"]
5073        [::std::mem::offset_of!(_cef_list_value_t, set_binary) - 240usize];
5074    ["Offset of field: _cef_list_value_t::set_dictionary"]
5075        [::std::mem::offset_of!(_cef_list_value_t, set_dictionary) - 248usize];
5076    ["Offset of field: _cef_list_value_t::set_list"]
5077        [::std::mem::offset_of!(_cef_list_value_t, set_list) - 256usize];
5078};
5079#[doc = "\n Structure representing a list value. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5080pub type cef_list_value_t = _cef_list_value_t;
5081unsafe extern "C" {
5082    #[doc = "\n Creates a new object that is not owned by any other object.\n"]
5083    pub fn cef_list_value_create() -> *mut cef_list_value_t;
5084}
5085#[doc = "\n Container for a single image represented at different scale factors. All\n image representations should be the same size in density independent pixel\n (DIP) units. For example, if the image at scale factor 1.0 is 100x100 pixels\n then the image at scale factor 2.0 should be 200x200 pixels -- both images\n will display with a DIP size of 100x100 units. The functions of this\n structure can be called on any browser process thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5086#[repr(C)]
5087#[derive(Debug, Copy, Clone)]
5088pub struct _cef_image_t {
5089    #[doc = "\n Base structure.\n"]
5090    pub base: cef_base_ref_counted_t,
5091    #[doc = "\n Returns true (1) if this Image is NULL.\n"]
5092    pub is_empty: ::std::option::Option<
5093        unsafe extern "C" fn(self_: *mut _cef_image_t) -> ::std::os::raw::c_int,
5094    >,
5095    #[doc = "\n Returns true (1) if this Image and |that| Image share the same underlying\n storage. Will also return true (1) if both images are NULL.\n"]
5096    pub is_same: ::std::option::Option<
5097        unsafe extern "C" fn(
5098            self_: *mut _cef_image_t,
5099            that: *mut _cef_image_t,
5100        ) -> ::std::os::raw::c_int,
5101    >,
5102    #[doc = "\n Add a bitmap image representation for |scale_factor|. Only 32-bit\n RGBA/BGRA formats are supported. |pixel_width| and |pixel_height| are the\n bitmap representation size in pixel coordinates. |pixel_data| is the array\n of pixel data and should be |pixel_width| x |pixel_height| x 4 bytes in\n size. |color_type| and |alpha_type| values specify the pixel format.\n"]
5103    pub add_bitmap: ::std::option::Option<
5104        unsafe extern "C" fn(
5105            self_: *mut _cef_image_t,
5106            scale_factor: f32,
5107            pixel_width: ::std::os::raw::c_int,
5108            pixel_height: ::std::os::raw::c_int,
5109            color_type: cef_color_type_t,
5110            alpha_type: cef_alpha_type_t,
5111            pixel_data: *const ::std::os::raw::c_void,
5112            pixel_data_size: usize,
5113        ) -> ::std::os::raw::c_int,
5114    >,
5115    #[doc = "\n Add a PNG image representation for |scale_factor|. |png_data| is the image\n data of size |png_data_size|. Any alpha transparency in the PNG data will\n be maintained.\n"]
5116    pub add_png: ::std::option::Option<
5117        unsafe extern "C" fn(
5118            self_: *mut _cef_image_t,
5119            scale_factor: f32,
5120            png_data: *const ::std::os::raw::c_void,
5121            png_data_size: usize,
5122        ) -> ::std::os::raw::c_int,
5123    >,
5124    #[doc = "\n Create a JPEG image representation for |scale_factor|. |jpeg_data| is the\n image data of size |jpeg_data_size|. The JPEG format does not support\n transparency so the alpha byte will be set to 0xFF for all pixels.\n"]
5125    pub add_jpeg: ::std::option::Option<
5126        unsafe extern "C" fn(
5127            self_: *mut _cef_image_t,
5128            scale_factor: f32,
5129            jpeg_data: *const ::std::os::raw::c_void,
5130            jpeg_data_size: usize,
5131        ) -> ::std::os::raw::c_int,
5132    >,
5133    #[doc = "\n Returns the image width in density independent pixel (DIP) units.\n"]
5134    pub get_width: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_image_t) -> usize>,
5135    #[doc = "\n Returns the image height in density independent pixel (DIP) units.\n"]
5136    pub get_height: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_image_t) -> usize>,
5137    #[doc = "\n Returns true (1) if this image contains a representation for\n |scale_factor|.\n"]
5138    pub has_representation: ::std::option::Option<
5139        unsafe extern "C" fn(self_: *mut _cef_image_t, scale_factor: f32) -> ::std::os::raw::c_int,
5140    >,
5141    #[doc = "\n Removes the representation for |scale_factor|. Returns true (1) on\n success.\n"]
5142    pub remove_representation: ::std::option::Option<
5143        unsafe extern "C" fn(self_: *mut _cef_image_t, scale_factor: f32) -> ::std::os::raw::c_int,
5144    >,
5145    #[doc = "\n Returns information for the representation that most closely matches\n |scale_factor|. |actual_scale_factor| is the actual scale factor for the\n representation. |pixel_width| and |pixel_height| are the representation\n size in pixel coordinates. Returns true (1) on success.\n"]
5146    pub get_representation_info: ::std::option::Option<
5147        unsafe extern "C" fn(
5148            self_: *mut _cef_image_t,
5149            scale_factor: f32,
5150            actual_scale_factor: *mut f32,
5151            pixel_width: *mut ::std::os::raw::c_int,
5152            pixel_height: *mut ::std::os::raw::c_int,
5153        ) -> ::std::os::raw::c_int,
5154    >,
5155    #[doc = "\n Returns the bitmap representation that most closely matches\n |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |color_type|\n and |alpha_type| values specify the desired output pixel format.\n |pixel_width| and |pixel_height| are the output representation size in\n pixel coordinates. Returns a cef_binary_value_t containing the pixel data\n on success or NULL on failure.\n"]
5156    pub get_as_bitmap: ::std::option::Option<
5157        unsafe extern "C" fn(
5158            self_: *mut _cef_image_t,
5159            scale_factor: f32,
5160            color_type: cef_color_type_t,
5161            alpha_type: cef_alpha_type_t,
5162            pixel_width: *mut ::std::os::raw::c_int,
5163            pixel_height: *mut ::std::os::raw::c_int,
5164        ) -> *mut _cef_binary_value_t,
5165    >,
5166    #[doc = "\n Returns the PNG representation that most closely matches |scale_factor|.\n If |with_transparency| is true (1) any alpha transparency in the image\n will be represented in the resulting PNG data. |pixel_width| and\n |pixel_height| are the output representation size in pixel coordinates.\n Returns a cef_binary_value_t containing the PNG image data on success or\n NULL on failure.\n"]
5167    pub get_as_png: ::std::option::Option<
5168        unsafe extern "C" fn(
5169            self_: *mut _cef_image_t,
5170            scale_factor: f32,
5171            with_transparency: ::std::os::raw::c_int,
5172            pixel_width: *mut ::std::os::raw::c_int,
5173            pixel_height: *mut ::std::os::raw::c_int,
5174        ) -> *mut _cef_binary_value_t,
5175    >,
5176    #[doc = "\n Returns the JPEG representation that most closely matches |scale_factor|.\n |quality| determines the compression level with 0 == lowest and 100 ==\n highest. The JPEG format does not support alpha transparency and the alpha\n channel, if any, will be discarded. |pixel_width| and |pixel_height| are\n the output representation size in pixel coordinates. Returns a\n cef_binary_value_t containing the JPEG image data on success or NULL on\n failure.\n"]
5177    pub get_as_jpeg: ::std::option::Option<
5178        unsafe extern "C" fn(
5179            self_: *mut _cef_image_t,
5180            scale_factor: f32,
5181            quality: ::std::os::raw::c_int,
5182            pixel_width: *mut ::std::os::raw::c_int,
5183            pixel_height: *mut ::std::os::raw::c_int,
5184        ) -> *mut _cef_binary_value_t,
5185    >,
5186}
5187#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5188const _: () = {
5189    ["Size of _cef_image_t"][::std::mem::size_of::<_cef_image_t>() - 144usize];
5190    ["Alignment of _cef_image_t"][::std::mem::align_of::<_cef_image_t>() - 8usize];
5191    ["Offset of field: _cef_image_t::base"][::std::mem::offset_of!(_cef_image_t, base) - 0usize];
5192    ["Offset of field: _cef_image_t::is_empty"]
5193        [::std::mem::offset_of!(_cef_image_t, is_empty) - 40usize];
5194    ["Offset of field: _cef_image_t::is_same"]
5195        [::std::mem::offset_of!(_cef_image_t, is_same) - 48usize];
5196    ["Offset of field: _cef_image_t::add_bitmap"]
5197        [::std::mem::offset_of!(_cef_image_t, add_bitmap) - 56usize];
5198    ["Offset of field: _cef_image_t::add_png"]
5199        [::std::mem::offset_of!(_cef_image_t, add_png) - 64usize];
5200    ["Offset of field: _cef_image_t::add_jpeg"]
5201        [::std::mem::offset_of!(_cef_image_t, add_jpeg) - 72usize];
5202    ["Offset of field: _cef_image_t::get_width"]
5203        [::std::mem::offset_of!(_cef_image_t, get_width) - 80usize];
5204    ["Offset of field: _cef_image_t::get_height"]
5205        [::std::mem::offset_of!(_cef_image_t, get_height) - 88usize];
5206    ["Offset of field: _cef_image_t::has_representation"]
5207        [::std::mem::offset_of!(_cef_image_t, has_representation) - 96usize];
5208    ["Offset of field: _cef_image_t::remove_representation"]
5209        [::std::mem::offset_of!(_cef_image_t, remove_representation) - 104usize];
5210    ["Offset of field: _cef_image_t::get_representation_info"]
5211        [::std::mem::offset_of!(_cef_image_t, get_representation_info) - 112usize];
5212    ["Offset of field: _cef_image_t::get_as_bitmap"]
5213        [::std::mem::offset_of!(_cef_image_t, get_as_bitmap) - 120usize];
5214    ["Offset of field: _cef_image_t::get_as_png"]
5215        [::std::mem::offset_of!(_cef_image_t, get_as_png) - 128usize];
5216    ["Offset of field: _cef_image_t::get_as_jpeg"]
5217        [::std::mem::offset_of!(_cef_image_t, get_as_jpeg) - 136usize];
5218};
5219#[doc = "\n Container for a single image represented at different scale factors. All\n image representations should be the same size in density independent pixel\n (DIP) units. For example, if the image at scale factor 1.0 is 100x100 pixels\n then the image at scale factor 2.0 should be 200x200 pixels -- both images\n will display with a DIP size of 100x100 units. The functions of this\n structure can be called on any browser process thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5220pub type cef_image_t = _cef_image_t;
5221unsafe extern "C" {
5222    #[doc = "\n Create a new cef_image_t. It will initially be NULL. Use the Add*()\n functions to add representations at different scale factors.\n"]
5223    pub fn cef_image_create() -> *mut cef_image_t;
5224}
5225#[doc = "\n Structure the client can implement to provide a custom stream reader. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated client-side.\n"]
5226#[repr(C)]
5227#[derive(Debug, Copy, Clone)]
5228pub struct _cef_read_handler_t {
5229    #[doc = "\n Base structure.\n"]
5230    pub base: cef_base_ref_counted_t,
5231    #[doc = "\n Read raw binary data.\n"]
5232    pub read: ::std::option::Option<
5233        unsafe extern "C" fn(
5234            self_: *mut _cef_read_handler_t,
5235            ptr: *mut ::std::os::raw::c_void,
5236            size: usize,
5237            n: usize,
5238        ) -> usize,
5239    >,
5240    #[doc = "\n Seek to the specified offset position. |whence| may be any one of\n SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on\n failure.\n"]
5241    pub seek: ::std::option::Option<
5242        unsafe extern "C" fn(
5243            self_: *mut _cef_read_handler_t,
5244            offset: i64,
5245            whence: ::std::os::raw::c_int,
5246        ) -> ::std::os::raw::c_int,
5247    >,
5248    #[doc = "\n Return the current offset position.\n"]
5249    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> i64>,
5250    #[doc = "\n Return non-zero if at end of file.\n"]
5251    pub eof: ::std::option::Option<
5252        unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int,
5253    >,
5254    #[doc = "\n Return true (1) if this handler performs work like accessing the file\n system which may block. Used as a hint for determining the thread to\n access the handler from.\n"]
5255    pub may_block: ::std::option::Option<
5256        unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int,
5257    >,
5258}
5259#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5260const _: () = {
5261    ["Size of _cef_read_handler_t"][::std::mem::size_of::<_cef_read_handler_t>() - 80usize];
5262    ["Alignment of _cef_read_handler_t"][::std::mem::align_of::<_cef_read_handler_t>() - 8usize];
5263    ["Offset of field: _cef_read_handler_t::base"]
5264        [::std::mem::offset_of!(_cef_read_handler_t, base) - 0usize];
5265    ["Offset of field: _cef_read_handler_t::read"]
5266        [::std::mem::offset_of!(_cef_read_handler_t, read) - 40usize];
5267    ["Offset of field: _cef_read_handler_t::seek"]
5268        [::std::mem::offset_of!(_cef_read_handler_t, seek) - 48usize];
5269    ["Offset of field: _cef_read_handler_t::tell"]
5270        [::std::mem::offset_of!(_cef_read_handler_t, tell) - 56usize];
5271    ["Offset of field: _cef_read_handler_t::eof"]
5272        [::std::mem::offset_of!(_cef_read_handler_t, eof) - 64usize];
5273    ["Offset of field: _cef_read_handler_t::may_block"]
5274        [::std::mem::offset_of!(_cef_read_handler_t, may_block) - 72usize];
5275};
5276#[doc = "\n Structure the client can implement to provide a custom stream reader. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated client-side.\n"]
5277pub type cef_read_handler_t = _cef_read_handler_t;
5278#[doc = "\n Structure used to read data from a stream. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5279#[repr(C)]
5280#[derive(Debug, Copy, Clone)]
5281pub struct _cef_stream_reader_t {
5282    #[doc = "\n Base structure.\n"]
5283    pub base: cef_base_ref_counted_t,
5284    #[doc = "\n Read raw binary data.\n"]
5285    pub read: ::std::option::Option<
5286        unsafe extern "C" fn(
5287            self_: *mut _cef_stream_reader_t,
5288            ptr: *mut ::std::os::raw::c_void,
5289            size: usize,
5290            n: usize,
5291        ) -> usize,
5292    >,
5293    #[doc = "\n Seek to the specified offset position. |whence| may be any one of\n SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on\n failure.\n"]
5294    pub seek: ::std::option::Option<
5295        unsafe extern "C" fn(
5296            self_: *mut _cef_stream_reader_t,
5297            offset: i64,
5298            whence: ::std::os::raw::c_int,
5299        ) -> ::std::os::raw::c_int,
5300    >,
5301    #[doc = "\n Return the current offset position.\n"]
5302    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> i64>,
5303    #[doc = "\n Return non-zero if at end of file.\n"]
5304    pub eof: ::std::option::Option<
5305        unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int,
5306    >,
5307    #[doc = "\n Returns true (1) if this reader performs work like accessing the file\n system which may block. Used as a hint for determining the thread to\n access the reader from.\n"]
5308    pub may_block: ::std::option::Option<
5309        unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int,
5310    >,
5311}
5312#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5313const _: () = {
5314    ["Size of _cef_stream_reader_t"][::std::mem::size_of::<_cef_stream_reader_t>() - 80usize];
5315    ["Alignment of _cef_stream_reader_t"][::std::mem::align_of::<_cef_stream_reader_t>() - 8usize];
5316    ["Offset of field: _cef_stream_reader_t::base"]
5317        [::std::mem::offset_of!(_cef_stream_reader_t, base) - 0usize];
5318    ["Offset of field: _cef_stream_reader_t::read"]
5319        [::std::mem::offset_of!(_cef_stream_reader_t, read) - 40usize];
5320    ["Offset of field: _cef_stream_reader_t::seek"]
5321        [::std::mem::offset_of!(_cef_stream_reader_t, seek) - 48usize];
5322    ["Offset of field: _cef_stream_reader_t::tell"]
5323        [::std::mem::offset_of!(_cef_stream_reader_t, tell) - 56usize];
5324    ["Offset of field: _cef_stream_reader_t::eof"]
5325        [::std::mem::offset_of!(_cef_stream_reader_t, eof) - 64usize];
5326    ["Offset of field: _cef_stream_reader_t::may_block"]
5327        [::std::mem::offset_of!(_cef_stream_reader_t, may_block) - 72usize];
5328};
5329#[doc = "\n Structure used to read data from a stream. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5330pub type cef_stream_reader_t = _cef_stream_reader_t;
5331unsafe extern "C" {
5332    #[doc = "\n Create a new cef_stream_reader_t object from a file.\n"]
5333    pub fn cef_stream_reader_create_for_file(
5334        fileName: *const cef_string_t,
5335    ) -> *mut cef_stream_reader_t;
5336}
5337unsafe extern "C" {
5338    #[doc = "\n Create a new cef_stream_reader_t object from data.\n"]
5339    pub fn cef_stream_reader_create_for_data(
5340        data: *mut ::std::os::raw::c_void,
5341        size: usize,
5342    ) -> *mut cef_stream_reader_t;
5343}
5344unsafe extern "C" {
5345    #[doc = "\n Create a new cef_stream_reader_t object from a custom handler.\n"]
5346    pub fn cef_stream_reader_create_for_handler(
5347        handler: *mut cef_read_handler_t,
5348    ) -> *mut cef_stream_reader_t;
5349}
5350#[doc = "\n Structure the client can implement to provide a custom stream writer. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated client-side.\n"]
5351#[repr(C)]
5352#[derive(Debug, Copy, Clone)]
5353pub struct _cef_write_handler_t {
5354    #[doc = "\n Base structure.\n"]
5355    pub base: cef_base_ref_counted_t,
5356    #[doc = "\n Write raw binary data.\n"]
5357    pub write: ::std::option::Option<
5358        unsafe extern "C" fn(
5359            self_: *mut _cef_write_handler_t,
5360            ptr: *const ::std::os::raw::c_void,
5361            size: usize,
5362            n: usize,
5363        ) -> usize,
5364    >,
5365    #[doc = "\n Seek to the specified offset position. |whence| may be any one of\n SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on\n failure.\n"]
5366    pub seek: ::std::option::Option<
5367        unsafe extern "C" fn(
5368            self_: *mut _cef_write_handler_t,
5369            offset: i64,
5370            whence: ::std::os::raw::c_int,
5371        ) -> ::std::os::raw::c_int,
5372    >,
5373    #[doc = "\n Return the current offset position.\n"]
5374    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> i64>,
5375    #[doc = "\n Flush the stream.\n"]
5376    pub flush: ::std::option::Option<
5377        unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int,
5378    >,
5379    #[doc = "\n Return true (1) if this handler performs work like accessing the file\n system which may block. Used as a hint for determining the thread to\n access the handler from.\n"]
5380    pub may_block: ::std::option::Option<
5381        unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int,
5382    >,
5383}
5384#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5385const _: () = {
5386    ["Size of _cef_write_handler_t"][::std::mem::size_of::<_cef_write_handler_t>() - 80usize];
5387    ["Alignment of _cef_write_handler_t"][::std::mem::align_of::<_cef_write_handler_t>() - 8usize];
5388    ["Offset of field: _cef_write_handler_t::base"]
5389        [::std::mem::offset_of!(_cef_write_handler_t, base) - 0usize];
5390    ["Offset of field: _cef_write_handler_t::write"]
5391        [::std::mem::offset_of!(_cef_write_handler_t, write) - 40usize];
5392    ["Offset of field: _cef_write_handler_t::seek"]
5393        [::std::mem::offset_of!(_cef_write_handler_t, seek) - 48usize];
5394    ["Offset of field: _cef_write_handler_t::tell"]
5395        [::std::mem::offset_of!(_cef_write_handler_t, tell) - 56usize];
5396    ["Offset of field: _cef_write_handler_t::flush"]
5397        [::std::mem::offset_of!(_cef_write_handler_t, flush) - 64usize];
5398    ["Offset of field: _cef_write_handler_t::may_block"]
5399        [::std::mem::offset_of!(_cef_write_handler_t, may_block) - 72usize];
5400};
5401#[doc = "\n Structure the client can implement to provide a custom stream writer. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated client-side.\n"]
5402pub type cef_write_handler_t = _cef_write_handler_t;
5403#[doc = "\n Structure used to write data to a stream. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5404#[repr(C)]
5405#[derive(Debug, Copy, Clone)]
5406pub struct _cef_stream_writer_t {
5407    #[doc = "\n Base structure.\n"]
5408    pub base: cef_base_ref_counted_t,
5409    #[doc = "\n Write raw binary data.\n"]
5410    pub write: ::std::option::Option<
5411        unsafe extern "C" fn(
5412            self_: *mut _cef_stream_writer_t,
5413            ptr: *const ::std::os::raw::c_void,
5414            size: usize,
5415            n: usize,
5416        ) -> usize,
5417    >,
5418    #[doc = "\n Seek to the specified offset position. |whence| may be any one of\n SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on\n failure.\n"]
5419    pub seek: ::std::option::Option<
5420        unsafe extern "C" fn(
5421            self_: *mut _cef_stream_writer_t,
5422            offset: i64,
5423            whence: ::std::os::raw::c_int,
5424        ) -> ::std::os::raw::c_int,
5425    >,
5426    #[doc = "\n Return the current offset position.\n"]
5427    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> i64>,
5428    #[doc = "\n Flush the stream.\n"]
5429    pub flush: ::std::option::Option<
5430        unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int,
5431    >,
5432    #[doc = "\n Returns true (1) if this writer performs work like accessing the file\n system which may block. Used as a hint for determining the thread to\n access the writer from.\n"]
5433    pub may_block: ::std::option::Option<
5434        unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int,
5435    >,
5436}
5437#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5438const _: () = {
5439    ["Size of _cef_stream_writer_t"][::std::mem::size_of::<_cef_stream_writer_t>() - 80usize];
5440    ["Alignment of _cef_stream_writer_t"][::std::mem::align_of::<_cef_stream_writer_t>() - 8usize];
5441    ["Offset of field: _cef_stream_writer_t::base"]
5442        [::std::mem::offset_of!(_cef_stream_writer_t, base) - 0usize];
5443    ["Offset of field: _cef_stream_writer_t::write"]
5444        [::std::mem::offset_of!(_cef_stream_writer_t, write) - 40usize];
5445    ["Offset of field: _cef_stream_writer_t::seek"]
5446        [::std::mem::offset_of!(_cef_stream_writer_t, seek) - 48usize];
5447    ["Offset of field: _cef_stream_writer_t::tell"]
5448        [::std::mem::offset_of!(_cef_stream_writer_t, tell) - 56usize];
5449    ["Offset of field: _cef_stream_writer_t::flush"]
5450        [::std::mem::offset_of!(_cef_stream_writer_t, flush) - 64usize];
5451    ["Offset of field: _cef_stream_writer_t::may_block"]
5452        [::std::mem::offset_of!(_cef_stream_writer_t, may_block) - 72usize];
5453};
5454#[doc = "\n Structure used to write data to a stream. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5455pub type cef_stream_writer_t = _cef_stream_writer_t;
5456unsafe extern "C" {
5457    #[doc = "\n Create a new cef_stream_writer_t object for a file.\n"]
5458    pub fn cef_stream_writer_create_for_file(
5459        fileName: *const cef_string_t,
5460    ) -> *mut cef_stream_writer_t;
5461}
5462unsafe extern "C" {
5463    #[doc = "\n Create a new cef_stream_writer_t object for a custom handler.\n"]
5464    pub fn cef_stream_writer_create_for_handler(
5465        handler: *mut cef_write_handler_t,
5466    ) -> *mut cef_stream_writer_t;
5467}
5468#[doc = "\n Structure used to represent drag data. The functions of this structure may\n be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5469#[repr(C)]
5470#[derive(Debug, Copy, Clone)]
5471pub struct _cef_drag_data_t {
5472    #[doc = "\n Base structure.\n"]
5473    pub base: cef_base_ref_counted_t,
5474    #[doc = "\n Returns a copy of the current object.\n"]
5475    pub clone: ::std::option::Option<
5476        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_drag_data_t,
5477    >,
5478    #[doc = "\n Returns true (1) if this object is read-only.\n"]
5479    pub is_read_only: ::std::option::Option<
5480        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5481    >,
5482    #[doc = "\n Returns true (1) if the drag data is a link.\n"]
5483    pub is_link: ::std::option::Option<
5484        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5485    >,
5486    #[doc = "\n Returns true (1) if the drag data is a text or html fragment.\n"]
5487    pub is_fragment: ::std::option::Option<
5488        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5489    >,
5490    #[doc = "\n Returns true (1) if the drag data is a file.\n"]
5491    pub is_file: ::std::option::Option<
5492        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5493    >,
5494    #[doc = "\n Return the link URL that is being dragged.\n"]
5495    pub get_link_url: ::std::option::Option<
5496        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5497    >,
5498    #[doc = "\n Return the title associated with the link being dragged.\n"]
5499    pub get_link_title: ::std::option::Option<
5500        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5501    >,
5502    #[doc = "\n Return the metadata, if any, associated with the link being dragged.\n"]
5503    pub get_link_metadata: ::std::option::Option<
5504        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5505    >,
5506    #[doc = "\n Return the plain text fragment that is being dragged.\n"]
5507    pub get_fragment_text: ::std::option::Option<
5508        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5509    >,
5510    #[doc = "\n Return the text/html fragment that is being dragged.\n"]
5511    pub get_fragment_html: ::std::option::Option<
5512        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5513    >,
5514    #[doc = "\n Return the base URL that the fragment came from. This value is used for\n resolving relative URLs and may be NULL.\n"]
5515    pub get_fragment_base_url: ::std::option::Option<
5516        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5517    >,
5518    #[doc = "\n Return the name of the file being dragged out of the browser window.\n"]
5519    pub get_file_name: ::std::option::Option<
5520        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5521    >,
5522    #[doc = "\n Write the contents of the file being dragged out of the web view into\n |writer|. Returns the number of bytes sent to |writer|. If |writer| is\n NULL this function will return the size of the file contents in bytes.\n Call get_file_name() to get a suggested name for the file.\n"]
5523    pub get_file_contents: ::std::option::Option<
5524        unsafe extern "C" fn(
5525            self_: *mut _cef_drag_data_t,
5526            writer: *mut _cef_stream_writer_t,
5527        ) -> usize,
5528    >,
5529    #[doc = "\n Retrieve the list of file names that are being dragged into the browser\n window.\n"]
5530    pub get_file_names: ::std::option::Option<
5531        unsafe extern "C" fn(
5532            self_: *mut _cef_drag_data_t,
5533            names: cef_string_list_t,
5534        ) -> ::std::os::raw::c_int,
5535    >,
5536    #[doc = "\n Retrieve the list of file paths that are being dragged into the browser\n window.\n"]
5537    pub get_file_paths: ::std::option::Option<
5538        unsafe extern "C" fn(
5539            self_: *mut _cef_drag_data_t,
5540            paths: cef_string_list_t,
5541        ) -> ::std::os::raw::c_int,
5542    >,
5543    #[doc = "\n Set the link URL that is being dragged.\n"]
5544    pub set_link_url: ::std::option::Option<
5545        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, url: *const cef_string_t),
5546    >,
5547    #[doc = "\n Set the title associated with the link being dragged.\n"]
5548    pub set_link_title: ::std::option::Option<
5549        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, title: *const cef_string_t),
5550    >,
5551    #[doc = "\n Set the metadata associated with the link being dragged.\n"]
5552    pub set_link_metadata: ::std::option::Option<
5553        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, data: *const cef_string_t),
5554    >,
5555    #[doc = "\n Set the plain text fragment that is being dragged.\n"]
5556    pub set_fragment_text: ::std::option::Option<
5557        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, text: *const cef_string_t),
5558    >,
5559    #[doc = "\n Set the text/html fragment that is being dragged.\n"]
5560    pub set_fragment_html: ::std::option::Option<
5561        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, html: *const cef_string_t),
5562    >,
5563    #[doc = "\n Set the base URL that the fragment came from.\n"]
5564    pub set_fragment_base_url: ::std::option::Option<
5565        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, base_url: *const cef_string_t),
5566    >,
5567    #[doc = "\n Reset the file contents. You should do this before calling\n cef_browser_host_t::DragTargetDragEnter as the web view does not allow us\n to drag in this kind of data.\n"]
5568    pub reset_file_contents:
5569        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t)>,
5570    #[doc = "\n Add a file that is being dragged into the webview.\n"]
5571    pub add_file: ::std::option::Option<
5572        unsafe extern "C" fn(
5573            self_: *mut _cef_drag_data_t,
5574            path: *const cef_string_t,
5575            display_name: *const cef_string_t,
5576        ),
5577    >,
5578    #[doc = "\n Clear list of filenames.\n"]
5579    pub clear_filenames: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t)>,
5580    #[doc = "\n Get the image representation of drag data. May return NULL if no image\n representation is available.\n"]
5581    pub get_image: ::std::option::Option<
5582        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_image_t,
5583    >,
5584    #[doc = "\n Get the image hotspot (drag start location relative to image dimensions).\n"]
5585    pub get_image_hotspot:
5586        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_point_t>,
5587    #[doc = "\n Returns true (1) if an image representation of drag data is available.\n"]
5588    pub has_image: ::std::option::Option<
5589        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5590    >,
5591}
5592#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5593const _: () = {
5594    ["Size of _cef_drag_data_t"][::std::mem::size_of::<_cef_drag_data_t>() - 256usize];
5595    ["Alignment of _cef_drag_data_t"][::std::mem::align_of::<_cef_drag_data_t>() - 8usize];
5596    ["Offset of field: _cef_drag_data_t::base"]
5597        [::std::mem::offset_of!(_cef_drag_data_t, base) - 0usize];
5598    ["Offset of field: _cef_drag_data_t::clone"]
5599        [::std::mem::offset_of!(_cef_drag_data_t, clone) - 40usize];
5600    ["Offset of field: _cef_drag_data_t::is_read_only"]
5601        [::std::mem::offset_of!(_cef_drag_data_t, is_read_only) - 48usize];
5602    ["Offset of field: _cef_drag_data_t::is_link"]
5603        [::std::mem::offset_of!(_cef_drag_data_t, is_link) - 56usize];
5604    ["Offset of field: _cef_drag_data_t::is_fragment"]
5605        [::std::mem::offset_of!(_cef_drag_data_t, is_fragment) - 64usize];
5606    ["Offset of field: _cef_drag_data_t::is_file"]
5607        [::std::mem::offset_of!(_cef_drag_data_t, is_file) - 72usize];
5608    ["Offset of field: _cef_drag_data_t::get_link_url"]
5609        [::std::mem::offset_of!(_cef_drag_data_t, get_link_url) - 80usize];
5610    ["Offset of field: _cef_drag_data_t::get_link_title"]
5611        [::std::mem::offset_of!(_cef_drag_data_t, get_link_title) - 88usize];
5612    ["Offset of field: _cef_drag_data_t::get_link_metadata"]
5613        [::std::mem::offset_of!(_cef_drag_data_t, get_link_metadata) - 96usize];
5614    ["Offset of field: _cef_drag_data_t::get_fragment_text"]
5615        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_text) - 104usize];
5616    ["Offset of field: _cef_drag_data_t::get_fragment_html"]
5617        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_html) - 112usize];
5618    ["Offset of field: _cef_drag_data_t::get_fragment_base_url"]
5619        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_base_url) - 120usize];
5620    ["Offset of field: _cef_drag_data_t::get_file_name"]
5621        [::std::mem::offset_of!(_cef_drag_data_t, get_file_name) - 128usize];
5622    ["Offset of field: _cef_drag_data_t::get_file_contents"]
5623        [::std::mem::offset_of!(_cef_drag_data_t, get_file_contents) - 136usize];
5624    ["Offset of field: _cef_drag_data_t::get_file_names"]
5625        [::std::mem::offset_of!(_cef_drag_data_t, get_file_names) - 144usize];
5626    ["Offset of field: _cef_drag_data_t::get_file_paths"]
5627        [::std::mem::offset_of!(_cef_drag_data_t, get_file_paths) - 152usize];
5628    ["Offset of field: _cef_drag_data_t::set_link_url"]
5629        [::std::mem::offset_of!(_cef_drag_data_t, set_link_url) - 160usize];
5630    ["Offset of field: _cef_drag_data_t::set_link_title"]
5631        [::std::mem::offset_of!(_cef_drag_data_t, set_link_title) - 168usize];
5632    ["Offset of field: _cef_drag_data_t::set_link_metadata"]
5633        [::std::mem::offset_of!(_cef_drag_data_t, set_link_metadata) - 176usize];
5634    ["Offset of field: _cef_drag_data_t::set_fragment_text"]
5635        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_text) - 184usize];
5636    ["Offset of field: _cef_drag_data_t::set_fragment_html"]
5637        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_html) - 192usize];
5638    ["Offset of field: _cef_drag_data_t::set_fragment_base_url"]
5639        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_base_url) - 200usize];
5640    ["Offset of field: _cef_drag_data_t::reset_file_contents"]
5641        [::std::mem::offset_of!(_cef_drag_data_t, reset_file_contents) - 208usize];
5642    ["Offset of field: _cef_drag_data_t::add_file"]
5643        [::std::mem::offset_of!(_cef_drag_data_t, add_file) - 216usize];
5644    ["Offset of field: _cef_drag_data_t::clear_filenames"]
5645        [::std::mem::offset_of!(_cef_drag_data_t, clear_filenames) - 224usize];
5646    ["Offset of field: _cef_drag_data_t::get_image"]
5647        [::std::mem::offset_of!(_cef_drag_data_t, get_image) - 232usize];
5648    ["Offset of field: _cef_drag_data_t::get_image_hotspot"]
5649        [::std::mem::offset_of!(_cef_drag_data_t, get_image_hotspot) - 240usize];
5650    ["Offset of field: _cef_drag_data_t::has_image"]
5651        [::std::mem::offset_of!(_cef_drag_data_t, has_image) - 248usize];
5652};
5653#[doc = "\n Structure used to represent drag data. The functions of this structure may\n be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5654pub type cef_drag_data_t = _cef_drag_data_t;
5655unsafe extern "C" {
5656    #[doc = "\n Create a new cef_drag_data_t object.\n"]
5657    pub fn cef_drag_data_create() -> *mut cef_drag_data_t;
5658}
5659#[doc = "\n Structure to implement for visiting the DOM. The functions of this structure\n will be called on the render process main thread.\n\n NOTE: This struct is allocated client-side.\n"]
5660#[repr(C)]
5661#[derive(Debug, Copy, Clone)]
5662pub struct _cef_domvisitor_t {
5663    #[doc = "\n Base structure.\n"]
5664    pub base: cef_base_ref_counted_t,
5665    #[doc = "\n Method executed for visiting the DOM. The document object passed to this\n function represents a snapshot of the DOM at the time this function is\n executed. DOM objects are only valid for the scope of this function. Do\n not keep references to or attempt to access any DOM objects outside the\n scope of this function.\n"]
5666    pub visit: ::std::option::Option<
5667        unsafe extern "C" fn(self_: *mut _cef_domvisitor_t, document: *mut _cef_domdocument_t),
5668    >,
5669}
5670#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5671const _: () = {
5672    ["Size of _cef_domvisitor_t"][::std::mem::size_of::<_cef_domvisitor_t>() - 48usize];
5673    ["Alignment of _cef_domvisitor_t"][::std::mem::align_of::<_cef_domvisitor_t>() - 8usize];
5674    ["Offset of field: _cef_domvisitor_t::base"]
5675        [::std::mem::offset_of!(_cef_domvisitor_t, base) - 0usize];
5676    ["Offset of field: _cef_domvisitor_t::visit"]
5677        [::std::mem::offset_of!(_cef_domvisitor_t, visit) - 40usize];
5678};
5679#[doc = "\n Structure to implement for visiting the DOM. The functions of this structure\n will be called on the render process main thread.\n\n NOTE: This struct is allocated client-side.\n"]
5680pub type cef_domvisitor_t = _cef_domvisitor_t;
5681#[doc = "\n Structure used to represent a DOM document. The functions of this structure\n should only be called on the render process main thread thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5682#[repr(C)]
5683#[derive(Debug, Copy, Clone)]
5684pub struct _cef_domdocument_t {
5685    #[doc = "\n Base structure.\n"]
5686    pub base: cef_base_ref_counted_t,
5687    #[doc = "\n Returns the document type.\n"]
5688    pub get_type: ::std::option::Option<
5689        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_dom_document_type_t,
5690    >,
5691    #[doc = "\n Returns the root document node.\n"]
5692    pub get_document: ::std::option::Option<
5693        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
5694    >,
5695    #[doc = "\n Returns the BODY node of an HTML document.\n"]
5696    pub get_body: ::std::option::Option<
5697        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
5698    >,
5699    #[doc = "\n Returns the HEAD node of an HTML document.\n"]
5700    pub get_head: ::std::option::Option<
5701        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
5702    >,
5703    #[doc = "\n Returns the title of an HTML document.\n"]
5704    pub get_title: ::std::option::Option<
5705        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
5706    >,
5707    #[doc = "\n Returns the document element with the specified ID value.\n"]
5708    pub get_element_by_id: ::std::option::Option<
5709        unsafe extern "C" fn(
5710            self_: *mut _cef_domdocument_t,
5711            id: *const cef_string_t,
5712        ) -> *mut _cef_domnode_t,
5713    >,
5714    #[doc = "\n Returns the node that currently has keyboard focus.\n"]
5715    pub get_focused_node: ::std::option::Option<
5716        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
5717    >,
5718    #[doc = "\n Returns true (1) if a portion of the document is selected.\n"]
5719    pub has_selection: ::std::option::Option<
5720        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
5721    >,
5722    #[doc = "\n Returns the selection offset within the start node.\n"]
5723    pub get_selection_start_offset: ::std::option::Option<
5724        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
5725    >,
5726    #[doc = "\n Returns the selection offset within the end node.\n"]
5727    pub get_selection_end_offset: ::std::option::Option<
5728        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
5729    >,
5730    #[doc = "\n Returns the contents of this selection as markup.\n"]
5731    pub get_selection_as_markup: ::std::option::Option<
5732        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
5733    >,
5734    #[doc = "\n Returns the contents of this selection as text.\n"]
5735    pub get_selection_as_text: ::std::option::Option<
5736        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
5737    >,
5738    #[doc = "\n Returns the base URL for the document.\n"]
5739    pub get_base_url: ::std::option::Option<
5740        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
5741    >,
5742    #[doc = "\n Returns a complete URL based on the document base URL and the specified\n partial URL.\n"]
5743    pub get_complete_url: ::std::option::Option<
5744        unsafe extern "C" fn(
5745            self_: *mut _cef_domdocument_t,
5746            partialURL: *const cef_string_t,
5747        ) -> cef_string_userfree_t,
5748    >,
5749}
5750#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5751const _: () = {
5752    ["Size of _cef_domdocument_t"][::std::mem::size_of::<_cef_domdocument_t>() - 152usize];
5753    ["Alignment of _cef_domdocument_t"][::std::mem::align_of::<_cef_domdocument_t>() - 8usize];
5754    ["Offset of field: _cef_domdocument_t::base"]
5755        [::std::mem::offset_of!(_cef_domdocument_t, base) - 0usize];
5756    ["Offset of field: _cef_domdocument_t::get_type"]
5757        [::std::mem::offset_of!(_cef_domdocument_t, get_type) - 40usize];
5758    ["Offset of field: _cef_domdocument_t::get_document"]
5759        [::std::mem::offset_of!(_cef_domdocument_t, get_document) - 48usize];
5760    ["Offset of field: _cef_domdocument_t::get_body"]
5761        [::std::mem::offset_of!(_cef_domdocument_t, get_body) - 56usize];
5762    ["Offset of field: _cef_domdocument_t::get_head"]
5763        [::std::mem::offset_of!(_cef_domdocument_t, get_head) - 64usize];
5764    ["Offset of field: _cef_domdocument_t::get_title"]
5765        [::std::mem::offset_of!(_cef_domdocument_t, get_title) - 72usize];
5766    ["Offset of field: _cef_domdocument_t::get_element_by_id"]
5767        [::std::mem::offset_of!(_cef_domdocument_t, get_element_by_id) - 80usize];
5768    ["Offset of field: _cef_domdocument_t::get_focused_node"]
5769        [::std::mem::offset_of!(_cef_domdocument_t, get_focused_node) - 88usize];
5770    ["Offset of field: _cef_domdocument_t::has_selection"]
5771        [::std::mem::offset_of!(_cef_domdocument_t, has_selection) - 96usize];
5772    ["Offset of field: _cef_domdocument_t::get_selection_start_offset"]
5773        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_start_offset) - 104usize];
5774    ["Offset of field: _cef_domdocument_t::get_selection_end_offset"]
5775        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_end_offset) - 112usize];
5776    ["Offset of field: _cef_domdocument_t::get_selection_as_markup"]
5777        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_as_markup) - 120usize];
5778    ["Offset of field: _cef_domdocument_t::get_selection_as_text"]
5779        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_as_text) - 128usize];
5780    ["Offset of field: _cef_domdocument_t::get_base_url"]
5781        [::std::mem::offset_of!(_cef_domdocument_t, get_base_url) - 136usize];
5782    ["Offset of field: _cef_domdocument_t::get_complete_url"]
5783        [::std::mem::offset_of!(_cef_domdocument_t, get_complete_url) - 144usize];
5784};
5785#[doc = "\n Structure used to represent a DOM document. The functions of this structure\n should only be called on the render process main thread thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5786pub type cef_domdocument_t = _cef_domdocument_t;
5787#[doc = "\n Structure used to represent a DOM node. The functions of this structure\n should only be called on the render process main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5788#[repr(C)]
5789#[derive(Debug, Copy, Clone)]
5790pub struct _cef_domnode_t {
5791    #[doc = "\n Base structure.\n"]
5792    pub base: cef_base_ref_counted_t,
5793    #[doc = "\n Returns the type for this node.\n"]
5794    pub get_type: ::std::option::Option<
5795        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_dom_node_type_t,
5796    >,
5797    #[doc = "\n Returns true (1) if this is a text node.\n"]
5798    pub is_text: ::std::option::Option<
5799        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5800    >,
5801    #[doc = "\n Returns true (1) if this is an element node.\n"]
5802    pub is_element: ::std::option::Option<
5803        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5804    >,
5805    #[doc = "\n Returns true (1) if this is an editable node.\n"]
5806    pub is_editable: ::std::option::Option<
5807        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5808    >,
5809    #[doc = "\n Returns true (1) if this is a form control element node.\n"]
5810    pub is_form_control_element: ::std::option::Option<
5811        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5812    >,
5813    #[doc = "\n Returns the type of this form control element node.\n"]
5814    pub get_form_control_element_type: ::std::option::Option<
5815        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_dom_form_control_type_t,
5816    >,
5817    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
5818    pub is_same: ::std::option::Option<
5819        unsafe extern "C" fn(
5820            self_: *mut _cef_domnode_t,
5821            that: *mut _cef_domnode_t,
5822        ) -> ::std::os::raw::c_int,
5823    >,
5824    #[doc = "\n Returns the name of this node.\n"]
5825    pub get_name: ::std::option::Option<
5826        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
5827    >,
5828    #[doc = "\n Returns the value of this node.\n"]
5829    pub get_value: ::std::option::Option<
5830        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
5831    >,
5832    #[doc = "\n Set the value of this node. Returns true (1) on success.\n"]
5833    pub set_value: ::std::option::Option<
5834        unsafe extern "C" fn(
5835            self_: *mut _cef_domnode_t,
5836            value: *const cef_string_t,
5837        ) -> ::std::os::raw::c_int,
5838    >,
5839    #[doc = "\n Returns the contents of this node as markup.\n"]
5840    pub get_as_markup: ::std::option::Option<
5841        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
5842    >,
5843    #[doc = "\n Returns the document associated with this node.\n"]
5844    pub get_document: ::std::option::Option<
5845        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domdocument_t,
5846    >,
5847    #[doc = "\n Returns the parent node.\n"]
5848    pub get_parent: ::std::option::Option<
5849        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
5850    >,
5851    #[doc = "\n Returns the previous sibling node.\n"]
5852    pub get_previous_sibling: ::std::option::Option<
5853        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
5854    >,
5855    #[doc = "\n Returns the next sibling node.\n"]
5856    pub get_next_sibling: ::std::option::Option<
5857        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
5858    >,
5859    #[doc = "\n Returns true (1) if this node has child nodes.\n"]
5860    pub has_children: ::std::option::Option<
5861        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5862    >,
5863    #[doc = "\n Return the first child node.\n"]
5864    pub get_first_child: ::std::option::Option<
5865        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
5866    >,
5867    #[doc = "\n Returns the last child node.\n"]
5868    pub get_last_child: ::std::option::Option<
5869        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
5870    >,
5871    #[doc = "\n Returns the tag name of this element.\n"]
5872    pub get_element_tag_name: ::std::option::Option<
5873        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
5874    >,
5875    #[doc = "\n Returns true (1) if this element has attributes.\n"]
5876    pub has_element_attributes: ::std::option::Option<
5877        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
5878    >,
5879    #[doc = "\n Returns true (1) if this element has an attribute named |attrName|.\n"]
5880    pub has_element_attribute: ::std::option::Option<
5881        unsafe extern "C" fn(
5882            self_: *mut _cef_domnode_t,
5883            attrName: *const cef_string_t,
5884        ) -> ::std::os::raw::c_int,
5885    >,
5886    #[doc = "\n Returns the element attribute named |attrName|.\n"]
5887    pub get_element_attribute: ::std::option::Option<
5888        unsafe extern "C" fn(
5889            self_: *mut _cef_domnode_t,
5890            attrName: *const cef_string_t,
5891        ) -> cef_string_userfree_t,
5892    >,
5893    #[doc = "\n Returns a map of all element attributes.\n"]
5894    pub get_element_attributes: ::std::option::Option<
5895        unsafe extern "C" fn(self_: *mut _cef_domnode_t, attrMap: cef_string_map_t),
5896    >,
5897    #[doc = "\n Set the value for the element attribute named |attrName|. Returns true (1)\n on success.\n"]
5898    pub set_element_attribute: ::std::option::Option<
5899        unsafe extern "C" fn(
5900            self_: *mut _cef_domnode_t,
5901            attrName: *const cef_string_t,
5902            value: *const cef_string_t,
5903        ) -> ::std::os::raw::c_int,
5904    >,
5905    #[doc = "\n Returns the inner text of the element.\n"]
5906    pub get_element_inner_text: ::std::option::Option<
5907        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
5908    >,
5909    #[doc = "\n Returns the bounds of the element in device pixels. Use\n \"window.devicePixelRatio\" to convert to/from CSS pixels.\n"]
5910    pub get_element_bounds:
5911        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_rect_t>,
5912}
5913#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5914const _: () = {
5915    ["Size of _cef_domnode_t"][::std::mem::size_of::<_cef_domnode_t>() - 248usize];
5916    ["Alignment of _cef_domnode_t"][::std::mem::align_of::<_cef_domnode_t>() - 8usize];
5917    ["Offset of field: _cef_domnode_t::base"]
5918        [::std::mem::offset_of!(_cef_domnode_t, base) - 0usize];
5919    ["Offset of field: _cef_domnode_t::get_type"]
5920        [::std::mem::offset_of!(_cef_domnode_t, get_type) - 40usize];
5921    ["Offset of field: _cef_domnode_t::is_text"]
5922        [::std::mem::offset_of!(_cef_domnode_t, is_text) - 48usize];
5923    ["Offset of field: _cef_domnode_t::is_element"]
5924        [::std::mem::offset_of!(_cef_domnode_t, is_element) - 56usize];
5925    ["Offset of field: _cef_domnode_t::is_editable"]
5926        [::std::mem::offset_of!(_cef_domnode_t, is_editable) - 64usize];
5927    ["Offset of field: _cef_domnode_t::is_form_control_element"]
5928        [::std::mem::offset_of!(_cef_domnode_t, is_form_control_element) - 72usize];
5929    ["Offset of field: _cef_domnode_t::get_form_control_element_type"]
5930        [::std::mem::offset_of!(_cef_domnode_t, get_form_control_element_type) - 80usize];
5931    ["Offset of field: _cef_domnode_t::is_same"]
5932        [::std::mem::offset_of!(_cef_domnode_t, is_same) - 88usize];
5933    ["Offset of field: _cef_domnode_t::get_name"]
5934        [::std::mem::offset_of!(_cef_domnode_t, get_name) - 96usize];
5935    ["Offset of field: _cef_domnode_t::get_value"]
5936        [::std::mem::offset_of!(_cef_domnode_t, get_value) - 104usize];
5937    ["Offset of field: _cef_domnode_t::set_value"]
5938        [::std::mem::offset_of!(_cef_domnode_t, set_value) - 112usize];
5939    ["Offset of field: _cef_domnode_t::get_as_markup"]
5940        [::std::mem::offset_of!(_cef_domnode_t, get_as_markup) - 120usize];
5941    ["Offset of field: _cef_domnode_t::get_document"]
5942        [::std::mem::offset_of!(_cef_domnode_t, get_document) - 128usize];
5943    ["Offset of field: _cef_domnode_t::get_parent"]
5944        [::std::mem::offset_of!(_cef_domnode_t, get_parent) - 136usize];
5945    ["Offset of field: _cef_domnode_t::get_previous_sibling"]
5946        [::std::mem::offset_of!(_cef_domnode_t, get_previous_sibling) - 144usize];
5947    ["Offset of field: _cef_domnode_t::get_next_sibling"]
5948        [::std::mem::offset_of!(_cef_domnode_t, get_next_sibling) - 152usize];
5949    ["Offset of field: _cef_domnode_t::has_children"]
5950        [::std::mem::offset_of!(_cef_domnode_t, has_children) - 160usize];
5951    ["Offset of field: _cef_domnode_t::get_first_child"]
5952        [::std::mem::offset_of!(_cef_domnode_t, get_first_child) - 168usize];
5953    ["Offset of field: _cef_domnode_t::get_last_child"]
5954        [::std::mem::offset_of!(_cef_domnode_t, get_last_child) - 176usize];
5955    ["Offset of field: _cef_domnode_t::get_element_tag_name"]
5956        [::std::mem::offset_of!(_cef_domnode_t, get_element_tag_name) - 184usize];
5957    ["Offset of field: _cef_domnode_t::has_element_attributes"]
5958        [::std::mem::offset_of!(_cef_domnode_t, has_element_attributes) - 192usize];
5959    ["Offset of field: _cef_domnode_t::has_element_attribute"]
5960        [::std::mem::offset_of!(_cef_domnode_t, has_element_attribute) - 200usize];
5961    ["Offset of field: _cef_domnode_t::get_element_attribute"]
5962        [::std::mem::offset_of!(_cef_domnode_t, get_element_attribute) - 208usize];
5963    ["Offset of field: _cef_domnode_t::get_element_attributes"]
5964        [::std::mem::offset_of!(_cef_domnode_t, get_element_attributes) - 216usize];
5965    ["Offset of field: _cef_domnode_t::set_element_attribute"]
5966        [::std::mem::offset_of!(_cef_domnode_t, set_element_attribute) - 224usize];
5967    ["Offset of field: _cef_domnode_t::get_element_inner_text"]
5968        [::std::mem::offset_of!(_cef_domnode_t, get_element_inner_text) - 232usize];
5969    ["Offset of field: _cef_domnode_t::get_element_bounds"]
5970        [::std::mem::offset_of!(_cef_domnode_t, get_element_bounds) - 240usize];
5971};
5972#[doc = "\n Structure used to represent a DOM node. The functions of this structure\n should only be called on the render process main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
5973pub type cef_domnode_t = _cef_domnode_t;
5974#[doc = "\n Structure that wraps platform-dependent share memory region mapping.\n\n NOTE: This struct is allocated DLL-side.\n"]
5975#[repr(C)]
5976#[derive(Debug, Copy, Clone)]
5977pub struct _cef_shared_memory_region_t {
5978    #[doc = "\n Base structure.\n"]
5979    pub base: cef_base_ref_counted_t,
5980    #[doc = "\n Returns true (1) if the mapping is valid.\n"]
5981    pub is_valid: ::std::option::Option<
5982        unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> ::std::os::raw::c_int,
5983    >,
5984    #[doc = "\n Returns the size of the mapping in bytes. Returns 0 for invalid instances.\n"]
5985    pub size: ::std::option::Option<
5986        unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> usize,
5987    >,
5988    #[doc = "\n Returns the pointer to the memory. Returns nullptr for invalid instances.\n The returned pointer is only valid for the life span of this object.\n"]
5989    pub memory: ::std::option::Option<
5990        unsafe extern "C" fn(
5991            self_: *mut _cef_shared_memory_region_t,
5992        ) -> *mut ::std::os::raw::c_void,
5993    >,
5994}
5995#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5996const _: () = {
5997    ["Size of _cef_shared_memory_region_t"]
5998        [::std::mem::size_of::<_cef_shared_memory_region_t>() - 64usize];
5999    ["Alignment of _cef_shared_memory_region_t"]
6000        [::std::mem::align_of::<_cef_shared_memory_region_t>() - 8usize];
6001    ["Offset of field: _cef_shared_memory_region_t::base"]
6002        [::std::mem::offset_of!(_cef_shared_memory_region_t, base) - 0usize];
6003    ["Offset of field: _cef_shared_memory_region_t::is_valid"]
6004        [::std::mem::offset_of!(_cef_shared_memory_region_t, is_valid) - 40usize];
6005    ["Offset of field: _cef_shared_memory_region_t::size"]
6006        [::std::mem::offset_of!(_cef_shared_memory_region_t, size) - 48usize];
6007    ["Offset of field: _cef_shared_memory_region_t::memory"]
6008        [::std::mem::offset_of!(_cef_shared_memory_region_t, memory) - 56usize];
6009};
6010#[doc = "\n Structure that wraps platform-dependent share memory region mapping.\n\n NOTE: This struct is allocated DLL-side.\n"]
6011pub type cef_shared_memory_region_t = _cef_shared_memory_region_t;
6012#[doc = "\n Structure representing a message. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6013#[repr(C)]
6014#[derive(Debug, Copy, Clone)]
6015pub struct _cef_process_message_t {
6016    #[doc = "\n Base structure.\n"]
6017    pub base: cef_base_ref_counted_t,
6018    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
6019    pub is_valid: ::std::option::Option<
6020        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int,
6021    >,
6022    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
6023    pub is_read_only: ::std::option::Option<
6024        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int,
6025    >,
6026    #[doc = "\n Returns a writable copy of this object. Returns nullptr when message\n contains a shared memory region.\n"]
6027    pub copy: ::std::option::Option<
6028        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> *mut _cef_process_message_t,
6029    >,
6030    #[doc = "\n Returns the message name.\n"]
6031    pub get_name: ::std::option::Option<
6032        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> cef_string_userfree_t,
6033    >,
6034    #[doc = "\n Returns the list of arguments. Returns nullptr when message contains a\n shared memory region.\n"]
6035    pub get_argument_list: ::std::option::Option<
6036        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> *mut _cef_list_value_t,
6037    >,
6038    #[doc = "\n Returns the shared memory region. Returns nullptr when message contains an\n argument list.\n"]
6039    pub get_shared_memory_region: ::std::option::Option<
6040        unsafe extern "C" fn(
6041            self_: *mut _cef_process_message_t,
6042        ) -> *mut _cef_shared_memory_region_t,
6043    >,
6044}
6045#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6046const _: () = {
6047    ["Size of _cef_process_message_t"][::std::mem::size_of::<_cef_process_message_t>() - 88usize];
6048    ["Alignment of _cef_process_message_t"]
6049        [::std::mem::align_of::<_cef_process_message_t>() - 8usize];
6050    ["Offset of field: _cef_process_message_t::base"]
6051        [::std::mem::offset_of!(_cef_process_message_t, base) - 0usize];
6052    ["Offset of field: _cef_process_message_t::is_valid"]
6053        [::std::mem::offset_of!(_cef_process_message_t, is_valid) - 40usize];
6054    ["Offset of field: _cef_process_message_t::is_read_only"]
6055        [::std::mem::offset_of!(_cef_process_message_t, is_read_only) - 48usize];
6056    ["Offset of field: _cef_process_message_t::copy"]
6057        [::std::mem::offset_of!(_cef_process_message_t, copy) - 56usize];
6058    ["Offset of field: _cef_process_message_t::get_name"]
6059        [::std::mem::offset_of!(_cef_process_message_t, get_name) - 64usize];
6060    ["Offset of field: _cef_process_message_t::get_argument_list"]
6061        [::std::mem::offset_of!(_cef_process_message_t, get_argument_list) - 72usize];
6062    ["Offset of field: _cef_process_message_t::get_shared_memory_region"]
6063        [::std::mem::offset_of!(_cef_process_message_t, get_shared_memory_region) - 80usize];
6064};
6065#[doc = "\n Structure representing a message. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6066pub type cef_process_message_t = _cef_process_message_t;
6067unsafe extern "C" {
6068    #[doc = "\n Create a new cef_process_message_t object with the specified name.\n"]
6069    pub fn cef_process_message_create(name: *const cef_string_t) -> *mut cef_process_message_t;
6070}
6071#[doc = "\n Structure used to represent a web request. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6072#[repr(C)]
6073#[derive(Debug, Copy, Clone)]
6074pub struct _cef_request_t {
6075    #[doc = "\n Base structure.\n"]
6076    pub base: cef_base_ref_counted_t,
6077    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6078    pub is_read_only: ::std::option::Option<
6079        unsafe extern "C" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int,
6080    >,
6081    #[doc = "\n Get the fully qualified URL.\n"]
6082    pub get_url: ::std::option::Option<
6083        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6084    >,
6085    #[doc = "\n Set the fully qualified URL.\n"]
6086    pub set_url: ::std::option::Option<
6087        unsafe extern "C" fn(self_: *mut _cef_request_t, url: *const cef_string_t),
6088    >,
6089    #[doc = "\n Get the request function type. The value will default to POST if post data\n is provided and GET otherwise.\n"]
6090    pub get_method: ::std::option::Option<
6091        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6092    >,
6093    #[doc = "\n Set the request function type.\n"]
6094    pub set_method: ::std::option::Option<
6095        unsafe extern "C" fn(self_: *mut _cef_request_t, method: *const cef_string_t),
6096    >,
6097    #[doc = "\n Set the referrer URL and policy. If non-NULL the referrer URL must be\n fully qualified with an HTTP or HTTPS scheme component. Any username,\n password or ref component will be removed.\n"]
6098    pub set_referrer: ::std::option::Option<
6099        unsafe extern "C" fn(
6100            self_: *mut _cef_request_t,
6101            referrer_url: *const cef_string_t,
6102            policy: cef_referrer_policy_t,
6103        ),
6104    >,
6105    #[doc = "\n Get the referrer URL.\n"]
6106    pub get_referrer_url: ::std::option::Option<
6107        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6108    >,
6109    #[doc = "\n Get the referrer policy.\n"]
6110    pub get_referrer_policy: ::std::option::Option<
6111        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_referrer_policy_t,
6112    >,
6113    #[doc = "\n Get the post data.\n"]
6114    pub get_post_data: ::std::option::Option<
6115        unsafe extern "C" fn(self_: *mut _cef_request_t) -> *mut _cef_post_data_t,
6116    >,
6117    #[doc = "\n Set the post data.\n"]
6118    pub set_post_data: ::std::option::Option<
6119        unsafe extern "C" fn(self_: *mut _cef_request_t, postData: *mut _cef_post_data_t),
6120    >,
6121    #[doc = "\n Get the header values. Will not include the Referer value if any.\n"]
6122    pub get_header_map: ::std::option::Option<
6123        unsafe extern "C" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t),
6124    >,
6125    #[doc = "\n Set the header values. If a Referer value exists in the header map it will\n be removed and ignored.\n"]
6126    pub set_header_map: ::std::option::Option<
6127        unsafe extern "C" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t),
6128    >,
6129    #[doc = "\n Returns the first header value for |name| or an NULL string if not found.\n Will not return the Referer value if any. Use GetHeaderMap instead if\n |name| might have multiple values.\n"]
6130    pub get_header_by_name: ::std::option::Option<
6131        unsafe extern "C" fn(
6132            self_: *mut _cef_request_t,
6133            name: *const cef_string_t,
6134        ) -> cef_string_userfree_t,
6135    >,
6136    #[doc = "\n Set the header |name| to |value|. If |overwrite| is true (1) any existing\n values will be replaced with the new value. If |overwrite| is false (0)\n any existing values will not be overwritten. The Referer value cannot be\n set using this function.\n"]
6137    pub set_header_by_name: ::std::option::Option<
6138        unsafe extern "C" fn(
6139            self_: *mut _cef_request_t,
6140            name: *const cef_string_t,
6141            value: *const cef_string_t,
6142            overwrite: ::std::os::raw::c_int,
6143        ),
6144    >,
6145    #[doc = "\n Set all values at one time.\n"]
6146    pub set: ::std::option::Option<
6147        unsafe extern "C" fn(
6148            self_: *mut _cef_request_t,
6149            url: *const cef_string_t,
6150            method: *const cef_string_t,
6151            postData: *mut _cef_post_data_t,
6152            headerMap: cef_string_multimap_t,
6153        ),
6154    >,
6155    #[doc = "\n Get the flags used in combination with cef_urlrequest_t. See\n cef_urlrequest_flags_t for supported values.\n"]
6156    pub get_flags: ::std::option::Option<
6157        unsafe extern "C" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int,
6158    >,
6159    #[doc = "\n Set the flags used in combination with cef_urlrequest_t.  See\n cef_urlrequest_flags_t for supported values.\n"]
6160    pub set_flags: ::std::option::Option<
6161        unsafe extern "C" fn(self_: *mut _cef_request_t, flags: ::std::os::raw::c_int),
6162    >,
6163    #[doc = "\n Get the URL to the first party for cookies used in combination with\n cef_urlrequest_t.\n"]
6164    pub get_first_party_for_cookies: ::std::option::Option<
6165        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6166    >,
6167    #[doc = "\n Set the URL to the first party for cookies used in combination with\n cef_urlrequest_t.\n"]
6168    pub set_first_party_for_cookies: ::std::option::Option<
6169        unsafe extern "C" fn(self_: *mut _cef_request_t, url: *const cef_string_t),
6170    >,
6171    #[doc = "\n Get the resource type for this request. Only available in the browser\n process.\n"]
6172    pub get_resource_type: ::std::option::Option<
6173        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_resource_type_t,
6174    >,
6175    #[doc = "\n Get the transition type for this request. Only available in the browser\n process and only applies to requests that represent a main frame or sub-\n frame navigation.\n"]
6176    pub get_transition_type: ::std::option::Option<
6177        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_transition_type_t,
6178    >,
6179    #[doc = "\n Returns the globally unique identifier for this request or 0 if not\n specified. Can be used by cef_resource_request_handler_t implementations\n in the browser process to track a single request across multiple\n callbacks.\n"]
6180    pub get_identifier:
6181        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_request_t) -> u64>,
6182}
6183#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6184const _: () = {
6185    ["Size of _cef_request_t"][::std::mem::size_of::<_cef_request_t>() - 216usize];
6186    ["Alignment of _cef_request_t"][::std::mem::align_of::<_cef_request_t>() - 8usize];
6187    ["Offset of field: _cef_request_t::base"]
6188        [::std::mem::offset_of!(_cef_request_t, base) - 0usize];
6189    ["Offset of field: _cef_request_t::is_read_only"]
6190        [::std::mem::offset_of!(_cef_request_t, is_read_only) - 40usize];
6191    ["Offset of field: _cef_request_t::get_url"]
6192        [::std::mem::offset_of!(_cef_request_t, get_url) - 48usize];
6193    ["Offset of field: _cef_request_t::set_url"]
6194        [::std::mem::offset_of!(_cef_request_t, set_url) - 56usize];
6195    ["Offset of field: _cef_request_t::get_method"]
6196        [::std::mem::offset_of!(_cef_request_t, get_method) - 64usize];
6197    ["Offset of field: _cef_request_t::set_method"]
6198        [::std::mem::offset_of!(_cef_request_t, set_method) - 72usize];
6199    ["Offset of field: _cef_request_t::set_referrer"]
6200        [::std::mem::offset_of!(_cef_request_t, set_referrer) - 80usize];
6201    ["Offset of field: _cef_request_t::get_referrer_url"]
6202        [::std::mem::offset_of!(_cef_request_t, get_referrer_url) - 88usize];
6203    ["Offset of field: _cef_request_t::get_referrer_policy"]
6204        [::std::mem::offset_of!(_cef_request_t, get_referrer_policy) - 96usize];
6205    ["Offset of field: _cef_request_t::get_post_data"]
6206        [::std::mem::offset_of!(_cef_request_t, get_post_data) - 104usize];
6207    ["Offset of field: _cef_request_t::set_post_data"]
6208        [::std::mem::offset_of!(_cef_request_t, set_post_data) - 112usize];
6209    ["Offset of field: _cef_request_t::get_header_map"]
6210        [::std::mem::offset_of!(_cef_request_t, get_header_map) - 120usize];
6211    ["Offset of field: _cef_request_t::set_header_map"]
6212        [::std::mem::offset_of!(_cef_request_t, set_header_map) - 128usize];
6213    ["Offset of field: _cef_request_t::get_header_by_name"]
6214        [::std::mem::offset_of!(_cef_request_t, get_header_by_name) - 136usize];
6215    ["Offset of field: _cef_request_t::set_header_by_name"]
6216        [::std::mem::offset_of!(_cef_request_t, set_header_by_name) - 144usize];
6217    ["Offset of field: _cef_request_t::set"]
6218        [::std::mem::offset_of!(_cef_request_t, set) - 152usize];
6219    ["Offset of field: _cef_request_t::get_flags"]
6220        [::std::mem::offset_of!(_cef_request_t, get_flags) - 160usize];
6221    ["Offset of field: _cef_request_t::set_flags"]
6222        [::std::mem::offset_of!(_cef_request_t, set_flags) - 168usize];
6223    ["Offset of field: _cef_request_t::get_first_party_for_cookies"]
6224        [::std::mem::offset_of!(_cef_request_t, get_first_party_for_cookies) - 176usize];
6225    ["Offset of field: _cef_request_t::set_first_party_for_cookies"]
6226        [::std::mem::offset_of!(_cef_request_t, set_first_party_for_cookies) - 184usize];
6227    ["Offset of field: _cef_request_t::get_resource_type"]
6228        [::std::mem::offset_of!(_cef_request_t, get_resource_type) - 192usize];
6229    ["Offset of field: _cef_request_t::get_transition_type"]
6230        [::std::mem::offset_of!(_cef_request_t, get_transition_type) - 200usize];
6231    ["Offset of field: _cef_request_t::get_identifier"]
6232        [::std::mem::offset_of!(_cef_request_t, get_identifier) - 208usize];
6233};
6234#[doc = "\n Structure used to represent a web request. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6235pub type cef_request_t = _cef_request_t;
6236unsafe extern "C" {
6237    #[doc = "\n Create a new cef_request_t object.\n"]
6238    pub fn cef_request_create() -> *mut cef_request_t;
6239}
6240#[doc = "\n Structure used to represent post data for a web request. The functions of\n this structure may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6241#[repr(C)]
6242#[derive(Debug, Copy, Clone)]
6243pub struct _cef_post_data_t {
6244    #[doc = "\n Base structure.\n"]
6245    pub base: cef_base_ref_counted_t,
6246    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6247    pub is_read_only: ::std::option::Option<
6248        unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int,
6249    >,
6250    #[doc = "\n Returns true (1) if the underlying POST data includes elements that are\n not represented by this cef_post_data_t object (for example, multi-part\n file upload data). Modifying cef_post_data_t objects with excluded\n elements may result in the request failing.\n"]
6251    pub has_excluded_elements: ::std::option::Option<
6252        unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int,
6253    >,
6254    #[doc = "\n Returns the number of existing post data elements.\n"]
6255    pub get_element_count:
6256        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> usize>,
6257    #[doc = "\n Retrieve the post data elements.\n"]
6258    pub get_elements: ::std::option::Option<
6259        unsafe extern "C" fn(
6260            self_: *mut _cef_post_data_t,
6261            elementsCount: *mut usize,
6262            elements: *mut *mut _cef_post_data_element_t,
6263        ),
6264    >,
6265    #[doc = "\n Remove the specified post data element.  Returns true (1) if the removal\n succeeds.\n"]
6266    pub remove_element: ::std::option::Option<
6267        unsafe extern "C" fn(
6268            self_: *mut _cef_post_data_t,
6269            element: *mut _cef_post_data_element_t,
6270        ) -> ::std::os::raw::c_int,
6271    >,
6272    #[doc = "\n Add the specified post data element.  Returns true (1) if the add\n succeeds.\n"]
6273    pub add_element: ::std::option::Option<
6274        unsafe extern "C" fn(
6275            self_: *mut _cef_post_data_t,
6276            element: *mut _cef_post_data_element_t,
6277        ) -> ::std::os::raw::c_int,
6278    >,
6279    #[doc = "\n Remove all existing post data elements.\n"]
6280    pub remove_elements: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t)>,
6281}
6282#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6283const _: () = {
6284    ["Size of _cef_post_data_t"][::std::mem::size_of::<_cef_post_data_t>() - 96usize];
6285    ["Alignment of _cef_post_data_t"][::std::mem::align_of::<_cef_post_data_t>() - 8usize];
6286    ["Offset of field: _cef_post_data_t::base"]
6287        [::std::mem::offset_of!(_cef_post_data_t, base) - 0usize];
6288    ["Offset of field: _cef_post_data_t::is_read_only"]
6289        [::std::mem::offset_of!(_cef_post_data_t, is_read_only) - 40usize];
6290    ["Offset of field: _cef_post_data_t::has_excluded_elements"]
6291        [::std::mem::offset_of!(_cef_post_data_t, has_excluded_elements) - 48usize];
6292    ["Offset of field: _cef_post_data_t::get_element_count"]
6293        [::std::mem::offset_of!(_cef_post_data_t, get_element_count) - 56usize];
6294    ["Offset of field: _cef_post_data_t::get_elements"]
6295        [::std::mem::offset_of!(_cef_post_data_t, get_elements) - 64usize];
6296    ["Offset of field: _cef_post_data_t::remove_element"]
6297        [::std::mem::offset_of!(_cef_post_data_t, remove_element) - 72usize];
6298    ["Offset of field: _cef_post_data_t::add_element"]
6299        [::std::mem::offset_of!(_cef_post_data_t, add_element) - 80usize];
6300    ["Offset of field: _cef_post_data_t::remove_elements"]
6301        [::std::mem::offset_of!(_cef_post_data_t, remove_elements) - 88usize];
6302};
6303#[doc = "\n Structure used to represent post data for a web request. The functions of\n this structure may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6304pub type cef_post_data_t = _cef_post_data_t;
6305unsafe extern "C" {
6306    #[doc = "\n Create a new cef_post_data_t object.\n"]
6307    pub fn cef_post_data_create() -> *mut cef_post_data_t;
6308}
6309#[doc = "\n Structure used to represent a single element in the request post data. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6310#[repr(C)]
6311#[derive(Debug, Copy, Clone)]
6312pub struct _cef_post_data_element_t {
6313    #[doc = "\n Base structure.\n"]
6314    pub base: cef_base_ref_counted_t,
6315    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6316    pub is_read_only: ::std::option::Option<
6317        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> ::std::os::raw::c_int,
6318    >,
6319    #[doc = "\n Remove all contents from the post data element.\n"]
6320    pub set_to_empty:
6321        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_element_t)>,
6322    #[doc = "\n The post data element will represent a file.\n"]
6323    pub set_to_file: ::std::option::Option<
6324        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t, fileName: *const cef_string_t),
6325    >,
6326    #[doc = "\n The post data element will represent bytes.  The bytes passed in will be\n copied.\n"]
6327    pub set_to_bytes: ::std::option::Option<
6328        unsafe extern "C" fn(
6329            self_: *mut _cef_post_data_element_t,
6330            size: usize,
6331            bytes: *const ::std::os::raw::c_void,
6332        ),
6333    >,
6334    #[doc = "\n Return the type of this post data element.\n"]
6335    pub get_type: ::std::option::Option<
6336        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> cef_postdataelement_type_t,
6337    >,
6338    #[doc = "\n Return the file name.\n"]
6339    pub get_file: ::std::option::Option<
6340        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> cef_string_userfree_t,
6341    >,
6342    #[doc = "\n Return the number of bytes.\n"]
6343    pub get_bytes_count:
6344        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> usize>,
6345    #[doc = "\n Read up to |size| bytes into |bytes| and return the number of bytes\n actually read.\n"]
6346    pub get_bytes: ::std::option::Option<
6347        unsafe extern "C" fn(
6348            self_: *mut _cef_post_data_element_t,
6349            size: usize,
6350            bytes: *mut ::std::os::raw::c_void,
6351        ) -> usize,
6352    >,
6353}
6354#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6355const _: () = {
6356    ["Size of _cef_post_data_element_t"]
6357        [::std::mem::size_of::<_cef_post_data_element_t>() - 104usize];
6358    ["Alignment of _cef_post_data_element_t"]
6359        [::std::mem::align_of::<_cef_post_data_element_t>() - 8usize];
6360    ["Offset of field: _cef_post_data_element_t::base"]
6361        [::std::mem::offset_of!(_cef_post_data_element_t, base) - 0usize];
6362    ["Offset of field: _cef_post_data_element_t::is_read_only"]
6363        [::std::mem::offset_of!(_cef_post_data_element_t, is_read_only) - 40usize];
6364    ["Offset of field: _cef_post_data_element_t::set_to_empty"]
6365        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_empty) - 48usize];
6366    ["Offset of field: _cef_post_data_element_t::set_to_file"]
6367        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_file) - 56usize];
6368    ["Offset of field: _cef_post_data_element_t::set_to_bytes"]
6369        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_bytes) - 64usize];
6370    ["Offset of field: _cef_post_data_element_t::get_type"]
6371        [::std::mem::offset_of!(_cef_post_data_element_t, get_type) - 72usize];
6372    ["Offset of field: _cef_post_data_element_t::get_file"]
6373        [::std::mem::offset_of!(_cef_post_data_element_t, get_file) - 80usize];
6374    ["Offset of field: _cef_post_data_element_t::get_bytes_count"]
6375        [::std::mem::offset_of!(_cef_post_data_element_t, get_bytes_count) - 88usize];
6376    ["Offset of field: _cef_post_data_element_t::get_bytes"]
6377        [::std::mem::offset_of!(_cef_post_data_element_t, get_bytes) - 96usize];
6378};
6379#[doc = "\n Structure used to represent a single element in the request post data. The\n functions of this structure may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6380pub type cef_post_data_element_t = _cef_post_data_element_t;
6381unsafe extern "C" {
6382    #[doc = "\n Create a new cef_post_data_element_t object.\n"]
6383    pub fn cef_post_data_element_create() -> *mut cef_post_data_element_t;
6384}
6385#[doc = "\n Implement this structure to receive string values asynchronously.\n\n NOTE: This struct is allocated client-side.\n"]
6386#[repr(C)]
6387#[derive(Debug, Copy, Clone)]
6388pub struct _cef_string_visitor_t {
6389    #[doc = "\n Base structure.\n"]
6390    pub base: cef_base_ref_counted_t,
6391    #[doc = "\n Method that will be executed.\n"]
6392    pub visit: ::std::option::Option<
6393        unsafe extern "C" fn(self_: *mut _cef_string_visitor_t, string: *const cef_string_t),
6394    >,
6395}
6396#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6397const _: () = {
6398    ["Size of _cef_string_visitor_t"][::std::mem::size_of::<_cef_string_visitor_t>() - 48usize];
6399    ["Alignment of _cef_string_visitor_t"]
6400        [::std::mem::align_of::<_cef_string_visitor_t>() - 8usize];
6401    ["Offset of field: _cef_string_visitor_t::base"]
6402        [::std::mem::offset_of!(_cef_string_visitor_t, base) - 0usize];
6403    ["Offset of field: _cef_string_visitor_t::visit"]
6404        [::std::mem::offset_of!(_cef_string_visitor_t, visit) - 40usize];
6405};
6406#[doc = "\n Implement this structure to receive string values asynchronously.\n\n NOTE: This struct is allocated client-side.\n"]
6407pub type cef_string_visitor_t = _cef_string_visitor_t;
6408#[doc = "\n Structure used to represent a frame in the browser window. When used in the\n browser process the functions of this structure may be called on any thread\n unless otherwise indicated in the comments. When used in the render process\n the functions of this structure may only be called on the main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6409#[repr(C)]
6410#[derive(Debug, Copy, Clone)]
6411pub struct _cef_frame_t {
6412    #[doc = "\n Base structure.\n"]
6413    pub base: cef_base_ref_counted_t,
6414    #[doc = "\n True if this object is currently attached to a valid frame.\n"]
6415    pub is_valid: ::std::option::Option<
6416        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6417    >,
6418    #[doc = "\n Execute undo in this frame.\n"]
6419    pub undo: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6420    #[doc = "\n Execute redo in this frame.\n"]
6421    pub redo: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6422    #[doc = "\n Execute cut in this frame.\n"]
6423    pub cut: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6424    #[doc = "\n Execute copy in this frame.\n"]
6425    pub copy: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6426    #[doc = "\n Execute paste in this frame.\n"]
6427    pub paste: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6428    #[doc = "\n Execute paste and match style in this frame.\n"]
6429    pub paste_and_match_style:
6430        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6431    #[doc = "\n Execute delete in this frame.\n"]
6432    pub del: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6433    #[doc = "\n Execute select all in this frame.\n"]
6434    pub select_all: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6435    #[doc = "\n Save this frame's HTML source to a temporary file and open it in the\n default text viewing application. This function can only be called from\n the browser process.\n"]
6436    pub view_source: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6437    #[doc = "\n Retrieve this frame's HTML source as a string sent to the specified\n visitor.\n"]
6438    pub get_source: ::std::option::Option<
6439        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t),
6440    >,
6441    #[doc = "\n Retrieve this frame's display text as a string sent to the specified\n visitor.\n"]
6442    pub get_text: ::std::option::Option<
6443        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t),
6444    >,
6445    #[doc = "\n Load the request represented by the |request| object.\n\n WARNING: This function will fail with \"bad IPC message\" reason\n INVALID_INITIATOR_ORIGIN (213) unless you first navigate to the request\n origin using some other mechanism (LoadURL, link click, etc).\n"]
6446    pub load_request: ::std::option::Option<
6447        unsafe extern "C" fn(self_: *mut _cef_frame_t, request: *mut _cef_request_t),
6448    >,
6449    #[doc = "\n Load the specified |url|.\n"]
6450    pub load_url: ::std::option::Option<
6451        unsafe extern "C" fn(self_: *mut _cef_frame_t, url: *const cef_string_t),
6452    >,
6453    #[doc = "\n Execute a string of JavaScript code in this frame. The |script_url|\n parameter is the URL where the script in question can be found, if any.\n The renderer may request this URL to show the developer the source of the\n error.  The |start_line| parameter is the base line number to use for\n error reporting.\n"]
6454    pub execute_java_script: ::std::option::Option<
6455        unsafe extern "C" fn(
6456            self_: *mut _cef_frame_t,
6457            code: *const cef_string_t,
6458            script_url: *const cef_string_t,
6459            start_line: ::std::os::raw::c_int,
6460        ),
6461    >,
6462    #[doc = "\n Returns true (1) if this is the main (top-level) frame.\n"]
6463    pub is_main: ::std::option::Option<
6464        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6465    >,
6466    #[doc = "\n Returns true (1) if this is the focused frame.\n"]
6467    pub is_focused: ::std::option::Option<
6468        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6469    >,
6470    #[doc = "\n Returns the name for this frame. If the frame has an assigned name (for\n example, set via the iframe \"name\" attribute) then that value will be\n returned. Otherwise a unique name will be constructed based on the frame\n parent hierarchy. The main (top-level) frame will always have an NULL name\n value.\n"]
6471    pub get_name: ::std::option::Option<
6472        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6473    >,
6474    #[doc = "\n Returns the globally unique identifier for this frame or NULL if the\n underlying frame does not yet exist.\n"]
6475    pub get_identifier: ::std::option::Option<
6476        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6477    >,
6478    #[doc = "\n Returns the parent of this frame or NULL if this is the main (top-level)\n frame.\n"]
6479    pub get_parent:
6480        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_frame_t>,
6481    #[doc = "\n Returns the URL currently loaded in this frame.\n"]
6482    pub get_url: ::std::option::Option<
6483        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6484    >,
6485    #[doc = "\n Returns the browser that this frame belongs to.\n"]
6486    pub get_browser: ::std::option::Option<
6487        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_browser_t,
6488    >,
6489    #[doc = "\n Get the V8 context associated with the frame. This function can only be\n called from the render process.\n"]
6490    pub get_v8_context: ::std::option::Option<
6491        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_v8_context_t,
6492    >,
6493    #[doc = "\n Visit the DOM document. This function can only be called from the render\n process.\n"]
6494    pub visit_dom: ::std::option::Option<
6495        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_domvisitor_t),
6496    >,
6497    #[doc = "\n Create a new URL request that will be treated as originating from this\n frame and the associated browser. Use cef_urlrequest_t::Create instead if\n you do not want the request to have this association, in which case it may\n be handled differently (see documentation on that function). A request\n created with this function may only originate from the browser process,\n and will behave as follows:\n   - It may be intercepted by the client via CefResourceRequestHandler or\n     CefSchemeHandlerFactory.\n   - POST data may only contain a single element of type PDE_TYPE_FILE or\n     PDE_TYPE_BYTES.\n\n The |request| object will be marked as read-only after calling this\n function.\n"]
6498    pub create_urlrequest: ::std::option::Option<
6499        unsafe extern "C" fn(
6500            self_: *mut _cef_frame_t,
6501            request: *mut _cef_request_t,
6502            client: *mut _cef_urlrequest_client_t,
6503        ) -> *mut _cef_urlrequest_t,
6504    >,
6505    #[doc = "\n Send a message to the specified |target_process|. Ownership of the message\n contents will be transferred and the |message| reference will be\n invalidated. Message delivery is not guaranteed in all cases (for example,\n if the browser is closing, navigating, or if the target process crashes).\n Send an ACK message back from the target process if confirmation is\n required.\n"]
6506    pub send_process_message: ::std::option::Option<
6507        unsafe extern "C" fn(
6508            self_: *mut _cef_frame_t,
6509            target_process: cef_process_id_t,
6510            message: *mut _cef_process_message_t,
6511        ),
6512    >,
6513}
6514#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6515const _: () = {
6516    ["Size of _cef_frame_t"][::std::mem::size_of::<_cef_frame_t>() - 248usize];
6517    ["Alignment of _cef_frame_t"][::std::mem::align_of::<_cef_frame_t>() - 8usize];
6518    ["Offset of field: _cef_frame_t::base"][::std::mem::offset_of!(_cef_frame_t, base) - 0usize];
6519    ["Offset of field: _cef_frame_t::is_valid"]
6520        [::std::mem::offset_of!(_cef_frame_t, is_valid) - 40usize];
6521    ["Offset of field: _cef_frame_t::undo"][::std::mem::offset_of!(_cef_frame_t, undo) - 48usize];
6522    ["Offset of field: _cef_frame_t::redo"][::std::mem::offset_of!(_cef_frame_t, redo) - 56usize];
6523    ["Offset of field: _cef_frame_t::cut"][::std::mem::offset_of!(_cef_frame_t, cut) - 64usize];
6524    ["Offset of field: _cef_frame_t::copy"][::std::mem::offset_of!(_cef_frame_t, copy) - 72usize];
6525    ["Offset of field: _cef_frame_t::paste"][::std::mem::offset_of!(_cef_frame_t, paste) - 80usize];
6526    ["Offset of field: _cef_frame_t::paste_and_match_style"]
6527        [::std::mem::offset_of!(_cef_frame_t, paste_and_match_style) - 88usize];
6528    ["Offset of field: _cef_frame_t::del"][::std::mem::offset_of!(_cef_frame_t, del) - 96usize];
6529    ["Offset of field: _cef_frame_t::select_all"]
6530        [::std::mem::offset_of!(_cef_frame_t, select_all) - 104usize];
6531    ["Offset of field: _cef_frame_t::view_source"]
6532        [::std::mem::offset_of!(_cef_frame_t, view_source) - 112usize];
6533    ["Offset of field: _cef_frame_t::get_source"]
6534        [::std::mem::offset_of!(_cef_frame_t, get_source) - 120usize];
6535    ["Offset of field: _cef_frame_t::get_text"]
6536        [::std::mem::offset_of!(_cef_frame_t, get_text) - 128usize];
6537    ["Offset of field: _cef_frame_t::load_request"]
6538        [::std::mem::offset_of!(_cef_frame_t, load_request) - 136usize];
6539    ["Offset of field: _cef_frame_t::load_url"]
6540        [::std::mem::offset_of!(_cef_frame_t, load_url) - 144usize];
6541    ["Offset of field: _cef_frame_t::execute_java_script"]
6542        [::std::mem::offset_of!(_cef_frame_t, execute_java_script) - 152usize];
6543    ["Offset of field: _cef_frame_t::is_main"]
6544        [::std::mem::offset_of!(_cef_frame_t, is_main) - 160usize];
6545    ["Offset of field: _cef_frame_t::is_focused"]
6546        [::std::mem::offset_of!(_cef_frame_t, is_focused) - 168usize];
6547    ["Offset of field: _cef_frame_t::get_name"]
6548        [::std::mem::offset_of!(_cef_frame_t, get_name) - 176usize];
6549    ["Offset of field: _cef_frame_t::get_identifier"]
6550        [::std::mem::offset_of!(_cef_frame_t, get_identifier) - 184usize];
6551    ["Offset of field: _cef_frame_t::get_parent"]
6552        [::std::mem::offset_of!(_cef_frame_t, get_parent) - 192usize];
6553    ["Offset of field: _cef_frame_t::get_url"]
6554        [::std::mem::offset_of!(_cef_frame_t, get_url) - 200usize];
6555    ["Offset of field: _cef_frame_t::get_browser"]
6556        [::std::mem::offset_of!(_cef_frame_t, get_browser) - 208usize];
6557    ["Offset of field: _cef_frame_t::get_v8_context"]
6558        [::std::mem::offset_of!(_cef_frame_t, get_v8_context) - 216usize];
6559    ["Offset of field: _cef_frame_t::visit_dom"]
6560        [::std::mem::offset_of!(_cef_frame_t, visit_dom) - 224usize];
6561    ["Offset of field: _cef_frame_t::create_urlrequest"]
6562        [::std::mem::offset_of!(_cef_frame_t, create_urlrequest) - 232usize];
6563    ["Offset of field: _cef_frame_t::send_process_message"]
6564        [::std::mem::offset_of!(_cef_frame_t, send_process_message) - 240usize];
6565};
6566#[doc = "\n Structure used to represent a frame in the browser window. When used in the\n browser process the functions of this structure may be called on any thread\n unless otherwise indicated in the comments. When used in the render process\n the functions of this structure may only be called on the main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6567pub type cef_frame_t = _cef_frame_t;
6568#[doc = "\n Structure representing the issuer or subject field of an X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6569#[repr(C)]
6570#[derive(Debug, Copy, Clone)]
6571pub struct _cef_x509_cert_principal_t {
6572    #[doc = "\n Base structure.\n"]
6573    pub base: cef_base_ref_counted_t,
6574    #[doc = "\n Returns a name that can be used to represent the issuer. It tries in this\n order: Common Name (CN), Organization Name (O) and Organizational Unit\n Name (OU) and returns the first non-NULL one found.\n"]
6575    pub get_display_name: ::std::option::Option<
6576        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6577    >,
6578    #[doc = "\n Returns the common name.\n"]
6579    pub get_common_name: ::std::option::Option<
6580        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6581    >,
6582    #[doc = "\n Returns the locality name.\n"]
6583    pub get_locality_name: ::std::option::Option<
6584        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6585    >,
6586    #[doc = "\n Returns the state or province name.\n"]
6587    pub get_state_or_province_name: ::std::option::Option<
6588        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6589    >,
6590    #[doc = "\n Returns the country name.\n"]
6591    pub get_country_name: ::std::option::Option<
6592        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6593    >,
6594    #[doc = "\n Retrieve the list of organization names.\n"]
6595    pub get_organization_names: ::std::option::Option<
6596        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t, names: cef_string_list_t),
6597    >,
6598    #[doc = "\n Retrieve the list of organization unit names.\n"]
6599    pub get_organization_unit_names: ::std::option::Option<
6600        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t, names: cef_string_list_t),
6601    >,
6602}
6603#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6604const _: () = {
6605    ["Size of _cef_x509_cert_principal_t"]
6606        [::std::mem::size_of::<_cef_x509_cert_principal_t>() - 96usize];
6607    ["Alignment of _cef_x509_cert_principal_t"]
6608        [::std::mem::align_of::<_cef_x509_cert_principal_t>() - 8usize];
6609    ["Offset of field: _cef_x509_cert_principal_t::base"]
6610        [::std::mem::offset_of!(_cef_x509_cert_principal_t, base) - 0usize];
6611    ["Offset of field: _cef_x509_cert_principal_t::get_display_name"]
6612        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_display_name) - 40usize];
6613    ["Offset of field: _cef_x509_cert_principal_t::get_common_name"]
6614        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_common_name) - 48usize];
6615    ["Offset of field: _cef_x509_cert_principal_t::get_locality_name"]
6616        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_locality_name) - 56usize];
6617    ["Offset of field: _cef_x509_cert_principal_t::get_state_or_province_name"]
6618        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_state_or_province_name) - 64usize];
6619    ["Offset of field: _cef_x509_cert_principal_t::get_country_name"]
6620        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_country_name) - 72usize];
6621    ["Offset of field: _cef_x509_cert_principal_t::get_organization_names"]
6622        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_organization_names) - 80usize];
6623    ["Offset of field: _cef_x509_cert_principal_t::get_organization_unit_names"]
6624        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_organization_unit_names) - 88usize];
6625};
6626#[doc = "\n Structure representing the issuer or subject field of an X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6627pub type cef_x509_cert_principal_t = _cef_x509_cert_principal_t;
6628#[doc = "\n Structure representing a X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6629#[repr(C)]
6630#[derive(Debug, Copy, Clone)]
6631pub struct _cef_x509_certificate_t {
6632    #[doc = "\n Base structure.\n"]
6633    pub base: cef_base_ref_counted_t,
6634    #[doc = "\n Returns the subject of the X.509 certificate. For HTTPS server\n certificates this represents the web server.  The common name of the\n subject should match the host name of the web server.\n"]
6635    pub get_subject: ::std::option::Option<
6636        unsafe extern "C" fn(
6637            self_: *mut _cef_x509_certificate_t,
6638        ) -> *mut _cef_x509_cert_principal_t,
6639    >,
6640    #[doc = "\n Returns the issuer of the X.509 certificate.\n"]
6641    pub get_issuer: ::std::option::Option<
6642        unsafe extern "C" fn(
6643            self_: *mut _cef_x509_certificate_t,
6644        ) -> *mut _cef_x509_cert_principal_t,
6645    >,
6646    #[doc = "\n Returns the DER encoded serial number for the X.509 certificate. The value\n possibly includes a leading 00 byte.\n"]
6647    pub get_serial_number: ::std::option::Option<
6648        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
6649    >,
6650    #[doc = "\n Returns the date before which the X.509 certificate is invalid.\n CefBaseTime.GetTimeT() will return 0 if no date was specified.\n"]
6651    pub get_valid_start: ::std::option::Option<
6652        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t,
6653    >,
6654    #[doc = "\n Returns the date after which the X.509 certificate is invalid.\n CefBaseTime.GetTimeT() will return 0 if no date was specified.\n"]
6655    pub get_valid_expiry: ::std::option::Option<
6656        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t,
6657    >,
6658    #[doc = "\n Returns the DER encoded data for the X.509 certificate.\n"]
6659    pub get_derencoded: ::std::option::Option<
6660        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
6661    >,
6662    #[doc = "\n Returns the PEM encoded data for the X.509 certificate.\n"]
6663    pub get_pemencoded: ::std::option::Option<
6664        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
6665    >,
6666    #[doc = "\n Returns the number of certificates in the issuer chain. If 0, the\n certificate is self-signed.\n"]
6667    pub get_issuer_chain_size:
6668        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> usize>,
6669    #[doc = "\n Returns the DER encoded data for the certificate issuer chain. If we\n failed to encode a certificate in the chain it is still present in the\n array but is an NULL string.\n"]
6670    pub get_derencoded_issuer_chain: ::std::option::Option<
6671        unsafe extern "C" fn(
6672            self_: *mut _cef_x509_certificate_t,
6673            chainCount: *mut usize,
6674            chain: *mut *mut _cef_binary_value_t,
6675        ),
6676    >,
6677    #[doc = "\n Returns the PEM encoded data for the certificate issuer chain. If we\n failed to encode a certificate in the chain it is still present in the\n array but is an NULL string.\n"]
6678    pub get_pemencoded_issuer_chain: ::std::option::Option<
6679        unsafe extern "C" fn(
6680            self_: *mut _cef_x509_certificate_t,
6681            chainCount: *mut usize,
6682            chain: *mut *mut _cef_binary_value_t,
6683        ),
6684    >,
6685}
6686#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6687const _: () = {
6688    ["Size of _cef_x509_certificate_t"]
6689        [::std::mem::size_of::<_cef_x509_certificate_t>() - 120usize];
6690    ["Alignment of _cef_x509_certificate_t"]
6691        [::std::mem::align_of::<_cef_x509_certificate_t>() - 8usize];
6692    ["Offset of field: _cef_x509_certificate_t::base"]
6693        [::std::mem::offset_of!(_cef_x509_certificate_t, base) - 0usize];
6694    ["Offset of field: _cef_x509_certificate_t::get_subject"]
6695        [::std::mem::offset_of!(_cef_x509_certificate_t, get_subject) - 40usize];
6696    ["Offset of field: _cef_x509_certificate_t::get_issuer"]
6697        [::std::mem::offset_of!(_cef_x509_certificate_t, get_issuer) - 48usize];
6698    ["Offset of field: _cef_x509_certificate_t::get_serial_number"]
6699        [::std::mem::offset_of!(_cef_x509_certificate_t, get_serial_number) - 56usize];
6700    ["Offset of field: _cef_x509_certificate_t::get_valid_start"]
6701        [::std::mem::offset_of!(_cef_x509_certificate_t, get_valid_start) - 64usize];
6702    ["Offset of field: _cef_x509_certificate_t::get_valid_expiry"]
6703        [::std::mem::offset_of!(_cef_x509_certificate_t, get_valid_expiry) - 72usize];
6704    ["Offset of field: _cef_x509_certificate_t::get_derencoded"]
6705        [::std::mem::offset_of!(_cef_x509_certificate_t, get_derencoded) - 80usize];
6706    ["Offset of field: _cef_x509_certificate_t::get_pemencoded"]
6707        [::std::mem::offset_of!(_cef_x509_certificate_t, get_pemencoded) - 88usize];
6708    ["Offset of field: _cef_x509_certificate_t::get_issuer_chain_size"]
6709        [::std::mem::offset_of!(_cef_x509_certificate_t, get_issuer_chain_size) - 96usize];
6710    ["Offset of field: _cef_x509_certificate_t::get_derencoded_issuer_chain"]
6711        [::std::mem::offset_of!(_cef_x509_certificate_t, get_derencoded_issuer_chain) - 104usize];
6712    ["Offset of field: _cef_x509_certificate_t::get_pemencoded_issuer_chain"]
6713        [::std::mem::offset_of!(_cef_x509_certificate_t, get_pemencoded_issuer_chain) - 112usize];
6714};
6715#[doc = "\n Structure representing a X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6716pub type cef_x509_certificate_t = _cef_x509_certificate_t;
6717#[doc = "\n Structure representing the SSL information for a navigation entry.\n\n NOTE: This struct is allocated DLL-side.\n"]
6718#[repr(C)]
6719#[derive(Debug, Copy, Clone)]
6720pub struct _cef_sslstatus_t {
6721    #[doc = "\n Base structure.\n"]
6722    pub base: cef_base_ref_counted_t,
6723    #[doc = "\n Returns true (1) if the status is related to a secure SSL/TLS connection.\n"]
6724    pub is_secure_connection: ::std::option::Option<
6725        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> ::std::os::raw::c_int,
6726    >,
6727    #[doc = "\n Returns a bitmask containing any and all problems verifying the server\n certificate.\n"]
6728    pub get_cert_status: ::std::option::Option<
6729        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_cert_status_t,
6730    >,
6731    #[doc = "\n Returns the SSL version used for the SSL connection.\n"]
6732    pub get_sslversion: ::std::option::Option<
6733        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_version_t,
6734    >,
6735    #[doc = "\n Returns a bitmask containing the page security content status.\n"]
6736    pub get_content_status: ::std::option::Option<
6737        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_content_status_t,
6738    >,
6739    #[doc = "\n Returns the X.509 certificate.\n"]
6740    pub get_x509_certificate: ::std::option::Option<
6741        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> *mut _cef_x509_certificate_t,
6742    >,
6743}
6744#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6745const _: () = {
6746    ["Size of _cef_sslstatus_t"][::std::mem::size_of::<_cef_sslstatus_t>() - 80usize];
6747    ["Alignment of _cef_sslstatus_t"][::std::mem::align_of::<_cef_sslstatus_t>() - 8usize];
6748    ["Offset of field: _cef_sslstatus_t::base"]
6749        [::std::mem::offset_of!(_cef_sslstatus_t, base) - 0usize];
6750    ["Offset of field: _cef_sslstatus_t::is_secure_connection"]
6751        [::std::mem::offset_of!(_cef_sslstatus_t, is_secure_connection) - 40usize];
6752    ["Offset of field: _cef_sslstatus_t::get_cert_status"]
6753        [::std::mem::offset_of!(_cef_sslstatus_t, get_cert_status) - 48usize];
6754    ["Offset of field: _cef_sslstatus_t::get_sslversion"]
6755        [::std::mem::offset_of!(_cef_sslstatus_t, get_sslversion) - 56usize];
6756    ["Offset of field: _cef_sslstatus_t::get_content_status"]
6757        [::std::mem::offset_of!(_cef_sslstatus_t, get_content_status) - 64usize];
6758    ["Offset of field: _cef_sslstatus_t::get_x509_certificate"]
6759        [::std::mem::offset_of!(_cef_sslstatus_t, get_x509_certificate) - 72usize];
6760};
6761#[doc = "\n Structure representing the SSL information for a navigation entry.\n\n NOTE: This struct is allocated DLL-side.\n"]
6762pub type cef_sslstatus_t = _cef_sslstatus_t;
6763#[doc = "\n Structure used to represent an entry in navigation history.\n\n NOTE: This struct is allocated DLL-side.\n"]
6764#[repr(C)]
6765#[derive(Debug, Copy, Clone)]
6766pub struct _cef_navigation_entry_t {
6767    #[doc = "\n Base structure.\n"]
6768    pub base: cef_base_ref_counted_t,
6769    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
6770    pub is_valid: ::std::option::Option<
6771        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
6772    >,
6773    #[doc = "\n Returns the actual URL of the page. For some pages this may be data: URL\n or similar. Use get_display_url() to return a display-friendly version.\n"]
6774    pub get_url: ::std::option::Option<
6775        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
6776    >,
6777    #[doc = "\n Returns a display-friendly version of the URL.\n"]
6778    pub get_display_url: ::std::option::Option<
6779        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
6780    >,
6781    #[doc = "\n Returns the original URL that was entered by the user before any\n redirects.\n"]
6782    pub get_original_url: ::std::option::Option<
6783        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
6784    >,
6785    #[doc = "\n Returns the title set by the page. This value may be NULL.\n"]
6786    pub get_title: ::std::option::Option<
6787        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
6788    >,
6789    #[doc = "\n Returns the transition type which indicates what the user did to move to\n this page from the previous page.\n"]
6790    pub get_transition_type: ::std::option::Option<
6791        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_transition_type_t,
6792    >,
6793    #[doc = "\n Returns true (1) if this navigation includes post data.\n"]
6794    pub has_post_data: ::std::option::Option<
6795        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
6796    >,
6797    #[doc = "\n Returns the time for the last known successful navigation completion. A\n navigation may be completed more than once if the page is reloaded. May be\n 0 if the navigation has not yet completed.\n"]
6798    pub get_completion_time: ::std::option::Option<
6799        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_basetime_t,
6800    >,
6801    #[doc = "\n Returns the HTTP status code for the last known successful navigation\n response. May be 0 if the response has not yet been received or if the\n navigation has not yet completed.\n"]
6802    pub get_http_status_code: ::std::option::Option<
6803        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
6804    >,
6805    #[doc = "\n Returns the SSL information for this navigation entry.\n"]
6806    pub get_sslstatus: ::std::option::Option<
6807        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> *mut _cef_sslstatus_t,
6808    >,
6809}
6810#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6811const _: () = {
6812    ["Size of _cef_navigation_entry_t"]
6813        [::std::mem::size_of::<_cef_navigation_entry_t>() - 120usize];
6814    ["Alignment of _cef_navigation_entry_t"]
6815        [::std::mem::align_of::<_cef_navigation_entry_t>() - 8usize];
6816    ["Offset of field: _cef_navigation_entry_t::base"]
6817        [::std::mem::offset_of!(_cef_navigation_entry_t, base) - 0usize];
6818    ["Offset of field: _cef_navigation_entry_t::is_valid"]
6819        [::std::mem::offset_of!(_cef_navigation_entry_t, is_valid) - 40usize];
6820    ["Offset of field: _cef_navigation_entry_t::get_url"]
6821        [::std::mem::offset_of!(_cef_navigation_entry_t, get_url) - 48usize];
6822    ["Offset of field: _cef_navigation_entry_t::get_display_url"]
6823        [::std::mem::offset_of!(_cef_navigation_entry_t, get_display_url) - 56usize];
6824    ["Offset of field: _cef_navigation_entry_t::get_original_url"]
6825        [::std::mem::offset_of!(_cef_navigation_entry_t, get_original_url) - 64usize];
6826    ["Offset of field: _cef_navigation_entry_t::get_title"]
6827        [::std::mem::offset_of!(_cef_navigation_entry_t, get_title) - 72usize];
6828    ["Offset of field: _cef_navigation_entry_t::get_transition_type"]
6829        [::std::mem::offset_of!(_cef_navigation_entry_t, get_transition_type) - 80usize];
6830    ["Offset of field: _cef_navigation_entry_t::has_post_data"]
6831        [::std::mem::offset_of!(_cef_navigation_entry_t, has_post_data) - 88usize];
6832    ["Offset of field: _cef_navigation_entry_t::get_completion_time"]
6833        [::std::mem::offset_of!(_cef_navigation_entry_t, get_completion_time) - 96usize];
6834    ["Offset of field: _cef_navigation_entry_t::get_http_status_code"]
6835        [::std::mem::offset_of!(_cef_navigation_entry_t, get_http_status_code) - 104usize];
6836    ["Offset of field: _cef_navigation_entry_t::get_sslstatus"]
6837        [::std::mem::offset_of!(_cef_navigation_entry_t, get_sslstatus) - 112usize];
6838};
6839#[doc = "\n Structure used to represent an entry in navigation history.\n\n NOTE: This struct is allocated DLL-side.\n"]
6840pub type cef_navigation_entry_t = _cef_navigation_entry_t;
6841#[doc = "\n Generic callback structure used for managing the lifespan of a registration.\n\n NOTE: This struct is allocated DLL-side.\n"]
6842#[repr(C)]
6843#[derive(Debug, Copy, Clone)]
6844pub struct _cef_registration_t {
6845    #[doc = "\n Base structure.\n"]
6846    pub base: cef_base_ref_counted_t,
6847}
6848#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6849const _: () = {
6850    ["Size of _cef_registration_t"][::std::mem::size_of::<_cef_registration_t>() - 40usize];
6851    ["Alignment of _cef_registration_t"][::std::mem::align_of::<_cef_registration_t>() - 8usize];
6852    ["Offset of field: _cef_registration_t::base"]
6853        [::std::mem::offset_of!(_cef_registration_t, base) - 0usize];
6854};
6855#[doc = "\n Generic callback structure used for managing the lifespan of a registration.\n\n NOTE: This struct is allocated DLL-side.\n"]
6856pub type cef_registration_t = _cef_registration_t;
6857#[doc = "\n Generic callback structure used for asynchronous continuation.\n\n NOTE: This struct is allocated DLL-side.\n"]
6858#[repr(C)]
6859#[derive(Debug, Copy, Clone)]
6860pub struct _cef_callback_t {
6861    #[doc = "\n Base structure.\n"]
6862    pub base: cef_base_ref_counted_t,
6863    #[doc = "\n Continue processing.\n"]
6864    pub cont: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_callback_t)>,
6865    #[doc = "\n Cancel processing.\n"]
6866    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_callback_t)>,
6867}
6868#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6869const _: () = {
6870    ["Size of _cef_callback_t"][::std::mem::size_of::<_cef_callback_t>() - 56usize];
6871    ["Alignment of _cef_callback_t"][::std::mem::align_of::<_cef_callback_t>() - 8usize];
6872    ["Offset of field: _cef_callback_t::base"]
6873        [::std::mem::offset_of!(_cef_callback_t, base) - 0usize];
6874    ["Offset of field: _cef_callback_t::cont"]
6875        [::std::mem::offset_of!(_cef_callback_t, cont) - 40usize];
6876    ["Offset of field: _cef_callback_t::cancel"]
6877        [::std::mem::offset_of!(_cef_callback_t, cancel) - 48usize];
6878};
6879#[doc = "\n Generic callback structure used for asynchronous continuation.\n\n NOTE: This struct is allocated DLL-side.\n"]
6880pub type cef_callback_t = _cef_callback_t;
6881#[doc = "\n Generic callback structure used for asynchronous completion.\n\n NOTE: This struct is allocated client-side.\n"]
6882#[repr(C)]
6883#[derive(Debug, Copy, Clone)]
6884pub struct _cef_completion_callback_t {
6885    #[doc = "\n Base structure.\n"]
6886    pub base: cef_base_ref_counted_t,
6887    #[doc = "\n Method that will be called once the task is complete.\n"]
6888    pub on_complete:
6889        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_completion_callback_t)>,
6890}
6891#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6892const _: () = {
6893    ["Size of _cef_completion_callback_t"]
6894        [::std::mem::size_of::<_cef_completion_callback_t>() - 48usize];
6895    ["Alignment of _cef_completion_callback_t"]
6896        [::std::mem::align_of::<_cef_completion_callback_t>() - 8usize];
6897    ["Offset of field: _cef_completion_callback_t::base"]
6898        [::std::mem::offset_of!(_cef_completion_callback_t, base) - 0usize];
6899    ["Offset of field: _cef_completion_callback_t::on_complete"]
6900        [::std::mem::offset_of!(_cef_completion_callback_t, on_complete) - 40usize];
6901};
6902#[doc = "\n Generic callback structure used for asynchronous completion.\n\n NOTE: This struct is allocated client-side.\n"]
6903pub type cef_completion_callback_t = _cef_completion_callback_t;
6904#[doc = "\n Structure used for managing cookies. The functions of this structure may be\n called on any thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
6905#[repr(C)]
6906#[derive(Debug, Copy, Clone)]
6907pub struct _cef_cookie_manager_t {
6908    #[doc = "\n Base structure.\n"]
6909    pub base: cef_base_ref_counted_t,
6910    #[doc = "\n Visit all cookies on the UI thread. The returned cookies are ordered by\n longest path, then by earliest creation date. Returns false (0) if cookies\n cannot be accessed.\n"]
6911    pub visit_all_cookies: ::std::option::Option<
6912        unsafe extern "C" fn(
6913            self_: *mut _cef_cookie_manager_t,
6914            visitor: *mut _cef_cookie_visitor_t,
6915        ) -> ::std::os::raw::c_int,
6916    >,
6917    #[doc = "\n Visit a subset of cookies on the UI thread. The results are filtered by\n the given url scheme, host, domain and path. If |includeHttpOnly| is true\n (1) HTTP-only cookies will also be included in the results. The returned\n cookies are ordered by longest path, then by earliest creation date.\n Returns false (0) if cookies cannot be accessed.\n"]
6918    pub visit_url_cookies: ::std::option::Option<
6919        unsafe extern "C" fn(
6920            self_: *mut _cef_cookie_manager_t,
6921            url: *const cef_string_t,
6922            includeHttpOnly: ::std::os::raw::c_int,
6923            visitor: *mut _cef_cookie_visitor_t,
6924        ) -> ::std::os::raw::c_int,
6925    >,
6926    #[doc = "\n Sets a cookie given a valid URL and explicit user-provided cookie\n attributes. This function expects each attribute to be well-formed. It\n will check for disallowed characters (e.g. the ';' character is disallowed\n within the cookie value attribute) and fail without setting the cookie if\n such characters are found. If |callback| is non-NULL it will be executed\n asnychronously on the UI thread after the cookie has been set. Returns\n false (0) if an invalid URL is specified or if cookies cannot be accessed.\n"]
6927    pub set_cookie: ::std::option::Option<
6928        unsafe extern "C" fn(
6929            self_: *mut _cef_cookie_manager_t,
6930            url: *const cef_string_t,
6931            cookie: *const _cef_cookie_t,
6932            callback: *mut _cef_set_cookie_callback_t,
6933        ) -> ::std::os::raw::c_int,
6934    >,
6935    #[doc = "\n Delete all cookies that match the specified parameters. If both |url| and\n |cookie_name| values are specified all host and domain cookies matching\n both will be deleted. If only |url| is specified all host cookies (but not\n domain cookies) irrespective of path will be deleted. If |url| is NULL all\n cookies for all hosts and domains will be deleted. If |callback| is non-\n NULL it will be executed asnychronously on the UI thread after the cookies\n have been deleted. Returns false (0) if a non-NULL invalid URL is\n specified or if cookies cannot be accessed. Cookies can alternately be\n deleted using the Visit*Cookies() functions.\n"]
6936    pub delete_cookies: ::std::option::Option<
6937        unsafe extern "C" fn(
6938            self_: *mut _cef_cookie_manager_t,
6939            url: *const cef_string_t,
6940            cookie_name: *const cef_string_t,
6941            callback: *mut _cef_delete_cookies_callback_t,
6942        ) -> ::std::os::raw::c_int,
6943    >,
6944    #[doc = "\n Flush the backing store (if any) to disk. If |callback| is non-NULL it\n will be executed asnychronously on the UI thread after the flush is\n complete. Returns false (0) if cookies cannot be accessed.\n"]
6945    pub flush_store: ::std::option::Option<
6946        unsafe extern "C" fn(
6947            self_: *mut _cef_cookie_manager_t,
6948            callback: *mut _cef_completion_callback_t,
6949        ) -> ::std::os::raw::c_int,
6950    >,
6951}
6952#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6953const _: () = {
6954    ["Size of _cef_cookie_manager_t"][::std::mem::size_of::<_cef_cookie_manager_t>() - 80usize];
6955    ["Alignment of _cef_cookie_manager_t"]
6956        [::std::mem::align_of::<_cef_cookie_manager_t>() - 8usize];
6957    ["Offset of field: _cef_cookie_manager_t::base"]
6958        [::std::mem::offset_of!(_cef_cookie_manager_t, base) - 0usize];
6959    ["Offset of field: _cef_cookie_manager_t::visit_all_cookies"]
6960        [::std::mem::offset_of!(_cef_cookie_manager_t, visit_all_cookies) - 40usize];
6961    ["Offset of field: _cef_cookie_manager_t::visit_url_cookies"]
6962        [::std::mem::offset_of!(_cef_cookie_manager_t, visit_url_cookies) - 48usize];
6963    ["Offset of field: _cef_cookie_manager_t::set_cookie"]
6964        [::std::mem::offset_of!(_cef_cookie_manager_t, set_cookie) - 56usize];
6965    ["Offset of field: _cef_cookie_manager_t::delete_cookies"]
6966        [::std::mem::offset_of!(_cef_cookie_manager_t, delete_cookies) - 64usize];
6967    ["Offset of field: _cef_cookie_manager_t::flush_store"]
6968        [::std::mem::offset_of!(_cef_cookie_manager_t, flush_store) - 72usize];
6969};
6970#[doc = "\n Structure used for managing cookies. The functions of this structure may be\n called on any thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
6971pub type cef_cookie_manager_t = _cef_cookie_manager_t;
6972unsafe extern "C" {
6973    #[doc = "\n Returns the global cookie manager. By default data will be stored at\n cef_settings_t.cache_path if specified or in memory otherwise. If |callback|\n is non-NULL it will be executed asnychronously on the UI thread after the\n manager's storage has been initialized. Using this function is equivalent to\n calling cef_request_context_t::cef_request_context_get_global_context()->Get\n DefaultCookieManager().\n"]
6974    pub fn cef_cookie_manager_get_global_manager(
6975        callback: *mut _cef_completion_callback_t,
6976    ) -> *mut cef_cookie_manager_t;
6977}
6978#[doc = "\n Structure to implement for visiting cookie values. The functions of this\n structure will always be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
6979#[repr(C)]
6980#[derive(Debug, Copy, Clone)]
6981pub struct _cef_cookie_visitor_t {
6982    #[doc = "\n Base structure.\n"]
6983    pub base: cef_base_ref_counted_t,
6984    #[doc = "\n Method that will be called once for each cookie. |count| is the 0-based\n index for the current cookie. |total| is the total number of cookies. Set\n |deleteCookie| to true (1) to delete the cookie currently being visited.\n Return false (0) to stop visiting cookies. This function may never be\n called if no cookies are found.\n"]
6985    pub visit: ::std::option::Option<
6986        unsafe extern "C" fn(
6987            self_: *mut _cef_cookie_visitor_t,
6988            cookie: *const _cef_cookie_t,
6989            count: ::std::os::raw::c_int,
6990            total: ::std::os::raw::c_int,
6991            deleteCookie: *mut ::std::os::raw::c_int,
6992        ) -> ::std::os::raw::c_int,
6993    >,
6994}
6995#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6996const _: () = {
6997    ["Size of _cef_cookie_visitor_t"][::std::mem::size_of::<_cef_cookie_visitor_t>() - 48usize];
6998    ["Alignment of _cef_cookie_visitor_t"]
6999        [::std::mem::align_of::<_cef_cookie_visitor_t>() - 8usize];
7000    ["Offset of field: _cef_cookie_visitor_t::base"]
7001        [::std::mem::offset_of!(_cef_cookie_visitor_t, base) - 0usize];
7002    ["Offset of field: _cef_cookie_visitor_t::visit"]
7003        [::std::mem::offset_of!(_cef_cookie_visitor_t, visit) - 40usize];
7004};
7005#[doc = "\n Structure to implement for visiting cookie values. The functions of this\n structure will always be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7006pub type cef_cookie_visitor_t = _cef_cookie_visitor_t;
7007#[doc = "\n Structure to implement to be notified of asynchronous completion via\n cef_cookie_manager_t::set_cookie().\n\n NOTE: This struct is allocated client-side.\n"]
7008#[repr(C)]
7009#[derive(Debug, Copy, Clone)]
7010pub struct _cef_set_cookie_callback_t {
7011    #[doc = "\n Base structure.\n"]
7012    pub base: cef_base_ref_counted_t,
7013    #[doc = "\n Method that will be called upon completion. |success| will be true (1) if\n the cookie was set successfully.\n"]
7014    pub on_complete: ::std::option::Option<
7015        unsafe extern "C" fn(
7016            self_: *mut _cef_set_cookie_callback_t,
7017            success: ::std::os::raw::c_int,
7018        ),
7019    >,
7020}
7021#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7022const _: () = {
7023    ["Size of _cef_set_cookie_callback_t"]
7024        [::std::mem::size_of::<_cef_set_cookie_callback_t>() - 48usize];
7025    ["Alignment of _cef_set_cookie_callback_t"]
7026        [::std::mem::align_of::<_cef_set_cookie_callback_t>() - 8usize];
7027    ["Offset of field: _cef_set_cookie_callback_t::base"]
7028        [::std::mem::offset_of!(_cef_set_cookie_callback_t, base) - 0usize];
7029    ["Offset of field: _cef_set_cookie_callback_t::on_complete"]
7030        [::std::mem::offset_of!(_cef_set_cookie_callback_t, on_complete) - 40usize];
7031};
7032#[doc = "\n Structure to implement to be notified of asynchronous completion via\n cef_cookie_manager_t::set_cookie().\n\n NOTE: This struct is allocated client-side.\n"]
7033pub type cef_set_cookie_callback_t = _cef_set_cookie_callback_t;
7034#[doc = "\n Structure to implement to be notified of asynchronous completion via\n cef_cookie_manager_t::delete_cookies().\n\n NOTE: This struct is allocated client-side.\n"]
7035#[repr(C)]
7036#[derive(Debug, Copy, Clone)]
7037pub struct _cef_delete_cookies_callback_t {
7038    #[doc = "\n Base structure.\n"]
7039    pub base: cef_base_ref_counted_t,
7040    #[doc = "\n Method that will be called upon completion. |num_deleted| will be the\n number of cookies that were deleted.\n"]
7041    pub on_complete: ::std::option::Option<
7042        unsafe extern "C" fn(
7043            self_: *mut _cef_delete_cookies_callback_t,
7044            num_deleted: ::std::os::raw::c_int,
7045        ),
7046    >,
7047}
7048#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7049const _: () = {
7050    ["Size of _cef_delete_cookies_callback_t"]
7051        [::std::mem::size_of::<_cef_delete_cookies_callback_t>() - 48usize];
7052    ["Alignment of _cef_delete_cookies_callback_t"]
7053        [::std::mem::align_of::<_cef_delete_cookies_callback_t>() - 8usize];
7054    ["Offset of field: _cef_delete_cookies_callback_t::base"]
7055        [::std::mem::offset_of!(_cef_delete_cookies_callback_t, base) - 0usize];
7056    ["Offset of field: _cef_delete_cookies_callback_t::on_complete"]
7057        [::std::mem::offset_of!(_cef_delete_cookies_callback_t, on_complete) - 40usize];
7058};
7059#[doc = "\n Structure to implement to be notified of asynchronous completion via\n cef_cookie_manager_t::delete_cookies().\n\n NOTE: This struct is allocated client-side.\n"]
7060pub type cef_delete_cookies_callback_t = _cef_delete_cookies_callback_t;
7061#[doc = "\n Supports discovery of and communication with media devices on the local\n network via the Cast and DIAL protocols. The functions of this structure may\n be called on any browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7062#[repr(C)]
7063#[derive(Debug, Copy, Clone)]
7064pub struct _cef_media_router_t {
7065    #[doc = "\n Base structure.\n"]
7066    pub base: cef_base_ref_counted_t,
7067    #[doc = "\n Add an observer for MediaRouter events. The observer will remain\n registered until the returned Registration object is destroyed.\n"]
7068    pub add_observer: ::std::option::Option<
7069        unsafe extern "C" fn(
7070            self_: *mut _cef_media_router_t,
7071            observer: *mut _cef_media_observer_t,
7072        ) -> *mut _cef_registration_t,
7073    >,
7074    #[doc = "\n Returns a MediaSource object for the specified media source URN. Supported\n URN schemes include \"cast:\" and \"dial:\", and will be already known by the\n client application (e.g. \"cast:<appId>?clientId=<clientId>\").\n"]
7075    pub get_source: ::std::option::Option<
7076        unsafe extern "C" fn(
7077            self_: *mut _cef_media_router_t,
7078            urn: *const cef_string_t,
7079        ) -> *mut _cef_media_source_t,
7080    >,
7081    #[doc = "\n Trigger an asynchronous call to cef_media_observer_t::OnSinks on all\n registered observers.\n"]
7082    pub notify_current_sinks:
7083        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_router_t)>,
7084    #[doc = "\n Create a new route between |source| and |sink|. Source and sink must be\n valid, compatible (as reported by cef_media_sink_t::IsCompatibleWith), and\n a route between them must not already exist. |callback| will be executed\n on success or failure. If route creation succeeds it will also trigger an\n asynchronous call to cef_media_observer_t::OnRoutes on all registered\n observers.\n"]
7085    pub create_route: ::std::option::Option<
7086        unsafe extern "C" fn(
7087            self_: *mut _cef_media_router_t,
7088            source: *mut _cef_media_source_t,
7089            sink: *mut _cef_media_sink_t,
7090            callback: *mut _cef_media_route_create_callback_t,
7091        ),
7092    >,
7093    #[doc = "\n Trigger an asynchronous call to cef_media_observer_t::OnRoutes on all\n registered observers.\n"]
7094    pub notify_current_routes:
7095        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_router_t)>,
7096}
7097#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7098const _: () = {
7099    ["Size of _cef_media_router_t"][::std::mem::size_of::<_cef_media_router_t>() - 80usize];
7100    ["Alignment of _cef_media_router_t"][::std::mem::align_of::<_cef_media_router_t>() - 8usize];
7101    ["Offset of field: _cef_media_router_t::base"]
7102        [::std::mem::offset_of!(_cef_media_router_t, base) - 0usize];
7103    ["Offset of field: _cef_media_router_t::add_observer"]
7104        [::std::mem::offset_of!(_cef_media_router_t, add_observer) - 40usize];
7105    ["Offset of field: _cef_media_router_t::get_source"]
7106        [::std::mem::offset_of!(_cef_media_router_t, get_source) - 48usize];
7107    ["Offset of field: _cef_media_router_t::notify_current_sinks"]
7108        [::std::mem::offset_of!(_cef_media_router_t, notify_current_sinks) - 56usize];
7109    ["Offset of field: _cef_media_router_t::create_route"]
7110        [::std::mem::offset_of!(_cef_media_router_t, create_route) - 64usize];
7111    ["Offset of field: _cef_media_router_t::notify_current_routes"]
7112        [::std::mem::offset_of!(_cef_media_router_t, notify_current_routes) - 72usize];
7113};
7114#[doc = "\n Supports discovery of and communication with media devices on the local\n network via the Cast and DIAL protocols. The functions of this structure may\n be called on any browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7115pub type cef_media_router_t = _cef_media_router_t;
7116unsafe extern "C" {
7117    #[doc = "\n Returns the MediaRouter object associated with the global request context.\n If |callback| is non-NULL it will be executed asnychronously on the UI\n thread after the manager's storage has been initialized. Equivalent to\n calling cef_request_context_t::cef_request_context_get_global_context()->get\n _media_router().\n"]
7118    pub fn cef_media_router_get_global(
7119        callback: *mut _cef_completion_callback_t,
7120    ) -> *mut cef_media_router_t;
7121}
7122#[doc = "\n Implemented by the client to observe MediaRouter events and registered via\n cef_media_router_t::AddObserver. The functions of this structure will be\n called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7123#[repr(C)]
7124#[derive(Debug, Copy, Clone)]
7125pub struct _cef_media_observer_t {
7126    #[doc = "\n Base structure.\n"]
7127    pub base: cef_base_ref_counted_t,
7128    #[doc = "\n The list of available media sinks has changed or\n cef_media_router_t::NotifyCurrentSinks was called.\n"]
7129    pub on_sinks: ::std::option::Option<
7130        unsafe extern "C" fn(
7131            self_: *mut _cef_media_observer_t,
7132            sinksCount: usize,
7133            sinks: *const *mut _cef_media_sink_t,
7134        ),
7135    >,
7136    #[doc = "\n The list of available media routes has changed or\n cef_media_router_t::NotifyCurrentRoutes was called.\n"]
7137    pub on_routes: ::std::option::Option<
7138        unsafe extern "C" fn(
7139            self_: *mut _cef_media_observer_t,
7140            routesCount: usize,
7141            routes: *const *mut _cef_media_route_t,
7142        ),
7143    >,
7144    #[doc = "\n The connection state of |route| has changed.\n"]
7145    pub on_route_state_changed: ::std::option::Option<
7146        unsafe extern "C" fn(
7147            self_: *mut _cef_media_observer_t,
7148            route: *mut _cef_media_route_t,
7149            state: cef_media_route_connection_state_t,
7150        ),
7151    >,
7152    #[doc = "\n A message was received over |route|. |message| is only valid for the scope\n of this callback and should be copied if necessary.\n"]
7153    pub on_route_message_received: ::std::option::Option<
7154        unsafe extern "C" fn(
7155            self_: *mut _cef_media_observer_t,
7156            route: *mut _cef_media_route_t,
7157            message: *const ::std::os::raw::c_void,
7158            message_size: usize,
7159        ),
7160    >,
7161}
7162#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7163const _: () = {
7164    ["Size of _cef_media_observer_t"][::std::mem::size_of::<_cef_media_observer_t>() - 72usize];
7165    ["Alignment of _cef_media_observer_t"]
7166        [::std::mem::align_of::<_cef_media_observer_t>() - 8usize];
7167    ["Offset of field: _cef_media_observer_t::base"]
7168        [::std::mem::offset_of!(_cef_media_observer_t, base) - 0usize];
7169    ["Offset of field: _cef_media_observer_t::on_sinks"]
7170        [::std::mem::offset_of!(_cef_media_observer_t, on_sinks) - 40usize];
7171    ["Offset of field: _cef_media_observer_t::on_routes"]
7172        [::std::mem::offset_of!(_cef_media_observer_t, on_routes) - 48usize];
7173    ["Offset of field: _cef_media_observer_t::on_route_state_changed"]
7174        [::std::mem::offset_of!(_cef_media_observer_t, on_route_state_changed) - 56usize];
7175    ["Offset of field: _cef_media_observer_t::on_route_message_received"]
7176        [::std::mem::offset_of!(_cef_media_observer_t, on_route_message_received) - 64usize];
7177};
7178#[doc = "\n Implemented by the client to observe MediaRouter events and registered via\n cef_media_router_t::AddObserver. The functions of this structure will be\n called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7179pub type cef_media_observer_t = _cef_media_observer_t;
7180#[doc = "\n Represents the route between a media source and sink. Instances of this\n object are created via cef_media_router_t::CreateRoute and retrieved via\n cef_media_observer_t::OnRoutes. Contains the status and metadata of a\n routing operation. The functions of this structure may be called on any\n browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7181#[repr(C)]
7182#[derive(Debug, Copy, Clone)]
7183pub struct _cef_media_route_t {
7184    #[doc = "\n Base structure.\n"]
7185    pub base: cef_base_ref_counted_t,
7186    #[doc = "\n Returns the ID for this route.\n"]
7187    pub get_id: ::std::option::Option<
7188        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> cef_string_userfree_t,
7189    >,
7190    #[doc = "\n Returns the source associated with this route.\n"]
7191    pub get_source: ::std::option::Option<
7192        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_source_t,
7193    >,
7194    #[doc = "\n Returns the sink associated with this route.\n"]
7195    pub get_sink: ::std::option::Option<
7196        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_sink_t,
7197    >,
7198    #[doc = "\n Send a message over this route. |message| will be copied if necessary.\n"]
7199    pub send_route_message: ::std::option::Option<
7200        unsafe extern "C" fn(
7201            self_: *mut _cef_media_route_t,
7202            message: *const ::std::os::raw::c_void,
7203            message_size: usize,
7204        ),
7205    >,
7206    #[doc = "\n Terminate this route. Will result in an asynchronous call to\n cef_media_observer_t::OnRoutes on all registered observers.\n"]
7207    pub terminate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_route_t)>,
7208}
7209#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7210const _: () = {
7211    ["Size of _cef_media_route_t"][::std::mem::size_of::<_cef_media_route_t>() - 80usize];
7212    ["Alignment of _cef_media_route_t"][::std::mem::align_of::<_cef_media_route_t>() - 8usize];
7213    ["Offset of field: _cef_media_route_t::base"]
7214        [::std::mem::offset_of!(_cef_media_route_t, base) - 0usize];
7215    ["Offset of field: _cef_media_route_t::get_id"]
7216        [::std::mem::offset_of!(_cef_media_route_t, get_id) - 40usize];
7217    ["Offset of field: _cef_media_route_t::get_source"]
7218        [::std::mem::offset_of!(_cef_media_route_t, get_source) - 48usize];
7219    ["Offset of field: _cef_media_route_t::get_sink"]
7220        [::std::mem::offset_of!(_cef_media_route_t, get_sink) - 56usize];
7221    ["Offset of field: _cef_media_route_t::send_route_message"]
7222        [::std::mem::offset_of!(_cef_media_route_t, send_route_message) - 64usize];
7223    ["Offset of field: _cef_media_route_t::terminate"]
7224        [::std::mem::offset_of!(_cef_media_route_t, terminate) - 72usize];
7225};
7226#[doc = "\n Represents the route between a media source and sink. Instances of this\n object are created via cef_media_router_t::CreateRoute and retrieved via\n cef_media_observer_t::OnRoutes. Contains the status and metadata of a\n routing operation. The functions of this structure may be called on any\n browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7227pub type cef_media_route_t = _cef_media_route_t;
7228#[doc = "\n Callback structure for cef_media_router_t::CreateRoute. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7229#[repr(C)]
7230#[derive(Debug, Copy, Clone)]
7231pub struct _cef_media_route_create_callback_t {
7232    #[doc = "\n Base structure.\n"]
7233    pub base: cef_base_ref_counted_t,
7234    #[doc = "\n Method that will be executed when the route creation has finished.\n |result| will be CEF_MRCR_OK if the route creation succeeded. |error| will\n be a description of the error if the route creation failed. |route| is the\n resulting route, or NULL if the route creation failed.\n"]
7235    pub on_media_route_create_finished: ::std::option::Option<
7236        unsafe extern "C" fn(
7237            self_: *mut _cef_media_route_create_callback_t,
7238            result: cef_media_route_create_result_t,
7239            error: *const cef_string_t,
7240            route: *mut _cef_media_route_t,
7241        ),
7242    >,
7243}
7244#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7245const _: () = {
7246    ["Size of _cef_media_route_create_callback_t"]
7247        [::std::mem::size_of::<_cef_media_route_create_callback_t>() - 48usize];
7248    ["Alignment of _cef_media_route_create_callback_t"]
7249        [::std::mem::align_of::<_cef_media_route_create_callback_t>() - 8usize];
7250    ["Offset of field: _cef_media_route_create_callback_t::base"]
7251        [::std::mem::offset_of!(_cef_media_route_create_callback_t, base) - 0usize];
7252    ["Offset of field: _cef_media_route_create_callback_t::on_media_route_create_finished"][::std::mem::offset_of!(
7253        _cef_media_route_create_callback_t,
7254        on_media_route_create_finished
7255    )
7256        - 40usize];
7257};
7258#[doc = "\n Callback structure for cef_media_router_t::CreateRoute. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7259pub type cef_media_route_create_callback_t = _cef_media_route_create_callback_t;
7260#[doc = "\n Represents a sink to which media can be routed. Instances of this object are\n retrieved via cef_media_observer_t::OnSinks. The functions of this structure\n may be called on any browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7261#[repr(C)]
7262#[derive(Debug, Copy, Clone)]
7263pub struct _cef_media_sink_t {
7264    #[doc = "\n Base structure.\n"]
7265    pub base: cef_base_ref_counted_t,
7266    #[doc = "\n Returns the ID for this sink.\n"]
7267    pub get_id: ::std::option::Option<
7268        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t,
7269    >,
7270    #[doc = "\n Returns the name of this sink.\n"]
7271    pub get_name: ::std::option::Option<
7272        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t,
7273    >,
7274    #[doc = "\n Returns the icon type for this sink.\n"]
7275    pub get_icon_type: ::std::option::Option<
7276        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_media_sink_icon_type_t,
7277    >,
7278    #[doc = "\n Asynchronously retrieves device info.\n"]
7279    pub get_device_info: ::std::option::Option<
7280        unsafe extern "C" fn(
7281            self_: *mut _cef_media_sink_t,
7282            callback: *mut _cef_media_sink_device_info_callback_t,
7283        ),
7284    >,
7285    #[doc = "\n Returns true (1) if this sink accepts content via Cast.\n"]
7286    pub is_cast_sink: ::std::option::Option<
7287        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int,
7288    >,
7289    #[doc = "\n Returns true (1) if this sink accepts content via DIAL.\n"]
7290    pub is_dial_sink: ::std::option::Option<
7291        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int,
7292    >,
7293    #[doc = "\n Returns true (1) if this sink is compatible with |source|.\n"]
7294    pub is_compatible_with: ::std::option::Option<
7295        unsafe extern "C" fn(
7296            self_: *mut _cef_media_sink_t,
7297            source: *mut _cef_media_source_t,
7298        ) -> ::std::os::raw::c_int,
7299    >,
7300}
7301#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7302const _: () = {
7303    ["Size of _cef_media_sink_t"][::std::mem::size_of::<_cef_media_sink_t>() - 96usize];
7304    ["Alignment of _cef_media_sink_t"][::std::mem::align_of::<_cef_media_sink_t>() - 8usize];
7305    ["Offset of field: _cef_media_sink_t::base"]
7306        [::std::mem::offset_of!(_cef_media_sink_t, base) - 0usize];
7307    ["Offset of field: _cef_media_sink_t::get_id"]
7308        [::std::mem::offset_of!(_cef_media_sink_t, get_id) - 40usize];
7309    ["Offset of field: _cef_media_sink_t::get_name"]
7310        [::std::mem::offset_of!(_cef_media_sink_t, get_name) - 48usize];
7311    ["Offset of field: _cef_media_sink_t::get_icon_type"]
7312        [::std::mem::offset_of!(_cef_media_sink_t, get_icon_type) - 56usize];
7313    ["Offset of field: _cef_media_sink_t::get_device_info"]
7314        [::std::mem::offset_of!(_cef_media_sink_t, get_device_info) - 64usize];
7315    ["Offset of field: _cef_media_sink_t::is_cast_sink"]
7316        [::std::mem::offset_of!(_cef_media_sink_t, is_cast_sink) - 72usize];
7317    ["Offset of field: _cef_media_sink_t::is_dial_sink"]
7318        [::std::mem::offset_of!(_cef_media_sink_t, is_dial_sink) - 80usize];
7319    ["Offset of field: _cef_media_sink_t::is_compatible_with"]
7320        [::std::mem::offset_of!(_cef_media_sink_t, is_compatible_with) - 88usize];
7321};
7322#[doc = "\n Represents a sink to which media can be routed. Instances of this object are\n retrieved via cef_media_observer_t::OnSinks. The functions of this structure\n may be called on any browser process thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7323pub type cef_media_sink_t = _cef_media_sink_t;
7324#[doc = "\n Callback structure for cef_media_sink_t::GetDeviceInfo. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7325#[repr(C)]
7326#[derive(Debug, Copy, Clone)]
7327pub struct _cef_media_sink_device_info_callback_t {
7328    #[doc = "\n Base structure.\n"]
7329    pub base: cef_base_ref_counted_t,
7330    #[doc = "\n Method that will be executed asyncronously once device information has\n been retrieved.\n"]
7331    pub on_media_sink_device_info: ::std::option::Option<
7332        unsafe extern "C" fn(
7333            self_: *mut _cef_media_sink_device_info_callback_t,
7334            device_info: *const _cef_media_sink_device_info_t,
7335        ),
7336    >,
7337}
7338#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7339const _: () = {
7340    ["Size of _cef_media_sink_device_info_callback_t"]
7341        [::std::mem::size_of::<_cef_media_sink_device_info_callback_t>() - 48usize];
7342    ["Alignment of _cef_media_sink_device_info_callback_t"]
7343        [::std::mem::align_of::<_cef_media_sink_device_info_callback_t>() - 8usize];
7344    ["Offset of field: _cef_media_sink_device_info_callback_t::base"]
7345        [::std::mem::offset_of!(_cef_media_sink_device_info_callback_t, base) - 0usize];
7346    ["Offset of field: _cef_media_sink_device_info_callback_t::on_media_sink_device_info"][::std::mem::offset_of!(
7347        _cef_media_sink_device_info_callback_t,
7348        on_media_sink_device_info
7349    )
7350        - 40usize];
7351};
7352#[doc = "\n Callback structure for cef_media_sink_t::GetDeviceInfo. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7353pub type cef_media_sink_device_info_callback_t = _cef_media_sink_device_info_callback_t;
7354#[doc = "\n Represents a source from which media can be routed. Instances of this object\n are retrieved via cef_media_router_t::GetSource. The functions of this\n structure may be called on any browser process thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7355#[repr(C)]
7356#[derive(Debug, Copy, Clone)]
7357pub struct _cef_media_source_t {
7358    #[doc = "\n Base structure.\n"]
7359    pub base: cef_base_ref_counted_t,
7360    #[doc = "\n Returns the ID (media source URN or URL) for this source.\n"]
7361    pub get_id: ::std::option::Option<
7362        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> cef_string_userfree_t,
7363    >,
7364    #[doc = "\n Returns true (1) if this source outputs its content via Cast.\n"]
7365    pub is_cast_source: ::std::option::Option<
7366        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int,
7367    >,
7368    #[doc = "\n Returns true (1) if this source outputs its content via DIAL.\n"]
7369    pub is_dial_source: ::std::option::Option<
7370        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int,
7371    >,
7372}
7373#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7374const _: () = {
7375    ["Size of _cef_media_source_t"][::std::mem::size_of::<_cef_media_source_t>() - 64usize];
7376    ["Alignment of _cef_media_source_t"][::std::mem::align_of::<_cef_media_source_t>() - 8usize];
7377    ["Offset of field: _cef_media_source_t::base"]
7378        [::std::mem::offset_of!(_cef_media_source_t, base) - 0usize];
7379    ["Offset of field: _cef_media_source_t::get_id"]
7380        [::std::mem::offset_of!(_cef_media_source_t, get_id) - 40usize];
7381    ["Offset of field: _cef_media_source_t::is_cast_source"]
7382        [::std::mem::offset_of!(_cef_media_source_t, is_cast_source) - 48usize];
7383    ["Offset of field: _cef_media_source_t::is_dial_source"]
7384        [::std::mem::offset_of!(_cef_media_source_t, is_dial_source) - 56usize];
7385};
7386#[doc = "\n Represents a source from which media can be routed. Instances of this object\n are retrieved via cef_media_router_t::GetSource. The functions of this\n structure may be called on any browser process thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
7387pub type cef_media_source_t = _cef_media_source_t;
7388#[doc = "\n Structure that manages custom preference registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
7389#[repr(C)]
7390#[derive(Debug, Copy, Clone)]
7391pub struct _cef_preference_registrar_t {
7392    #[doc = "\n Base structure.\n"]
7393    pub base: cef_base_scoped_t,
7394    #[doc = "\n Register a preference with the specified |name| and |default_value|. To\n avoid conflicts with built-in preferences the |name| value should contain\n an application-specific prefix followed by a period (e.g. \"myapp.value\").\n The contents of |default_value| will be copied. The data type for the\n preference will be inferred from |default_value|'s type and cannot be\n changed after registration. Returns true (1) on success. Returns false (0)\n if |name| is already registered or if |default_value| has an invalid type.\n This function must be called from within the scope of the\n cef_browser_process_handler_t::OnRegisterCustomPreferences callback.\n"]
7395    pub add_preference: ::std::option::Option<
7396        unsafe extern "C" fn(
7397            self_: *mut _cef_preference_registrar_t,
7398            name: *const cef_string_t,
7399            default_value: *mut _cef_value_t,
7400        ) -> ::std::os::raw::c_int,
7401    >,
7402}
7403#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7404const _: () = {
7405    ["Size of _cef_preference_registrar_t"]
7406        [::std::mem::size_of::<_cef_preference_registrar_t>() - 24usize];
7407    ["Alignment of _cef_preference_registrar_t"]
7408        [::std::mem::align_of::<_cef_preference_registrar_t>() - 8usize];
7409    ["Offset of field: _cef_preference_registrar_t::base"]
7410        [::std::mem::offset_of!(_cef_preference_registrar_t, base) - 0usize];
7411    ["Offset of field: _cef_preference_registrar_t::add_preference"]
7412        [::std::mem::offset_of!(_cef_preference_registrar_t, add_preference) - 16usize];
7413};
7414#[doc = "\n Structure that manages custom preference registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
7415pub type cef_preference_registrar_t = _cef_preference_registrar_t;
7416#[doc = "\n Implemented by the client to observe preference changes and registered via\n cef_preference_manager_t::AddPreferenceObserver. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7417#[repr(C)]
7418#[derive(Debug, Copy, Clone)]
7419pub struct _cef_preference_observer_t {
7420    #[doc = "\n Base structure.\n"]
7421    pub base: cef_base_ref_counted_t,
7422    #[doc = "\n Called when a preference has changed. The new value can be retrieved using\n cef_preference_manager_t::GetPreference.\n"]
7423    pub on_preference_changed: ::std::option::Option<
7424        unsafe extern "C" fn(self_: *mut _cef_preference_observer_t, name: *const cef_string_t),
7425    >,
7426}
7427#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7428const _: () = {
7429    ["Size of _cef_preference_observer_t"]
7430        [::std::mem::size_of::<_cef_preference_observer_t>() - 48usize];
7431    ["Alignment of _cef_preference_observer_t"]
7432        [::std::mem::align_of::<_cef_preference_observer_t>() - 8usize];
7433    ["Offset of field: _cef_preference_observer_t::base"]
7434        [::std::mem::offset_of!(_cef_preference_observer_t, base) - 0usize];
7435    ["Offset of field: _cef_preference_observer_t::on_preference_changed"]
7436        [::std::mem::offset_of!(_cef_preference_observer_t, on_preference_changed) - 40usize];
7437};
7438#[doc = "\n Implemented by the client to observe preference changes and registered via\n cef_preference_manager_t::AddPreferenceObserver. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7439pub type cef_preference_observer_t = _cef_preference_observer_t;
7440#[doc = "\n Manage access to preferences. Many built-in preferences are registered by\n Chromium. Custom preferences can be registered in\n cef_browser_process_handler_t::OnRegisterCustomPreferences.\n\n NOTE: This struct is allocated DLL-side.\n"]
7441#[repr(C)]
7442#[derive(Debug, Copy, Clone)]
7443pub struct _cef_preference_manager_t {
7444    #[doc = "\n Base structure.\n"]
7445    pub base: cef_base_ref_counted_t,
7446    #[doc = "\n Returns true (1) if a preference with the specified |name| exists. This\n function must be called on the browser process UI thread.\n"]
7447    pub has_preference: ::std::option::Option<
7448        unsafe extern "C" fn(
7449            self_: *mut _cef_preference_manager_t,
7450            name: *const cef_string_t,
7451        ) -> ::std::os::raw::c_int,
7452    >,
7453    #[doc = "\n Returns the value for the preference with the specified |name|. Returns\n NULL if the preference does not exist. The returned object contains a copy\n of the underlying preference value and modifications to the returned\n object will not modify the underlying preference value. This function must\n be called on the browser process UI thread.\n"]
7454    pub get_preference: ::std::option::Option<
7455        unsafe extern "C" fn(
7456            self_: *mut _cef_preference_manager_t,
7457            name: *const cef_string_t,
7458        ) -> *mut _cef_value_t,
7459    >,
7460    #[doc = "\n Returns all preferences as a dictionary. If |include_defaults| is true (1)\n then preferences currently at their default value will be included. The\n returned object contains a copy of the underlying preference values and\n modifications to the returned object will not modify the underlying\n preference values. This function must be called on the browser process UI\n thread.\n"]
7461    pub get_all_preferences: ::std::option::Option<
7462        unsafe extern "C" fn(
7463            self_: *mut _cef_preference_manager_t,
7464            include_defaults: ::std::os::raw::c_int,
7465        ) -> *mut _cef_dictionary_value_t,
7466    >,
7467    #[doc = "\n Returns true (1) if the preference with the specified |name| can be\n modified using SetPreference. As one example preferences set via the\n command-line usually cannot be modified. This function must be called on\n the browser process UI thread.\n"]
7468    pub can_set_preference: ::std::option::Option<
7469        unsafe extern "C" fn(
7470            self_: *mut _cef_preference_manager_t,
7471            name: *const cef_string_t,
7472        ) -> ::std::os::raw::c_int,
7473    >,
7474    #[doc = "\n Set the |value| associated with preference |name|. Returns true (1) if the\n value is set successfully and false (0) otherwise. If |value| is NULL the\n preference will be restored to its default value. If setting the\n preference fails then |error| will be populated with a detailed\n description of the problem. This function must be called on the browser\n process UI thread.\n"]
7475    pub set_preference: ::std::option::Option<
7476        unsafe extern "C" fn(
7477            self_: *mut _cef_preference_manager_t,
7478            name: *const cef_string_t,
7479            value: *mut _cef_value_t,
7480            error: *mut cef_string_t,
7481        ) -> ::std::os::raw::c_int,
7482    >,
7483    #[doc = "\n Add an observer for preference changes. |name| is the name of the\n preference to observe. If |name| is NULL then all preferences will be\n observed. Observing all preferences has performance consequences and is\n not recommended outside of testing scenarios. The observer will remain\n registered until the returned Registration object is destroyed. This\n function must be called on the browser process UI thread.\n"]
7484    pub add_preference_observer: ::std::option::Option<
7485        unsafe extern "C" fn(
7486            self_: *mut _cef_preference_manager_t,
7487            name: *const cef_string_t,
7488            observer: *mut _cef_preference_observer_t,
7489        ) -> *mut _cef_registration_t,
7490    >,
7491}
7492#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7493const _: () = {
7494    ["Size of _cef_preference_manager_t"]
7495        [::std::mem::size_of::<_cef_preference_manager_t>() - 88usize];
7496    ["Alignment of _cef_preference_manager_t"]
7497        [::std::mem::align_of::<_cef_preference_manager_t>() - 8usize];
7498    ["Offset of field: _cef_preference_manager_t::base"]
7499        [::std::mem::offset_of!(_cef_preference_manager_t, base) - 0usize];
7500    ["Offset of field: _cef_preference_manager_t::has_preference"]
7501        [::std::mem::offset_of!(_cef_preference_manager_t, has_preference) - 40usize];
7502    ["Offset of field: _cef_preference_manager_t::get_preference"]
7503        [::std::mem::offset_of!(_cef_preference_manager_t, get_preference) - 48usize];
7504    ["Offset of field: _cef_preference_manager_t::get_all_preferences"]
7505        [::std::mem::offset_of!(_cef_preference_manager_t, get_all_preferences) - 56usize];
7506    ["Offset of field: _cef_preference_manager_t::can_set_preference"]
7507        [::std::mem::offset_of!(_cef_preference_manager_t, can_set_preference) - 64usize];
7508    ["Offset of field: _cef_preference_manager_t::set_preference"]
7509        [::std::mem::offset_of!(_cef_preference_manager_t, set_preference) - 72usize];
7510    ["Offset of field: _cef_preference_manager_t::add_preference_observer"]
7511        [::std::mem::offset_of!(_cef_preference_manager_t, add_preference_observer) - 80usize];
7512};
7513#[doc = "\n Manage access to preferences. Many built-in preferences are registered by\n Chromium. Custom preferences can be registered in\n cef_browser_process_handler_t::OnRegisterCustomPreferences.\n\n NOTE: This struct is allocated DLL-side.\n"]
7514pub type cef_preference_manager_t = _cef_preference_manager_t;
7515unsafe extern "C" {
7516    #[doc = "\n Returns the current Chrome Variations configuration (combination of field\n trials and chrome://flags) as equivalent command-line switches\n (`--[enable|disable]-features=XXXX`, etc). These switches can be used to\n apply the same configuration when launching a CEF-based application. See\n https://developer.chrome.com/docs/web-platform/chrome-variations for\n background and details. Note that field trial tests are disabled by default\n in Official CEF builds (via the `disable_fieldtrial_testing_config=true (1)`\n GN flag). This function must be called on the browser process UI thread.\n"]
7517    pub fn cef_preference_manager_get_chrome_variations_as_switches(switches: cef_string_list_t);
7518}
7519unsafe extern "C" {
7520    #[doc = "\n Returns the current Chrome Variations configuration (combination of field\n trials and chrome://flags) as human-readable strings. This is the human-\n readable equivalent of the \"Active Variations\" section of chrome://version.\n See https://developer.chrome.com/docs/web-platform/chrome-variations for\n background and details. Note that field trial tests are disabled by default\n in Official CEF builds (via the `disable_fieldtrial_testing_config=true (1)`\n GN flag). This function must be called on the browser process UI thread.\n"]
7521    pub fn cef_preference_manager_get_chrome_variations_as_strings(strings: cef_string_list_t);
7522}
7523unsafe extern "C" {
7524    #[doc = "\n Returns the global preference manager object.\n"]
7525    pub fn cef_preference_manager_get_global() -> *mut cef_preference_manager_t;
7526}
7527#[doc = "\n Callback structure for cef_request_context_t::ResolveHost.\n\n NOTE: This struct is allocated client-side.\n"]
7528#[repr(C)]
7529#[derive(Debug, Copy, Clone)]
7530pub struct _cef_resolve_callback_t {
7531    #[doc = "\n Base structure.\n"]
7532    pub base: cef_base_ref_counted_t,
7533    #[doc = "\n Called on the UI thread after the ResolveHost request has completed.\n |result| will be the result code. |resolved_ips| will be the list of\n resolved IP addresses or NULL if the resolution failed.\n"]
7534    pub on_resolve_completed: ::std::option::Option<
7535        unsafe extern "C" fn(
7536            self_: *mut _cef_resolve_callback_t,
7537            result: cef_errorcode_t,
7538            resolved_ips: cef_string_list_t,
7539        ),
7540    >,
7541}
7542#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7543const _: () = {
7544    ["Size of _cef_resolve_callback_t"][::std::mem::size_of::<_cef_resolve_callback_t>() - 48usize];
7545    ["Alignment of _cef_resolve_callback_t"]
7546        [::std::mem::align_of::<_cef_resolve_callback_t>() - 8usize];
7547    ["Offset of field: _cef_resolve_callback_t::base"]
7548        [::std::mem::offset_of!(_cef_resolve_callback_t, base) - 0usize];
7549    ["Offset of field: _cef_resolve_callback_t::on_resolve_completed"]
7550        [::std::mem::offset_of!(_cef_resolve_callback_t, on_resolve_completed) - 40usize];
7551};
7552#[doc = "\n Callback structure for cef_request_context_t::ResolveHost.\n\n NOTE: This struct is allocated client-side.\n"]
7553pub type cef_resolve_callback_t = _cef_resolve_callback_t;
7554#[doc = "\n Implemented by the client to observe content and website setting changes and\n registered via cef_request_context_t::AddSettingObserver. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7555#[repr(C)]
7556#[derive(Debug, Copy, Clone)]
7557pub struct _cef_setting_observer_t {
7558    #[doc = "\n Base structure.\n"]
7559    pub base: cef_base_ref_counted_t,
7560    #[doc = "\n Called when a content or website setting has changed. The new value can be\n retrieved using cef_request_context_t::GetContentSetting or\n cef_request_context_t::GetWebsiteSetting.\n"]
7561    pub on_setting_changed: ::std::option::Option<
7562        unsafe extern "C" fn(
7563            self_: *mut _cef_setting_observer_t,
7564            requesting_url: *const cef_string_t,
7565            top_level_url: *const cef_string_t,
7566            content_type: cef_content_setting_types_t,
7567        ),
7568    >,
7569}
7570#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7571const _: () = {
7572    ["Size of _cef_setting_observer_t"][::std::mem::size_of::<_cef_setting_observer_t>() - 48usize];
7573    ["Alignment of _cef_setting_observer_t"]
7574        [::std::mem::align_of::<_cef_setting_observer_t>() - 8usize];
7575    ["Offset of field: _cef_setting_observer_t::base"]
7576        [::std::mem::offset_of!(_cef_setting_observer_t, base) - 0usize];
7577    ["Offset of field: _cef_setting_observer_t::on_setting_changed"]
7578        [::std::mem::offset_of!(_cef_setting_observer_t, on_setting_changed) - 40usize];
7579};
7580#[doc = "\n Implemented by the client to observe content and website setting changes and\n registered via cef_request_context_t::AddSettingObserver. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7581pub type cef_setting_observer_t = _cef_setting_observer_t;
7582#[doc = "\n A request context provides request handling for a set of related browser or\n URL request objects. A request context can be specified when creating a new\n browser via the cef_browser_host_t static factory functions or when creating\n a new URL request via the cef_urlrequest_t static factory functions. Browser\n objects with different request contexts will never be hosted in the same\n render process. Browser objects with the same request context may or may not\n be hosted in the same render process depending on the process model. Browser\n objects created indirectly via the JavaScript window.open function or\n targeted links will share the same render process and the same request\n context as the source browser. When running in single-process mode there is\n only a single render process (the main process) and so all browsers created\n in single-process mode will share the same request context. This will be the\n first request context passed into a cef_browser_host_t static factory\n function and all other request context objects will be ignored.\n\n NOTE: This struct is allocated DLL-side.\n"]
7583#[repr(C)]
7584#[derive(Debug, Copy, Clone)]
7585pub struct _cef_request_context_t {
7586    #[doc = "\n Base structure.\n"]
7587    pub base: cef_preference_manager_t,
7588    #[doc = "\n Returns true (1) if this object is pointing to the same context as |that|\n object.\n"]
7589    pub is_same: ::std::option::Option<
7590        unsafe extern "C" fn(
7591            self_: *mut _cef_request_context_t,
7592            other: *mut _cef_request_context_t,
7593        ) -> ::std::os::raw::c_int,
7594    >,
7595    #[doc = "\n Returns true (1) if this object is sharing the same storage as |that|\n object.\n"]
7596    pub is_sharing_with: ::std::option::Option<
7597        unsafe extern "C" fn(
7598            self_: *mut _cef_request_context_t,
7599            other: *mut _cef_request_context_t,
7600        ) -> ::std::os::raw::c_int,
7601    >,
7602    #[doc = "\n Returns true (1) if this object is the global context. The global context\n is used by default when creating a browser or URL request with a NULL\n context argument.\n"]
7603    pub is_global: ::std::option::Option<
7604        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int,
7605    >,
7606    #[doc = "\n Returns the handler for this context if any.\n"]
7607    pub get_handler: ::std::option::Option<
7608        unsafe extern "C" fn(
7609            self_: *mut _cef_request_context_t,
7610        ) -> *mut _cef_request_context_handler_t,
7611    >,
7612    #[doc = "\n Returns the cache path for this object. If NULL an \"incognito mode\" in-\n memory cache is being used.\n"]
7613    pub get_cache_path: ::std::option::Option<
7614        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_string_userfree_t,
7615    >,
7616    #[doc = "\n Returns the cookie manager for this object. If |callback| is non-NULL it\n will be executed asnychronously on the UI thread after the manager's\n storage has been initialized.\n"]
7617    pub get_cookie_manager: ::std::option::Option<
7618        unsafe extern "C" fn(
7619            self_: *mut _cef_request_context_t,
7620            callback: *mut _cef_completion_callback_t,
7621        ) -> *mut _cef_cookie_manager_t,
7622    >,
7623    #[doc = "\n Register a scheme handler factory for the specified |scheme_name| and\n optional |domain_name|. An NULL |domain_name| value for a standard scheme\n will cause the factory to match all domain names. The |domain_name| value\n will be ignored for non-standard schemes. If |scheme_name| is a built-in\n scheme and no handler is returned by |factory| then the built-in scheme\n handler factory will be called. If |scheme_name| is a custom scheme then\n you must also implement the cef_app_t::on_register_custom_schemes()\n function in all processes. This function may be called multiple times to\n change or remove the factory that matches the specified |scheme_name| and\n optional |domain_name|. Returns false (0) if an error occurs. This\n function may be called on any thread in the browser process.\n"]
7624    pub register_scheme_handler_factory: ::std::option::Option<
7625        unsafe extern "C" fn(
7626            self_: *mut _cef_request_context_t,
7627            scheme_name: *const cef_string_t,
7628            domain_name: *const cef_string_t,
7629            factory: *mut _cef_scheme_handler_factory_t,
7630        ) -> ::std::os::raw::c_int,
7631    >,
7632    #[doc = "\n Clear all registered scheme handler factories. Returns false (0) on error.\n This function may be called on any thread in the browser process.\n"]
7633    pub clear_scheme_handler_factories: ::std::option::Option<
7634        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int,
7635    >,
7636    #[doc = "\n Clears all certificate exceptions that were added as part of handling\n cef_request_handler_t::on_certificate_error(). If you call this it is\n recommended that you also call close_all_connections() or you risk not\n being prompted again for server certificates if you reconnect quickly. If\n |callback| is non-NULL it will be executed on the UI thread after\n completion.\n"]
7637    pub clear_certificate_exceptions: ::std::option::Option<
7638        unsafe extern "C" fn(
7639            self_: *mut _cef_request_context_t,
7640            callback: *mut _cef_completion_callback_t,
7641        ),
7642    >,
7643    #[doc = "\n Clears all HTTP authentication credentials that were added as part of\n handling GetAuthCredentials. If |callback| is non-NULL it will be executed\n on the UI thread after completion.\n"]
7644    pub clear_http_auth_credentials: ::std::option::Option<
7645        unsafe extern "C" fn(
7646            self_: *mut _cef_request_context_t,
7647            callback: *mut _cef_completion_callback_t,
7648        ),
7649    >,
7650    #[doc = "\n Clears all active and idle connections that Chromium currently has. This\n is only recommended if you have released all other CEF objects but don't\n yet want to call cef_shutdown(). If |callback| is non-NULL it will be\n executed on the UI thread after completion.\n"]
7651    pub close_all_connections: ::std::option::Option<
7652        unsafe extern "C" fn(
7653            self_: *mut _cef_request_context_t,
7654            callback: *mut _cef_completion_callback_t,
7655        ),
7656    >,
7657    #[doc = "\n Attempts to resolve |origin| to a list of associated IP addresses.\n |callback| will be executed on the UI thread after completion.\n"]
7658    pub resolve_host: ::std::option::Option<
7659        unsafe extern "C" fn(
7660            self_: *mut _cef_request_context_t,
7661            origin: *const cef_string_t,
7662            callback: *mut _cef_resolve_callback_t,
7663        ),
7664    >,
7665    #[doc = "\n Returns the MediaRouter object associated with this context.  If\n |callback| is non-NULL it will be executed asnychronously on the UI thread\n after the manager's context has been initialized.\n"]
7666    pub get_media_router: ::std::option::Option<
7667        unsafe extern "C" fn(
7668            self_: *mut _cef_request_context_t,
7669            callback: *mut _cef_completion_callback_t,
7670        ) -> *mut _cef_media_router_t,
7671    >,
7672    #[doc = "\n Returns the current value for |content_type| that applies for the\n specified URLs. If both URLs are NULL the default value will be returned.\n Returns nullptr if no value is configured. Must be called on the browser\n process UI thread.\n"]
7673    pub get_website_setting: ::std::option::Option<
7674        unsafe extern "C" fn(
7675            self_: *mut _cef_request_context_t,
7676            requesting_url: *const cef_string_t,
7677            top_level_url: *const cef_string_t,
7678            content_type: cef_content_setting_types_t,
7679        ) -> *mut _cef_value_t,
7680    >,
7681    #[doc = "\n Sets the current value for |content_type| for the specified URLs in the\n default scope. If both URLs are NULL, and the context is not incognito,\n the default value will be set. Pass nullptr for |value| to remove the\n default value for this content type.\n\n WARNING: Incorrect usage of this function may cause instability or\n security issues in Chromium. Make sure that you first understand the\n potential impact of any changes to |content_type| by reviewing the related\n source code in Chromium. For example, if you plan to modify\n CEF_CONTENT_SETTING_TYPE_POPUPS, first review and understand the usage of\n ContentSettingsType::POPUPS in Chromium:\n https://source.chromium.org/search?q=ContentSettingsType::POPUPS\n"]
7682    pub set_website_setting: ::std::option::Option<
7683        unsafe extern "C" fn(
7684            self_: *mut _cef_request_context_t,
7685            requesting_url: *const cef_string_t,
7686            top_level_url: *const cef_string_t,
7687            content_type: cef_content_setting_types_t,
7688            value: *mut _cef_value_t,
7689        ),
7690    >,
7691    #[doc = "\n Returns the current value for |content_type| that applies for the\n specified URLs. If both URLs are NULL the default value will be returned.\n Returns CEF_CONTENT_SETTING_VALUE_DEFAULT if no value is configured. Must\n be called on the browser process UI thread.\n"]
7692    pub get_content_setting: ::std::option::Option<
7693        unsafe extern "C" fn(
7694            self_: *mut _cef_request_context_t,
7695            requesting_url: *const cef_string_t,
7696            top_level_url: *const cef_string_t,
7697            content_type: cef_content_setting_types_t,
7698        ) -> cef_content_setting_values_t,
7699    >,
7700    #[doc = "\n Sets the current value for |content_type| for the specified URLs in the\n default scope. If both URLs are NULL, and the context is not incognito,\n the default value will be set. Pass CEF_CONTENT_SETTING_VALUE_DEFAULT for\n |value| to use the default value for this content type.\n\n WARNING: Incorrect usage of this function may cause instability or\n security issues in Chromium. Make sure that you first understand the\n potential impact of any changes to |content_type| by reviewing the related\n source code in Chromium. For example, if you plan to modify\n CEF_CONTENT_SETTING_TYPE_POPUPS, first review and understand the usage of\n ContentSettingsType::POPUPS in Chromium:\n https://source.chromium.org/search?q=ContentSettingsType::POPUPS\n"]
7701    pub set_content_setting: ::std::option::Option<
7702        unsafe extern "C" fn(
7703            self_: *mut _cef_request_context_t,
7704            requesting_url: *const cef_string_t,
7705            top_level_url: *const cef_string_t,
7706            content_type: cef_content_setting_types_t,
7707            value: cef_content_setting_values_t,
7708        ),
7709    >,
7710    #[doc = "\n Sets the Chrome color scheme for all browsers that share this request\n context. |variant| values of SYSTEM, LIGHT and DARK change the underlying\n color mode (e.g. light vs dark). Other |variant| values determine how\n |user_color| will be applied in the current color mode. If |user_color| is\n transparent (0) the default color will be used.\n"]
7711    pub set_chrome_color_scheme: ::std::option::Option<
7712        unsafe extern "C" fn(
7713            self_: *mut _cef_request_context_t,
7714            variant: cef_color_variant_t,
7715            user_color: cef_color_t,
7716        ),
7717    >,
7718    #[doc = "\n Returns the current Chrome color scheme mode (SYSTEM, LIGHT or DARK). Must\n be called on the browser process UI thread.\n"]
7719    pub get_chrome_color_scheme_mode: ::std::option::Option<
7720        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_variant_t,
7721    >,
7722    #[doc = "\n Returns the current Chrome color scheme color, or transparent (0) for the\n default color. Must be called on the browser process UI thread.\n"]
7723    pub get_chrome_color_scheme_color: ::std::option::Option<
7724        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_t,
7725    >,
7726    #[doc = "\n Returns the current Chrome color scheme variant. Must be called on the\n browser process UI thread.\n"]
7727    pub get_chrome_color_scheme_variant: ::std::option::Option<
7728        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_variant_t,
7729    >,
7730    #[doc = "\n Add an observer for content and website setting changes. The observer will\n remain registered until the returned Registration object is destroyed.\n This function must be called on the browser process UI thread.\n"]
7731    pub add_setting_observer: ::std::option::Option<
7732        unsafe extern "C" fn(
7733            self_: *mut _cef_request_context_t,
7734            observer: *mut _cef_setting_observer_t,
7735        ) -> *mut _cef_registration_t,
7736    >,
7737}
7738#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7739const _: () = {
7740    ["Size of _cef_request_context_t"][::std::mem::size_of::<_cef_request_context_t>() - 264usize];
7741    ["Alignment of _cef_request_context_t"]
7742        [::std::mem::align_of::<_cef_request_context_t>() - 8usize];
7743    ["Offset of field: _cef_request_context_t::base"]
7744        [::std::mem::offset_of!(_cef_request_context_t, base) - 0usize];
7745    ["Offset of field: _cef_request_context_t::is_same"]
7746        [::std::mem::offset_of!(_cef_request_context_t, is_same) - 88usize];
7747    ["Offset of field: _cef_request_context_t::is_sharing_with"]
7748        [::std::mem::offset_of!(_cef_request_context_t, is_sharing_with) - 96usize];
7749    ["Offset of field: _cef_request_context_t::is_global"]
7750        [::std::mem::offset_of!(_cef_request_context_t, is_global) - 104usize];
7751    ["Offset of field: _cef_request_context_t::get_handler"]
7752        [::std::mem::offset_of!(_cef_request_context_t, get_handler) - 112usize];
7753    ["Offset of field: _cef_request_context_t::get_cache_path"]
7754        [::std::mem::offset_of!(_cef_request_context_t, get_cache_path) - 120usize];
7755    ["Offset of field: _cef_request_context_t::get_cookie_manager"]
7756        [::std::mem::offset_of!(_cef_request_context_t, get_cookie_manager) - 128usize];
7757    ["Offset of field: _cef_request_context_t::register_scheme_handler_factory"][::std::mem::offset_of!(
7758        _cef_request_context_t,
7759        register_scheme_handler_factory
7760    ) - 136usize];
7761    ["Offset of field: _cef_request_context_t::clear_scheme_handler_factories"]
7762        [::std::mem::offset_of!(_cef_request_context_t, clear_scheme_handler_factories) - 144usize];
7763    ["Offset of field: _cef_request_context_t::clear_certificate_exceptions"]
7764        [::std::mem::offset_of!(_cef_request_context_t, clear_certificate_exceptions) - 152usize];
7765    ["Offset of field: _cef_request_context_t::clear_http_auth_credentials"]
7766        [::std::mem::offset_of!(_cef_request_context_t, clear_http_auth_credentials) - 160usize];
7767    ["Offset of field: _cef_request_context_t::close_all_connections"]
7768        [::std::mem::offset_of!(_cef_request_context_t, close_all_connections) - 168usize];
7769    ["Offset of field: _cef_request_context_t::resolve_host"]
7770        [::std::mem::offset_of!(_cef_request_context_t, resolve_host) - 176usize];
7771    ["Offset of field: _cef_request_context_t::get_media_router"]
7772        [::std::mem::offset_of!(_cef_request_context_t, get_media_router) - 184usize];
7773    ["Offset of field: _cef_request_context_t::get_website_setting"]
7774        [::std::mem::offset_of!(_cef_request_context_t, get_website_setting) - 192usize];
7775    ["Offset of field: _cef_request_context_t::set_website_setting"]
7776        [::std::mem::offset_of!(_cef_request_context_t, set_website_setting) - 200usize];
7777    ["Offset of field: _cef_request_context_t::get_content_setting"]
7778        [::std::mem::offset_of!(_cef_request_context_t, get_content_setting) - 208usize];
7779    ["Offset of field: _cef_request_context_t::set_content_setting"]
7780        [::std::mem::offset_of!(_cef_request_context_t, set_content_setting) - 216usize];
7781    ["Offset of field: _cef_request_context_t::set_chrome_color_scheme"]
7782        [::std::mem::offset_of!(_cef_request_context_t, set_chrome_color_scheme) - 224usize];
7783    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_mode"]
7784        [::std::mem::offset_of!(_cef_request_context_t, get_chrome_color_scheme_mode) - 232usize];
7785    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_color"]
7786        [::std::mem::offset_of!(_cef_request_context_t, get_chrome_color_scheme_color) - 240usize];
7787    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_variant"][::std::mem::offset_of!(
7788        _cef_request_context_t,
7789        get_chrome_color_scheme_variant
7790    ) - 248usize];
7791    ["Offset of field: _cef_request_context_t::add_setting_observer"]
7792        [::std::mem::offset_of!(_cef_request_context_t, add_setting_observer) - 256usize];
7793};
7794#[doc = "\n A request context provides request handling for a set of related browser or\n URL request objects. A request context can be specified when creating a new\n browser via the cef_browser_host_t static factory functions or when creating\n a new URL request via the cef_urlrequest_t static factory functions. Browser\n objects with different request contexts will never be hosted in the same\n render process. Browser objects with the same request context may or may not\n be hosted in the same render process depending on the process model. Browser\n objects created indirectly via the JavaScript window.open function or\n targeted links will share the same render process and the same request\n context as the source browser. When running in single-process mode there is\n only a single render process (the main process) and so all browsers created\n in single-process mode will share the same request context. This will be the\n first request context passed into a cef_browser_host_t static factory\n function and all other request context objects will be ignored.\n\n NOTE: This struct is allocated DLL-side.\n"]
7795pub type cef_request_context_t = _cef_request_context_t;
7796unsafe extern "C" {
7797    #[doc = "\n Returns the global context object.\n"]
7798    pub fn cef_request_context_get_global_context() -> *mut cef_request_context_t;
7799}
7800unsafe extern "C" {
7801    #[doc = "\n Creates a new context object with the specified |settings| and optional\n |handler|.\n"]
7802    pub fn cef_request_context_create_context(
7803        settings: *const _cef_request_context_settings_t,
7804        handler: *mut _cef_request_context_handler_t,
7805    ) -> *mut cef_request_context_t;
7806}
7807unsafe extern "C" {
7808    #[doc = "\n Creates a new context object that shares storage with |other| and uses an\n optional |handler|.\n"]
7809    pub fn cef_request_context_cef_create_context_shared(
7810        other: *mut cef_request_context_t,
7811        handler: *mut _cef_request_context_handler_t,
7812    ) -> *mut cef_request_context_t;
7813}
7814#[doc = "\n Structure used to represent a browser. When used in the browser process the\n functions of this structure may be called on any thread unless otherwise\n indicated in the comments. When used in the render process the functions of\n this structure may only be called on the main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
7815#[repr(C)]
7816#[derive(Debug, Copy, Clone)]
7817pub struct _cef_browser_t {
7818    #[doc = "\n Base structure.\n"]
7819    pub base: cef_base_ref_counted_t,
7820    #[doc = "\n True if this object is currently valid. This will return false (0) after\n cef_life_span_handler_t::OnBeforeClose is called.\n"]
7821    pub is_valid: ::std::option::Option<
7822        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7823    >,
7824    #[doc = "\n Returns the browser host object. This function can only be called in the\n browser process.\n"]
7825    pub get_host: ::std::option::Option<
7826        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t,
7827    >,
7828    #[doc = "\n Returns true (1) if the browser can navigate backwards.\n"]
7829    pub can_go_back: ::std::option::Option<
7830        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7831    >,
7832    #[doc = "\n Navigate backwards.\n"]
7833    pub go_back: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
7834    #[doc = "\n Returns true (1) if the browser can navigate forwards.\n"]
7835    pub can_go_forward: ::std::option::Option<
7836        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7837    >,
7838    #[doc = "\n Navigate forwards.\n"]
7839    pub go_forward: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
7840    #[doc = "\n Returns true (1) if the browser is currently loading.\n"]
7841    pub is_loading: ::std::option::Option<
7842        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7843    >,
7844    #[doc = "\n Reload the current page.\n"]
7845    pub reload: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
7846    #[doc = "\n Reload the current page ignoring any cached data.\n"]
7847    pub reload_ignore_cache:
7848        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
7849    #[doc = "\n Stop loading the page.\n"]
7850    pub stop_load: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
7851    #[doc = "\n Returns the globally unique identifier for this browser. This value is\n also used as the tabId for extension APIs.\n"]
7852    pub get_identifier: ::std::option::Option<
7853        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7854    >,
7855    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
7856    pub is_same: ::std::option::Option<
7857        unsafe extern "C" fn(
7858            self_: *mut _cef_browser_t,
7859            that: *mut _cef_browser_t,
7860        ) -> ::std::os::raw::c_int,
7861    >,
7862    #[doc = "\n Returns true (1) if the browser is a popup.\n"]
7863    pub is_popup: ::std::option::Option<
7864        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7865    >,
7866    #[doc = "\n Returns true (1) if a document has been loaded in the browser.\n"]
7867    pub has_document: ::std::option::Option<
7868        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
7869    >,
7870    #[doc = "\n Returns the main (top-level) frame for the browser. In the browser process\n this will return a valid object until after\n cef_life_span_handler_t::OnBeforeClose is called. In the renderer process\n this will return NULL if the main frame is hosted in a different renderer\n process (e.g. for cross-origin sub-frames). The main frame object will\n change during cross-origin navigation or re-navigation after renderer\n process termination (due to crashes, etc).\n"]
7871    pub get_main_frame: ::std::option::Option<
7872        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t,
7873    >,
7874    #[doc = "\n Returns the focused frame for the browser.\n"]
7875    pub get_focused_frame: ::std::option::Option<
7876        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t,
7877    >,
7878    #[doc = "\n Returns the frame with the specified identifier, or NULL if not found.\n"]
7879    pub get_frame_by_identifier: ::std::option::Option<
7880        unsafe extern "C" fn(
7881            self_: *mut _cef_browser_t,
7882            identifier: *const cef_string_t,
7883        ) -> *mut _cef_frame_t,
7884    >,
7885    #[doc = "\n Returns the frame with the specified name, or NULL if not found.\n"]
7886    pub get_frame_by_name: ::std::option::Option<
7887        unsafe extern "C" fn(
7888            self_: *mut _cef_browser_t,
7889            name: *const cef_string_t,
7890        ) -> *mut _cef_frame_t,
7891    >,
7892    #[doc = "\n Returns the number of frames that currently exist.\n"]
7893    pub get_frame_count:
7894        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> usize>,
7895    #[doc = "\n Returns the identifiers of all existing frames.\n"]
7896    pub get_frame_identifiers: ::std::option::Option<
7897        unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiers: cef_string_list_t),
7898    >,
7899    #[doc = "\n Returns the names of all existing frames.\n"]
7900    pub get_frame_names: ::std::option::Option<
7901        unsafe extern "C" fn(self_: *mut _cef_browser_t, names: cef_string_list_t),
7902    >,
7903}
7904#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7905const _: () = {
7906    ["Size of _cef_browser_t"][::std::mem::size_of::<_cef_browser_t>() - 208usize];
7907    ["Alignment of _cef_browser_t"][::std::mem::align_of::<_cef_browser_t>() - 8usize];
7908    ["Offset of field: _cef_browser_t::base"]
7909        [::std::mem::offset_of!(_cef_browser_t, base) - 0usize];
7910    ["Offset of field: _cef_browser_t::is_valid"]
7911        [::std::mem::offset_of!(_cef_browser_t, is_valid) - 40usize];
7912    ["Offset of field: _cef_browser_t::get_host"]
7913        [::std::mem::offset_of!(_cef_browser_t, get_host) - 48usize];
7914    ["Offset of field: _cef_browser_t::can_go_back"]
7915        [::std::mem::offset_of!(_cef_browser_t, can_go_back) - 56usize];
7916    ["Offset of field: _cef_browser_t::go_back"]
7917        [::std::mem::offset_of!(_cef_browser_t, go_back) - 64usize];
7918    ["Offset of field: _cef_browser_t::can_go_forward"]
7919        [::std::mem::offset_of!(_cef_browser_t, can_go_forward) - 72usize];
7920    ["Offset of field: _cef_browser_t::go_forward"]
7921        [::std::mem::offset_of!(_cef_browser_t, go_forward) - 80usize];
7922    ["Offset of field: _cef_browser_t::is_loading"]
7923        [::std::mem::offset_of!(_cef_browser_t, is_loading) - 88usize];
7924    ["Offset of field: _cef_browser_t::reload"]
7925        [::std::mem::offset_of!(_cef_browser_t, reload) - 96usize];
7926    ["Offset of field: _cef_browser_t::reload_ignore_cache"]
7927        [::std::mem::offset_of!(_cef_browser_t, reload_ignore_cache) - 104usize];
7928    ["Offset of field: _cef_browser_t::stop_load"]
7929        [::std::mem::offset_of!(_cef_browser_t, stop_load) - 112usize];
7930    ["Offset of field: _cef_browser_t::get_identifier"]
7931        [::std::mem::offset_of!(_cef_browser_t, get_identifier) - 120usize];
7932    ["Offset of field: _cef_browser_t::is_same"]
7933        [::std::mem::offset_of!(_cef_browser_t, is_same) - 128usize];
7934    ["Offset of field: _cef_browser_t::is_popup"]
7935        [::std::mem::offset_of!(_cef_browser_t, is_popup) - 136usize];
7936    ["Offset of field: _cef_browser_t::has_document"]
7937        [::std::mem::offset_of!(_cef_browser_t, has_document) - 144usize];
7938    ["Offset of field: _cef_browser_t::get_main_frame"]
7939        [::std::mem::offset_of!(_cef_browser_t, get_main_frame) - 152usize];
7940    ["Offset of field: _cef_browser_t::get_focused_frame"]
7941        [::std::mem::offset_of!(_cef_browser_t, get_focused_frame) - 160usize];
7942    ["Offset of field: _cef_browser_t::get_frame_by_identifier"]
7943        [::std::mem::offset_of!(_cef_browser_t, get_frame_by_identifier) - 168usize];
7944    ["Offset of field: _cef_browser_t::get_frame_by_name"]
7945        [::std::mem::offset_of!(_cef_browser_t, get_frame_by_name) - 176usize];
7946    ["Offset of field: _cef_browser_t::get_frame_count"]
7947        [::std::mem::offset_of!(_cef_browser_t, get_frame_count) - 184usize];
7948    ["Offset of field: _cef_browser_t::get_frame_identifiers"]
7949        [::std::mem::offset_of!(_cef_browser_t, get_frame_identifiers) - 192usize];
7950    ["Offset of field: _cef_browser_t::get_frame_names"]
7951        [::std::mem::offset_of!(_cef_browser_t, get_frame_names) - 200usize];
7952};
7953#[doc = "\n Structure used to represent a browser. When used in the browser process the\n functions of this structure may be called on any thread unless otherwise\n indicated in the comments. When used in the render process the functions of\n this structure may only be called on the main thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
7954pub type cef_browser_t = _cef_browser_t;
7955#[doc = "\n Callback structure for cef_browser_host_t::RunFileDialog. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7956#[repr(C)]
7957#[derive(Debug, Copy, Clone)]
7958pub struct _cef_run_file_dialog_callback_t {
7959    #[doc = "\n Base structure.\n"]
7960    pub base: cef_base_ref_counted_t,
7961    #[doc = "\n Called asynchronously after the file dialog is dismissed. |file_paths|\n will be a single value or a list of values depending on the dialog mode.\n If the selection was cancelled |file_paths| will be NULL.\n"]
7962    pub on_file_dialog_dismissed: ::std::option::Option<
7963        unsafe extern "C" fn(
7964            self_: *mut _cef_run_file_dialog_callback_t,
7965            file_paths: cef_string_list_t,
7966        ),
7967    >,
7968}
7969#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7970const _: () = {
7971    ["Size of _cef_run_file_dialog_callback_t"]
7972        [::std::mem::size_of::<_cef_run_file_dialog_callback_t>() - 48usize];
7973    ["Alignment of _cef_run_file_dialog_callback_t"]
7974        [::std::mem::align_of::<_cef_run_file_dialog_callback_t>() - 8usize];
7975    ["Offset of field: _cef_run_file_dialog_callback_t::base"]
7976        [::std::mem::offset_of!(_cef_run_file_dialog_callback_t, base) - 0usize];
7977    ["Offset of field: _cef_run_file_dialog_callback_t::on_file_dialog_dismissed"][::std::mem::offset_of!(
7978        _cef_run_file_dialog_callback_t,
7979        on_file_dialog_dismissed
7980    ) - 40usize];
7981};
7982#[doc = "\n Callback structure for cef_browser_host_t::RunFileDialog. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7983pub type cef_run_file_dialog_callback_t = _cef_run_file_dialog_callback_t;
7984#[doc = "\n Callback structure for cef_browser_host_t::GetNavigationEntries. The\n functions of this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
7985#[repr(C)]
7986#[derive(Debug, Copy, Clone)]
7987pub struct _cef_navigation_entry_visitor_t {
7988    #[doc = "\n Base structure.\n"]
7989    pub base: cef_base_ref_counted_t,
7990    #[doc = "\n Method that will be executed. Do not keep a reference to |entry| outside\n of this callback. Return true (1) to continue visiting entries or false\n (0) to stop. |current| is true (1) if this entry is the currently loaded\n navigation entry. |index| is the 0-based index of this entry and |total|\n is the total number of entries.\n"]
7991    pub visit: ::std::option::Option<
7992        unsafe extern "C" fn(
7993            self_: *mut _cef_navigation_entry_visitor_t,
7994            entry: *mut _cef_navigation_entry_t,
7995            current: ::std::os::raw::c_int,
7996            index: ::std::os::raw::c_int,
7997            total: ::std::os::raw::c_int,
7998        ) -> ::std::os::raw::c_int,
7999    >,
8000}
8001#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8002const _: () = {
8003    ["Size of _cef_navigation_entry_visitor_t"]
8004        [::std::mem::size_of::<_cef_navigation_entry_visitor_t>() - 48usize];
8005    ["Alignment of _cef_navigation_entry_visitor_t"]
8006        [::std::mem::align_of::<_cef_navigation_entry_visitor_t>() - 8usize];
8007    ["Offset of field: _cef_navigation_entry_visitor_t::base"]
8008        [::std::mem::offset_of!(_cef_navigation_entry_visitor_t, base) - 0usize];
8009    ["Offset of field: _cef_navigation_entry_visitor_t::visit"]
8010        [::std::mem::offset_of!(_cef_navigation_entry_visitor_t, visit) - 40usize];
8011};
8012#[doc = "\n Callback structure for cef_browser_host_t::GetNavigationEntries. The\n functions of this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8013pub type cef_navigation_entry_visitor_t = _cef_navigation_entry_visitor_t;
8014#[doc = "\n Callback structure for cef_browser_host_t::PrintToPDF. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8015#[repr(C)]
8016#[derive(Debug, Copy, Clone)]
8017pub struct _cef_pdf_print_callback_t {
8018    #[doc = "\n Base structure.\n"]
8019    pub base: cef_base_ref_counted_t,
8020    #[doc = "\n Method that will be executed when the PDF printing has completed. |path|\n is the output path. |ok| will be true (1) if the printing completed\n successfully or false (0) otherwise.\n"]
8021    pub on_pdf_print_finished: ::std::option::Option<
8022        unsafe extern "C" fn(
8023            self_: *mut _cef_pdf_print_callback_t,
8024            path: *const cef_string_t,
8025            ok: ::std::os::raw::c_int,
8026        ),
8027    >,
8028}
8029#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8030const _: () = {
8031    ["Size of _cef_pdf_print_callback_t"]
8032        [::std::mem::size_of::<_cef_pdf_print_callback_t>() - 48usize];
8033    ["Alignment of _cef_pdf_print_callback_t"]
8034        [::std::mem::align_of::<_cef_pdf_print_callback_t>() - 8usize];
8035    ["Offset of field: _cef_pdf_print_callback_t::base"]
8036        [::std::mem::offset_of!(_cef_pdf_print_callback_t, base) - 0usize];
8037    ["Offset of field: _cef_pdf_print_callback_t::on_pdf_print_finished"]
8038        [::std::mem::offset_of!(_cef_pdf_print_callback_t, on_pdf_print_finished) - 40usize];
8039};
8040#[doc = "\n Callback structure for cef_browser_host_t::PrintToPDF. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8041pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t;
8042#[doc = "\n Callback structure for cef_browser_host_t::DownloadImage. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8043#[repr(C)]
8044#[derive(Debug, Copy, Clone)]
8045pub struct _cef_download_image_callback_t {
8046    #[doc = "\n Base structure.\n"]
8047    pub base: cef_base_ref_counted_t,
8048    #[doc = "\n Method that will be executed when the image download has completed.\n |image_url| is the URL that was downloaded and |http_status_code| is the\n resulting HTTP status code. |image| is the resulting image, possibly at\n multiple scale factors, or NULL if the download failed.\n"]
8049    pub on_download_image_finished: ::std::option::Option<
8050        unsafe extern "C" fn(
8051            self_: *mut _cef_download_image_callback_t,
8052            image_url: *const cef_string_t,
8053            http_status_code: ::std::os::raw::c_int,
8054            image: *mut _cef_image_t,
8055        ),
8056    >,
8057}
8058#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8059const _: () = {
8060    ["Size of _cef_download_image_callback_t"]
8061        [::std::mem::size_of::<_cef_download_image_callback_t>() - 48usize];
8062    ["Alignment of _cef_download_image_callback_t"]
8063        [::std::mem::align_of::<_cef_download_image_callback_t>() - 8usize];
8064    ["Offset of field: _cef_download_image_callback_t::base"]
8065        [::std::mem::offset_of!(_cef_download_image_callback_t, base) - 0usize];
8066    ["Offset of field: _cef_download_image_callback_t::on_download_image_finished"][::std::mem::offset_of!(
8067        _cef_download_image_callback_t,
8068        on_download_image_finished
8069    ) - 40usize];
8070};
8071#[doc = "\n Callback structure for cef_browser_host_t::DownloadImage. The functions of\n this structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8072pub type cef_download_image_callback_t = _cef_download_image_callback_t;
8073#[doc = "\n Structure used to represent the browser process aspects of a browser. The\n functions of this structure can only be called in the browser process. They\n may be called on any thread in that process unless otherwise indicated in\n the comments.\n\n NOTE: This struct is allocated DLL-side.\n"]
8074#[repr(C)]
8075#[derive(Debug, Copy, Clone)]
8076pub struct _cef_browser_host_t {
8077    #[doc = "\n Base structure.\n"]
8078    pub base: cef_base_ref_counted_t,
8079    #[doc = "\n Returns the hosted browser object.\n"]
8080    pub get_browser: ::std::option::Option<
8081        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_browser_t,
8082    >,
8083    #[doc = "\n Request that the browser close. Closing a browser is a multi-stage process\n that may complete either synchronously or asynchronously, and involves\n callbacks such as cef_life_span_handler_t::DoClose (Alloy style only),\n cef_life_span_handler_t::OnBeforeClose, and a top-level window close\n handler such as cef_window_delegate_t::CanClose (or platform-specific\n equivalent). In some cases a close request may be delayed or canceled by\n the user. Using try_close_browser() instead of close_browser() is\n recommended for most use cases. See cef_life_span_handler_t::do_close()\n documentation for detailed usage and examples.\n\n If |force_close| is false (0) then JavaScript unload handlers, if any, may\n be fired and the close may be delayed or canceled by the user. If\n |force_close| is true (1) then the user will not be prompted and the close\n will proceed immediately (possibly asynchronously). If browser close is\n delayed and not canceled the default behavior is to call the top-level\n window close handler once the browser is ready to be closed. This default\n behavior can be changed for Alloy style browsers by implementing\n cef_life_span_handler_t::do_close(). is_ready_to_be_closed() can be used\n to detect mandatory browser close events when customizing close behavior\n on the browser process UI thread.\n"]
8084    pub close_browser: ::std::option::Option<
8085        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, force_close: ::std::os::raw::c_int),
8086    >,
8087    #[doc = "\n Helper for closing a browser. This is similar in behavior to\n CLoseBrowser(false (0)) but returns a boolean to reflect the immediate\n close status. Call this function from a top-level window close handler\n such as cef_window_delegate_t::CanClose (or platform-specific equivalent)\n to request that the browser close, and return the result to indicate if\n the window close should proceed. Returns false (0) if the close will be\n delayed (JavaScript unload handlers triggered but still pending) or true\n (1) if the close will proceed immediately (possibly asynchronously). See\n close_browser() documentation for additional usage information. This\n function must be called on the browser process UI thread.\n"]
8088    pub try_close_browser: ::std::option::Option<
8089        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8090    >,
8091    #[doc = "\n Returns true (1) if the browser is ready to be closed, meaning that the\n close has already been initiated and that JavaScript unload handlers have\n already executed or should be ignored. This can be used from a top-level\n window close handler such as cef_window_delegate_t::CanClose (or platform-\n specific equivalent) to distringuish between potentially cancelable\n browser close events (like the user clicking the top-level window close\n button before browser close has started) and mandatory browser close\n events (like JavaScript `window.close()` or after browser close has\n started in response to [Try]close_browser()). Not completing the browser\n close for mandatory close events (when this function returns true (1))\n will leave the browser in a partially closed state that interferes with\n proper functioning. See close_browser() documentation for additional usage\n information. This function must be called on the browser process UI\n thread.\n"]
8092    pub is_ready_to_be_closed: ::std::option::Option<
8093        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8094    >,
8095    #[doc = "\n Set whether the browser is focused.\n"]
8096    pub set_focus: ::std::option::Option<
8097        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, focus: ::std::os::raw::c_int),
8098    >,
8099    #[doc = "\n Retrieve the window handle (if any) for this browser. If this browser is\n wrapped in a cef_browser_view_t this function should be called on the\n browser process UI thread and it will return the handle for the top-level\n native window.\n"]
8100    pub get_window_handle: ::std::option::Option<
8101        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_window_handle_t,
8102    >,
8103    #[doc = "\n Retrieve the window handle (if any) of the browser that opened this\n browser. Will return NULL for non-popup browsers or if this browser is\n wrapped in a cef_browser_view_t. This function can be used in combination\n with custom handling of modal windows.\n"]
8104    pub get_opener_window_handle: ::std::option::Option<
8105        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_window_handle_t,
8106    >,
8107    #[doc = "\n Retrieve the unique identifier of the browser that opened this browser.\n Will return 0 for non-popup browsers.\n"]
8108    pub get_opener_identifier: ::std::option::Option<
8109        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8110    >,
8111    #[doc = "\n Returns true (1) if this browser is wrapped in a cef_browser_view_t.\n"]
8112    pub has_view: ::std::option::Option<
8113        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8114    >,
8115    #[doc = "\n Returns the client for this browser.\n"]
8116    pub get_client: ::std::option::Option<
8117        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_client_t,
8118    >,
8119    #[doc = "\n Returns the request context for this browser.\n"]
8120    pub get_request_context: ::std::option::Option<
8121        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_request_context_t,
8122    >,
8123    #[doc = "\n Returns true (1) if this browser can execute the specified zoom command.\n This function can only be called on the UI thread.\n"]
8124    pub can_zoom: ::std::option::Option<
8125        unsafe extern "C" fn(
8126            self_: *mut _cef_browser_host_t,
8127            command: cef_zoom_command_t,
8128        ) -> ::std::os::raw::c_int,
8129    >,
8130    #[doc = "\n Execute a zoom command in this browser. If called on the UI thread the\n change will be applied immediately. Otherwise, the change will be applied\n asynchronously on the UI thread.\n"]
8131    pub zoom: ::std::option::Option<
8132        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, command: cef_zoom_command_t),
8133    >,
8134    #[doc = "\n Get the default zoom level. This value will be 0.0 by default but can be\n configured. This function can only be called on the UI thread.\n"]
8135    pub get_default_zoom_level:
8136        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> f64>,
8137    #[doc = "\n Get the current zoom level. This function can only be called on the UI\n thread.\n"]
8138    pub get_zoom_level:
8139        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> f64>,
8140    #[doc = "\n Change the zoom level to the specified value. Specify 0.0 to reset the\n zoom level to the default. If called on the UI thread the change will be\n applied immediately. Otherwise, the change will be applied asynchronously\n on the UI thread.\n"]
8141    pub set_zoom_level: ::std::option::Option<
8142        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, zoomLevel: f64),
8143    >,
8144    #[doc = "\n Call to run a file chooser dialog. Only a single file chooser dialog may\n be pending at any given time. |mode| represents the type of dialog to\n display. |title| to the title to be used for the dialog and may be NULL to\n show the default title (\"Open\" or \"Save\" depending on the mode).\n |default_file_path| is the path with optional directory and/or file name\n component that will be initially selected in the dialog. |accept_filters|\n are used to restrict the selectable file types and may any combination of\n (a) valid lower-cased MIME types (e.g. \"text/*\" or \"image/*\"), (b)\n individual file extensions (e.g. \".txt\" or \".png\"), or (c) combined\n description and file extension delimited using \"|\" and \";\" (e.g. \"Image\n Types|.png;.gif;.jpg\"). |callback| will be executed after the dialog is\n dismissed or immediately if another dialog is already pending. The dialog\n will be initiated asynchronously on the UI thread.\n"]
8145    pub run_file_dialog: ::std::option::Option<
8146        unsafe extern "C" fn(
8147            self_: *mut _cef_browser_host_t,
8148            mode: cef_file_dialog_mode_t,
8149            title: *const cef_string_t,
8150            default_file_path: *const cef_string_t,
8151            accept_filters: cef_string_list_t,
8152            callback: *mut _cef_run_file_dialog_callback_t,
8153        ),
8154    >,
8155    #[doc = "\n Download the file at |url| using cef_download_handler_t.\n"]
8156    pub start_download: ::std::option::Option<
8157        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, url: *const cef_string_t),
8158    >,
8159    #[doc = "\n Download |image_url| and execute |callback| on completion with the images\n received from the renderer. If |is_favicon| is true (1) then cookies are\n not sent and not accepted during download. Images with density independent\n pixel (DIP) sizes larger than |max_image_size| are filtered out from the\n image results. Versions of the image at different scale factors may be\n downloaded up to the maximum scale factor supported by the system. If\n there are no image results <= |max_image_size| then the smallest image is\n resized to |max_image_size| and is the only result. A |max_image_size| of\n 0 means unlimited. If |bypass_cache| is true (1) then |image_url| is\n requested from the server even if it is present in the browser cache.\n"]
8160    pub download_image: ::std::option::Option<
8161        unsafe extern "C" fn(
8162            self_: *mut _cef_browser_host_t,
8163            image_url: *const cef_string_t,
8164            is_favicon: ::std::os::raw::c_int,
8165            max_image_size: u32,
8166            bypass_cache: ::std::os::raw::c_int,
8167            callback: *mut _cef_download_image_callback_t,
8168        ),
8169    >,
8170    #[doc = "\n Print the current browser contents.\n"]
8171    pub print: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8172    #[doc = "\n Print the current browser contents to the PDF file specified by |path| and\n execute |callback| on completion. The caller is responsible for deleting\n |path| when done. For PDF printing to work on Linux you must implement the\n cef_print_handler_t::GetPdfPaperSize function.\n"]
8173    pub print_to_pdf: ::std::option::Option<
8174        unsafe extern "C" fn(
8175            self_: *mut _cef_browser_host_t,
8176            path: *const cef_string_t,
8177            settings: *const _cef_pdf_print_settings_t,
8178            callback: *mut _cef_pdf_print_callback_t,
8179        ),
8180    >,
8181    #[doc = "\n Search for |searchText|. |forward| indicates whether to search forward or\n backward within the page. |matchCase| indicates whether the search should\n be case-sensitive. |findNext| indicates whether this is the first request\n or a follow-up. The search will be restarted if |searchText| or\n |matchCase| change. The search will be stopped if |searchText| is NULL.\n The cef_find_handler_t instance, if any, returned via\n cef_client_t::GetFindHandler will be called to report find results.\n"]
8182    pub find: ::std::option::Option<
8183        unsafe extern "C" fn(
8184            self_: *mut _cef_browser_host_t,
8185            searchText: *const cef_string_t,
8186            forward: ::std::os::raw::c_int,
8187            matchCase: ::std::os::raw::c_int,
8188            findNext: ::std::os::raw::c_int,
8189        ),
8190    >,
8191    #[doc = "\n Cancel all searches that are currently going on.\n"]
8192    pub stop_finding: ::std::option::Option<
8193        unsafe extern "C" fn(
8194            self_: *mut _cef_browser_host_t,
8195            clearSelection: ::std::os::raw::c_int,
8196        ),
8197    >,
8198    #[doc = "\n Open developer tools (DevTools) in its own browser. The DevTools browser\n will remain associated with this browser. If the DevTools browser is\n already open then it will be focused, in which case the |windowInfo|,\n |client| and |settings| parameters will be ignored. If\n |inspect_element_at| is non-NULL then the element at the specified (x,y)\n location will be inspected. The |windowInfo| parameter will be ignored if\n this browser is wrapped in a cef_browser_view_t.\n"]
8199    pub show_dev_tools: ::std::option::Option<
8200        unsafe extern "C" fn(
8201            self_: *mut _cef_browser_host_t,
8202            windowInfo: *const _cef_window_info_t,
8203            client: *mut _cef_client_t,
8204            settings: *const _cef_browser_settings_t,
8205            inspect_element_at: *const cef_point_t,
8206        ),
8207    >,
8208    #[doc = "\n Explicitly close the associated DevTools browser, if any.\n"]
8209    pub close_dev_tools:
8210        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8211    #[doc = "\n Returns true (1) if this browser currently has an associated DevTools\n browser. Must be called on the browser process UI thread.\n"]
8212    pub has_dev_tools: ::std::option::Option<
8213        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8214    >,
8215    #[doc = "\n Send a function call message over the DevTools protocol. |message| must be\n a UTF8-encoded JSON dictionary that contains \"id\" (int), \"function\"\n (string) and \"params\" (dictionary, optional) values. See the DevTools\n protocol documentation at https://chromedevtools.github.io/devtools-\n protocol/ for details of supported functions and the expected \"params\"\n dictionary contents. |message| will be copied if necessary. This function\n will return true (1) if called on the UI thread and the message was\n successfully submitted for validation, otherwise false (0). Validation\n will be applied asynchronously and any messages that fail due to\n formatting errors or missing parameters may be discarded without\n notification. Prefer ExecuteDevToolsMethod if a more structured approach\n to message formatting is desired.\n\n Every valid function call will result in an asynchronous function result\n or error message that references the sent message \"id\". Event messages are\n received while notifications are enabled (for example, between function\n calls for \"Page.enable\" and \"Page.disable\"). All received messages will be\n delivered to the observer(s) registered with AddDevToolsMessageObserver.\n See cef_dev_tools_message_observer_t::OnDevToolsMessage documentation for\n details of received message contents.\n\n Usage of the SendDevToolsMessage, ExecuteDevToolsMethod and\n AddDevToolsMessageObserver functions does not require an active DevTools\n front-end or remote-debugging session. Other active DevTools sessions will\n continue to function independently. However, any modification of global\n browser state by one session may not be reflected in the UI of other\n sessions.\n\n Communication with the DevTools front-end (when displayed) can be logged\n for development purposes by passing the `--devtools-protocol-log-\n file=<path>` command-line flag.\n"]
8216    pub send_dev_tools_message: ::std::option::Option<
8217        unsafe extern "C" fn(
8218            self_: *mut _cef_browser_host_t,
8219            message: *const ::std::os::raw::c_void,
8220            message_size: usize,
8221        ) -> ::std::os::raw::c_int,
8222    >,
8223    #[doc = "\n Execute a function call over the DevTools protocol. This is a more\n structured version of SendDevToolsMessage. |message_id| is an incremental\n number that uniquely identifies the message (pass 0 to have the next\n number assigned automatically based on previous values). |function| is the\n function name. |params| are the function parameters, which may be NULL.\n See the DevTools protocol documentation (linked above) for details of\n supported functions and the expected |params| dictionary contents. This\n function will return the assigned message ID if called on the UI thread\n and the message was successfully submitted for validation, otherwise 0.\n See the SendDevToolsMessage documentation for additional usage\n information.\n"]
8224    pub execute_dev_tools_method: ::std::option::Option<
8225        unsafe extern "C" fn(
8226            self_: *mut _cef_browser_host_t,
8227            message_id: ::std::os::raw::c_int,
8228            method: *const cef_string_t,
8229            params: *mut _cef_dictionary_value_t,
8230        ) -> ::std::os::raw::c_int,
8231    >,
8232    #[doc = "\n Add an observer for DevTools protocol messages (function results and\n events). The observer will remain registered until the returned\n Registration object is destroyed. See the SendDevToolsMessage\n documentation for additional usage information.\n"]
8233    pub add_dev_tools_message_observer: ::std::option::Option<
8234        unsafe extern "C" fn(
8235            self_: *mut _cef_browser_host_t,
8236            observer: *mut _cef_dev_tools_message_observer_t,
8237        ) -> *mut _cef_registration_t,
8238    >,
8239    #[doc = "\n Retrieve a snapshot of current navigation entries as values sent to the\n specified visitor. If |current_only| is true (1) only the current\n navigation entry will be sent, otherwise all navigation entries will be\n sent.\n"]
8240    pub get_navigation_entries: ::std::option::Option<
8241        unsafe extern "C" fn(
8242            self_: *mut _cef_browser_host_t,
8243            visitor: *mut _cef_navigation_entry_visitor_t,
8244            current_only: ::std::os::raw::c_int,
8245        ),
8246    >,
8247    #[doc = "\n If a misspelled word is currently selected in an editable node calling\n this function will replace it with the specified |word|.\n"]
8248    pub replace_misspelling: ::std::option::Option<
8249        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t),
8250    >,
8251    #[doc = "\n Add the specified |word| to the spelling dictionary.\n"]
8252    pub add_word_to_dictionary: ::std::option::Option<
8253        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t),
8254    >,
8255    #[doc = "\n Returns true (1) if window rendering is disabled.\n"]
8256    pub is_window_rendering_disabled: ::std::option::Option<
8257        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8258    >,
8259    #[doc = "\n Notify the browser that the widget has been resized. The browser will\n first call cef_render_handler_t::GetViewRect to get the new size and then\n call cef_render_handler_t::OnPaint asynchronously with the updated\n regions. This function is only used when window rendering is disabled.\n"]
8260    pub was_resized: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8261    #[doc = "\n Notify the browser that it has been hidden or shown. Layouting and\n cef_render_handler_t::OnPaint notification will stop when the browser is\n hidden. This function is only used when window rendering is disabled.\n"]
8262    pub was_hidden: ::std::option::Option<
8263        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, hidden: ::std::os::raw::c_int),
8264    >,
8265    #[doc = "\n Send a notification to the browser that the screen info has changed. The\n browser will then call cef_render_handler_t::GetScreenInfo to update the\n screen information with the new values. This simulates moving the webview\n window from one display to another, or changing the properties of the\n current display. This function is only used when window rendering is\n disabled.\n"]
8266    pub notify_screen_info_changed:
8267        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8268    #[doc = "\n Invalidate the view. The browser will call cef_render_handler_t::OnPaint\n asynchronously. This function is only used when window rendering is\n disabled.\n"]
8269    pub invalidate: ::std::option::Option<
8270        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, type_: cef_paint_element_type_t),
8271    >,
8272    #[doc = "\n Issue a BeginFrame request to Chromium.  Only valid when\n cef_window_tInfo::external_begin_frame_enabled is set to true (1).\n"]
8273    pub send_external_begin_frame:
8274        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8275    #[doc = "\n Send a key event to the browser.\n"]
8276    pub send_key_event: ::std::option::Option<
8277        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_key_event_t),
8278    >,
8279    #[doc = "\n Send a mouse click event to the browser. The |x| and |y| coordinates are\n relative to the upper-left corner of the view.\n"]
8280    pub send_mouse_click_event: ::std::option::Option<
8281        unsafe extern "C" fn(
8282            self_: *mut _cef_browser_host_t,
8283            event: *const cef_mouse_event_t,
8284            type_: cef_mouse_button_type_t,
8285            mouseUp: ::std::os::raw::c_int,
8286            clickCount: ::std::os::raw::c_int,
8287        ),
8288    >,
8289    #[doc = "\n Send a mouse move event to the browser. The |x| and |y| coordinates are\n relative to the upper-left corner of the view.\n"]
8290    pub send_mouse_move_event: ::std::option::Option<
8291        unsafe extern "C" fn(
8292            self_: *mut _cef_browser_host_t,
8293            event: *const cef_mouse_event_t,
8294            mouseLeave: ::std::os::raw::c_int,
8295        ),
8296    >,
8297    #[doc = "\n Send a mouse wheel event to the browser. The |x| and |y| coordinates are\n relative to the upper-left corner of the view. The |deltaX| and |deltaY|\n values represent the movement delta in the X and Y directions\n respectively. In order to scroll inside select popups with window\n rendering disabled cef_render_handler_t::GetScreenPoint should be\n implemented properly.\n"]
8298    pub send_mouse_wheel_event: ::std::option::Option<
8299        unsafe extern "C" fn(
8300            self_: *mut _cef_browser_host_t,
8301            event: *const cef_mouse_event_t,
8302            deltaX: ::std::os::raw::c_int,
8303            deltaY: ::std::os::raw::c_int,
8304        ),
8305    >,
8306    #[doc = "\n Send a touch event to the browser for a windowless browser.\n"]
8307    pub send_touch_event: ::std::option::Option<
8308        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_touch_event_t),
8309    >,
8310    #[doc = "\n Send a capture lost event to the browser.\n"]
8311    pub send_capture_lost_event:
8312        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8313    #[doc = "\n Notify the browser that the window hosting it is about to be moved or\n resized. This function is only used on Windows and Linux.\n"]
8314    pub notify_move_or_resize_started:
8315        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8316    #[doc = "\n Returns the maximum rate in frames per second (fps) that\n cef_render_handler_t::OnPaint will be called for a windowless browser. The\n actual fps may be lower if the browser cannot generate frames at the\n requested rate. The minimum value is 1 and the maximum value is 60\n (default 30). This function can only be called on the UI thread.\n"]
8317    pub get_windowless_frame_rate: ::std::option::Option<
8318        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8319    >,
8320    #[doc = "\n Set the maximum rate in frames per second (fps) that\n cef_render_handler_t:: OnPaint will be called for a windowless browser.\n The actual fps may be lower if the browser cannot generate frames at the\n requested rate. The minimum value is 1 and the maximum value is 60\n (default 30). Can also be set at browser creation via\n cef_browser_tSettings.windowless_frame_rate.\n"]
8321    pub set_windowless_frame_rate: ::std::option::Option<
8322        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, frame_rate: ::std::os::raw::c_int),
8323    >,
8324    #[doc = "\n Begins a new composition or updates the existing composition. Blink has a\n special node (a composition node) that allows the input function to change\n text without affecting other DOM nodes. |text| is the optional text that\n will be inserted into the composition node. |underlines| is an optional\n set of ranges that will be underlined in the resulting text.\n |replacement_range| is an optional range of the existing text that will be\n replaced. |selection_range| is an optional range of the resulting text\n that will be selected after insertion or replacement. The\n |replacement_range| value is only used on OS X.\n\n This function may be called multiple times as the composition changes.\n When the client is done making changes the composition should either be\n canceled or completed. To cancel the composition call\n ImeCancelComposition. To complete the composition call either\n ImeCommitText or ImeFinishComposingText. Completion is usually signaled\n when:\n\n 1. The client receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR\n    flag (on Windows), or;\n 2. The client receives a \"commit\" signal of GtkIMContext (on Linux), or;\n 3. insertText of NSTextInput is called (on Mac).\n\n This function is only used when window rendering is disabled.\n"]
8325    pub ime_set_composition: ::std::option::Option<
8326        unsafe extern "C" fn(
8327            self_: *mut _cef_browser_host_t,
8328            text: *const cef_string_t,
8329            underlinesCount: usize,
8330            underlines: *const cef_composition_underline_t,
8331            replacement_range: *const cef_range_t,
8332            selection_range: *const cef_range_t,
8333        ),
8334    >,
8335    #[doc = "\n Completes the existing composition by optionally inserting the specified\n |text| into the composition node. |replacement_range| is an optional range\n of the existing text that will be replaced. |relative_cursor_pos| is where\n the cursor will be positioned relative to the current cursor position. See\n comments on ImeSetComposition for usage. The |replacement_range| and\n |relative_cursor_pos| values are only used on OS X. This function is only\n used when window rendering is disabled.\n"]
8336    pub ime_commit_text: ::std::option::Option<
8337        unsafe extern "C" fn(
8338            self_: *mut _cef_browser_host_t,
8339            text: *const cef_string_t,
8340            replacement_range: *const cef_range_t,
8341            relative_cursor_pos: ::std::os::raw::c_int,
8342        ),
8343    >,
8344    #[doc = "\n Completes the existing composition by applying the current composition\n node contents. If |keep_selection| is false (0) the current selection, if\n any, will be discarded. See comments on ImeSetComposition for usage. This\n function is only used when window rendering is disabled.\n"]
8345    pub ime_finish_composing_text: ::std::option::Option<
8346        unsafe extern "C" fn(
8347            self_: *mut _cef_browser_host_t,
8348            keep_selection: ::std::os::raw::c_int,
8349        ),
8350    >,
8351    #[doc = "\n Cancels the existing composition and discards the composition node\n contents without applying them. See comments on ImeSetComposition for\n usage. This function is only used when window rendering is disabled.\n"]
8352    pub ime_cancel_composition:
8353        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8354    #[doc = "\n Call this function when the user drags the mouse into the web view (before\n calling DragTargetDragOver/DragTargetLeave/DragTargetDrop). |drag_data|\n should not contain file contents as this type of data is not allowed to be\n dragged into the web view. File contents can be removed using\n cef_drag_data_t::ResetFileContents (for example, if |drag_data| comes from\n cef_render_handler_t::StartDragging). This function is only used when\n window rendering is disabled.\n"]
8355    pub drag_target_drag_enter: ::std::option::Option<
8356        unsafe extern "C" fn(
8357            self_: *mut _cef_browser_host_t,
8358            drag_data: *mut _cef_drag_data_t,
8359            event: *const cef_mouse_event_t,
8360            allowed_ops: cef_drag_operations_mask_t,
8361        ),
8362    >,
8363    #[doc = "\n Call this function each time the mouse is moved across the web view during\n a drag operation (after calling DragTargetDragEnter and before calling\n DragTargetDragLeave/DragTargetDrop). This function is only used when\n window rendering is disabled.\n"]
8364    pub drag_target_drag_over: ::std::option::Option<
8365        unsafe extern "C" fn(
8366            self_: *mut _cef_browser_host_t,
8367            event: *const cef_mouse_event_t,
8368            allowed_ops: cef_drag_operations_mask_t,
8369        ),
8370    >,
8371    #[doc = "\n Call this function when the user drags the mouse out of the web view\n (after calling DragTargetDragEnter). This function is only used when\n window rendering is disabled.\n"]
8372    pub drag_target_drag_leave:
8373        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8374    #[doc = "\n Call this function when the user completes the drag operation by dropping\n the object onto the web view (after calling DragTargetDragEnter). The\n object being dropped is |drag_data|, given as an argument to the previous\n DragTargetDragEnter call. This function is only used when window rendering\n is disabled.\n"]
8375    pub drag_target_drop: ::std::option::Option<
8376        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_mouse_event_t),
8377    >,
8378    #[doc = "\n Call this function when the drag operation started by a\n cef_render_handler_t::StartDragging call has ended either in a drop or by\n being cancelled. |x| and |y| are mouse coordinates relative to the upper-\n left corner of the view. If the web view is both the drag source and the\n drag target then all DragTarget* functions should be called before\n DragSource* mthods. This function is only used when window rendering is\n disabled.\n"]
8379    pub drag_source_ended_at: ::std::option::Option<
8380        unsafe extern "C" fn(
8381            self_: *mut _cef_browser_host_t,
8382            x: ::std::os::raw::c_int,
8383            y: ::std::os::raw::c_int,
8384            op: cef_drag_operations_mask_t,
8385        ),
8386    >,
8387    #[doc = "\n Call this function when the drag operation started by a\n cef_render_handler_t::StartDragging call has completed. This function may\n be called immediately without first calling DragSourceEndedAt to cancel a\n drag operation. If the web view is both the drag source and the drag\n target then all DragTarget* functions should be called before DragSource*\n mthods. This function is only used when window rendering is disabled.\n"]
8388    pub drag_source_system_drag_ended:
8389        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8390    #[doc = "\n Returns the current visible navigation entry for this browser. This\n function can only be called on the UI thread.\n"]
8391    pub get_visible_navigation_entry: ::std::option::Option<
8392        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_navigation_entry_t,
8393    >,
8394    #[doc = "\n Set accessibility state for all frames. |accessibility_state| may be\n default, enabled or disabled. If |accessibility_state| is STATE_DEFAULT\n then accessibility will be disabled by default and the state may be\n further controlled with the \"force-renderer-accessibility\" and \"disable-\n renderer-accessibility\" command-line switches. If |accessibility_state| is\n STATE_ENABLED then accessibility will be enabled. If |accessibility_state|\n is STATE_DISABLED then accessibility will be completely disabled.\n\n For windowed browsers accessibility will be enabled in Complete mode\n (which corresponds to kAccessibilityModeComplete in Chromium). In this\n mode all platform accessibility objects will be created and managed by\n Chromium's internal implementation. The client needs only to detect the\n screen reader and call this function appropriately. For example, on macOS\n the client can handle the @\"AXEnhancedUserStructure\" accessibility\n attribute to detect VoiceOver state changes and on Windows the client can\n handle WM_GETOBJECT with OBJID_CLIENT to detect accessibility readers.\n\n For windowless browsers accessibility will be enabled in TreeOnly mode\n (which corresponds to kAccessibilityModeWebContentsOnly in Chromium). In\n this mode renderer accessibility is enabled, the full tree is computed,\n and events are passed to CefAccessibiltyHandler, but platform\n accessibility objects are not created. The client may implement platform\n accessibility objects using CefAccessibiltyHandler callbacks if desired.\n"]
8395    pub set_accessibility_state: ::std::option::Option<
8396        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, accessibility_state: cef_state_t),
8397    >,
8398    #[doc = "\n Enable notifications of auto resize via\n cef_display_handler_t::OnAutoResize. Notifications are disabled by\n default. |min_size| and |max_size| define the range of allowed sizes.\n"]
8399    pub set_auto_resize_enabled: ::std::option::Option<
8400        unsafe extern "C" fn(
8401            self_: *mut _cef_browser_host_t,
8402            enabled: ::std::os::raw::c_int,
8403            min_size: *const cef_size_t,
8404            max_size: *const cef_size_t,
8405        ),
8406    >,
8407    #[doc = "\n Set whether the browser's audio is muted.\n"]
8408    pub set_audio_muted: ::std::option::Option<
8409        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, mute: ::std::os::raw::c_int),
8410    >,
8411    #[doc = "\n Returns true (1) if the browser's audio is muted.  This function can only\n be called on the UI thread.\n"]
8412    pub is_audio_muted: ::std::option::Option<
8413        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8414    >,
8415    #[doc = "\n Returns true (1) if the renderer is currently in browser fullscreen. This\n differs from window fullscreen in that browser fullscreen is entered using\n the JavaScript Fullscreen API and modifies CSS attributes such as the\n ::backdrop pseudo-element and :fullscreen pseudo-structure. This function\n can only be called on the UI thread.\n"]
8416    pub is_fullscreen: ::std::option::Option<
8417        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8418    >,
8419    #[doc = "\n Requests the renderer to exit browser fullscreen. In most cases exiting\n window fullscreen should also exit browser fullscreen. With Alloy style\n this function should be called in response to a user action such as\n clicking the green traffic light button on MacOS\n (cef_window_delegate_t::OnWindowFullscreenTransition callback) or pressing\n the \"ESC\" key (cef_keyboard_handler_t::OnPreKeyEvent callback). With\n Chrome style these standard exit actions are handled internally but\n new/additional user actions can use this function. Set |will_cause_resize|\n to true (1) if exiting browser fullscreen will cause a view resize.\n"]
8420    pub exit_fullscreen: ::std::option::Option<
8421        unsafe extern "C" fn(
8422            self_: *mut _cef_browser_host_t,
8423            will_cause_resize: ::std::os::raw::c_int,
8424        ),
8425    >,
8426    #[doc = "\n Returns true (1) if a Chrome command is supported and enabled. Use the\n cef_id_for_command_id_name() function for version-safe mapping of command\n IDC names from cef_command_ids.h to version-specific numerical\n |command_id| values. This function can only be called on the UI thread.\n Only used with Chrome style.\n"]
8427    pub can_execute_chrome_command: ::std::option::Option<
8428        unsafe extern "C" fn(
8429            self_: *mut _cef_browser_host_t,
8430            command_id: ::std::os::raw::c_int,
8431        ) -> ::std::os::raw::c_int,
8432    >,
8433    #[doc = "\n Execute a Chrome command. Use the cef_id_for_command_id_name() function\n for version-safe mapping of command IDC names from cef_command_ids.h to\n version-specific numerical |command_id| values. |disposition| provides\n information about the intended command target. Only used with Chrome\n style.\n"]
8434    pub execute_chrome_command: ::std::option::Option<
8435        unsafe extern "C" fn(
8436            self_: *mut _cef_browser_host_t,
8437            command_id: ::std::os::raw::c_int,
8438            disposition: cef_window_open_disposition_t,
8439        ),
8440    >,
8441    #[doc = "\n Returns true (1) if the render process associated with this browser is\n currently unresponsive as indicated by a lack of input event processing\n for at least 15 seconds. To receive associated state change notifications\n and optionally handle an unresponsive render process implement\n cef_request_handler_t::OnRenderProcessUnresponsive. This function can only\n be called on the UI thread.\n"]
8442    pub is_render_process_unresponsive: ::std::option::Option<
8443        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8444    >,
8445    #[doc = "\n Returns the runtime style for this browser (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
8446    pub get_runtime_style: ::std::option::Option<
8447        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_runtime_style_t,
8448    >,
8449}
8450#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8451const _: () = {
8452    ["Size of _cef_browser_host_t"][::std::mem::size_of::<_cef_browser_host_t>() - 584usize];
8453    ["Alignment of _cef_browser_host_t"][::std::mem::align_of::<_cef_browser_host_t>() - 8usize];
8454    ["Offset of field: _cef_browser_host_t::base"]
8455        [::std::mem::offset_of!(_cef_browser_host_t, base) - 0usize];
8456    ["Offset of field: _cef_browser_host_t::get_browser"]
8457        [::std::mem::offset_of!(_cef_browser_host_t, get_browser) - 40usize];
8458    ["Offset of field: _cef_browser_host_t::close_browser"]
8459        [::std::mem::offset_of!(_cef_browser_host_t, close_browser) - 48usize];
8460    ["Offset of field: _cef_browser_host_t::try_close_browser"]
8461        [::std::mem::offset_of!(_cef_browser_host_t, try_close_browser) - 56usize];
8462    ["Offset of field: _cef_browser_host_t::is_ready_to_be_closed"]
8463        [::std::mem::offset_of!(_cef_browser_host_t, is_ready_to_be_closed) - 64usize];
8464    ["Offset of field: _cef_browser_host_t::set_focus"]
8465        [::std::mem::offset_of!(_cef_browser_host_t, set_focus) - 72usize];
8466    ["Offset of field: _cef_browser_host_t::get_window_handle"]
8467        [::std::mem::offset_of!(_cef_browser_host_t, get_window_handle) - 80usize];
8468    ["Offset of field: _cef_browser_host_t::get_opener_window_handle"]
8469        [::std::mem::offset_of!(_cef_browser_host_t, get_opener_window_handle) - 88usize];
8470    ["Offset of field: _cef_browser_host_t::get_opener_identifier"]
8471        [::std::mem::offset_of!(_cef_browser_host_t, get_opener_identifier) - 96usize];
8472    ["Offset of field: _cef_browser_host_t::has_view"]
8473        [::std::mem::offset_of!(_cef_browser_host_t, has_view) - 104usize];
8474    ["Offset of field: _cef_browser_host_t::get_client"]
8475        [::std::mem::offset_of!(_cef_browser_host_t, get_client) - 112usize];
8476    ["Offset of field: _cef_browser_host_t::get_request_context"]
8477        [::std::mem::offset_of!(_cef_browser_host_t, get_request_context) - 120usize];
8478    ["Offset of field: _cef_browser_host_t::can_zoom"]
8479        [::std::mem::offset_of!(_cef_browser_host_t, can_zoom) - 128usize];
8480    ["Offset of field: _cef_browser_host_t::zoom"]
8481        [::std::mem::offset_of!(_cef_browser_host_t, zoom) - 136usize];
8482    ["Offset of field: _cef_browser_host_t::get_default_zoom_level"]
8483        [::std::mem::offset_of!(_cef_browser_host_t, get_default_zoom_level) - 144usize];
8484    ["Offset of field: _cef_browser_host_t::get_zoom_level"]
8485        [::std::mem::offset_of!(_cef_browser_host_t, get_zoom_level) - 152usize];
8486    ["Offset of field: _cef_browser_host_t::set_zoom_level"]
8487        [::std::mem::offset_of!(_cef_browser_host_t, set_zoom_level) - 160usize];
8488    ["Offset of field: _cef_browser_host_t::run_file_dialog"]
8489        [::std::mem::offset_of!(_cef_browser_host_t, run_file_dialog) - 168usize];
8490    ["Offset of field: _cef_browser_host_t::start_download"]
8491        [::std::mem::offset_of!(_cef_browser_host_t, start_download) - 176usize];
8492    ["Offset of field: _cef_browser_host_t::download_image"]
8493        [::std::mem::offset_of!(_cef_browser_host_t, download_image) - 184usize];
8494    ["Offset of field: _cef_browser_host_t::print"]
8495        [::std::mem::offset_of!(_cef_browser_host_t, print) - 192usize];
8496    ["Offset of field: _cef_browser_host_t::print_to_pdf"]
8497        [::std::mem::offset_of!(_cef_browser_host_t, print_to_pdf) - 200usize];
8498    ["Offset of field: _cef_browser_host_t::find"]
8499        [::std::mem::offset_of!(_cef_browser_host_t, find) - 208usize];
8500    ["Offset of field: _cef_browser_host_t::stop_finding"]
8501        [::std::mem::offset_of!(_cef_browser_host_t, stop_finding) - 216usize];
8502    ["Offset of field: _cef_browser_host_t::show_dev_tools"]
8503        [::std::mem::offset_of!(_cef_browser_host_t, show_dev_tools) - 224usize];
8504    ["Offset of field: _cef_browser_host_t::close_dev_tools"]
8505        [::std::mem::offset_of!(_cef_browser_host_t, close_dev_tools) - 232usize];
8506    ["Offset of field: _cef_browser_host_t::has_dev_tools"]
8507        [::std::mem::offset_of!(_cef_browser_host_t, has_dev_tools) - 240usize];
8508    ["Offset of field: _cef_browser_host_t::send_dev_tools_message"]
8509        [::std::mem::offset_of!(_cef_browser_host_t, send_dev_tools_message) - 248usize];
8510    ["Offset of field: _cef_browser_host_t::execute_dev_tools_method"]
8511        [::std::mem::offset_of!(_cef_browser_host_t, execute_dev_tools_method) - 256usize];
8512    ["Offset of field: _cef_browser_host_t::add_dev_tools_message_observer"]
8513        [::std::mem::offset_of!(_cef_browser_host_t, add_dev_tools_message_observer) - 264usize];
8514    ["Offset of field: _cef_browser_host_t::get_navigation_entries"]
8515        [::std::mem::offset_of!(_cef_browser_host_t, get_navigation_entries) - 272usize];
8516    ["Offset of field: _cef_browser_host_t::replace_misspelling"]
8517        [::std::mem::offset_of!(_cef_browser_host_t, replace_misspelling) - 280usize];
8518    ["Offset of field: _cef_browser_host_t::add_word_to_dictionary"]
8519        [::std::mem::offset_of!(_cef_browser_host_t, add_word_to_dictionary) - 288usize];
8520    ["Offset of field: _cef_browser_host_t::is_window_rendering_disabled"]
8521        [::std::mem::offset_of!(_cef_browser_host_t, is_window_rendering_disabled) - 296usize];
8522    ["Offset of field: _cef_browser_host_t::was_resized"]
8523        [::std::mem::offset_of!(_cef_browser_host_t, was_resized) - 304usize];
8524    ["Offset of field: _cef_browser_host_t::was_hidden"]
8525        [::std::mem::offset_of!(_cef_browser_host_t, was_hidden) - 312usize];
8526    ["Offset of field: _cef_browser_host_t::notify_screen_info_changed"]
8527        [::std::mem::offset_of!(_cef_browser_host_t, notify_screen_info_changed) - 320usize];
8528    ["Offset of field: _cef_browser_host_t::invalidate"]
8529        [::std::mem::offset_of!(_cef_browser_host_t, invalidate) - 328usize];
8530    ["Offset of field: _cef_browser_host_t::send_external_begin_frame"]
8531        [::std::mem::offset_of!(_cef_browser_host_t, send_external_begin_frame) - 336usize];
8532    ["Offset of field: _cef_browser_host_t::send_key_event"]
8533        [::std::mem::offset_of!(_cef_browser_host_t, send_key_event) - 344usize];
8534    ["Offset of field: _cef_browser_host_t::send_mouse_click_event"]
8535        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_click_event) - 352usize];
8536    ["Offset of field: _cef_browser_host_t::send_mouse_move_event"]
8537        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_move_event) - 360usize];
8538    ["Offset of field: _cef_browser_host_t::send_mouse_wheel_event"]
8539        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_wheel_event) - 368usize];
8540    ["Offset of field: _cef_browser_host_t::send_touch_event"]
8541        [::std::mem::offset_of!(_cef_browser_host_t, send_touch_event) - 376usize];
8542    ["Offset of field: _cef_browser_host_t::send_capture_lost_event"]
8543        [::std::mem::offset_of!(_cef_browser_host_t, send_capture_lost_event) - 384usize];
8544    ["Offset of field: _cef_browser_host_t::notify_move_or_resize_started"]
8545        [::std::mem::offset_of!(_cef_browser_host_t, notify_move_or_resize_started) - 392usize];
8546    ["Offset of field: _cef_browser_host_t::get_windowless_frame_rate"]
8547        [::std::mem::offset_of!(_cef_browser_host_t, get_windowless_frame_rate) - 400usize];
8548    ["Offset of field: _cef_browser_host_t::set_windowless_frame_rate"]
8549        [::std::mem::offset_of!(_cef_browser_host_t, set_windowless_frame_rate) - 408usize];
8550    ["Offset of field: _cef_browser_host_t::ime_set_composition"]
8551        [::std::mem::offset_of!(_cef_browser_host_t, ime_set_composition) - 416usize];
8552    ["Offset of field: _cef_browser_host_t::ime_commit_text"]
8553        [::std::mem::offset_of!(_cef_browser_host_t, ime_commit_text) - 424usize];
8554    ["Offset of field: _cef_browser_host_t::ime_finish_composing_text"]
8555        [::std::mem::offset_of!(_cef_browser_host_t, ime_finish_composing_text) - 432usize];
8556    ["Offset of field: _cef_browser_host_t::ime_cancel_composition"]
8557        [::std::mem::offset_of!(_cef_browser_host_t, ime_cancel_composition) - 440usize];
8558    ["Offset of field: _cef_browser_host_t::drag_target_drag_enter"]
8559        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_enter) - 448usize];
8560    ["Offset of field: _cef_browser_host_t::drag_target_drag_over"]
8561        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_over) - 456usize];
8562    ["Offset of field: _cef_browser_host_t::drag_target_drag_leave"]
8563        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_leave) - 464usize];
8564    ["Offset of field: _cef_browser_host_t::drag_target_drop"]
8565        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drop) - 472usize];
8566    ["Offset of field: _cef_browser_host_t::drag_source_ended_at"]
8567        [::std::mem::offset_of!(_cef_browser_host_t, drag_source_ended_at) - 480usize];
8568    ["Offset of field: _cef_browser_host_t::drag_source_system_drag_ended"]
8569        [::std::mem::offset_of!(_cef_browser_host_t, drag_source_system_drag_ended) - 488usize];
8570    ["Offset of field: _cef_browser_host_t::get_visible_navigation_entry"]
8571        [::std::mem::offset_of!(_cef_browser_host_t, get_visible_navigation_entry) - 496usize];
8572    ["Offset of field: _cef_browser_host_t::set_accessibility_state"]
8573        [::std::mem::offset_of!(_cef_browser_host_t, set_accessibility_state) - 504usize];
8574    ["Offset of field: _cef_browser_host_t::set_auto_resize_enabled"]
8575        [::std::mem::offset_of!(_cef_browser_host_t, set_auto_resize_enabled) - 512usize];
8576    ["Offset of field: _cef_browser_host_t::set_audio_muted"]
8577        [::std::mem::offset_of!(_cef_browser_host_t, set_audio_muted) - 520usize];
8578    ["Offset of field: _cef_browser_host_t::is_audio_muted"]
8579        [::std::mem::offset_of!(_cef_browser_host_t, is_audio_muted) - 528usize];
8580    ["Offset of field: _cef_browser_host_t::is_fullscreen"]
8581        [::std::mem::offset_of!(_cef_browser_host_t, is_fullscreen) - 536usize];
8582    ["Offset of field: _cef_browser_host_t::exit_fullscreen"]
8583        [::std::mem::offset_of!(_cef_browser_host_t, exit_fullscreen) - 544usize];
8584    ["Offset of field: _cef_browser_host_t::can_execute_chrome_command"]
8585        [::std::mem::offset_of!(_cef_browser_host_t, can_execute_chrome_command) - 552usize];
8586    ["Offset of field: _cef_browser_host_t::execute_chrome_command"]
8587        [::std::mem::offset_of!(_cef_browser_host_t, execute_chrome_command) - 560usize];
8588    ["Offset of field: _cef_browser_host_t::is_render_process_unresponsive"]
8589        [::std::mem::offset_of!(_cef_browser_host_t, is_render_process_unresponsive) - 568usize];
8590    ["Offset of field: _cef_browser_host_t::get_runtime_style"]
8591        [::std::mem::offset_of!(_cef_browser_host_t, get_runtime_style) - 576usize];
8592};
8593#[doc = "\n Structure used to represent the browser process aspects of a browser. The\n functions of this structure can only be called in the browser process. They\n may be called on any thread in that process unless otherwise indicated in\n the comments.\n\n NOTE: This struct is allocated DLL-side.\n"]
8594pub type cef_browser_host_t = _cef_browser_host_t;
8595unsafe extern "C" {
8596    #[doc = "\n Create a new browser using the window parameters specified by |windowInfo|.\n All values will be copied internally and the actual window (if any) will be\n created on the UI thread. If |request_context| is NULL the global request\n context will be used. This function can be called on any browser process\n thread and will not block. The optional |extra_info| parameter provides an\n opportunity to specify extra information specific to the created browser\n that will be passed to cef_render_process_handler_t::on_browser_created() in\n the render process.\n"]
8597    pub fn cef_browser_host_create_browser(
8598        windowInfo: *const cef_window_info_t,
8599        client: *mut _cef_client_t,
8600        url: *const cef_string_t,
8601        settings: *const _cef_browser_settings_t,
8602        extra_info: *mut _cef_dictionary_value_t,
8603        request_context: *mut _cef_request_context_t,
8604    ) -> ::std::os::raw::c_int;
8605}
8606unsafe extern "C" {
8607    #[doc = "\n Create a new browser using the window parameters specified by |windowInfo|.\n If |request_context| is NULL the global request context will be used. This\n function can only be called on the browser process UI thread. The optional\n |extra_info| parameter provides an opportunity to specify extra information\n specific to the created browser that will be passed to\n cef_render_process_handler_t::on_browser_created() in the render process.\n"]
8608    pub fn cef_browser_host_create_browser_sync(
8609        windowInfo: *const cef_window_info_t,
8610        client: *mut _cef_client_t,
8611        url: *const cef_string_t,
8612        settings: *const _cef_browser_settings_t,
8613        extra_info: *mut _cef_dictionary_value_t,
8614        request_context: *mut _cef_request_context_t,
8615    ) -> *mut cef_browser_t;
8616}
8617unsafe extern "C" {
8618    #[doc = "\n Returns the browser (if any) with the specified identifier.\n"]
8619    pub fn cef_browser_host_get_browser_by_identifier(
8620        browser_id: ::std::os::raw::c_int,
8621    ) -> *mut cef_browser_t;
8622}
8623#[doc = "\n Implement this structure to handle audio events.\n\n NOTE: This struct is allocated client-side.\n"]
8624#[repr(C)]
8625#[derive(Debug, Copy, Clone)]
8626pub struct _cef_audio_handler_t {
8627    #[doc = "\n Base structure.\n"]
8628    pub base: cef_base_ref_counted_t,
8629    #[doc = "\n Called on the UI thread to allow configuration of audio stream parameters.\n Return true (1) to proceed with audio stream capture, or false (0) to\n cancel it. All members of |params| can optionally be configured here, but\n they are also pre-filled with some sensible defaults.\n"]
8630    pub get_audio_parameters: ::std::option::Option<
8631        unsafe extern "C" fn(
8632            self_: *mut _cef_audio_handler_t,
8633            browser: *mut _cef_browser_t,
8634            params: *mut cef_audio_parameters_t,
8635        ) -> ::std::os::raw::c_int,
8636    >,
8637    #[doc = "\n Called on a browser audio capture thread when the browser starts streaming\n audio. OnAudioStreamStopped will always be called after\n OnAudioStreamStarted; both functions may be called multiple times for the\n same browser. |params| contains the audio parameters like sample rate and\n channel layout. |channels| is the number of channels.\n"]
8638    pub on_audio_stream_started: ::std::option::Option<
8639        unsafe extern "C" fn(
8640            self_: *mut _cef_audio_handler_t,
8641            browser: *mut _cef_browser_t,
8642            params: *const cef_audio_parameters_t,
8643            channels: ::std::os::raw::c_int,
8644        ),
8645    >,
8646    #[doc = "\n Called on the audio stream thread when a PCM packet is received for the\n stream. |data| is an array representing the raw PCM data as a floating\n point type, i.e. 4-byte value(s). |frames| is the number of frames in the\n PCM packet. |pts| is the presentation timestamp (in milliseconds since the\n Unix Epoch) and represents the time at which the decompressed packet\n should be presented to the user. Based on |frames| and the\n |channel_layout| value passed to OnAudioStreamStarted you can calculate\n the size of the |data| array in bytes.\n"]
8647    pub on_audio_stream_packet: ::std::option::Option<
8648        unsafe extern "C" fn(
8649            self_: *mut _cef_audio_handler_t,
8650            browser: *mut _cef_browser_t,
8651            data: *mut *const f32,
8652            frames: ::std::os::raw::c_int,
8653            pts: i64,
8654        ),
8655    >,
8656    #[doc = "\n Called on the UI thread when the stream has stopped. OnAudioSteamStopped\n will always be called after OnAudioStreamStarted; both functions may be\n called multiple times for the same stream.\n"]
8657    pub on_audio_stream_stopped: ::std::option::Option<
8658        unsafe extern "C" fn(self_: *mut _cef_audio_handler_t, browser: *mut _cef_browser_t),
8659    >,
8660    #[doc = "\n Called on the UI or audio stream thread when an error occurred. During the\n stream creation phase this callback will be called on the UI thread while\n in the capturing phase it will be called on the audio stream thread. The\n stream will be stopped immediately.\n"]
8661    pub on_audio_stream_error: ::std::option::Option<
8662        unsafe extern "C" fn(
8663            self_: *mut _cef_audio_handler_t,
8664            browser: *mut _cef_browser_t,
8665            message: *const cef_string_t,
8666        ),
8667    >,
8668}
8669#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8670const _: () = {
8671    ["Size of _cef_audio_handler_t"][::std::mem::size_of::<_cef_audio_handler_t>() - 80usize];
8672    ["Alignment of _cef_audio_handler_t"][::std::mem::align_of::<_cef_audio_handler_t>() - 8usize];
8673    ["Offset of field: _cef_audio_handler_t::base"]
8674        [::std::mem::offset_of!(_cef_audio_handler_t, base) - 0usize];
8675    ["Offset of field: _cef_audio_handler_t::get_audio_parameters"]
8676        [::std::mem::offset_of!(_cef_audio_handler_t, get_audio_parameters) - 40usize];
8677    ["Offset of field: _cef_audio_handler_t::on_audio_stream_started"]
8678        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_started) - 48usize];
8679    ["Offset of field: _cef_audio_handler_t::on_audio_stream_packet"]
8680        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_packet) - 56usize];
8681    ["Offset of field: _cef_audio_handler_t::on_audio_stream_stopped"]
8682        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_stopped) - 64usize];
8683    ["Offset of field: _cef_audio_handler_t::on_audio_stream_error"]
8684        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_error) - 72usize];
8685};
8686#[doc = "\n Implement this structure to handle audio events.\n\n NOTE: This struct is allocated client-side.\n"]
8687pub type cef_audio_handler_t = _cef_audio_handler_t;
8688#[doc = "\n Implement this structure to handle events related to commands. The functions\n of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8689#[repr(C)]
8690#[derive(Debug, Copy, Clone)]
8691pub struct _cef_command_handler_t {
8692    #[doc = "\n Base structure.\n"]
8693    pub base: cef_base_ref_counted_t,
8694    #[doc = "\n Called to execute a Chrome command triggered via menu selection or\n keyboard shortcut. Use the cef_id_for_command_id_name() function for\n version-safe mapping of command IDC names from cef_command_ids.h to\n version-specific numerical |command_id| values. |disposition| provides\n information about the intended command target. Return true (1) if the\n command was handled or false (0) for the default implementation. For\n context menu commands this will be called after\n cef_context_menu_handler_t::OnContextMenuCommand. Only used with Chrome\n style.\n"]
8695    pub on_chrome_command: ::std::option::Option<
8696        unsafe extern "C" fn(
8697            self_: *mut _cef_command_handler_t,
8698            browser: *mut _cef_browser_t,
8699            command_id: ::std::os::raw::c_int,
8700            disposition: cef_window_open_disposition_t,
8701        ) -> ::std::os::raw::c_int,
8702    >,
8703    #[doc = "\n Called to check if a Chrome app menu item should be visible. Use the\n cef_id_for_command_id_name() function for version-safe mapping of command\n IDC names from cef_command_ids.h to version-specific numerical\n |command_id| values. Only called for menu items that would be visible by\n default. Only used with Chrome style.\n"]
8704    pub is_chrome_app_menu_item_visible: ::std::option::Option<
8705        unsafe extern "C" fn(
8706            self_: *mut _cef_command_handler_t,
8707            browser: *mut _cef_browser_t,
8708            command_id: ::std::os::raw::c_int,
8709        ) -> ::std::os::raw::c_int,
8710    >,
8711    #[doc = "\n Called to check if a Chrome app menu item should be enabled. Use the\n cef_id_for_command_id_name() function for version-safe mapping of command\n IDC names from cef_command_ids.h to version-specific numerical\n |command_id| values. Only called for menu items that would be enabled by\n default. Only used with Chrome style.\n"]
8712    pub is_chrome_app_menu_item_enabled: ::std::option::Option<
8713        unsafe extern "C" fn(
8714            self_: *mut _cef_command_handler_t,
8715            browser: *mut _cef_browser_t,
8716            command_id: ::std::os::raw::c_int,
8717        ) -> ::std::os::raw::c_int,
8718    >,
8719    #[doc = "\n Called during browser creation to check if a Chrome page action icon\n should be visible. Only called for icons that would be visible by default.\n Only used with Chrome style.\n"]
8720    pub is_chrome_page_action_icon_visible: ::std::option::Option<
8721        unsafe extern "C" fn(
8722            self_: *mut _cef_command_handler_t,
8723            icon_type: cef_chrome_page_action_icon_type_t,
8724        ) -> ::std::os::raw::c_int,
8725    >,
8726    #[doc = "\n Called during browser creation to check if a Chrome toolbar button should\n be visible. Only called for buttons that would be visible by default. Only\n used with Chrome style.\n"]
8727    pub is_chrome_toolbar_button_visible: ::std::option::Option<
8728        unsafe extern "C" fn(
8729            self_: *mut _cef_command_handler_t,
8730            button_type: cef_chrome_toolbar_button_type_t,
8731        ) -> ::std::os::raw::c_int,
8732    >,
8733}
8734#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8735const _: () = {
8736    ["Size of _cef_command_handler_t"][::std::mem::size_of::<_cef_command_handler_t>() - 80usize];
8737    ["Alignment of _cef_command_handler_t"]
8738        [::std::mem::align_of::<_cef_command_handler_t>() - 8usize];
8739    ["Offset of field: _cef_command_handler_t::base"]
8740        [::std::mem::offset_of!(_cef_command_handler_t, base) - 0usize];
8741    ["Offset of field: _cef_command_handler_t::on_chrome_command"]
8742        [::std::mem::offset_of!(_cef_command_handler_t, on_chrome_command) - 40usize];
8743    ["Offset of field: _cef_command_handler_t::is_chrome_app_menu_item_visible"]
8744        [::std::mem::offset_of!(_cef_command_handler_t, is_chrome_app_menu_item_visible) - 48usize];
8745    ["Offset of field: _cef_command_handler_t::is_chrome_app_menu_item_enabled"]
8746        [::std::mem::offset_of!(_cef_command_handler_t, is_chrome_app_menu_item_enabled) - 56usize];
8747    ["Offset of field: _cef_command_handler_t::is_chrome_page_action_icon_visible"][::std::mem::offset_of!(
8748        _cef_command_handler_t,
8749        is_chrome_page_action_icon_visible
8750    ) - 64usize];
8751    ["Offset of field: _cef_command_handler_t::is_chrome_toolbar_button_visible"][::std::mem::offset_of!(
8752        _cef_command_handler_t,
8753        is_chrome_toolbar_button_visible
8754    ) - 72usize];
8755};
8756#[doc = "\n Implement this structure to handle events related to commands. The functions\n of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
8757pub type cef_command_handler_t = _cef_command_handler_t;
8758#[doc = "\n Implement this structure to handle menu model events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
8759#[repr(C)]
8760#[derive(Debug, Copy, Clone)]
8761pub struct _cef_menu_model_delegate_t {
8762    #[doc = "\n Base structure.\n"]
8763    pub base: cef_base_ref_counted_t,
8764    #[doc = "\n Perform the action associated with the specified |command_id| and optional\n |event_flags|.\n"]
8765    pub execute_command: ::std::option::Option<
8766        unsafe extern "C" fn(
8767            self_: *mut _cef_menu_model_delegate_t,
8768            menu_model: *mut _cef_menu_model_t,
8769            command_id: ::std::os::raw::c_int,
8770            event_flags: cef_event_flags_t,
8771        ),
8772    >,
8773    #[doc = "\n Called when the user moves the mouse outside the menu and over the owning\n window.\n"]
8774    pub mouse_outside_menu: ::std::option::Option<
8775        unsafe extern "C" fn(
8776            self_: *mut _cef_menu_model_delegate_t,
8777            menu_model: *mut _cef_menu_model_t,
8778            screen_point: *const cef_point_t,
8779        ),
8780    >,
8781    #[doc = "\n Called on unhandled open submenu keyboard commands. |is_rtl| will be true\n (1) if the menu is displaying a right-to-left language.\n"]
8782    pub unhandled_open_submenu: ::std::option::Option<
8783        unsafe extern "C" fn(
8784            self_: *mut _cef_menu_model_delegate_t,
8785            menu_model: *mut _cef_menu_model_t,
8786            is_rtl: ::std::os::raw::c_int,
8787        ),
8788    >,
8789    #[doc = "\n Called on unhandled close submenu keyboard commands. |is_rtl| will be true\n (1) if the menu is displaying a right-to-left language.\n"]
8790    pub unhandled_close_submenu: ::std::option::Option<
8791        unsafe extern "C" fn(
8792            self_: *mut _cef_menu_model_delegate_t,
8793            menu_model: *mut _cef_menu_model_t,
8794            is_rtl: ::std::os::raw::c_int,
8795        ),
8796    >,
8797    #[doc = "\n The menu is about to show.\n"]
8798    pub menu_will_show: ::std::option::Option<
8799        unsafe extern "C" fn(
8800            self_: *mut _cef_menu_model_delegate_t,
8801            menu_model: *mut _cef_menu_model_t,
8802        ),
8803    >,
8804    #[doc = "\n The menu has closed.\n"]
8805    pub menu_closed: ::std::option::Option<
8806        unsafe extern "C" fn(
8807            self_: *mut _cef_menu_model_delegate_t,
8808            menu_model: *mut _cef_menu_model_t,
8809        ),
8810    >,
8811    #[doc = "\n Optionally modify a menu item label. Return true (1) if |label| was\n modified.\n"]
8812    pub format_label: ::std::option::Option<
8813        unsafe extern "C" fn(
8814            self_: *mut _cef_menu_model_delegate_t,
8815            menu_model: *mut _cef_menu_model_t,
8816            label: *mut cef_string_t,
8817        ) -> ::std::os::raw::c_int,
8818    >,
8819}
8820#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8821const _: () = {
8822    ["Size of _cef_menu_model_delegate_t"]
8823        [::std::mem::size_of::<_cef_menu_model_delegate_t>() - 96usize];
8824    ["Alignment of _cef_menu_model_delegate_t"]
8825        [::std::mem::align_of::<_cef_menu_model_delegate_t>() - 8usize];
8826    ["Offset of field: _cef_menu_model_delegate_t::base"]
8827        [::std::mem::offset_of!(_cef_menu_model_delegate_t, base) - 0usize];
8828    ["Offset of field: _cef_menu_model_delegate_t::execute_command"]
8829        [::std::mem::offset_of!(_cef_menu_model_delegate_t, execute_command) - 40usize];
8830    ["Offset of field: _cef_menu_model_delegate_t::mouse_outside_menu"]
8831        [::std::mem::offset_of!(_cef_menu_model_delegate_t, mouse_outside_menu) - 48usize];
8832    ["Offset of field: _cef_menu_model_delegate_t::unhandled_open_submenu"]
8833        [::std::mem::offset_of!(_cef_menu_model_delegate_t, unhandled_open_submenu) - 56usize];
8834    ["Offset of field: _cef_menu_model_delegate_t::unhandled_close_submenu"]
8835        [::std::mem::offset_of!(_cef_menu_model_delegate_t, unhandled_close_submenu) - 64usize];
8836    ["Offset of field: _cef_menu_model_delegate_t::menu_will_show"]
8837        [::std::mem::offset_of!(_cef_menu_model_delegate_t, menu_will_show) - 72usize];
8838    ["Offset of field: _cef_menu_model_delegate_t::menu_closed"]
8839        [::std::mem::offset_of!(_cef_menu_model_delegate_t, menu_closed) - 80usize];
8840    ["Offset of field: _cef_menu_model_delegate_t::format_label"]
8841        [::std::mem::offset_of!(_cef_menu_model_delegate_t, format_label) - 88usize];
8842};
8843#[doc = "\n Implement this structure to handle menu model events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
8844pub type cef_menu_model_delegate_t = _cef_menu_model_delegate_t;
8845#[doc = "\n Supports creation and modification of menus. See cef_menu_id_t for the\n command ids that have default implementations. All user-defined command ids\n should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. The functions of\n this structure can only be accessed on the browser process the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
8846#[repr(C)]
8847#[derive(Debug, Copy, Clone)]
8848pub struct _cef_menu_model_t {
8849    #[doc = "\n Base structure.\n"]
8850    pub base: cef_base_ref_counted_t,
8851    #[doc = "\n Returns true (1) if this menu is a submenu.\n"]
8852    pub is_sub_menu: ::std::option::Option<
8853        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
8854    >,
8855    #[doc = "\n Clears the menu. Returns true (1) on success.\n"]
8856    pub clear: ::std::option::Option<
8857        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
8858    >,
8859    #[doc = "\n Returns the number of items in this menu.\n"]
8860    pub get_count:
8861        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> usize>,
8862    #[doc = "\n Add a separator to the menu. Returns true (1) on success.\n"]
8863    pub add_separator: ::std::option::Option<
8864        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
8865    >,
8866    #[doc = "\n Add an item to the menu. Returns true (1) on success.\n"]
8867    pub add_item: ::std::option::Option<
8868        unsafe extern "C" fn(
8869            self_: *mut _cef_menu_model_t,
8870            command_id: ::std::os::raw::c_int,
8871            label: *const cef_string_t,
8872        ) -> ::std::os::raw::c_int,
8873    >,
8874    #[doc = "\n Add a check item to the menu. Returns true (1) on success.\n"]
8875    pub add_check_item: ::std::option::Option<
8876        unsafe extern "C" fn(
8877            self_: *mut _cef_menu_model_t,
8878            command_id: ::std::os::raw::c_int,
8879            label: *const cef_string_t,
8880        ) -> ::std::os::raw::c_int,
8881    >,
8882    #[doc = "\n Add a radio item to the menu. Only a single item with the specified\n |group_id| can be checked at a time. Returns true (1) on success.\n"]
8883    pub add_radio_item: ::std::option::Option<
8884        unsafe extern "C" fn(
8885            self_: *mut _cef_menu_model_t,
8886            command_id: ::std::os::raw::c_int,
8887            label: *const cef_string_t,
8888            group_id: ::std::os::raw::c_int,
8889        ) -> ::std::os::raw::c_int,
8890    >,
8891    #[doc = "\n Add a sub-menu to the menu. The new sub-menu is returned.\n"]
8892    pub add_sub_menu: ::std::option::Option<
8893        unsafe extern "C" fn(
8894            self_: *mut _cef_menu_model_t,
8895            command_id: ::std::os::raw::c_int,
8896            label: *const cef_string_t,
8897        ) -> *mut _cef_menu_model_t,
8898    >,
8899    #[doc = "\n Insert a separator in the menu at the specified |index|. Returns true (1)\n on success.\n"]
8900    pub insert_separator_at: ::std::option::Option<
8901        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
8902    >,
8903    #[doc = "\n Insert an item in the menu at the specified |index|. Returns true (1) on\n success.\n"]
8904    pub insert_item_at: ::std::option::Option<
8905        unsafe extern "C" fn(
8906            self_: *mut _cef_menu_model_t,
8907            index: usize,
8908            command_id: ::std::os::raw::c_int,
8909            label: *const cef_string_t,
8910        ) -> ::std::os::raw::c_int,
8911    >,
8912    #[doc = "\n Insert a check item in the menu at the specified |index|. Returns true (1)\n on success.\n"]
8913    pub insert_check_item_at: ::std::option::Option<
8914        unsafe extern "C" fn(
8915            self_: *mut _cef_menu_model_t,
8916            index: usize,
8917            command_id: ::std::os::raw::c_int,
8918            label: *const cef_string_t,
8919        ) -> ::std::os::raw::c_int,
8920    >,
8921    #[doc = "\n Insert a radio item in the menu at the specified |index|. Only a single\n item with the specified |group_id| can be checked at a time. Returns true\n (1) on success.\n"]
8922    pub insert_radio_item_at: ::std::option::Option<
8923        unsafe extern "C" fn(
8924            self_: *mut _cef_menu_model_t,
8925            index: usize,
8926            command_id: ::std::os::raw::c_int,
8927            label: *const cef_string_t,
8928            group_id: ::std::os::raw::c_int,
8929        ) -> ::std::os::raw::c_int,
8930    >,
8931    #[doc = "\n Insert a sub-menu in the menu at the specified |index|. The new sub-menu\n is returned.\n"]
8932    pub insert_sub_menu_at: ::std::option::Option<
8933        unsafe extern "C" fn(
8934            self_: *mut _cef_menu_model_t,
8935            index: usize,
8936            command_id: ::std::os::raw::c_int,
8937            label: *const cef_string_t,
8938        ) -> *mut _cef_menu_model_t,
8939    >,
8940    #[doc = "\n Removes the item with the specified |command_id|. Returns true (1) on\n success.\n"]
8941    pub remove: ::std::option::Option<
8942        unsafe extern "C" fn(
8943            self_: *mut _cef_menu_model_t,
8944            command_id: ::std::os::raw::c_int,
8945        ) -> ::std::os::raw::c_int,
8946    >,
8947    #[doc = "\n Removes the item at the specified |index|. Returns true (1) on success.\n"]
8948    pub remove_at: ::std::option::Option<
8949        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
8950    >,
8951    #[doc = "\n Returns the index associated with the specified |command_id| or -1 if not\n found due to the command id not existing in the menu.\n"]
8952    pub get_index_of: ::std::option::Option<
8953        unsafe extern "C" fn(
8954            self_: *mut _cef_menu_model_t,
8955            command_id: ::std::os::raw::c_int,
8956        ) -> ::std::os::raw::c_int,
8957    >,
8958    #[doc = "\n Returns the command id at the specified |index| or -1 if not found due to\n invalid range or the index being a separator.\n"]
8959    pub get_command_id_at: ::std::option::Option<
8960        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
8961    >,
8962    #[doc = "\n Sets the command id at the specified |index|. Returns true (1) on success.\n"]
8963    pub set_command_id_at: ::std::option::Option<
8964        unsafe extern "C" fn(
8965            self_: *mut _cef_menu_model_t,
8966            index: usize,
8967            command_id: ::std::os::raw::c_int,
8968        ) -> ::std::os::raw::c_int,
8969    >,
8970    #[doc = "\n Returns the label for the specified |command_id| or NULL if not found.\n"]
8971    pub get_label: ::std::option::Option<
8972        unsafe extern "C" fn(
8973            self_: *mut _cef_menu_model_t,
8974            command_id: ::std::os::raw::c_int,
8975        ) -> cef_string_userfree_t,
8976    >,
8977    #[doc = "\n Returns the label at the specified |index| or NULL if not found due to\n invalid range or the index being a separator.\n"]
8978    pub get_label_at: ::std::option::Option<
8979        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> cef_string_userfree_t,
8980    >,
8981    #[doc = "\n Sets the label for the specified |command_id|. Returns true (1) on\n success.\n"]
8982    pub set_label: ::std::option::Option<
8983        unsafe extern "C" fn(
8984            self_: *mut _cef_menu_model_t,
8985            command_id: ::std::os::raw::c_int,
8986            label: *const cef_string_t,
8987        ) -> ::std::os::raw::c_int,
8988    >,
8989    #[doc = "\n Set the label at the specified |index|. Returns true (1) on success.\n"]
8990    pub set_label_at: ::std::option::Option<
8991        unsafe extern "C" fn(
8992            self_: *mut _cef_menu_model_t,
8993            index: usize,
8994            label: *const cef_string_t,
8995        ) -> ::std::os::raw::c_int,
8996    >,
8997    #[doc = "\n Returns the item type for the specified |command_id|.\n"]
8998    pub get_type: ::std::option::Option<
8999        unsafe extern "C" fn(
9000            self_: *mut _cef_menu_model_t,
9001            command_id: ::std::os::raw::c_int,
9002        ) -> cef_menu_item_type_t,
9003    >,
9004    #[doc = "\n Returns the item type at the specified |index|.\n"]
9005    pub get_type_at: ::std::option::Option<
9006        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> cef_menu_item_type_t,
9007    >,
9008    #[doc = "\n Returns the group id for the specified |command_id| or -1 if invalid.\n"]
9009    pub get_group_id: ::std::option::Option<
9010        unsafe extern "C" fn(
9011            self_: *mut _cef_menu_model_t,
9012            command_id: ::std::os::raw::c_int,
9013        ) -> ::std::os::raw::c_int,
9014    >,
9015    #[doc = "\n Returns the group id at the specified |index| or -1 if invalid.\n"]
9016    pub get_group_id_at: ::std::option::Option<
9017        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9018    >,
9019    #[doc = "\n Sets the group id for the specified |command_id|. Returns true (1) on\n success.\n"]
9020    pub set_group_id: ::std::option::Option<
9021        unsafe extern "C" fn(
9022            self_: *mut _cef_menu_model_t,
9023            command_id: ::std::os::raw::c_int,
9024            group_id: ::std::os::raw::c_int,
9025        ) -> ::std::os::raw::c_int,
9026    >,
9027    #[doc = "\n Sets the group id at the specified |index|. Returns true (1) on success.\n"]
9028    pub set_group_id_at: ::std::option::Option<
9029        unsafe extern "C" fn(
9030            self_: *mut _cef_menu_model_t,
9031            index: usize,
9032            group_id: ::std::os::raw::c_int,
9033        ) -> ::std::os::raw::c_int,
9034    >,
9035    #[doc = "\n Returns the submenu for the specified |command_id| or NULL if invalid.\n"]
9036    pub get_sub_menu: ::std::option::Option<
9037        unsafe extern "C" fn(
9038            self_: *mut _cef_menu_model_t,
9039            command_id: ::std::os::raw::c_int,
9040        ) -> *mut _cef_menu_model_t,
9041    >,
9042    #[doc = "\n Returns the submenu at the specified |index| or NULL if invalid.\n"]
9043    pub get_sub_menu_at: ::std::option::Option<
9044        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> *mut _cef_menu_model_t,
9045    >,
9046    #[doc = "\n Returns true (1) if the specified |command_id| is visible.\n"]
9047    pub is_visible: ::std::option::Option<
9048        unsafe extern "C" fn(
9049            self_: *mut _cef_menu_model_t,
9050            command_id: ::std::os::raw::c_int,
9051        ) -> ::std::os::raw::c_int,
9052    >,
9053    #[doc = "\n Returns true (1) if the specified |index| is visible.\n"]
9054    pub is_visible_at: ::std::option::Option<
9055        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9056    >,
9057    #[doc = "\n Change the visibility of the specified |command_id|. Returns true (1) on\n success.\n"]
9058    pub set_visible: ::std::option::Option<
9059        unsafe extern "C" fn(
9060            self_: *mut _cef_menu_model_t,
9061            command_id: ::std::os::raw::c_int,
9062            visible: ::std::os::raw::c_int,
9063        ) -> ::std::os::raw::c_int,
9064    >,
9065    #[doc = "\n Change the visibility at the specified |index|. Returns true (1) on\n success.\n"]
9066    pub set_visible_at: ::std::option::Option<
9067        unsafe extern "C" fn(
9068            self_: *mut _cef_menu_model_t,
9069            index: usize,
9070            visible: ::std::os::raw::c_int,
9071        ) -> ::std::os::raw::c_int,
9072    >,
9073    #[doc = "\n Returns true (1) if the specified |command_id| is enabled.\n"]
9074    pub is_enabled: ::std::option::Option<
9075        unsafe extern "C" fn(
9076            self_: *mut _cef_menu_model_t,
9077            command_id: ::std::os::raw::c_int,
9078        ) -> ::std::os::raw::c_int,
9079    >,
9080    #[doc = "\n Returns true (1) if the specified |index| is enabled.\n"]
9081    pub is_enabled_at: ::std::option::Option<
9082        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9083    >,
9084    #[doc = "\n Change the enabled status of the specified |command_id|. Returns true (1)\n on success.\n"]
9085    pub set_enabled: ::std::option::Option<
9086        unsafe extern "C" fn(
9087            self_: *mut _cef_menu_model_t,
9088            command_id: ::std::os::raw::c_int,
9089            enabled: ::std::os::raw::c_int,
9090        ) -> ::std::os::raw::c_int,
9091    >,
9092    #[doc = "\n Change the enabled status at the specified |index|. Returns true (1) on\n success.\n"]
9093    pub set_enabled_at: ::std::option::Option<
9094        unsafe extern "C" fn(
9095            self_: *mut _cef_menu_model_t,
9096            index: usize,
9097            enabled: ::std::os::raw::c_int,
9098        ) -> ::std::os::raw::c_int,
9099    >,
9100    #[doc = "\n Returns true (1) if the specified |command_id| is checked. Only applies to\n check and radio items.\n"]
9101    pub is_checked: ::std::option::Option<
9102        unsafe extern "C" fn(
9103            self_: *mut _cef_menu_model_t,
9104            command_id: ::std::os::raw::c_int,
9105        ) -> ::std::os::raw::c_int,
9106    >,
9107    #[doc = "\n Returns true (1) if the specified |index| is checked. Only applies to\n check and radio items.\n"]
9108    pub is_checked_at: ::std::option::Option<
9109        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9110    >,
9111    #[doc = "\n Check the specified |command_id|. Only applies to check and radio items.\n Returns true (1) on success.\n"]
9112    pub set_checked: ::std::option::Option<
9113        unsafe extern "C" fn(
9114            self_: *mut _cef_menu_model_t,
9115            command_id: ::std::os::raw::c_int,
9116            checked: ::std::os::raw::c_int,
9117        ) -> ::std::os::raw::c_int,
9118    >,
9119    #[doc = "\n Check the specified |index|. Only applies to check and radio items.\n Returns true (1) on success.\n"]
9120    pub set_checked_at: ::std::option::Option<
9121        unsafe extern "C" fn(
9122            self_: *mut _cef_menu_model_t,
9123            index: usize,
9124            checked: ::std::os::raw::c_int,
9125        ) -> ::std::os::raw::c_int,
9126    >,
9127    #[doc = "\n Returns true (1) if the specified |command_id| has a keyboard accelerator\n assigned.\n"]
9128    pub has_accelerator: ::std::option::Option<
9129        unsafe extern "C" fn(
9130            self_: *mut _cef_menu_model_t,
9131            command_id: ::std::os::raw::c_int,
9132        ) -> ::std::os::raw::c_int,
9133    >,
9134    #[doc = "\n Returns true (1) if the specified |index| has a keyboard accelerator\n assigned.\n"]
9135    pub has_accelerator_at: ::std::option::Option<
9136        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9137    >,
9138    #[doc = "\n Set the keyboard accelerator for the specified |command_id|. |key_code|\n can be any virtual key or character value. Returns true (1) on success.\n"]
9139    pub set_accelerator: ::std::option::Option<
9140        unsafe extern "C" fn(
9141            self_: *mut _cef_menu_model_t,
9142            command_id: ::std::os::raw::c_int,
9143            key_code: ::std::os::raw::c_int,
9144            shift_pressed: ::std::os::raw::c_int,
9145            ctrl_pressed: ::std::os::raw::c_int,
9146            alt_pressed: ::std::os::raw::c_int,
9147        ) -> ::std::os::raw::c_int,
9148    >,
9149    #[doc = "\n Set the keyboard accelerator at the specified |index|. |key_code| can be\n any virtual key or character value. Returns true (1) on success.\n"]
9150    pub set_accelerator_at: ::std::option::Option<
9151        unsafe extern "C" fn(
9152            self_: *mut _cef_menu_model_t,
9153            index: usize,
9154            key_code: ::std::os::raw::c_int,
9155            shift_pressed: ::std::os::raw::c_int,
9156            ctrl_pressed: ::std::os::raw::c_int,
9157            alt_pressed: ::std::os::raw::c_int,
9158        ) -> ::std::os::raw::c_int,
9159    >,
9160    #[doc = "\n Remove the keyboard accelerator for the specified |command_id|. Returns\n true (1) on success.\n"]
9161    pub remove_accelerator: ::std::option::Option<
9162        unsafe extern "C" fn(
9163            self_: *mut _cef_menu_model_t,
9164            command_id: ::std::os::raw::c_int,
9165        ) -> ::std::os::raw::c_int,
9166    >,
9167    #[doc = "\n Remove the keyboard accelerator at the specified |index|. Returns true (1)\n on success.\n"]
9168    pub remove_accelerator_at: ::std::option::Option<
9169        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9170    >,
9171    #[doc = "\n Retrieves the keyboard accelerator for the specified |command_id|. Returns\n true (1) on success.\n"]
9172    pub get_accelerator: ::std::option::Option<
9173        unsafe extern "C" fn(
9174            self_: *mut _cef_menu_model_t,
9175            command_id: ::std::os::raw::c_int,
9176            key_code: *mut ::std::os::raw::c_int,
9177            shift_pressed: *mut ::std::os::raw::c_int,
9178            ctrl_pressed: *mut ::std::os::raw::c_int,
9179            alt_pressed: *mut ::std::os::raw::c_int,
9180        ) -> ::std::os::raw::c_int,
9181    >,
9182    #[doc = "\n Retrieves the keyboard accelerator for the specified |index|. Returns true\n (1) on success.\n"]
9183    pub get_accelerator_at: ::std::option::Option<
9184        unsafe extern "C" fn(
9185            self_: *mut _cef_menu_model_t,
9186            index: usize,
9187            key_code: *mut ::std::os::raw::c_int,
9188            shift_pressed: *mut ::std::os::raw::c_int,
9189            ctrl_pressed: *mut ::std::os::raw::c_int,
9190            alt_pressed: *mut ::std::os::raw::c_int,
9191        ) -> ::std::os::raw::c_int,
9192    >,
9193    #[doc = "\n Set the explicit color for |command_id| and |color_type| to |color|.\n Specify a |color| value of 0 to remove the explicit color. If no explicit\n color or default color is set for |color_type| then the system color will\n be used. Returns true (1) on success.\n"]
9194    pub set_color: ::std::option::Option<
9195        unsafe extern "C" fn(
9196            self_: *mut _cef_menu_model_t,
9197            command_id: ::std::os::raw::c_int,
9198            color_type: cef_menu_color_type_t,
9199            color: cef_color_t,
9200        ) -> ::std::os::raw::c_int,
9201    >,
9202    #[doc = "\n Set the explicit color for |command_id| and |index| to |color|. Specify a\n |color| value of 0 to remove the explicit color. Specify an |index| value\n of -1 to set the default color for items that do not have an explicit\n color set. If no explicit color or default color is set for |color_type|\n then the system color will be used. Returns true (1) on success.\n"]
9203    pub set_color_at: ::std::option::Option<
9204        unsafe extern "C" fn(
9205            self_: *mut _cef_menu_model_t,
9206            index: ::std::os::raw::c_int,
9207            color_type: cef_menu_color_type_t,
9208            color: cef_color_t,
9209        ) -> ::std::os::raw::c_int,
9210    >,
9211    #[doc = "\n Returns in |color| the color that was explicitly set for |command_id| and\n |color_type|. If a color was not set then 0 will be returned in |color|.\n Returns true (1) on success.\n"]
9212    pub get_color: ::std::option::Option<
9213        unsafe extern "C" fn(
9214            self_: *mut _cef_menu_model_t,
9215            command_id: ::std::os::raw::c_int,
9216            color_type: cef_menu_color_type_t,
9217            color: *mut cef_color_t,
9218        ) -> ::std::os::raw::c_int,
9219    >,
9220    #[doc = "\n Returns in |color| the color that was explicitly set for |command_id| and\n |color_type|. Specify an |index| value of -1 to return the default color\n in |color|. If a color was not set then 0 will be returned in |color|.\n Returns true (1) on success.\n"]
9221    pub get_color_at: ::std::option::Option<
9222        unsafe extern "C" fn(
9223            self_: *mut _cef_menu_model_t,
9224            index: ::std::os::raw::c_int,
9225            color_type: cef_menu_color_type_t,
9226            color: *mut cef_color_t,
9227        ) -> ::std::os::raw::c_int,
9228    >,
9229    #[doc = "\n Sets the font list for the specified |command_id|. If |font_list| is NULL\n the system font will be used. Returns true (1) on success. The format is\n \"<FONT_FAMILY_LIST>,[STYLES] <SIZE>\", where:\n - FONT_FAMILY_LIST is a comma-separated list of font family names,\n - STYLES is an optional space-separated list of style names (case-\n   sensitive \"Bold\" and \"Italic\" are supported), and\n - SIZE is an integer font size in pixels with the suffix \"px\".\n\n Here are examples of valid font description strings:\n - \"Arial, Helvetica, Bold Italic 14px\"\n - \"Arial, 14px\"\n"]
9230    pub set_font_list: ::std::option::Option<
9231        unsafe extern "C" fn(
9232            self_: *mut _cef_menu_model_t,
9233            command_id: ::std::os::raw::c_int,
9234            font_list: *const cef_string_t,
9235        ) -> ::std::os::raw::c_int,
9236    >,
9237    #[doc = "\n Sets the font list for the specified |index|. Specify an |index| value of\n - 1 to set the default font. If |font_list| is NULL the system font will\n - FONT_FAMILY_LIST is a comma-separated list of font family names,\n - STYLES is an optional space-separated list of style names (case-\n   sensitive \"Bold\" and \"Italic\" are supported), and\n - SIZE is an integer font size in pixels with the suffix \"px\".\n\n Here are examples of valid font description strings:\n - \"Arial, Helvetica, Bold Italic 14px\"\n - \"Arial, 14px\"\n"]
9238    pub set_font_list_at: ::std::option::Option<
9239        unsafe extern "C" fn(
9240            self_: *mut _cef_menu_model_t,
9241            index: ::std::os::raw::c_int,
9242            font_list: *const cef_string_t,
9243        ) -> ::std::os::raw::c_int,
9244    >,
9245}
9246#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9247const _: () = {
9248    ["Size of _cef_menu_model_t"][::std::mem::size_of::<_cef_menu_model_t>() - 488usize];
9249    ["Alignment of _cef_menu_model_t"][::std::mem::align_of::<_cef_menu_model_t>() - 8usize];
9250    ["Offset of field: _cef_menu_model_t::base"]
9251        [::std::mem::offset_of!(_cef_menu_model_t, base) - 0usize];
9252    ["Offset of field: _cef_menu_model_t::is_sub_menu"]
9253        [::std::mem::offset_of!(_cef_menu_model_t, is_sub_menu) - 40usize];
9254    ["Offset of field: _cef_menu_model_t::clear"]
9255        [::std::mem::offset_of!(_cef_menu_model_t, clear) - 48usize];
9256    ["Offset of field: _cef_menu_model_t::get_count"]
9257        [::std::mem::offset_of!(_cef_menu_model_t, get_count) - 56usize];
9258    ["Offset of field: _cef_menu_model_t::add_separator"]
9259        [::std::mem::offset_of!(_cef_menu_model_t, add_separator) - 64usize];
9260    ["Offset of field: _cef_menu_model_t::add_item"]
9261        [::std::mem::offset_of!(_cef_menu_model_t, add_item) - 72usize];
9262    ["Offset of field: _cef_menu_model_t::add_check_item"]
9263        [::std::mem::offset_of!(_cef_menu_model_t, add_check_item) - 80usize];
9264    ["Offset of field: _cef_menu_model_t::add_radio_item"]
9265        [::std::mem::offset_of!(_cef_menu_model_t, add_radio_item) - 88usize];
9266    ["Offset of field: _cef_menu_model_t::add_sub_menu"]
9267        [::std::mem::offset_of!(_cef_menu_model_t, add_sub_menu) - 96usize];
9268    ["Offset of field: _cef_menu_model_t::insert_separator_at"]
9269        [::std::mem::offset_of!(_cef_menu_model_t, insert_separator_at) - 104usize];
9270    ["Offset of field: _cef_menu_model_t::insert_item_at"]
9271        [::std::mem::offset_of!(_cef_menu_model_t, insert_item_at) - 112usize];
9272    ["Offset of field: _cef_menu_model_t::insert_check_item_at"]
9273        [::std::mem::offset_of!(_cef_menu_model_t, insert_check_item_at) - 120usize];
9274    ["Offset of field: _cef_menu_model_t::insert_radio_item_at"]
9275        [::std::mem::offset_of!(_cef_menu_model_t, insert_radio_item_at) - 128usize];
9276    ["Offset of field: _cef_menu_model_t::insert_sub_menu_at"]
9277        [::std::mem::offset_of!(_cef_menu_model_t, insert_sub_menu_at) - 136usize];
9278    ["Offset of field: _cef_menu_model_t::remove"]
9279        [::std::mem::offset_of!(_cef_menu_model_t, remove) - 144usize];
9280    ["Offset of field: _cef_menu_model_t::remove_at"]
9281        [::std::mem::offset_of!(_cef_menu_model_t, remove_at) - 152usize];
9282    ["Offset of field: _cef_menu_model_t::get_index_of"]
9283        [::std::mem::offset_of!(_cef_menu_model_t, get_index_of) - 160usize];
9284    ["Offset of field: _cef_menu_model_t::get_command_id_at"]
9285        [::std::mem::offset_of!(_cef_menu_model_t, get_command_id_at) - 168usize];
9286    ["Offset of field: _cef_menu_model_t::set_command_id_at"]
9287        [::std::mem::offset_of!(_cef_menu_model_t, set_command_id_at) - 176usize];
9288    ["Offset of field: _cef_menu_model_t::get_label"]
9289        [::std::mem::offset_of!(_cef_menu_model_t, get_label) - 184usize];
9290    ["Offset of field: _cef_menu_model_t::get_label_at"]
9291        [::std::mem::offset_of!(_cef_menu_model_t, get_label_at) - 192usize];
9292    ["Offset of field: _cef_menu_model_t::set_label"]
9293        [::std::mem::offset_of!(_cef_menu_model_t, set_label) - 200usize];
9294    ["Offset of field: _cef_menu_model_t::set_label_at"]
9295        [::std::mem::offset_of!(_cef_menu_model_t, set_label_at) - 208usize];
9296    ["Offset of field: _cef_menu_model_t::get_type"]
9297        [::std::mem::offset_of!(_cef_menu_model_t, get_type) - 216usize];
9298    ["Offset of field: _cef_menu_model_t::get_type_at"]
9299        [::std::mem::offset_of!(_cef_menu_model_t, get_type_at) - 224usize];
9300    ["Offset of field: _cef_menu_model_t::get_group_id"]
9301        [::std::mem::offset_of!(_cef_menu_model_t, get_group_id) - 232usize];
9302    ["Offset of field: _cef_menu_model_t::get_group_id_at"]
9303        [::std::mem::offset_of!(_cef_menu_model_t, get_group_id_at) - 240usize];
9304    ["Offset of field: _cef_menu_model_t::set_group_id"]
9305        [::std::mem::offset_of!(_cef_menu_model_t, set_group_id) - 248usize];
9306    ["Offset of field: _cef_menu_model_t::set_group_id_at"]
9307        [::std::mem::offset_of!(_cef_menu_model_t, set_group_id_at) - 256usize];
9308    ["Offset of field: _cef_menu_model_t::get_sub_menu"]
9309        [::std::mem::offset_of!(_cef_menu_model_t, get_sub_menu) - 264usize];
9310    ["Offset of field: _cef_menu_model_t::get_sub_menu_at"]
9311        [::std::mem::offset_of!(_cef_menu_model_t, get_sub_menu_at) - 272usize];
9312    ["Offset of field: _cef_menu_model_t::is_visible"]
9313        [::std::mem::offset_of!(_cef_menu_model_t, is_visible) - 280usize];
9314    ["Offset of field: _cef_menu_model_t::is_visible_at"]
9315        [::std::mem::offset_of!(_cef_menu_model_t, is_visible_at) - 288usize];
9316    ["Offset of field: _cef_menu_model_t::set_visible"]
9317        [::std::mem::offset_of!(_cef_menu_model_t, set_visible) - 296usize];
9318    ["Offset of field: _cef_menu_model_t::set_visible_at"]
9319        [::std::mem::offset_of!(_cef_menu_model_t, set_visible_at) - 304usize];
9320    ["Offset of field: _cef_menu_model_t::is_enabled"]
9321        [::std::mem::offset_of!(_cef_menu_model_t, is_enabled) - 312usize];
9322    ["Offset of field: _cef_menu_model_t::is_enabled_at"]
9323        [::std::mem::offset_of!(_cef_menu_model_t, is_enabled_at) - 320usize];
9324    ["Offset of field: _cef_menu_model_t::set_enabled"]
9325        [::std::mem::offset_of!(_cef_menu_model_t, set_enabled) - 328usize];
9326    ["Offset of field: _cef_menu_model_t::set_enabled_at"]
9327        [::std::mem::offset_of!(_cef_menu_model_t, set_enabled_at) - 336usize];
9328    ["Offset of field: _cef_menu_model_t::is_checked"]
9329        [::std::mem::offset_of!(_cef_menu_model_t, is_checked) - 344usize];
9330    ["Offset of field: _cef_menu_model_t::is_checked_at"]
9331        [::std::mem::offset_of!(_cef_menu_model_t, is_checked_at) - 352usize];
9332    ["Offset of field: _cef_menu_model_t::set_checked"]
9333        [::std::mem::offset_of!(_cef_menu_model_t, set_checked) - 360usize];
9334    ["Offset of field: _cef_menu_model_t::set_checked_at"]
9335        [::std::mem::offset_of!(_cef_menu_model_t, set_checked_at) - 368usize];
9336    ["Offset of field: _cef_menu_model_t::has_accelerator"]
9337        [::std::mem::offset_of!(_cef_menu_model_t, has_accelerator) - 376usize];
9338    ["Offset of field: _cef_menu_model_t::has_accelerator_at"]
9339        [::std::mem::offset_of!(_cef_menu_model_t, has_accelerator_at) - 384usize];
9340    ["Offset of field: _cef_menu_model_t::set_accelerator"]
9341        [::std::mem::offset_of!(_cef_menu_model_t, set_accelerator) - 392usize];
9342    ["Offset of field: _cef_menu_model_t::set_accelerator_at"]
9343        [::std::mem::offset_of!(_cef_menu_model_t, set_accelerator_at) - 400usize];
9344    ["Offset of field: _cef_menu_model_t::remove_accelerator"]
9345        [::std::mem::offset_of!(_cef_menu_model_t, remove_accelerator) - 408usize];
9346    ["Offset of field: _cef_menu_model_t::remove_accelerator_at"]
9347        [::std::mem::offset_of!(_cef_menu_model_t, remove_accelerator_at) - 416usize];
9348    ["Offset of field: _cef_menu_model_t::get_accelerator"]
9349        [::std::mem::offset_of!(_cef_menu_model_t, get_accelerator) - 424usize];
9350    ["Offset of field: _cef_menu_model_t::get_accelerator_at"]
9351        [::std::mem::offset_of!(_cef_menu_model_t, get_accelerator_at) - 432usize];
9352    ["Offset of field: _cef_menu_model_t::set_color"]
9353        [::std::mem::offset_of!(_cef_menu_model_t, set_color) - 440usize];
9354    ["Offset of field: _cef_menu_model_t::set_color_at"]
9355        [::std::mem::offset_of!(_cef_menu_model_t, set_color_at) - 448usize];
9356    ["Offset of field: _cef_menu_model_t::get_color"]
9357        [::std::mem::offset_of!(_cef_menu_model_t, get_color) - 456usize];
9358    ["Offset of field: _cef_menu_model_t::get_color_at"]
9359        [::std::mem::offset_of!(_cef_menu_model_t, get_color_at) - 464usize];
9360    ["Offset of field: _cef_menu_model_t::set_font_list"]
9361        [::std::mem::offset_of!(_cef_menu_model_t, set_font_list) - 472usize];
9362    ["Offset of field: _cef_menu_model_t::set_font_list_at"]
9363        [::std::mem::offset_of!(_cef_menu_model_t, set_font_list_at) - 480usize];
9364};
9365#[doc = "\n Supports creation and modification of menus. See cef_menu_id_t for the\n command ids that have default implementations. All user-defined command ids\n should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. The functions of\n this structure can only be accessed on the browser process the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
9366pub type cef_menu_model_t = _cef_menu_model_t;
9367unsafe extern "C" {
9368    #[doc = "\n Create a new MenuModel with the specified |delegate|.\n"]
9369    pub fn cef_menu_model_create(
9370        delegate: *mut _cef_menu_model_delegate_t,
9371    ) -> *mut cef_menu_model_t;
9372}
9373#[doc = "\n Callback structure used for continuation of custom context menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9374#[repr(C)]
9375#[derive(Debug, Copy, Clone)]
9376pub struct _cef_run_context_menu_callback_t {
9377    #[doc = "\n Base structure.\n"]
9378    pub base: cef_base_ref_counted_t,
9379    #[doc = "\n Complete context menu display by selecting the specified |command_id| and\n |event_flags|.\n"]
9380    pub cont: ::std::option::Option<
9381        unsafe extern "C" fn(
9382            self_: *mut _cef_run_context_menu_callback_t,
9383            command_id: ::std::os::raw::c_int,
9384            event_flags: cef_event_flags_t,
9385        ),
9386    >,
9387    #[doc = "\n Cancel context menu display.\n"]
9388    pub cancel:
9389        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_run_context_menu_callback_t)>,
9390}
9391#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9392const _: () = {
9393    ["Size of _cef_run_context_menu_callback_t"]
9394        [::std::mem::size_of::<_cef_run_context_menu_callback_t>() - 56usize];
9395    ["Alignment of _cef_run_context_menu_callback_t"]
9396        [::std::mem::align_of::<_cef_run_context_menu_callback_t>() - 8usize];
9397    ["Offset of field: _cef_run_context_menu_callback_t::base"]
9398        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, base) - 0usize];
9399    ["Offset of field: _cef_run_context_menu_callback_t::cont"]
9400        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, cont) - 40usize];
9401    ["Offset of field: _cef_run_context_menu_callback_t::cancel"]
9402        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, cancel) - 48usize];
9403};
9404#[doc = "\n Callback structure used for continuation of custom context menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9405pub type cef_run_context_menu_callback_t = _cef_run_context_menu_callback_t;
9406#[doc = "\n Callback structure used for continuation of custom quick menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9407#[repr(C)]
9408#[derive(Debug, Copy, Clone)]
9409pub struct _cef_run_quick_menu_callback_t {
9410    #[doc = "\n Base structure.\n"]
9411    pub base: cef_base_ref_counted_t,
9412    #[doc = "\n Complete quick menu display by selecting the specified |command_id| and\n |event_flags|.\n"]
9413    pub cont: ::std::option::Option<
9414        unsafe extern "C" fn(
9415            self_: *mut _cef_run_quick_menu_callback_t,
9416            command_id: ::std::os::raw::c_int,
9417            event_flags: cef_event_flags_t,
9418        ),
9419    >,
9420    #[doc = "\n Cancel quick menu display.\n"]
9421    pub cancel:
9422        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_run_quick_menu_callback_t)>,
9423}
9424#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9425const _: () = {
9426    ["Size of _cef_run_quick_menu_callback_t"]
9427        [::std::mem::size_of::<_cef_run_quick_menu_callback_t>() - 56usize];
9428    ["Alignment of _cef_run_quick_menu_callback_t"]
9429        [::std::mem::align_of::<_cef_run_quick_menu_callback_t>() - 8usize];
9430    ["Offset of field: _cef_run_quick_menu_callback_t::base"]
9431        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, base) - 0usize];
9432    ["Offset of field: _cef_run_quick_menu_callback_t::cont"]
9433        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, cont) - 40usize];
9434    ["Offset of field: _cef_run_quick_menu_callback_t::cancel"]
9435        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, cancel) - 48usize];
9436};
9437#[doc = "\n Callback structure used for continuation of custom quick menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9438pub type cef_run_quick_menu_callback_t = _cef_run_quick_menu_callback_t;
9439#[doc = "\n Implement this structure to handle context menu events. The functions of\n this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9440#[repr(C)]
9441#[derive(Debug, Copy, Clone)]
9442pub struct _cef_context_menu_handler_t {
9443    #[doc = "\n Base structure.\n"]
9444    pub base: cef_base_ref_counted_t,
9445    #[doc = "\n Called before a context menu is displayed. |params| provides information\n about the context menu state. |model| initially contains the default\n context menu. The |model| can be cleared to show no context menu or\n modified to show a custom menu. Do not keep references to |params| or\n |model| outside of this callback.\n"]
9446    pub on_before_context_menu: ::std::option::Option<
9447        unsafe extern "C" fn(
9448            self_: *mut _cef_context_menu_handler_t,
9449            browser: *mut _cef_browser_t,
9450            frame: *mut _cef_frame_t,
9451            params: *mut _cef_context_menu_params_t,
9452            model: *mut _cef_menu_model_t,
9453        ),
9454    >,
9455    #[doc = "\n Called to allow custom display of the context menu. |params| provides\n information about the context menu state. |model| contains the context\n menu model resulting from OnBeforeContextMenu. For custom display return\n true (1) and execute |callback| either synchronously or asynchronously\n with the selected command ID. For default display return false (0). Do not\n keep references to |params| or |model| outside of this callback.\n"]
9456    pub run_context_menu: ::std::option::Option<
9457        unsafe extern "C" fn(
9458            self_: *mut _cef_context_menu_handler_t,
9459            browser: *mut _cef_browser_t,
9460            frame: *mut _cef_frame_t,
9461            params: *mut _cef_context_menu_params_t,
9462            model: *mut _cef_menu_model_t,
9463            callback: *mut _cef_run_context_menu_callback_t,
9464        ) -> ::std::os::raw::c_int,
9465    >,
9466    #[doc = "\n Called to execute a command selected from the context menu. Return true\n (1) if the command was handled or false (0) for the default\n implementation. See cef_menu_id_t for the command ids that have default\n implementations. All user-defined command ids should be between\n MENU_ID_USER_FIRST and MENU_ID_USER_LAST. |params| will have the same\n values as what was passed to on_before_context_menu(). Do not keep a\n reference to |params| outside of this callback.\n"]
9467    pub on_context_menu_command: ::std::option::Option<
9468        unsafe extern "C" fn(
9469            self_: *mut _cef_context_menu_handler_t,
9470            browser: *mut _cef_browser_t,
9471            frame: *mut _cef_frame_t,
9472            params: *mut _cef_context_menu_params_t,
9473            command_id: ::std::os::raw::c_int,
9474            event_flags: cef_event_flags_t,
9475        ) -> ::std::os::raw::c_int,
9476    >,
9477    #[doc = "\n Called when the context menu is dismissed irregardless of whether the menu\n was canceled or a command was selected.\n"]
9478    pub on_context_menu_dismissed: ::std::option::Option<
9479        unsafe extern "C" fn(
9480            self_: *mut _cef_context_menu_handler_t,
9481            browser: *mut _cef_browser_t,
9482            frame: *mut _cef_frame_t,
9483        ),
9484    >,
9485    #[doc = "\n Called to allow custom display of the quick menu for a windowless browser.\n |location| is the top left corner of the selected region. |size| is the\n size of the selected region. |edit_state_flags| is a combination of flags\n that represent the state of the quick menu. Return true (1) if the menu\n will be handled and execute |callback| either synchronously or\n asynchronously with the selected command ID. Return false (0) to cancel\n the menu.\n"]
9486    pub run_quick_menu: ::std::option::Option<
9487        unsafe extern "C" fn(
9488            self_: *mut _cef_context_menu_handler_t,
9489            browser: *mut _cef_browser_t,
9490            frame: *mut _cef_frame_t,
9491            location: *const cef_point_t,
9492            size: *const cef_size_t,
9493            edit_state_flags: cef_quick_menu_edit_state_flags_t,
9494            callback: *mut _cef_run_quick_menu_callback_t,
9495        ) -> ::std::os::raw::c_int,
9496    >,
9497    #[doc = "\n Called to execute a command selected from the quick menu for a windowless\n browser. Return true (1) if the command was handled or false (0) for the\n default implementation. See cef_menu_id_t for command IDs that have\n default implementations.\n"]
9498    pub on_quick_menu_command: ::std::option::Option<
9499        unsafe extern "C" fn(
9500            self_: *mut _cef_context_menu_handler_t,
9501            browser: *mut _cef_browser_t,
9502            frame: *mut _cef_frame_t,
9503            command_id: ::std::os::raw::c_int,
9504            event_flags: cef_event_flags_t,
9505        ) -> ::std::os::raw::c_int,
9506    >,
9507    #[doc = "\n Called when the quick menu for a windowless browser is dismissed\n irregardless of whether the menu was canceled or a command was selected.\n"]
9508    pub on_quick_menu_dismissed: ::std::option::Option<
9509        unsafe extern "C" fn(
9510            self_: *mut _cef_context_menu_handler_t,
9511            browser: *mut _cef_browser_t,
9512            frame: *mut _cef_frame_t,
9513        ),
9514    >,
9515}
9516#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9517const _: () = {
9518    ["Size of _cef_context_menu_handler_t"]
9519        [::std::mem::size_of::<_cef_context_menu_handler_t>() - 96usize];
9520    ["Alignment of _cef_context_menu_handler_t"]
9521        [::std::mem::align_of::<_cef_context_menu_handler_t>() - 8usize];
9522    ["Offset of field: _cef_context_menu_handler_t::base"]
9523        [::std::mem::offset_of!(_cef_context_menu_handler_t, base) - 0usize];
9524    ["Offset of field: _cef_context_menu_handler_t::on_before_context_menu"]
9525        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_before_context_menu) - 40usize];
9526    ["Offset of field: _cef_context_menu_handler_t::run_context_menu"]
9527        [::std::mem::offset_of!(_cef_context_menu_handler_t, run_context_menu) - 48usize];
9528    ["Offset of field: _cef_context_menu_handler_t::on_context_menu_command"]
9529        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_context_menu_command) - 56usize];
9530    ["Offset of field: _cef_context_menu_handler_t::on_context_menu_dismissed"]
9531        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_context_menu_dismissed) - 64usize];
9532    ["Offset of field: _cef_context_menu_handler_t::run_quick_menu"]
9533        [::std::mem::offset_of!(_cef_context_menu_handler_t, run_quick_menu) - 72usize];
9534    ["Offset of field: _cef_context_menu_handler_t::on_quick_menu_command"]
9535        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_quick_menu_command) - 80usize];
9536    ["Offset of field: _cef_context_menu_handler_t::on_quick_menu_dismissed"]
9537        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_quick_menu_dismissed) - 88usize];
9538};
9539#[doc = "\n Implement this structure to handle context menu events. The functions of\n this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9540pub type cef_context_menu_handler_t = _cef_context_menu_handler_t;
9541#[doc = "\n Provides information about the context menu state. The functions of this\n structure can only be accessed on browser process the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
9542#[repr(C)]
9543#[derive(Debug, Copy, Clone)]
9544pub struct _cef_context_menu_params_t {
9545    #[doc = "\n Base structure.\n"]
9546    pub base: cef_base_ref_counted_t,
9547    #[doc = "\n Returns the X coordinate of the mouse where the context menu was invoked.\n Coords are relative to the associated RenderView's origin.\n"]
9548    pub get_xcoord: ::std::option::Option<
9549        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9550    >,
9551    #[doc = "\n Returns the Y coordinate of the mouse where the context menu was invoked.\n Coords are relative to the associated RenderView's origin.\n"]
9552    pub get_ycoord: ::std::option::Option<
9553        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9554    >,
9555    #[doc = "\n Returns flags representing the type of node that the context menu was\n invoked on.\n"]
9556    pub get_type_flags: ::std::option::Option<
9557        unsafe extern "C" fn(
9558            self_: *mut _cef_context_menu_params_t,
9559        ) -> cef_context_menu_type_flags_t,
9560    >,
9561    #[doc = "\n Returns the URL of the link, if any, that encloses the node that the\n context menu was invoked on.\n"]
9562    pub get_link_url: ::std::option::Option<
9563        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9564    >,
9565    #[doc = "\n Returns the link URL, if any, to be used ONLY for \"copy link address\". We\n don't validate this field in the frontend process.\n"]
9566    pub get_unfiltered_link_url: ::std::option::Option<
9567        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9568    >,
9569    #[doc = "\n Returns the source URL, if any, for the element that the context menu was\n invoked on. Example of elements with source URLs are img, audio, and\n video.\n"]
9570    pub get_source_url: ::std::option::Option<
9571        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9572    >,
9573    #[doc = "\n Returns true (1) if the context menu was invoked on an image which has\n non-NULL contents.\n"]
9574    pub has_image_contents: ::std::option::Option<
9575        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9576    >,
9577    #[doc = "\n Returns the title text or the alt text if the context menu was invoked on\n an image.\n"]
9578    pub get_title_text: ::std::option::Option<
9579        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9580    >,
9581    #[doc = "\n Returns the URL of the top level page that the context menu was invoked\n on.\n"]
9582    pub get_page_url: ::std::option::Option<
9583        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9584    >,
9585    #[doc = "\n Returns the URL of the subframe that the context menu was invoked on.\n"]
9586    pub get_frame_url: ::std::option::Option<
9587        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9588    >,
9589    #[doc = "\n Returns the character encoding of the subframe that the context menu was\n invoked on.\n"]
9590    pub get_frame_charset: ::std::option::Option<
9591        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9592    >,
9593    #[doc = "\n Returns the type of context node that the context menu was invoked on.\n"]
9594    pub get_media_type: ::std::option::Option<
9595        unsafe extern "C" fn(
9596            self_: *mut _cef_context_menu_params_t,
9597        ) -> cef_context_menu_media_type_t,
9598    >,
9599    #[doc = "\n Returns flags representing the actions supported by the media element, if\n any, that the context menu was invoked on.\n"]
9600    pub get_media_state_flags: ::std::option::Option<
9601        unsafe extern "C" fn(
9602            self_: *mut _cef_context_menu_params_t,
9603        ) -> cef_context_menu_media_state_flags_t,
9604    >,
9605    #[doc = "\n Returns the text of the selection, if any, that the context menu was\n invoked on.\n"]
9606    pub get_selection_text: ::std::option::Option<
9607        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9608    >,
9609    #[doc = "\n Returns the text of the misspelled word, if any, that the context menu was\n invoked on.\n"]
9610    pub get_misspelled_word: ::std::option::Option<
9611        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9612    >,
9613    #[doc = "\n Returns true (1) if suggestions exist, false (0) otherwise. Fills in\n |suggestions| from the spell check service for the misspelled word if\n there is one.\n"]
9614    pub get_dictionary_suggestions: ::std::option::Option<
9615        unsafe extern "C" fn(
9616            self_: *mut _cef_context_menu_params_t,
9617            suggestions: cef_string_list_t,
9618        ) -> ::std::os::raw::c_int,
9619    >,
9620    #[doc = "\n Returns true (1) if the context menu was invoked on an editable node.\n"]
9621    pub is_editable: ::std::option::Option<
9622        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9623    >,
9624    #[doc = "\n Returns true (1) if the context menu was invoked on an editable node where\n spell-check is enabled.\n"]
9625    pub is_spell_check_enabled: ::std::option::Option<
9626        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9627    >,
9628    #[doc = "\n Returns flags representing the actions supported by the editable node, if\n any, that the context menu was invoked on.\n"]
9629    pub get_edit_state_flags: ::std::option::Option<
9630        unsafe extern "C" fn(
9631            self_: *mut _cef_context_menu_params_t,
9632        ) -> cef_context_menu_edit_state_flags_t,
9633    >,
9634    #[doc = "\n Returns true (1) if the context menu contains items specified by the\n renderer process.\n"]
9635    pub is_custom_menu: ::std::option::Option<
9636        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9637    >,
9638}
9639#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9640const _: () = {
9641    ["Size of _cef_context_menu_params_t"]
9642        [::std::mem::size_of::<_cef_context_menu_params_t>() - 200usize];
9643    ["Alignment of _cef_context_menu_params_t"]
9644        [::std::mem::align_of::<_cef_context_menu_params_t>() - 8usize];
9645    ["Offset of field: _cef_context_menu_params_t::base"]
9646        [::std::mem::offset_of!(_cef_context_menu_params_t, base) - 0usize];
9647    ["Offset of field: _cef_context_menu_params_t::get_xcoord"]
9648        [::std::mem::offset_of!(_cef_context_menu_params_t, get_xcoord) - 40usize];
9649    ["Offset of field: _cef_context_menu_params_t::get_ycoord"]
9650        [::std::mem::offset_of!(_cef_context_menu_params_t, get_ycoord) - 48usize];
9651    ["Offset of field: _cef_context_menu_params_t::get_type_flags"]
9652        [::std::mem::offset_of!(_cef_context_menu_params_t, get_type_flags) - 56usize];
9653    ["Offset of field: _cef_context_menu_params_t::get_link_url"]
9654        [::std::mem::offset_of!(_cef_context_menu_params_t, get_link_url) - 64usize];
9655    ["Offset of field: _cef_context_menu_params_t::get_unfiltered_link_url"]
9656        [::std::mem::offset_of!(_cef_context_menu_params_t, get_unfiltered_link_url) - 72usize];
9657    ["Offset of field: _cef_context_menu_params_t::get_source_url"]
9658        [::std::mem::offset_of!(_cef_context_menu_params_t, get_source_url) - 80usize];
9659    ["Offset of field: _cef_context_menu_params_t::has_image_contents"]
9660        [::std::mem::offset_of!(_cef_context_menu_params_t, has_image_contents) - 88usize];
9661    ["Offset of field: _cef_context_menu_params_t::get_title_text"]
9662        [::std::mem::offset_of!(_cef_context_menu_params_t, get_title_text) - 96usize];
9663    ["Offset of field: _cef_context_menu_params_t::get_page_url"]
9664        [::std::mem::offset_of!(_cef_context_menu_params_t, get_page_url) - 104usize];
9665    ["Offset of field: _cef_context_menu_params_t::get_frame_url"]
9666        [::std::mem::offset_of!(_cef_context_menu_params_t, get_frame_url) - 112usize];
9667    ["Offset of field: _cef_context_menu_params_t::get_frame_charset"]
9668        [::std::mem::offset_of!(_cef_context_menu_params_t, get_frame_charset) - 120usize];
9669    ["Offset of field: _cef_context_menu_params_t::get_media_type"]
9670        [::std::mem::offset_of!(_cef_context_menu_params_t, get_media_type) - 128usize];
9671    ["Offset of field: _cef_context_menu_params_t::get_media_state_flags"]
9672        [::std::mem::offset_of!(_cef_context_menu_params_t, get_media_state_flags) - 136usize];
9673    ["Offset of field: _cef_context_menu_params_t::get_selection_text"]
9674        [::std::mem::offset_of!(_cef_context_menu_params_t, get_selection_text) - 144usize];
9675    ["Offset of field: _cef_context_menu_params_t::get_misspelled_word"]
9676        [::std::mem::offset_of!(_cef_context_menu_params_t, get_misspelled_word) - 152usize];
9677    ["Offset of field: _cef_context_menu_params_t::get_dictionary_suggestions"]
9678        [::std::mem::offset_of!(_cef_context_menu_params_t, get_dictionary_suggestions) - 160usize];
9679    ["Offset of field: _cef_context_menu_params_t::is_editable"]
9680        [::std::mem::offset_of!(_cef_context_menu_params_t, is_editable) - 168usize];
9681    ["Offset of field: _cef_context_menu_params_t::is_spell_check_enabled"]
9682        [::std::mem::offset_of!(_cef_context_menu_params_t, is_spell_check_enabled) - 176usize];
9683    ["Offset of field: _cef_context_menu_params_t::get_edit_state_flags"]
9684        [::std::mem::offset_of!(_cef_context_menu_params_t, get_edit_state_flags) - 184usize];
9685    ["Offset of field: _cef_context_menu_params_t::is_custom_menu"]
9686        [::std::mem::offset_of!(_cef_context_menu_params_t, is_custom_menu) - 192usize];
9687};
9688#[doc = "\n Provides information about the context menu state. The functions of this\n structure can only be accessed on browser process the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
9689pub type cef_context_menu_params_t = _cef_context_menu_params_t;
9690#[doc = "\n Callback structure for asynchronous continuation of file dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
9691#[repr(C)]
9692#[derive(Debug, Copy, Clone)]
9693pub struct _cef_file_dialog_callback_t {
9694    #[doc = "\n Base structure.\n"]
9695    pub base: cef_base_ref_counted_t,
9696    #[doc = "\n Continue the file selection. |file_paths| should be a single value or a\n list of values depending on the dialog mode. An NULL |file_paths| value is\n treated the same as calling cancel().\n"]
9697    pub cont: ::std::option::Option<
9698        unsafe extern "C" fn(
9699            self_: *mut _cef_file_dialog_callback_t,
9700            file_paths: cef_string_list_t,
9701        ),
9702    >,
9703    #[doc = "\n Cancel the file selection.\n"]
9704    pub cancel:
9705        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_file_dialog_callback_t)>,
9706}
9707#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9708const _: () = {
9709    ["Size of _cef_file_dialog_callback_t"]
9710        [::std::mem::size_of::<_cef_file_dialog_callback_t>() - 56usize];
9711    ["Alignment of _cef_file_dialog_callback_t"]
9712        [::std::mem::align_of::<_cef_file_dialog_callback_t>() - 8usize];
9713    ["Offset of field: _cef_file_dialog_callback_t::base"]
9714        [::std::mem::offset_of!(_cef_file_dialog_callback_t, base) - 0usize];
9715    ["Offset of field: _cef_file_dialog_callback_t::cont"]
9716        [::std::mem::offset_of!(_cef_file_dialog_callback_t, cont) - 40usize];
9717    ["Offset of field: _cef_file_dialog_callback_t::cancel"]
9718        [::std::mem::offset_of!(_cef_file_dialog_callback_t, cancel) - 48usize];
9719};
9720#[doc = "\n Callback structure for asynchronous continuation of file dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
9721pub type cef_file_dialog_callback_t = _cef_file_dialog_callback_t;
9722#[doc = "\n Implement this structure to handle dialog events. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9723#[repr(C)]
9724#[derive(Debug, Copy, Clone)]
9725pub struct _cef_dialog_handler_t {
9726    #[doc = "\n Base structure.\n"]
9727    pub base: cef_base_ref_counted_t,
9728    #[doc = "\n Called to run a file chooser dialog. |mode| represents the type of dialog\n to display. |title| to the title to be used for the dialog and may be NULL\n to show the default title (\"Open\" or \"Save\" depending on the mode).\n |default_file_path| is the path with optional directory and/or file name\n component that should be initially selected in the dialog.\n |accept_filters| are used to restrict the selectable file types and may be\n any combination of valid lower-cased MIME types (e.g. \"text/*\" or\n \"image/*\") and individual file extensions (e.g. \".txt\" or \".png\").\n |accept_extensions| provides the semicolon-delimited expansion of MIME\n types to file extensions (if known, or NULL string otherwise).\n |accept_descriptions| provides the descriptions for MIME types (if known,\n or NULL string otherwise). For example, the \"image/*\" mime type might have\n extensions \".png;.jpg;.bmp;...\" and description \"Image Files\".\n |accept_filters|, |accept_extensions| and |accept_descriptions| will all\n be the same size. To display a custom dialog return true (1) and execute\n |callback| either inline or at a later time. To display the default dialog\n return false (0). If this function returns false (0) it may be called an\n additional time for the same dialog (both before and after MIME type\n expansion).\n"]
9729    pub on_file_dialog: ::std::option::Option<
9730        unsafe extern "C" fn(
9731            self_: *mut _cef_dialog_handler_t,
9732            browser: *mut _cef_browser_t,
9733            mode: cef_file_dialog_mode_t,
9734            title: *const cef_string_t,
9735            default_file_path: *const cef_string_t,
9736            accept_filters: cef_string_list_t,
9737            accept_extensions: cef_string_list_t,
9738            accept_descriptions: cef_string_list_t,
9739            callback: *mut _cef_file_dialog_callback_t,
9740        ) -> ::std::os::raw::c_int,
9741    >,
9742}
9743#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9744const _: () = {
9745    ["Size of _cef_dialog_handler_t"][::std::mem::size_of::<_cef_dialog_handler_t>() - 48usize];
9746    ["Alignment of _cef_dialog_handler_t"]
9747        [::std::mem::align_of::<_cef_dialog_handler_t>() - 8usize];
9748    ["Offset of field: _cef_dialog_handler_t::base"]
9749        [::std::mem::offset_of!(_cef_dialog_handler_t, base) - 0usize];
9750    ["Offset of field: _cef_dialog_handler_t::on_file_dialog"]
9751        [::std::mem::offset_of!(_cef_dialog_handler_t, on_file_dialog) - 40usize];
9752};
9753#[doc = "\n Implement this structure to handle dialog events. The functions of this\n structure will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9754pub type cef_dialog_handler_t = _cef_dialog_handler_t;
9755#[doc = "\n Implement this structure to handle events related to browser display state.\n The functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9756#[repr(C)]
9757#[derive(Debug, Copy, Clone)]
9758pub struct _cef_display_handler_t {
9759    #[doc = "\n Base structure.\n"]
9760    pub base: cef_base_ref_counted_t,
9761    #[doc = "\n Called when a frame's address has changed.\n"]
9762    pub on_address_change: ::std::option::Option<
9763        unsafe extern "C" fn(
9764            self_: *mut _cef_display_handler_t,
9765            browser: *mut _cef_browser_t,
9766            frame: *mut _cef_frame_t,
9767            url: *const cef_string_t,
9768        ),
9769    >,
9770    #[doc = "\n Called when the page title changes.\n"]
9771    pub on_title_change: ::std::option::Option<
9772        unsafe extern "C" fn(
9773            self_: *mut _cef_display_handler_t,
9774            browser: *mut _cef_browser_t,
9775            title: *const cef_string_t,
9776        ),
9777    >,
9778    #[doc = "\n Called when the page icon changes.\n"]
9779    pub on_favicon_urlchange: ::std::option::Option<
9780        unsafe extern "C" fn(
9781            self_: *mut _cef_display_handler_t,
9782            browser: *mut _cef_browser_t,
9783            icon_urls: cef_string_list_t,
9784        ),
9785    >,
9786    #[doc = "\n Called when web content in the page has toggled fullscreen mode. If\n |fullscreen| is true (1) the content will automatically be sized to fill\n the browser content area. If |fullscreen| is false (0) the content will\n automatically return to its original size and position. With Alloy style\n the client is responsible for triggering the fullscreen transition (for\n example, by calling cef_window_t::SetFullscreen when using Views). With\n Chrome style the fullscreen transition will be triggered automatically.\n The cef_window_delegate_t::OnWindowFullscreenTransition function will be\n called during the fullscreen transition for notification purposes.\n"]
9787    pub on_fullscreen_mode_change: ::std::option::Option<
9788        unsafe extern "C" fn(
9789            self_: *mut _cef_display_handler_t,
9790            browser: *mut _cef_browser_t,
9791            fullscreen: ::std::os::raw::c_int,
9792        ),
9793    >,
9794    #[doc = "\n Called when the browser is about to display a tooltip. |text| contains the\n text that will be displayed in the tooltip. To handle the display of the\n tooltip yourself return true (1). Otherwise, you can optionally modify\n |text| and then return false (0) to allow the browser to display the\n tooltip. When window rendering is disabled the application is responsible\n for drawing tooltips and the return value is ignored.\n"]
9795    pub on_tooltip: ::std::option::Option<
9796        unsafe extern "C" fn(
9797            self_: *mut _cef_display_handler_t,
9798            browser: *mut _cef_browser_t,
9799            text: *mut cef_string_t,
9800        ) -> ::std::os::raw::c_int,
9801    >,
9802    #[doc = "\n Called when the browser receives a status message. |value| contains the\n text that will be displayed in the status message.\n"]
9803    pub on_status_message: ::std::option::Option<
9804        unsafe extern "C" fn(
9805            self_: *mut _cef_display_handler_t,
9806            browser: *mut _cef_browser_t,
9807            value: *const cef_string_t,
9808        ),
9809    >,
9810    #[doc = "\n Called to display a console message. Return true (1) to stop the message\n from being output to the console.\n"]
9811    pub on_console_message: ::std::option::Option<
9812        unsafe extern "C" fn(
9813            self_: *mut _cef_display_handler_t,
9814            browser: *mut _cef_browser_t,
9815            level: cef_log_severity_t,
9816            message: *const cef_string_t,
9817            source: *const cef_string_t,
9818            line: ::std::os::raw::c_int,
9819        ) -> ::std::os::raw::c_int,
9820    >,
9821    #[doc = "\n Called when auto-resize is enabled via\n cef_browser_host_t::SetAutoResizeEnabled and the contents have auto-\n resized. |new_size| will be the desired size in view coordinates. Return\n true (1) if the resize was handled or false (0) for default handling.\n"]
9822    pub on_auto_resize: ::std::option::Option<
9823        unsafe extern "C" fn(
9824            self_: *mut _cef_display_handler_t,
9825            browser: *mut _cef_browser_t,
9826            new_size: *const cef_size_t,
9827        ) -> ::std::os::raw::c_int,
9828    >,
9829    #[doc = "\n Called when the overall page loading progress has changed. |progress|\n ranges from 0.0 to 1.0.\n"]
9830    pub on_loading_progress_change: ::std::option::Option<
9831        unsafe extern "C" fn(
9832            self_: *mut _cef_display_handler_t,
9833            browser: *mut _cef_browser_t,
9834            progress: f64,
9835        ),
9836    >,
9837    #[doc = "\n Called when the browser's cursor has changed. If |type| is CT_CUSTOM then\n |custom_cursor_info| will be populated with the custom cursor information.\n Return true (1) if the cursor change was handled or false (0) for default\n handling.\n"]
9838    pub on_cursor_change: ::std::option::Option<
9839        unsafe extern "C" fn(
9840            self_: *mut _cef_display_handler_t,
9841            browser: *mut _cef_browser_t,
9842            cursor: cef_cursor_handle_t,
9843            type_: cef_cursor_type_t,
9844            custom_cursor_info: *const cef_cursor_info_t,
9845        ) -> ::std::os::raw::c_int,
9846    >,
9847    #[doc = "\n Called when the browser's access to an audio and/or video source has\n changed.\n"]
9848    pub on_media_access_change: ::std::option::Option<
9849        unsafe extern "C" fn(
9850            self_: *mut _cef_display_handler_t,
9851            browser: *mut _cef_browser_t,
9852            has_video_access: ::std::os::raw::c_int,
9853            has_audio_access: ::std::os::raw::c_int,
9854        ),
9855    >,
9856}
9857#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9858const _: () = {
9859    ["Size of _cef_display_handler_t"][::std::mem::size_of::<_cef_display_handler_t>() - 128usize];
9860    ["Alignment of _cef_display_handler_t"]
9861        [::std::mem::align_of::<_cef_display_handler_t>() - 8usize];
9862    ["Offset of field: _cef_display_handler_t::base"]
9863        [::std::mem::offset_of!(_cef_display_handler_t, base) - 0usize];
9864    ["Offset of field: _cef_display_handler_t::on_address_change"]
9865        [::std::mem::offset_of!(_cef_display_handler_t, on_address_change) - 40usize];
9866    ["Offset of field: _cef_display_handler_t::on_title_change"]
9867        [::std::mem::offset_of!(_cef_display_handler_t, on_title_change) - 48usize];
9868    ["Offset of field: _cef_display_handler_t::on_favicon_urlchange"]
9869        [::std::mem::offset_of!(_cef_display_handler_t, on_favicon_urlchange) - 56usize];
9870    ["Offset of field: _cef_display_handler_t::on_fullscreen_mode_change"]
9871        [::std::mem::offset_of!(_cef_display_handler_t, on_fullscreen_mode_change) - 64usize];
9872    ["Offset of field: _cef_display_handler_t::on_tooltip"]
9873        [::std::mem::offset_of!(_cef_display_handler_t, on_tooltip) - 72usize];
9874    ["Offset of field: _cef_display_handler_t::on_status_message"]
9875        [::std::mem::offset_of!(_cef_display_handler_t, on_status_message) - 80usize];
9876    ["Offset of field: _cef_display_handler_t::on_console_message"]
9877        [::std::mem::offset_of!(_cef_display_handler_t, on_console_message) - 88usize];
9878    ["Offset of field: _cef_display_handler_t::on_auto_resize"]
9879        [::std::mem::offset_of!(_cef_display_handler_t, on_auto_resize) - 96usize];
9880    ["Offset of field: _cef_display_handler_t::on_loading_progress_change"]
9881        [::std::mem::offset_of!(_cef_display_handler_t, on_loading_progress_change) - 104usize];
9882    ["Offset of field: _cef_display_handler_t::on_cursor_change"]
9883        [::std::mem::offset_of!(_cef_display_handler_t, on_cursor_change) - 112usize];
9884    ["Offset of field: _cef_display_handler_t::on_media_access_change"]
9885        [::std::mem::offset_of!(_cef_display_handler_t, on_media_access_change) - 120usize];
9886};
9887#[doc = "\n Implement this structure to handle events related to browser display state.\n The functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
9888pub type cef_display_handler_t = _cef_display_handler_t;
9889#[doc = "\n Structure used to represent a download item.\n\n NOTE: This struct is allocated DLL-side.\n"]
9890#[repr(C)]
9891#[derive(Debug, Copy, Clone)]
9892pub struct _cef_download_item_t {
9893    #[doc = "\n Base structure.\n"]
9894    pub base: cef_base_ref_counted_t,
9895    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
9896    pub is_valid: ::std::option::Option<
9897        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9898    >,
9899    #[doc = "\n Returns true (1) if the download is in progress.\n"]
9900    pub is_in_progress: ::std::option::Option<
9901        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9902    >,
9903    #[doc = "\n Returns true (1) if the download is complete.\n"]
9904    pub is_complete: ::std::option::Option<
9905        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9906    >,
9907    #[doc = "\n Returns true (1) if the download has been canceled.\n"]
9908    pub is_canceled: ::std::option::Option<
9909        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9910    >,
9911    #[doc = "\n Returns true (1) if the download has been interrupted.\n"]
9912    pub is_interrupted: ::std::option::Option<
9913        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9914    >,
9915    #[doc = "\n Returns the most recent interrupt reason.\n"]
9916    pub get_interrupt_reason: ::std::option::Option<
9917        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_download_interrupt_reason_t,
9918    >,
9919    #[doc = "\n Returns a simple speed estimate in bytes/s.\n"]
9920    pub get_current_speed:
9921        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
9922    #[doc = "\n Returns the rough percent complete or -1 if the receive total size is\n unknown.\n"]
9923    pub get_percent_complete: ::std::option::Option<
9924        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
9925    >,
9926    #[doc = "\n Returns the total number of bytes.\n"]
9927    pub get_total_bytes:
9928        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
9929    #[doc = "\n Returns the number of received bytes.\n"]
9930    pub get_received_bytes:
9931        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
9932    #[doc = "\n Returns the time that the download started.\n"]
9933    pub get_start_time: ::std::option::Option<
9934        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_basetime_t,
9935    >,
9936    #[doc = "\n Returns the time that the download ended.\n"]
9937    pub get_end_time: ::std::option::Option<
9938        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_basetime_t,
9939    >,
9940    #[doc = "\n Returns the full path to the downloaded or downloading file.\n"]
9941    pub get_full_path: ::std::option::Option<
9942        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9943    >,
9944    #[doc = "\n Returns the unique identifier for this download.\n"]
9945    pub get_id:
9946        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> u32>,
9947    #[doc = "\n Returns the URL.\n"]
9948    pub get_url: ::std::option::Option<
9949        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9950    >,
9951    #[doc = "\n Returns the original URL before any redirections.\n"]
9952    pub get_original_url: ::std::option::Option<
9953        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9954    >,
9955    #[doc = "\n Returns the suggested file name.\n"]
9956    pub get_suggested_file_name: ::std::option::Option<
9957        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9958    >,
9959    #[doc = "\n Returns the content disposition.\n"]
9960    pub get_content_disposition: ::std::option::Option<
9961        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9962    >,
9963    #[doc = "\n Returns the mime type.\n"]
9964    pub get_mime_type: ::std::option::Option<
9965        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
9966    >,
9967}
9968#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9969const _: () = {
9970    ["Size of _cef_download_item_t"][::std::mem::size_of::<_cef_download_item_t>() - 192usize];
9971    ["Alignment of _cef_download_item_t"][::std::mem::align_of::<_cef_download_item_t>() - 8usize];
9972    ["Offset of field: _cef_download_item_t::base"]
9973        [::std::mem::offset_of!(_cef_download_item_t, base) - 0usize];
9974    ["Offset of field: _cef_download_item_t::is_valid"]
9975        [::std::mem::offset_of!(_cef_download_item_t, is_valid) - 40usize];
9976    ["Offset of field: _cef_download_item_t::is_in_progress"]
9977        [::std::mem::offset_of!(_cef_download_item_t, is_in_progress) - 48usize];
9978    ["Offset of field: _cef_download_item_t::is_complete"]
9979        [::std::mem::offset_of!(_cef_download_item_t, is_complete) - 56usize];
9980    ["Offset of field: _cef_download_item_t::is_canceled"]
9981        [::std::mem::offset_of!(_cef_download_item_t, is_canceled) - 64usize];
9982    ["Offset of field: _cef_download_item_t::is_interrupted"]
9983        [::std::mem::offset_of!(_cef_download_item_t, is_interrupted) - 72usize];
9984    ["Offset of field: _cef_download_item_t::get_interrupt_reason"]
9985        [::std::mem::offset_of!(_cef_download_item_t, get_interrupt_reason) - 80usize];
9986    ["Offset of field: _cef_download_item_t::get_current_speed"]
9987        [::std::mem::offset_of!(_cef_download_item_t, get_current_speed) - 88usize];
9988    ["Offset of field: _cef_download_item_t::get_percent_complete"]
9989        [::std::mem::offset_of!(_cef_download_item_t, get_percent_complete) - 96usize];
9990    ["Offset of field: _cef_download_item_t::get_total_bytes"]
9991        [::std::mem::offset_of!(_cef_download_item_t, get_total_bytes) - 104usize];
9992    ["Offset of field: _cef_download_item_t::get_received_bytes"]
9993        [::std::mem::offset_of!(_cef_download_item_t, get_received_bytes) - 112usize];
9994    ["Offset of field: _cef_download_item_t::get_start_time"]
9995        [::std::mem::offset_of!(_cef_download_item_t, get_start_time) - 120usize];
9996    ["Offset of field: _cef_download_item_t::get_end_time"]
9997        [::std::mem::offset_of!(_cef_download_item_t, get_end_time) - 128usize];
9998    ["Offset of field: _cef_download_item_t::get_full_path"]
9999        [::std::mem::offset_of!(_cef_download_item_t, get_full_path) - 136usize];
10000    ["Offset of field: _cef_download_item_t::get_id"]
10001        [::std::mem::offset_of!(_cef_download_item_t, get_id) - 144usize];
10002    ["Offset of field: _cef_download_item_t::get_url"]
10003        [::std::mem::offset_of!(_cef_download_item_t, get_url) - 152usize];
10004    ["Offset of field: _cef_download_item_t::get_original_url"]
10005        [::std::mem::offset_of!(_cef_download_item_t, get_original_url) - 160usize];
10006    ["Offset of field: _cef_download_item_t::get_suggested_file_name"]
10007        [::std::mem::offset_of!(_cef_download_item_t, get_suggested_file_name) - 168usize];
10008    ["Offset of field: _cef_download_item_t::get_content_disposition"]
10009        [::std::mem::offset_of!(_cef_download_item_t, get_content_disposition) - 176usize];
10010    ["Offset of field: _cef_download_item_t::get_mime_type"]
10011        [::std::mem::offset_of!(_cef_download_item_t, get_mime_type) - 184usize];
10012};
10013#[doc = "\n Structure used to represent a download item.\n\n NOTE: This struct is allocated DLL-side.\n"]
10014pub type cef_download_item_t = _cef_download_item_t;
10015#[doc = "\n Callback structure used to asynchronously continue a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10016#[repr(C)]
10017#[derive(Debug, Copy, Clone)]
10018pub struct _cef_before_download_callback_t {
10019    #[doc = "\n Base structure.\n"]
10020    pub base: cef_base_ref_counted_t,
10021    #[doc = "\n Call to continue the download. Set |download_path| to the full file path\n for the download including the file name or leave blank to use the\n suggested name and the default temp directory. Set |show_dialog| to true\n (1) if you do wish to show the default \"Save As\" dialog.\n"]
10022    pub cont: ::std::option::Option<
10023        unsafe extern "C" fn(
10024            self_: *mut _cef_before_download_callback_t,
10025            download_path: *const cef_string_t,
10026            show_dialog: ::std::os::raw::c_int,
10027        ),
10028    >,
10029}
10030#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10031const _: () = {
10032    ["Size of _cef_before_download_callback_t"]
10033        [::std::mem::size_of::<_cef_before_download_callback_t>() - 48usize];
10034    ["Alignment of _cef_before_download_callback_t"]
10035        [::std::mem::align_of::<_cef_before_download_callback_t>() - 8usize];
10036    ["Offset of field: _cef_before_download_callback_t::base"]
10037        [::std::mem::offset_of!(_cef_before_download_callback_t, base) - 0usize];
10038    ["Offset of field: _cef_before_download_callback_t::cont"]
10039        [::std::mem::offset_of!(_cef_before_download_callback_t, cont) - 40usize];
10040};
10041#[doc = "\n Callback structure used to asynchronously continue a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10042pub type cef_before_download_callback_t = _cef_before_download_callback_t;
10043#[doc = "\n Callback structure used to asynchronously cancel a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10044#[repr(C)]
10045#[derive(Debug, Copy, Clone)]
10046pub struct _cef_download_item_callback_t {
10047    #[doc = "\n Base structure.\n"]
10048    pub base: cef_base_ref_counted_t,
10049    #[doc = "\n Call to cancel the download.\n"]
10050    pub cancel:
10051        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10052    #[doc = "\n Call to pause the download.\n"]
10053    pub pause:
10054        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10055    #[doc = "\n Call to resume the download.\n"]
10056    pub resume:
10057        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10058}
10059#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10060const _: () = {
10061    ["Size of _cef_download_item_callback_t"]
10062        [::std::mem::size_of::<_cef_download_item_callback_t>() - 64usize];
10063    ["Alignment of _cef_download_item_callback_t"]
10064        [::std::mem::align_of::<_cef_download_item_callback_t>() - 8usize];
10065    ["Offset of field: _cef_download_item_callback_t::base"]
10066        [::std::mem::offset_of!(_cef_download_item_callback_t, base) - 0usize];
10067    ["Offset of field: _cef_download_item_callback_t::cancel"]
10068        [::std::mem::offset_of!(_cef_download_item_callback_t, cancel) - 40usize];
10069    ["Offset of field: _cef_download_item_callback_t::pause"]
10070        [::std::mem::offset_of!(_cef_download_item_callback_t, pause) - 48usize];
10071    ["Offset of field: _cef_download_item_callback_t::resume"]
10072        [::std::mem::offset_of!(_cef_download_item_callback_t, resume) - 56usize];
10073};
10074#[doc = "\n Callback structure used to asynchronously cancel a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10075pub type cef_download_item_callback_t = _cef_download_item_callback_t;
10076#[doc = "\n Structure used to handle file downloads. The functions of this structure\n will called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10077#[repr(C)]
10078#[derive(Debug, Copy, Clone)]
10079pub struct _cef_download_handler_t {
10080    #[doc = "\n Base structure.\n"]
10081    pub base: cef_base_ref_counted_t,
10082    #[doc = "\n Called before a download begins in response to a user-initiated action\n (e.g. alt + link click or link click that returns a `Content-Disposition:\n attachment` response from the server). |url| is the target download URL\n and |request_function| is the target function (GET, POST, etc). Return\n true (1) to proceed with the download or false (0) to cancel the download.\n"]
10083    pub can_download: ::std::option::Option<
10084        unsafe extern "C" fn(
10085            self_: *mut _cef_download_handler_t,
10086            browser: *mut _cef_browser_t,
10087            url: *const cef_string_t,
10088            request_method: *const cef_string_t,
10089        ) -> ::std::os::raw::c_int,
10090    >,
10091    #[doc = "\n Called before a download begins. |suggested_name| is the suggested name\n for the download file. Return true (1) and execute |callback| either\n asynchronously or in this function to continue or cancel the download.\n Return false (0) to proceed with default handling (cancel with Alloy\n style, download shelf with Chrome style). Do not keep a reference to\n |download_item| outside of this function.\n"]
10092    pub on_before_download: ::std::option::Option<
10093        unsafe extern "C" fn(
10094            self_: *mut _cef_download_handler_t,
10095            browser: *mut _cef_browser_t,
10096            download_item: *mut _cef_download_item_t,
10097            suggested_name: *const cef_string_t,
10098            callback: *mut _cef_before_download_callback_t,
10099        ) -> ::std::os::raw::c_int,
10100    >,
10101    #[doc = "\n Called when a download's status or progress information has been updated.\n This may be called multiple times before and after on_before_download().\n Execute |callback| either asynchronously or in this function to cancel the\n download if desired. Do not keep a reference to |download_item| outside of\n this function.\n"]
10102    pub on_download_updated: ::std::option::Option<
10103        unsafe extern "C" fn(
10104            self_: *mut _cef_download_handler_t,
10105            browser: *mut _cef_browser_t,
10106            download_item: *mut _cef_download_item_t,
10107            callback: *mut _cef_download_item_callback_t,
10108        ),
10109    >,
10110}
10111#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10112const _: () = {
10113    ["Size of _cef_download_handler_t"][::std::mem::size_of::<_cef_download_handler_t>() - 64usize];
10114    ["Alignment of _cef_download_handler_t"]
10115        [::std::mem::align_of::<_cef_download_handler_t>() - 8usize];
10116    ["Offset of field: _cef_download_handler_t::base"]
10117        [::std::mem::offset_of!(_cef_download_handler_t, base) - 0usize];
10118    ["Offset of field: _cef_download_handler_t::can_download"]
10119        [::std::mem::offset_of!(_cef_download_handler_t, can_download) - 40usize];
10120    ["Offset of field: _cef_download_handler_t::on_before_download"]
10121        [::std::mem::offset_of!(_cef_download_handler_t, on_before_download) - 48usize];
10122    ["Offset of field: _cef_download_handler_t::on_download_updated"]
10123        [::std::mem::offset_of!(_cef_download_handler_t, on_download_updated) - 56usize];
10124};
10125#[doc = "\n Structure used to handle file downloads. The functions of this structure\n will called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10126pub type cef_download_handler_t = _cef_download_handler_t;
10127#[doc = "\n Implement this structure to handle events related to dragging. The functions\n of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10128#[repr(C)]
10129#[derive(Debug, Copy, Clone)]
10130pub struct _cef_drag_handler_t {
10131    #[doc = "\n Base structure.\n"]
10132    pub base: cef_base_ref_counted_t,
10133    #[doc = "\n Called when an external drag event enters the browser window. |dragData|\n contains the drag event data and |mask| represents the type of drag\n operation. Return false (0) for default drag handling behavior or true (1)\n to cancel the drag event.\n"]
10134    pub on_drag_enter: ::std::option::Option<
10135        unsafe extern "C" fn(
10136            self_: *mut _cef_drag_handler_t,
10137            browser: *mut _cef_browser_t,
10138            dragData: *mut _cef_drag_data_t,
10139            mask: cef_drag_operations_mask_t,
10140        ) -> ::std::os::raw::c_int,
10141    >,
10142    #[doc = "\n Called whenever draggable regions for the browser window change. These can\n be specified using the '-webkit-app-region: drag/no-drag' CSS-property. If\n draggable regions are never defined in a document this function will also\n never be called. If the last draggable region is removed from a document\n this function will be called with an NULL vector.\n"]
10143    pub on_draggable_regions_changed: ::std::option::Option<
10144        unsafe extern "C" fn(
10145            self_: *mut _cef_drag_handler_t,
10146            browser: *mut _cef_browser_t,
10147            frame: *mut _cef_frame_t,
10148            regionsCount: usize,
10149            regions: *const cef_draggable_region_t,
10150        ),
10151    >,
10152}
10153#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10154const _: () = {
10155    ["Size of _cef_drag_handler_t"][::std::mem::size_of::<_cef_drag_handler_t>() - 56usize];
10156    ["Alignment of _cef_drag_handler_t"][::std::mem::align_of::<_cef_drag_handler_t>() - 8usize];
10157    ["Offset of field: _cef_drag_handler_t::base"]
10158        [::std::mem::offset_of!(_cef_drag_handler_t, base) - 0usize];
10159    ["Offset of field: _cef_drag_handler_t::on_drag_enter"]
10160        [::std::mem::offset_of!(_cef_drag_handler_t, on_drag_enter) - 40usize];
10161    ["Offset of field: _cef_drag_handler_t::on_draggable_regions_changed"]
10162        [::std::mem::offset_of!(_cef_drag_handler_t, on_draggable_regions_changed) - 48usize];
10163};
10164#[doc = "\n Implement this structure to handle events related to dragging. The functions\n of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10165pub type cef_drag_handler_t = _cef_drag_handler_t;
10166#[doc = "\n Implement this structure to handle events related to find results. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10167#[repr(C)]
10168#[derive(Debug, Copy, Clone)]
10169pub struct _cef_find_handler_t {
10170    #[doc = "\n Base structure.\n"]
10171    pub base: cef_base_ref_counted_t,
10172    #[doc = "\n Called to report find results returned by cef_browser_host_t::find().\n |identifer| is a unique incremental identifier for the currently active\n search, |count| is the number of matches currently identified,\n |selectionRect| is the location of where the match was found (in window\n coordinates), |activeMatchOrdinal| is the current position in the search\n results, and |finalUpdate| is true (1) if this is the last find\n notification.\n"]
10173    pub on_find_result: ::std::option::Option<
10174        unsafe extern "C" fn(
10175            self_: *mut _cef_find_handler_t,
10176            browser: *mut _cef_browser_t,
10177            identifier: ::std::os::raw::c_int,
10178            count: ::std::os::raw::c_int,
10179            selectionRect: *const cef_rect_t,
10180            activeMatchOrdinal: ::std::os::raw::c_int,
10181            finalUpdate: ::std::os::raw::c_int,
10182        ),
10183    >,
10184}
10185#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10186const _: () = {
10187    ["Size of _cef_find_handler_t"][::std::mem::size_of::<_cef_find_handler_t>() - 48usize];
10188    ["Alignment of _cef_find_handler_t"][::std::mem::align_of::<_cef_find_handler_t>() - 8usize];
10189    ["Offset of field: _cef_find_handler_t::base"]
10190        [::std::mem::offset_of!(_cef_find_handler_t, base) - 0usize];
10191    ["Offset of field: _cef_find_handler_t::on_find_result"]
10192        [::std::mem::offset_of!(_cef_find_handler_t, on_find_result) - 40usize];
10193};
10194#[doc = "\n Implement this structure to handle events related to find results. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10195pub type cef_find_handler_t = _cef_find_handler_t;
10196#[doc = "\n Implement this structure to handle events related to focus. The functions of\n this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10197#[repr(C)]
10198#[derive(Debug, Copy, Clone)]
10199pub struct _cef_focus_handler_t {
10200    #[doc = "\n Base structure.\n"]
10201    pub base: cef_base_ref_counted_t,
10202    #[doc = "\n Called when the browser component is about to loose focus. For instance,\n if focus was on the last HTML element and the user pressed the TAB key.\n |next| will be true (1) if the browser is giving focus to the next\n component and false (0) if the browser is giving focus to the previous\n component.\n"]
10203    pub on_take_focus: ::std::option::Option<
10204        unsafe extern "C" fn(
10205            self_: *mut _cef_focus_handler_t,
10206            browser: *mut _cef_browser_t,
10207            next: ::std::os::raw::c_int,
10208        ),
10209    >,
10210    #[doc = "\n Called when the browser component is requesting focus. |source| indicates\n where the focus request is originating from. Return false (0) to allow the\n focus to be set or true (1) to cancel setting the focus.\n"]
10211    pub on_set_focus: ::std::option::Option<
10212        unsafe extern "C" fn(
10213            self_: *mut _cef_focus_handler_t,
10214            browser: *mut _cef_browser_t,
10215            source: cef_focus_source_t,
10216        ) -> ::std::os::raw::c_int,
10217    >,
10218    #[doc = "\n Called when the browser component has received focus.\n"]
10219    pub on_got_focus: ::std::option::Option<
10220        unsafe extern "C" fn(self_: *mut _cef_focus_handler_t, browser: *mut _cef_browser_t),
10221    >,
10222}
10223#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10224const _: () = {
10225    ["Size of _cef_focus_handler_t"][::std::mem::size_of::<_cef_focus_handler_t>() - 64usize];
10226    ["Alignment of _cef_focus_handler_t"][::std::mem::align_of::<_cef_focus_handler_t>() - 8usize];
10227    ["Offset of field: _cef_focus_handler_t::base"]
10228        [::std::mem::offset_of!(_cef_focus_handler_t, base) - 0usize];
10229    ["Offset of field: _cef_focus_handler_t::on_take_focus"]
10230        [::std::mem::offset_of!(_cef_focus_handler_t, on_take_focus) - 40usize];
10231    ["Offset of field: _cef_focus_handler_t::on_set_focus"]
10232        [::std::mem::offset_of!(_cef_focus_handler_t, on_set_focus) - 48usize];
10233    ["Offset of field: _cef_focus_handler_t::on_got_focus"]
10234        [::std::mem::offset_of!(_cef_focus_handler_t, on_got_focus) - 56usize];
10235};
10236#[doc = "\n Implement this structure to handle events related to focus. The functions of\n this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10237pub type cef_focus_handler_t = _cef_focus_handler_t;
10238#[doc = "\n Implement this structure to handle events related to cef_frame_t life span.\n The order of callbacks is:\n\n (1) During initial cef_browser_host_t creation and navigation of the main\n frame:\n - cef_frame_handler_t::OnFrameCreated => The initial main frame object has\n   been created. Any commands will be queued until the frame is attached.\n - cef_frame_handler_t::OnMainFrameChanged => The initial main frame object\n   has been assigned to the browser.\n - cef_life_span_handler_t::OnAfterCreated => The browser is now valid and\n   can be used.\n - cef_frame_handler_t::OnFrameAttached => The initial main frame object is\n   now connected to its peer in the renderer process. Commands can be routed.\n\n (2) During further cef_browser_host_t navigation/loading of the main frame\n     and/or sub-frames:\n - cef_frame_handler_t::OnFrameCreated => A new main frame or sub-frame\n   object has been created. Any commands will be queued until the frame is\n   attached.\n - cef_frame_handler_t::OnFrameAttached => A new main frame or sub-frame\n   object is now connected to its peer in the renderer process. Commands can\n   be routed.\n - cef_frame_handler_t::OnFrameDetached => An existing main frame or sub-\n   frame object has lost its connection to the renderer process. If multiple\n   objects are detached at the same time then notifications will be sent for\n   any sub-frame objects before the main frame object. Commands can no longer\n   be routed and will be discarded.\n - CefFremeHadler::OnFrameDestroyed => An existing main frame or sub-frame\n   object has been destroyed.\n - cef_frame_handler_t::OnMainFrameChanged => A new main frame object has\n   been assigned to the browser. This will only occur with cross-origin\n   navigation or re-navigation after renderer process termination (due to\n   crashes, etc).\n\n (3) During final cef_browser_host_t destruction of the main frame:\n - cef_frame_handler_t::OnFrameDetached => Any sub-frame objects have lost\n   their connection to the renderer process. Commands can no longer be routed\n   and will be discarded.\n - CefFreameHandler::OnFrameDestroyed => Any sub-frame objects have been\n   destroyed.\n - cef_life_span_handler_t::OnBeforeClose => The browser has been destroyed.\n - cef_frame_handler_t::OnFrameDetached => The main frame object have lost\n   its connection to the renderer process. Notifications will be sent for any\n   sub-frame objects before the main frame object. Commands can no longer be\n   routed and will be discarded.\n - CefFreameHandler::OnFrameDestroyed => The main frame object has been\n   destroyed.\n - cef_frame_handler_t::OnMainFrameChanged => The final main frame object has\n   been removed from the browser.\n\n Special handling applies for cross-origin loading on creation/navigation of\n sub-frames, and cross-origin loading on creation of new popup browsers. A\n temporary frame will first be created in the parent frame's renderer\n process. This temporary frame will never attach and will be discarded after\n the real cross-origin frame is created in the new/target renderer process.\n The client will receive creation callbacks for the temporary frame, followed\n by cross-origin navigation callbacks (2) for the transition from the\n temporary frame to the real frame. The temporary frame will not receive or\n execute commands during this transitional period (any sent commands will be\n discarded).\n\n When the main frame navigates to a different origin the OnMainFrameChanged\n callback (2) will be executed with the old and new main frame objects.\n\n Callbacks will not be executed for placeholders that may be created during\n pre-commit navigation for sub-frames that do not yet exist in the renderer\n process. Placeholders will have cef_frame_t::get_identifier() == -4.\n\n The functions of this structure will be called on the UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
10239#[repr(C)]
10240#[derive(Debug, Copy, Clone)]
10241pub struct _cef_frame_handler_t {
10242    #[doc = "\n Base structure.\n"]
10243    pub base: cef_base_ref_counted_t,
10244    #[doc = "\n Called when a new frame is created. This will be the first notification\n that references |frame|. Any commands that require transport to the\n associated renderer process (LoadRequest, SendProcessMessage, GetSource,\n etc.) will be queued. The queued commands will be sent before\n OnFrameAttached or discarded before OnFrameDestroyed if the frame never\n attaches.\n"]
10245    pub on_frame_created: ::std::option::Option<
10246        unsafe extern "C" fn(
10247            self_: *mut _cef_frame_handler_t,
10248            browser: *mut _cef_browser_t,
10249            frame: *mut _cef_frame_t,
10250        ),
10251    >,
10252    #[doc = "\n Called when an existing frame is destroyed. This will be the last\n notification that references |frame| and cef_frame_t::is_valid() will\n return false (0) for |frame|. If called during browser destruction and\n after cef_life_span_handler_t::on_before_close() then\n cef_browser_t::is_valid() will return false (0) for |browser|. Any queued\n commands that have not been sent will be discarded before this callback.\n"]
10253    pub on_frame_destroyed: ::std::option::Option<
10254        unsafe extern "C" fn(
10255            self_: *mut _cef_frame_handler_t,
10256            browser: *mut _cef_browser_t,
10257            frame: *mut _cef_frame_t,
10258        ),
10259    >,
10260    #[doc = "\n Called when a frame can begin routing commands to/from the associated\n renderer process. |reattached| will be true (1) if the frame was re-\n attached after exiting the BackForwardCache or after encountering a\n recoverable connection error. Any queued commands will now have been\n dispatched. This function will not be called for temporary frames created\n during cross-origin navigation.\n"]
10261    pub on_frame_attached: ::std::option::Option<
10262        unsafe extern "C" fn(
10263            self_: *mut _cef_frame_handler_t,
10264            browser: *mut _cef_browser_t,
10265            frame: *mut _cef_frame_t,
10266            reattached: ::std::os::raw::c_int,
10267        ),
10268    >,
10269    #[doc = "\n Called when a frame loses its connection to the renderer process. This may\n occur when a frame is destroyed, enters the BackForwardCache, or\n encounters a rare connection error. In the case of frame destruction this\n call will be followed by a (potentially async) call to OnFrameDestroyed.\n If frame destruction is occuring synchronously then\n cef_frame_t::is_valid() will return false (0) for |frame|. If called\n during browser destruction and after\n cef_life_span_handler_t::on_before_close() then cef_browser_t::is_valid()\n will return false (0) for |browser|. If, in the non-destruction case, the\n same frame later exits the BackForwardCache or recovers from a connection\n error then there will be a follow-up call to OnFrameAttached. This\n function will not be called for temporary frames created during cross-\n origin navigation.\n"]
10270    pub on_frame_detached: ::std::option::Option<
10271        unsafe extern "C" fn(
10272            self_: *mut _cef_frame_handler_t,
10273            browser: *mut _cef_browser_t,
10274            frame: *mut _cef_frame_t,
10275        ),
10276    >,
10277    #[doc = "\n Called when the main frame changes due to (a) initial browser creation,\n (b) final browser destruction, (c) cross-origin navigation or (d) re-\n navigation after renderer process termination (due to crashes, etc).\n |old_frame| will be NULL and |new_frame| will be non-NULL when a main\n frame is assigned to |browser| for the first time. |old_frame| will be\n non-NULL and |new_frame| will be NULL when a main frame is removed from\n |browser| for the last time. Both |old_frame| and |new_frame| will be non-\n NULL for cross-origin navigations or re-navigation after renderer process\n termination. This function will be called after on_frame_created() for\n |new_frame| and/or after on_frame_destroyed() for |old_frame|. If called\n during browser destruction and after\n cef_life_span_handler_t::on_before_close() then cef_browser_t::is_valid()\n will return false (0) for |browser|.\n"]
10278    pub on_main_frame_changed: ::std::option::Option<
10279        unsafe extern "C" fn(
10280            self_: *mut _cef_frame_handler_t,
10281            browser: *mut _cef_browser_t,
10282            old_frame: *mut _cef_frame_t,
10283            new_frame: *mut _cef_frame_t,
10284        ),
10285    >,
10286}
10287#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10288const _: () = {
10289    ["Size of _cef_frame_handler_t"][::std::mem::size_of::<_cef_frame_handler_t>() - 80usize];
10290    ["Alignment of _cef_frame_handler_t"][::std::mem::align_of::<_cef_frame_handler_t>() - 8usize];
10291    ["Offset of field: _cef_frame_handler_t::base"]
10292        [::std::mem::offset_of!(_cef_frame_handler_t, base) - 0usize];
10293    ["Offset of field: _cef_frame_handler_t::on_frame_created"]
10294        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_created) - 40usize];
10295    ["Offset of field: _cef_frame_handler_t::on_frame_destroyed"]
10296        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_destroyed) - 48usize];
10297    ["Offset of field: _cef_frame_handler_t::on_frame_attached"]
10298        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_attached) - 56usize];
10299    ["Offset of field: _cef_frame_handler_t::on_frame_detached"]
10300        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_detached) - 64usize];
10301    ["Offset of field: _cef_frame_handler_t::on_main_frame_changed"]
10302        [::std::mem::offset_of!(_cef_frame_handler_t, on_main_frame_changed) - 72usize];
10303};
10304#[doc = "\n Implement this structure to handle events related to cef_frame_t life span.\n The order of callbacks is:\n\n (1) During initial cef_browser_host_t creation and navigation of the main\n frame:\n - cef_frame_handler_t::OnFrameCreated => The initial main frame object has\n   been created. Any commands will be queued until the frame is attached.\n - cef_frame_handler_t::OnMainFrameChanged => The initial main frame object\n   has been assigned to the browser.\n - cef_life_span_handler_t::OnAfterCreated => The browser is now valid and\n   can be used.\n - cef_frame_handler_t::OnFrameAttached => The initial main frame object is\n   now connected to its peer in the renderer process. Commands can be routed.\n\n (2) During further cef_browser_host_t navigation/loading of the main frame\n     and/or sub-frames:\n - cef_frame_handler_t::OnFrameCreated => A new main frame or sub-frame\n   object has been created. Any commands will be queued until the frame is\n   attached.\n - cef_frame_handler_t::OnFrameAttached => A new main frame or sub-frame\n   object is now connected to its peer in the renderer process. Commands can\n   be routed.\n - cef_frame_handler_t::OnFrameDetached => An existing main frame or sub-\n   frame object has lost its connection to the renderer process. If multiple\n   objects are detached at the same time then notifications will be sent for\n   any sub-frame objects before the main frame object. Commands can no longer\n   be routed and will be discarded.\n - CefFremeHadler::OnFrameDestroyed => An existing main frame or sub-frame\n   object has been destroyed.\n - cef_frame_handler_t::OnMainFrameChanged => A new main frame object has\n   been assigned to the browser. This will only occur with cross-origin\n   navigation or re-navigation after renderer process termination (due to\n   crashes, etc).\n\n (3) During final cef_browser_host_t destruction of the main frame:\n - cef_frame_handler_t::OnFrameDetached => Any sub-frame objects have lost\n   their connection to the renderer process. Commands can no longer be routed\n   and will be discarded.\n - CefFreameHandler::OnFrameDestroyed => Any sub-frame objects have been\n   destroyed.\n - cef_life_span_handler_t::OnBeforeClose => The browser has been destroyed.\n - cef_frame_handler_t::OnFrameDetached => The main frame object have lost\n   its connection to the renderer process. Notifications will be sent for any\n   sub-frame objects before the main frame object. Commands can no longer be\n   routed and will be discarded.\n - CefFreameHandler::OnFrameDestroyed => The main frame object has been\n   destroyed.\n - cef_frame_handler_t::OnMainFrameChanged => The final main frame object has\n   been removed from the browser.\n\n Special handling applies for cross-origin loading on creation/navigation of\n sub-frames, and cross-origin loading on creation of new popup browsers. A\n temporary frame will first be created in the parent frame's renderer\n process. This temporary frame will never attach and will be discarded after\n the real cross-origin frame is created in the new/target renderer process.\n The client will receive creation callbacks for the temporary frame, followed\n by cross-origin navigation callbacks (2) for the transition from the\n temporary frame to the real frame. The temporary frame will not receive or\n execute commands during this transitional period (any sent commands will be\n discarded).\n\n When the main frame navigates to a different origin the OnMainFrameChanged\n callback (2) will be executed with the old and new main frame objects.\n\n Callbacks will not be executed for placeholders that may be created during\n pre-commit navigation for sub-frames that do not yet exist in the renderer\n process. Placeholders will have cef_frame_t::get_identifier() == -4.\n\n The functions of this structure will be called on the UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
10305pub type cef_frame_handler_t = _cef_frame_handler_t;
10306#[doc = "\n Callback structure used for asynchronous continuation of JavaScript dialog\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10307#[repr(C)]
10308#[derive(Debug, Copy, Clone)]
10309pub struct _cef_jsdialog_callback_t {
10310    #[doc = "\n Base structure.\n"]
10311    pub base: cef_base_ref_counted_t,
10312    #[doc = "\n Continue the JS dialog request. Set |success| to true (1) if the OK button\n was pressed. The |user_input| value should be specified for prompt\n dialogs.\n"]
10313    pub cont: ::std::option::Option<
10314        unsafe extern "C" fn(
10315            self_: *mut _cef_jsdialog_callback_t,
10316            success: ::std::os::raw::c_int,
10317            user_input: *const cef_string_t,
10318        ),
10319    >,
10320}
10321#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10322const _: () = {
10323    ["Size of _cef_jsdialog_callback_t"]
10324        [::std::mem::size_of::<_cef_jsdialog_callback_t>() - 48usize];
10325    ["Alignment of _cef_jsdialog_callback_t"]
10326        [::std::mem::align_of::<_cef_jsdialog_callback_t>() - 8usize];
10327    ["Offset of field: _cef_jsdialog_callback_t::base"]
10328        [::std::mem::offset_of!(_cef_jsdialog_callback_t, base) - 0usize];
10329    ["Offset of field: _cef_jsdialog_callback_t::cont"]
10330        [::std::mem::offset_of!(_cef_jsdialog_callback_t, cont) - 40usize];
10331};
10332#[doc = "\n Callback structure used for asynchronous continuation of JavaScript dialog\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10333pub type cef_jsdialog_callback_t = _cef_jsdialog_callback_t;
10334#[doc = "\n Implement this structure to handle events related to JavaScript dialogs. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10335#[repr(C)]
10336#[derive(Debug, Copy, Clone)]
10337pub struct _cef_jsdialog_handler_t {
10338    #[doc = "\n Base structure.\n"]
10339    pub base: cef_base_ref_counted_t,
10340    #[doc = "\n Called to run a JavaScript dialog. If |origin_url| is non-NULL it can be\n passed to the CefFormatUrlForSecurityDisplay function to retrieve a secure\n and user-friendly display string. The |default_prompt_text| value will be\n specified for prompt dialogs only. Set |suppress_message| to true (1) and\n return false (0) to suppress the message (suppressing messages is\n preferable to immediately executing the callback as this is used to detect\n presumably malicious behavior like spamming alert messages in\n onbeforeunload). Set |suppress_message| to false (0) and return false (0)\n to use the default implementation (the default implementation will show\n one modal dialog at a time and suppress any additional dialog requests\n until the displayed dialog is dismissed). Return true (1) if the\n application will use a custom dialog or if the callback has been executed\n immediately. Custom dialogs may be either modal or modeless. If a custom\n dialog is used the application must execute |callback| once the custom\n dialog is dismissed.\n"]
10341    pub on_jsdialog: ::std::option::Option<
10342        unsafe extern "C" fn(
10343            self_: *mut _cef_jsdialog_handler_t,
10344            browser: *mut _cef_browser_t,
10345            origin_url: *const cef_string_t,
10346            dialog_type: cef_jsdialog_type_t,
10347            message_text: *const cef_string_t,
10348            default_prompt_text: *const cef_string_t,
10349            callback: *mut _cef_jsdialog_callback_t,
10350            suppress_message: *mut ::std::os::raw::c_int,
10351        ) -> ::std::os::raw::c_int,
10352    >,
10353    #[doc = "\n Called to run a dialog asking the user if they want to leave a page.\n Return false (0) to use the default dialog implementation. Return true (1)\n if the application will use a custom dialog or if the callback has been\n executed immediately. Custom dialogs may be either modal or modeless. If a\n custom dialog is used the application must execute |callback| once the\n custom dialog is dismissed.\n"]
10354    pub on_before_unload_dialog: ::std::option::Option<
10355        unsafe extern "C" fn(
10356            self_: *mut _cef_jsdialog_handler_t,
10357            browser: *mut _cef_browser_t,
10358            message_text: *const cef_string_t,
10359            is_reload: ::std::os::raw::c_int,
10360            callback: *mut _cef_jsdialog_callback_t,
10361        ) -> ::std::os::raw::c_int,
10362    >,
10363    #[doc = "\n Called to cancel any pending dialogs and reset any saved dialog state.\n Will be called due to events like page navigation irregardless of whether\n any dialogs are currently pending.\n"]
10364    pub on_reset_dialog_state: ::std::option::Option<
10365        unsafe extern "C" fn(self_: *mut _cef_jsdialog_handler_t, browser: *mut _cef_browser_t),
10366    >,
10367    #[doc = "\n Called when the dialog is closed.\n"]
10368    pub on_dialog_closed: ::std::option::Option<
10369        unsafe extern "C" fn(self_: *mut _cef_jsdialog_handler_t, browser: *mut _cef_browser_t),
10370    >,
10371}
10372#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10373const _: () = {
10374    ["Size of _cef_jsdialog_handler_t"][::std::mem::size_of::<_cef_jsdialog_handler_t>() - 72usize];
10375    ["Alignment of _cef_jsdialog_handler_t"]
10376        [::std::mem::align_of::<_cef_jsdialog_handler_t>() - 8usize];
10377    ["Offset of field: _cef_jsdialog_handler_t::base"]
10378        [::std::mem::offset_of!(_cef_jsdialog_handler_t, base) - 0usize];
10379    ["Offset of field: _cef_jsdialog_handler_t::on_jsdialog"]
10380        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_jsdialog) - 40usize];
10381    ["Offset of field: _cef_jsdialog_handler_t::on_before_unload_dialog"]
10382        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_before_unload_dialog) - 48usize];
10383    ["Offset of field: _cef_jsdialog_handler_t::on_reset_dialog_state"]
10384        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_reset_dialog_state) - 56usize];
10385    ["Offset of field: _cef_jsdialog_handler_t::on_dialog_closed"]
10386        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_dialog_closed) - 64usize];
10387};
10388#[doc = "\n Implement this structure to handle events related to JavaScript dialogs. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10389pub type cef_jsdialog_handler_t = _cef_jsdialog_handler_t;
10390#[doc = "\n Implement this structure to handle events related to keyboard input. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10391#[repr(C)]
10392#[derive(Debug, Copy, Clone)]
10393pub struct _cef_keyboard_handler_t {
10394    #[doc = "\n Base structure.\n"]
10395    pub base: cef_base_ref_counted_t,
10396    #[doc = "\n Called before a keyboard event is sent to the renderer. |event| contains\n information about the keyboard event. |os_event| is the operating system\n event message, if any. Return true (1) if the event was handled or false\n (0) otherwise. If the event will be handled in on_key_event() as a\n keyboard shortcut set |is_keyboard_shortcut| to true (1) and return false\n (0).\n"]
10397    pub on_pre_key_event: ::std::option::Option<
10398        unsafe extern "C" fn(
10399            self_: *mut _cef_keyboard_handler_t,
10400            browser: *mut _cef_browser_t,
10401            event: *const cef_key_event_t,
10402            os_event: cef_event_handle_t,
10403            is_keyboard_shortcut: *mut ::std::os::raw::c_int,
10404        ) -> ::std::os::raw::c_int,
10405    >,
10406    #[doc = "\n Called after the renderer and JavaScript in the page has had a chance to\n handle the event. |event| contains information about the keyboard event.\n |os_event| is the operating system event message, if any. Return true (1)\n if the keyboard event was handled or false (0) otherwise.\n"]
10407    pub on_key_event: ::std::option::Option<
10408        unsafe extern "C" fn(
10409            self_: *mut _cef_keyboard_handler_t,
10410            browser: *mut _cef_browser_t,
10411            event: *const cef_key_event_t,
10412            os_event: cef_event_handle_t,
10413        ) -> ::std::os::raw::c_int,
10414    >,
10415}
10416#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10417const _: () = {
10418    ["Size of _cef_keyboard_handler_t"][::std::mem::size_of::<_cef_keyboard_handler_t>() - 56usize];
10419    ["Alignment of _cef_keyboard_handler_t"]
10420        [::std::mem::align_of::<_cef_keyboard_handler_t>() - 8usize];
10421    ["Offset of field: _cef_keyboard_handler_t::base"]
10422        [::std::mem::offset_of!(_cef_keyboard_handler_t, base) - 0usize];
10423    ["Offset of field: _cef_keyboard_handler_t::on_pre_key_event"]
10424        [::std::mem::offset_of!(_cef_keyboard_handler_t, on_pre_key_event) - 40usize];
10425    ["Offset of field: _cef_keyboard_handler_t::on_key_event"]
10426        [::std::mem::offset_of!(_cef_keyboard_handler_t, on_key_event) - 48usize];
10427};
10428#[doc = "\n Implement this structure to handle events related to keyboard input. The\n functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10429pub type cef_keyboard_handler_t = _cef_keyboard_handler_t;
10430#[doc = "\n Implement this structure to handle events related to browser life span. The\n functions of this structure will be called on the UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
10431#[repr(C)]
10432#[derive(Copy, Clone)]
10433pub struct _cef_life_span_handler_t {
10434    #[doc = "\n Base structure.\n"]
10435    pub base: cef_base_ref_counted_t,
10436    #[doc = "\n Called on the UI thread before a new popup browser is created. The\n |browser| and |frame| values represent the source of the popup request\n (opener browser and frame). The |popup_id| value uniquely identifies the\n popup in the context of the opener browser. The |target_url| and\n |target_frame_name| values indicate where the popup browser should\n navigate and may be NULL if not specified with the request. The\n |target_disposition| value indicates where the user intended to open the\n popup (e.g. current tab, new tab, etc). The |user_gesture| value will be\n true (1) if the popup was opened via explicit user gesture (e.g. clicking\n a link) or false (0) if the popup opened automatically (e.g. via the\n DomContentLoaded event). The |popupFeatures| structure contains additional\n information about the requested popup window. To allow creation of the\n popup browser optionally modify |windowInfo|, |client|, |settings| and\n |no_javascript_access| and return false (0). To cancel creation of the\n popup browser return true (1). The |client| and |settings| values will\n default to the source browser's values. If the |no_javascript_access|\n value is set to false (0) the new browser will not be scriptable and may\n not be hosted in the same renderer process as the source browser. Any\n modifications to |windowInfo| will be ignored if the parent browser is\n wrapped in a cef_browser_view_t. The |extra_info| parameter provides an\n opportunity to specify extra information specific to the created popup\n browser that will be passed to\n cef_render_process_handler_t::on_browser_created() in the render process.\n\n If popup browser creation succeeds then OnAfterCreated will be called for\n the new popup browser. If popup browser creation fails, and if the opener\n browser has not yet been destroyed, then OnBeforePopupAborted will be\n called for the opener browser. See OnBeforePopupAborted documentation for\n additional details.\n"]
10437    pub on_before_popup: ::std::option::Option<
10438        unsafe extern "C" fn(
10439            self_: *mut _cef_life_span_handler_t,
10440            browser: *mut _cef_browser_t,
10441            frame: *mut _cef_frame_t,
10442            popup_id: ::std::os::raw::c_int,
10443            target_url: *const cef_string_t,
10444            target_frame_name: *const cef_string_t,
10445            target_disposition: cef_window_open_disposition_t,
10446            user_gesture: ::std::os::raw::c_int,
10447            popupFeatures: *const cef_popup_features_t,
10448            windowInfo: *mut _cef_window_info_t,
10449            client: *mut *mut _cef_client_t,
10450            settings: *mut _cef_browser_settings_t,
10451            extra_info: *mut *mut _cef_dictionary_value_t,
10452            no_javascript_access: *mut ::std::os::raw::c_int,
10453        ) -> ::std::os::raw::c_int,
10454    >,
10455    #[doc = "\n Called on the UI thread if a new popup browser is aborted. This only\n occurs if the popup is allowed in OnBeforePopup and creation fails before\n OnAfterCreated is called for the new popup browser. The |browser| value is\n the source of the popup request (opener browser). The |popup_id| value\n uniquely identifies the popup in the context of the opener browser, and is\n the same value that was passed to OnBeforePopup.\n\n Any client state associated with pending popups should be cleared in\n OnBeforePopupAborted, OnAfterCreated of the popup browser, or\n OnBeforeClose of the opener browser. OnBeforeClose of the opener browser\n may be called before this function in cases where the opener is closing\n during popup creation, in which case cef_browser_host_t::IsValid will\n return false (0) in this function.\n"]
10456    pub on_before_popup_aborted: ::std::option::Option<
10457        unsafe extern "C" fn(
10458            self_: *mut _cef_life_span_handler_t,
10459            browser: *mut _cef_browser_t,
10460            popup_id: ::std::os::raw::c_int,
10461        ),
10462    >,
10463    #[doc = "\n Called on the UI thread before a new DevTools popup browser is created.\n The |browser| value represents the source of the popup request. Optionally\n modify |windowInfo|, |client|, |settings| and |extra_info| values. The\n |client|, |settings| and |extra_info| values will default to the source\n browser's values. Any modifications to |windowInfo| will be ignored if the\n parent browser is Views-hosted (wrapped in a cef_browser_view_t).\n\n The |extra_info| parameter provides an opportunity to specify extra\n information specific to the created popup browser that will be passed to\n cef_render_process_handler_t::on_browser_created() in the render process.\n The existing |extra_info| object, if any, will be read-only but may be\n replaced with a new object.\n\n Views-hosted source browsers will create Views-hosted DevTools popups\n unless |use_default_window| is set to to true (1). DevTools popups can be\n blocked by returning true (1) from cef_command_handler_t::OnChromeCommand\n for IDC_DEV_TOOLS. Only used with Chrome style.\n"]
10464    pub on_before_dev_tools_popup: ::std::option::Option<
10465        unsafe extern "C" fn(
10466            self_: *mut _cef_life_span_handler_t,
10467            browser: *mut _cef_browser_t,
10468            windowInfo: *mut _cef_window_info_t,
10469            client: *mut *mut _cef_client_t,
10470            settings: *mut _cef_browser_settings_t,
10471            extra_info: *mut *mut _cef_dictionary_value_t,
10472            use_default_window: *mut ::std::os::raw::c_int,
10473        ),
10474    >,
10475    #[doc = "\n Called after a new browser is created. It is now safe to begin performing\n actions with |browser|. cef_frame_handler_t callbacks related to initial\n main frame creation will arrive before this callback. See\n cef_frame_handler_t documentation for additional usage information.\n"]
10476    pub on_after_created: ::std::option::Option<
10477        unsafe extern "C" fn(self_: *mut _cef_life_span_handler_t, browser: *mut _cef_browser_t),
10478    >,
10479    #[doc = "\n Called when an Alloy style browser is ready to be closed, meaning that the\n close has already been initiated and that JavaScript unload handlers have\n already executed or should be ignored. This may result directly from a\n call to cef_browser_host_t::[Try]close_browser() or indirectly if the\n browser's top-level parent window was created by CEF and the user attempts\n to close that window (by clicking the 'X', for example). do_close() will\n not be called if the browser's host window/view has already been destroyed\n (via parent window/view hierarchy tear-down, for example), as it is no\n longer possible to customize the close behavior at that point.\n\n An application should handle top-level parent window close notifications\n by calling cef_browser_host_t::try_close_browser() or\n cef_browser_host_t::CloseBrowser(false (0)) instead of allowing the window\n to close immediately (see the examples below). This gives CEF an\n opportunity to process JavaScript unload handlers and optionally cancel\n the close before do_close() is called.\n\n When windowed rendering is enabled CEF will create an internal child\n window/view to host the browser. In that case returning false (0) from\n do_close() will send the standard close notification to the browser's top-\n level parent window (e.g. WM_CLOSE on Windows, performClose: on OS X,\n \"delete_event\" on Linux or cef_window_delegate_t::can_close() callback\n from Views).\n\n When windowed rendering is disabled there is no internal window/view and\n returning false (0) from do_close() will cause the browser object to be\n destroyed immediately.\n\n If the browser's top-level parent window requires a non-standard close\n notification then send that notification from do_close() and return true\n (1). You are still required to complete the browser close as soon as\n possible (either by calling [Try]close_browser() or by proceeding with\n window/view hierarchy tear-down), otherwise the browser will be left in a\n partially closed state that interferes with proper functioning. Top-level\n windows created on the browser process UI thread can alternately call\n cef_browser_host_t::is_ready_to_be_closed() in the close handler to check\n close status instead of relying on custom do_close() handling. See\n documentation on that function for additional details.\n\n The cef_life_span_handler_t::on_before_close() function will be called\n after do_close() (if do_close() is called) and immediately before the\n browser object is destroyed. The application should only exit after\n on_before_close() has been called for all existing browsers.\n\n The below examples describe what should happen during window close when\n the browser is parented to an application-provided top-level window.\n\n Example 1: Using cef_browser_host_t::try_close_browser(). This is\n recommended for clients using standard close handling and windows created\n on the browser process UI thread. 1.  User clicks the window close button\n which sends a close notification\n     to the application's top-level window.\n 2.  Application's top-level window receives the close notification and\n     calls TryCloseBrowser() (similar to calling CloseBrowser(false)).\n     TryCloseBrowser() returns false so the client cancels the window\n     close.\n 3.  JavaScript 'onbeforeunload' handler executes and shows the close\n     confirmation dialog (which can be overridden via\n     CefJSDialogHandler::OnBeforeUnloadDialog()).\n 4.  User approves the close. 5.  JavaScript 'onunload' handler executes.\n 6.  Application's do_close() handler is called and returns false (0) by\n     default.\n 7.  CEF sends a close notification to the application's top-level window\n     (because DoClose() returned false).\n 8.  Application's top-level window receives the close notification and\n     calls TryCloseBrowser(). TryCloseBrowser() returns true so the client\n     allows the window close.\n 9.  Application's top-level window is destroyed, triggering destruction\n     of the child browser window.\n 10. Application's on_before_close() handler is called and the browser\n object\n     is destroyed.\n 11. Application exits by calling cef_quit_message_loop() if no other\n browsers\n     exist.\n\n Example 2: Using cef_browser_host_t::CloseBrowser(false (0)) and\n implementing the do_close() callback. This is recommended for clients\n using non-standard close handling or windows that were not created on the\n browser process UI thread. 1.  User clicks the window close button which\n sends a close notification\n     to the application's top-level window.\n 2.  Application's top-level window receives the close notification and:\n     A. Calls CefBrowserHost::CloseBrowser(false).\n     B. Cancels the window close.\n 3.  JavaScript 'onbeforeunload' handler executes and shows the close\n     confirmation dialog (which can be overridden via\n     CefJSDialogHandler::OnBeforeUnloadDialog()).\n 4.  User approves the close. 5.  JavaScript 'onunload' handler executes.\n 6.  Application's do_close() handler is called. Application will:\n     A. Set a flag to indicate that the next top-level window close attempt\n        will be allowed.\n     B. Return false.\n 7.  CEF sends a close notification to the application's top-level window\n     (because DoClose() returned false).\n 8.  Application's top-level window receives the close notification and\n     allows the window to close based on the flag from #6A.\n 9.  Application's top-level window is destroyed, triggering destruction\n     of the child browser window.\n 10. Application's on_before_close() handler is called and the browser\n object\n     is destroyed.\n 11. Application exits by calling cef_quit_message_loop() if no other\n browsers\n     exist.\n"]
10480    pub do_close: ::std::option::Option<
10481        unsafe extern "C" fn(
10482            self_: *mut _cef_life_span_handler_t,
10483            browser: *mut _cef_browser_t,
10484        ) -> ::std::os::raw::c_int,
10485    >,
10486    #[doc = "\n Called just before a browser is destroyed. Release all references to the\n browser object and do not attempt to execute any functions on the browser\n object (other than IsValid, GetIdentifier or IsSame) after this callback\n returns. cef_frame_handler_t callbacks related to final main frame\n destruction, and OnBeforePopupAborted callbacks for any pending popups,\n will arrive after this callback and cef_browser_t::IsValid will return\n false (0) at that time. Any in-progress network requests associated with\n |browser| will be aborted when the browser is destroyed, and\n cef_resource_request_handler_t callbacks related to those requests may\n still arrive on the IO thread after this callback. See cef_frame_handler_t\n and do_close() documentation for additional usage information.\n"]
10487    pub on_before_close: ::std::option::Option<
10488        unsafe extern "C" fn(self_: *mut _cef_life_span_handler_t, browser: *mut _cef_browser_t),
10489    >,
10490}
10491#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10492const _: () = {
10493    ["Size of _cef_life_span_handler_t"]
10494        [::std::mem::size_of::<_cef_life_span_handler_t>() - 88usize];
10495    ["Alignment of _cef_life_span_handler_t"]
10496        [::std::mem::align_of::<_cef_life_span_handler_t>() - 8usize];
10497    ["Offset of field: _cef_life_span_handler_t::base"]
10498        [::std::mem::offset_of!(_cef_life_span_handler_t, base) - 0usize];
10499    ["Offset of field: _cef_life_span_handler_t::on_before_popup"]
10500        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_popup) - 40usize];
10501    ["Offset of field: _cef_life_span_handler_t::on_before_popup_aborted"]
10502        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_popup_aborted) - 48usize];
10503    ["Offset of field: _cef_life_span_handler_t::on_before_dev_tools_popup"]
10504        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_dev_tools_popup) - 56usize];
10505    ["Offset of field: _cef_life_span_handler_t::on_after_created"]
10506        [::std::mem::offset_of!(_cef_life_span_handler_t, on_after_created) - 64usize];
10507    ["Offset of field: _cef_life_span_handler_t::do_close"]
10508        [::std::mem::offset_of!(_cef_life_span_handler_t, do_close) - 72usize];
10509    ["Offset of field: _cef_life_span_handler_t::on_before_close"]
10510        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_close) - 80usize];
10511};
10512#[doc = "\n Implement this structure to handle events related to browser life span. The\n functions of this structure will be called on the UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
10513pub type cef_life_span_handler_t = _cef_life_span_handler_t;
10514#[doc = "\n Implement this structure to handle events related to browser load status.\n The functions of this structure will be called on the browser process UI\n thread or render process main thread (TID_RENDERER).\n\n NOTE: This struct is allocated client-side.\n"]
10515#[repr(C)]
10516#[derive(Debug, Copy, Clone)]
10517pub struct _cef_load_handler_t {
10518    #[doc = "\n Base structure.\n"]
10519    pub base: cef_base_ref_counted_t,
10520    #[doc = "\n Called when the loading state has changed. This callback will be executed\n twice -- once when loading is initiated either programmatically or by user\n action, and once when loading is terminated due to completion,\n cancellation of failure. It will be called before any calls to OnLoadStart\n and after all calls to OnLoadError and/or OnLoadEnd.\n"]
10521    pub on_loading_state_change: ::std::option::Option<
10522        unsafe extern "C" fn(
10523            self_: *mut _cef_load_handler_t,
10524            browser: *mut _cef_browser_t,
10525            isLoading: ::std::os::raw::c_int,
10526            canGoBack: ::std::os::raw::c_int,
10527            canGoForward: ::std::os::raw::c_int,
10528        ),
10529    >,
10530    #[doc = "\n Called after a navigation has been committed and before the browser begins\n loading contents in the frame. The |frame| value will never be NULL --\n call the is_main() function to check if this frame is the main frame.\n |transition_type| provides information about the source of the navigation\n and an accurate value is only available in the browser process. Multiple\n frames may be loading at the same time. Sub-frames may start or continue\n loading after the main frame load has ended. This function will not be\n called for same page navigations (fragments, history state, etc.) or for\n navigations that fail or are canceled before commit. For notification of\n overall browser load status use OnLoadingStateChange instead.\n"]
10531    pub on_load_start: ::std::option::Option<
10532        unsafe extern "C" fn(
10533            self_: *mut _cef_load_handler_t,
10534            browser: *mut _cef_browser_t,
10535            frame: *mut _cef_frame_t,
10536            transition_type: cef_transition_type_t,
10537        ),
10538    >,
10539    #[doc = "\n Called when the browser is done loading a frame. The |frame| value will\n never be NULL -- call the is_main() function to check if this frame is the\n main frame. Multiple frames may be loading at the same time. Sub-frames\n may start or continue loading after the main frame load has ended. This\n function will not be called for same page navigations (fragments, history\n state, etc.) or for navigations that fail or are canceled before commit.\n For notification of overall browser load status use OnLoadingStateChange\n instead.\n"]
10540    pub on_load_end: ::std::option::Option<
10541        unsafe extern "C" fn(
10542            self_: *mut _cef_load_handler_t,
10543            browser: *mut _cef_browser_t,
10544            frame: *mut _cef_frame_t,
10545            httpStatusCode: ::std::os::raw::c_int,
10546        ),
10547    >,
10548    #[doc = "\n Called when a navigation fails or is canceled. This function may be called\n by itself if before commit or in combination with OnLoadStart/OnLoadEnd if\n after commit. |errorCode| is the error code number, |errorText| is the\n error text and |failedUrl| is the URL that failed to load. See\n net\\base\\net_error_list.h for complete descriptions of the error codes.\n"]
10549    pub on_load_error: ::std::option::Option<
10550        unsafe extern "C" fn(
10551            self_: *mut _cef_load_handler_t,
10552            browser: *mut _cef_browser_t,
10553            frame: *mut _cef_frame_t,
10554            errorCode: cef_errorcode_t,
10555            errorText: *const cef_string_t,
10556            failedUrl: *const cef_string_t,
10557        ),
10558    >,
10559}
10560#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10561const _: () = {
10562    ["Size of _cef_load_handler_t"][::std::mem::size_of::<_cef_load_handler_t>() - 72usize];
10563    ["Alignment of _cef_load_handler_t"][::std::mem::align_of::<_cef_load_handler_t>() - 8usize];
10564    ["Offset of field: _cef_load_handler_t::base"]
10565        [::std::mem::offset_of!(_cef_load_handler_t, base) - 0usize];
10566    ["Offset of field: _cef_load_handler_t::on_loading_state_change"]
10567        [::std::mem::offset_of!(_cef_load_handler_t, on_loading_state_change) - 40usize];
10568    ["Offset of field: _cef_load_handler_t::on_load_start"]
10569        [::std::mem::offset_of!(_cef_load_handler_t, on_load_start) - 48usize];
10570    ["Offset of field: _cef_load_handler_t::on_load_end"]
10571        [::std::mem::offset_of!(_cef_load_handler_t, on_load_end) - 56usize];
10572    ["Offset of field: _cef_load_handler_t::on_load_error"]
10573        [::std::mem::offset_of!(_cef_load_handler_t, on_load_error) - 64usize];
10574};
10575#[doc = "\n Implement this structure to handle events related to browser load status.\n The functions of this structure will be called on the browser process UI\n thread or render process main thread (TID_RENDERER).\n\n NOTE: This struct is allocated client-side.\n"]
10576pub type cef_load_handler_t = _cef_load_handler_t;
10577#[doc = "\n Callback structure used for asynchronous continuation of media access\n permission requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10578#[repr(C)]
10579#[derive(Debug, Copy, Clone)]
10580pub struct _cef_media_access_callback_t {
10581    #[doc = "\n Base structure.\n"]
10582    pub base: cef_base_ref_counted_t,
10583    #[doc = "\n Call to allow or deny media access. If this callback was initiated in\n response to a getUserMedia (indicated by\n CEF_MEDIA_PERMISSION_DEVICE_AUDIO_CAPTURE and/or\n CEF_MEDIA_PERMISSION_DEVICE_VIDEO_CAPTURE being set) then\n |allowed_permissions| must match |required_permissions| passed to\n OnRequestMediaAccessPermission.\n"]
10584    pub cont: ::std::option::Option<
10585        unsafe extern "C" fn(self_: *mut _cef_media_access_callback_t, allowed_permissions: u32),
10586    >,
10587    #[doc = "\n Cancel the media access request.\n"]
10588    pub cancel:
10589        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_access_callback_t)>,
10590}
10591#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10592const _: () = {
10593    ["Size of _cef_media_access_callback_t"]
10594        [::std::mem::size_of::<_cef_media_access_callback_t>() - 56usize];
10595    ["Alignment of _cef_media_access_callback_t"]
10596        [::std::mem::align_of::<_cef_media_access_callback_t>() - 8usize];
10597    ["Offset of field: _cef_media_access_callback_t::base"]
10598        [::std::mem::offset_of!(_cef_media_access_callback_t, base) - 0usize];
10599    ["Offset of field: _cef_media_access_callback_t::cont"]
10600        [::std::mem::offset_of!(_cef_media_access_callback_t, cont) - 40usize];
10601    ["Offset of field: _cef_media_access_callback_t::cancel"]
10602        [::std::mem::offset_of!(_cef_media_access_callback_t, cancel) - 48usize];
10603};
10604#[doc = "\n Callback structure used for asynchronous continuation of media access\n permission requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10605pub type cef_media_access_callback_t = _cef_media_access_callback_t;
10606#[doc = "\n Callback structure used for asynchronous continuation of permission prompts.\n\n NOTE: This struct is allocated DLL-side.\n"]
10607#[repr(C)]
10608#[derive(Debug, Copy, Clone)]
10609pub struct _cef_permission_prompt_callback_t {
10610    #[doc = "\n Base structure.\n"]
10611    pub base: cef_base_ref_counted_t,
10612    #[doc = "\n Complete the permissions request with the specified |result|.\n"]
10613    pub cont: ::std::option::Option<
10614        unsafe extern "C" fn(
10615            self_: *mut _cef_permission_prompt_callback_t,
10616            result: cef_permission_request_result_t,
10617        ),
10618    >,
10619}
10620#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10621const _: () = {
10622    ["Size of _cef_permission_prompt_callback_t"]
10623        [::std::mem::size_of::<_cef_permission_prompt_callback_t>() - 48usize];
10624    ["Alignment of _cef_permission_prompt_callback_t"]
10625        [::std::mem::align_of::<_cef_permission_prompt_callback_t>() - 8usize];
10626    ["Offset of field: _cef_permission_prompt_callback_t::base"]
10627        [::std::mem::offset_of!(_cef_permission_prompt_callback_t, base) - 0usize];
10628    ["Offset of field: _cef_permission_prompt_callback_t::cont"]
10629        [::std::mem::offset_of!(_cef_permission_prompt_callback_t, cont) - 40usize];
10630};
10631#[doc = "\n Callback structure used for asynchronous continuation of permission prompts.\n\n NOTE: This struct is allocated DLL-side.\n"]
10632pub type cef_permission_prompt_callback_t = _cef_permission_prompt_callback_t;
10633#[doc = "\n Implement this structure to handle events related to permission requests.\n The functions of this structure will be called on the browser process UI\n thread.\n\n NOTE: This struct is allocated client-side.\n"]
10634#[repr(C)]
10635#[derive(Debug, Copy, Clone)]
10636pub struct _cef_permission_handler_t {
10637    #[doc = "\n Base structure.\n"]
10638    pub base: cef_base_ref_counted_t,
10639    #[doc = "\n Called when a page requests permission to access media.\n |requesting_origin| is the URL origin requesting permission.\n |requested_permissions| is a combination of values from\n cef_media_access_permission_types_t that represent the requested\n permissions. Return true (1) and call cef_media_access_callback_t\n functions either in this function or at a later time to continue or cancel\n the request. Return false (0) to proceed with default handling. With\n Chrome style, default handling will display the permission request UI.\n With Alloy style, default handling will deny the request. This function\n will not be called if the \"--enable-media-stream\" command-line switch is\n used to grant all permissions.\n"]
10640    pub on_request_media_access_permission: ::std::option::Option<
10641        unsafe extern "C" fn(
10642            self_: *mut _cef_permission_handler_t,
10643            browser: *mut _cef_browser_t,
10644            frame: *mut _cef_frame_t,
10645            requesting_origin: *const cef_string_t,
10646            requested_permissions: u32,
10647            callback: *mut _cef_media_access_callback_t,
10648        ) -> ::std::os::raw::c_int,
10649    >,
10650    #[doc = "\n Called when a page should show a permission prompt. |prompt_id| uniquely\n identifies the prompt. |requesting_origin| is the URL origin requesting\n permission. |requested_permissions| is a combination of values from\n cef_permission_request_types_t that represent the requested permissions.\n Return true (1) and call cef_permission_prompt_callback_t::Continue either\n in this function or at a later time to continue or cancel the request.\n Return false (0) to proceed with default handling. With Chrome style,\n default handling will display the permission prompt UI. With Alloy style,\n default handling is CEF_PERMISSION_RESULT_IGNORE.\n"]
10651    pub on_show_permission_prompt: ::std::option::Option<
10652        unsafe extern "C" fn(
10653            self_: *mut _cef_permission_handler_t,
10654            browser: *mut _cef_browser_t,
10655            prompt_id: u64,
10656            requesting_origin: *const cef_string_t,
10657            requested_permissions: u32,
10658            callback: *mut _cef_permission_prompt_callback_t,
10659        ) -> ::std::os::raw::c_int,
10660    >,
10661    #[doc = "\n Called when a permission prompt handled via OnShowPermissionPrompt is\n dismissed. |prompt_id| will match the value that was passed to\n OnShowPermissionPrompt. |result| will be the value passed to\n cef_permission_prompt_callback_t::Continue or CEF_PERMISSION_RESULT_IGNORE\n if the dialog was dismissed for other reasons such as navigation, browser\n closure, etc. This function will not be called if OnShowPermissionPrompt\n returned false (0) for |prompt_id|.\n"]
10662    pub on_dismiss_permission_prompt: ::std::option::Option<
10663        unsafe extern "C" fn(
10664            self_: *mut _cef_permission_handler_t,
10665            browser: *mut _cef_browser_t,
10666            prompt_id: u64,
10667            result: cef_permission_request_result_t,
10668        ),
10669    >,
10670}
10671#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10672const _: () = {
10673    ["Size of _cef_permission_handler_t"]
10674        [::std::mem::size_of::<_cef_permission_handler_t>() - 64usize];
10675    ["Alignment of _cef_permission_handler_t"]
10676        [::std::mem::align_of::<_cef_permission_handler_t>() - 8usize];
10677    ["Offset of field: _cef_permission_handler_t::base"]
10678        [::std::mem::offset_of!(_cef_permission_handler_t, base) - 0usize];
10679    ["Offset of field: _cef_permission_handler_t::on_request_media_access_permission"][::std::mem::offset_of!(
10680        _cef_permission_handler_t,
10681        on_request_media_access_permission
10682    ) - 40usize];
10683    ["Offset of field: _cef_permission_handler_t::on_show_permission_prompt"]
10684        [::std::mem::offset_of!(_cef_permission_handler_t, on_show_permission_prompt) - 48usize];
10685    ["Offset of field: _cef_permission_handler_t::on_dismiss_permission_prompt"]
10686        [::std::mem::offset_of!(_cef_permission_handler_t, on_dismiss_permission_prompt) - 56usize];
10687};
10688#[doc = "\n Implement this structure to handle events related to permission requests.\n The functions of this structure will be called on the browser process UI\n thread.\n\n NOTE: This struct is allocated client-side.\n"]
10689pub type cef_permission_handler_t = _cef_permission_handler_t;
10690#[doc = "\n Structure representing print settings.\n\n NOTE: This struct is allocated DLL-side.\n"]
10691#[repr(C)]
10692#[derive(Debug, Copy, Clone)]
10693pub struct _cef_print_settings_t {
10694    #[doc = "\n Base structure.\n"]
10695    pub base: cef_base_ref_counted_t,
10696    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
10697    pub is_valid: ::std::option::Option<
10698        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10699    >,
10700    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
10701    pub is_read_only: ::std::option::Option<
10702        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10703    >,
10704    #[doc = "\n Set the page orientation.\n"]
10705    pub set_orientation: ::std::option::Option<
10706        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, landscape: ::std::os::raw::c_int),
10707    >,
10708    #[doc = "\n Returns true (1) if the orientation is landscape.\n"]
10709    pub is_landscape: ::std::option::Option<
10710        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10711    >,
10712    #[doc = "\n Set the printer printable area in device units. Some platforms already\n provide flipped area. Set |landscape_needs_flip| to false (0) on those\n platforms to avoid double flipping.\n"]
10713    pub set_printer_printable_area: ::std::option::Option<
10714        unsafe extern "C" fn(
10715            self_: *mut _cef_print_settings_t,
10716            physical_size_device_units: *const cef_size_t,
10717            printable_area_device_units: *const cef_rect_t,
10718            landscape_needs_flip: ::std::os::raw::c_int,
10719        ),
10720    >,
10721    #[doc = "\n Set the device name.\n"]
10722    pub set_device_name: ::std::option::Option<
10723        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t),
10724    >,
10725    #[doc = "\n Get the device name.\n"]
10726    pub get_device_name: ::std::option::Option<
10727        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t,
10728    >,
10729    #[doc = "\n Set the DPI (dots per inch).\n"]
10730    pub set_dpi: ::std::option::Option<
10731        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, dpi: ::std::os::raw::c_int),
10732    >,
10733    #[doc = "\n Get the DPI (dots per inch).\n"]
10734    pub get_dpi: ::std::option::Option<
10735        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10736    >,
10737    #[doc = "\n Set the page ranges.\n"]
10738    pub set_page_ranges: ::std::option::Option<
10739        unsafe extern "C" fn(
10740            self_: *mut _cef_print_settings_t,
10741            rangesCount: usize,
10742            ranges: *const cef_range_t,
10743        ),
10744    >,
10745    #[doc = "\n Returns the number of page ranges that currently exist.\n"]
10746    pub get_page_ranges_count:
10747        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> usize>,
10748    #[doc = "\n Retrieve the page ranges.\n"]
10749    pub get_page_ranges: ::std::option::Option<
10750        unsafe extern "C" fn(
10751            self_: *mut _cef_print_settings_t,
10752            rangesCount: *mut usize,
10753            ranges: *mut cef_range_t,
10754        ),
10755    >,
10756    #[doc = "\n Set whether only the selection will be printed.\n"]
10757    pub set_selection_only: ::std::option::Option<
10758        unsafe extern "C" fn(
10759            self_: *mut _cef_print_settings_t,
10760            selection_only: ::std::os::raw::c_int,
10761        ),
10762    >,
10763    #[doc = "\n Returns true (1) if only the selection will be printed.\n"]
10764    pub is_selection_only: ::std::option::Option<
10765        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10766    >,
10767    #[doc = "\n Set whether pages will be collated.\n"]
10768    pub set_collate: ::std::option::Option<
10769        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, collate: ::std::os::raw::c_int),
10770    >,
10771    #[doc = "\n Returns true (1) if pages will be collated.\n"]
10772    pub will_collate: ::std::option::Option<
10773        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10774    >,
10775    #[doc = "\n Set the color model.\n"]
10776    pub set_color_model: ::std::option::Option<
10777        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, model: cef_color_model_t),
10778    >,
10779    #[doc = "\n Get the color model.\n"]
10780    pub get_color_model: ::std::option::Option<
10781        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t,
10782    >,
10783    #[doc = "\n Set the number of copies.\n"]
10784    pub set_copies: ::std::option::Option<
10785        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, copies: ::std::os::raw::c_int),
10786    >,
10787    #[doc = "\n Get the number of copies.\n"]
10788    pub get_copies: ::std::option::Option<
10789        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
10790    >,
10791    #[doc = "\n Set the duplex mode.\n"]
10792    pub set_duplex_mode: ::std::option::Option<
10793        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, mode: cef_duplex_mode_t),
10794    >,
10795    #[doc = "\n Get the duplex mode.\n"]
10796    pub get_duplex_mode: ::std::option::Option<
10797        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t,
10798    >,
10799}
10800#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10801const _: () = {
10802    ["Size of _cef_print_settings_t"][::std::mem::size_of::<_cef_print_settings_t>() - 216usize];
10803    ["Alignment of _cef_print_settings_t"]
10804        [::std::mem::align_of::<_cef_print_settings_t>() - 8usize];
10805    ["Offset of field: _cef_print_settings_t::base"]
10806        [::std::mem::offset_of!(_cef_print_settings_t, base) - 0usize];
10807    ["Offset of field: _cef_print_settings_t::is_valid"]
10808        [::std::mem::offset_of!(_cef_print_settings_t, is_valid) - 40usize];
10809    ["Offset of field: _cef_print_settings_t::is_read_only"]
10810        [::std::mem::offset_of!(_cef_print_settings_t, is_read_only) - 48usize];
10811    ["Offset of field: _cef_print_settings_t::set_orientation"]
10812        [::std::mem::offset_of!(_cef_print_settings_t, set_orientation) - 56usize];
10813    ["Offset of field: _cef_print_settings_t::is_landscape"]
10814        [::std::mem::offset_of!(_cef_print_settings_t, is_landscape) - 64usize];
10815    ["Offset of field: _cef_print_settings_t::set_printer_printable_area"]
10816        [::std::mem::offset_of!(_cef_print_settings_t, set_printer_printable_area) - 72usize];
10817    ["Offset of field: _cef_print_settings_t::set_device_name"]
10818        [::std::mem::offset_of!(_cef_print_settings_t, set_device_name) - 80usize];
10819    ["Offset of field: _cef_print_settings_t::get_device_name"]
10820        [::std::mem::offset_of!(_cef_print_settings_t, get_device_name) - 88usize];
10821    ["Offset of field: _cef_print_settings_t::set_dpi"]
10822        [::std::mem::offset_of!(_cef_print_settings_t, set_dpi) - 96usize];
10823    ["Offset of field: _cef_print_settings_t::get_dpi"]
10824        [::std::mem::offset_of!(_cef_print_settings_t, get_dpi) - 104usize];
10825    ["Offset of field: _cef_print_settings_t::set_page_ranges"]
10826        [::std::mem::offset_of!(_cef_print_settings_t, set_page_ranges) - 112usize];
10827    ["Offset of field: _cef_print_settings_t::get_page_ranges_count"]
10828        [::std::mem::offset_of!(_cef_print_settings_t, get_page_ranges_count) - 120usize];
10829    ["Offset of field: _cef_print_settings_t::get_page_ranges"]
10830        [::std::mem::offset_of!(_cef_print_settings_t, get_page_ranges) - 128usize];
10831    ["Offset of field: _cef_print_settings_t::set_selection_only"]
10832        [::std::mem::offset_of!(_cef_print_settings_t, set_selection_only) - 136usize];
10833    ["Offset of field: _cef_print_settings_t::is_selection_only"]
10834        [::std::mem::offset_of!(_cef_print_settings_t, is_selection_only) - 144usize];
10835    ["Offset of field: _cef_print_settings_t::set_collate"]
10836        [::std::mem::offset_of!(_cef_print_settings_t, set_collate) - 152usize];
10837    ["Offset of field: _cef_print_settings_t::will_collate"]
10838        [::std::mem::offset_of!(_cef_print_settings_t, will_collate) - 160usize];
10839    ["Offset of field: _cef_print_settings_t::set_color_model"]
10840        [::std::mem::offset_of!(_cef_print_settings_t, set_color_model) - 168usize];
10841    ["Offset of field: _cef_print_settings_t::get_color_model"]
10842        [::std::mem::offset_of!(_cef_print_settings_t, get_color_model) - 176usize];
10843    ["Offset of field: _cef_print_settings_t::set_copies"]
10844        [::std::mem::offset_of!(_cef_print_settings_t, set_copies) - 184usize];
10845    ["Offset of field: _cef_print_settings_t::get_copies"]
10846        [::std::mem::offset_of!(_cef_print_settings_t, get_copies) - 192usize];
10847    ["Offset of field: _cef_print_settings_t::set_duplex_mode"]
10848        [::std::mem::offset_of!(_cef_print_settings_t, set_duplex_mode) - 200usize];
10849    ["Offset of field: _cef_print_settings_t::get_duplex_mode"]
10850        [::std::mem::offset_of!(_cef_print_settings_t, get_duplex_mode) - 208usize];
10851};
10852#[doc = "\n Structure representing print settings.\n\n NOTE: This struct is allocated DLL-side.\n"]
10853pub type cef_print_settings_t = _cef_print_settings_t;
10854unsafe extern "C" {
10855    #[doc = "\n Create a new cef_print_settings_t object.\n"]
10856    pub fn cef_print_settings_create() -> *mut cef_print_settings_t;
10857}
10858#[doc = "\n Callback structure for asynchronous continuation of print dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10859#[repr(C)]
10860#[derive(Debug, Copy, Clone)]
10861pub struct _cef_print_dialog_callback_t {
10862    #[doc = "\n Base structure.\n"]
10863    pub base: cef_base_ref_counted_t,
10864    #[doc = "\n Continue printing with the specified |settings|.\n"]
10865    pub cont: ::std::option::Option<
10866        unsafe extern "C" fn(
10867            self_: *mut _cef_print_dialog_callback_t,
10868            settings: *mut _cef_print_settings_t,
10869        ),
10870    >,
10871    #[doc = "\n Cancel the printing.\n"]
10872    pub cancel:
10873        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_dialog_callback_t)>,
10874}
10875#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10876const _: () = {
10877    ["Size of _cef_print_dialog_callback_t"]
10878        [::std::mem::size_of::<_cef_print_dialog_callback_t>() - 56usize];
10879    ["Alignment of _cef_print_dialog_callback_t"]
10880        [::std::mem::align_of::<_cef_print_dialog_callback_t>() - 8usize];
10881    ["Offset of field: _cef_print_dialog_callback_t::base"]
10882        [::std::mem::offset_of!(_cef_print_dialog_callback_t, base) - 0usize];
10883    ["Offset of field: _cef_print_dialog_callback_t::cont"]
10884        [::std::mem::offset_of!(_cef_print_dialog_callback_t, cont) - 40usize];
10885    ["Offset of field: _cef_print_dialog_callback_t::cancel"]
10886        [::std::mem::offset_of!(_cef_print_dialog_callback_t, cancel) - 48usize];
10887};
10888#[doc = "\n Callback structure for asynchronous continuation of print dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10889pub type cef_print_dialog_callback_t = _cef_print_dialog_callback_t;
10890#[doc = "\n Callback structure for asynchronous continuation of print job requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10891#[repr(C)]
10892#[derive(Debug, Copy, Clone)]
10893pub struct _cef_print_job_callback_t {
10894    #[doc = "\n Base structure.\n"]
10895    pub base: cef_base_ref_counted_t,
10896    #[doc = "\n Indicate completion of the print job.\n"]
10897    pub cont: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_job_callback_t)>,
10898}
10899#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10900const _: () = {
10901    ["Size of _cef_print_job_callback_t"]
10902        [::std::mem::size_of::<_cef_print_job_callback_t>() - 48usize];
10903    ["Alignment of _cef_print_job_callback_t"]
10904        [::std::mem::align_of::<_cef_print_job_callback_t>() - 8usize];
10905    ["Offset of field: _cef_print_job_callback_t::base"]
10906        [::std::mem::offset_of!(_cef_print_job_callback_t, base) - 0usize];
10907    ["Offset of field: _cef_print_job_callback_t::cont"]
10908        [::std::mem::offset_of!(_cef_print_job_callback_t, cont) - 40usize];
10909};
10910#[doc = "\n Callback structure for asynchronous continuation of print job requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10911pub type cef_print_job_callback_t = _cef_print_job_callback_t;
10912#[doc = "\n Implement this structure to handle printing on Linux. Each browser will have\n only one print job in progress at a time. The functions of this structure\n will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10913#[repr(C)]
10914#[derive(Debug, Copy, Clone)]
10915pub struct _cef_print_handler_t {
10916    #[doc = "\n Base structure.\n"]
10917    pub base: cef_base_ref_counted_t,
10918    #[doc = "\n Called when printing has started for the specified |browser|. This\n function will be called before the other OnPrint*() functions and\n irrespective of how printing was initiated (e.g.\n cef_browser_host_t::print(), JavaScript window.print() or PDF extension\n print button).\n"]
10919    pub on_print_start: ::std::option::Option<
10920        unsafe extern "C" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t),
10921    >,
10922    #[doc = "\n Synchronize |settings| with client state. If |get_defaults| is true (1)\n then populate |settings| with the default print settings. Do not keep a\n reference to |settings| outside of this callback.\n"]
10923    pub on_print_settings: ::std::option::Option<
10924        unsafe extern "C" fn(
10925            self_: *mut _cef_print_handler_t,
10926            browser: *mut _cef_browser_t,
10927            settings: *mut _cef_print_settings_t,
10928            get_defaults: ::std::os::raw::c_int,
10929        ),
10930    >,
10931    #[doc = "\n Show the print dialog. Execute |callback| once the dialog is dismissed.\n Return true (1) if the dialog will be displayed or false (0) to cancel the\n printing immediately.\n"]
10932    pub on_print_dialog: ::std::option::Option<
10933        unsafe extern "C" fn(
10934            self_: *mut _cef_print_handler_t,
10935            browser: *mut _cef_browser_t,
10936            has_selection: ::std::os::raw::c_int,
10937            callback: *mut _cef_print_dialog_callback_t,
10938        ) -> ::std::os::raw::c_int,
10939    >,
10940    #[doc = "\n Send the print job to the printer. Execute |callback| once the job is\n completed. Return true (1) if the job will proceed or false (0) to cancel\n the job immediately.\n"]
10941    pub on_print_job: ::std::option::Option<
10942        unsafe extern "C" fn(
10943            self_: *mut _cef_print_handler_t,
10944            browser: *mut _cef_browser_t,
10945            document_name: *const cef_string_t,
10946            pdf_file_path: *const cef_string_t,
10947            callback: *mut _cef_print_job_callback_t,
10948        ) -> ::std::os::raw::c_int,
10949    >,
10950    #[doc = "\n Reset client state related to printing.\n"]
10951    pub on_print_reset: ::std::option::Option<
10952        unsafe extern "C" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t),
10953    >,
10954    #[doc = "\n Return the PDF paper size in device units. Used in combination with\n cef_browser_host_t::print_to_pdf().\n"]
10955    pub get_pdf_paper_size: ::std::option::Option<
10956        unsafe extern "C" fn(
10957            self_: *mut _cef_print_handler_t,
10958            browser: *mut _cef_browser_t,
10959            device_units_per_inch: ::std::os::raw::c_int,
10960        ) -> cef_size_t,
10961    >,
10962}
10963#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10964const _: () = {
10965    ["Size of _cef_print_handler_t"][::std::mem::size_of::<_cef_print_handler_t>() - 88usize];
10966    ["Alignment of _cef_print_handler_t"][::std::mem::align_of::<_cef_print_handler_t>() - 8usize];
10967    ["Offset of field: _cef_print_handler_t::base"]
10968        [::std::mem::offset_of!(_cef_print_handler_t, base) - 0usize];
10969    ["Offset of field: _cef_print_handler_t::on_print_start"]
10970        [::std::mem::offset_of!(_cef_print_handler_t, on_print_start) - 40usize];
10971    ["Offset of field: _cef_print_handler_t::on_print_settings"]
10972        [::std::mem::offset_of!(_cef_print_handler_t, on_print_settings) - 48usize];
10973    ["Offset of field: _cef_print_handler_t::on_print_dialog"]
10974        [::std::mem::offset_of!(_cef_print_handler_t, on_print_dialog) - 56usize];
10975    ["Offset of field: _cef_print_handler_t::on_print_job"]
10976        [::std::mem::offset_of!(_cef_print_handler_t, on_print_job) - 64usize];
10977    ["Offset of field: _cef_print_handler_t::on_print_reset"]
10978        [::std::mem::offset_of!(_cef_print_handler_t, on_print_reset) - 72usize];
10979    ["Offset of field: _cef_print_handler_t::get_pdf_paper_size"]
10980        [::std::mem::offset_of!(_cef_print_handler_t, get_pdf_paper_size) - 80usize];
10981};
10982#[doc = "\n Implement this structure to handle printing on Linux. Each browser will have\n only one print job in progress at a time. The functions of this structure\n will be called on the browser process UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10983pub type cef_print_handler_t = _cef_print_handler_t;
10984#[doc = "\n Implement this structure to receive accessibility notification when\n accessibility events have been registered. The functions of this structure\n will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
10985#[repr(C)]
10986#[derive(Debug, Copy, Clone)]
10987pub struct _cef_accessibility_handler_t {
10988    #[doc = "\n Base structure.\n"]
10989    pub base: cef_base_ref_counted_t,
10990    #[doc = "\n Called after renderer process sends accessibility tree changes to the\n browser process.\n"]
10991    pub on_accessibility_tree_change: ::std::option::Option<
10992        unsafe extern "C" fn(self_: *mut _cef_accessibility_handler_t, value: *mut _cef_value_t),
10993    >,
10994    #[doc = "\n Called after renderer process sends accessibility location changes to the\n browser process.\n"]
10995    pub on_accessibility_location_change: ::std::option::Option<
10996        unsafe extern "C" fn(self_: *mut _cef_accessibility_handler_t, value: *mut _cef_value_t),
10997    >,
10998}
10999#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11000const _: () = {
11001    ["Size of _cef_accessibility_handler_t"]
11002        [::std::mem::size_of::<_cef_accessibility_handler_t>() - 56usize];
11003    ["Alignment of _cef_accessibility_handler_t"]
11004        [::std::mem::align_of::<_cef_accessibility_handler_t>() - 8usize];
11005    ["Offset of field: _cef_accessibility_handler_t::base"]
11006        [::std::mem::offset_of!(_cef_accessibility_handler_t, base) - 0usize];
11007    ["Offset of field: _cef_accessibility_handler_t::on_accessibility_tree_change"][::std::mem::offset_of!(
11008        _cef_accessibility_handler_t,
11009        on_accessibility_tree_change
11010    ) - 40usize];
11011    ["Offset of field: _cef_accessibility_handler_t::on_accessibility_location_change"][::std::mem::offset_of!(
11012        _cef_accessibility_handler_t,
11013        on_accessibility_location_change
11014    )
11015        - 48usize];
11016};
11017#[doc = "\n Implement this structure to receive accessibility notification when\n accessibility events have been registered. The functions of this structure\n will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
11018pub type cef_accessibility_handler_t = _cef_accessibility_handler_t;
11019#[doc = "\n Implement this structure to handle events when window rendering is disabled.\n The functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
11020#[repr(C)]
11021#[derive(Debug, Copy, Clone)]
11022pub struct _cef_render_handler_t {
11023    #[doc = "\n Base structure.\n"]
11024    pub base: cef_base_ref_counted_t,
11025    #[doc = "\n Return the handler for accessibility notifications. If no handler is\n provided the default implementation will be used.\n"]
11026    pub get_accessibility_handler: ::std::option::Option<
11027        unsafe extern "C" fn(
11028            self_: *mut _cef_render_handler_t,
11029        ) -> *mut _cef_accessibility_handler_t,
11030    >,
11031    #[doc = "\n Called to retrieve the root window rectangle in screen DIP coordinates.\n Return true (1) if the rectangle was provided. If this function returns\n false (0) the rectangle from GetViewRect will be used.\n"]
11032    pub get_root_screen_rect: ::std::option::Option<
11033        unsafe extern "C" fn(
11034            self_: *mut _cef_render_handler_t,
11035            browser: *mut _cef_browser_t,
11036            rect: *mut cef_rect_t,
11037        ) -> ::std::os::raw::c_int,
11038    >,
11039    #[doc = "\n Called to retrieve the view rectangle in screen DIP coordinates. This\n function must always provide a non-NULL rectangle.\n"]
11040    pub get_view_rect: ::std::option::Option<
11041        unsafe extern "C" fn(
11042            self_: *mut _cef_render_handler_t,
11043            browser: *mut _cef_browser_t,
11044            rect: *mut cef_rect_t,
11045        ),
11046    >,
11047    #[doc = "\n Called to retrieve the translation from view DIP coordinates to screen\n coordinates. Windows/Linux should provide screen device (pixel)\n coordinates and MacOS should provide screen DIP coordinates. Return true\n (1) if the requested coordinates were provided.\n"]
11048    pub get_screen_point: ::std::option::Option<
11049        unsafe extern "C" fn(
11050            self_: *mut _cef_render_handler_t,
11051            browser: *mut _cef_browser_t,
11052            viewX: ::std::os::raw::c_int,
11053            viewY: ::std::os::raw::c_int,
11054            screenX: *mut ::std::os::raw::c_int,
11055            screenY: *mut ::std::os::raw::c_int,
11056        ) -> ::std::os::raw::c_int,
11057    >,
11058    #[doc = "\n Called to allow the client to fill in the CefScreenInfo object with\n appropriate values. Return true (1) if the |screen_info| structure has\n been modified.\n\n If the screen info rectangle is left NULL the rectangle from GetViewRect\n will be used. If the rectangle is still NULL or invalid popups may not be\n drawn correctly.\n"]
11059    pub get_screen_info: ::std::option::Option<
11060        unsafe extern "C" fn(
11061            self_: *mut _cef_render_handler_t,
11062            browser: *mut _cef_browser_t,
11063            screen_info: *mut cef_screen_info_t,
11064        ) -> ::std::os::raw::c_int,
11065    >,
11066    #[doc = "\n Called when the browser wants to show or hide the popup widget. The popup\n should be shown if |show| is true (1) and hidden if |show| is false (0).\n"]
11067    pub on_popup_show: ::std::option::Option<
11068        unsafe extern "C" fn(
11069            self_: *mut _cef_render_handler_t,
11070            browser: *mut _cef_browser_t,
11071            show: ::std::os::raw::c_int,
11072        ),
11073    >,
11074    #[doc = "\n Called when the browser wants to move or resize the popup widget. |rect|\n contains the new location and size in view coordinates.\n"]
11075    pub on_popup_size: ::std::option::Option<
11076        unsafe extern "C" fn(
11077            self_: *mut _cef_render_handler_t,
11078            browser: *mut _cef_browser_t,
11079            rect: *const cef_rect_t,
11080        ),
11081    >,
11082    #[doc = "\n Called when an element should be painted. Pixel values passed to this\n function are scaled relative to view coordinates based on the value of\n CefScreenInfo.device_scale_factor returned from GetScreenInfo. |type|\n indicates whether the element is the view or the popup widget. |buffer|\n contains the pixel data for the whole image. |dirtyRects| contains the set\n of rectangles in pixel coordinates that need to be repainted. |buffer|\n will be |width|*|height|*4 bytes in size and represents a BGRA image with\n an upper-left origin. This function is only called when\n cef_window_tInfo::shared_texture_enabled is set to false (0).\n"]
11083    pub on_paint: ::std::option::Option<
11084        unsafe extern "C" fn(
11085            self_: *mut _cef_render_handler_t,
11086            browser: *mut _cef_browser_t,
11087            type_: cef_paint_element_type_t,
11088            dirtyRectsCount: usize,
11089            dirtyRects: *const cef_rect_t,
11090            buffer: *const ::std::os::raw::c_void,
11091            width: ::std::os::raw::c_int,
11092            height: ::std::os::raw::c_int,
11093        ),
11094    >,
11095    #[doc = "\n Called when an element has been rendered to the shared texture handle.\n |type| indicates whether the element is the view or the popup widget.\n |dirtyRects| contains the set of rectangles in pixel coordinates that need\n to be repainted. |info| contains the shared handle; on Windows it is a\n HANDLE to a texture that can be opened with D3D11 OpenSharedResource, on\n macOS it is an IOSurface pointer that can be opened with Metal or OpenGL,\n and on Linux it contains several planes, each with an fd to the underlying\n system native buffer.\n\n The underlying implementation uses a pool to deliver frames. As a result,\n the handle may differ every frame depending on how many frames are in-\n progress. The handle's resource cannot be cached and cannot be accessed\n outside of this callback. It should be reopened each time this callback is\n executed and the contents should be copied to a texture owned by the\n client application. The contents of |info| will be released back to the\n pool after this callback returns.\n"]
11096    pub on_accelerated_paint: ::std::option::Option<
11097        unsafe extern "C" fn(
11098            self_: *mut _cef_render_handler_t,
11099            browser: *mut _cef_browser_t,
11100            type_: cef_paint_element_type_t,
11101            dirtyRectsCount: usize,
11102            dirtyRects: *const cef_rect_t,
11103            info: *const cef_accelerated_paint_info_t,
11104        ),
11105    >,
11106    #[doc = "\n Called to retrieve the size of the touch handle for the specified\n |orientation|.\n"]
11107    pub get_touch_handle_size: ::std::option::Option<
11108        unsafe extern "C" fn(
11109            self_: *mut _cef_render_handler_t,
11110            browser: *mut _cef_browser_t,
11111            orientation: cef_horizontal_alignment_t,
11112            size: *mut cef_size_t,
11113        ),
11114    >,
11115    #[doc = "\n Called when touch handle state is updated. The client is responsible for\n rendering the touch handles.\n"]
11116    pub on_touch_handle_state_changed: ::std::option::Option<
11117        unsafe extern "C" fn(
11118            self_: *mut _cef_render_handler_t,
11119            browser: *mut _cef_browser_t,
11120            state: *const cef_touch_handle_state_t,
11121        ),
11122    >,
11123    #[doc = "\n Called when the user starts dragging content in the web view. Contextual\n information about the dragged content is supplied by |drag_data|. (|x|,\n |y|) is the drag start location in screen coordinates. OS APIs that run a\n system message loop may be used within the StartDragging call.\n\n Return false (0) to abort the drag operation. Don't call any of\n cef_browser_host_t::DragSource*Ended* functions after returning false (0).\n\n Return true (1) to handle the drag operation. Call\n cef_browser_host_t::DragSourceEndedAt and DragSourceSystemDragEnded either\n synchronously or asynchronously to inform the web view that the drag\n operation has ended.\n"]
11124    pub start_dragging: ::std::option::Option<
11125        unsafe extern "C" fn(
11126            self_: *mut _cef_render_handler_t,
11127            browser: *mut _cef_browser_t,
11128            drag_data: *mut _cef_drag_data_t,
11129            allowed_ops: cef_drag_operations_mask_t,
11130            x: ::std::os::raw::c_int,
11131            y: ::std::os::raw::c_int,
11132        ) -> ::std::os::raw::c_int,
11133    >,
11134    #[doc = "\n Called when the web view wants to update the mouse cursor during a drag &\n drop operation. |operation| describes the allowed operation (none, move,\n copy, link).\n"]
11135    pub update_drag_cursor: ::std::option::Option<
11136        unsafe extern "C" fn(
11137            self_: *mut _cef_render_handler_t,
11138            browser: *mut _cef_browser_t,
11139            operation: cef_drag_operations_mask_t,
11140        ),
11141    >,
11142    #[doc = "\n Called when the scroll offset has changed.\n"]
11143    pub on_scroll_offset_changed: ::std::option::Option<
11144        unsafe extern "C" fn(
11145            self_: *mut _cef_render_handler_t,
11146            browser: *mut _cef_browser_t,
11147            x: f64,
11148            y: f64,
11149        ),
11150    >,
11151    #[doc = "\n Called when the IME composition range has changed. |selected_range| is the\n range of characters that have been selected. |character_bounds| is the\n bounds of each character in view coordinates.\n"]
11152    pub on_ime_composition_range_changed: ::std::option::Option<
11153        unsafe extern "C" fn(
11154            self_: *mut _cef_render_handler_t,
11155            browser: *mut _cef_browser_t,
11156            selected_range: *const cef_range_t,
11157            character_boundsCount: usize,
11158            character_bounds: *const cef_rect_t,
11159        ),
11160    >,
11161    #[doc = "\n Called when text selection has changed for the specified |browser|.\n |selected_text| is the currently selected text and |selected_range| is the\n character range.\n"]
11162    pub on_text_selection_changed: ::std::option::Option<
11163        unsafe extern "C" fn(
11164            self_: *mut _cef_render_handler_t,
11165            browser: *mut _cef_browser_t,
11166            selected_text: *const cef_string_t,
11167            selected_range: *const cef_range_t,
11168        ),
11169    >,
11170    #[doc = "\n Called when an on-screen keyboard should be shown or hidden for the\n specified |browser|. |input_mode| specifies what kind of keyboard should\n be opened. If |input_mode| is CEF_TEXT_INPUT_MODE_NONE, any existing\n keyboard for this browser should be hidden.\n"]
11171    pub on_virtual_keyboard_requested: ::std::option::Option<
11172        unsafe extern "C" fn(
11173            self_: *mut _cef_render_handler_t,
11174            browser: *mut _cef_browser_t,
11175            input_mode: cef_text_input_mode_t,
11176        ),
11177    >,
11178}
11179#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11180const _: () = {
11181    ["Size of _cef_render_handler_t"][::std::mem::size_of::<_cef_render_handler_t>() - 176usize];
11182    ["Alignment of _cef_render_handler_t"]
11183        [::std::mem::align_of::<_cef_render_handler_t>() - 8usize];
11184    ["Offset of field: _cef_render_handler_t::base"]
11185        [::std::mem::offset_of!(_cef_render_handler_t, base) - 0usize];
11186    ["Offset of field: _cef_render_handler_t::get_accessibility_handler"]
11187        [::std::mem::offset_of!(_cef_render_handler_t, get_accessibility_handler) - 40usize];
11188    ["Offset of field: _cef_render_handler_t::get_root_screen_rect"]
11189        [::std::mem::offset_of!(_cef_render_handler_t, get_root_screen_rect) - 48usize];
11190    ["Offset of field: _cef_render_handler_t::get_view_rect"]
11191        [::std::mem::offset_of!(_cef_render_handler_t, get_view_rect) - 56usize];
11192    ["Offset of field: _cef_render_handler_t::get_screen_point"]
11193        [::std::mem::offset_of!(_cef_render_handler_t, get_screen_point) - 64usize];
11194    ["Offset of field: _cef_render_handler_t::get_screen_info"]
11195        [::std::mem::offset_of!(_cef_render_handler_t, get_screen_info) - 72usize];
11196    ["Offset of field: _cef_render_handler_t::on_popup_show"]
11197        [::std::mem::offset_of!(_cef_render_handler_t, on_popup_show) - 80usize];
11198    ["Offset of field: _cef_render_handler_t::on_popup_size"]
11199        [::std::mem::offset_of!(_cef_render_handler_t, on_popup_size) - 88usize];
11200    ["Offset of field: _cef_render_handler_t::on_paint"]
11201        [::std::mem::offset_of!(_cef_render_handler_t, on_paint) - 96usize];
11202    ["Offset of field: _cef_render_handler_t::on_accelerated_paint"]
11203        [::std::mem::offset_of!(_cef_render_handler_t, on_accelerated_paint) - 104usize];
11204    ["Offset of field: _cef_render_handler_t::get_touch_handle_size"]
11205        [::std::mem::offset_of!(_cef_render_handler_t, get_touch_handle_size) - 112usize];
11206    ["Offset of field: _cef_render_handler_t::on_touch_handle_state_changed"]
11207        [::std::mem::offset_of!(_cef_render_handler_t, on_touch_handle_state_changed) - 120usize];
11208    ["Offset of field: _cef_render_handler_t::start_dragging"]
11209        [::std::mem::offset_of!(_cef_render_handler_t, start_dragging) - 128usize];
11210    ["Offset of field: _cef_render_handler_t::update_drag_cursor"]
11211        [::std::mem::offset_of!(_cef_render_handler_t, update_drag_cursor) - 136usize];
11212    ["Offset of field: _cef_render_handler_t::on_scroll_offset_changed"]
11213        [::std::mem::offset_of!(_cef_render_handler_t, on_scroll_offset_changed) - 144usize];
11214    ["Offset of field: _cef_render_handler_t::on_ime_composition_range_changed"][::std::mem::offset_of!(
11215        _cef_render_handler_t,
11216        on_ime_composition_range_changed
11217    ) - 152usize];
11218    ["Offset of field: _cef_render_handler_t::on_text_selection_changed"]
11219        [::std::mem::offset_of!(_cef_render_handler_t, on_text_selection_changed) - 160usize];
11220    ["Offset of field: _cef_render_handler_t::on_virtual_keyboard_requested"]
11221        [::std::mem::offset_of!(_cef_render_handler_t, on_virtual_keyboard_requested) - 168usize];
11222};
11223#[doc = "\n Implement this structure to handle events when window rendering is disabled.\n The functions of this structure will be called on the UI thread.\n\n NOTE: This struct is allocated client-side.\n"]
11224pub type cef_render_handler_t = _cef_render_handler_t;
11225#[doc = "\n Callback structure used for asynchronous continuation of authentication\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11226#[repr(C)]
11227#[derive(Debug, Copy, Clone)]
11228pub struct _cef_auth_callback_t {
11229    #[doc = "\n Base structure.\n"]
11230    pub base: cef_base_ref_counted_t,
11231    #[doc = "\n Continue the authentication request.\n"]
11232    pub cont: ::std::option::Option<
11233        unsafe extern "C" fn(
11234            self_: *mut _cef_auth_callback_t,
11235            username: *const cef_string_t,
11236            password: *const cef_string_t,
11237        ),
11238    >,
11239    #[doc = "\n Cancel the authentication request.\n"]
11240    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_auth_callback_t)>,
11241}
11242#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11243const _: () = {
11244    ["Size of _cef_auth_callback_t"][::std::mem::size_of::<_cef_auth_callback_t>() - 56usize];
11245    ["Alignment of _cef_auth_callback_t"][::std::mem::align_of::<_cef_auth_callback_t>() - 8usize];
11246    ["Offset of field: _cef_auth_callback_t::base"]
11247        [::std::mem::offset_of!(_cef_auth_callback_t, base) - 0usize];
11248    ["Offset of field: _cef_auth_callback_t::cont"]
11249        [::std::mem::offset_of!(_cef_auth_callback_t, cont) - 40usize];
11250    ["Offset of field: _cef_auth_callback_t::cancel"]
11251        [::std::mem::offset_of!(_cef_auth_callback_t, cancel) - 48usize];
11252};
11253#[doc = "\n Callback structure used for asynchronous continuation of authentication\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11254pub type cef_auth_callback_t = _cef_auth_callback_t;
11255#[doc = "\n Structure used to represent a web response. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
11256#[repr(C)]
11257#[derive(Debug, Copy, Clone)]
11258pub struct _cef_response_t {
11259    #[doc = "\n Base structure.\n"]
11260    pub base: cef_base_ref_counted_t,
11261    #[doc = "\n Returns true (1) if this object is read-only.\n"]
11262    pub is_read_only: ::std::option::Option<
11263        unsafe extern "C" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int,
11264    >,
11265    #[doc = "\n Get the response error code. Returns ERR_NONE if there was no error.\n"]
11266    pub get_error:
11267        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_errorcode_t>,
11268    #[doc = "\n Set the response error code. This can be used by custom scheme handlers to\n return errors during initial request processing.\n"]
11269    pub set_error: ::std::option::Option<
11270        unsafe extern "C" fn(self_: *mut _cef_response_t, error: cef_errorcode_t),
11271    >,
11272    #[doc = "\n Get the response status code.\n"]
11273    pub get_status: ::std::option::Option<
11274        unsafe extern "C" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int,
11275    >,
11276    #[doc = "\n Set the response status code.\n"]
11277    pub set_status: ::std::option::Option<
11278        unsafe extern "C" fn(self_: *mut _cef_response_t, status: ::std::os::raw::c_int),
11279    >,
11280    #[doc = "\n Get the response status text.\n"]
11281    pub get_status_text: ::std::option::Option<
11282        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11283    >,
11284    #[doc = "\n Set the response status text.\n"]
11285    pub set_status_text: ::std::option::Option<
11286        unsafe extern "C" fn(self_: *mut _cef_response_t, statusText: *const cef_string_t),
11287    >,
11288    #[doc = "\n Get the response mime type.\n"]
11289    pub get_mime_type: ::std::option::Option<
11290        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11291    >,
11292    #[doc = "\n Set the response mime type.\n"]
11293    pub set_mime_type: ::std::option::Option<
11294        unsafe extern "C" fn(self_: *mut _cef_response_t, mimeType: *const cef_string_t),
11295    >,
11296    #[doc = "\n Get the response charset.\n"]
11297    pub get_charset: ::std::option::Option<
11298        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11299    >,
11300    #[doc = "\n Set the response charset.\n"]
11301    pub set_charset: ::std::option::Option<
11302        unsafe extern "C" fn(self_: *mut _cef_response_t, charset: *const cef_string_t),
11303    >,
11304    #[doc = "\n Get the value for the specified response header field.\n"]
11305    pub get_header_by_name: ::std::option::Option<
11306        unsafe extern "C" fn(
11307            self_: *mut _cef_response_t,
11308            name: *const cef_string_t,
11309        ) -> cef_string_userfree_t,
11310    >,
11311    #[doc = "\n Set the header |name| to |value|. If |overwrite| is true (1) any existing\n values will be replaced with the new value. If |overwrite| is false (0)\n any existing values will not be overwritten.\n"]
11312    pub set_header_by_name: ::std::option::Option<
11313        unsafe extern "C" fn(
11314            self_: *mut _cef_response_t,
11315            name: *const cef_string_t,
11316            value: *const cef_string_t,
11317            overwrite: ::std::os::raw::c_int,
11318        ),
11319    >,
11320    #[doc = "\n Get all response header fields.\n"]
11321    pub get_header_map: ::std::option::Option<
11322        unsafe extern "C" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t),
11323    >,
11324    #[doc = "\n Set all response header fields.\n"]
11325    pub set_header_map: ::std::option::Option<
11326        unsafe extern "C" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t),
11327    >,
11328    #[doc = "\n Get the resolved URL after redirects or changed as a result of HSTS.\n"]
11329    pub get_url: ::std::option::Option<
11330        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11331    >,
11332    #[doc = "\n Set the resolved URL after redirects or changed as a result of HSTS.\n"]
11333    pub set_url: ::std::option::Option<
11334        unsafe extern "C" fn(self_: *mut _cef_response_t, url: *const cef_string_t),
11335    >,
11336}
11337#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11338const _: () = {
11339    ["Size of _cef_response_t"][::std::mem::size_of::<_cef_response_t>() - 176usize];
11340    ["Alignment of _cef_response_t"][::std::mem::align_of::<_cef_response_t>() - 8usize];
11341    ["Offset of field: _cef_response_t::base"]
11342        [::std::mem::offset_of!(_cef_response_t, base) - 0usize];
11343    ["Offset of field: _cef_response_t::is_read_only"]
11344        [::std::mem::offset_of!(_cef_response_t, is_read_only) - 40usize];
11345    ["Offset of field: _cef_response_t::get_error"]
11346        [::std::mem::offset_of!(_cef_response_t, get_error) - 48usize];
11347    ["Offset of field: _cef_response_t::set_error"]
11348        [::std::mem::offset_of!(_cef_response_t, set_error) - 56usize];
11349    ["Offset of field: _cef_response_t::get_status"]
11350        [::std::mem::offset_of!(_cef_response_t, get_status) - 64usize];
11351    ["Offset of field: _cef_response_t::set_status"]
11352        [::std::mem::offset_of!(_cef_response_t, set_status) - 72usize];
11353    ["Offset of field: _cef_response_t::get_status_text"]
11354        [::std::mem::offset_of!(_cef_response_t, get_status_text) - 80usize];
11355    ["Offset of field: _cef_response_t::set_status_text"]
11356        [::std::mem::offset_of!(_cef_response_t, set_status_text) - 88usize];
11357    ["Offset of field: _cef_response_t::get_mime_type"]
11358        [::std::mem::offset_of!(_cef_response_t, get_mime_type) - 96usize];
11359    ["Offset of field: _cef_response_t::set_mime_type"]
11360        [::std::mem::offset_of!(_cef_response_t, set_mime_type) - 104usize];
11361    ["Offset of field: _cef_response_t::get_charset"]
11362        [::std::mem::offset_of!(_cef_response_t, get_charset) - 112usize];
11363    ["Offset of field: _cef_response_t::set_charset"]
11364        [::std::mem::offset_of!(_cef_response_t, set_charset) - 120usize];
11365    ["Offset of field: _cef_response_t::get_header_by_name"]
11366        [::std::mem::offset_of!(_cef_response_t, get_header_by_name) - 128usize];
11367    ["Offset of field: _cef_response_t::set_header_by_name"]
11368        [::std::mem::offset_of!(_cef_response_t, set_header_by_name) - 136usize];
11369    ["Offset of field: _cef_response_t::get_header_map"]
11370        [::std::mem::offset_of!(_cef_response_t, get_header_map) - 144usize];
11371    ["Offset of field: _cef_response_t::set_header_map"]
11372        [::std::mem::offset_of!(_cef_response_t, set_header_map) - 152usize];
11373    ["Offset of field: _cef_response_t::get_url"]
11374        [::std::mem::offset_of!(_cef_response_t, get_url) - 160usize];
11375    ["Offset of field: _cef_response_t::set_url"]
11376        [::std::mem::offset_of!(_cef_response_t, set_url) - 168usize];
11377};
11378#[doc = "\n Structure used to represent a web response. The functions of this structure\n may be called on any thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
11379pub type cef_response_t = _cef_response_t;
11380unsafe extern "C" {
11381    #[doc = "\n Create a new cef_response_t object.\n"]
11382    pub fn cef_response_create() -> *mut cef_response_t;
11383}
11384#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::skip().\n\n NOTE: This struct is allocated DLL-side.\n"]
11385#[repr(C)]
11386#[derive(Debug, Copy, Clone)]
11387pub struct _cef_resource_skip_callback_t {
11388    #[doc = "\n Base structure.\n"]
11389    pub base: cef_base_ref_counted_t,
11390    #[doc = "\n Callback for asynchronous continuation of skip(). If |bytes_skipped| > 0\n then either skip() will be called again until the requested number of\n bytes have been skipped or the request will proceed. If |bytes_skipped| <=\n 0 the request will fail with ERR_REQUEST_RANGE_NOT_SATISFIABLE.\n"]
11391    pub cont: ::std::option::Option<
11392        unsafe extern "C" fn(self_: *mut _cef_resource_skip_callback_t, bytes_skipped: i64),
11393    >,
11394}
11395#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11396const _: () = {
11397    ["Size of _cef_resource_skip_callback_t"]
11398        [::std::mem::size_of::<_cef_resource_skip_callback_t>() - 48usize];
11399    ["Alignment of _cef_resource_skip_callback_t"]
11400        [::std::mem::align_of::<_cef_resource_skip_callback_t>() - 8usize];
11401    ["Offset of field: _cef_resource_skip_callback_t::base"]
11402        [::std::mem::offset_of!(_cef_resource_skip_callback_t, base) - 0usize];
11403    ["Offset of field: _cef_resource_skip_callback_t::cont"]
11404        [::std::mem::offset_of!(_cef_resource_skip_callback_t, cont) - 40usize];
11405};
11406#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::skip().\n\n NOTE: This struct is allocated DLL-side.\n"]
11407pub type cef_resource_skip_callback_t = _cef_resource_skip_callback_t;
11408#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::read().\n\n NOTE: This struct is allocated DLL-side.\n"]
11409#[repr(C)]
11410#[derive(Debug, Copy, Clone)]
11411pub struct _cef_resource_read_callback_t {
11412    #[doc = "\n Base structure.\n"]
11413    pub base: cef_base_ref_counted_t,
11414    #[doc = "\n Callback for asynchronous continuation of read(). If |bytes_read| == 0 the\n response will be considered complete. If |bytes_read| > 0 then read() will\n be called again until the request is complete (based on either the result\n or the expected content length). If |bytes_read| < 0 then the request will\n fail and the |bytes_read| value will be treated as the error code.\n"]
11415    pub cont: ::std::option::Option<
11416        unsafe extern "C" fn(
11417            self_: *mut _cef_resource_read_callback_t,
11418            bytes_read: ::std::os::raw::c_int,
11419        ),
11420    >,
11421}
11422#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11423const _: () = {
11424    ["Size of _cef_resource_read_callback_t"]
11425        [::std::mem::size_of::<_cef_resource_read_callback_t>() - 48usize];
11426    ["Alignment of _cef_resource_read_callback_t"]
11427        [::std::mem::align_of::<_cef_resource_read_callback_t>() - 8usize];
11428    ["Offset of field: _cef_resource_read_callback_t::base"]
11429        [::std::mem::offset_of!(_cef_resource_read_callback_t, base) - 0usize];
11430    ["Offset of field: _cef_resource_read_callback_t::cont"]
11431        [::std::mem::offset_of!(_cef_resource_read_callback_t, cont) - 40usize];
11432};
11433#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::read().\n\n NOTE: This struct is allocated DLL-side.\n"]
11434pub type cef_resource_read_callback_t = _cef_resource_read_callback_t;
11435#[doc = "\n Structure used to implement a custom request handler structure. The\n functions of this structure will be called on the IO thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11436#[repr(C)]
11437#[derive(Debug, Copy, Clone)]
11438pub struct _cef_resource_handler_t {
11439    #[doc = "\n Base structure.\n"]
11440    pub base: cef_base_ref_counted_t,
11441    #[doc = "\n Open the response stream. To handle the request immediately set\n |handle_request| to true (1) and return true (1). To decide at a later\n time set |handle_request| to false (0), return true (1), and execute\n |callback| to continue or cancel the request. To cancel the request\n immediately set |handle_request| to true (1) and return false (0). This\n function will be called in sequence but not from a dedicated thread. For\n backwards compatibility set |handle_request| to false (0) and return false\n (0) and the ProcessRequest function will be called.\n"]
11442    pub open: ::std::option::Option<
11443        unsafe extern "C" fn(
11444            self_: *mut _cef_resource_handler_t,
11445            request: *mut _cef_request_t,
11446            handle_request: *mut ::std::os::raw::c_int,
11447            callback: *mut _cef_callback_t,
11448        ) -> ::std::os::raw::c_int,
11449    >,
11450    #[doc = "\n Begin processing the request. To handle the request return true (1) and\n call cef_callback_t::cont() once the response header information is\n available (cef_callback_t::cont() can also be called from inside this\n function if header information is available immediately). To cancel the\n request return false (0).\n\n WARNING: This function is deprecated. Use Open instead.\n"]
11451    pub process_request: ::std::option::Option<
11452        unsafe extern "C" fn(
11453            self_: *mut _cef_resource_handler_t,
11454            request: *mut _cef_request_t,
11455            callback: *mut _cef_callback_t,
11456        ) -> ::std::os::raw::c_int,
11457    >,
11458    #[doc = "\n Retrieve response header information. If the response length is not known\n set |response_length| to -1 and read_response() will be called until it\n returns false (0). If the response length is known set |response_length|\n to a positive value and read_response() will be called until it returns\n false (0) or the specified number of bytes have been read. Use the\n |response| object to set the mime type, http status code and other\n optional header values. To redirect the request to a new URL set\n |redirectUrl| to the new URL. |redirectUrl| can be either a relative or\n fully qualified URL. It is also possible to set |response| to a redirect\n http status code and pass the new URL via a Location header. Likewise with\n |redirectUrl| it is valid to set a relative or fully qualified URL as the\n Location header value. If an error occured while setting up the request\n you can call set_error() on |response| to indicate the error condition.\n"]
11459    pub get_response_headers: ::std::option::Option<
11460        unsafe extern "C" fn(
11461            self_: *mut _cef_resource_handler_t,
11462            response: *mut _cef_response_t,
11463            response_length: *mut i64,
11464            redirectUrl: *mut cef_string_t,
11465        ),
11466    >,
11467    #[doc = "\n Skip response data when requested by a Range header. Skip over and discard\n |bytes_to_skip| bytes of response data. If data is available immediately\n set |bytes_skipped| to the number of bytes skipped and return true (1). To\n read the data at a later time set |bytes_skipped| to 0, return true (1)\n and execute |callback| when the data is available. To indicate failure set\n |bytes_skipped| to < 0 (e.g. -2 for ERR_FAILED) and return false (0). This\n function will be called in sequence but not from a dedicated thread.\n"]
11468    pub skip: ::std::option::Option<
11469        unsafe extern "C" fn(
11470            self_: *mut _cef_resource_handler_t,
11471            bytes_to_skip: i64,
11472            bytes_skipped: *mut i64,
11473            callback: *mut _cef_resource_skip_callback_t,
11474        ) -> ::std::os::raw::c_int,
11475    >,
11476    #[doc = "\n Read response data. If data is available immediately copy up to\n |bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of\n bytes copied, and return true (1). To read the data at a later time keep a\n pointer to |data_out|, set |bytes_read| to 0, return true (1) and execute\n |callback| when the data is available (|data_out| will remain valid until\n the callback is executed). To indicate response completion set\n |bytes_read| to 0 and return false (0). To indicate failure set\n |bytes_read| to < 0 (e.g. -2 for ERR_FAILED) and return false (0). This\n function will be called in sequence but not from a dedicated thread. For\n backwards compatibility set |bytes_read| to -1 and return false (0) and\n the ReadResponse function will be called.\n"]
11477    pub read: ::std::option::Option<
11478        unsafe extern "C" fn(
11479            self_: *mut _cef_resource_handler_t,
11480            data_out: *mut ::std::os::raw::c_void,
11481            bytes_to_read: ::std::os::raw::c_int,
11482            bytes_read: *mut ::std::os::raw::c_int,
11483            callback: *mut _cef_resource_read_callback_t,
11484        ) -> ::std::os::raw::c_int,
11485    >,
11486    #[doc = "\n Read response data. If data is available immediately copy up to\n |bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of\n bytes copied, and return true (1). To read the data at a later time set\n |bytes_read| to 0, return true (1) and call cef_callback_t::cont() when\n the data is available. To indicate response completion return false (0).\n\n WARNING: This function is deprecated. Use Skip and Read instead.\n"]
11487    pub read_response: ::std::option::Option<
11488        unsafe extern "C" fn(
11489            self_: *mut _cef_resource_handler_t,
11490            data_out: *mut ::std::os::raw::c_void,
11491            bytes_to_read: ::std::os::raw::c_int,
11492            bytes_read: *mut ::std::os::raw::c_int,
11493            callback: *mut _cef_callback_t,
11494        ) -> ::std::os::raw::c_int,
11495    >,
11496    #[doc = "\n Request processing has been canceled.\n"]
11497    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_resource_handler_t)>,
11498}
11499#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11500const _: () = {
11501    ["Size of _cef_resource_handler_t"][::std::mem::size_of::<_cef_resource_handler_t>() - 96usize];
11502    ["Alignment of _cef_resource_handler_t"]
11503        [::std::mem::align_of::<_cef_resource_handler_t>() - 8usize];
11504    ["Offset of field: _cef_resource_handler_t::base"]
11505        [::std::mem::offset_of!(_cef_resource_handler_t, base) - 0usize];
11506    ["Offset of field: _cef_resource_handler_t::open"]
11507        [::std::mem::offset_of!(_cef_resource_handler_t, open) - 40usize];
11508    ["Offset of field: _cef_resource_handler_t::process_request"]
11509        [::std::mem::offset_of!(_cef_resource_handler_t, process_request) - 48usize];
11510    ["Offset of field: _cef_resource_handler_t::get_response_headers"]
11511        [::std::mem::offset_of!(_cef_resource_handler_t, get_response_headers) - 56usize];
11512    ["Offset of field: _cef_resource_handler_t::skip"]
11513        [::std::mem::offset_of!(_cef_resource_handler_t, skip) - 64usize];
11514    ["Offset of field: _cef_resource_handler_t::read"]
11515        [::std::mem::offset_of!(_cef_resource_handler_t, read) - 72usize];
11516    ["Offset of field: _cef_resource_handler_t::read_response"]
11517        [::std::mem::offset_of!(_cef_resource_handler_t, read_response) - 80usize];
11518    ["Offset of field: _cef_resource_handler_t::cancel"]
11519        [::std::mem::offset_of!(_cef_resource_handler_t, cancel) - 88usize];
11520};
11521#[doc = "\n Structure used to implement a custom request handler structure. The\n functions of this structure will be called on the IO thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11522pub type cef_resource_handler_t = _cef_resource_handler_t;
11523#[doc = "\n Implement this structure to filter resource response content. The functions\n of this structure will be called on the browser process IO thread.\n\n NOTE: This struct is allocated client-side.\n"]
11524#[repr(C)]
11525#[derive(Debug, Copy, Clone)]
11526pub struct _cef_response_filter_t {
11527    #[doc = "\n Base structure.\n"]
11528    pub base: cef_base_ref_counted_t,
11529    #[doc = "\n Initialize the response filter. Will only be called a single time. The\n filter will not be installed if this function returns false (0).\n"]
11530    pub init_filter: ::std::option::Option<
11531        unsafe extern "C" fn(self_: *mut _cef_response_filter_t) -> ::std::os::raw::c_int,
11532    >,
11533    #[doc = "\n Called to filter a chunk of data. Expected usage is as follows:\n\n  1. Read input data from |data_in| and set |data_in_read| to the number of\n     bytes that were read up to a maximum of |data_in_size|. |data_in| will\n     be NULL if |data_in_size| is zero.\n  2. Write filtered output data to |data_out| and set |data_out_written| to\n     the number of bytes that were written up to a maximum of\n     |data_out_size|. If no output data was written then all data must be\n     read from |data_in| (user must set |data_in_read| = |data_in_size|).\n  3. Return RESPONSE_FILTER_DONE if all output data was written or\n     RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.\n\n This function will be called repeatedly until the input buffer has been\n fully read (user sets |data_in_read| = |data_in_size|) and there is no\n more input data to filter (the resource response is complete). This\n function may then be called an additional time with an NULL input buffer\n if the user filled the output buffer (set |data_out_written| =\n |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate\n that output data is still pending.\n\n Calls to this function will stop when one of the following conditions is\n met:\n\n  1. There is no more input data to filter (the resource response is\n     complete) and the user sets |data_out_written| = 0 or returns\n     RESPONSE_FILTER_DONE to indicate that all data has been written, or;\n  2. The user returns RESPONSE_FILTER_ERROR to indicate an error.\n\n Do not keep a reference to the buffers passed to this function.\n"]
11534    pub filter: ::std::option::Option<
11535        unsafe extern "C" fn(
11536            self_: *mut _cef_response_filter_t,
11537            data_in: *mut ::std::os::raw::c_void,
11538            data_in_size: usize,
11539            data_in_read: *mut usize,
11540            data_out: *mut ::std::os::raw::c_void,
11541            data_out_size: usize,
11542            data_out_written: *mut usize,
11543        ) -> cef_response_filter_status_t,
11544    >,
11545}
11546#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11547const _: () = {
11548    ["Size of _cef_response_filter_t"][::std::mem::size_of::<_cef_response_filter_t>() - 56usize];
11549    ["Alignment of _cef_response_filter_t"]
11550        [::std::mem::align_of::<_cef_response_filter_t>() - 8usize];
11551    ["Offset of field: _cef_response_filter_t::base"]
11552        [::std::mem::offset_of!(_cef_response_filter_t, base) - 0usize];
11553    ["Offset of field: _cef_response_filter_t::init_filter"]
11554        [::std::mem::offset_of!(_cef_response_filter_t, init_filter) - 40usize];
11555    ["Offset of field: _cef_response_filter_t::filter"]
11556        [::std::mem::offset_of!(_cef_response_filter_t, filter) - 48usize];
11557};
11558#[doc = "\n Implement this structure to filter resource response content. The functions\n of this structure will be called on the browser process IO thread.\n\n NOTE: This struct is allocated client-side.\n"]
11559pub type cef_response_filter_t = _cef_response_filter_t;
11560#[doc = "\n Implement this structure to handle events related to browser requests. The\n functions of this structure will be called on the IO thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11561#[repr(C)]
11562#[derive(Debug, Copy, Clone)]
11563pub struct _cef_resource_request_handler_t {
11564    #[doc = "\n Base structure.\n"]
11565    pub base: cef_base_ref_counted_t,
11566    #[doc = "\n Called on the IO thread before a resource request is loaded. The |browser|\n and |frame| values represent the source of the request, and may be NULL\n for requests originating from service workers or cef_urlrequest_t. To\n optionally filter cookies for the request return a\n cef_cookie_access_filter_t object. The |request| object cannot not be\n modified in this callback.\n"]
11567    pub get_cookie_access_filter: ::std::option::Option<
11568        unsafe extern "C" fn(
11569            self_: *mut _cef_resource_request_handler_t,
11570            browser: *mut _cef_browser_t,
11571            frame: *mut _cef_frame_t,
11572            request: *mut _cef_request_t,
11573        ) -> *mut _cef_cookie_access_filter_t,
11574    >,
11575    #[doc = "\n Called on the IO thread before a resource request is loaded. The |browser|\n and |frame| values represent the source of the request, and may be NULL\n for requests originating from service workers or cef_urlrequest_t. To\n redirect or change the resource load optionally modify |request|.\n Modification of the request URL will be treated as a redirect. Return\n RV_CONTINUE to continue the request immediately. Return RV_CONTINUE_ASYNC\n and call cef_callback_t functions at a later time to continue or cancel\n the request asynchronously. Return RV_CANCEL to cancel the request\n immediately.\n"]
11576    pub on_before_resource_load: ::std::option::Option<
11577        unsafe extern "C" fn(
11578            self_: *mut _cef_resource_request_handler_t,
11579            browser: *mut _cef_browser_t,
11580            frame: *mut _cef_frame_t,
11581            request: *mut _cef_request_t,
11582            callback: *mut _cef_callback_t,
11583        ) -> cef_return_value_t,
11584    >,
11585    #[doc = "\n Called on the IO thread before a resource is loaded. The |browser| and\n |frame| values represent the source of the request, and may be NULL for\n requests originating from service workers or cef_urlrequest_t. To allow\n the resource to load using the default network loader return NULL. To\n specify a handler for the resource return a cef_resource_handler_t object.\n The |request| object cannot not be modified in this callback.\n"]
11586    pub get_resource_handler: ::std::option::Option<
11587        unsafe extern "C" fn(
11588            self_: *mut _cef_resource_request_handler_t,
11589            browser: *mut _cef_browser_t,
11590            frame: *mut _cef_frame_t,
11591            request: *mut _cef_request_t,
11592        ) -> *mut _cef_resource_handler_t,
11593    >,
11594    #[doc = "\n Called on the IO thread when a resource load is redirected. The |browser|\n and |frame| values represent the source of the request, and may be NULL\n for requests originating from service workers or cef_urlrequest_t. The\n |request| parameter will contain the old URL and other request-related\n information. The |response| parameter will contain the response that\n resulted in the redirect. The |new_url| parameter will contain the new URL\n and can be changed if desired. The |request| and |response| objects cannot\n be modified in this callback.\n"]
11595    pub on_resource_redirect: ::std::option::Option<
11596        unsafe extern "C" fn(
11597            self_: *mut _cef_resource_request_handler_t,
11598            browser: *mut _cef_browser_t,
11599            frame: *mut _cef_frame_t,
11600            request: *mut _cef_request_t,
11601            response: *mut _cef_response_t,
11602            new_url: *mut cef_string_t,
11603        ),
11604    >,
11605    #[doc = "\n Called on the IO thread when a resource response is received. The\n |browser| and |frame| values represent the source of the request, and may\n be NULL for requests originating from service workers or cef_urlrequest_t.\n To allow the resource load to proceed without modification return false\n (0). To redirect or retry the resource load optionally modify |request|\n and return true (1). Modification of the request URL will be treated as a\n redirect. Requests handled using the default network loader cannot be\n redirected in this callback. The |response| object cannot be modified in\n this callback.\n\n WARNING: Redirecting using this function is deprecated. Use\n OnBeforeResourceLoad or GetResourceHandler to perform redirects.\n"]
11606    pub on_resource_response: ::std::option::Option<
11607        unsafe extern "C" fn(
11608            self_: *mut _cef_resource_request_handler_t,
11609            browser: *mut _cef_browser_t,
11610            frame: *mut _cef_frame_t,
11611            request: *mut _cef_request_t,
11612            response: *mut _cef_response_t,
11613        ) -> ::std::os::raw::c_int,
11614    >,
11615    #[doc = "\n Called on the IO thread to optionally filter resource response content.\n The |browser| and |frame| values represent the source of the request, and\n may be NULL for requests originating from service workers or\n cef_urlrequest_t. |request| and |response| represent the request and\n response respectively and cannot be modified in this callback.\n"]
11616    pub get_resource_response_filter: ::std::option::Option<
11617        unsafe extern "C" fn(
11618            self_: *mut _cef_resource_request_handler_t,
11619            browser: *mut _cef_browser_t,
11620            frame: *mut _cef_frame_t,
11621            request: *mut _cef_request_t,
11622            response: *mut _cef_response_t,
11623        ) -> *mut _cef_response_filter_t,
11624    >,
11625    #[doc = "\n Called on the IO thread when a resource load has completed. The |browser|\n and |frame| values represent the source of the request, and may be NULL\n for requests originating from service workers or cef_urlrequest_t.\n |request| and |response| represent the request and response respectively\n and cannot be modified in this callback. |status| indicates the load\n completion status. |received_content_length| is the number of response\n bytes actually read. This function will be called for all requests,\n including requests that are aborted due to CEF shutdown or destruction of\n the associated browser. In cases where the associated browser is destroyed\n this callback may arrive after the cef_life_span_handler_t::OnBeforeClose\n callback for that browser. The cef_frame_t::IsValid function can be used\n to test for this situation, and care should be taken not to call |browser|\n or |frame| functions that modify state (like LoadURL, SendProcessMessage,\n etc.) if the frame is invalid.\n"]
11626    pub on_resource_load_complete: ::std::option::Option<
11627        unsafe extern "C" fn(
11628            self_: *mut _cef_resource_request_handler_t,
11629            browser: *mut _cef_browser_t,
11630            frame: *mut _cef_frame_t,
11631            request: *mut _cef_request_t,
11632            response: *mut _cef_response_t,
11633            status: cef_urlrequest_status_t,
11634            received_content_length: i64,
11635        ),
11636    >,
11637    #[doc = "\n Called on the IO thread to handle requests for URLs with an unknown\n protocol component. The |browser| and |frame| values represent the source\n of the request, and may be NULL for requests originating from service\n workers or cef_urlrequest_t. |request| cannot be modified in this\n callback. Set |allow_os_execution| to true (1) to attempt execution via\n the registered OS protocol handler, if any. SECURITY WARNING: YOU SHOULD\n USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL\n ANALYSIS BEFORE ALLOWING OS EXECUTION.\n"]
11638    pub on_protocol_execution: ::std::option::Option<
11639        unsafe extern "C" fn(
11640            self_: *mut _cef_resource_request_handler_t,
11641            browser: *mut _cef_browser_t,
11642            frame: *mut _cef_frame_t,
11643            request: *mut _cef_request_t,
11644            allow_os_execution: *mut ::std::os::raw::c_int,
11645        ),
11646    >,
11647}
11648#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11649const _: () = {
11650    ["Size of _cef_resource_request_handler_t"]
11651        [::std::mem::size_of::<_cef_resource_request_handler_t>() - 104usize];
11652    ["Alignment of _cef_resource_request_handler_t"]
11653        [::std::mem::align_of::<_cef_resource_request_handler_t>() - 8usize];
11654    ["Offset of field: _cef_resource_request_handler_t::base"]
11655        [::std::mem::offset_of!(_cef_resource_request_handler_t, base) - 0usize];
11656    ["Offset of field: _cef_resource_request_handler_t::get_cookie_access_filter"][::std::mem::offset_of!(
11657        _cef_resource_request_handler_t,
11658        get_cookie_access_filter
11659    ) - 40usize];
11660    ["Offset of field: _cef_resource_request_handler_t::on_before_resource_load"][::std::mem::offset_of!(
11661        _cef_resource_request_handler_t,
11662        on_before_resource_load
11663    ) - 48usize];
11664    ["Offset of field: _cef_resource_request_handler_t::get_resource_handler"]
11665        [::std::mem::offset_of!(_cef_resource_request_handler_t, get_resource_handler) - 56usize];
11666    ["Offset of field: _cef_resource_request_handler_t::on_resource_redirect"]
11667        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_resource_redirect) - 64usize];
11668    ["Offset of field: _cef_resource_request_handler_t::on_resource_response"]
11669        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_resource_response) - 72usize];
11670    ["Offset of field: _cef_resource_request_handler_t::get_resource_response_filter"][::std::mem::offset_of!(
11671        _cef_resource_request_handler_t,
11672        get_resource_response_filter
11673    ) - 80usize];
11674    ["Offset of field: _cef_resource_request_handler_t::on_resource_load_complete"][::std::mem::offset_of!(
11675        _cef_resource_request_handler_t,
11676        on_resource_load_complete
11677    ) - 88usize];
11678    ["Offset of field: _cef_resource_request_handler_t::on_protocol_execution"]
11679        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_protocol_execution) - 96usize];
11680};
11681#[doc = "\n Implement this structure to handle events related to browser requests. The\n functions of this structure will be called on the IO thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11682pub type cef_resource_request_handler_t = _cef_resource_request_handler_t;
11683#[doc = "\n Implement this structure to filter cookies that may be sent or received from\n resource requests. The functions of this structure will be called on the IO\n thread unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11684#[repr(C)]
11685#[derive(Debug, Copy, Clone)]
11686pub struct _cef_cookie_access_filter_t {
11687    #[doc = "\n Base structure.\n"]
11688    pub base: cef_base_ref_counted_t,
11689    #[doc = "\n Called on the IO thread before a resource request is sent. The |browser|\n and |frame| values represent the source of the request, and may be NULL\n for requests originating from service workers or cef_urlrequest_t.\n |request| cannot be modified in this callback. Return true (1) if the\n specified cookie can be sent with the request or false (0) otherwise.\n"]
11690    pub can_send_cookie: ::std::option::Option<
11691        unsafe extern "C" fn(
11692            self_: *mut _cef_cookie_access_filter_t,
11693            browser: *mut _cef_browser_t,
11694            frame: *mut _cef_frame_t,
11695            request: *mut _cef_request_t,
11696            cookie: *const _cef_cookie_t,
11697        ) -> ::std::os::raw::c_int,
11698    >,
11699    #[doc = "\n Called on the IO thread after a resource response is received. The\n |browser| and |frame| values represent the source of the request, and may\n be NULL for requests originating from service workers or cef_urlrequest_t.\n |request| cannot be modified in this callback. Return true (1) if the\n specified cookie returned with the response can be saved or false (0)\n otherwise.\n"]
11700    pub can_save_cookie: ::std::option::Option<
11701        unsafe extern "C" fn(
11702            self_: *mut _cef_cookie_access_filter_t,
11703            browser: *mut _cef_browser_t,
11704            frame: *mut _cef_frame_t,
11705            request: *mut _cef_request_t,
11706            response: *mut _cef_response_t,
11707            cookie: *const _cef_cookie_t,
11708        ) -> ::std::os::raw::c_int,
11709    >,
11710}
11711#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11712const _: () = {
11713    ["Size of _cef_cookie_access_filter_t"]
11714        [::std::mem::size_of::<_cef_cookie_access_filter_t>() - 56usize];
11715    ["Alignment of _cef_cookie_access_filter_t"]
11716        [::std::mem::align_of::<_cef_cookie_access_filter_t>() - 8usize];
11717    ["Offset of field: _cef_cookie_access_filter_t::base"]
11718        [::std::mem::offset_of!(_cef_cookie_access_filter_t, base) - 0usize];
11719    ["Offset of field: _cef_cookie_access_filter_t::can_send_cookie"]
11720        [::std::mem::offset_of!(_cef_cookie_access_filter_t, can_send_cookie) - 40usize];
11721    ["Offset of field: _cef_cookie_access_filter_t::can_save_cookie"]
11722        [::std::mem::offset_of!(_cef_cookie_access_filter_t, can_save_cookie) - 48usize];
11723};
11724#[doc = "\n Implement this structure to filter cookies that may be sent or received from\n resource requests. The functions of this structure will be called on the IO\n thread unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11725pub type cef_cookie_access_filter_t = _cef_cookie_access_filter_t;
11726#[doc = "\n Structure representing SSL information.\n\n NOTE: This struct is allocated DLL-side.\n"]
11727#[repr(C)]
11728#[derive(Debug, Copy, Clone)]
11729pub struct _cef_sslinfo_t {
11730    #[doc = "\n Base structure.\n"]
11731    pub base: cef_base_ref_counted_t,
11732    #[doc = "\n Returns a bitmask containing any and all problems verifying the server\n certificate.\n"]
11733    pub get_cert_status: ::std::option::Option<
11734        unsafe extern "C" fn(self_: *mut _cef_sslinfo_t) -> cef_cert_status_t,
11735    >,
11736    #[doc = "\n Returns the X.509 certificate.\n"]
11737    pub get_x509_certificate: ::std::option::Option<
11738        unsafe extern "C" fn(self_: *mut _cef_sslinfo_t) -> *mut _cef_x509_certificate_t,
11739    >,
11740}
11741#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11742const _: () = {
11743    ["Size of _cef_sslinfo_t"][::std::mem::size_of::<_cef_sslinfo_t>() - 56usize];
11744    ["Alignment of _cef_sslinfo_t"][::std::mem::align_of::<_cef_sslinfo_t>() - 8usize];
11745    ["Offset of field: _cef_sslinfo_t::base"]
11746        [::std::mem::offset_of!(_cef_sslinfo_t, base) - 0usize];
11747    ["Offset of field: _cef_sslinfo_t::get_cert_status"]
11748        [::std::mem::offset_of!(_cef_sslinfo_t, get_cert_status) - 40usize];
11749    ["Offset of field: _cef_sslinfo_t::get_x509_certificate"]
11750        [::std::mem::offset_of!(_cef_sslinfo_t, get_x509_certificate) - 48usize];
11751};
11752#[doc = "\n Structure representing SSL information.\n\n NOTE: This struct is allocated DLL-side.\n"]
11753pub type cef_sslinfo_t = _cef_sslinfo_t;
11754unsafe extern "C" {
11755    #[doc = "\n Returns true (1) if the certificate status represents an error.\n"]
11756    pub fn cef_is_cert_status_error(status: cef_cert_status_t) -> ::std::os::raw::c_int;
11757}
11758#[doc = "\n Callback structure for asynchronous handling of an unresponsive process.\n\n NOTE: This struct is allocated DLL-side.\n"]
11759#[repr(C)]
11760#[derive(Debug, Copy, Clone)]
11761pub struct _cef_unresponsive_process_callback_t {
11762    #[doc = "\n Base structure.\n"]
11763    pub base: cef_base_ref_counted_t,
11764    #[doc = "\n Reset the timeout for the unresponsive process.\n"]
11765    pub wait: ::std::option::Option<
11766        unsafe extern "C" fn(self_: *mut _cef_unresponsive_process_callback_t),
11767    >,
11768    #[doc = "\n Terminate the unresponsive process.\n"]
11769    pub terminate: ::std::option::Option<
11770        unsafe extern "C" fn(self_: *mut _cef_unresponsive_process_callback_t),
11771    >,
11772}
11773#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11774const _: () = {
11775    ["Size of _cef_unresponsive_process_callback_t"]
11776        [::std::mem::size_of::<_cef_unresponsive_process_callback_t>() - 56usize];
11777    ["Alignment of _cef_unresponsive_process_callback_t"]
11778        [::std::mem::align_of::<_cef_unresponsive_process_callback_t>() - 8usize];
11779    ["Offset of field: _cef_unresponsive_process_callback_t::base"]
11780        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, base) - 0usize];
11781    ["Offset of field: _cef_unresponsive_process_callback_t::wait"]
11782        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, wait) - 40usize];
11783    ["Offset of field: _cef_unresponsive_process_callback_t::terminate"]
11784        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, terminate) - 48usize];
11785};
11786#[doc = "\n Callback structure for asynchronous handling of an unresponsive process.\n\n NOTE: This struct is allocated DLL-side.\n"]
11787pub type cef_unresponsive_process_callback_t = _cef_unresponsive_process_callback_t;
11788#[doc = "\n Callback structure used to select a client certificate for authentication.\n\n NOTE: This struct is allocated DLL-side.\n"]
11789#[repr(C)]
11790#[derive(Debug, Copy, Clone)]
11791pub struct _cef_select_client_certificate_callback_t {
11792    #[doc = "\n Base structure.\n"]
11793    pub base: cef_base_ref_counted_t,
11794    #[doc = "\n Chooses the specified certificate for client certificate authentication.\n NULL value means that no client certificate should be used.\n"]
11795    pub select: ::std::option::Option<
11796        unsafe extern "C" fn(
11797            self_: *mut _cef_select_client_certificate_callback_t,
11798            cert: *mut _cef_x509_certificate_t,
11799        ),
11800    >,
11801}
11802#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11803const _: () = {
11804    ["Size of _cef_select_client_certificate_callback_t"]
11805        [::std::mem::size_of::<_cef_select_client_certificate_callback_t>() - 48usize];
11806    ["Alignment of _cef_select_client_certificate_callback_t"]
11807        [::std::mem::align_of::<_cef_select_client_certificate_callback_t>() - 8usize];
11808    ["Offset of field: _cef_select_client_certificate_callback_t::base"]
11809        [::std::mem::offset_of!(_cef_select_client_certificate_callback_t, base) - 0usize];
11810    ["Offset of field: _cef_select_client_certificate_callback_t::select"]
11811        [::std::mem::offset_of!(_cef_select_client_certificate_callback_t, select) - 40usize];
11812};
11813#[doc = "\n Callback structure used to select a client certificate for authentication.\n\n NOTE: This struct is allocated DLL-side.\n"]
11814pub type cef_select_client_certificate_callback_t = _cef_select_client_certificate_callback_t;
11815#[doc = "\n Implement this structure to handle events related to browser requests. The\n functions of this structure will be called on the thread indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11816#[repr(C)]
11817#[derive(Debug, Copy, Clone)]
11818pub struct _cef_request_handler_t {
11819    #[doc = "\n Base structure.\n"]
11820    pub base: cef_base_ref_counted_t,
11821    #[doc = "\n Called on the UI thread before browser navigation. Return true (1) to\n cancel the navigation or false (0) to allow the navigation to proceed. The\n |request| object cannot be modified in this callback.\n cef_load_handler_t::OnLoadingStateChange will be called twice in all\n cases. If the navigation is allowed cef_load_handler_t::OnLoadStart and\n cef_load_handler_t::OnLoadEnd will be called. If the navigation is\n canceled cef_load_handler_t::OnLoadError will be called with an\n |errorCode| value of ERR_ABORTED. The |user_gesture| value will be true\n (1) if the browser navigated via explicit user gesture (e.g. clicking a\n link) or false (0) if it navigated automatically (e.g. via the\n DomContentLoaded event).\n"]
11822    pub on_before_browse: ::std::option::Option<
11823        unsafe extern "C" fn(
11824            self_: *mut _cef_request_handler_t,
11825            browser: *mut _cef_browser_t,
11826            frame: *mut _cef_frame_t,
11827            request: *mut _cef_request_t,
11828            user_gesture: ::std::os::raw::c_int,
11829            is_redirect: ::std::os::raw::c_int,
11830        ) -> ::std::os::raw::c_int,
11831    >,
11832    #[doc = "\n Called on the UI thread before OnBeforeBrowse in certain limited cases\n where navigating a new or different browser might be desirable. This\n includes user-initiated navigation that might open in a special way (e.g.\n links clicked via middle-click or ctrl + left-click) and certain types of\n cross-origin navigation initiated from the renderer process (e.g.\n navigating the top-level frame to/from a file URL). The |browser| and\n |frame| values represent the source of the navigation. The\n |target_disposition| value indicates where the user intended to navigate\n the browser based on standard Chromium behaviors (e.g. current tab, new\n tab, etc). The |user_gesture| value will be true (1) if the browser\n navigated via explicit user gesture (e.g. clicking a link) or false (0) if\n it navigated automatically (e.g. via the DomContentLoaded event). Return\n true (1) to cancel the navigation or false (0) to allow the navigation to\n proceed in the source browser's top-level frame.\n"]
11833    pub on_open_urlfrom_tab: ::std::option::Option<
11834        unsafe extern "C" fn(
11835            self_: *mut _cef_request_handler_t,
11836            browser: *mut _cef_browser_t,
11837            frame: *mut _cef_frame_t,
11838            target_url: *const cef_string_t,
11839            target_disposition: cef_window_open_disposition_t,
11840            user_gesture: ::std::os::raw::c_int,
11841        ) -> ::std::os::raw::c_int,
11842    >,
11843    #[doc = "\n Called on the browser process IO thread before a resource request is\n initiated. The |browser| and |frame| values represent the source of the\n request. |request| represents the request contents and cannot be modified\n in this callback. |is_navigation| will be true (1) if the resource request\n is a navigation. |is_download| will be true (1) if the resource request is\n a download. |request_initiator| is the origin (scheme + domain) of the\n page that initiated the request. Set |disable_default_handling| to true\n (1) to disable default handling of the request, in which case it will need\n to be handled via cef_resource_request_handler_t::GetResourceHandler or it\n will be canceled. To allow the resource load to proceed with default\n handling return NULL. To specify a handler for the resource return a\n cef_resource_request_handler_t object. If this callback returns NULL the\n same function will be called on the associated\n cef_request_context_handler_t, if any.\n"]
11844    pub get_resource_request_handler: ::std::option::Option<
11845        unsafe extern "C" fn(
11846            self_: *mut _cef_request_handler_t,
11847            browser: *mut _cef_browser_t,
11848            frame: *mut _cef_frame_t,
11849            request: *mut _cef_request_t,
11850            is_navigation: ::std::os::raw::c_int,
11851            is_download: ::std::os::raw::c_int,
11852            request_initiator: *const cef_string_t,
11853            disable_default_handling: *mut ::std::os::raw::c_int,
11854        ) -> *mut _cef_resource_request_handler_t,
11855    >,
11856    #[doc = "\n Called on the IO thread when the browser needs credentials from the user.\n |origin_url| is the origin making this authentication request. |isProxy|\n indicates whether the host is a proxy server. |host| contains the hostname\n and |port| contains the port number. |realm| is the realm of the challenge\n and may be NULL. |scheme| is the authentication scheme used, such as\n \"basic\" or \"digest\", and will be NULL if the source of the request is an\n FTP server. Return true (1) to continue the request and call\n cef_auth_callback_t::cont() either in this function or at a later time\n when the authentication information is available. Return false (0) to\n cancel the request immediately.\n"]
11857    pub get_auth_credentials: ::std::option::Option<
11858        unsafe extern "C" fn(
11859            self_: *mut _cef_request_handler_t,
11860            browser: *mut _cef_browser_t,
11861            origin_url: *const cef_string_t,
11862            isProxy: ::std::os::raw::c_int,
11863            host: *const cef_string_t,
11864            port: ::std::os::raw::c_int,
11865            realm: *const cef_string_t,
11866            scheme: *const cef_string_t,
11867            callback: *mut _cef_auth_callback_t,
11868        ) -> ::std::os::raw::c_int,
11869    >,
11870    #[doc = "\n Called on the UI thread to handle requests for URLs with an invalid SSL\n certificate. Return true (1) and call cef_callback_t functions either in\n this function or at a later time to continue or cancel the request. Return\n false (0) to cancel the request immediately. If\n cef_settings_t.ignore_certificate_errors is set all invalid certificates\n will be accepted without calling this function.\n"]
11871    pub on_certificate_error: ::std::option::Option<
11872        unsafe extern "C" fn(
11873            self_: *mut _cef_request_handler_t,
11874            browser: *mut _cef_browser_t,
11875            cert_error: cef_errorcode_t,
11876            request_url: *const cef_string_t,
11877            ssl_info: *mut _cef_sslinfo_t,
11878            callback: *mut _cef_callback_t,
11879        ) -> ::std::os::raw::c_int,
11880    >,
11881    #[doc = "\n Called on the UI thread when a client certificate is being requested for\n authentication. Return false (0) to use the default behavior.  If the\n |certificates| list is not NULL the default behavior will be to display a\n dialog for certificate selection. If the |certificates| list is NULL then\n the default behavior will be not to show a dialog and it will continue\n without using any certificate. Return true (1) and call\n cef_select_client_certificate_callback_t::Select either in this function\n or at a later time to select a certificate. Do not call Select or call it\n with NULL to continue without using any certificate. |isProxy| indicates\n whether the host is an HTTPS proxy or the origin server. |host| and |port|\n contains the hostname and port of the SSL server. |certificates| is the\n list of certificates to choose from; this list has already been pruned by\n Chromium so that it only contains certificates from issuers that the\n server trusts.\n"]
11882    pub on_select_client_certificate: ::std::option::Option<
11883        unsafe extern "C" fn(
11884            self_: *mut _cef_request_handler_t,
11885            browser: *mut _cef_browser_t,
11886            isProxy: ::std::os::raw::c_int,
11887            host: *const cef_string_t,
11888            port: ::std::os::raw::c_int,
11889            certificatesCount: usize,
11890            certificates: *const *mut _cef_x509_certificate_t,
11891            callback: *mut _cef_select_client_certificate_callback_t,
11892        ) -> ::std::os::raw::c_int,
11893    >,
11894    #[doc = "\n Called on the browser process UI thread when the render view associated\n with |browser| is ready to receive/handle IPC messages in the render\n process.\n"]
11895    pub on_render_view_ready: ::std::option::Option<
11896        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
11897    >,
11898    #[doc = "\n Called on the browser process UI thread when the render process is\n unresponsive as indicated by a lack of input event processing for at least\n 15 seconds. Return false (0) for the default behavior which is an\n indefinite wait with Alloy style or display of the \"Page unresponsive\"\n dialog with Chrome style. Return true (1) and don't execute the callback\n for an indefinite wait without display of the Chrome style dialog. Return\n true (1) and call cef_unresponsive_process_callback_t::Wait either in this\n function or at a later time to reset the wait timer, potentially\n triggering another call to this function if the process remains\n unresponsive. Return true (1) and call\n cef_unresponsive_process_callback_t:: Terminate either in this function or\n at a later time to terminate the unresponsive process, resulting in a call\n to OnRenderProcessTerminated. OnRenderProcessResponsive will be called if\n the process becomes responsive after this function is called. This\n functionality depends on the hang monitor which can be disabled by passing\n the `--disable-hang-monitor` command-line flag.\n"]
11899    pub on_render_process_unresponsive: ::std::option::Option<
11900        unsafe extern "C" fn(
11901            self_: *mut _cef_request_handler_t,
11902            browser: *mut _cef_browser_t,
11903            callback: *mut _cef_unresponsive_process_callback_t,
11904        ) -> ::std::os::raw::c_int,
11905    >,
11906    #[doc = "\n Called on the browser process UI thread when the render process becomes\n responsive after previously being unresponsive. See documentation on\n OnRenderProcessUnresponsive.\n"]
11907    pub on_render_process_responsive: ::std::option::Option<
11908        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
11909    >,
11910    #[doc = "\n Called on the browser process UI thread when the render process terminates\n unexpectedly. |status| indicates how the process terminated. |error_code|\n and |error_string| represent the error that would be displayed in Chrome's\n \"Aw, Snap!\" view. Possible |error_code| values include cef_resultcode_t\n non-normal exit values and platform-specific crash values (for example, a\n Posix signal or Windows hardware exception).\n"]
11911    pub on_render_process_terminated: ::std::option::Option<
11912        unsafe extern "C" fn(
11913            self_: *mut _cef_request_handler_t,
11914            browser: *mut _cef_browser_t,
11915            status: cef_termination_status_t,
11916            error_code: ::std::os::raw::c_int,
11917            error_string: *const cef_string_t,
11918        ),
11919    >,
11920    #[doc = "\n Called on the browser process UI thread when the window.document object of\n the main frame has been created.\n"]
11921    pub on_document_available_in_main_frame: ::std::option::Option<
11922        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
11923    >,
11924}
11925#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11926const _: () = {
11927    ["Size of _cef_request_handler_t"][::std::mem::size_of::<_cef_request_handler_t>() - 128usize];
11928    ["Alignment of _cef_request_handler_t"]
11929        [::std::mem::align_of::<_cef_request_handler_t>() - 8usize];
11930    ["Offset of field: _cef_request_handler_t::base"]
11931        [::std::mem::offset_of!(_cef_request_handler_t, base) - 0usize];
11932    ["Offset of field: _cef_request_handler_t::on_before_browse"]
11933        [::std::mem::offset_of!(_cef_request_handler_t, on_before_browse) - 40usize];
11934    ["Offset of field: _cef_request_handler_t::on_open_urlfrom_tab"]
11935        [::std::mem::offset_of!(_cef_request_handler_t, on_open_urlfrom_tab) - 48usize];
11936    ["Offset of field: _cef_request_handler_t::get_resource_request_handler"]
11937        [::std::mem::offset_of!(_cef_request_handler_t, get_resource_request_handler) - 56usize];
11938    ["Offset of field: _cef_request_handler_t::get_auth_credentials"]
11939        [::std::mem::offset_of!(_cef_request_handler_t, get_auth_credentials) - 64usize];
11940    ["Offset of field: _cef_request_handler_t::on_certificate_error"]
11941        [::std::mem::offset_of!(_cef_request_handler_t, on_certificate_error) - 72usize];
11942    ["Offset of field: _cef_request_handler_t::on_select_client_certificate"]
11943        [::std::mem::offset_of!(_cef_request_handler_t, on_select_client_certificate) - 80usize];
11944    ["Offset of field: _cef_request_handler_t::on_render_view_ready"]
11945        [::std::mem::offset_of!(_cef_request_handler_t, on_render_view_ready) - 88usize];
11946    ["Offset of field: _cef_request_handler_t::on_render_process_unresponsive"]
11947        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_unresponsive) - 96usize];
11948    ["Offset of field: _cef_request_handler_t::on_render_process_responsive"]
11949        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_responsive) - 104usize];
11950    ["Offset of field: _cef_request_handler_t::on_render_process_terminated"]
11951        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_terminated) - 112usize];
11952    ["Offset of field: _cef_request_handler_t::on_document_available_in_main_frame"][::std::mem::offset_of!(
11953        _cef_request_handler_t,
11954        on_document_available_in_main_frame
11955    ) - 120usize];
11956};
11957#[doc = "\n Implement this structure to handle events related to browser requests. The\n functions of this structure will be called on the thread indicated.\n\n NOTE: This struct is allocated client-side.\n"]
11958pub type cef_request_handler_t = _cef_request_handler_t;
11959#[doc = "\n Implement this structure to provide handler implementations.\n\n NOTE: This struct is allocated client-side.\n"]
11960#[repr(C)]
11961#[derive(Debug, Copy, Clone)]
11962pub struct _cef_client_t {
11963    #[doc = "\n Base structure.\n"]
11964    pub base: cef_base_ref_counted_t,
11965    #[doc = "\n Return the handler for audio rendering events.\n"]
11966    pub get_audio_handler: ::std::option::Option<
11967        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t,
11968    >,
11969    #[doc = "\n Return the handler for commands. If no handler is provided the default\n implementation will be used.\n"]
11970    pub get_command_handler: ::std::option::Option<
11971        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_command_handler_t,
11972    >,
11973    #[doc = "\n Return the handler for context menus. If no handler is provided the\n default implementation will be used.\n"]
11974    pub get_context_menu_handler: ::std::option::Option<
11975        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t,
11976    >,
11977    #[doc = "\n Return the handler for dialogs. If no handler is provided the default\n implementation will be used.\n"]
11978    pub get_dialog_handler: ::std::option::Option<
11979        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t,
11980    >,
11981    #[doc = "\n Return the handler for browser display state events.\n"]
11982    pub get_display_handler: ::std::option::Option<
11983        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t,
11984    >,
11985    #[doc = "\n Return the handler for download events. If no handler is returned\n downloads will not be allowed.\n"]
11986    pub get_download_handler: ::std::option::Option<
11987        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t,
11988    >,
11989    #[doc = "\n Return the handler for drag events.\n"]
11990    pub get_drag_handler: ::std::option::Option<
11991        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t,
11992    >,
11993    #[doc = "\n Return the handler for find result events.\n"]
11994    pub get_find_handler: ::std::option::Option<
11995        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t,
11996    >,
11997    #[doc = "\n Return the handler for focus events.\n"]
11998    pub get_focus_handler: ::std::option::Option<
11999        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t,
12000    >,
12001    #[doc = "\n Return the handler for events related to cef_frame_t lifespan. This\n function will be called once during cef_browser_t creation and the result\n will be cached for performance reasons.\n"]
12002    pub get_frame_handler: ::std::option::Option<
12003        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_frame_handler_t,
12004    >,
12005    #[doc = "\n Return the handler for permission requests.\n"]
12006    pub get_permission_handler: ::std::option::Option<
12007        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_permission_handler_t,
12008    >,
12009    #[doc = "\n Return the handler for JavaScript dialogs. If no handler is provided the\n default implementation will be used.\n"]
12010    pub get_jsdialog_handler: ::std::option::Option<
12011        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t,
12012    >,
12013    #[doc = "\n Return the handler for keyboard events.\n"]
12014    pub get_keyboard_handler: ::std::option::Option<
12015        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t,
12016    >,
12017    #[doc = "\n Return the handler for browser life span events.\n"]
12018    pub get_life_span_handler: ::std::option::Option<
12019        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t,
12020    >,
12021    #[doc = "\n Return the handler for browser load status events.\n"]
12022    pub get_load_handler: ::std::option::Option<
12023        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t,
12024    >,
12025    #[doc = "\n Return the handler for printing on Linux. If a print handler is not\n provided then printing will not be supported on the Linux platform.\n"]
12026    pub get_print_handler: ::std::option::Option<
12027        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_print_handler_t,
12028    >,
12029    #[doc = "\n Return the handler for off-screen rendering events.\n"]
12030    pub get_render_handler: ::std::option::Option<
12031        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t,
12032    >,
12033    #[doc = "\n Return the handler for browser request events.\n"]
12034    pub get_request_handler: ::std::option::Option<
12035        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t,
12036    >,
12037    #[doc = "\n Called when a new message is received from a different process. Return\n true (1) if the message was handled or false (0) otherwise.  It is safe to\n keep a reference to |message| outside of this callback.\n"]
12038    pub on_process_message_received: ::std::option::Option<
12039        unsafe extern "C" fn(
12040            self_: *mut _cef_client_t,
12041            browser: *mut _cef_browser_t,
12042            frame: *mut _cef_frame_t,
12043            source_process: cef_process_id_t,
12044            message: *mut _cef_process_message_t,
12045        ) -> ::std::os::raw::c_int,
12046    >,
12047}
12048#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12049const _: () = {
12050    ["Size of _cef_client_t"][::std::mem::size_of::<_cef_client_t>() - 192usize];
12051    ["Alignment of _cef_client_t"][::std::mem::align_of::<_cef_client_t>() - 8usize];
12052    ["Offset of field: _cef_client_t::base"][::std::mem::offset_of!(_cef_client_t, base) - 0usize];
12053    ["Offset of field: _cef_client_t::get_audio_handler"]
12054        [::std::mem::offset_of!(_cef_client_t, get_audio_handler) - 40usize];
12055    ["Offset of field: _cef_client_t::get_command_handler"]
12056        [::std::mem::offset_of!(_cef_client_t, get_command_handler) - 48usize];
12057    ["Offset of field: _cef_client_t::get_context_menu_handler"]
12058        [::std::mem::offset_of!(_cef_client_t, get_context_menu_handler) - 56usize];
12059    ["Offset of field: _cef_client_t::get_dialog_handler"]
12060        [::std::mem::offset_of!(_cef_client_t, get_dialog_handler) - 64usize];
12061    ["Offset of field: _cef_client_t::get_display_handler"]
12062        [::std::mem::offset_of!(_cef_client_t, get_display_handler) - 72usize];
12063    ["Offset of field: _cef_client_t::get_download_handler"]
12064        [::std::mem::offset_of!(_cef_client_t, get_download_handler) - 80usize];
12065    ["Offset of field: _cef_client_t::get_drag_handler"]
12066        [::std::mem::offset_of!(_cef_client_t, get_drag_handler) - 88usize];
12067    ["Offset of field: _cef_client_t::get_find_handler"]
12068        [::std::mem::offset_of!(_cef_client_t, get_find_handler) - 96usize];
12069    ["Offset of field: _cef_client_t::get_focus_handler"]
12070        [::std::mem::offset_of!(_cef_client_t, get_focus_handler) - 104usize];
12071    ["Offset of field: _cef_client_t::get_frame_handler"]
12072        [::std::mem::offset_of!(_cef_client_t, get_frame_handler) - 112usize];
12073    ["Offset of field: _cef_client_t::get_permission_handler"]
12074        [::std::mem::offset_of!(_cef_client_t, get_permission_handler) - 120usize];
12075    ["Offset of field: _cef_client_t::get_jsdialog_handler"]
12076        [::std::mem::offset_of!(_cef_client_t, get_jsdialog_handler) - 128usize];
12077    ["Offset of field: _cef_client_t::get_keyboard_handler"]
12078        [::std::mem::offset_of!(_cef_client_t, get_keyboard_handler) - 136usize];
12079    ["Offset of field: _cef_client_t::get_life_span_handler"]
12080        [::std::mem::offset_of!(_cef_client_t, get_life_span_handler) - 144usize];
12081    ["Offset of field: _cef_client_t::get_load_handler"]
12082        [::std::mem::offset_of!(_cef_client_t, get_load_handler) - 152usize];
12083    ["Offset of field: _cef_client_t::get_print_handler"]
12084        [::std::mem::offset_of!(_cef_client_t, get_print_handler) - 160usize];
12085    ["Offset of field: _cef_client_t::get_render_handler"]
12086        [::std::mem::offset_of!(_cef_client_t, get_render_handler) - 168usize];
12087    ["Offset of field: _cef_client_t::get_request_handler"]
12088        [::std::mem::offset_of!(_cef_client_t, get_request_handler) - 176usize];
12089    ["Offset of field: _cef_client_t::on_process_message_received"]
12090        [::std::mem::offset_of!(_cef_client_t, on_process_message_received) - 184usize];
12091};
12092#[doc = "\n Implement this structure to provide handler implementations.\n\n NOTE: This struct is allocated client-side.\n"]
12093pub type cef_client_t = _cef_client_t;
12094#[doc = "\n Structure used to create and/or parse command line arguments. Arguments with\n \"--\", \"-\" and, on Windows, \"/\" prefixes are considered switches. Switches\n will always precede any arguments without switch prefixes. Switches can\n optionally have a value specified using the \"=\" delimiter (e.g.\n \"-switch=value\"). An argument of \"--\" will terminate switch parsing with all\n subsequent tokens, regardless of prefix, being interpreted as non-switch\n arguments. Switch names should be lowercase ASCII and will be converted to\n such if necessary. Switch values will retain the original case and UTF8\n encoding. This structure can be used before cef_initialize() is called.\n\n NOTE: This struct is allocated DLL-side.\n"]
12095#[repr(C)]
12096#[derive(Debug, Copy, Clone)]
12097pub struct _cef_command_line_t {
12098    #[doc = "\n Base structure.\n"]
12099    pub base: cef_base_ref_counted_t,
12100    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
12101    pub is_valid: ::std::option::Option<
12102        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12103    >,
12104    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
12105    pub is_read_only: ::std::option::Option<
12106        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12107    >,
12108    #[doc = "\n Returns a writable copy of this object.\n"]
12109    pub copy: ::std::option::Option<
12110        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> *mut _cef_command_line_t,
12111    >,
12112    #[doc = "\n Initialize the command line with the specified |argc| and |argv| values.\n The first argument must be the name of the program. This function is only\n supported on non-Windows platforms.\n"]
12113    pub init_from_argv: ::std::option::Option<
12114        unsafe extern "C" fn(
12115            self_: *mut _cef_command_line_t,
12116            argc: ::std::os::raw::c_int,
12117            argv: *const *const ::std::os::raw::c_char,
12118        ),
12119    >,
12120    #[doc = "\n Initialize the command line with the string returned by calling\n GetCommandLineW(). This function is only supported on Windows.\n"]
12121    pub init_from_string: ::std::option::Option<
12122        unsafe extern "C" fn(self_: *mut _cef_command_line_t, command_line: *const cef_string_t),
12123    >,
12124    #[doc = "\n Reset the command-line switches and arguments but leave the program\n component unchanged.\n"]
12125    pub reset: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_command_line_t)>,
12126    #[doc = "\n Retrieve the original command line string as a vector of strings. The argv\n array: `{ program, [(--|-|/)switch[=value]]*, [--], [argument]* }`\n"]
12127    pub get_argv: ::std::option::Option<
12128        unsafe extern "C" fn(self_: *mut _cef_command_line_t, argv: cef_string_list_t),
12129    >,
12130    #[doc = "\n Constructs and returns the represented command line string. Use this\n function cautiously because quoting behavior is unclear.\n"]
12131    pub get_command_line_string: ::std::option::Option<
12132        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t,
12133    >,
12134    #[doc = "\n Get the program part of the command line string (the first item).\n"]
12135    pub get_program: ::std::option::Option<
12136        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t,
12137    >,
12138    #[doc = "\n Set the program part of the command line string (the first item).\n"]
12139    pub set_program: ::std::option::Option<
12140        unsafe extern "C" fn(self_: *mut _cef_command_line_t, program: *const cef_string_t),
12141    >,
12142    #[doc = "\n Returns true (1) if the command line has switches.\n"]
12143    pub has_switches: ::std::option::Option<
12144        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12145    >,
12146    #[doc = "\n Returns true (1) if the command line contains the given switch.\n"]
12147    pub has_switch: ::std::option::Option<
12148        unsafe extern "C" fn(
12149            self_: *mut _cef_command_line_t,
12150            name: *const cef_string_t,
12151        ) -> ::std::os::raw::c_int,
12152    >,
12153    #[doc = "\n Returns the value associated with the given switch. If the switch has no\n value or isn't present this function returns the NULL string.\n"]
12154    pub get_switch_value: ::std::option::Option<
12155        unsafe extern "C" fn(
12156            self_: *mut _cef_command_line_t,
12157            name: *const cef_string_t,
12158        ) -> cef_string_userfree_t,
12159    >,
12160    #[doc = "\n Returns the map of switch names and values. If a switch has no value an\n NULL string is returned.\n"]
12161    pub get_switches: ::std::option::Option<
12162        unsafe extern "C" fn(self_: *mut _cef_command_line_t, switches: cef_string_map_t),
12163    >,
12164    #[doc = "\n Add a switch to the end of the command line.\n"]
12165    pub append_switch: ::std::option::Option<
12166        unsafe extern "C" fn(self_: *mut _cef_command_line_t, name: *const cef_string_t),
12167    >,
12168    #[doc = "\n Add a switch with the specified value to the end of the command line. If\n the switch has no value pass an NULL value string.\n"]
12169    pub append_switch_with_value: ::std::option::Option<
12170        unsafe extern "C" fn(
12171            self_: *mut _cef_command_line_t,
12172            name: *const cef_string_t,
12173            value: *const cef_string_t,
12174        ),
12175    >,
12176    #[doc = "\n True if there are remaining command line arguments.\n"]
12177    pub has_arguments: ::std::option::Option<
12178        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12179    >,
12180    #[doc = "\n Get the remaining command line arguments.\n"]
12181    pub get_arguments: ::std::option::Option<
12182        unsafe extern "C" fn(self_: *mut _cef_command_line_t, arguments: cef_string_list_t),
12183    >,
12184    #[doc = "\n Add an argument to the end of the command line.\n"]
12185    pub append_argument: ::std::option::Option<
12186        unsafe extern "C" fn(self_: *mut _cef_command_line_t, argument: *const cef_string_t),
12187    >,
12188    #[doc = "\n Insert a command before the current command. Common for debuggers, like\n \"valgrind\" or \"gdb --args\".\n"]
12189    pub prepend_wrapper: ::std::option::Option<
12190        unsafe extern "C" fn(self_: *mut _cef_command_line_t, wrapper: *const cef_string_t),
12191    >,
12192}
12193#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12194const _: () = {
12195    ["Size of _cef_command_line_t"][::std::mem::size_of::<_cef_command_line_t>() - 200usize];
12196    ["Alignment of _cef_command_line_t"][::std::mem::align_of::<_cef_command_line_t>() - 8usize];
12197    ["Offset of field: _cef_command_line_t::base"]
12198        [::std::mem::offset_of!(_cef_command_line_t, base) - 0usize];
12199    ["Offset of field: _cef_command_line_t::is_valid"]
12200        [::std::mem::offset_of!(_cef_command_line_t, is_valid) - 40usize];
12201    ["Offset of field: _cef_command_line_t::is_read_only"]
12202        [::std::mem::offset_of!(_cef_command_line_t, is_read_only) - 48usize];
12203    ["Offset of field: _cef_command_line_t::copy"]
12204        [::std::mem::offset_of!(_cef_command_line_t, copy) - 56usize];
12205    ["Offset of field: _cef_command_line_t::init_from_argv"]
12206        [::std::mem::offset_of!(_cef_command_line_t, init_from_argv) - 64usize];
12207    ["Offset of field: _cef_command_line_t::init_from_string"]
12208        [::std::mem::offset_of!(_cef_command_line_t, init_from_string) - 72usize];
12209    ["Offset of field: _cef_command_line_t::reset"]
12210        [::std::mem::offset_of!(_cef_command_line_t, reset) - 80usize];
12211    ["Offset of field: _cef_command_line_t::get_argv"]
12212        [::std::mem::offset_of!(_cef_command_line_t, get_argv) - 88usize];
12213    ["Offset of field: _cef_command_line_t::get_command_line_string"]
12214        [::std::mem::offset_of!(_cef_command_line_t, get_command_line_string) - 96usize];
12215    ["Offset of field: _cef_command_line_t::get_program"]
12216        [::std::mem::offset_of!(_cef_command_line_t, get_program) - 104usize];
12217    ["Offset of field: _cef_command_line_t::set_program"]
12218        [::std::mem::offset_of!(_cef_command_line_t, set_program) - 112usize];
12219    ["Offset of field: _cef_command_line_t::has_switches"]
12220        [::std::mem::offset_of!(_cef_command_line_t, has_switches) - 120usize];
12221    ["Offset of field: _cef_command_line_t::has_switch"]
12222        [::std::mem::offset_of!(_cef_command_line_t, has_switch) - 128usize];
12223    ["Offset of field: _cef_command_line_t::get_switch_value"]
12224        [::std::mem::offset_of!(_cef_command_line_t, get_switch_value) - 136usize];
12225    ["Offset of field: _cef_command_line_t::get_switches"]
12226        [::std::mem::offset_of!(_cef_command_line_t, get_switches) - 144usize];
12227    ["Offset of field: _cef_command_line_t::append_switch"]
12228        [::std::mem::offset_of!(_cef_command_line_t, append_switch) - 152usize];
12229    ["Offset of field: _cef_command_line_t::append_switch_with_value"]
12230        [::std::mem::offset_of!(_cef_command_line_t, append_switch_with_value) - 160usize];
12231    ["Offset of field: _cef_command_line_t::has_arguments"]
12232        [::std::mem::offset_of!(_cef_command_line_t, has_arguments) - 168usize];
12233    ["Offset of field: _cef_command_line_t::get_arguments"]
12234        [::std::mem::offset_of!(_cef_command_line_t, get_arguments) - 176usize];
12235    ["Offset of field: _cef_command_line_t::append_argument"]
12236        [::std::mem::offset_of!(_cef_command_line_t, append_argument) - 184usize];
12237    ["Offset of field: _cef_command_line_t::prepend_wrapper"]
12238        [::std::mem::offset_of!(_cef_command_line_t, prepend_wrapper) - 192usize];
12239};
12240#[doc = "\n Structure used to create and/or parse command line arguments. Arguments with\n \"--\", \"-\" and, on Windows, \"/\" prefixes are considered switches. Switches\n will always precede any arguments without switch prefixes. Switches can\n optionally have a value specified using the \"=\" delimiter (e.g.\n \"-switch=value\"). An argument of \"--\" will terminate switch parsing with all\n subsequent tokens, regardless of prefix, being interpreted as non-switch\n arguments. Switch names should be lowercase ASCII and will be converted to\n such if necessary. Switch values will retain the original case and UTF8\n encoding. This structure can be used before cef_initialize() is called.\n\n NOTE: This struct is allocated DLL-side.\n"]
12241pub type cef_command_line_t = _cef_command_line_t;
12242unsafe extern "C" {
12243    #[doc = "\n Create a new cef_command_line_t instance.\n"]
12244    pub fn cef_command_line_create() -> *mut cef_command_line_t;
12245}
12246unsafe extern "C" {
12247    #[doc = "\n Returns the singleton global cef_command_line_t object. The returned object\n will be read-only.\n"]
12248    pub fn cef_command_line_get_global() -> *mut cef_command_line_t;
12249}
12250#[doc = "\n Implement this structure to provide handler implementations. The handler\n instance will not be released until all objects related to the context have\n been destroyed.\n\n NOTE: This struct is allocated client-side.\n"]
12251#[repr(C)]
12252#[derive(Debug, Copy, Clone)]
12253pub struct _cef_request_context_handler_t {
12254    #[doc = "\n Base structure.\n"]
12255    pub base: cef_base_ref_counted_t,
12256    #[doc = "\n Called on the browser process UI thread immediately after the request\n context has been initialized.\n"]
12257    pub on_request_context_initialized: ::std::option::Option<
12258        unsafe extern "C" fn(
12259            self_: *mut _cef_request_context_handler_t,
12260            request_context: *mut _cef_request_context_t,
12261        ),
12262    >,
12263    #[doc = "\n Called on the browser process IO thread before a resource request is\n initiated. The |browser| and |frame| values represent the source of the\n request, and may be NULL for requests originating from service workers or\n cef_urlrequest_t. |request| represents the request contents and cannot be\n modified in this callback. |is_navigation| will be true (1) if the\n resource request is a navigation. |is_download| will be true (1) if the\n resource request is a download. |request_initiator| is the origin (scheme\n + domain) of the page that initiated the request. Set\n |disable_default_handling| to true (1) to disable default handling of the\n request, in which case it will need to be handled via\n cef_resource_request_handler_t::GetResourceHandler or it will be canceled.\n To allow the resource load to proceed with default handling return NULL.\n To specify a handler for the resource return a\n cef_resource_request_handler_t object. This function will not be called if\n the client associated with |browser| returns a non-NULL value from\n cef_request_handler_t::GetResourceRequestHandler for the same request\n (identified by cef_request_t::GetIdentifier).\n"]
12264    pub get_resource_request_handler: ::std::option::Option<
12265        unsafe extern "C" fn(
12266            self_: *mut _cef_request_context_handler_t,
12267            browser: *mut _cef_browser_t,
12268            frame: *mut _cef_frame_t,
12269            request: *mut _cef_request_t,
12270            is_navigation: ::std::os::raw::c_int,
12271            is_download: ::std::os::raw::c_int,
12272            request_initiator: *const cef_string_t,
12273            disable_default_handling: *mut ::std::os::raw::c_int,
12274        ) -> *mut _cef_resource_request_handler_t,
12275    >,
12276}
12277#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12278const _: () = {
12279    ["Size of _cef_request_context_handler_t"]
12280        [::std::mem::size_of::<_cef_request_context_handler_t>() - 56usize];
12281    ["Alignment of _cef_request_context_handler_t"]
12282        [::std::mem::align_of::<_cef_request_context_handler_t>() - 8usize];
12283    ["Offset of field: _cef_request_context_handler_t::base"]
12284        [::std::mem::offset_of!(_cef_request_context_handler_t, base) - 0usize];
12285    ["Offset of field: _cef_request_context_handler_t::on_request_context_initialized"][::std::mem::offset_of!(
12286        _cef_request_context_handler_t,
12287        on_request_context_initialized
12288    )
12289        - 40usize];
12290    ["Offset of field: _cef_request_context_handler_t::get_resource_request_handler"][::std::mem::offset_of!(
12291        _cef_request_context_handler_t,
12292        get_resource_request_handler
12293    ) - 48usize];
12294};
12295#[doc = "\n Implement this structure to provide handler implementations. The handler\n instance will not be released until all objects related to the context have\n been destroyed.\n\n NOTE: This struct is allocated client-side.\n"]
12296pub type cef_request_context_handler_t = _cef_request_context_handler_t;
12297#[doc = "\n Structure used to implement browser process callbacks. The functions of this\n structure will be called on the browser process main thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
12298#[repr(C)]
12299#[derive(Debug, Copy, Clone)]
12300pub struct _cef_browser_process_handler_t {
12301    #[doc = "\n Base structure.\n"]
12302    pub base: cef_base_ref_counted_t,
12303    #[doc = "\n Provides an opportunity to register custom preferences prior to global and\n request context initialization.\n\n If |type| is CEF_PREFERENCES_TYPE_GLOBAL the registered preferences can be\n accessed via cef_preference_manager_t::GetGlobalPreferences after\n OnContextInitialized is called. Global preferences are registered a single\n time at application startup. See related cef_settings_t.cache_path\n configuration.\n\n If |type| is CEF_PREFERENCES_TYPE_REQUEST_CONTEXT the preferences can be\n accessed via the cef_request_context_t after\n cef_request_context_handler_t::OnRequestContextInitialized is called.\n Request context preferences are registered each time a new\n cef_request_context_t is created. It is intended but not required that all\n request contexts have the same registered preferences. See related\n cef_request_context_settings_t.cache_path configuration.\n\n Do not keep a reference to the |registrar| object. This function is called\n on the browser process UI thread.\n"]
12304    pub on_register_custom_preferences: ::std::option::Option<
12305        unsafe extern "C" fn(
12306            self_: *mut _cef_browser_process_handler_t,
12307            type_: cef_preferences_type_t,
12308            registrar: *mut _cef_preference_registrar_t,
12309        ),
12310    >,
12311    #[doc = "\n Called on the browser process UI thread immediately after the CEF context\n has been initialized.\n"]
12312    pub on_context_initialized:
12313        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t)>,
12314    #[doc = "\n Called before a child process is launched. Will be called on the browser\n process UI thread when launching a render process and on the browser\n process IO thread when launching a GPU process. Provides an opportunity to\n modify the child process command line. Do not keep a reference to\n |command_line| outside of this function.\n"]
12315    pub on_before_child_process_launch: ::std::option::Option<
12316        unsafe extern "C" fn(
12317            self_: *mut _cef_browser_process_handler_t,
12318            command_line: *mut _cef_command_line_t,
12319        ),
12320    >,
12321    #[doc = "\n Implement this function to provide app-specific behavior when an already\n running app is relaunched with the same CefSettings.root_cache_path value.\n For example, activate an existing app window or create a new app window.\n |command_line| will be read-only. Do not keep a reference to\n |command_line| outside of this function. Return true (1) if the relaunch\n is handled or false (0) for default relaunch behavior. Default behavior\n will create a new default styled Chrome window.\n\n To avoid cache corruption only a single app instance is allowed to run for\n a given CefSettings.root_cache_path value. On relaunch the app checks a\n process singleton lock and then forwards the new launch arguments to the\n already running app process before exiting early. Client apps should\n therefore check the cef_initialize() return value for early exit before\n proceeding.\n\n This function will be called on the browser process UI thread.\n"]
12322    pub on_already_running_app_relaunch: ::std::option::Option<
12323        unsafe extern "C" fn(
12324            self_: *mut _cef_browser_process_handler_t,
12325            command_line: *mut _cef_command_line_t,
12326            current_directory: *const cef_string_t,
12327        ) -> ::std::os::raw::c_int,
12328    >,
12329    #[doc = "\n Called from any thread when work has been scheduled for the browser\n process main (UI) thread. This callback is used in combination with\n cef_settings_t.external_message_pump and cef_do_message_loop_work() in\n cases where the CEF message loop must be integrated into an existing\n application message loop (see additional comments and warnings on\n CefDoMessageLoopWork). This callback should schedule a\n cef_do_message_loop_work() call to happen on the main (UI) thread.\n |delay_ms| is the requested delay in milliseconds. If |delay_ms| is <= 0\n then the call should happen reasonably soon. If |delay_ms| is > 0 then the\n call should be scheduled to happen after the specified delay and any\n currently pending scheduled call should be cancelled.\n"]
12330    pub on_schedule_message_pump_work: ::std::option::Option<
12331        unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t, delay_ms: i64),
12332    >,
12333    #[doc = "\n Return the default client for use with a newly created browser window\n (cef_browser_t object). If null is returned the cef_browser_t will be\n unmanaged (no callbacks will be executed for that cef_browser_t) and\n application shutdown will be blocked until the browser window is closed\n manually. This function is currently only used with Chrome style when\n creating new browser windows via Chrome UI.\n"]
12334    pub get_default_client: ::std::option::Option<
12335        unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t) -> *mut _cef_client_t,
12336    >,
12337    #[doc = "\n Return the default handler for use with a new user or incognito profile\n (cef_request_context_t object). If null is returned the\n cef_request_context_t will be unmanaged (no callbacks will be executed for\n that cef_request_context_t). This function is currently only used with\n Chrome style when creating new browser windows via Chrome UI.\n"]
12338    pub get_default_request_context_handler: ::std::option::Option<
12339        unsafe extern "C" fn(
12340            self_: *mut _cef_browser_process_handler_t,
12341        ) -> *mut _cef_request_context_handler_t,
12342    >,
12343}
12344#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12345const _: () = {
12346    ["Size of _cef_browser_process_handler_t"]
12347        [::std::mem::size_of::<_cef_browser_process_handler_t>() - 96usize];
12348    ["Alignment of _cef_browser_process_handler_t"]
12349        [::std::mem::align_of::<_cef_browser_process_handler_t>() - 8usize];
12350    ["Offset of field: _cef_browser_process_handler_t::base"]
12351        [::std::mem::offset_of!(_cef_browser_process_handler_t, base) - 0usize];
12352    ["Offset of field: _cef_browser_process_handler_t::on_register_custom_preferences"][::std::mem::offset_of!(
12353        _cef_browser_process_handler_t,
12354        on_register_custom_preferences
12355    )
12356        - 40usize];
12357    ["Offset of field: _cef_browser_process_handler_t::on_context_initialized"]
12358        [::std::mem::offset_of!(_cef_browser_process_handler_t, on_context_initialized) - 48usize];
12359    ["Offset of field: _cef_browser_process_handler_t::on_before_child_process_launch"][::std::mem::offset_of!(
12360        _cef_browser_process_handler_t,
12361        on_before_child_process_launch
12362    )
12363        - 56usize];
12364    ["Offset of field: _cef_browser_process_handler_t::on_already_running_app_relaunch"][::std::mem::offset_of!(
12365        _cef_browser_process_handler_t,
12366        on_already_running_app_relaunch
12367    )
12368        - 64usize];
12369    ["Offset of field: _cef_browser_process_handler_t::on_schedule_message_pump_work"][::std::mem::offset_of!(
12370        _cef_browser_process_handler_t,
12371        on_schedule_message_pump_work
12372    ) - 72usize];
12373    ["Offset of field: _cef_browser_process_handler_t::get_default_client"]
12374        [::std::mem::offset_of!(_cef_browser_process_handler_t, get_default_client) - 80usize];
12375    ["Offset of field: _cef_browser_process_handler_t::get_default_request_context_handler"][::std::mem::offset_of!(
12376        _cef_browser_process_handler_t,
12377        get_default_request_context_handler
12378    )
12379        - 88usize];
12380};
12381#[doc = "\n Structure used to implement browser process callbacks. The functions of this\n structure will be called on the browser process main thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
12382pub type cef_browser_process_handler_t = _cef_browser_process_handler_t;
12383#[doc = "\n Implement this structure for asynchronous task execution. If the task is\n posted successfully and if the associated message loop is still running then\n the execute() function will be called on the target thread. If the task\n fails to post then the task object may be destroyed on the source thread\n instead of the target thread. For this reason be cautious when performing\n work in the task object destructor.\n\n NOTE: This struct is allocated client-side.\n"]
12384#[repr(C)]
12385#[derive(Debug, Copy, Clone)]
12386pub struct _cef_task_t {
12387    #[doc = "\n Base structure.\n"]
12388    pub base: cef_base_ref_counted_t,
12389    #[doc = "\n Method that will be executed on the target thread.\n"]
12390    pub execute: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_task_t)>,
12391}
12392#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12393const _: () = {
12394    ["Size of _cef_task_t"][::std::mem::size_of::<_cef_task_t>() - 48usize];
12395    ["Alignment of _cef_task_t"][::std::mem::align_of::<_cef_task_t>() - 8usize];
12396    ["Offset of field: _cef_task_t::base"][::std::mem::offset_of!(_cef_task_t, base) - 0usize];
12397    ["Offset of field: _cef_task_t::execute"]
12398        [::std::mem::offset_of!(_cef_task_t, execute) - 40usize];
12399};
12400#[doc = "\n Implement this structure for asynchronous task execution. If the task is\n posted successfully and if the associated message loop is still running then\n the execute() function will be called on the target thread. If the task\n fails to post then the task object may be destroyed on the source thread\n instead of the target thread. For this reason be cautious when performing\n work in the task object destructor.\n\n NOTE: This struct is allocated client-side.\n"]
12401pub type cef_task_t = _cef_task_t;
12402#[doc = "\n Structure that asynchronously executes tasks on the associated thread. It is\n safe to call the functions of this structure on any thread.\n\n CEF maintains multiple internal threads that are used for handling different\n types of tasks in different processes. The cef_thread_id_t definitions in\n cef_types.h list the common CEF threads. Task runners are also available for\n other CEF threads as appropriate (for example, V8 WebWorker threads).\n\n NOTE: This struct is allocated DLL-side.\n"]
12403#[repr(C)]
12404#[derive(Debug, Copy, Clone)]
12405pub struct _cef_task_runner_t {
12406    #[doc = "\n Base structure.\n"]
12407    pub base: cef_base_ref_counted_t,
12408    #[doc = "\n Returns true (1) if this object is pointing to the same task runner as\n |that| object.\n"]
12409    pub is_same: ::std::option::Option<
12410        unsafe extern "C" fn(
12411            self_: *mut _cef_task_runner_t,
12412            that: *mut _cef_task_runner_t,
12413        ) -> ::std::os::raw::c_int,
12414    >,
12415    #[doc = "\n Returns true (1) if this task runner belongs to the current thread.\n"]
12416    pub belongs_to_current_thread: ::std::option::Option<
12417        unsafe extern "C" fn(self_: *mut _cef_task_runner_t) -> ::std::os::raw::c_int,
12418    >,
12419    #[doc = "\n Returns true (1) if this task runner is for the specified CEF thread.\n"]
12420    pub belongs_to_thread: ::std::option::Option<
12421        unsafe extern "C" fn(
12422            self_: *mut _cef_task_runner_t,
12423            threadId: cef_thread_id_t,
12424        ) -> ::std::os::raw::c_int,
12425    >,
12426    #[doc = "\n Post a task for execution on the thread associated with this task runner.\n Execution will occur asynchronously.\n"]
12427    pub post_task: ::std::option::Option<
12428        unsafe extern "C" fn(
12429            self_: *mut _cef_task_runner_t,
12430            task: *mut _cef_task_t,
12431        ) -> ::std::os::raw::c_int,
12432    >,
12433    #[doc = "\n Post a task for delayed execution on the thread associated with this task\n runner. Execution will occur asynchronously. Delayed tasks are not\n supported on V8 WebWorker threads and will be executed without the\n specified delay.\n"]
12434    pub post_delayed_task: ::std::option::Option<
12435        unsafe extern "C" fn(
12436            self_: *mut _cef_task_runner_t,
12437            task: *mut _cef_task_t,
12438            delay_ms: i64,
12439        ) -> ::std::os::raw::c_int,
12440    >,
12441}
12442#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12443const _: () = {
12444    ["Size of _cef_task_runner_t"][::std::mem::size_of::<_cef_task_runner_t>() - 80usize];
12445    ["Alignment of _cef_task_runner_t"][::std::mem::align_of::<_cef_task_runner_t>() - 8usize];
12446    ["Offset of field: _cef_task_runner_t::base"]
12447        [::std::mem::offset_of!(_cef_task_runner_t, base) - 0usize];
12448    ["Offset of field: _cef_task_runner_t::is_same"]
12449        [::std::mem::offset_of!(_cef_task_runner_t, is_same) - 40usize];
12450    ["Offset of field: _cef_task_runner_t::belongs_to_current_thread"]
12451        [::std::mem::offset_of!(_cef_task_runner_t, belongs_to_current_thread) - 48usize];
12452    ["Offset of field: _cef_task_runner_t::belongs_to_thread"]
12453        [::std::mem::offset_of!(_cef_task_runner_t, belongs_to_thread) - 56usize];
12454    ["Offset of field: _cef_task_runner_t::post_task"]
12455        [::std::mem::offset_of!(_cef_task_runner_t, post_task) - 64usize];
12456    ["Offset of field: _cef_task_runner_t::post_delayed_task"]
12457        [::std::mem::offset_of!(_cef_task_runner_t, post_delayed_task) - 72usize];
12458};
12459#[doc = "\n Structure that asynchronously executes tasks on the associated thread. It is\n safe to call the functions of this structure on any thread.\n\n CEF maintains multiple internal threads that are used for handling different\n types of tasks in different processes. The cef_thread_id_t definitions in\n cef_types.h list the common CEF threads. Task runners are also available for\n other CEF threads as appropriate (for example, V8 WebWorker threads).\n\n NOTE: This struct is allocated DLL-side.\n"]
12460pub type cef_task_runner_t = _cef_task_runner_t;
12461unsafe extern "C" {
12462    #[doc = "\n Returns the task runner for the current thread. Only CEF threads will have\n task runners. An NULL reference will be returned if this function is called\n on an invalid thread.\n"]
12463    pub fn cef_task_runner_get_for_current_thread() -> *mut cef_task_runner_t;
12464}
12465unsafe extern "C" {
12466    #[doc = "\n Returns the task runner for the specified CEF thread.\n"]
12467    pub fn cef_task_runner_get_for_thread(threadId: cef_thread_id_t) -> *mut cef_task_runner_t;
12468}
12469unsafe extern "C" {
12470    #[doc = "\n Returns true (1) if called on the specified thread. Equivalent to using\n cef_task_runner_t::GetForThread(threadId)->belongs_to_current_thread().\n"]
12471    pub fn cef_currently_on(threadId: cef_thread_id_t) -> ::std::os::raw::c_int;
12472}
12473unsafe extern "C" {
12474    #[doc = "\n Post a task for execution on the specified thread. Equivalent to using\n cef_task_runner_t::GetForThread(threadId)->PostTask(task).\n"]
12475    pub fn cef_post_task(threadId: cef_thread_id_t, task: *mut cef_task_t)
12476        -> ::std::os::raw::c_int;
12477}
12478unsafe extern "C" {
12479    #[doc = "\n Post a task for delayed execution on the specified thread. Equivalent to\n using cef_task_runner_t::GetForThread(threadId)->PostDelayedTask(task,\n delay_ms).\n"]
12480    pub fn cef_post_delayed_task(
12481        threadId: cef_thread_id_t,
12482        task: *mut cef_task_t,
12483        delay_ms: i64,
12484    ) -> ::std::os::raw::c_int;
12485}
12486#[doc = "\n Structure representing a V8 context handle. V8 handles can only be accessed\n from the thread on which they are created. Valid threads for creating a V8\n handle include the render process main thread (TID_RENDERER) and WebWorker\n threads. A task runner for posting tasks on the associated thread can be\n retrieved via the cef_v8_context_t::get_task_runner() function.\n\n NOTE: This struct is allocated DLL-side.\n"]
12487#[repr(C)]
12488#[derive(Debug, Copy, Clone)]
12489pub struct _cef_v8_context_t {
12490    #[doc = "\n Base structure.\n"]
12491    pub base: cef_base_ref_counted_t,
12492    #[doc = "\n Returns the task runner associated with this context. V8 handles can only\n be accessed from the thread on which they are created. This function can\n be called on any render process thread.\n"]
12493    pub get_task_runner: ::std::option::Option<
12494        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_task_runner_t,
12495    >,
12496    #[doc = "\n Returns true (1) if the underlying handle is valid and it can be accessed\n on the current thread. Do not call any other functions if this function\n returns false (0).\n"]
12497    pub is_valid: ::std::option::Option<
12498        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12499    >,
12500    #[doc = "\n Returns the browser for this context. This function will return an NULL\n reference for WebWorker contexts.\n"]
12501    pub get_browser: ::std::option::Option<
12502        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_browser_t,
12503    >,
12504    #[doc = "\n Returns the frame for this context. This function will return an NULL\n reference for WebWorker contexts.\n"]
12505    pub get_frame: ::std::option::Option<
12506        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_frame_t,
12507    >,
12508    #[doc = "\n Returns the global object for this context. The context must be entered\n before calling this function.\n"]
12509    pub get_global: ::std::option::Option<
12510        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_v8_value_t,
12511    >,
12512    #[doc = "\n Enter this context. A context must be explicitly entered before creating a\n V8 Object, Array, Function or Date asynchronously. exit() must be called\n the same number of times as enter() before releasing this context. V8\n objects belong to the context in which they are created. Returns true (1)\n if the scope was entered successfully.\n"]
12513    pub enter: ::std::option::Option<
12514        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12515    >,
12516    #[doc = "\n Exit this context. Call this function only after calling enter(). Returns\n true (1) if the scope was exited successfully.\n"]
12517    pub exit: ::std::option::Option<
12518        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12519    >,
12520    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
12521    pub is_same: ::std::option::Option<
12522        unsafe extern "C" fn(
12523            self_: *mut _cef_v8_context_t,
12524            that: *mut _cef_v8_context_t,
12525        ) -> ::std::os::raw::c_int,
12526    >,
12527    #[doc = "\n Execute a string of JavaScript code in this V8 context. The |script_url|\n parameter is the URL where the script in question can be found, if any.\n The |start_line| parameter is the base line number to use for error\n reporting. On success |retval| will be set to the return value, if any,\n and the function will return true (1). On failure |exception| will be set\n to the exception, if any, and the function will return false (0).\n"]
12528    pub eval: ::std::option::Option<
12529        unsafe extern "C" fn(
12530            self_: *mut _cef_v8_context_t,
12531            code: *const cef_string_t,
12532            script_url: *const cef_string_t,
12533            start_line: ::std::os::raw::c_int,
12534            retval: *mut *mut _cef_v8_value_t,
12535            exception: *mut *mut _cef_v8_exception_t,
12536        ) -> ::std::os::raw::c_int,
12537    >,
12538}
12539#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12540const _: () = {
12541    ["Size of _cef_v8_context_t"][::std::mem::size_of::<_cef_v8_context_t>() - 112usize];
12542    ["Alignment of _cef_v8_context_t"][::std::mem::align_of::<_cef_v8_context_t>() - 8usize];
12543    ["Offset of field: _cef_v8_context_t::base"]
12544        [::std::mem::offset_of!(_cef_v8_context_t, base) - 0usize];
12545    ["Offset of field: _cef_v8_context_t::get_task_runner"]
12546        [::std::mem::offset_of!(_cef_v8_context_t, get_task_runner) - 40usize];
12547    ["Offset of field: _cef_v8_context_t::is_valid"]
12548        [::std::mem::offset_of!(_cef_v8_context_t, is_valid) - 48usize];
12549    ["Offset of field: _cef_v8_context_t::get_browser"]
12550        [::std::mem::offset_of!(_cef_v8_context_t, get_browser) - 56usize];
12551    ["Offset of field: _cef_v8_context_t::get_frame"]
12552        [::std::mem::offset_of!(_cef_v8_context_t, get_frame) - 64usize];
12553    ["Offset of field: _cef_v8_context_t::get_global"]
12554        [::std::mem::offset_of!(_cef_v8_context_t, get_global) - 72usize];
12555    ["Offset of field: _cef_v8_context_t::enter"]
12556        [::std::mem::offset_of!(_cef_v8_context_t, enter) - 80usize];
12557    ["Offset of field: _cef_v8_context_t::exit"]
12558        [::std::mem::offset_of!(_cef_v8_context_t, exit) - 88usize];
12559    ["Offset of field: _cef_v8_context_t::is_same"]
12560        [::std::mem::offset_of!(_cef_v8_context_t, is_same) - 96usize];
12561    ["Offset of field: _cef_v8_context_t::eval"]
12562        [::std::mem::offset_of!(_cef_v8_context_t, eval) - 104usize];
12563};
12564#[doc = "\n Structure representing a V8 context handle. V8 handles can only be accessed\n from the thread on which they are created. Valid threads for creating a V8\n handle include the render process main thread (TID_RENDERER) and WebWorker\n threads. A task runner for posting tasks on the associated thread can be\n retrieved via the cef_v8_context_t::get_task_runner() function.\n\n NOTE: This struct is allocated DLL-side.\n"]
12565pub type cef_v8_context_t = _cef_v8_context_t;
12566unsafe extern "C" {
12567    #[doc = "\n Returns the current (top) context object in the V8 context stack.\n"]
12568    pub fn cef_v8_context_get_current_context() -> *mut cef_v8_context_t;
12569}
12570unsafe extern "C" {
12571    #[doc = "\n Returns the entered (bottom) context object in the V8 context stack.\n"]
12572    pub fn cef_v8_context_get_entered_context() -> *mut cef_v8_context_t;
12573}
12574unsafe extern "C" {
12575    #[doc = "\n Returns true (1) if V8 is currently inside a context.\n"]
12576    pub fn cef_v8_context_in_context() -> ::std::os::raw::c_int;
12577}
12578#[doc = "\n Structure that should be implemented to handle V8 function calls. The\n functions of this structure will be called on the thread associated with the\n V8 function.\n\n NOTE: This struct is allocated client-side.\n"]
12579#[repr(C)]
12580#[derive(Debug, Copy, Clone)]
12581pub struct _cef_v8_handler_t {
12582    #[doc = "\n Base structure.\n"]
12583    pub base: cef_base_ref_counted_t,
12584    #[doc = "\n Handle execution of the function identified by |name|. |object| is the\n receiver ('this' object) of the function. |arguments| is the list of\n arguments passed to the function. If execution succeeds set |retval| to\n the function return value. If execution fails set |exception| to the\n exception that will be thrown. Return true (1) if execution was handled.\n"]
12585    pub execute: ::std::option::Option<
12586        unsafe extern "C" fn(
12587            self_: *mut _cef_v8_handler_t,
12588            name: *const cef_string_t,
12589            object: *mut _cef_v8_value_t,
12590            argumentsCount: usize,
12591            arguments: *const *mut _cef_v8_value_t,
12592            retval: *mut *mut _cef_v8_value_t,
12593            exception: *mut cef_string_t,
12594        ) -> ::std::os::raw::c_int,
12595    >,
12596}
12597#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12598const _: () = {
12599    ["Size of _cef_v8_handler_t"][::std::mem::size_of::<_cef_v8_handler_t>() - 48usize];
12600    ["Alignment of _cef_v8_handler_t"][::std::mem::align_of::<_cef_v8_handler_t>() - 8usize];
12601    ["Offset of field: _cef_v8_handler_t::base"]
12602        [::std::mem::offset_of!(_cef_v8_handler_t, base) - 0usize];
12603    ["Offset of field: _cef_v8_handler_t::execute"]
12604        [::std::mem::offset_of!(_cef_v8_handler_t, execute) - 40usize];
12605};
12606#[doc = "\n Structure that should be implemented to handle V8 function calls. The\n functions of this structure will be called on the thread associated with the\n V8 function.\n\n NOTE: This struct is allocated client-side.\n"]
12607pub type cef_v8_handler_t = _cef_v8_handler_t;
12608#[doc = "\n Structure that should be implemented to handle V8 accessor calls. Accessor\n identifiers are registered by calling cef_v8_value_t::set_value(). The\n functions of this structure will be called on the thread associated with the\n V8 accessor.\n\n NOTE: This struct is allocated client-side.\n"]
12609#[repr(C)]
12610#[derive(Debug, Copy, Clone)]
12611pub struct _cef_v8_accessor_t {
12612    #[doc = "\n Base structure.\n"]
12613    pub base: cef_base_ref_counted_t,
12614    #[doc = "\n Handle retrieval the accessor value identified by |name|. |object| is the\n receiver ('this' object) of the accessor. If retrieval succeeds set\n |retval| to the return value. If retrieval fails set |exception| to the\n exception that will be thrown. Return true (1) if accessor retrieval was\n handled.\n"]
12615    pub get: ::std::option::Option<
12616        unsafe extern "C" fn(
12617            self_: *mut _cef_v8_accessor_t,
12618            name: *const cef_string_t,
12619            object: *mut _cef_v8_value_t,
12620            retval: *mut *mut _cef_v8_value_t,
12621            exception: *mut cef_string_t,
12622        ) -> ::std::os::raw::c_int,
12623    >,
12624    #[doc = "\n Handle assignment of the accessor value identified by |name|. |object| is\n the receiver ('this' object) of the accessor. |value| is the new value\n being assigned to the accessor. If assignment fails set |exception| to the\n exception that will be thrown. Return true (1) if accessor assignment was\n handled.\n"]
12625    pub set: ::std::option::Option<
12626        unsafe extern "C" fn(
12627            self_: *mut _cef_v8_accessor_t,
12628            name: *const cef_string_t,
12629            object: *mut _cef_v8_value_t,
12630            value: *mut _cef_v8_value_t,
12631            exception: *mut cef_string_t,
12632        ) -> ::std::os::raw::c_int,
12633    >,
12634}
12635#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12636const _: () = {
12637    ["Size of _cef_v8_accessor_t"][::std::mem::size_of::<_cef_v8_accessor_t>() - 56usize];
12638    ["Alignment of _cef_v8_accessor_t"][::std::mem::align_of::<_cef_v8_accessor_t>() - 8usize];
12639    ["Offset of field: _cef_v8_accessor_t::base"]
12640        [::std::mem::offset_of!(_cef_v8_accessor_t, base) - 0usize];
12641    ["Offset of field: _cef_v8_accessor_t::get"]
12642        [::std::mem::offset_of!(_cef_v8_accessor_t, get) - 40usize];
12643    ["Offset of field: _cef_v8_accessor_t::set"]
12644        [::std::mem::offset_of!(_cef_v8_accessor_t, set) - 48usize];
12645};
12646#[doc = "\n Structure that should be implemented to handle V8 accessor calls. Accessor\n identifiers are registered by calling cef_v8_value_t::set_value(). The\n functions of this structure will be called on the thread associated with the\n V8 accessor.\n\n NOTE: This struct is allocated client-side.\n"]
12647pub type cef_v8_accessor_t = _cef_v8_accessor_t;
12648#[doc = "\n Structure that should be implemented to handle V8 interceptor calls. The\n functions of this structure will be called on the thread associated with the\n V8 interceptor. Interceptor's named property handlers (with first argument\n of type CefString) are called when object is indexed by string. Indexed\n property handlers (with first argument of type int) are called when object\n is indexed by integer.\n\n NOTE: This struct is allocated client-side.\n"]
12649#[repr(C)]
12650#[derive(Debug, Copy, Clone)]
12651pub struct _cef_v8_interceptor_t {
12652    #[doc = "\n Base structure.\n"]
12653    pub base: cef_base_ref_counted_t,
12654    #[doc = "\n Handle retrieval of the interceptor value identified by |name|. |object|\n is the receiver ('this' object) of the interceptor. If retrieval succeeds,\n set |retval| to the return value. If the requested value does not exist,\n don't set either |retval| or |exception|. If retrieval fails, set\n |exception| to the exception that will be thrown. If the property has an\n associated accessor, it will be called only if you don't set |retval|.\n Return true (1) if interceptor retrieval was handled, false (0) otherwise.\n"]
12655    pub get_byname: ::std::option::Option<
12656        unsafe extern "C" fn(
12657            self_: *mut _cef_v8_interceptor_t,
12658            name: *const cef_string_t,
12659            object: *mut _cef_v8_value_t,
12660            retval: *mut *mut _cef_v8_value_t,
12661            exception: *mut cef_string_t,
12662        ) -> ::std::os::raw::c_int,
12663    >,
12664    #[doc = "\n Handle retrieval of the interceptor value identified by |index|. |object|\n is the receiver ('this' object) of the interceptor. If retrieval succeeds,\n set |retval| to the return value. If the requested value does not exist,\n don't set either |retval| or |exception|. If retrieval fails, set\n |exception| to the exception that will be thrown. Return true (1) if\n interceptor retrieval was handled, false (0) otherwise.\n"]
12665    pub get_byindex: ::std::option::Option<
12666        unsafe extern "C" fn(
12667            self_: *mut _cef_v8_interceptor_t,
12668            index: ::std::os::raw::c_int,
12669            object: *mut _cef_v8_value_t,
12670            retval: *mut *mut _cef_v8_value_t,
12671            exception: *mut cef_string_t,
12672        ) -> ::std::os::raw::c_int,
12673    >,
12674    #[doc = "\n Handle assignment of the interceptor value identified by |name|. |object|\n is the receiver ('this' object) of the interceptor. |value| is the new\n value being assigned to the interceptor. If assignment fails, set\n |exception| to the exception that will be thrown. This setter will always\n be called, even when the property has an associated accessor. Return true\n (1) if interceptor assignment was handled, false (0) otherwise.\n"]
12675    pub set_byname: ::std::option::Option<
12676        unsafe extern "C" fn(
12677            self_: *mut _cef_v8_interceptor_t,
12678            name: *const cef_string_t,
12679            object: *mut _cef_v8_value_t,
12680            value: *mut _cef_v8_value_t,
12681            exception: *mut cef_string_t,
12682        ) -> ::std::os::raw::c_int,
12683    >,
12684    #[doc = "\n Handle assignment of the interceptor value identified by |index|. |object|\n is the receiver ('this' object) of the interceptor. |value| is the new\n value being assigned to the interceptor. If assignment fails, set\n |exception| to the exception that will be thrown. Return true (1) if\n interceptor assignment was handled, false (0) otherwise.\n"]
12685    pub set_byindex: ::std::option::Option<
12686        unsafe extern "C" fn(
12687            self_: *mut _cef_v8_interceptor_t,
12688            index: ::std::os::raw::c_int,
12689            object: *mut _cef_v8_value_t,
12690            value: *mut _cef_v8_value_t,
12691            exception: *mut cef_string_t,
12692        ) -> ::std::os::raw::c_int,
12693    >,
12694}
12695#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12696const _: () = {
12697    ["Size of _cef_v8_interceptor_t"][::std::mem::size_of::<_cef_v8_interceptor_t>() - 72usize];
12698    ["Alignment of _cef_v8_interceptor_t"]
12699        [::std::mem::align_of::<_cef_v8_interceptor_t>() - 8usize];
12700    ["Offset of field: _cef_v8_interceptor_t::base"]
12701        [::std::mem::offset_of!(_cef_v8_interceptor_t, base) - 0usize];
12702    ["Offset of field: _cef_v8_interceptor_t::get_byname"]
12703        [::std::mem::offset_of!(_cef_v8_interceptor_t, get_byname) - 40usize];
12704    ["Offset of field: _cef_v8_interceptor_t::get_byindex"]
12705        [::std::mem::offset_of!(_cef_v8_interceptor_t, get_byindex) - 48usize];
12706    ["Offset of field: _cef_v8_interceptor_t::set_byname"]
12707        [::std::mem::offset_of!(_cef_v8_interceptor_t, set_byname) - 56usize];
12708    ["Offset of field: _cef_v8_interceptor_t::set_byindex"]
12709        [::std::mem::offset_of!(_cef_v8_interceptor_t, set_byindex) - 64usize];
12710};
12711#[doc = "\n Structure that should be implemented to handle V8 interceptor calls. The\n functions of this structure will be called on the thread associated with the\n V8 interceptor. Interceptor's named property handlers (with first argument\n of type CefString) are called when object is indexed by string. Indexed\n property handlers (with first argument of type int) are called when object\n is indexed by integer.\n\n NOTE: This struct is allocated client-side.\n"]
12712pub type cef_v8_interceptor_t = _cef_v8_interceptor_t;
12713#[doc = "\n Structure representing a V8 exception. The functions of this structure may\n be called on any render process thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
12714#[repr(C)]
12715#[derive(Debug, Copy, Clone)]
12716pub struct _cef_v8_exception_t {
12717    #[doc = "\n Base structure.\n"]
12718    pub base: cef_base_ref_counted_t,
12719    #[doc = "\n Returns the exception message.\n"]
12720    pub get_message: ::std::option::Option<
12721        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
12722    >,
12723    #[doc = "\n Returns the line of source code that the exception occurred within.\n"]
12724    pub get_source_line: ::std::option::Option<
12725        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
12726    >,
12727    #[doc = "\n Returns the resource name for the script from where the function causing\n the error originates.\n"]
12728    pub get_script_resource_name: ::std::option::Option<
12729        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
12730    >,
12731    #[doc = "\n Returns the 1-based number of the line where the error occurred or 0 if\n the line number is unknown.\n"]
12732    pub get_line_number: ::std::option::Option<
12733        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
12734    >,
12735    #[doc = "\n Returns the index within the script of the first character where the error\n occurred.\n"]
12736    pub get_start_position: ::std::option::Option<
12737        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
12738    >,
12739    #[doc = "\n Returns the index within the script of the last character where the error\n occurred.\n"]
12740    pub get_end_position: ::std::option::Option<
12741        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
12742    >,
12743    #[doc = "\n Returns the index within the line of the first character where the error\n occurred.\n"]
12744    pub get_start_column: ::std::option::Option<
12745        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
12746    >,
12747    #[doc = "\n Returns the index within the line of the last character where the error\n occurred.\n"]
12748    pub get_end_column: ::std::option::Option<
12749        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
12750    >,
12751}
12752#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12753const _: () = {
12754    ["Size of _cef_v8_exception_t"][::std::mem::size_of::<_cef_v8_exception_t>() - 104usize];
12755    ["Alignment of _cef_v8_exception_t"][::std::mem::align_of::<_cef_v8_exception_t>() - 8usize];
12756    ["Offset of field: _cef_v8_exception_t::base"]
12757        [::std::mem::offset_of!(_cef_v8_exception_t, base) - 0usize];
12758    ["Offset of field: _cef_v8_exception_t::get_message"]
12759        [::std::mem::offset_of!(_cef_v8_exception_t, get_message) - 40usize];
12760    ["Offset of field: _cef_v8_exception_t::get_source_line"]
12761        [::std::mem::offset_of!(_cef_v8_exception_t, get_source_line) - 48usize];
12762    ["Offset of field: _cef_v8_exception_t::get_script_resource_name"]
12763        [::std::mem::offset_of!(_cef_v8_exception_t, get_script_resource_name) - 56usize];
12764    ["Offset of field: _cef_v8_exception_t::get_line_number"]
12765        [::std::mem::offset_of!(_cef_v8_exception_t, get_line_number) - 64usize];
12766    ["Offset of field: _cef_v8_exception_t::get_start_position"]
12767        [::std::mem::offset_of!(_cef_v8_exception_t, get_start_position) - 72usize];
12768    ["Offset of field: _cef_v8_exception_t::get_end_position"]
12769        [::std::mem::offset_of!(_cef_v8_exception_t, get_end_position) - 80usize];
12770    ["Offset of field: _cef_v8_exception_t::get_start_column"]
12771        [::std::mem::offset_of!(_cef_v8_exception_t, get_start_column) - 88usize];
12772    ["Offset of field: _cef_v8_exception_t::get_end_column"]
12773        [::std::mem::offset_of!(_cef_v8_exception_t, get_end_column) - 96usize];
12774};
12775#[doc = "\n Structure representing a V8 exception. The functions of this structure may\n be called on any render process thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
12776pub type cef_v8_exception_t = _cef_v8_exception_t;
12777#[doc = "\n Callback structure that is passed to cef_v8_value_t::CreateArrayBuffer.\n\n NOTE: This struct is allocated client-side.\n"]
12778#[repr(C)]
12779#[derive(Debug, Copy, Clone)]
12780pub struct _cef_v8_array_buffer_release_callback_t {
12781    #[doc = "\n Base structure.\n"]
12782    pub base: cef_base_ref_counted_t,
12783    #[doc = "\n Called to release |buffer| when the ArrayBuffer JS object is garbage\n collected. |buffer| is the value that was passed to CreateArrayBuffer\n along with this object.\n"]
12784    pub release_buffer: ::std::option::Option<
12785        unsafe extern "C" fn(
12786            self_: *mut _cef_v8_array_buffer_release_callback_t,
12787            buffer: *mut ::std::os::raw::c_void,
12788        ),
12789    >,
12790}
12791#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12792const _: () = {
12793    ["Size of _cef_v8_array_buffer_release_callback_t"]
12794        [::std::mem::size_of::<_cef_v8_array_buffer_release_callback_t>() - 48usize];
12795    ["Alignment of _cef_v8_array_buffer_release_callback_t"]
12796        [::std::mem::align_of::<_cef_v8_array_buffer_release_callback_t>() - 8usize];
12797    ["Offset of field: _cef_v8_array_buffer_release_callback_t::base"]
12798        [::std::mem::offset_of!(_cef_v8_array_buffer_release_callback_t, base) - 0usize];
12799    ["Offset of field: _cef_v8_array_buffer_release_callback_t::release_buffer"]
12800        [::std::mem::offset_of!(_cef_v8_array_buffer_release_callback_t, release_buffer) - 40usize];
12801};
12802#[doc = "\n Callback structure that is passed to cef_v8_value_t::CreateArrayBuffer.\n\n NOTE: This struct is allocated client-side.\n"]
12803pub type cef_v8_array_buffer_release_callback_t = _cef_v8_array_buffer_release_callback_t;
12804#[doc = "\n Structure representing a V8 value handle. V8 handles can only be accessed\n from the thread on which they are created. Valid threads for creating a V8\n handle include the render process main thread (TID_RENDERER) and WebWorker\n threads. A task runner for posting tasks on the associated thread can be\n retrieved via the cef_v8_context_t::get_task_runner() function.\n\n NOTE: This struct is allocated DLL-side.\n"]
12805#[repr(C)]
12806#[derive(Debug, Copy, Clone)]
12807pub struct _cef_v8_value_t {
12808    #[doc = "\n Base structure.\n"]
12809    pub base: cef_base_ref_counted_t,
12810    #[doc = "\n Returns true (1) if the underlying handle is valid and it can be accessed\n on the current thread. Do not call any other functions if this function\n returns false (0).\n"]
12811    pub is_valid: ::std::option::Option<
12812        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12813    >,
12814    #[doc = "\n True if the value type is undefined.\n"]
12815    pub is_undefined: ::std::option::Option<
12816        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12817    >,
12818    #[doc = "\n True if the value type is null.\n"]
12819    pub is_null: ::std::option::Option<
12820        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12821    >,
12822    #[doc = "\n True if the value type is bool.\n"]
12823    pub is_bool: ::std::option::Option<
12824        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12825    >,
12826    #[doc = "\n True if the value type is int.\n"]
12827    pub is_int: ::std::option::Option<
12828        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12829    >,
12830    #[doc = "\n True if the value type is unsigned int.\n"]
12831    pub is_uint: ::std::option::Option<
12832        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12833    >,
12834    #[doc = "\n True if the value type is double.\n"]
12835    pub is_double: ::std::option::Option<
12836        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12837    >,
12838    #[doc = "\n True if the value type is Date.\n"]
12839    pub is_date: ::std::option::Option<
12840        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12841    >,
12842    #[doc = "\n True if the value type is string.\n"]
12843    pub is_string: ::std::option::Option<
12844        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12845    >,
12846    #[doc = "\n True if the value type is object.\n"]
12847    pub is_object: ::std::option::Option<
12848        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12849    >,
12850    #[doc = "\n True if the value type is array.\n"]
12851    pub is_array: ::std::option::Option<
12852        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12853    >,
12854    #[doc = "\n True if the value type is an ArrayBuffer.\n"]
12855    pub is_array_buffer: ::std::option::Option<
12856        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12857    >,
12858    #[doc = "\n True if the value type is function.\n"]
12859    pub is_function: ::std::option::Option<
12860        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12861    >,
12862    #[doc = "\n True if the value type is a Promise.\n"]
12863    pub is_promise: ::std::option::Option<
12864        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12865    >,
12866    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
12867    pub is_same: ::std::option::Option<
12868        unsafe extern "C" fn(
12869            self_: *mut _cef_v8_value_t,
12870            that: *mut _cef_v8_value_t,
12871        ) -> ::std::os::raw::c_int,
12872    >,
12873    #[doc = "\n Return a bool value.\n"]
12874    pub get_bool_value: ::std::option::Option<
12875        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12876    >,
12877    #[doc = "\n Return an int value.\n"]
12878    pub get_int_value:
12879        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> i32>,
12880    #[doc = "\n Return an unsigned int value.\n"]
12881    pub get_uint_value:
12882        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> u32>,
12883    #[doc = "\n Return a double value.\n"]
12884    pub get_double_value:
12885        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> f64>,
12886    #[doc = "\n Return a Date value.\n"]
12887    pub get_date_value:
12888        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_basetime_t>,
12889    #[doc = "\n Return a string value.\n"]
12890    pub get_string_value: ::std::option::Option<
12891        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_string_userfree_t,
12892    >,
12893    #[doc = "\n Returns true (1) if this is a user created object.\n"]
12894    pub is_user_created: ::std::option::Option<
12895        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12896    >,
12897    #[doc = "\n Returns true (1) if the last function call resulted in an exception. This\n attribute exists only in the scope of the current CEF value object.\n"]
12898    pub has_exception: ::std::option::Option<
12899        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12900    >,
12901    #[doc = "\n Returns the exception resulting from the last function call. This\n attribute exists only in the scope of the current CEF value object.\n"]
12902    pub get_exception: ::std::option::Option<
12903        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_v8_exception_t,
12904    >,
12905    #[doc = "\n Clears the last exception and returns true (1) on success.\n"]
12906    pub clear_exception: ::std::option::Option<
12907        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12908    >,
12909    #[doc = "\n Returns true (1) if this object will re-throw future exceptions. This\n attribute exists only in the scope of the current CEF value object.\n"]
12910    pub will_rethrow_exceptions: ::std::option::Option<
12911        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
12912    >,
12913    #[doc = "\n Set whether this object will re-throw future exceptions. By default\n exceptions are not re-thrown. If a exception is re-thrown the current\n context should not be accessed again until after the exception has been\n caught and not re-thrown. Returns true (1) on success. This attribute\n exists only in the scope of the current CEF value object.\n"]
12914    pub set_rethrow_exceptions: ::std::option::Option<
12915        unsafe extern "C" fn(
12916            self_: *mut _cef_v8_value_t,
12917            rethrow: ::std::os::raw::c_int,
12918        ) -> ::std::os::raw::c_int,
12919    >,
12920    #[doc = "\n Returns true (1) if the object has a value with the specified identifier.\n"]
12921    pub has_value_bykey: ::std::option::Option<
12922        unsafe extern "C" fn(
12923            self_: *mut _cef_v8_value_t,
12924            key: *const cef_string_t,
12925        ) -> ::std::os::raw::c_int,
12926    >,
12927    #[doc = "\n Returns true (1) if the object has a value with the specified identifier.\n"]
12928    pub has_value_byindex: ::std::option::Option<
12929        unsafe extern "C" fn(
12930            self_: *mut _cef_v8_value_t,
12931            index: ::std::os::raw::c_int,
12932        ) -> ::std::os::raw::c_int,
12933    >,
12934    #[doc = "\n Deletes the value with the specified identifier and returns true (1) on\n success. Returns false (0) if this function is called incorrectly or an\n exception is thrown. For read-only and don't-delete values this function\n will return true (1) even though deletion failed.\n"]
12935    pub delete_value_bykey: ::std::option::Option<
12936        unsafe extern "C" fn(
12937            self_: *mut _cef_v8_value_t,
12938            key: *const cef_string_t,
12939        ) -> ::std::os::raw::c_int,
12940    >,
12941    #[doc = "\n Deletes the value with the specified identifier and returns true (1) on\n success. Returns false (0) if this function is called incorrectly,\n deletion fails or an exception is thrown. For read-only and don't-delete\n values this function will return true (1) even though deletion failed.\n"]
12942    pub delete_value_byindex: ::std::option::Option<
12943        unsafe extern "C" fn(
12944            self_: *mut _cef_v8_value_t,
12945            index: ::std::os::raw::c_int,
12946        ) -> ::std::os::raw::c_int,
12947    >,
12948    #[doc = "\n Returns the value with the specified identifier on success. Returns NULL\n if this function is called incorrectly or an exception is thrown.\n"]
12949    pub get_value_bykey: ::std::option::Option<
12950        unsafe extern "C" fn(
12951            self_: *mut _cef_v8_value_t,
12952            key: *const cef_string_t,
12953        ) -> *mut _cef_v8_value_t,
12954    >,
12955    #[doc = "\n Returns the value with the specified identifier on success. Returns NULL\n if this function is called incorrectly or an exception is thrown.\n"]
12956    pub get_value_byindex: ::std::option::Option<
12957        unsafe extern "C" fn(
12958            self_: *mut _cef_v8_value_t,
12959            index: ::std::os::raw::c_int,
12960        ) -> *mut _cef_v8_value_t,
12961    >,
12962    #[doc = "\n Associates a value with the specified identifier and returns true (1) on\n success. Returns false (0) if this function is called incorrectly or an\n exception is thrown. For read-only values this function will return true\n (1) even though assignment failed.\n"]
12963    pub set_value_bykey: ::std::option::Option<
12964        unsafe extern "C" fn(
12965            self_: *mut _cef_v8_value_t,
12966            key: *const cef_string_t,
12967            value: *mut _cef_v8_value_t,
12968            attribute: cef_v8_propertyattribute_t,
12969        ) -> ::std::os::raw::c_int,
12970    >,
12971    #[doc = "\n Associates a value with the specified identifier and returns true (1) on\n success. Returns false (0) if this function is called incorrectly or an\n exception is thrown. For read-only values this function will return true\n (1) even though assignment failed.\n"]
12972    pub set_value_byindex: ::std::option::Option<
12973        unsafe extern "C" fn(
12974            self_: *mut _cef_v8_value_t,
12975            index: ::std::os::raw::c_int,
12976            value: *mut _cef_v8_value_t,
12977        ) -> ::std::os::raw::c_int,
12978    >,
12979    #[doc = "\n Registers an identifier and returns true (1) on success. Access to the\n identifier will be forwarded to the cef_v8_accessor_t instance passed to\n cef_v8_value_t::cef_v8_value_create_object(). Returns false (0) if this\n function is called incorrectly or an exception is thrown. For read-only\n values this function will return true (1) even though assignment failed.\n"]
12980    pub set_value_byaccessor: ::std::option::Option<
12981        unsafe extern "C" fn(
12982            self_: *mut _cef_v8_value_t,
12983            key: *const cef_string_t,
12984            attribute: cef_v8_propertyattribute_t,
12985        ) -> ::std::os::raw::c_int,
12986    >,
12987    #[doc = "\n Read the keys for the object's values into the specified vector. Integer-\n based keys will also be returned as strings.\n"]
12988    pub get_keys: ::std::option::Option<
12989        unsafe extern "C" fn(
12990            self_: *mut _cef_v8_value_t,
12991            keys: cef_string_list_t,
12992        ) -> ::std::os::raw::c_int,
12993    >,
12994    #[doc = "\n Sets the user data for this object and returns true (1) on success.\n Returns false (0) if this function is called incorrectly. This function\n can only be called on user created objects.\n"]
12995    pub set_user_data: ::std::option::Option<
12996        unsafe extern "C" fn(
12997            self_: *mut _cef_v8_value_t,
12998            user_data: *mut _cef_base_ref_counted_t,
12999        ) -> ::std::os::raw::c_int,
13000    >,
13001    #[doc = "\n Returns the user data, if any, assigned to this object.\n"]
13002    pub get_user_data: ::std::option::Option<
13003        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_base_ref_counted_t,
13004    >,
13005    #[doc = "\n Returns the amount of externally allocated memory registered for the\n object.\n"]
13006    pub get_externally_allocated_memory: ::std::option::Option<
13007        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13008    >,
13009    #[doc = "\n Adjusts the amount of registered external memory for the object. Used to\n give V8 an indication of the amount of externally allocated memory that is\n kept alive by JavaScript objects. V8 uses this information to decide when\n to perform global garbage collection. Each cef_v8_value_t tracks the\n amount of external memory associated with it and automatically decreases\n the global total by the appropriate amount on its destruction.\n |change_in_bytes| specifies the number of bytes to adjust by. This\n function returns the number of bytes associated with the object after the\n adjustment. This function can only be called on user created objects.\n"]
13010    pub adjust_externally_allocated_memory: ::std::option::Option<
13011        unsafe extern "C" fn(
13012            self_: *mut _cef_v8_value_t,
13013            change_in_bytes: ::std::os::raw::c_int,
13014        ) -> ::std::os::raw::c_int,
13015    >,
13016    #[doc = "\n Returns the number of elements in the array.\n"]
13017    pub get_array_length: ::std::option::Option<
13018        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13019    >,
13020    #[doc = "\n Returns the ReleaseCallback object associated with the ArrayBuffer or NULL\n if the ArrayBuffer was not created with CreateArrayBuffer.\n"]
13021    pub get_array_buffer_release_callback: ::std::option::Option<
13022        unsafe extern "C" fn(
13023            self_: *mut _cef_v8_value_t,
13024        ) -> *mut _cef_v8_array_buffer_release_callback_t,
13025    >,
13026    #[doc = "\n Prevent the ArrayBuffer from using it's memory block by setting the length\n to zero. This operation cannot be undone. If the ArrayBuffer was created\n with CreateArrayBuffer then\n cef_v8_array_buffer_release_callback_t::ReleaseBuffer will be called to\n release the underlying buffer.\n"]
13027    pub neuter_array_buffer: ::std::option::Option<
13028        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13029    >,
13030    #[doc = "\n Returns the length (in bytes) of the ArrayBuffer.\n"]
13031    pub get_array_buffer_byte_length:
13032        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> usize>,
13033    #[doc = "\n Returns a pointer to the beginning of the memory block for this\n ArrayBuffer backing store. The returned pointer is valid as long as the\n cef_v8_value_t is alive.\n"]
13034    pub get_array_buffer_data: ::std::option::Option<
13035        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut ::std::os::raw::c_void,
13036    >,
13037    #[doc = "\n Returns the function name.\n"]
13038    pub get_function_name: ::std::option::Option<
13039        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_string_userfree_t,
13040    >,
13041    #[doc = "\n Returns the function handler or NULL if not a CEF-created function.\n"]
13042    pub get_function_handler: ::std::option::Option<
13043        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_v8_handler_t,
13044    >,
13045    #[doc = "\n Execute the function using the current V8 context. This function should\n only be called from within the scope of a cef_v8_handler_t or\n cef_v8_accessor_t callback, or in combination with calling enter() and\n exit() on a stored cef_v8_context_t reference. |object| is the receiver\n ('this' object) of the function. If |object| is NULL the current context's\n global object will be used. |arguments| is the list of arguments that will\n be passed to the function. Returns the function return value on success.\n Returns NULL if this function is called incorrectly or an exception is\n thrown.\n"]
13046    pub execute_function: ::std::option::Option<
13047        unsafe extern "C" fn(
13048            self_: *mut _cef_v8_value_t,
13049            object: *mut _cef_v8_value_t,
13050            argumentsCount: usize,
13051            arguments: *const *mut _cef_v8_value_t,
13052        ) -> *mut _cef_v8_value_t,
13053    >,
13054    #[doc = "\n Execute the function using the specified V8 context. |object| is the\n receiver ('this' object) of the function. If |object| is NULL the\n specified context's global object will be used. |arguments| is the list of\n arguments that will be passed to the function. Returns the function return\n value on success. Returns NULL if this function is called incorrectly or\n an exception is thrown.\n"]
13055    pub execute_function_with_context: ::std::option::Option<
13056        unsafe extern "C" fn(
13057            self_: *mut _cef_v8_value_t,
13058            context: *mut _cef_v8_context_t,
13059            object: *mut _cef_v8_value_t,
13060            argumentsCount: usize,
13061            arguments: *const *mut _cef_v8_value_t,
13062        ) -> *mut _cef_v8_value_t,
13063    >,
13064    #[doc = "\n Resolve the Promise using the current V8 context. This function should\n only be called from within the scope of a cef_v8_handler_t or\n cef_v8_accessor_t callback, or in combination with calling enter() and\n exit() on a stored cef_v8_context_t reference. |arg| is the argument\n passed to the resolved promise. Returns true (1) on success. Returns false\n (0) if this function is called incorrectly or an exception is thrown.\n"]
13065    pub resolve_promise: ::std::option::Option<
13066        unsafe extern "C" fn(
13067            self_: *mut _cef_v8_value_t,
13068            arg: *mut _cef_v8_value_t,
13069        ) -> ::std::os::raw::c_int,
13070    >,
13071    #[doc = "\n Reject the Promise using the current V8 context. This function should only\n be called from within the scope of a cef_v8_handler_t or cef_v8_accessor_t\n callback, or in combination with calling enter() and exit() on a stored\n cef_v8_context_t reference. Returns true (1) on success. Returns false (0)\n if this function is called incorrectly or an exception is thrown.\n"]
13072    pub reject_promise: ::std::option::Option<
13073        unsafe extern "C" fn(
13074            self_: *mut _cef_v8_value_t,
13075            errorMsg: *const cef_string_t,
13076        ) -> ::std::os::raw::c_int,
13077    >,
13078}
13079#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13080const _: () = {
13081    ["Size of _cef_v8_value_t"][::std::mem::size_of::<_cef_v8_value_t>() - 456usize];
13082    ["Alignment of _cef_v8_value_t"][::std::mem::align_of::<_cef_v8_value_t>() - 8usize];
13083    ["Offset of field: _cef_v8_value_t::base"]
13084        [::std::mem::offset_of!(_cef_v8_value_t, base) - 0usize];
13085    ["Offset of field: _cef_v8_value_t::is_valid"]
13086        [::std::mem::offset_of!(_cef_v8_value_t, is_valid) - 40usize];
13087    ["Offset of field: _cef_v8_value_t::is_undefined"]
13088        [::std::mem::offset_of!(_cef_v8_value_t, is_undefined) - 48usize];
13089    ["Offset of field: _cef_v8_value_t::is_null"]
13090        [::std::mem::offset_of!(_cef_v8_value_t, is_null) - 56usize];
13091    ["Offset of field: _cef_v8_value_t::is_bool"]
13092        [::std::mem::offset_of!(_cef_v8_value_t, is_bool) - 64usize];
13093    ["Offset of field: _cef_v8_value_t::is_int"]
13094        [::std::mem::offset_of!(_cef_v8_value_t, is_int) - 72usize];
13095    ["Offset of field: _cef_v8_value_t::is_uint"]
13096        [::std::mem::offset_of!(_cef_v8_value_t, is_uint) - 80usize];
13097    ["Offset of field: _cef_v8_value_t::is_double"]
13098        [::std::mem::offset_of!(_cef_v8_value_t, is_double) - 88usize];
13099    ["Offset of field: _cef_v8_value_t::is_date"]
13100        [::std::mem::offset_of!(_cef_v8_value_t, is_date) - 96usize];
13101    ["Offset of field: _cef_v8_value_t::is_string"]
13102        [::std::mem::offset_of!(_cef_v8_value_t, is_string) - 104usize];
13103    ["Offset of field: _cef_v8_value_t::is_object"]
13104        [::std::mem::offset_of!(_cef_v8_value_t, is_object) - 112usize];
13105    ["Offset of field: _cef_v8_value_t::is_array"]
13106        [::std::mem::offset_of!(_cef_v8_value_t, is_array) - 120usize];
13107    ["Offset of field: _cef_v8_value_t::is_array_buffer"]
13108        [::std::mem::offset_of!(_cef_v8_value_t, is_array_buffer) - 128usize];
13109    ["Offset of field: _cef_v8_value_t::is_function"]
13110        [::std::mem::offset_of!(_cef_v8_value_t, is_function) - 136usize];
13111    ["Offset of field: _cef_v8_value_t::is_promise"]
13112        [::std::mem::offset_of!(_cef_v8_value_t, is_promise) - 144usize];
13113    ["Offset of field: _cef_v8_value_t::is_same"]
13114        [::std::mem::offset_of!(_cef_v8_value_t, is_same) - 152usize];
13115    ["Offset of field: _cef_v8_value_t::get_bool_value"]
13116        [::std::mem::offset_of!(_cef_v8_value_t, get_bool_value) - 160usize];
13117    ["Offset of field: _cef_v8_value_t::get_int_value"]
13118        [::std::mem::offset_of!(_cef_v8_value_t, get_int_value) - 168usize];
13119    ["Offset of field: _cef_v8_value_t::get_uint_value"]
13120        [::std::mem::offset_of!(_cef_v8_value_t, get_uint_value) - 176usize];
13121    ["Offset of field: _cef_v8_value_t::get_double_value"]
13122        [::std::mem::offset_of!(_cef_v8_value_t, get_double_value) - 184usize];
13123    ["Offset of field: _cef_v8_value_t::get_date_value"]
13124        [::std::mem::offset_of!(_cef_v8_value_t, get_date_value) - 192usize];
13125    ["Offset of field: _cef_v8_value_t::get_string_value"]
13126        [::std::mem::offset_of!(_cef_v8_value_t, get_string_value) - 200usize];
13127    ["Offset of field: _cef_v8_value_t::is_user_created"]
13128        [::std::mem::offset_of!(_cef_v8_value_t, is_user_created) - 208usize];
13129    ["Offset of field: _cef_v8_value_t::has_exception"]
13130        [::std::mem::offset_of!(_cef_v8_value_t, has_exception) - 216usize];
13131    ["Offset of field: _cef_v8_value_t::get_exception"]
13132        [::std::mem::offset_of!(_cef_v8_value_t, get_exception) - 224usize];
13133    ["Offset of field: _cef_v8_value_t::clear_exception"]
13134        [::std::mem::offset_of!(_cef_v8_value_t, clear_exception) - 232usize];
13135    ["Offset of field: _cef_v8_value_t::will_rethrow_exceptions"]
13136        [::std::mem::offset_of!(_cef_v8_value_t, will_rethrow_exceptions) - 240usize];
13137    ["Offset of field: _cef_v8_value_t::set_rethrow_exceptions"]
13138        [::std::mem::offset_of!(_cef_v8_value_t, set_rethrow_exceptions) - 248usize];
13139    ["Offset of field: _cef_v8_value_t::has_value_bykey"]
13140        [::std::mem::offset_of!(_cef_v8_value_t, has_value_bykey) - 256usize];
13141    ["Offset of field: _cef_v8_value_t::has_value_byindex"]
13142        [::std::mem::offset_of!(_cef_v8_value_t, has_value_byindex) - 264usize];
13143    ["Offset of field: _cef_v8_value_t::delete_value_bykey"]
13144        [::std::mem::offset_of!(_cef_v8_value_t, delete_value_bykey) - 272usize];
13145    ["Offset of field: _cef_v8_value_t::delete_value_byindex"]
13146        [::std::mem::offset_of!(_cef_v8_value_t, delete_value_byindex) - 280usize];
13147    ["Offset of field: _cef_v8_value_t::get_value_bykey"]
13148        [::std::mem::offset_of!(_cef_v8_value_t, get_value_bykey) - 288usize];
13149    ["Offset of field: _cef_v8_value_t::get_value_byindex"]
13150        [::std::mem::offset_of!(_cef_v8_value_t, get_value_byindex) - 296usize];
13151    ["Offset of field: _cef_v8_value_t::set_value_bykey"]
13152        [::std::mem::offset_of!(_cef_v8_value_t, set_value_bykey) - 304usize];
13153    ["Offset of field: _cef_v8_value_t::set_value_byindex"]
13154        [::std::mem::offset_of!(_cef_v8_value_t, set_value_byindex) - 312usize];
13155    ["Offset of field: _cef_v8_value_t::set_value_byaccessor"]
13156        [::std::mem::offset_of!(_cef_v8_value_t, set_value_byaccessor) - 320usize];
13157    ["Offset of field: _cef_v8_value_t::get_keys"]
13158        [::std::mem::offset_of!(_cef_v8_value_t, get_keys) - 328usize];
13159    ["Offset of field: _cef_v8_value_t::set_user_data"]
13160        [::std::mem::offset_of!(_cef_v8_value_t, set_user_data) - 336usize];
13161    ["Offset of field: _cef_v8_value_t::get_user_data"]
13162        [::std::mem::offset_of!(_cef_v8_value_t, get_user_data) - 344usize];
13163    ["Offset of field: _cef_v8_value_t::get_externally_allocated_memory"]
13164        [::std::mem::offset_of!(_cef_v8_value_t, get_externally_allocated_memory) - 352usize];
13165    ["Offset of field: _cef_v8_value_t::adjust_externally_allocated_memory"]
13166        [::std::mem::offset_of!(_cef_v8_value_t, adjust_externally_allocated_memory) - 360usize];
13167    ["Offset of field: _cef_v8_value_t::get_array_length"]
13168        [::std::mem::offset_of!(_cef_v8_value_t, get_array_length) - 368usize];
13169    ["Offset of field: _cef_v8_value_t::get_array_buffer_release_callback"]
13170        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_release_callback) - 376usize];
13171    ["Offset of field: _cef_v8_value_t::neuter_array_buffer"]
13172        [::std::mem::offset_of!(_cef_v8_value_t, neuter_array_buffer) - 384usize];
13173    ["Offset of field: _cef_v8_value_t::get_array_buffer_byte_length"]
13174        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_byte_length) - 392usize];
13175    ["Offset of field: _cef_v8_value_t::get_array_buffer_data"]
13176        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_data) - 400usize];
13177    ["Offset of field: _cef_v8_value_t::get_function_name"]
13178        [::std::mem::offset_of!(_cef_v8_value_t, get_function_name) - 408usize];
13179    ["Offset of field: _cef_v8_value_t::get_function_handler"]
13180        [::std::mem::offset_of!(_cef_v8_value_t, get_function_handler) - 416usize];
13181    ["Offset of field: _cef_v8_value_t::execute_function"]
13182        [::std::mem::offset_of!(_cef_v8_value_t, execute_function) - 424usize];
13183    ["Offset of field: _cef_v8_value_t::execute_function_with_context"]
13184        [::std::mem::offset_of!(_cef_v8_value_t, execute_function_with_context) - 432usize];
13185    ["Offset of field: _cef_v8_value_t::resolve_promise"]
13186        [::std::mem::offset_of!(_cef_v8_value_t, resolve_promise) - 440usize];
13187    ["Offset of field: _cef_v8_value_t::reject_promise"]
13188        [::std::mem::offset_of!(_cef_v8_value_t, reject_promise) - 448usize];
13189};
13190#[doc = "\n Structure representing a V8 value handle. V8 handles can only be accessed\n from the thread on which they are created. Valid threads for creating a V8\n handle include the render process main thread (TID_RENDERER) and WebWorker\n threads. A task runner for posting tasks on the associated thread can be\n retrieved via the cef_v8_context_t::get_task_runner() function.\n\n NOTE: This struct is allocated DLL-side.\n"]
13191pub type cef_v8_value_t = _cef_v8_value_t;
13192unsafe extern "C" {
13193    #[doc = "\n Create a new cef_v8_value_t object of type undefined.\n"]
13194    pub fn cef_v8_value_create_undefined() -> *mut cef_v8_value_t;
13195}
13196unsafe extern "C" {
13197    #[doc = "\n Create a new cef_v8_value_t object of type null.\n"]
13198    pub fn cef_v8_value_create_null() -> *mut cef_v8_value_t;
13199}
13200unsafe extern "C" {
13201    #[doc = "\n Create a new cef_v8_value_t object of type bool.\n"]
13202    pub fn cef_v8_value_create_bool(value: ::std::os::raw::c_int) -> *mut cef_v8_value_t;
13203}
13204unsafe extern "C" {
13205    #[doc = "\n Create a new cef_v8_value_t object of type int.\n"]
13206    pub fn cef_v8_value_create_int(value: i32) -> *mut cef_v8_value_t;
13207}
13208unsafe extern "C" {
13209    #[doc = "\n Create a new cef_v8_value_t object of type unsigned int.\n"]
13210    pub fn cef_v8_value_create_uint(value: u32) -> *mut cef_v8_value_t;
13211}
13212unsafe extern "C" {
13213    #[doc = "\n Create a new cef_v8_value_t object of type double.\n"]
13214    pub fn cef_v8_value_create_double(value: f64) -> *mut cef_v8_value_t;
13215}
13216unsafe extern "C" {
13217    #[doc = "\n Create a new cef_v8_value_t object of type Date. This function should only\n be called from within the scope of a cef_render_process_handler_t,\n cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with\n calling enter() and exit() on a stored cef_v8_context_t reference.\n"]
13218    pub fn cef_v8_value_create_date(date: cef_basetime_t) -> *mut cef_v8_value_t;
13219}
13220unsafe extern "C" {
13221    #[doc = "\n Create a new cef_v8_value_t object of type string.\n"]
13222    pub fn cef_v8_value_create_string(value: *const cef_string_t) -> *mut cef_v8_value_t;
13223}
13224unsafe extern "C" {
13225    #[doc = "\n Create a new cef_v8_value_t object of type object with optional accessor\n and/or interceptor. This function should only be called from within the\n scope of a cef_render_process_handler_t, cef_v8_handler_t or\n cef_v8_accessor_t callback, or in combination with calling enter() and\n exit() on a stored cef_v8_context_t reference.\n"]
13226    pub fn cef_v8_value_create_object(
13227        accessor: *mut cef_v8_accessor_t,
13228        interceptor: *mut cef_v8_interceptor_t,
13229    ) -> *mut cef_v8_value_t;
13230}
13231unsafe extern "C" {
13232    #[doc = "\n Create a new cef_v8_value_t object of type array with the specified\n |length|. If |length| is negative the returned array will have length 0.\n This function should only be called from within the scope of a\n cef_render_process_handler_t, cef_v8_handler_t or cef_v8_accessor_t\n callback, or in combination with calling enter() and exit() on a stored\n cef_v8_context_t reference.\n"]
13233    pub fn cef_v8_value_create_array(length: ::std::os::raw::c_int) -> *mut cef_v8_value_t;
13234}
13235unsafe extern "C" {
13236    #[doc = "\n Create a new cef_v8_value_t object of type ArrayBuffer which wraps the\n provided |buffer| of size |length| bytes. The ArrayBuffer is externalized,\n meaning that it does not own |buffer|. The caller is responsible for freeing\n |buffer| when requested via a call to\n cef_v8_array_buffer_release_callback_t::ReleaseBuffer. This function should\n only be called from within the scope of a cef_render_process_handler_t,\n cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with\n calling enter() and exit() on a stored cef_v8_context_t reference.\n\n NOTE: Always returns nullptr when V8 sandbox is enabled.\n"]
13237    pub fn cef_v8_value_create_array_buffer(
13238        buffer: *mut ::std::os::raw::c_void,
13239        length: usize,
13240        release_callback: *mut cef_v8_array_buffer_release_callback_t,
13241    ) -> *mut cef_v8_value_t;
13242}
13243unsafe extern "C" {
13244    #[doc = "\n Create a new cef_v8_value_t object of type ArrayBuffer which copies the\n provided |buffer| of size |length| bytes. This function should only be\n called from within the scope of a cef_render_process_handler_t,\n cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with\n calling enter() and exit() on a stored cef_v8_context_t reference.\n"]
13245    pub fn cef_v8_value_create_array_buffer_with_copy(
13246        buffer: *mut ::std::os::raw::c_void,
13247        length: usize,
13248    ) -> *mut cef_v8_value_t;
13249}
13250unsafe extern "C" {
13251    #[doc = "\n Create a new cef_v8_value_t object of type function. This function should\n only be called from within the scope of a cef_render_process_handler_t,\n cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with\n calling enter() and exit() on a stored cef_v8_context_t reference.\n"]
13252    pub fn cef_v8_value_create_function(
13253        name: *const cef_string_t,
13254        handler: *mut cef_v8_handler_t,
13255    ) -> *mut cef_v8_value_t;
13256}
13257unsafe extern "C" {
13258    #[doc = "\n Create a new cef_v8_value_t object of type Promise. This function should\n only be called from within the scope of a cef_render_process_handler_t,\n cef_v8_handler_t or cef_v8_accessor_t callback, or in combination with\n calling enter() and exit() on a stored cef_v8_context_t reference.\n"]
13259    pub fn cef_v8_value_create_promise() -> *mut cef_v8_value_t;
13260}
13261#[doc = "\n Structure representing a V8 stack trace handle. V8 handles can only be\n accessed from the thread on which they are created. Valid threads for\n creating a V8 handle include the render process main thread (TID_RENDERER)\n and WebWorker threads. A task runner for posting tasks on the associated\n thread can be retrieved via the cef_v8_context_t::get_task_runner()\n function.\n\n NOTE: This struct is allocated DLL-side.\n"]
13262#[repr(C)]
13263#[derive(Debug, Copy, Clone)]
13264pub struct _cef_v8_stack_trace_t {
13265    #[doc = "\n Base structure.\n"]
13266    pub base: cef_base_ref_counted_t,
13267    #[doc = "\n Returns true (1) if the underlying handle is valid and it can be accessed\n on the current thread. Do not call any other functions if this function\n returns false (0).\n"]
13268    pub is_valid: ::std::option::Option<
13269        unsafe extern "C" fn(self_: *mut _cef_v8_stack_trace_t) -> ::std::os::raw::c_int,
13270    >,
13271    #[doc = "\n Returns the number of stack frames.\n"]
13272    pub get_frame_count: ::std::option::Option<
13273        unsafe extern "C" fn(self_: *mut _cef_v8_stack_trace_t) -> ::std::os::raw::c_int,
13274    >,
13275    #[doc = "\n Returns the stack frame at the specified 0-based index.\n"]
13276    pub get_frame: ::std::option::Option<
13277        unsafe extern "C" fn(
13278            self_: *mut _cef_v8_stack_trace_t,
13279            index: ::std::os::raw::c_int,
13280        ) -> *mut _cef_v8_stack_frame_t,
13281    >,
13282}
13283#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13284const _: () = {
13285    ["Size of _cef_v8_stack_trace_t"][::std::mem::size_of::<_cef_v8_stack_trace_t>() - 64usize];
13286    ["Alignment of _cef_v8_stack_trace_t"]
13287        [::std::mem::align_of::<_cef_v8_stack_trace_t>() - 8usize];
13288    ["Offset of field: _cef_v8_stack_trace_t::base"]
13289        [::std::mem::offset_of!(_cef_v8_stack_trace_t, base) - 0usize];
13290    ["Offset of field: _cef_v8_stack_trace_t::is_valid"]
13291        [::std::mem::offset_of!(_cef_v8_stack_trace_t, is_valid) - 40usize];
13292    ["Offset of field: _cef_v8_stack_trace_t::get_frame_count"]
13293        [::std::mem::offset_of!(_cef_v8_stack_trace_t, get_frame_count) - 48usize];
13294    ["Offset of field: _cef_v8_stack_trace_t::get_frame"]
13295        [::std::mem::offset_of!(_cef_v8_stack_trace_t, get_frame) - 56usize];
13296};
13297#[doc = "\n Structure representing a V8 stack trace handle. V8 handles can only be\n accessed from the thread on which they are created. Valid threads for\n creating a V8 handle include the render process main thread (TID_RENDERER)\n and WebWorker threads. A task runner for posting tasks on the associated\n thread can be retrieved via the cef_v8_context_t::get_task_runner()\n function.\n\n NOTE: This struct is allocated DLL-side.\n"]
13298pub type cef_v8_stack_trace_t = _cef_v8_stack_trace_t;
13299unsafe extern "C" {
13300    #[doc = "\n Returns the stack trace for the currently active context. |frame_limit| is\n the maximum number of frames that will be captured.\n"]
13301    pub fn cef_v8_stack_trace_get_current(
13302        frame_limit: ::std::os::raw::c_int,
13303    ) -> *mut cef_v8_stack_trace_t;
13304}
13305#[doc = "\n Structure representing a V8 stack frame handle. V8 handles can only be\n accessed from the thread on which they are created. Valid threads for\n creating a V8 handle include the render process main thread (TID_RENDERER)\n and WebWorker threads. A task runner for posting tasks on the associated\n thread can be retrieved via the cef_v8_context_t::get_task_runner()\n function.\n\n NOTE: This struct is allocated DLL-side.\n"]
13306#[repr(C)]
13307#[derive(Debug, Copy, Clone)]
13308pub struct _cef_v8_stack_frame_t {
13309    #[doc = "\n Base structure.\n"]
13310    pub base: cef_base_ref_counted_t,
13311    #[doc = "\n Returns true (1) if the underlying handle is valid and it can be accessed\n on the current thread. Do not call any other functions if this function\n returns false (0).\n"]
13312    pub is_valid: ::std::option::Option<
13313        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13314    >,
13315    #[doc = "\n Returns the name of the resource script that contains the function.\n"]
13316    pub get_script_name: ::std::option::Option<
13317        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13318    >,
13319    #[doc = "\n Returns the name of the resource script that contains the function or the\n sourceURL value if the script name is undefined and its source ends with a\n \"//@ sourceURL=...\" string.\n"]
13320    pub get_script_name_or_source_url: ::std::option::Option<
13321        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13322    >,
13323    #[doc = "\n Returns the name of the function.\n"]
13324    pub get_function_name: ::std::option::Option<
13325        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13326    >,
13327    #[doc = "\n Returns the 1-based line number for the function call or 0 if unknown.\n"]
13328    pub get_line_number: ::std::option::Option<
13329        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13330    >,
13331    #[doc = "\n Returns the 1-based column offset on the line for the function call or 0\n if unknown.\n"]
13332    pub get_column: ::std::option::Option<
13333        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13334    >,
13335    #[doc = "\n Returns true (1) if the function was compiled using eval().\n"]
13336    pub is_eval: ::std::option::Option<
13337        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13338    >,
13339    #[doc = "\n Returns true (1) if the function was called as a constructor via \"new\".\n"]
13340    pub is_constructor: ::std::option::Option<
13341        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13342    >,
13343}
13344#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13345const _: () = {
13346    ["Size of _cef_v8_stack_frame_t"][::std::mem::size_of::<_cef_v8_stack_frame_t>() - 104usize];
13347    ["Alignment of _cef_v8_stack_frame_t"]
13348        [::std::mem::align_of::<_cef_v8_stack_frame_t>() - 8usize];
13349    ["Offset of field: _cef_v8_stack_frame_t::base"]
13350        [::std::mem::offset_of!(_cef_v8_stack_frame_t, base) - 0usize];
13351    ["Offset of field: _cef_v8_stack_frame_t::is_valid"]
13352        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_valid) - 40usize];
13353    ["Offset of field: _cef_v8_stack_frame_t::get_script_name"]
13354        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_script_name) - 48usize];
13355    ["Offset of field: _cef_v8_stack_frame_t::get_script_name_or_source_url"]
13356        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_script_name_or_source_url) - 56usize];
13357    ["Offset of field: _cef_v8_stack_frame_t::get_function_name"]
13358        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_function_name) - 64usize];
13359    ["Offset of field: _cef_v8_stack_frame_t::get_line_number"]
13360        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_line_number) - 72usize];
13361    ["Offset of field: _cef_v8_stack_frame_t::get_column"]
13362        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_column) - 80usize];
13363    ["Offset of field: _cef_v8_stack_frame_t::is_eval"]
13364        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_eval) - 88usize];
13365    ["Offset of field: _cef_v8_stack_frame_t::is_constructor"]
13366        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_constructor) - 96usize];
13367};
13368#[doc = "\n Structure representing a V8 stack frame handle. V8 handles can only be\n accessed from the thread on which they are created. Valid threads for\n creating a V8 handle include the render process main thread (TID_RENDERER)\n and WebWorker threads. A task runner for posting tasks on the associated\n thread can be retrieved via the cef_v8_context_t::get_task_runner()\n function.\n\n NOTE: This struct is allocated DLL-side.\n"]
13369pub type cef_v8_stack_frame_t = _cef_v8_stack_frame_t;
13370unsafe extern "C" {
13371    #[doc = "\n Register a new V8 extension with the specified JavaScript extension code and\n handler. Functions implemented by the handler are prototyped using the\n keyword 'native'. The calling of a native function is restricted to the\n scope in which the prototype of the native function is defined. This\n function may only be called on the render process main thread.\n\n Example JavaScript extension code: <pre>\n   // create the 'example' global object if it doesn't already exist.\n   if (!example)\n     example = {};\n   // create the 'example.test' global object if it doesn't already exist.\n   if (!example.test)\n     example.test = {};\n   (function() {\n     // Define the function 'example.test.myfunction'.\n     example.test.myfunction = function() {\n       // Call CefV8Handler::Execute() with the function name 'MyFunction'\n       // and no arguments.\n       native function MyFunction();\n       return MyFunction();\n     };\n     // Define the getter function for parameter 'example.test.myparam'.\n     example.test.__defineGetter__('myparam', function() {\n       // Call CefV8Handler::Execute() with the function name 'GetMyParam'\n       // and no arguments.\n       native function GetMyParam();\n       return GetMyParam();\n     });\n     // Define the setter function for parameter 'example.test.myparam'.\n     example.test.__defineSetter__('myparam', function(b) {\n       // Call CefV8Handler::Execute() with the function name 'SetMyParam'\n       // and a single argument.\n       native function SetMyParam();\n       if(b) SetMyParam(b);\n     });\n\n     // Extension definitions can also contain normal JavaScript variables\n     // and functions.\n     var myint = 0;\n     example.test.increment = function() {\n       myint += 1;\n       return myint;\n     };\n   })();\n </pre>\n\n Example usage in the page: <pre>\n   // Call the function.\n   example.test.myfunction();\n   // Set the parameter.\n   example.test.myparam = value;\n   // Get the parameter.\n   value = example.test.myparam;\n   // Call another function.\n   example.test.increment();\n </pre>\n"]
13372    pub fn cef_register_extension(
13373        extension_name: *const cef_string_t,
13374        javascript_code: *const cef_string_t,
13375        handler: *mut cef_v8_handler_t,
13376    ) -> ::std::os::raw::c_int;
13377}
13378#[doc = "\n Structure used to implement render process callbacks. The functions of this\n structure will be called on the render process main thread (TID_RENDERER)\n unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
13379#[repr(C)]
13380#[derive(Debug, Copy, Clone)]
13381pub struct _cef_render_process_handler_t {
13382    #[doc = "\n Base structure.\n"]
13383    pub base: cef_base_ref_counted_t,
13384    #[doc = "\n Called after WebKit has been initialized.\n"]
13385    pub on_web_kit_initialized:
13386        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_render_process_handler_t)>,
13387    #[doc = "\n Called after a browser has been created. When browsing cross-origin a new\n browser will be created before the old browser with the same identifier is\n destroyed. |extra_info| is an optional read-only value originating from\n cef_browser_host_t::cef_browser_host_create_browser(),\n cef_browser_host_t::cef_browser_host_create_browser_sync(),\n cef_life_span_handler_t::on_before_popup() or\n cef_browser_view_t::cef_browser_view_create().\n"]
13388    pub on_browser_created: ::std::option::Option<
13389        unsafe extern "C" fn(
13390            self_: *mut _cef_render_process_handler_t,
13391            browser: *mut _cef_browser_t,
13392            extra_info: *mut _cef_dictionary_value_t,
13393        ),
13394    >,
13395    #[doc = "\n Called before a browser is destroyed.\n"]
13396    pub on_browser_destroyed: ::std::option::Option<
13397        unsafe extern "C" fn(
13398            self_: *mut _cef_render_process_handler_t,
13399            browser: *mut _cef_browser_t,
13400        ),
13401    >,
13402    #[doc = "\n Return the handler for browser load status events.\n"]
13403    pub get_load_handler: ::std::option::Option<
13404        unsafe extern "C" fn(self_: *mut _cef_render_process_handler_t) -> *mut _cef_load_handler_t,
13405    >,
13406    #[doc = "\n Called immediately after the V8 context for a frame has been created. To\n retrieve the JavaScript 'window' object use the\n cef_v8_context_t::get_global() function. V8 handles can only be accessed\n from the thread on which they are created. A task runner for posting tasks\n on the associated thread can be retrieved via the\n cef_v8_context_t::get_task_runner() function.\n"]
13407    pub on_context_created: ::std::option::Option<
13408        unsafe extern "C" fn(
13409            self_: *mut _cef_render_process_handler_t,
13410            browser: *mut _cef_browser_t,
13411            frame: *mut _cef_frame_t,
13412            context: *mut _cef_v8_context_t,
13413        ),
13414    >,
13415    #[doc = "\n Called immediately before the V8 context for a frame is released. No\n references to the context should be kept after this function is called.\n"]
13416    pub on_context_released: ::std::option::Option<
13417        unsafe extern "C" fn(
13418            self_: *mut _cef_render_process_handler_t,
13419            browser: *mut _cef_browser_t,
13420            frame: *mut _cef_frame_t,
13421            context: *mut _cef_v8_context_t,
13422        ),
13423    >,
13424    #[doc = "\n Called for global uncaught exceptions in a frame. Execution of this\n callback is disabled by default. To enable set\n cef_settings_t.uncaught_exception_stack_size > 0.\n"]
13425    pub on_uncaught_exception: ::std::option::Option<
13426        unsafe extern "C" fn(
13427            self_: *mut _cef_render_process_handler_t,
13428            browser: *mut _cef_browser_t,
13429            frame: *mut _cef_frame_t,
13430            context: *mut _cef_v8_context_t,
13431            exception: *mut _cef_v8_exception_t,
13432            stackTrace: *mut _cef_v8_stack_trace_t,
13433        ),
13434    >,
13435    #[doc = "\n Called when a new node in the the browser gets focus. The |node| value may\n be NULL if no specific node has gained focus. The node object passed to\n this function represents a snapshot of the DOM at the time this function\n is executed. DOM objects are only valid for the scope of this function. Do\n not keep references to or attempt to access any DOM objects outside the\n scope of this function.\n"]
13436    pub on_focused_node_changed: ::std::option::Option<
13437        unsafe extern "C" fn(
13438            self_: *mut _cef_render_process_handler_t,
13439            browser: *mut _cef_browser_t,
13440            frame: *mut _cef_frame_t,
13441            node: *mut _cef_domnode_t,
13442        ),
13443    >,
13444    #[doc = "\n Called when a new message is received from a different process. Return\n true (1) if the message was handled or false (0) otherwise. It is safe to\n keep a reference to |message| outside of this callback.\n"]
13445    pub on_process_message_received: ::std::option::Option<
13446        unsafe extern "C" fn(
13447            self_: *mut _cef_render_process_handler_t,
13448            browser: *mut _cef_browser_t,
13449            frame: *mut _cef_frame_t,
13450            source_process: cef_process_id_t,
13451            message: *mut _cef_process_message_t,
13452        ) -> ::std::os::raw::c_int,
13453    >,
13454}
13455#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13456const _: () = {
13457    ["Size of _cef_render_process_handler_t"]
13458        [::std::mem::size_of::<_cef_render_process_handler_t>() - 112usize];
13459    ["Alignment of _cef_render_process_handler_t"]
13460        [::std::mem::align_of::<_cef_render_process_handler_t>() - 8usize];
13461    ["Offset of field: _cef_render_process_handler_t::base"]
13462        [::std::mem::offset_of!(_cef_render_process_handler_t, base) - 0usize];
13463    ["Offset of field: _cef_render_process_handler_t::on_web_kit_initialized"]
13464        [::std::mem::offset_of!(_cef_render_process_handler_t, on_web_kit_initialized) - 40usize];
13465    ["Offset of field: _cef_render_process_handler_t::on_browser_created"]
13466        [::std::mem::offset_of!(_cef_render_process_handler_t, on_browser_created) - 48usize];
13467    ["Offset of field: _cef_render_process_handler_t::on_browser_destroyed"]
13468        [::std::mem::offset_of!(_cef_render_process_handler_t, on_browser_destroyed) - 56usize];
13469    ["Offset of field: _cef_render_process_handler_t::get_load_handler"]
13470        [::std::mem::offset_of!(_cef_render_process_handler_t, get_load_handler) - 64usize];
13471    ["Offset of field: _cef_render_process_handler_t::on_context_created"]
13472        [::std::mem::offset_of!(_cef_render_process_handler_t, on_context_created) - 72usize];
13473    ["Offset of field: _cef_render_process_handler_t::on_context_released"]
13474        [::std::mem::offset_of!(_cef_render_process_handler_t, on_context_released) - 80usize];
13475    ["Offset of field: _cef_render_process_handler_t::on_uncaught_exception"]
13476        [::std::mem::offset_of!(_cef_render_process_handler_t, on_uncaught_exception) - 88usize];
13477    ["Offset of field: _cef_render_process_handler_t::on_focused_node_changed"]
13478        [::std::mem::offset_of!(_cef_render_process_handler_t, on_focused_node_changed) - 96usize];
13479    ["Offset of field: _cef_render_process_handler_t::on_process_message_received"][::std::mem::offset_of!(
13480        _cef_render_process_handler_t,
13481        on_process_message_received
13482    ) - 104usize];
13483};
13484#[doc = "\n Structure used to implement render process callbacks. The functions of this\n structure will be called on the render process main thread (TID_RENDERER)\n unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
13485pub type cef_render_process_handler_t = _cef_render_process_handler_t;
13486#[doc = "\n Structure used to implement a custom resource bundle structure. See\n CefSettings for additional options related to resource bundle loading. The\n functions of this structure may be called on multiple threads.\n\n NOTE: This struct is allocated client-side.\n"]
13487#[repr(C)]
13488#[derive(Debug, Copy, Clone)]
13489pub struct _cef_resource_bundle_handler_t {
13490    #[doc = "\n Base structure.\n"]
13491    pub base: cef_base_ref_counted_t,
13492    #[doc = "\n Called to retrieve a localized translation for the specified |string_id|.\n To provide the translation set |string| to the translation string and\n return true (1). To use the default translation return false (0). Use the\n cef_id_for_pack_string_name() function for version-safe mapping of string\n IDS names from cef_pack_strings.h to version-specific numerical\n |string_id| values.\n"]
13493    pub get_localized_string: ::std::option::Option<
13494        unsafe extern "C" fn(
13495            self_: *mut _cef_resource_bundle_handler_t,
13496            string_id: ::std::os::raw::c_int,
13497            string: *mut cef_string_t,
13498        ) -> ::std::os::raw::c_int,
13499    >,
13500    #[doc = "\n Called to retrieve data for the specified scale independent |resource_id|.\n To provide the resource data set |data| and |data_size| to the data\n pointer and size respectively and return true (1). To use the default\n resource data return false (0). The resource data will not be copied and\n must remain resident in memory. Use the cef_id_for_pack_resource_name()\n function for version-safe mapping of resource IDR names from\n cef_pack_resources.h to version-specific numerical |resource_id| values.\n"]
13501    pub get_data_resource: ::std::option::Option<
13502        unsafe extern "C" fn(
13503            self_: *mut _cef_resource_bundle_handler_t,
13504            resource_id: ::std::os::raw::c_int,
13505            data: *mut *mut ::std::os::raw::c_void,
13506            data_size: *mut usize,
13507        ) -> ::std::os::raw::c_int,
13508    >,
13509    #[doc = "\n Called to retrieve data for the specified |resource_id| nearest the scale\n factor |scale_factor|. To provide the resource data set |data| and\n |data_size| to the data pointer and size respectively and return true (1).\n To use the default resource data return false (0). The resource data will\n not be copied and must remain resident in memory. Use the\n cef_id_for_pack_resource_name() function for version-safe mapping of\n resource IDR names from cef_pack_resources.h to version-specific numerical\n |resource_id| values.\n"]
13510    pub get_data_resource_for_scale: ::std::option::Option<
13511        unsafe extern "C" fn(
13512            self_: *mut _cef_resource_bundle_handler_t,
13513            resource_id: ::std::os::raw::c_int,
13514            scale_factor: cef_scale_factor_t,
13515            data: *mut *mut ::std::os::raw::c_void,
13516            data_size: *mut usize,
13517        ) -> ::std::os::raw::c_int,
13518    >,
13519}
13520#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13521const _: () = {
13522    ["Size of _cef_resource_bundle_handler_t"]
13523        [::std::mem::size_of::<_cef_resource_bundle_handler_t>() - 64usize];
13524    ["Alignment of _cef_resource_bundle_handler_t"]
13525        [::std::mem::align_of::<_cef_resource_bundle_handler_t>() - 8usize];
13526    ["Offset of field: _cef_resource_bundle_handler_t::base"]
13527        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, base) - 0usize];
13528    ["Offset of field: _cef_resource_bundle_handler_t::get_localized_string"]
13529        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, get_localized_string) - 40usize];
13530    ["Offset of field: _cef_resource_bundle_handler_t::get_data_resource"]
13531        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, get_data_resource) - 48usize];
13532    ["Offset of field: _cef_resource_bundle_handler_t::get_data_resource_for_scale"][::std::mem::offset_of!(
13533        _cef_resource_bundle_handler_t,
13534        get_data_resource_for_scale
13535    ) - 56usize];
13536};
13537#[doc = "\n Structure used to implement a custom resource bundle structure. See\n CefSettings for additional options related to resource bundle loading. The\n functions of this structure may be called on multiple threads.\n\n NOTE: This struct is allocated client-side.\n"]
13538pub type cef_resource_bundle_handler_t = _cef_resource_bundle_handler_t;
13539#[doc = "\n Structure that manages custom scheme registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
13540#[repr(C)]
13541#[derive(Debug, Copy, Clone)]
13542pub struct _cef_scheme_registrar_t {
13543    #[doc = "\n Base structure.\n"]
13544    pub base: cef_base_scoped_t,
13545    #[doc = "\n Register a custom scheme. This function should not be called for the\n built-in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.\n\n See cef_scheme_options_t for possible values for |options|.\n\n This function may be called on any thread. It should only be called once\n per unique |scheme_name| value. If |scheme_name| is already registered or\n if an error occurs this function will return false (0).\n"]
13546    pub add_custom_scheme: ::std::option::Option<
13547        unsafe extern "C" fn(
13548            self_: *mut _cef_scheme_registrar_t,
13549            scheme_name: *const cef_string_t,
13550            options: ::std::os::raw::c_int,
13551        ) -> ::std::os::raw::c_int,
13552    >,
13553}
13554#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13555const _: () = {
13556    ["Size of _cef_scheme_registrar_t"][::std::mem::size_of::<_cef_scheme_registrar_t>() - 24usize];
13557    ["Alignment of _cef_scheme_registrar_t"]
13558        [::std::mem::align_of::<_cef_scheme_registrar_t>() - 8usize];
13559    ["Offset of field: _cef_scheme_registrar_t::base"]
13560        [::std::mem::offset_of!(_cef_scheme_registrar_t, base) - 0usize];
13561    ["Offset of field: _cef_scheme_registrar_t::add_custom_scheme"]
13562        [::std::mem::offset_of!(_cef_scheme_registrar_t, add_custom_scheme) - 16usize];
13563};
13564#[doc = "\n Structure that manages custom scheme registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
13565pub type cef_scheme_registrar_t = _cef_scheme_registrar_t;
13566#[doc = "\n Structure that creates cef_resource_handler_t instances for handling scheme\n requests. The functions of this structure will always be called on the IO\n thread.\n\n NOTE: This struct is allocated client-side.\n"]
13567#[repr(C)]
13568#[derive(Debug, Copy, Clone)]
13569pub struct _cef_scheme_handler_factory_t {
13570    #[doc = "\n Base structure.\n"]
13571    pub base: cef_base_ref_counted_t,
13572    #[doc = "\n Return a new resource handler instance to handle the request or an NULL\n reference to allow default handling of the request. |browser| and |frame|\n will be the browser window and frame respectively that originated the\n request or NULL if the request did not originate from a browser window\n (for example, if the request came from cef_urlrequest_t). The |request|\n object passed to this function cannot be modified.\n"]
13573    pub create: ::std::option::Option<
13574        unsafe extern "C" fn(
13575            self_: *mut _cef_scheme_handler_factory_t,
13576            browser: *mut _cef_browser_t,
13577            frame: *mut _cef_frame_t,
13578            scheme_name: *const cef_string_t,
13579            request: *mut _cef_request_t,
13580        ) -> *mut _cef_resource_handler_t,
13581    >,
13582}
13583#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13584const _: () = {
13585    ["Size of _cef_scheme_handler_factory_t"]
13586        [::std::mem::size_of::<_cef_scheme_handler_factory_t>() - 48usize];
13587    ["Alignment of _cef_scheme_handler_factory_t"]
13588        [::std::mem::align_of::<_cef_scheme_handler_factory_t>() - 8usize];
13589    ["Offset of field: _cef_scheme_handler_factory_t::base"]
13590        [::std::mem::offset_of!(_cef_scheme_handler_factory_t, base) - 0usize];
13591    ["Offset of field: _cef_scheme_handler_factory_t::create"]
13592        [::std::mem::offset_of!(_cef_scheme_handler_factory_t, create) - 40usize];
13593};
13594#[doc = "\n Structure that creates cef_resource_handler_t instances for handling scheme\n requests. The functions of this structure will always be called on the IO\n thread.\n\n NOTE: This struct is allocated client-side.\n"]
13595pub type cef_scheme_handler_factory_t = _cef_scheme_handler_factory_t;
13596unsafe extern "C" {
13597    #[doc = "\n Register a scheme handler factory with the global request context. An NULL\n |domain_name| value for a standard scheme will cause the factory to match\n all domain names. The |domain_name| value will be ignored for non-standard\n schemes. If |scheme_name| is a built-in scheme and no handler is returned by\n |factory| then the built-in scheme handler factory will be called. If\n |scheme_name| is a custom scheme then you must also implement the\n cef_app_t::on_register_custom_schemes() function in all processes. This\n function may be called multiple times to change or remove the factory that\n matches the specified |scheme_name| and optional |domain_name|. Returns\n false (0) if an error occurs. This function may be called on any thread in\n the browser process. Using this function is equivalent to calling cef_reques\n t_context_t::cef_request_context_get_global_context()->register_scheme_handl\n er_factory().\n"]
13598    pub fn cef_register_scheme_handler_factory(
13599        scheme_name: *const cef_string_t,
13600        domain_name: *const cef_string_t,
13601        factory: *mut cef_scheme_handler_factory_t,
13602    ) -> ::std::os::raw::c_int;
13603}
13604unsafe extern "C" {
13605    #[doc = "\n Clear all scheme handler factories registered with the global request\n context. Returns false (0) on error. This function may be called on any\n thread in the browser process. Using this function is equivalent to calling\n cef_request_context_t::cef_request_context_get_global_context()->clear_schem\n e_handler_factories().\n"]
13606    pub fn cef_clear_scheme_handler_factories() -> ::std::os::raw::c_int;
13607}
13608#[doc = "\n Implement this structure to provide handler implementations. Methods will be\n called by the process and/or thread indicated.\n\n NOTE: This struct is allocated client-side.\n"]
13609#[repr(C)]
13610#[derive(Debug, Copy, Clone)]
13611pub struct _cef_app_t {
13612    #[doc = "\n Base structure.\n"]
13613    pub base: cef_base_ref_counted_t,
13614    #[doc = "\n Provides an opportunity to view and/or modify command-line arguments\n before processing by CEF and Chromium. The |process_type| value will be\n NULL for the browser process. Do not keep a reference to the\n cef_command_line_t object passed to this function. The\n cef_settings_t.command_line_args_disabled value can be used to start with\n an NULL command-line object. Any values specified in CefSettings that\n equate to command-line arguments will be set before this function is\n called. Be cautious when using this function to modify command-line\n arguments for non-browser processes as this may result in undefined\n behavior including crashes.\n"]
13615    pub on_before_command_line_processing: ::std::option::Option<
13616        unsafe extern "C" fn(
13617            self_: *mut _cef_app_t,
13618            process_type: *const cef_string_t,
13619            command_line: *mut _cef_command_line_t,
13620        ),
13621    >,
13622    #[doc = "\n Provides an opportunity to register custom schemes. Do not keep a\n reference to the |registrar| object. This function is called on the main\n thread for each process and the registered schemes should be the same\n across all processes.\n"]
13623    pub on_register_custom_schemes: ::std::option::Option<
13624        unsafe extern "C" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t),
13625    >,
13626    #[doc = "\n Return the handler for resource bundle events. If no handler is returned\n resources will be loaded from pack files. This function is called by the\n browser and render processes on multiple threads.\n"]
13627    pub get_resource_bundle_handler: ::std::option::Option<
13628        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t,
13629    >,
13630    #[doc = "\n Return the handler for functionality specific to the browser process. This\n function is called on multiple threads in the browser process.\n"]
13631    pub get_browser_process_handler: ::std::option::Option<
13632        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t,
13633    >,
13634    #[doc = "\n Return the handler for functionality specific to the render process. This\n function is called on the render process main thread.\n"]
13635    pub get_render_process_handler: ::std::option::Option<
13636        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t,
13637    >,
13638}
13639#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13640const _: () = {
13641    ["Size of _cef_app_t"][::std::mem::size_of::<_cef_app_t>() - 80usize];
13642    ["Alignment of _cef_app_t"][::std::mem::align_of::<_cef_app_t>() - 8usize];
13643    ["Offset of field: _cef_app_t::base"][::std::mem::offset_of!(_cef_app_t, base) - 0usize];
13644    ["Offset of field: _cef_app_t::on_before_command_line_processing"]
13645        [::std::mem::offset_of!(_cef_app_t, on_before_command_line_processing) - 40usize];
13646    ["Offset of field: _cef_app_t::on_register_custom_schemes"]
13647        [::std::mem::offset_of!(_cef_app_t, on_register_custom_schemes) - 48usize];
13648    ["Offset of field: _cef_app_t::get_resource_bundle_handler"]
13649        [::std::mem::offset_of!(_cef_app_t, get_resource_bundle_handler) - 56usize];
13650    ["Offset of field: _cef_app_t::get_browser_process_handler"]
13651        [::std::mem::offset_of!(_cef_app_t, get_browser_process_handler) - 64usize];
13652    ["Offset of field: _cef_app_t::get_render_process_handler"]
13653        [::std::mem::offset_of!(_cef_app_t, get_render_process_handler) - 72usize];
13654};
13655#[doc = "\n Implement this structure to provide handler implementations. Methods will be\n called by the process and/or thread indicated.\n\n NOTE: This struct is allocated client-side.\n"]
13656pub type cef_app_t = _cef_app_t;
13657unsafe extern "C" {
13658    #[doc = "\n This function should be called from the application entry point function to\n execute a secondary process. It can be used to run secondary processes from\n the browser client executable (default behavior) or from a separate\n executable specified by the cef_settings_t.browser_subprocess_path value. If\n called for the browser process (identified by no \"type\" command-line value)\n it will return immediately with a value of -1. If called for a recognized\n secondary process it will block until the process should exit and then\n return the process exit code. The |application| parameter may be NULL. The\n |windows_sandbox_info| parameter is only used on Windows and may be NULL\n (see cef_sandbox_win.h for details).\n"]
13659    pub fn cef_execute_process(
13660        args: *const cef_main_args_t,
13661        application: *mut cef_app_t,
13662        windows_sandbox_info: *mut ::std::os::raw::c_void,
13663    ) -> ::std::os::raw::c_int;
13664}
13665unsafe extern "C" {
13666    #[doc = "\n This function should be called on the main application thread to initialize\n the CEF browser process. The |application| parameter may be NULL. Returns\n true (1) if initialization succeeds. Returns false (0) if initialization\n fails or if early exit is desired (for example, due to process singleton\n relaunch behavior). If this function returns false (0) then the application\n should exit immediately without calling any other CEF functions except,\n optionally, CefGetErrorCode. The |windows_sandbox_info| parameter is only\n used on Windows and may be NULL (see cef_sandbox_win.h for details).\n"]
13667    pub fn cef_initialize(
13668        args: *const cef_main_args_t,
13669        settings: *const _cef_settings_t,
13670        application: *mut cef_app_t,
13671        windows_sandbox_info: *mut ::std::os::raw::c_void,
13672    ) -> ::std::os::raw::c_int;
13673}
13674unsafe extern "C" {
13675    #[doc = "\n This function can optionally be called on the main application thread after\n CefInitialize to retrieve the initialization exit code. When CefInitialize\n returns true (1) the exit code will be 0 (CEF_RESULT_CODE_NORMAL_EXIT).\n Otherwise, see cef_resultcode_t for possible exit code values including\n browser process initialization errors and normal early exit conditions (such\n as CEF_RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED for process singleton\n relaunch behavior).\n"]
13676    pub fn cef_get_exit_code() -> ::std::os::raw::c_int;
13677}
13678unsafe extern "C" {
13679    #[doc = "\n This function should be called on the main application thread to shut down\n the CEF browser process before the application exits. Do not call any other\n CEF functions after calling this function.\n"]
13680    pub fn cef_shutdown();
13681}
13682unsafe extern "C" {
13683    #[doc = "\n Perform a single iteration of CEF message loop processing. This function is\n provided for cases where the CEF message loop must be integrated into an\n existing application message loop. Use of this function is not recommended\n for most users; use either the cef_run_message_loop() function or\n cef_settings_t.multi_threaded_message_loop if possible. When using this\n function care must be taken to balance performance against excessive CPU\n usage. It is recommended to enable the cef_settings_t.external_message_pump\n option when using this function so that\n cef_browser_process_handler_t::on_schedule_message_pump_work() callbacks can\n facilitate the scheduling process. This function should only be called on\n the main application thread and only if cef_initialize() is called with a\n cef_settings_t.multi_threaded_message_loop value of false (0). This function\n will not block.\n"]
13684    pub fn cef_do_message_loop_work();
13685}
13686unsafe extern "C" {
13687    #[doc = "\n Run the CEF message loop. Use this function instead of an application-\n provided message loop to get the best balance between performance and CPU\n usage. This function should only be called on the main application thread\n and only if cef_initialize() is called with a\n cef_settings_t.multi_threaded_message_loop value of false (0). This function\n will block until a quit message is received by the system.\n"]
13688    pub fn cef_run_message_loop();
13689}
13690unsafe extern "C" {
13691    #[doc = "\n Quit the CEF message loop that was started by calling\n cef_run_message_loop(). This function should only be called on the main\n application thread and only if cef_run_message_loop() was used.\n"]
13692    pub fn cef_quit_message_loop();
13693}
13694#[doc = "\n Structure used to make a URL request. URL requests are not associated with a\n browser instance so no cef_client_t callbacks will be executed. URL requests\n can be created on any valid CEF thread in either the browser or render\n process. Once created the functions of the URL request object must be\n accessed on the same thread that created it.\n\n NOTE: This struct is allocated DLL-side.\n"]
13695#[repr(C)]
13696#[derive(Debug, Copy, Clone)]
13697pub struct _cef_urlrequest_t {
13698    #[doc = "\n Base structure.\n"]
13699    pub base: cef_base_ref_counted_t,
13700    #[doc = "\n Returns the request object used to create this URL request. The returned\n object is read-only and should not be modified.\n"]
13701    pub get_request: ::std::option::Option<
13702        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_request_t,
13703    >,
13704    #[doc = "\n Returns the client.\n"]
13705    pub get_client: ::std::option::Option<
13706        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_urlrequest_client_t,
13707    >,
13708    #[doc = "\n Returns the request status.\n"]
13709    pub get_request_status: ::std::option::Option<
13710        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> cef_urlrequest_status_t,
13711    >,
13712    #[doc = "\n Returns the request error if status is UR_CANCELED or UR_FAILED, or 0\n otherwise.\n"]
13713    pub get_request_error: ::std::option::Option<
13714        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> cef_errorcode_t,
13715    >,
13716    #[doc = "\n Returns the response, or NULL if no response information is available.\n Response information will only be available after the upload has\n completed. The returned object is read-only and should not be modified.\n"]
13717    pub get_response: ::std::option::Option<
13718        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_response_t,
13719    >,
13720    #[doc = "\n Returns true (1) if the response body was served from the cache. This\n includes responses for which revalidation was required.\n"]
13721    pub response_was_cached: ::std::option::Option<
13722        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> ::std::os::raw::c_int,
13723    >,
13724    #[doc = "\n Cancel the request.\n"]
13725    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_urlrequest_t)>,
13726}
13727#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13728const _: () = {
13729    ["Size of _cef_urlrequest_t"][::std::mem::size_of::<_cef_urlrequest_t>() - 96usize];
13730    ["Alignment of _cef_urlrequest_t"][::std::mem::align_of::<_cef_urlrequest_t>() - 8usize];
13731    ["Offset of field: _cef_urlrequest_t::base"]
13732        [::std::mem::offset_of!(_cef_urlrequest_t, base) - 0usize];
13733    ["Offset of field: _cef_urlrequest_t::get_request"]
13734        [::std::mem::offset_of!(_cef_urlrequest_t, get_request) - 40usize];
13735    ["Offset of field: _cef_urlrequest_t::get_client"]
13736        [::std::mem::offset_of!(_cef_urlrequest_t, get_client) - 48usize];
13737    ["Offset of field: _cef_urlrequest_t::get_request_status"]
13738        [::std::mem::offset_of!(_cef_urlrequest_t, get_request_status) - 56usize];
13739    ["Offset of field: _cef_urlrequest_t::get_request_error"]
13740        [::std::mem::offset_of!(_cef_urlrequest_t, get_request_error) - 64usize];
13741    ["Offset of field: _cef_urlrequest_t::get_response"]
13742        [::std::mem::offset_of!(_cef_urlrequest_t, get_response) - 72usize];
13743    ["Offset of field: _cef_urlrequest_t::response_was_cached"]
13744        [::std::mem::offset_of!(_cef_urlrequest_t, response_was_cached) - 80usize];
13745    ["Offset of field: _cef_urlrequest_t::cancel"]
13746        [::std::mem::offset_of!(_cef_urlrequest_t, cancel) - 88usize];
13747};
13748#[doc = "\n Structure used to make a URL request. URL requests are not associated with a\n browser instance so no cef_client_t callbacks will be executed. URL requests\n can be created on any valid CEF thread in either the browser or render\n process. Once created the functions of the URL request object must be\n accessed on the same thread that created it.\n\n NOTE: This struct is allocated DLL-side.\n"]
13749pub type cef_urlrequest_t = _cef_urlrequest_t;
13750unsafe extern "C" {
13751    #[doc = "\n Create a new URL request that is not associated with a specific browser or\n frame. Use cef_frame_t::CreateURLRequest instead if you want the request to\n have this association, in which case it may be handled differently (see\n documentation on that function). A request created with this function may\n only originate from the browser process, and will behave as follows:\n   - It may be intercepted by the client via CefResourceRequestHandler or\n     CefSchemeHandlerFactory.\n   - POST data may only contain only a single element of type PDE_TYPE_FILE\n     or PDE_TYPE_BYTES.\n   - If |request_context| is empty the global request context will be used.\n\n The |request| object will be marked as read-only after calling this\n function.\n"]
13752    pub fn cef_urlrequest_create(
13753        request: *mut _cef_request_t,
13754        client: *mut _cef_urlrequest_client_t,
13755        request_context: *mut _cef_request_context_t,
13756    ) -> *mut cef_urlrequest_t;
13757}
13758#[doc = "\n Structure that should be implemented by the cef_urlrequest_t client. The\n functions of this structure will be called on the same thread that created\n the request unless otherwise documented.\n\n NOTE: This struct is allocated client-side.\n"]
13759#[repr(C)]
13760#[derive(Debug, Copy, Clone)]
13761pub struct _cef_urlrequest_client_t {
13762    #[doc = "\n Base structure.\n"]
13763    pub base: cef_base_ref_counted_t,
13764    #[doc = "\n Notifies the client that the request has completed. Use the\n cef_urlrequest_t::GetRequestStatus function to determine if the request\n was successful or not.\n"]
13765    pub on_request_complete: ::std::option::Option<
13766        unsafe extern "C" fn(self_: *mut _cef_urlrequest_client_t, request: *mut _cef_urlrequest_t),
13767    >,
13768    #[doc = "\n Notifies the client of upload progress. |current| denotes the number of\n bytes sent so far and |total| is the total size of uploading data (or -1\n if chunked upload is enabled). This function will only be called if the\n UR_FLAG_REPORT_UPLOAD_PROGRESS flag is set on the request.\n"]
13769    pub on_upload_progress: ::std::option::Option<
13770        unsafe extern "C" fn(
13771            self_: *mut _cef_urlrequest_client_t,
13772            request: *mut _cef_urlrequest_t,
13773            current: i64,
13774            total: i64,
13775        ),
13776    >,
13777    #[doc = "\n Notifies the client of download progress. |current| denotes the number of\n bytes received up to the call and |total| is the expected total size of\n the response (or -1 if not determined).\n"]
13778    pub on_download_progress: ::std::option::Option<
13779        unsafe extern "C" fn(
13780            self_: *mut _cef_urlrequest_client_t,
13781            request: *mut _cef_urlrequest_t,
13782            current: i64,
13783            total: i64,
13784        ),
13785    >,
13786    #[doc = "\n Called when some part of the response is read. |data| contains the current\n bytes received since the last call. This function will not be called if\n the UR_FLAG_NO_DOWNLOAD_DATA flag is set on the request.\n"]
13787    pub on_download_data: ::std::option::Option<
13788        unsafe extern "C" fn(
13789            self_: *mut _cef_urlrequest_client_t,
13790            request: *mut _cef_urlrequest_t,
13791            data: *const ::std::os::raw::c_void,
13792            data_length: usize,
13793        ),
13794    >,
13795    #[doc = "\n Called on the IO thread when the browser needs credentials from the user.\n |isProxy| indicates whether the host is a proxy server. |host| contains\n the hostname and |port| contains the port number. Return true (1) to\n continue the request and call cef_auth_callback_t::cont() when the\n authentication information is available. If the request has an associated\n browser/frame then returning false (0) will result in a call to\n GetAuthCredentials on the cef_request_handler_t associated with that\n browser, if any. Otherwise, returning false (0) will cancel the request\n immediately. This function will only be called for requests initiated from\n the browser process.\n"]
13796    pub get_auth_credentials: ::std::option::Option<
13797        unsafe extern "C" fn(
13798            self_: *mut _cef_urlrequest_client_t,
13799            isProxy: ::std::os::raw::c_int,
13800            host: *const cef_string_t,
13801            port: ::std::os::raw::c_int,
13802            realm: *const cef_string_t,
13803            scheme: *const cef_string_t,
13804            callback: *mut _cef_auth_callback_t,
13805        ) -> ::std::os::raw::c_int,
13806    >,
13807}
13808#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13809const _: () = {
13810    ["Size of _cef_urlrequest_client_t"]
13811        [::std::mem::size_of::<_cef_urlrequest_client_t>() - 80usize];
13812    ["Alignment of _cef_urlrequest_client_t"]
13813        [::std::mem::align_of::<_cef_urlrequest_client_t>() - 8usize];
13814    ["Offset of field: _cef_urlrequest_client_t::base"]
13815        [::std::mem::offset_of!(_cef_urlrequest_client_t, base) - 0usize];
13816    ["Offset of field: _cef_urlrequest_client_t::on_request_complete"]
13817        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_request_complete) - 40usize];
13818    ["Offset of field: _cef_urlrequest_client_t::on_upload_progress"]
13819        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_upload_progress) - 48usize];
13820    ["Offset of field: _cef_urlrequest_client_t::on_download_progress"]
13821        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_download_progress) - 56usize];
13822    ["Offset of field: _cef_urlrequest_client_t::on_download_data"]
13823        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_download_data) - 64usize];
13824    ["Offset of field: _cef_urlrequest_client_t::get_auth_credentials"]
13825        [::std::mem::offset_of!(_cef_urlrequest_client_t, get_auth_credentials) - 72usize];
13826};
13827#[doc = "\n Structure that should be implemented by the cef_urlrequest_t client. The\n functions of this structure will be called on the same thread that created\n the request unless otherwise documented.\n\n NOTE: This struct is allocated client-side.\n"]
13828pub type cef_urlrequest_client_t = _cef_urlrequest_client_t;
13829#[doc = "\n A Layout handles the sizing of the children of a Panel according to\n implementation-specific heuristics. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13830#[repr(C)]
13831#[derive(Debug, Copy, Clone)]
13832pub struct _cef_layout_t {
13833    #[doc = "\n Base structure.\n"]
13834    pub base: cef_base_ref_counted_t,
13835    #[doc = "\n Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.\n"]
13836    pub as_box_layout: ::std::option::Option<
13837        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_box_layout_t,
13838    >,
13839    #[doc = "\n Returns this Layout as a FillLayout or NULL if this is not a FillLayout.\n"]
13840    pub as_fill_layout: ::std::option::Option<
13841        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_fill_layout_t,
13842    >,
13843    #[doc = "\n Returns true (1) if this Layout is valid.\n"]
13844    pub is_valid: ::std::option::Option<
13845        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> ::std::os::raw::c_int,
13846    >,
13847}
13848#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13849const _: () = {
13850    ["Size of _cef_layout_t"][::std::mem::size_of::<_cef_layout_t>() - 64usize];
13851    ["Alignment of _cef_layout_t"][::std::mem::align_of::<_cef_layout_t>() - 8usize];
13852    ["Offset of field: _cef_layout_t::base"][::std::mem::offset_of!(_cef_layout_t, base) - 0usize];
13853    ["Offset of field: _cef_layout_t::as_box_layout"]
13854        [::std::mem::offset_of!(_cef_layout_t, as_box_layout) - 40usize];
13855    ["Offset of field: _cef_layout_t::as_fill_layout"]
13856        [::std::mem::offset_of!(_cef_layout_t, as_fill_layout) - 48usize];
13857    ["Offset of field: _cef_layout_t::is_valid"]
13858        [::std::mem::offset_of!(_cef_layout_t, is_valid) - 56usize];
13859};
13860#[doc = "\n A Layout handles the sizing of the children of a Panel according to\n implementation-specific heuristics. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13861pub type cef_layout_t = _cef_layout_t;
13862#[doc = "\n A Layout manager that arranges child views vertically or horizontally in a\n side-by-side fashion with spacing around and between the child views. The\n child views are always sized according to their preferred size. If the\n host's bounds provide insufficient space, child views will be clamped.\n Excess space will not be distributed. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13863#[repr(C)]
13864#[derive(Debug, Copy, Clone)]
13865pub struct _cef_box_layout_t {
13866    #[doc = "\n Base structure.\n"]
13867    pub base: cef_layout_t,
13868    #[doc = "\n Set the flex weight for the given |view|. Using the preferred size as the\n basis, free space along the main axis is distributed to views in the ratio\n of their flex weights. Similarly, if the views will overflow the parent,\n space is subtracted in these ratios. A flex of 0 means this view is not\n resized. Flex values must not be negative.\n"]
13869    pub set_flex_for_view: ::std::option::Option<
13870        unsafe extern "C" fn(
13871            self_: *mut _cef_box_layout_t,
13872            view: *mut _cef_view_t,
13873            flex: ::std::os::raw::c_int,
13874        ),
13875    >,
13876    #[doc = "\n Clears the flex for the given |view|, causing it to use the default flex\n specified via cef_box_layout_tSettings.default_flex.\n"]
13877    pub clear_flex_for_view: ::std::option::Option<
13878        unsafe extern "C" fn(self_: *mut _cef_box_layout_t, view: *mut _cef_view_t),
13879    >,
13880}
13881#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13882const _: () = {
13883    ["Size of _cef_box_layout_t"][::std::mem::size_of::<_cef_box_layout_t>() - 80usize];
13884    ["Alignment of _cef_box_layout_t"][::std::mem::align_of::<_cef_box_layout_t>() - 8usize];
13885    ["Offset of field: _cef_box_layout_t::base"]
13886        [::std::mem::offset_of!(_cef_box_layout_t, base) - 0usize];
13887    ["Offset of field: _cef_box_layout_t::set_flex_for_view"]
13888        [::std::mem::offset_of!(_cef_box_layout_t, set_flex_for_view) - 64usize];
13889    ["Offset of field: _cef_box_layout_t::clear_flex_for_view"]
13890        [::std::mem::offset_of!(_cef_box_layout_t, clear_flex_for_view) - 72usize];
13891};
13892#[doc = "\n A Layout manager that arranges child views vertically or horizontally in a\n side-by-side fashion with spacing around and between the child views. The\n child views are always sized according to their preferred size. If the\n host's bounds provide insufficient space, child views will be clamped.\n Excess space will not be distributed. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13893pub type cef_box_layout_t = _cef_box_layout_t;
13894#[doc = "\n A simple Layout that causes the associated Panel's one child to be sized to\n match the bounds of its parent. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13895#[repr(C)]
13896#[derive(Debug, Copy, Clone)]
13897pub struct _cef_fill_layout_t {
13898    #[doc = "\n Base structure.\n"]
13899    pub base: cef_layout_t,
13900}
13901#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13902const _: () = {
13903    ["Size of _cef_fill_layout_t"][::std::mem::size_of::<_cef_fill_layout_t>() - 64usize];
13904    ["Alignment of _cef_fill_layout_t"][::std::mem::align_of::<_cef_fill_layout_t>() - 8usize];
13905    ["Offset of field: _cef_fill_layout_t::base"]
13906        [::std::mem::offset_of!(_cef_fill_layout_t, base) - 0usize];
13907};
13908#[doc = "\n A simple Layout that causes the associated Panel's one child to be sized to\n match the bounds of its parent. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
13909pub type cef_fill_layout_t = _cef_fill_layout_t;
13910#[doc = "\n Implement this structure to handle view events. All size and position values\n are in density independent pixels (DIP) unless otherwise indicated. The\n functions of this structure will be called on the browser process UI thread\n unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
13911#[repr(C)]
13912#[derive(Debug, Copy, Clone)]
13913pub struct _cef_view_delegate_t {
13914    #[doc = "\n Base structure.\n"]
13915    pub base: cef_base_ref_counted_t,
13916    #[doc = "\n Return the preferred size for |view|. The Layout will use this information\n to determine the display size.\n"]
13917    pub get_preferred_size: ::std::option::Option<
13918        unsafe extern "C" fn(
13919            self_: *mut _cef_view_delegate_t,
13920            view: *mut _cef_view_t,
13921        ) -> cef_size_t,
13922    >,
13923    #[doc = "\n Return the minimum size for |view|.\n"]
13924    pub get_minimum_size: ::std::option::Option<
13925        unsafe extern "C" fn(
13926            self_: *mut _cef_view_delegate_t,
13927            view: *mut _cef_view_t,
13928        ) -> cef_size_t,
13929    >,
13930    #[doc = "\n Return the maximum size for |view|.\n"]
13931    pub get_maximum_size: ::std::option::Option<
13932        unsafe extern "C" fn(
13933            self_: *mut _cef_view_delegate_t,
13934            view: *mut _cef_view_t,
13935        ) -> cef_size_t,
13936    >,
13937    #[doc = "\n Return the height necessary to display |view| with the provided |width|.\n If not specified the result of get_preferred_size().height will be used by\n default. Override if |view|'s preferred height depends upon the width (for\n example, with Labels).\n"]
13938    pub get_height_for_width: ::std::option::Option<
13939        unsafe extern "C" fn(
13940            self_: *mut _cef_view_delegate_t,
13941            view: *mut _cef_view_t,
13942            width: ::std::os::raw::c_int,
13943        ) -> ::std::os::raw::c_int,
13944    >,
13945    #[doc = "\n Called when the parent of |view| has changed. If |view| is being added to\n |parent| then |added| will be true (1). If |view| is being removed from\n |parent| then |added| will be false (0). If |view| is being reparented the\n remove notification will be sent before the add notification. Do not\n modify the view hierarchy in this callback.\n"]
13946    pub on_parent_view_changed: ::std::option::Option<
13947        unsafe extern "C" fn(
13948            self_: *mut _cef_view_delegate_t,
13949            view: *mut _cef_view_t,
13950            added: ::std::os::raw::c_int,
13951            parent: *mut _cef_view_t,
13952        ),
13953    >,
13954    #[doc = "\n Called when a child of |view| has changed. If |child| is being added to\n |view| then |added| will be true (1). If |child| is being removed from\n |view| then |added| will be false (0). If |child| is being reparented the\n remove notification will be sent to the old parent before the add\n notification is sent to the new parent. Do not modify the view hierarchy\n in this callback.\n"]
13955    pub on_child_view_changed: ::std::option::Option<
13956        unsafe extern "C" fn(
13957            self_: *mut _cef_view_delegate_t,
13958            view: *mut _cef_view_t,
13959            added: ::std::os::raw::c_int,
13960            child: *mut _cef_view_t,
13961        ),
13962    >,
13963    #[doc = "\n Called when |view| is added or removed from the cef_window_t.\n"]
13964    pub on_window_changed: ::std::option::Option<
13965        unsafe extern "C" fn(
13966            self_: *mut _cef_view_delegate_t,
13967            view: *mut _cef_view_t,
13968            added: ::std::os::raw::c_int,
13969        ),
13970    >,
13971    #[doc = "\n Called when the layout of |view| has changed.\n"]
13972    pub on_layout_changed: ::std::option::Option<
13973        unsafe extern "C" fn(
13974            self_: *mut _cef_view_delegate_t,
13975            view: *mut _cef_view_t,
13976            new_bounds: *const cef_rect_t,
13977        ),
13978    >,
13979    #[doc = "\n Called when |view| gains focus.\n"]
13980    pub on_focus: ::std::option::Option<
13981        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
13982    >,
13983    #[doc = "\n Called when |view| loses focus.\n"]
13984    pub on_blur: ::std::option::Option<
13985        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
13986    >,
13987    #[doc = "\n Called when the theme for |view| has changed, after the new theme colors\n have already been applied. Views are notified via the component hierarchy\n in depth-first reverse order (children before parents).\n\n This will be called in the following cases:\n\n 1. When |view|, or a parent of |view|, is added to a Window. 2. When the\n native/OS or Chrome theme changes for the Window that contains\n    |view|. See CefWindowDelegate::OnThemeColorsChanged documentation.\n 3. When the client explicitly calls cef_window_t::ThemeChanged on the\n Window\n    that contains |view|.\n\n Optionally use this callback to override the new per-View theme colors by\n calling cef_view_t::SetBackgroundColor or the appropriate component-\n specific function. See cef_window_t::SetThemeColor documentation for how\n to customize additional Window theme colors.\n"]
13988    pub on_theme_changed: ::std::option::Option<
13989        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
13990    >,
13991}
13992#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13993const _: () = {
13994    ["Size of _cef_view_delegate_t"][::std::mem::size_of::<_cef_view_delegate_t>() - 128usize];
13995    ["Alignment of _cef_view_delegate_t"][::std::mem::align_of::<_cef_view_delegate_t>() - 8usize];
13996    ["Offset of field: _cef_view_delegate_t::base"]
13997        [::std::mem::offset_of!(_cef_view_delegate_t, base) - 0usize];
13998    ["Offset of field: _cef_view_delegate_t::get_preferred_size"]
13999        [::std::mem::offset_of!(_cef_view_delegate_t, get_preferred_size) - 40usize];
14000    ["Offset of field: _cef_view_delegate_t::get_minimum_size"]
14001        [::std::mem::offset_of!(_cef_view_delegate_t, get_minimum_size) - 48usize];
14002    ["Offset of field: _cef_view_delegate_t::get_maximum_size"]
14003        [::std::mem::offset_of!(_cef_view_delegate_t, get_maximum_size) - 56usize];
14004    ["Offset of field: _cef_view_delegate_t::get_height_for_width"]
14005        [::std::mem::offset_of!(_cef_view_delegate_t, get_height_for_width) - 64usize];
14006    ["Offset of field: _cef_view_delegate_t::on_parent_view_changed"]
14007        [::std::mem::offset_of!(_cef_view_delegate_t, on_parent_view_changed) - 72usize];
14008    ["Offset of field: _cef_view_delegate_t::on_child_view_changed"]
14009        [::std::mem::offset_of!(_cef_view_delegate_t, on_child_view_changed) - 80usize];
14010    ["Offset of field: _cef_view_delegate_t::on_window_changed"]
14011        [::std::mem::offset_of!(_cef_view_delegate_t, on_window_changed) - 88usize];
14012    ["Offset of field: _cef_view_delegate_t::on_layout_changed"]
14013        [::std::mem::offset_of!(_cef_view_delegate_t, on_layout_changed) - 96usize];
14014    ["Offset of field: _cef_view_delegate_t::on_focus"]
14015        [::std::mem::offset_of!(_cef_view_delegate_t, on_focus) - 104usize];
14016    ["Offset of field: _cef_view_delegate_t::on_blur"]
14017        [::std::mem::offset_of!(_cef_view_delegate_t, on_blur) - 112usize];
14018    ["Offset of field: _cef_view_delegate_t::on_theme_changed"]
14019        [::std::mem::offset_of!(_cef_view_delegate_t, on_theme_changed) - 120usize];
14020};
14021#[doc = "\n Implement this structure to handle view events. All size and position values\n are in density independent pixels (DIP) unless otherwise indicated. The\n functions of this structure will be called on the browser process UI thread\n unless otherwise indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14022pub type cef_view_delegate_t = _cef_view_delegate_t;
14023#[doc = "\n A View is a rectangle within the views View hierarchy. It is the base\n structure for all Views. All size and position values are in density\n independent pixels (DIP) unless otherwise indicated. Methods must be called\n on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14024#[repr(C)]
14025#[derive(Debug, Copy, Clone)]
14026pub struct _cef_view_t {
14027    #[doc = "\n Base structure.\n"]
14028    pub base: cef_base_ref_counted_t,
14029    #[doc = "\n Returns this View as a BrowserView or NULL if this is not a BrowserView.\n"]
14030    pub as_browser_view: ::std::option::Option<
14031        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_browser_view_t,
14032    >,
14033    #[doc = "\n Returns this View as a Button or NULL if this is not a Button.\n"]
14034    pub as_button:
14035        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_button_t>,
14036    #[doc = "\n Returns this View as a Panel or NULL if this is not a Panel.\n"]
14037    pub as_panel:
14038        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_panel_t>,
14039    #[doc = "\n Returns this View as a ScrollView or NULL if this is not a ScrollView.\n"]
14040    pub as_scroll_view: ::std::option::Option<
14041        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_scroll_view_t,
14042    >,
14043    #[doc = "\n Returns this View as a Textfield or NULL if this is not a Textfield.\n"]
14044    pub as_textfield: ::std::option::Option<
14045        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_textfield_t,
14046    >,
14047    #[doc = "\n Returns the type of this View as a string. Used primarily for testing\n purposes.\n"]
14048    pub get_type_string: ::std::option::Option<
14049        unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_string_userfree_t,
14050    >,
14051    #[doc = "\n Returns a string representation of this View which includes the type and\n various type-specific identifying attributes. If |include_children| is\n true (1) any child Views will also be included. Used primarily for testing\n purposes.\n"]
14052    pub to_string: ::std::option::Option<
14053        unsafe extern "C" fn(
14054            self_: *mut _cef_view_t,
14055            include_children: ::std::os::raw::c_int,
14056        ) -> cef_string_userfree_t,
14057    >,
14058    #[doc = "\n Returns true (1) if this View is valid.\n"]
14059    pub is_valid: ::std::option::Option<
14060        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14061    >,
14062    #[doc = "\n Returns true (1) if this View is currently attached to another View. A\n View can only be attached to one View at a time.\n"]
14063    pub is_attached: ::std::option::Option<
14064        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14065    >,
14066    #[doc = "\n Returns true (1) if this View is the same as |that| View.\n"]
14067    pub is_same: ::std::option::Option<
14068        unsafe extern "C" fn(
14069            self_: *mut _cef_view_t,
14070            that: *mut _cef_view_t,
14071        ) -> ::std::os::raw::c_int,
14072    >,
14073    #[doc = "\n Returns the delegate associated with this View, if any.\n"]
14074    pub get_delegate: ::std::option::Option<
14075        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_view_delegate_t,
14076    >,
14077    #[doc = "\n Returns the top-level Window hosting this View, if any.\n"]
14078    pub get_window:
14079        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_window_t>,
14080    #[doc = "\n Returns the ID for this View.\n"]
14081    pub get_id: ::std::option::Option<
14082        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14083    >,
14084    #[doc = "\n Sets the ID for this View. ID should be unique within the subtree that you\n intend to search for it. 0 is the default ID for views.\n"]
14085    pub set_id: ::std::option::Option<
14086        unsafe extern "C" fn(self_: *mut _cef_view_t, id: ::std::os::raw::c_int),
14087    >,
14088    #[doc = "\n Returns the group id of this View, or -1 if not set.\n"]
14089    pub get_group_id: ::std::option::Option<
14090        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14091    >,
14092    #[doc = "\n A group id is used to tag Views which are part of the same logical group.\n Focus can be moved between views with the same group using the arrow keys.\n The group id is immutable once it's set.\n"]
14093    pub set_group_id: ::std::option::Option<
14094        unsafe extern "C" fn(self_: *mut _cef_view_t, group_id: ::std::os::raw::c_int),
14095    >,
14096    #[doc = "\n Returns the View that contains this View, if any.\n"]
14097    pub get_parent_view:
14098        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_view_t>,
14099    #[doc = "\n Recursively descends the view tree starting at this View, and returns the\n first child that it encounters with the given ID. Returns NULL if no\n matching child view is found.\n"]
14100    pub get_view_for_id: ::std::option::Option<
14101        unsafe extern "C" fn(
14102            self_: *mut _cef_view_t,
14103            id: ::std::os::raw::c_int,
14104        ) -> *mut _cef_view_t,
14105    >,
14106    #[doc = "\n Sets the bounds (size and position) of this View. |bounds| is in parent\n coordinates, or DIP screen coordinates if there is no parent.\n"]
14107    pub set_bounds: ::std::option::Option<
14108        unsafe extern "C" fn(self_: *mut _cef_view_t, bounds: *const cef_rect_t),
14109    >,
14110    #[doc = "\n Returns the bounds (size and position) of this View in parent coordinates,\n or DIP screen coordinates if there is no parent.\n"]
14111    pub get_bounds:
14112        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_rect_t>,
14113    #[doc = "\n Returns the bounds (size and position) of this View in DIP screen\n coordinates.\n"]
14114    pub get_bounds_in_screen:
14115        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_rect_t>,
14116    #[doc = "\n Sets the size of this View without changing the position. |size| in parent\n coordinates, or DIP screen coordinates if there is no parent.\n"]
14117    pub set_size: ::std::option::Option<
14118        unsafe extern "C" fn(self_: *mut _cef_view_t, size: *const cef_size_t),
14119    >,
14120    #[doc = "\n Returns the size of this View in parent coordinates, or DIP screen\n coordinates if there is no parent.\n"]
14121    pub get_size:
14122        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
14123    #[doc = "\n Sets the position of this View without changing the size. |position| is in\n parent coordinates, or DIP screen coordinates if there is no parent.\n"]
14124    pub set_position: ::std::option::Option<
14125        unsafe extern "C" fn(self_: *mut _cef_view_t, position: *const cef_point_t),
14126    >,
14127    #[doc = "\n Returns the position of this View. Position is in parent coordinates, or\n DIP screen coordinates if there is no parent.\n"]
14128    pub get_position:
14129        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_point_t>,
14130    #[doc = "\n Sets the insets for this View. |insets| is in parent coordinates, or DIP\n screen coordinates if there is no parent.\n"]
14131    pub set_insets: ::std::option::Option<
14132        unsafe extern "C" fn(self_: *mut _cef_view_t, insets: *const cef_insets_t),
14133    >,
14134    #[doc = "\n Returns the insets for this View in parent coordinates, or DIP screen\n coordinates if there is no parent.\n"]
14135    pub get_insets:
14136        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_insets_t>,
14137    #[doc = "\n Returns the size this View would like to be if enough space is available.\n Size is in parent coordinates, or DIP screen coordinates if there is no\n parent.\n"]
14138    pub get_preferred_size:
14139        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
14140    #[doc = "\n Size this View to its preferred size. Size is in parent coordinates, or\n DIP screen coordinates if there is no parent.\n"]
14141    pub size_to_preferred_size:
14142        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
14143    #[doc = "\n Returns the minimum size for this View. Size is in parent coordinates, or\n DIP screen coordinates if there is no parent.\n"]
14144    pub get_minimum_size:
14145        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
14146    #[doc = "\n Returns the maximum size for this View. Size is in parent coordinates, or\n DIP screen coordinates if there is no parent.\n"]
14147    pub get_maximum_size:
14148        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
14149    #[doc = "\n Returns the height necessary to display this View with the provided width.\n"]
14150    pub get_height_for_width: ::std::option::Option<
14151        unsafe extern "C" fn(
14152            self_: *mut _cef_view_t,
14153            width: ::std::os::raw::c_int,
14154        ) -> ::std::os::raw::c_int,
14155    >,
14156    #[doc = "\n Indicate that this View and all parent Views require a re-layout. This\n ensures the next call to layout() will propagate to this View even if the\n bounds of parent Views do not change.\n"]
14157    pub invalidate_layout: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
14158    #[doc = "\n Sets whether this View is visible. Windows are hidden by default and other\n views are visible by default. This View and any parent views must be set\n as visible for this View to be drawn in a Window. If this View is set as\n hidden then it and any child views will not be drawn and, if any of those\n views currently have focus, then focus will also be cleared. Painting is\n scheduled as needed. If this View is a Window then calling this function\n is equivalent to calling the Window show() and hide() functions.\n"]
14159    pub set_visible: ::std::option::Option<
14160        unsafe extern "C" fn(self_: *mut _cef_view_t, visible: ::std::os::raw::c_int),
14161    >,
14162    #[doc = "\n Returns whether this View is visible. A view may be visible but still not\n drawn in a Window if any parent views are hidden. If this View is a Window\n then a return value of true (1) indicates that this Window is currently\n visible to the user on-screen. If this View is not a Window then call\n is_drawn() to determine whether this View and all parent views are visible\n and will be drawn.\n"]
14163    pub is_visible: ::std::option::Option<
14164        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14165    >,
14166    #[doc = "\n Returns whether this View is visible and drawn in a Window. A view is\n drawn if it and all parent views are visible. If this View is a Window\n then calling this function is equivalent to calling is_visible().\n Otherwise, to determine if the containing Window is visible to the user\n on-screen call is_visible() on the Window.\n"]
14167    pub is_drawn: ::std::option::Option<
14168        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14169    >,
14170    #[doc = "\n Set whether this View is enabled. A disabled View does not receive\n keyboard or mouse inputs. If |enabled| differs from the current value the\n View will be repainted. Also, clears focus if the focused View is\n disabled.\n"]
14171    pub set_enabled: ::std::option::Option<
14172        unsafe extern "C" fn(self_: *mut _cef_view_t, enabled: ::std::os::raw::c_int),
14173    >,
14174    #[doc = "\n Returns whether this View is enabled.\n"]
14175    pub is_enabled: ::std::option::Option<
14176        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14177    >,
14178    #[doc = "\n Sets whether this View is capable of taking focus. It will clear focus if\n the focused View is set to be non-focusable. This is false (0) by default\n so that a View used as a container does not get the focus.\n"]
14179    pub set_focusable: ::std::option::Option<
14180        unsafe extern "C" fn(self_: *mut _cef_view_t, focusable: ::std::os::raw::c_int),
14181    >,
14182    #[doc = "\n Returns true (1) if this View is focusable, enabled and drawn.\n"]
14183    pub is_focusable: ::std::option::Option<
14184        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14185    >,
14186    #[doc = "\n Return whether this View is focusable when the user requires full keyboard\n access, even though it may not be normally focusable.\n"]
14187    pub is_accessibility_focusable: ::std::option::Option<
14188        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14189    >,
14190    #[doc = "\n Returns true (1) if this View has focus in the context of the containing\n Window. Check both this function and cef_window_t::IsActive to determine\n global keyboard focus.\n"]
14191    pub has_focus: ::std::option::Option<
14192        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
14193    >,
14194    #[doc = "\n Request focus for this View in the context of the containing Window. If\n this View is focusable it will become the focused View. Any focus changes\n while a Window is not active may be applied after that Window next becomes\n active.\n"]
14195    pub request_focus: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
14196    #[doc = "\n Sets the background color for this View. The background color will be\n automatically reset when cef_view_delegate_t::OnThemeChanged is called.\n"]
14197    pub set_background_color:
14198        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t, color: cef_color_t)>,
14199    #[doc = "\n Returns the background color for this View. If the background color is\n unset then the current `GetThemeColor(CEF_ColorPrimaryBackground)` value\n will be returned. If this View belongs to an overlay (created with\n cef_window_t::AddOverlayView), and the background color is unset, then a\n value of transparent (0) will be returned.\n"]
14200    pub get_background_color:
14201        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_color_t>,
14202    #[doc = "\n Returns the current theme color associated with |color_id|, or the\n placeholder color (red) if unset. See cef_color_ids.h for standard ID\n values. Standard colors can be overridden and custom colors can be added\n using cef_window_t::SetThemeColor.\n"]
14203    pub get_theme_color: ::std::option::Option<
14204        unsafe extern "C" fn(
14205            self_: *mut _cef_view_t,
14206            color_id: ::std::os::raw::c_int,
14207        ) -> cef_color_t,
14208    >,
14209    #[doc = "\n Convert |point| from this View's coordinate system to DIP screen\n coordinates. This View must belong to a Window when calling this function.\n Returns true (1) if the conversion is successful or false (0) otherwise.\n Use cef_display_t::convert_point_to_pixels() after calling this function\n if further conversion to display-specific pixel coordinates is desired.\n"]
14210    pub convert_point_to_screen: ::std::option::Option<
14211        unsafe extern "C" fn(
14212            self_: *mut _cef_view_t,
14213            point: *mut cef_point_t,
14214        ) -> ::std::os::raw::c_int,
14215    >,
14216    #[doc = "\n Convert |point| to this View's coordinate system from DIP screen\n coordinates. This View must belong to a Window when calling this function.\n Returns true (1) if the conversion is successful or false (0) otherwise.\n Use cef_display_t::convert_point_from_pixels() before calling this\n function if conversion from display-specific pixel coordinates is\n necessary.\n"]
14217    pub convert_point_from_screen: ::std::option::Option<
14218        unsafe extern "C" fn(
14219            self_: *mut _cef_view_t,
14220            point: *mut cef_point_t,
14221        ) -> ::std::os::raw::c_int,
14222    >,
14223    #[doc = "\n Convert |point| from this View's coordinate system to that of the Window.\n This View must belong to a Window when calling this function. Returns true\n (1) if the conversion is successful or false (0) otherwise.\n"]
14224    pub convert_point_to_window: ::std::option::Option<
14225        unsafe extern "C" fn(
14226            self_: *mut _cef_view_t,
14227            point: *mut cef_point_t,
14228        ) -> ::std::os::raw::c_int,
14229    >,
14230    #[doc = "\n Convert |point| to this View's coordinate system from that of the Window.\n This View must belong to a Window when calling this function. Returns true\n (1) if the conversion is successful or false (0) otherwise.\n"]
14231    pub convert_point_from_window: ::std::option::Option<
14232        unsafe extern "C" fn(
14233            self_: *mut _cef_view_t,
14234            point: *mut cef_point_t,
14235        ) -> ::std::os::raw::c_int,
14236    >,
14237    #[doc = "\n Convert |point| from this View's coordinate system to that of |view|.\n |view| needs to be in the same Window but not necessarily the same view\n hierarchy. Returns true (1) if the conversion is successful or false (0)\n otherwise.\n"]
14238    pub convert_point_to_view: ::std::option::Option<
14239        unsafe extern "C" fn(
14240            self_: *mut _cef_view_t,
14241            view: *mut _cef_view_t,
14242            point: *mut cef_point_t,
14243        ) -> ::std::os::raw::c_int,
14244    >,
14245    #[doc = "\n Convert |point| to this View's coordinate system from that |view|. |view|\n needs to be in the same Window but not necessarily the same view\n hierarchy. Returns true (1) if the conversion is successful or false (0)\n otherwise.\n"]
14246    pub convert_point_from_view: ::std::option::Option<
14247        unsafe extern "C" fn(
14248            self_: *mut _cef_view_t,
14249            view: *mut _cef_view_t,
14250            point: *mut cef_point_t,
14251        ) -> ::std::os::raw::c_int,
14252    >,
14253}
14254#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14255const _: () = {
14256    ["Size of _cef_view_t"][::std::mem::size_of::<_cef_view_t>() - 456usize];
14257    ["Alignment of _cef_view_t"][::std::mem::align_of::<_cef_view_t>() - 8usize];
14258    ["Offset of field: _cef_view_t::base"][::std::mem::offset_of!(_cef_view_t, base) - 0usize];
14259    ["Offset of field: _cef_view_t::as_browser_view"]
14260        [::std::mem::offset_of!(_cef_view_t, as_browser_view) - 40usize];
14261    ["Offset of field: _cef_view_t::as_button"]
14262        [::std::mem::offset_of!(_cef_view_t, as_button) - 48usize];
14263    ["Offset of field: _cef_view_t::as_panel"]
14264        [::std::mem::offset_of!(_cef_view_t, as_panel) - 56usize];
14265    ["Offset of field: _cef_view_t::as_scroll_view"]
14266        [::std::mem::offset_of!(_cef_view_t, as_scroll_view) - 64usize];
14267    ["Offset of field: _cef_view_t::as_textfield"]
14268        [::std::mem::offset_of!(_cef_view_t, as_textfield) - 72usize];
14269    ["Offset of field: _cef_view_t::get_type_string"]
14270        [::std::mem::offset_of!(_cef_view_t, get_type_string) - 80usize];
14271    ["Offset of field: _cef_view_t::to_string"]
14272        [::std::mem::offset_of!(_cef_view_t, to_string) - 88usize];
14273    ["Offset of field: _cef_view_t::is_valid"]
14274        [::std::mem::offset_of!(_cef_view_t, is_valid) - 96usize];
14275    ["Offset of field: _cef_view_t::is_attached"]
14276        [::std::mem::offset_of!(_cef_view_t, is_attached) - 104usize];
14277    ["Offset of field: _cef_view_t::is_same"]
14278        [::std::mem::offset_of!(_cef_view_t, is_same) - 112usize];
14279    ["Offset of field: _cef_view_t::get_delegate"]
14280        [::std::mem::offset_of!(_cef_view_t, get_delegate) - 120usize];
14281    ["Offset of field: _cef_view_t::get_window"]
14282        [::std::mem::offset_of!(_cef_view_t, get_window) - 128usize];
14283    ["Offset of field: _cef_view_t::get_id"]
14284        [::std::mem::offset_of!(_cef_view_t, get_id) - 136usize];
14285    ["Offset of field: _cef_view_t::set_id"]
14286        [::std::mem::offset_of!(_cef_view_t, set_id) - 144usize];
14287    ["Offset of field: _cef_view_t::get_group_id"]
14288        [::std::mem::offset_of!(_cef_view_t, get_group_id) - 152usize];
14289    ["Offset of field: _cef_view_t::set_group_id"]
14290        [::std::mem::offset_of!(_cef_view_t, set_group_id) - 160usize];
14291    ["Offset of field: _cef_view_t::get_parent_view"]
14292        [::std::mem::offset_of!(_cef_view_t, get_parent_view) - 168usize];
14293    ["Offset of field: _cef_view_t::get_view_for_id"]
14294        [::std::mem::offset_of!(_cef_view_t, get_view_for_id) - 176usize];
14295    ["Offset of field: _cef_view_t::set_bounds"]
14296        [::std::mem::offset_of!(_cef_view_t, set_bounds) - 184usize];
14297    ["Offset of field: _cef_view_t::get_bounds"]
14298        [::std::mem::offset_of!(_cef_view_t, get_bounds) - 192usize];
14299    ["Offset of field: _cef_view_t::get_bounds_in_screen"]
14300        [::std::mem::offset_of!(_cef_view_t, get_bounds_in_screen) - 200usize];
14301    ["Offset of field: _cef_view_t::set_size"]
14302        [::std::mem::offset_of!(_cef_view_t, set_size) - 208usize];
14303    ["Offset of field: _cef_view_t::get_size"]
14304        [::std::mem::offset_of!(_cef_view_t, get_size) - 216usize];
14305    ["Offset of field: _cef_view_t::set_position"]
14306        [::std::mem::offset_of!(_cef_view_t, set_position) - 224usize];
14307    ["Offset of field: _cef_view_t::get_position"]
14308        [::std::mem::offset_of!(_cef_view_t, get_position) - 232usize];
14309    ["Offset of field: _cef_view_t::set_insets"]
14310        [::std::mem::offset_of!(_cef_view_t, set_insets) - 240usize];
14311    ["Offset of field: _cef_view_t::get_insets"]
14312        [::std::mem::offset_of!(_cef_view_t, get_insets) - 248usize];
14313    ["Offset of field: _cef_view_t::get_preferred_size"]
14314        [::std::mem::offset_of!(_cef_view_t, get_preferred_size) - 256usize];
14315    ["Offset of field: _cef_view_t::size_to_preferred_size"]
14316        [::std::mem::offset_of!(_cef_view_t, size_to_preferred_size) - 264usize];
14317    ["Offset of field: _cef_view_t::get_minimum_size"]
14318        [::std::mem::offset_of!(_cef_view_t, get_minimum_size) - 272usize];
14319    ["Offset of field: _cef_view_t::get_maximum_size"]
14320        [::std::mem::offset_of!(_cef_view_t, get_maximum_size) - 280usize];
14321    ["Offset of field: _cef_view_t::get_height_for_width"]
14322        [::std::mem::offset_of!(_cef_view_t, get_height_for_width) - 288usize];
14323    ["Offset of field: _cef_view_t::invalidate_layout"]
14324        [::std::mem::offset_of!(_cef_view_t, invalidate_layout) - 296usize];
14325    ["Offset of field: _cef_view_t::set_visible"]
14326        [::std::mem::offset_of!(_cef_view_t, set_visible) - 304usize];
14327    ["Offset of field: _cef_view_t::is_visible"]
14328        [::std::mem::offset_of!(_cef_view_t, is_visible) - 312usize];
14329    ["Offset of field: _cef_view_t::is_drawn"]
14330        [::std::mem::offset_of!(_cef_view_t, is_drawn) - 320usize];
14331    ["Offset of field: _cef_view_t::set_enabled"]
14332        [::std::mem::offset_of!(_cef_view_t, set_enabled) - 328usize];
14333    ["Offset of field: _cef_view_t::is_enabled"]
14334        [::std::mem::offset_of!(_cef_view_t, is_enabled) - 336usize];
14335    ["Offset of field: _cef_view_t::set_focusable"]
14336        [::std::mem::offset_of!(_cef_view_t, set_focusable) - 344usize];
14337    ["Offset of field: _cef_view_t::is_focusable"]
14338        [::std::mem::offset_of!(_cef_view_t, is_focusable) - 352usize];
14339    ["Offset of field: _cef_view_t::is_accessibility_focusable"]
14340        [::std::mem::offset_of!(_cef_view_t, is_accessibility_focusable) - 360usize];
14341    ["Offset of field: _cef_view_t::has_focus"]
14342        [::std::mem::offset_of!(_cef_view_t, has_focus) - 368usize];
14343    ["Offset of field: _cef_view_t::request_focus"]
14344        [::std::mem::offset_of!(_cef_view_t, request_focus) - 376usize];
14345    ["Offset of field: _cef_view_t::set_background_color"]
14346        [::std::mem::offset_of!(_cef_view_t, set_background_color) - 384usize];
14347    ["Offset of field: _cef_view_t::get_background_color"]
14348        [::std::mem::offset_of!(_cef_view_t, get_background_color) - 392usize];
14349    ["Offset of field: _cef_view_t::get_theme_color"]
14350        [::std::mem::offset_of!(_cef_view_t, get_theme_color) - 400usize];
14351    ["Offset of field: _cef_view_t::convert_point_to_screen"]
14352        [::std::mem::offset_of!(_cef_view_t, convert_point_to_screen) - 408usize];
14353    ["Offset of field: _cef_view_t::convert_point_from_screen"]
14354        [::std::mem::offset_of!(_cef_view_t, convert_point_from_screen) - 416usize];
14355    ["Offset of field: _cef_view_t::convert_point_to_window"]
14356        [::std::mem::offset_of!(_cef_view_t, convert_point_to_window) - 424usize];
14357    ["Offset of field: _cef_view_t::convert_point_from_window"]
14358        [::std::mem::offset_of!(_cef_view_t, convert_point_from_window) - 432usize];
14359    ["Offset of field: _cef_view_t::convert_point_to_view"]
14360        [::std::mem::offset_of!(_cef_view_t, convert_point_to_view) - 440usize];
14361    ["Offset of field: _cef_view_t::convert_point_from_view"]
14362        [::std::mem::offset_of!(_cef_view_t, convert_point_from_view) - 448usize];
14363};
14364#[doc = "\n A View is a rectangle within the views View hierarchy. It is the base\n structure for all Views. All size and position values are in density\n independent pixels (DIP) unless otherwise indicated. Methods must be called\n on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14365pub type cef_view_t = _cef_view_t;
14366#[doc = "\n A View representing a button. Depending on the specific type, the button\n could be implemented by a native control or custom rendered. Methods must be\n called on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14367#[repr(C)]
14368#[derive(Debug, Copy, Clone)]
14369pub struct _cef_button_t {
14370    #[doc = "\n Base structure.\n"]
14371    pub base: cef_view_t,
14372    #[doc = "\n Returns this Button as a LabelButton or NULL if this is not a LabelButton.\n"]
14373    pub as_label_button: ::std::option::Option<
14374        unsafe extern "C" fn(self_: *mut _cef_button_t) -> *mut _cef_label_button_t,
14375    >,
14376    #[doc = "\n Sets the current display state of the Button.\n"]
14377    pub set_state: ::std::option::Option<
14378        unsafe extern "C" fn(self_: *mut _cef_button_t, state: cef_button_state_t),
14379    >,
14380    #[doc = "\n Returns the current display state of the Button.\n"]
14381    pub get_state: ::std::option::Option<
14382        unsafe extern "C" fn(self_: *mut _cef_button_t) -> cef_button_state_t,
14383    >,
14384    #[doc = "\n Sets the Button will use an ink drop effect for displaying state changes.\n"]
14385    pub set_ink_drop_enabled: ::std::option::Option<
14386        unsafe extern "C" fn(self_: *mut _cef_button_t, enabled: ::std::os::raw::c_int),
14387    >,
14388    #[doc = "\n Sets the tooltip text that will be displayed when the user hovers the\n mouse cursor over the Button.\n"]
14389    pub set_tooltip_text: ::std::option::Option<
14390        unsafe extern "C" fn(self_: *mut _cef_button_t, tooltip_text: *const cef_string_t),
14391    >,
14392    #[doc = "\n Sets the accessible name that will be exposed to assistive technology\n (AT).\n"]
14393    pub set_accessible_name: ::std::option::Option<
14394        unsafe extern "C" fn(self_: *mut _cef_button_t, name: *const cef_string_t),
14395    >,
14396}
14397#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14398const _: () = {
14399    ["Size of _cef_button_t"][::std::mem::size_of::<_cef_button_t>() - 504usize];
14400    ["Alignment of _cef_button_t"][::std::mem::align_of::<_cef_button_t>() - 8usize];
14401    ["Offset of field: _cef_button_t::base"][::std::mem::offset_of!(_cef_button_t, base) - 0usize];
14402    ["Offset of field: _cef_button_t::as_label_button"]
14403        [::std::mem::offset_of!(_cef_button_t, as_label_button) - 456usize];
14404    ["Offset of field: _cef_button_t::set_state"]
14405        [::std::mem::offset_of!(_cef_button_t, set_state) - 464usize];
14406    ["Offset of field: _cef_button_t::get_state"]
14407        [::std::mem::offset_of!(_cef_button_t, get_state) - 472usize];
14408    ["Offset of field: _cef_button_t::set_ink_drop_enabled"]
14409        [::std::mem::offset_of!(_cef_button_t, set_ink_drop_enabled) - 480usize];
14410    ["Offset of field: _cef_button_t::set_tooltip_text"]
14411        [::std::mem::offset_of!(_cef_button_t, set_tooltip_text) - 488usize];
14412    ["Offset of field: _cef_button_t::set_accessible_name"]
14413        [::std::mem::offset_of!(_cef_button_t, set_accessible_name) - 496usize];
14414};
14415#[doc = "\n A View representing a button. Depending on the specific type, the button\n could be implemented by a native control or custom rendered. Methods must be\n called on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14416pub type cef_button_t = _cef_button_t;
14417#[doc = "\n Implement this structure to handle Button events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14418#[repr(C)]
14419#[derive(Debug, Copy, Clone)]
14420pub struct _cef_button_delegate_t {
14421    #[doc = "\n Base structure.\n"]
14422    pub base: cef_view_delegate_t,
14423    #[doc = "\n Called when |button| is pressed.\n"]
14424    pub on_button_pressed: ::std::option::Option<
14425        unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_t),
14426    >,
14427    #[doc = "\n Called when the state of |button| changes.\n"]
14428    pub on_button_state_changed: ::std::option::Option<
14429        unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_t),
14430    >,
14431}
14432#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14433const _: () = {
14434    ["Size of _cef_button_delegate_t"][::std::mem::size_of::<_cef_button_delegate_t>() - 144usize];
14435    ["Alignment of _cef_button_delegate_t"]
14436        [::std::mem::align_of::<_cef_button_delegate_t>() - 8usize];
14437    ["Offset of field: _cef_button_delegate_t::base"]
14438        [::std::mem::offset_of!(_cef_button_delegate_t, base) - 0usize];
14439    ["Offset of field: _cef_button_delegate_t::on_button_pressed"]
14440        [::std::mem::offset_of!(_cef_button_delegate_t, on_button_pressed) - 128usize];
14441    ["Offset of field: _cef_button_delegate_t::on_button_state_changed"]
14442        [::std::mem::offset_of!(_cef_button_delegate_t, on_button_state_changed) - 136usize];
14443};
14444#[doc = "\n Implement this structure to handle Button events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14445pub type cef_button_delegate_t = _cef_button_delegate_t;
14446#[doc = "\n LabelButton is a button with optional text and/or icon. Methods must be\n called on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14447#[repr(C)]
14448#[derive(Debug, Copy, Clone)]
14449pub struct _cef_label_button_t {
14450    #[doc = "\n Base structure.\n"]
14451    pub base: cef_button_t,
14452    #[doc = "\n Returns this LabelButton as a MenuButton or NULL if this is not a\n MenuButton.\n"]
14453    pub as_menu_button: ::std::option::Option<
14454        unsafe extern "C" fn(self_: *mut _cef_label_button_t) -> *mut _cef_menu_button_t,
14455    >,
14456    #[doc = "\n Sets the text shown on the LabelButton. By default |text| will also be\n used as the accessible name.\n"]
14457    pub set_text: ::std::option::Option<
14458        unsafe extern "C" fn(self_: *mut _cef_label_button_t, text: *const cef_string_t),
14459    >,
14460    #[doc = "\n Returns the text shown on the LabelButton.\n"]
14461    pub get_text: ::std::option::Option<
14462        unsafe extern "C" fn(self_: *mut _cef_label_button_t) -> cef_string_userfree_t,
14463    >,
14464    #[doc = "\n Sets the image shown for |button_state|. When this Button is drawn if no\n image exists for the current state then the image for\n CEF_BUTTON_STATE_NORMAL, if any, will be shown.\n"]
14465    pub set_image: ::std::option::Option<
14466        unsafe extern "C" fn(
14467            self_: *mut _cef_label_button_t,
14468            button_state: cef_button_state_t,
14469            image: *mut _cef_image_t,
14470        ),
14471    >,
14472    #[doc = "\n Returns the image shown for |button_state|. If no image exists for that\n state then the image for CEF_BUTTON_STATE_NORMAL will be returned.\n"]
14473    pub get_image: ::std::option::Option<
14474        unsafe extern "C" fn(
14475            self_: *mut _cef_label_button_t,
14476            button_state: cef_button_state_t,
14477        ) -> *mut _cef_image_t,
14478    >,
14479    #[doc = "\n Sets the text color shown for the specified button |for_state| to |color|.\n"]
14480    pub set_text_color: ::std::option::Option<
14481        unsafe extern "C" fn(
14482            self_: *mut _cef_label_button_t,
14483            for_state: cef_button_state_t,
14484            color: cef_color_t,
14485        ),
14486    >,
14487    #[doc = "\n Sets the text colors shown for the non-disabled states to |color|.\n"]
14488    pub set_enabled_text_colors: ::std::option::Option<
14489        unsafe extern "C" fn(self_: *mut _cef_label_button_t, color: cef_color_t),
14490    >,
14491    #[doc = "\n Sets the font list. The format is \"<FONT_FAMILY_LIST>,[STYLES] <SIZE>\",\n where:\n - FONT_FAMILY_LIST is a comma-separated list of font family names,\n - STYLES is an optional space-separated list of style names (case-\n   sensitive \"Bold\" and \"Italic\" are supported), and\n - SIZE is an integer font size in pixels with the suffix \"px\".\n\n Here are examples of valid font description strings:\n - \"Arial, Helvetica, Bold Italic 14px\"\n - \"Arial, 14px\"\n"]
14492    pub set_font_list: ::std::option::Option<
14493        unsafe extern "C" fn(self_: *mut _cef_label_button_t, font_list: *const cef_string_t),
14494    >,
14495    #[doc = "\n Sets the horizontal alignment; reversed in RTL. Default is\n CEF_HORIZONTAL_ALIGNMENT_CENTER.\n"]
14496    pub set_horizontal_alignment: ::std::option::Option<
14497        unsafe extern "C" fn(
14498            self_: *mut _cef_label_button_t,
14499            alignment: cef_horizontal_alignment_t,
14500        ),
14501    >,
14502    #[doc = "\n Reset the minimum size of this LabelButton to |size|.\n"]
14503    pub set_minimum_size: ::std::option::Option<
14504        unsafe extern "C" fn(self_: *mut _cef_label_button_t, size: *const cef_size_t),
14505    >,
14506    #[doc = "\n Reset the maximum size of this LabelButton to |size|.\n"]
14507    pub set_maximum_size: ::std::option::Option<
14508        unsafe extern "C" fn(self_: *mut _cef_label_button_t, size: *const cef_size_t),
14509    >,
14510}
14511#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14512const _: () = {
14513    ["Size of _cef_label_button_t"][::std::mem::size_of::<_cef_label_button_t>() - 592usize];
14514    ["Alignment of _cef_label_button_t"][::std::mem::align_of::<_cef_label_button_t>() - 8usize];
14515    ["Offset of field: _cef_label_button_t::base"]
14516        [::std::mem::offset_of!(_cef_label_button_t, base) - 0usize];
14517    ["Offset of field: _cef_label_button_t::as_menu_button"]
14518        [::std::mem::offset_of!(_cef_label_button_t, as_menu_button) - 504usize];
14519    ["Offset of field: _cef_label_button_t::set_text"]
14520        [::std::mem::offset_of!(_cef_label_button_t, set_text) - 512usize];
14521    ["Offset of field: _cef_label_button_t::get_text"]
14522        [::std::mem::offset_of!(_cef_label_button_t, get_text) - 520usize];
14523    ["Offset of field: _cef_label_button_t::set_image"]
14524        [::std::mem::offset_of!(_cef_label_button_t, set_image) - 528usize];
14525    ["Offset of field: _cef_label_button_t::get_image"]
14526        [::std::mem::offset_of!(_cef_label_button_t, get_image) - 536usize];
14527    ["Offset of field: _cef_label_button_t::set_text_color"]
14528        [::std::mem::offset_of!(_cef_label_button_t, set_text_color) - 544usize];
14529    ["Offset of field: _cef_label_button_t::set_enabled_text_colors"]
14530        [::std::mem::offset_of!(_cef_label_button_t, set_enabled_text_colors) - 552usize];
14531    ["Offset of field: _cef_label_button_t::set_font_list"]
14532        [::std::mem::offset_of!(_cef_label_button_t, set_font_list) - 560usize];
14533    ["Offset of field: _cef_label_button_t::set_horizontal_alignment"]
14534        [::std::mem::offset_of!(_cef_label_button_t, set_horizontal_alignment) - 568usize];
14535    ["Offset of field: _cef_label_button_t::set_minimum_size"]
14536        [::std::mem::offset_of!(_cef_label_button_t, set_minimum_size) - 576usize];
14537    ["Offset of field: _cef_label_button_t::set_maximum_size"]
14538        [::std::mem::offset_of!(_cef_label_button_t, set_maximum_size) - 584usize];
14539};
14540#[doc = "\n LabelButton is a button with optional text and/or icon. Methods must be\n called on the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14541pub type cef_label_button_t = _cef_label_button_t;
14542unsafe extern "C" {
14543    #[doc = "\n Create a new LabelButton. A |delegate| must be provided to handle the button\n click. |text| will be shown on the LabelButton and used as the default\n accessible name.\n"]
14544    pub fn cef_label_button_create(
14545        delegate: *mut _cef_button_delegate_t,
14546        text: *const cef_string_t,
14547    ) -> *mut cef_label_button_t;
14548}
14549#[doc = "\n MenuButton pressed lock is released when this object is destroyed.\n\n NOTE: This struct is allocated DLL-side.\n"]
14550#[repr(C)]
14551#[derive(Debug, Copy, Clone)]
14552pub struct _cef_menu_button_pressed_lock_t {
14553    #[doc = "\n Base structure.\n"]
14554    pub base: cef_base_ref_counted_t,
14555}
14556#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14557const _: () = {
14558    ["Size of _cef_menu_button_pressed_lock_t"]
14559        [::std::mem::size_of::<_cef_menu_button_pressed_lock_t>() - 40usize];
14560    ["Alignment of _cef_menu_button_pressed_lock_t"]
14561        [::std::mem::align_of::<_cef_menu_button_pressed_lock_t>() - 8usize];
14562    ["Offset of field: _cef_menu_button_pressed_lock_t::base"]
14563        [::std::mem::offset_of!(_cef_menu_button_pressed_lock_t, base) - 0usize];
14564};
14565#[doc = "\n MenuButton pressed lock is released when this object is destroyed.\n\n NOTE: This struct is allocated DLL-side.\n"]
14566pub type cef_menu_button_pressed_lock_t = _cef_menu_button_pressed_lock_t;
14567#[doc = "\n Implement this structure to handle MenuButton events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14568#[repr(C)]
14569#[derive(Debug, Copy, Clone)]
14570pub struct _cef_menu_button_delegate_t {
14571    #[doc = "\n Base structure.\n"]
14572    pub base: cef_button_delegate_t,
14573    #[doc = "\n Called when |button| is pressed. Call cef_menu_button_t::show_menu() to\n show a popup menu at |screen_point|. When showing a custom popup such as a\n window keep a reference to |button_pressed_lock| until the popup is hidden\n to maintain the pressed button state.\n"]
14574    pub on_menu_button_pressed: ::std::option::Option<
14575        unsafe extern "C" fn(
14576            self_: *mut _cef_menu_button_delegate_t,
14577            menu_button: *mut _cef_menu_button_t,
14578            screen_point: *const cef_point_t,
14579            button_pressed_lock: *mut _cef_menu_button_pressed_lock_t,
14580        ),
14581    >,
14582}
14583#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14584const _: () = {
14585    ["Size of _cef_menu_button_delegate_t"]
14586        [::std::mem::size_of::<_cef_menu_button_delegate_t>() - 152usize];
14587    ["Alignment of _cef_menu_button_delegate_t"]
14588        [::std::mem::align_of::<_cef_menu_button_delegate_t>() - 8usize];
14589    ["Offset of field: _cef_menu_button_delegate_t::base"]
14590        [::std::mem::offset_of!(_cef_menu_button_delegate_t, base) - 0usize];
14591    ["Offset of field: _cef_menu_button_delegate_t::on_menu_button_pressed"]
14592        [::std::mem::offset_of!(_cef_menu_button_delegate_t, on_menu_button_pressed) - 144usize];
14593};
14594#[doc = "\n Implement this structure to handle MenuButton events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14595pub type cef_menu_button_delegate_t = _cef_menu_button_delegate_t;
14596#[doc = "\n MenuButton is a button with optional text, icon and/or menu marker that\n shows a menu when clicked with the left mouse button. All size and position\n values are in density independent pixels (DIP) unless otherwise indicated.\n Methods must be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14597#[repr(C)]
14598#[derive(Debug, Copy, Clone)]
14599pub struct _cef_menu_button_t {
14600    #[doc = "\n Base structure.\n"]
14601    pub base: cef_label_button_t,
14602    #[doc = "\n Show a menu with contents |menu_model|. |screen_point| specifies the menu\n position in screen coordinates. |anchor_position| specifies how the menu\n will be anchored relative to |screen_point|. This function should be\n called from cef_menu_button_delegate_t::on_menu_button_pressed().\n"]
14603    pub show_menu: ::std::option::Option<
14604        unsafe extern "C" fn(
14605            self_: *mut _cef_menu_button_t,
14606            menu_model: *mut _cef_menu_model_t,
14607            screen_point: *const cef_point_t,
14608            anchor_position: cef_menu_anchor_position_t,
14609        ),
14610    >,
14611    #[doc = "\n Show the menu for this button. Results in a call to\n cef_menu_button_delegate_t::on_menu_button_pressed().\n"]
14612    pub trigger_menu: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_menu_button_t)>,
14613}
14614#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14615const _: () = {
14616    ["Size of _cef_menu_button_t"][::std::mem::size_of::<_cef_menu_button_t>() - 608usize];
14617    ["Alignment of _cef_menu_button_t"][::std::mem::align_of::<_cef_menu_button_t>() - 8usize];
14618    ["Offset of field: _cef_menu_button_t::base"]
14619        [::std::mem::offset_of!(_cef_menu_button_t, base) - 0usize];
14620    ["Offset of field: _cef_menu_button_t::show_menu"]
14621        [::std::mem::offset_of!(_cef_menu_button_t, show_menu) - 592usize];
14622    ["Offset of field: _cef_menu_button_t::trigger_menu"]
14623        [::std::mem::offset_of!(_cef_menu_button_t, trigger_menu) - 600usize];
14624};
14625#[doc = "\n MenuButton is a button with optional text, icon and/or menu marker that\n shows a menu when clicked with the left mouse button. All size and position\n values are in density independent pixels (DIP) unless otherwise indicated.\n Methods must be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14626pub type cef_menu_button_t = _cef_menu_button_t;
14627unsafe extern "C" {
14628    #[doc = "\n Create a new MenuButton. A |delegate| must be provided to call show_menu()\n when the button is clicked. |text| will be shown on the MenuButton and used\n as the default accessible name. If |with_frame| is true (1) the button will\n have a visible frame at all times, center alignment, additional padding and\n a default minimum size of 70x33 DIP. If |with_frame| is false (0) the button\n will only have a visible frame on hover/press, left alignment, less padding\n and no default minimum size.\n"]
14629    pub fn cef_menu_button_create(
14630        delegate: *mut _cef_menu_button_delegate_t,
14631        text: *const cef_string_t,
14632    ) -> *mut cef_menu_button_t;
14633}
14634#[doc = "\n Implement this structure to handle Textfield events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14635#[repr(C)]
14636#[derive(Debug, Copy, Clone)]
14637pub struct _cef_textfield_delegate_t {
14638    #[doc = "\n Base structure.\n"]
14639    pub base: cef_view_delegate_t,
14640    #[doc = "\n Called when |textfield| receives a keyboard event. |event| contains\n information about the keyboard event. Return true (1) if the keyboard\n event was handled or false (0) otherwise for default handling.\n"]
14641    pub on_key_event: ::std::option::Option<
14642        unsafe extern "C" fn(
14643            self_: *mut _cef_textfield_delegate_t,
14644            textfield: *mut _cef_textfield_t,
14645            event: *const cef_key_event_t,
14646        ) -> ::std::os::raw::c_int,
14647    >,
14648    #[doc = "\n Called after performing a user action that may change |textfield|.\n"]
14649    pub on_after_user_action: ::std::option::Option<
14650        unsafe extern "C" fn(
14651            self_: *mut _cef_textfield_delegate_t,
14652            textfield: *mut _cef_textfield_t,
14653        ),
14654    >,
14655}
14656#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14657const _: () = {
14658    ["Size of _cef_textfield_delegate_t"]
14659        [::std::mem::size_of::<_cef_textfield_delegate_t>() - 144usize];
14660    ["Alignment of _cef_textfield_delegate_t"]
14661        [::std::mem::align_of::<_cef_textfield_delegate_t>() - 8usize];
14662    ["Offset of field: _cef_textfield_delegate_t::base"]
14663        [::std::mem::offset_of!(_cef_textfield_delegate_t, base) - 0usize];
14664    ["Offset of field: _cef_textfield_delegate_t::on_key_event"]
14665        [::std::mem::offset_of!(_cef_textfield_delegate_t, on_key_event) - 128usize];
14666    ["Offset of field: _cef_textfield_delegate_t::on_after_user_action"]
14667        [::std::mem::offset_of!(_cef_textfield_delegate_t, on_after_user_action) - 136usize];
14668};
14669#[doc = "\n Implement this structure to handle Textfield events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14670pub type cef_textfield_delegate_t = _cef_textfield_delegate_t;
14671#[doc = "\n A Textfield supports editing of text. This control is custom rendered with\n no platform-specific code. Methods must be called on the browser process UI\n thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14672#[repr(C)]
14673#[derive(Debug, Copy, Clone)]
14674pub struct _cef_textfield_t {
14675    #[doc = "\n Base structure.\n"]
14676    pub base: cef_view_t,
14677    #[doc = "\n Sets whether the text will be displayed as asterisks.\n"]
14678    pub set_password_input: ::std::option::Option<
14679        unsafe extern "C" fn(self_: *mut _cef_textfield_t, password_input: ::std::os::raw::c_int),
14680    >,
14681    #[doc = "\n Returns true (1) if the text will be displayed as asterisks.\n"]
14682    pub is_password_input: ::std::option::Option<
14683        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
14684    >,
14685    #[doc = "\n Sets whether the text will read-only.\n"]
14686    pub set_read_only: ::std::option::Option<
14687        unsafe extern "C" fn(self_: *mut _cef_textfield_t, read_only: ::std::os::raw::c_int),
14688    >,
14689    #[doc = "\n Returns true (1) if the text is read-only.\n"]
14690    pub is_read_only: ::std::option::Option<
14691        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
14692    >,
14693    #[doc = "\n Returns the currently displayed text.\n"]
14694    pub get_text: ::std::option::Option<
14695        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
14696    >,
14697    #[doc = "\n Sets the contents to |text|. The cursor will be moved to end of the text\n if the current position is outside of the text range.\n"]
14698    pub set_text: ::std::option::Option<
14699        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
14700    >,
14701    #[doc = "\n Appends |text| to the previously-existing text.\n"]
14702    pub append_text: ::std::option::Option<
14703        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
14704    >,
14705    #[doc = "\n Inserts |text| at the current cursor position replacing any selected text.\n"]
14706    pub insert_or_replace_text: ::std::option::Option<
14707        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
14708    >,
14709    #[doc = "\n Returns true (1) if there is any selected text.\n"]
14710    pub has_selection: ::std::option::Option<
14711        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
14712    >,
14713    #[doc = "\n Returns the currently selected text.\n"]
14714    pub get_selected_text: ::std::option::Option<
14715        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
14716    >,
14717    #[doc = "\n Selects all text. If |reversed| is true (1) the range will end at the\n logical beginning of the text; this generally shows the leading portion of\n text that overflows its display area.\n"]
14718    pub select_all: ::std::option::Option<
14719        unsafe extern "C" fn(self_: *mut _cef_textfield_t, reversed: ::std::os::raw::c_int),
14720    >,
14721    #[doc = "\n Clears the text selection and sets the caret to the end.\n"]
14722    pub clear_selection: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t)>,
14723    #[doc = "\n Returns the selected logical text range.\n"]
14724    pub get_selected_range:
14725        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_range_t>,
14726    #[doc = "\n Selects the specified logical text range.\n"]
14727    pub select_range: ::std::option::Option<
14728        unsafe extern "C" fn(self_: *mut _cef_textfield_t, range: *const cef_range_t),
14729    >,
14730    #[doc = "\n Returns the current cursor position.\n"]
14731    pub get_cursor_position:
14732        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> usize>,
14733    #[doc = "\n Sets the text color.\n"]
14734    pub set_text_color: ::std::option::Option<
14735        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
14736    >,
14737    #[doc = "\n Returns the text color.\n"]
14738    pub get_text_color:
14739        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
14740    #[doc = "\n Sets the selection text color.\n"]
14741    pub set_selection_text_color: ::std::option::Option<
14742        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
14743    >,
14744    #[doc = "\n Returns the selection text color.\n"]
14745    pub get_selection_text_color:
14746        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
14747    #[doc = "\n Sets the selection background color.\n"]
14748    pub set_selection_background_color: ::std::option::Option<
14749        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
14750    >,
14751    #[doc = "\n Returns the selection background color.\n"]
14752    pub get_selection_background_color:
14753        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
14754    #[doc = "\n Sets the font list. The format is \"<FONT_FAMILY_LIST>,[STYLES] <SIZE>\",\n where:\n - FONT_FAMILY_LIST is a comma-separated list of font family names,\n - STYLES is an optional space-separated list of style names (case-\n   sensitive \"Bold\" and \"Italic\" are supported), and\n - SIZE is an integer font size in pixels with the suffix \"px\".\n\n Here are examples of valid font description strings:\n - \"Arial, Helvetica, Bold Italic 14px\"\n - \"Arial, 14px\"\n"]
14755    pub set_font_list: ::std::option::Option<
14756        unsafe extern "C" fn(self_: *mut _cef_textfield_t, font_list: *const cef_string_t),
14757    >,
14758    #[doc = "\n Applies |color| to the specified |range| without changing the default\n color. If |range| is NULL the color will be set on the complete text\n contents.\n"]
14759    pub apply_text_color: ::std::option::Option<
14760        unsafe extern "C" fn(
14761            self_: *mut _cef_textfield_t,
14762            color: cef_color_t,
14763            range: *const cef_range_t,
14764        ),
14765    >,
14766    #[doc = "\n Applies |style| to the specified |range| without changing the default\n style. If |add| is true (1) the style will be added, otherwise the style\n will be removed. If |range| is NULL the style will be set on the complete\n text contents.\n"]
14767    pub apply_text_style: ::std::option::Option<
14768        unsafe extern "C" fn(
14769            self_: *mut _cef_textfield_t,
14770            style: cef_text_style_t,
14771            add: ::std::os::raw::c_int,
14772            range: *const cef_range_t,
14773        ),
14774    >,
14775    #[doc = "\n Returns true (1) if the action associated with the specified command id is\n enabled. See additional comments on execute_command().\n"]
14776    pub is_command_enabled: ::std::option::Option<
14777        unsafe extern "C" fn(
14778            self_: *mut _cef_textfield_t,
14779            command_id: cef_text_field_commands_t,
14780        ) -> ::std::os::raw::c_int,
14781    >,
14782    #[doc = "\n Performs the action associated with the specified command id.\n"]
14783    pub execute_command: ::std::option::Option<
14784        unsafe extern "C" fn(self_: *mut _cef_textfield_t, command_id: cef_text_field_commands_t),
14785    >,
14786    #[doc = "\n Clears Edit history.\n"]
14787    pub clear_edit_history:
14788        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t)>,
14789    #[doc = "\n Sets the placeholder text that will be displayed when the Textfield is\n NULL.\n"]
14790    pub set_placeholder_text: ::std::option::Option<
14791        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
14792    >,
14793    #[doc = "\n Returns the placeholder text that will be displayed when the Textfield is\n NULL.\n"]
14794    pub get_placeholder_text: ::std::option::Option<
14795        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
14796    >,
14797    #[doc = "\n Sets the placeholder text color.\n"]
14798    pub set_placeholder_text_color: ::std::option::Option<
14799        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
14800    >,
14801    #[doc = "\n Set the accessible name that will be exposed to assistive technology (AT).\n"]
14802    pub set_accessible_name: ::std::option::Option<
14803        unsafe extern "C" fn(self_: *mut _cef_textfield_t, name: *const cef_string_t),
14804    >,
14805}
14806#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14807const _: () = {
14808    ["Size of _cef_textfield_t"][::std::mem::size_of::<_cef_textfield_t>() - 704usize];
14809    ["Alignment of _cef_textfield_t"][::std::mem::align_of::<_cef_textfield_t>() - 8usize];
14810    ["Offset of field: _cef_textfield_t::base"]
14811        [::std::mem::offset_of!(_cef_textfield_t, base) - 0usize];
14812    ["Offset of field: _cef_textfield_t::set_password_input"]
14813        [::std::mem::offset_of!(_cef_textfield_t, set_password_input) - 456usize];
14814    ["Offset of field: _cef_textfield_t::is_password_input"]
14815        [::std::mem::offset_of!(_cef_textfield_t, is_password_input) - 464usize];
14816    ["Offset of field: _cef_textfield_t::set_read_only"]
14817        [::std::mem::offset_of!(_cef_textfield_t, set_read_only) - 472usize];
14818    ["Offset of field: _cef_textfield_t::is_read_only"]
14819        [::std::mem::offset_of!(_cef_textfield_t, is_read_only) - 480usize];
14820    ["Offset of field: _cef_textfield_t::get_text"]
14821        [::std::mem::offset_of!(_cef_textfield_t, get_text) - 488usize];
14822    ["Offset of field: _cef_textfield_t::set_text"]
14823        [::std::mem::offset_of!(_cef_textfield_t, set_text) - 496usize];
14824    ["Offset of field: _cef_textfield_t::append_text"]
14825        [::std::mem::offset_of!(_cef_textfield_t, append_text) - 504usize];
14826    ["Offset of field: _cef_textfield_t::insert_or_replace_text"]
14827        [::std::mem::offset_of!(_cef_textfield_t, insert_or_replace_text) - 512usize];
14828    ["Offset of field: _cef_textfield_t::has_selection"]
14829        [::std::mem::offset_of!(_cef_textfield_t, has_selection) - 520usize];
14830    ["Offset of field: _cef_textfield_t::get_selected_text"]
14831        [::std::mem::offset_of!(_cef_textfield_t, get_selected_text) - 528usize];
14832    ["Offset of field: _cef_textfield_t::select_all"]
14833        [::std::mem::offset_of!(_cef_textfield_t, select_all) - 536usize];
14834    ["Offset of field: _cef_textfield_t::clear_selection"]
14835        [::std::mem::offset_of!(_cef_textfield_t, clear_selection) - 544usize];
14836    ["Offset of field: _cef_textfield_t::get_selected_range"]
14837        [::std::mem::offset_of!(_cef_textfield_t, get_selected_range) - 552usize];
14838    ["Offset of field: _cef_textfield_t::select_range"]
14839        [::std::mem::offset_of!(_cef_textfield_t, select_range) - 560usize];
14840    ["Offset of field: _cef_textfield_t::get_cursor_position"]
14841        [::std::mem::offset_of!(_cef_textfield_t, get_cursor_position) - 568usize];
14842    ["Offset of field: _cef_textfield_t::set_text_color"]
14843        [::std::mem::offset_of!(_cef_textfield_t, set_text_color) - 576usize];
14844    ["Offset of field: _cef_textfield_t::get_text_color"]
14845        [::std::mem::offset_of!(_cef_textfield_t, get_text_color) - 584usize];
14846    ["Offset of field: _cef_textfield_t::set_selection_text_color"]
14847        [::std::mem::offset_of!(_cef_textfield_t, set_selection_text_color) - 592usize];
14848    ["Offset of field: _cef_textfield_t::get_selection_text_color"]
14849        [::std::mem::offset_of!(_cef_textfield_t, get_selection_text_color) - 600usize];
14850    ["Offset of field: _cef_textfield_t::set_selection_background_color"]
14851        [::std::mem::offset_of!(_cef_textfield_t, set_selection_background_color) - 608usize];
14852    ["Offset of field: _cef_textfield_t::get_selection_background_color"]
14853        [::std::mem::offset_of!(_cef_textfield_t, get_selection_background_color) - 616usize];
14854    ["Offset of field: _cef_textfield_t::set_font_list"]
14855        [::std::mem::offset_of!(_cef_textfield_t, set_font_list) - 624usize];
14856    ["Offset of field: _cef_textfield_t::apply_text_color"]
14857        [::std::mem::offset_of!(_cef_textfield_t, apply_text_color) - 632usize];
14858    ["Offset of field: _cef_textfield_t::apply_text_style"]
14859        [::std::mem::offset_of!(_cef_textfield_t, apply_text_style) - 640usize];
14860    ["Offset of field: _cef_textfield_t::is_command_enabled"]
14861        [::std::mem::offset_of!(_cef_textfield_t, is_command_enabled) - 648usize];
14862    ["Offset of field: _cef_textfield_t::execute_command"]
14863        [::std::mem::offset_of!(_cef_textfield_t, execute_command) - 656usize];
14864    ["Offset of field: _cef_textfield_t::clear_edit_history"]
14865        [::std::mem::offset_of!(_cef_textfield_t, clear_edit_history) - 664usize];
14866    ["Offset of field: _cef_textfield_t::set_placeholder_text"]
14867        [::std::mem::offset_of!(_cef_textfield_t, set_placeholder_text) - 672usize];
14868    ["Offset of field: _cef_textfield_t::get_placeholder_text"]
14869        [::std::mem::offset_of!(_cef_textfield_t, get_placeholder_text) - 680usize];
14870    ["Offset of field: _cef_textfield_t::set_placeholder_text_color"]
14871        [::std::mem::offset_of!(_cef_textfield_t, set_placeholder_text_color) - 688usize];
14872    ["Offset of field: _cef_textfield_t::set_accessible_name"]
14873        [::std::mem::offset_of!(_cef_textfield_t, set_accessible_name) - 696usize];
14874};
14875#[doc = "\n A Textfield supports editing of text. This control is custom rendered with\n no platform-specific code. Methods must be called on the browser process UI\n thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14876pub type cef_textfield_t = _cef_textfield_t;
14877unsafe extern "C" {
14878    #[doc = "\n Create a new Textfield.\n"]
14879    pub fn cef_textfield_create(delegate: *mut _cef_textfield_delegate_t) -> *mut cef_textfield_t;
14880}
14881#[doc = "\n Implement this structure to handle BrowserView events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14882#[repr(C)]
14883#[derive(Debug, Copy, Clone)]
14884pub struct _cef_browser_view_delegate_t {
14885    #[doc = "\n Base structure.\n"]
14886    pub base: cef_view_delegate_t,
14887    #[doc = "\n Called when |browser| associated with |browser_view| is created. This\n function will be called after cef_life_span_handler_t::on_after_created()\n is called for |browser| and before on_popup_browser_view_created() is\n called for |browser|'s parent delegate if |browser| is a popup.\n"]
14888    pub on_browser_created: ::std::option::Option<
14889        unsafe extern "C" fn(
14890            self_: *mut _cef_browser_view_delegate_t,
14891            browser_view: *mut _cef_browser_view_t,
14892            browser: *mut _cef_browser_t,
14893        ),
14894    >,
14895    #[doc = "\n Called when |browser| associated with |browser_view| is destroyed. Release\n all references to |browser| and do not attempt to execute any functions on\n |browser| after this callback returns. This function will be called before\n cef_life_span_handler_t::on_before_close() is called for |browser|.\n"]
14896    pub on_browser_destroyed: ::std::option::Option<
14897        unsafe extern "C" fn(
14898            self_: *mut _cef_browser_view_delegate_t,
14899            browser_view: *mut _cef_browser_view_t,
14900            browser: *mut _cef_browser_t,
14901        ),
14902    >,
14903    #[doc = "\n Called before a new popup BrowserView is created. The popup originated\n from |browser_view|. |settings| and |client| are the values returned from\n cef_life_span_handler_t::on_before_popup(). |is_devtools| will be true (1)\n if the popup will be a DevTools browser. Return the delegate that will be\n used for the new popup BrowserView.\n"]
14904    pub get_delegate_for_popup_browser_view: ::std::option::Option<
14905        unsafe extern "C" fn(
14906            self_: *mut _cef_browser_view_delegate_t,
14907            browser_view: *mut _cef_browser_view_t,
14908            settings: *const _cef_browser_settings_t,
14909            client: *mut _cef_client_t,
14910            is_devtools: ::std::os::raw::c_int,
14911        ) -> *mut _cef_browser_view_delegate_t,
14912    >,
14913    #[doc = "\n Called after |popup_browser_view| is created. This function will be called\n after cef_life_span_handler_t::on_after_created() and on_browser_created()\n are called for the new popup browser. The popup originated from\n |browser_view|. |is_devtools| will be true (1) if the popup is a DevTools\n browser. Optionally add |popup_browser_view| to the views hierarchy\n yourself and return true (1). Otherwise return false (0) and a default\n cef_window_t will be created for the popup.\n"]
14914    pub on_popup_browser_view_created: ::std::option::Option<
14915        unsafe extern "C" fn(
14916            self_: *mut _cef_browser_view_delegate_t,
14917            browser_view: *mut _cef_browser_view_t,
14918            popup_browser_view: *mut _cef_browser_view_t,
14919            is_devtools: ::std::os::raw::c_int,
14920        ) -> ::std::os::raw::c_int,
14921    >,
14922    #[doc = "\n Returns the Chrome toolbar type that will be available via\n cef_browser_view_t::get_chrome_toolbar(). See that function for related\n documentation.\n"]
14923    pub get_chrome_toolbar_type: ::std::option::Option<
14924        unsafe extern "C" fn(
14925            self_: *mut _cef_browser_view_delegate_t,
14926            browser_view: *mut _cef_browser_view_t,
14927        ) -> cef_chrome_toolbar_type_t,
14928    >,
14929    #[doc = "\n Return true (1) to create frameless windows for Document picture-in-\n picture popups. Content in frameless windows should specify draggable\n regions using \"-webkit-app-region: drag\" CSS.\n"]
14930    pub use_frameless_window_for_picture_in_picture: ::std::option::Option<
14931        unsafe extern "C" fn(
14932            self_: *mut _cef_browser_view_delegate_t,
14933            browser_view: *mut _cef_browser_view_t,
14934        ) -> ::std::os::raw::c_int,
14935    >,
14936    #[doc = "\n Called when |browser_view| receives a gesture command. Return true (1) to\n handle (or disable) a |gesture_command| or false (0) to propagate the\n gesture to the browser for default handling. With Chrome style these\n commands can also be handled via cef_command_handler_t::OnChromeCommand.\n"]
14937    pub on_gesture_command: ::std::option::Option<
14938        unsafe extern "C" fn(
14939            self_: *mut _cef_browser_view_delegate_t,
14940            browser_view: *mut _cef_browser_view_t,
14941            gesture_command: cef_gesture_command_t,
14942        ) -> ::std::os::raw::c_int,
14943    >,
14944    #[doc = "\n Optionally change the runtime style for this BrowserView. See\n cef_runtime_style_t documentation for details.\n"]
14945    pub get_browser_runtime_style: ::std::option::Option<
14946        unsafe extern "C" fn(self_: *mut _cef_browser_view_delegate_t) -> cef_runtime_style_t,
14947    >,
14948}
14949#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14950const _: () = {
14951    ["Size of _cef_browser_view_delegate_t"]
14952        [::std::mem::size_of::<_cef_browser_view_delegate_t>() - 192usize];
14953    ["Alignment of _cef_browser_view_delegate_t"]
14954        [::std::mem::align_of::<_cef_browser_view_delegate_t>() - 8usize];
14955    ["Offset of field: _cef_browser_view_delegate_t::base"]
14956        [::std::mem::offset_of!(_cef_browser_view_delegate_t, base) - 0usize];
14957    ["Offset of field: _cef_browser_view_delegate_t::on_browser_created"]
14958        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_browser_created) - 128usize];
14959    ["Offset of field: _cef_browser_view_delegate_t::on_browser_destroyed"]
14960        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_browser_destroyed) - 136usize];
14961    ["Offset of field: _cef_browser_view_delegate_t::get_delegate_for_popup_browser_view"][::std::mem::offset_of!(
14962        _cef_browser_view_delegate_t,
14963        get_delegate_for_popup_browser_view
14964    )
14965        - 144usize];
14966    ["Offset of field: _cef_browser_view_delegate_t::on_popup_browser_view_created"][::std::mem::offset_of!(
14967        _cef_browser_view_delegate_t,
14968        on_popup_browser_view_created
14969    ) - 152usize];
14970    ["Offset of field: _cef_browser_view_delegate_t::get_chrome_toolbar_type"]
14971        [::std::mem::offset_of!(_cef_browser_view_delegate_t, get_chrome_toolbar_type) - 160usize];
14972    ["Offset of field: _cef_browser_view_delegate_t::use_frameless_window_for_picture_in_picture"] [:: std :: mem :: offset_of ! (_cef_browser_view_delegate_t , use_frameless_window_for_picture_in_picture) - 168usize] ;
14973    ["Offset of field: _cef_browser_view_delegate_t::on_gesture_command"]
14974        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_gesture_command) - 176usize];
14975    ["Offset of field: _cef_browser_view_delegate_t::get_browser_runtime_style"][::std::mem::offset_of!(
14976        _cef_browser_view_delegate_t,
14977        get_browser_runtime_style
14978    ) - 184usize];
14979};
14980#[doc = "\n Implement this structure to handle BrowserView events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
14981pub type cef_browser_view_delegate_t = _cef_browser_view_delegate_t;
14982#[doc = "\n A View hosting a cef_browser_t instance. Methods must be called on the\n browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14983#[repr(C)]
14984#[derive(Debug, Copy, Clone)]
14985pub struct _cef_browser_view_t {
14986    #[doc = "\n Base structure.\n"]
14987    pub base: cef_view_t,
14988    #[doc = "\n Returns the cef_browser_t hosted by this BrowserView. Will return NULL if\n the browser has not yet been created or has already been destroyed.\n"]
14989    pub get_browser: ::std::option::Option<
14990        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> *mut _cef_browser_t,
14991    >,
14992    #[doc = "\n Returns the Chrome toolbar associated with this BrowserView. Only\n supported when using Chrome style. The cef_browser_view_delegate_t::\n get_chrome_toolbar_type() function must return a value other than\n CEF_CTT_NONE and the toolbar will not be available until after this\n BrowserView is added to a cef_window_t and\n cef_view_delegate_t::on_window_changed() has been called.\n"]
14993    pub get_chrome_toolbar: ::std::option::Option<
14994        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> *mut _cef_view_t,
14995    >,
14996    #[doc = "\n Sets whether normal priority accelerators are first forwarded to the web\n content (`keydown` event handler) or cef_keyboard_handler_t. Normal\n priority accelerators can be registered via cef_window_t::SetAccelerator\n (with |high_priority|=false (0)) or internally for standard accelerators\n supported by Chrome style. If |prefer_accelerators| is true (1) then the\n matching accelerator will be triggered immediately (calling\n cef_window_delegate_t::OnAccelerator or\n cef_command_handler_t::OnChromeCommand respectively) and the event will\n not be forwarded to the web content or cef_keyboard_handler_t first. If\n |prefer_accelerators| is false (0) then the matching accelerator will only\n be triggered if the event is not handled by web content (`keydown` event\n handler that calls `event.preventDefault()`) or by cef_keyboard_handler_t.\n The default value is false (0).\n"]
14997    pub set_prefer_accelerators: ::std::option::Option<
14998        unsafe extern "C" fn(
14999            self_: *mut _cef_browser_view_t,
15000            prefer_accelerators: ::std::os::raw::c_int,
15001        ),
15002    >,
15003    #[doc = "\n Returns the runtime style for this BrowserView (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
15004    pub get_runtime_style: ::std::option::Option<
15005        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> cef_runtime_style_t,
15006    >,
15007}
15008#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15009const _: () = {
15010    ["Size of _cef_browser_view_t"][::std::mem::size_of::<_cef_browser_view_t>() - 488usize];
15011    ["Alignment of _cef_browser_view_t"][::std::mem::align_of::<_cef_browser_view_t>() - 8usize];
15012    ["Offset of field: _cef_browser_view_t::base"]
15013        [::std::mem::offset_of!(_cef_browser_view_t, base) - 0usize];
15014    ["Offset of field: _cef_browser_view_t::get_browser"]
15015        [::std::mem::offset_of!(_cef_browser_view_t, get_browser) - 456usize];
15016    ["Offset of field: _cef_browser_view_t::get_chrome_toolbar"]
15017        [::std::mem::offset_of!(_cef_browser_view_t, get_chrome_toolbar) - 464usize];
15018    ["Offset of field: _cef_browser_view_t::set_prefer_accelerators"]
15019        [::std::mem::offset_of!(_cef_browser_view_t, set_prefer_accelerators) - 472usize];
15020    ["Offset of field: _cef_browser_view_t::get_runtime_style"]
15021        [::std::mem::offset_of!(_cef_browser_view_t, get_runtime_style) - 480usize];
15022};
15023#[doc = "\n A View hosting a cef_browser_t instance. Methods must be called on the\n browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15024pub type cef_browser_view_t = _cef_browser_view_t;
15025unsafe extern "C" {
15026    #[doc = "\n Create a new BrowserView. The underlying cef_browser_t will not be created\n until this view is added to the views hierarchy. The optional |extra_info|\n parameter provides an opportunity to specify extra information specific to\n the created browser that will be passed to\n cef_render_process_handler_t::on_browser_created() in the render process.\n"]
15027    pub fn cef_browser_view_create(
15028        client: *mut _cef_client_t,
15029        url: *const cef_string_t,
15030        settings: *const _cef_browser_settings_t,
15031        extra_info: *mut _cef_dictionary_value_t,
15032        request_context: *mut _cef_request_context_t,
15033        delegate: *mut _cef_browser_view_delegate_t,
15034    ) -> *mut cef_browser_view_t;
15035}
15036unsafe extern "C" {
15037    #[doc = "\n Returns the BrowserView associated with |browser|.\n"]
15038    pub fn cef_browser_view_get_for_browser(
15039        browser: *mut _cef_browser_t,
15040    ) -> *mut cef_browser_view_t;
15041}
15042#[doc = "\n A ScrollView will show horizontal and/or vertical scrollbars when necessary\n based on the size of the attached content view. Methods must be called on\n the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15043#[repr(C)]
15044#[derive(Debug, Copy, Clone)]
15045pub struct _cef_scroll_view_t {
15046    #[doc = "\n Base structure.\n"]
15047    pub base: cef_view_t,
15048    #[doc = "\n Set the content View. The content View must have a specified size (e.g.\n via cef_view_t::SetBounds or cef_view_delegate_t::GetPreferredSize).\n"]
15049    pub set_content_view: ::std::option::Option<
15050        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t, view: *mut _cef_view_t),
15051    >,
15052    #[doc = "\n Returns the content View.\n"]
15053    pub get_content_view: ::std::option::Option<
15054        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> *mut _cef_view_t,
15055    >,
15056    #[doc = "\n Returns the visible region of the content View.\n"]
15057    pub get_visible_content_rect:
15058        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> cef_rect_t>,
15059    #[doc = "\n Returns true (1) if the horizontal scrollbar is currently showing.\n"]
15060    pub has_horizontal_scrollbar: ::std::option::Option<
15061        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
15062    >,
15063    #[doc = "\n Returns the height of the horizontal scrollbar.\n"]
15064    pub get_horizontal_scrollbar_height: ::std::option::Option<
15065        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
15066    >,
15067    #[doc = "\n Returns true (1) if the vertical scrollbar is currently showing.\n"]
15068    pub has_vertical_scrollbar: ::std::option::Option<
15069        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
15070    >,
15071    #[doc = "\n Returns the width of the vertical scrollbar.\n"]
15072    pub get_vertical_scrollbar_width: ::std::option::Option<
15073        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
15074    >,
15075}
15076#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15077const _: () = {
15078    ["Size of _cef_scroll_view_t"][::std::mem::size_of::<_cef_scroll_view_t>() - 512usize];
15079    ["Alignment of _cef_scroll_view_t"][::std::mem::align_of::<_cef_scroll_view_t>() - 8usize];
15080    ["Offset of field: _cef_scroll_view_t::base"]
15081        [::std::mem::offset_of!(_cef_scroll_view_t, base) - 0usize];
15082    ["Offset of field: _cef_scroll_view_t::set_content_view"]
15083        [::std::mem::offset_of!(_cef_scroll_view_t, set_content_view) - 456usize];
15084    ["Offset of field: _cef_scroll_view_t::get_content_view"]
15085        [::std::mem::offset_of!(_cef_scroll_view_t, get_content_view) - 464usize];
15086    ["Offset of field: _cef_scroll_view_t::get_visible_content_rect"]
15087        [::std::mem::offset_of!(_cef_scroll_view_t, get_visible_content_rect) - 472usize];
15088    ["Offset of field: _cef_scroll_view_t::has_horizontal_scrollbar"]
15089        [::std::mem::offset_of!(_cef_scroll_view_t, has_horizontal_scrollbar) - 480usize];
15090    ["Offset of field: _cef_scroll_view_t::get_horizontal_scrollbar_height"]
15091        [::std::mem::offset_of!(_cef_scroll_view_t, get_horizontal_scrollbar_height) - 488usize];
15092    ["Offset of field: _cef_scroll_view_t::has_vertical_scrollbar"]
15093        [::std::mem::offset_of!(_cef_scroll_view_t, has_vertical_scrollbar) - 496usize];
15094    ["Offset of field: _cef_scroll_view_t::get_vertical_scrollbar_width"]
15095        [::std::mem::offset_of!(_cef_scroll_view_t, get_vertical_scrollbar_width) - 504usize];
15096};
15097#[doc = "\n A ScrollView will show horizontal and/or vertical scrollbars when necessary\n based on the size of the attached content view. Methods must be called on\n the browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15098pub type cef_scroll_view_t = _cef_scroll_view_t;
15099unsafe extern "C" {
15100    #[doc = "\n Create a new ScrollView.\n"]
15101    pub fn cef_scroll_view_create(delegate: *mut _cef_view_delegate_t) -> *mut cef_scroll_view_t;
15102}
15103#[doc = "\n This structure typically, but not always, corresponds to a physical display\n connected to the system. A fake Display may exist on a headless system, or a\n Display may correspond to a remote, virtual display. All size and position\n values are in density independent pixel (DIP) coordinates unless otherwise\n indicated. Methods must be called on the browser process UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15104#[repr(C)]
15105#[derive(Debug, Copy, Clone)]
15106pub struct _cef_display_t {
15107    #[doc = "\n Base structure.\n"]
15108    pub base: cef_base_ref_counted_t,
15109    #[doc = "\n Returns the unique identifier for this Display.\n"]
15110    pub get_id: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> i64>,
15111    #[doc = "\n Returns this Display's device pixel scale factor. This specifies how much\n the UI should be scaled when the actual output has more pixels than\n standard displays (which is around 100~120dpi). The potential return\n values differ by platform.\n"]
15112    pub get_device_scale_factor:
15113        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> f32>,
15114    #[doc = "\n Convert |point| from DIP coordinates to pixel coordinates using this\n Display's device scale factor.\n"]
15115    pub convert_point_to_pixels: ::std::option::Option<
15116        unsafe extern "C" fn(self_: *mut _cef_display_t, point: *mut cef_point_t),
15117    >,
15118    #[doc = "\n Convert |point| from pixel coordinates to DIP coordinates using this\n Display's device scale factor.\n"]
15119    pub convert_point_from_pixels: ::std::option::Option<
15120        unsafe extern "C" fn(self_: *mut _cef_display_t, point: *mut cef_point_t),
15121    >,
15122    #[doc = "\n Returns this Display's bounds in DIP screen coordinates. This is the full\n size of the display.\n"]
15123    pub get_bounds:
15124        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> cef_rect_t>,
15125    #[doc = "\n Returns this Display's work area in DIP screen coordinates. This excludes\n areas of the display that are occupied with window manager toolbars, etc.\n"]
15126    pub get_work_area:
15127        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> cef_rect_t>,
15128    #[doc = "\n Returns this Display's rotation in degrees.\n"]
15129    pub get_rotation: ::std::option::Option<
15130        unsafe extern "C" fn(self_: *mut _cef_display_t) -> ::std::os::raw::c_int,
15131    >,
15132}
15133#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15134const _: () = {
15135    ["Size of _cef_display_t"][::std::mem::size_of::<_cef_display_t>() - 96usize];
15136    ["Alignment of _cef_display_t"][::std::mem::align_of::<_cef_display_t>() - 8usize];
15137    ["Offset of field: _cef_display_t::base"]
15138        [::std::mem::offset_of!(_cef_display_t, base) - 0usize];
15139    ["Offset of field: _cef_display_t::get_id"]
15140        [::std::mem::offset_of!(_cef_display_t, get_id) - 40usize];
15141    ["Offset of field: _cef_display_t::get_device_scale_factor"]
15142        [::std::mem::offset_of!(_cef_display_t, get_device_scale_factor) - 48usize];
15143    ["Offset of field: _cef_display_t::convert_point_to_pixels"]
15144        [::std::mem::offset_of!(_cef_display_t, convert_point_to_pixels) - 56usize];
15145    ["Offset of field: _cef_display_t::convert_point_from_pixels"]
15146        [::std::mem::offset_of!(_cef_display_t, convert_point_from_pixels) - 64usize];
15147    ["Offset of field: _cef_display_t::get_bounds"]
15148        [::std::mem::offset_of!(_cef_display_t, get_bounds) - 72usize];
15149    ["Offset of field: _cef_display_t::get_work_area"]
15150        [::std::mem::offset_of!(_cef_display_t, get_work_area) - 80usize];
15151    ["Offset of field: _cef_display_t::get_rotation"]
15152        [::std::mem::offset_of!(_cef_display_t, get_rotation) - 88usize];
15153};
15154#[doc = "\n This structure typically, but not always, corresponds to a physical display\n connected to the system. A fake Display may exist on a headless system, or a\n Display may correspond to a remote, virtual display. All size and position\n values are in density independent pixel (DIP) coordinates unless otherwise\n indicated. Methods must be called on the browser process UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15155pub type cef_display_t = _cef_display_t;
15156unsafe extern "C" {
15157    #[doc = "\n Returns the primary Display.\n"]
15158    pub fn cef_display_get_primary() -> *mut cef_display_t;
15159}
15160unsafe extern "C" {
15161    #[doc = "\n Returns the Display nearest |point|. Set |input_pixel_coords| to true (1) if\n |point| is in pixel screen coordinates instead of DIP screen coordinates.\n"]
15162    pub fn cef_display_get_nearest_point(
15163        point: *const cef_point_t,
15164        input_pixel_coords: ::std::os::raw::c_int,
15165    ) -> *mut cef_display_t;
15166}
15167unsafe extern "C" {
15168    #[doc = "\n Returns the Display that most closely intersects |bounds|.  Set\n |input_pixel_coords| to true (1) if |bounds| is in pixel screen coordinates\n instead of DIP screen coordinates.\n"]
15169    pub fn cef_display_get_matching_bounds(
15170        bounds: *const cef_rect_t,
15171        input_pixel_coords: ::std::os::raw::c_int,
15172    ) -> *mut cef_display_t;
15173}
15174unsafe extern "C" {
15175    #[doc = "\n Returns the total number of Displays. Mirrored displays are excluded; this\n function is intended to return the number of distinct, usable displays.\n"]
15176    pub fn cef_display_get_count() -> usize;
15177}
15178unsafe extern "C" {
15179    #[doc = "\n Returns all Displays. Mirrored displays are excluded; this function is\n intended to return distinct, usable displays.\n"]
15180    pub fn cef_display_get_alls(displaysCount: *mut usize, displays: *mut *mut cef_display_t);
15181}
15182unsafe extern "C" {
15183    #[doc = "\n Convert |point| from DIP screen coordinates to pixel screen coordinates.\n This function is only used on Windows.\n"]
15184    pub fn cef_display_convert_screen_point_to_pixels(point: *const cef_point_t) -> cef_point_t;
15185}
15186unsafe extern "C" {
15187    #[doc = "\n Convert |point| from pixel screen coordinates to DIP screen coordinates.\n This function is only used on Windows.\n"]
15188    pub fn cef_display_convert_screen_point_from_pixels(point: *const cef_point_t) -> cef_point_t;
15189}
15190unsafe extern "C" {
15191    #[doc = "\n Convert |rect| from DIP screen coordinates to pixel screen coordinates. This\n function is only used on Windows.\n"]
15192    pub fn cef_display_convert_screen_rect_to_pixels(rect: *const cef_rect_t) -> cef_rect_t;
15193}
15194unsafe extern "C" {
15195    #[doc = "\n Convert |rect| from pixel screen coordinates to DIP screen coordinates. This\n function is only used on Windows.\n"]
15196    pub fn cef_display_convert_screen_rect_from_pixels(rect: *const cef_rect_t) -> cef_rect_t;
15197}
15198#[doc = "\n Controller for an overlay that contains a contents View added via\n cef_window_t::AddOverlayView. Methods exposed by this controller should be\n called in preference to functions of the same name exposed by the contents\n View unless otherwise indicated. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15199#[repr(C)]
15200#[derive(Debug, Copy, Clone)]
15201pub struct _cef_overlay_controller_t {
15202    #[doc = "\n Base structure.\n"]
15203    pub base: cef_base_ref_counted_t,
15204    #[doc = "\n Returns true (1) if this object is valid.\n"]
15205    pub is_valid: ::std::option::Option<
15206        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
15207    >,
15208    #[doc = "\n Returns true (1) if this object is the same as |that| object.\n"]
15209    pub is_same: ::std::option::Option<
15210        unsafe extern "C" fn(
15211            self_: *mut _cef_overlay_controller_t,
15212            that: *mut _cef_overlay_controller_t,
15213        ) -> ::std::os::raw::c_int,
15214    >,
15215    #[doc = "\n Returns the contents View for this overlay.\n"]
15216    pub get_contents_view: ::std::option::Option<
15217        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_view_t,
15218    >,
15219    #[doc = "\n Returns the top-level Window hosting this overlay. Use this function\n instead of calling get_window() on the contents View.\n"]
15220    pub get_window: ::std::option::Option<
15221        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_window_t,
15222    >,
15223    #[doc = "\n Returns the docking mode for this overlay.\n"]
15224    pub get_docking_mode: ::std::option::Option<
15225        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_docking_mode_t,
15226    >,
15227    #[doc = "\n Destroy this overlay.\n"]
15228    pub destroy: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>,
15229    #[doc = "\n Sets the bounds (size and position) of this overlay. This will set the\n bounds of the contents View to match and trigger a re-layout if necessary.\n |bounds| is in parent coordinates and any insets configured on this\n overlay will be ignored. Use this function only for overlays created with\n a docking mode value of CEF_DOCKING_MODE_CUSTOM. With other docking modes\n modify the insets of this overlay and/or layout of the contents View and\n call size_to_preferred_size() instead to calculate the new size and re-\n position the overlay if necessary.\n"]
15230    pub set_bounds: ::std::option::Option<
15231        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, bounds: *const cef_rect_t),
15232    >,
15233    #[doc = "\n Returns the bounds (size and position) of this overlay in parent\n coordinates.\n"]
15234    pub get_bounds: ::std::option::Option<
15235        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t,
15236    >,
15237    #[doc = "\n Returns the bounds (size and position) of this overlay in DIP screen\n coordinates.\n"]
15238    pub get_bounds_in_screen: ::std::option::Option<
15239        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t,
15240    >,
15241    #[doc = "\n Sets the size of this overlay without changing the position. This will set\n the size of the contents View to match and trigger a re-layout if\n necessary. |size| is in parent coordinates and any insets configured on\n this overlay will be ignored. Use this function only for overlays created\n with a docking mode value of CEF_DOCKING_MODE_CUSTOM. With other docking\n modes modify the insets of this overlay and/or layout of the contents View\n and call size_to_preferred_size() instead to calculate the new size and\n re-position the overlay if necessary.\n"]
15242    pub set_size: ::std::option::Option<
15243        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, size: *const cef_size_t),
15244    >,
15245    #[doc = "\n Returns the size of this overlay in parent coordinates.\n"]
15246    pub get_size: ::std::option::Option<
15247        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_size_t,
15248    >,
15249    #[doc = "\n Sets the position of this overlay without changing the size. |position| is\n in parent coordinates and any insets configured on this overlay will be\n ignored. Use this function only for overlays created with a docking mode\n value of CEF_DOCKING_MODE_CUSTOM. With other docking modes modify the\n insets of this overlay and/or layout of the contents View and call\n size_to_preferred_size() instead to calculate the new size and re-position\n the overlay if necessary.\n"]
15250    pub set_position: ::std::option::Option<
15251        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, position: *const cef_point_t),
15252    >,
15253    #[doc = "\n Returns the position of this overlay in parent coordinates.\n"]
15254    pub get_position: ::std::option::Option<
15255        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_point_t,
15256    >,
15257    #[doc = "\n Sets the insets for this overlay. |insets| is in parent coordinates. Use\n this function only for overlays created with a docking mode value other\n than CEF_DOCKING_MODE_CUSTOM.\n"]
15258    pub set_insets: ::std::option::Option<
15259        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, insets: *const cef_insets_t),
15260    >,
15261    #[doc = "\n Returns the insets for this overlay in parent coordinates.\n"]
15262    pub get_insets: ::std::option::Option<
15263        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_insets_t,
15264    >,
15265    #[doc = "\n Size this overlay to its preferred size and trigger a re-layout if\n necessary. The position of overlays created with a docking mode value of\n CEF_DOCKING_MODE_CUSTOM will not be modified by calling this function.\n With other docking modes this function may re-position the overlay if\n necessary to accommodate the new size and any insets configured on the\n contents View.\n"]
15266    pub size_to_preferred_size:
15267        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>,
15268    #[doc = "\n Sets whether this overlay is visible. Overlays are hidden by default. If\n this overlay is hidden then it and any child Views will not be drawn and,\n if any of those Views currently have focus, then focus will also be\n cleared. Painting is scheduled as needed.\n"]
15269    pub set_visible: ::std::option::Option<
15270        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, visible: ::std::os::raw::c_int),
15271    >,
15272    #[doc = "\n Returns whether this overlay is visible. A View may be visible but still\n not drawn in a Window if any parent Views are hidden. Call is_drawn() to\n determine whether this overlay and all parent Views are visible and will\n be drawn.\n"]
15273    pub is_visible: ::std::option::Option<
15274        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
15275    >,
15276    #[doc = "\n Returns whether this overlay is visible and drawn in a Window. A View is\n drawn if it and all parent Views are visible. To determine if the\n containing Window is visible to the user on-screen call is_visible() on\n the Window.\n"]
15277    pub is_drawn: ::std::option::Option<
15278        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
15279    >,
15280}
15281#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15282const _: () = {
15283    ["Size of _cef_overlay_controller_t"]
15284        [::std::mem::size_of::<_cef_overlay_controller_t>() - 192usize];
15285    ["Alignment of _cef_overlay_controller_t"]
15286        [::std::mem::align_of::<_cef_overlay_controller_t>() - 8usize];
15287    ["Offset of field: _cef_overlay_controller_t::base"]
15288        [::std::mem::offset_of!(_cef_overlay_controller_t, base) - 0usize];
15289    ["Offset of field: _cef_overlay_controller_t::is_valid"]
15290        [::std::mem::offset_of!(_cef_overlay_controller_t, is_valid) - 40usize];
15291    ["Offset of field: _cef_overlay_controller_t::is_same"]
15292        [::std::mem::offset_of!(_cef_overlay_controller_t, is_same) - 48usize];
15293    ["Offset of field: _cef_overlay_controller_t::get_contents_view"]
15294        [::std::mem::offset_of!(_cef_overlay_controller_t, get_contents_view) - 56usize];
15295    ["Offset of field: _cef_overlay_controller_t::get_window"]
15296        [::std::mem::offset_of!(_cef_overlay_controller_t, get_window) - 64usize];
15297    ["Offset of field: _cef_overlay_controller_t::get_docking_mode"]
15298        [::std::mem::offset_of!(_cef_overlay_controller_t, get_docking_mode) - 72usize];
15299    ["Offset of field: _cef_overlay_controller_t::destroy"]
15300        [::std::mem::offset_of!(_cef_overlay_controller_t, destroy) - 80usize];
15301    ["Offset of field: _cef_overlay_controller_t::set_bounds"]
15302        [::std::mem::offset_of!(_cef_overlay_controller_t, set_bounds) - 88usize];
15303    ["Offset of field: _cef_overlay_controller_t::get_bounds"]
15304        [::std::mem::offset_of!(_cef_overlay_controller_t, get_bounds) - 96usize];
15305    ["Offset of field: _cef_overlay_controller_t::get_bounds_in_screen"]
15306        [::std::mem::offset_of!(_cef_overlay_controller_t, get_bounds_in_screen) - 104usize];
15307    ["Offset of field: _cef_overlay_controller_t::set_size"]
15308        [::std::mem::offset_of!(_cef_overlay_controller_t, set_size) - 112usize];
15309    ["Offset of field: _cef_overlay_controller_t::get_size"]
15310        [::std::mem::offset_of!(_cef_overlay_controller_t, get_size) - 120usize];
15311    ["Offset of field: _cef_overlay_controller_t::set_position"]
15312        [::std::mem::offset_of!(_cef_overlay_controller_t, set_position) - 128usize];
15313    ["Offset of field: _cef_overlay_controller_t::get_position"]
15314        [::std::mem::offset_of!(_cef_overlay_controller_t, get_position) - 136usize];
15315    ["Offset of field: _cef_overlay_controller_t::set_insets"]
15316        [::std::mem::offset_of!(_cef_overlay_controller_t, set_insets) - 144usize];
15317    ["Offset of field: _cef_overlay_controller_t::get_insets"]
15318        [::std::mem::offset_of!(_cef_overlay_controller_t, get_insets) - 152usize];
15319    ["Offset of field: _cef_overlay_controller_t::size_to_preferred_size"]
15320        [::std::mem::offset_of!(_cef_overlay_controller_t, size_to_preferred_size) - 160usize];
15321    ["Offset of field: _cef_overlay_controller_t::set_visible"]
15322        [::std::mem::offset_of!(_cef_overlay_controller_t, set_visible) - 168usize];
15323    ["Offset of field: _cef_overlay_controller_t::is_visible"]
15324        [::std::mem::offset_of!(_cef_overlay_controller_t, is_visible) - 176usize];
15325    ["Offset of field: _cef_overlay_controller_t::is_drawn"]
15326        [::std::mem::offset_of!(_cef_overlay_controller_t, is_drawn) - 184usize];
15327};
15328#[doc = "\n Controller for an overlay that contains a contents View added via\n cef_window_t::AddOverlayView. Methods exposed by this controller should be\n called in preference to functions of the same name exposed by the contents\n View unless otherwise indicated. Methods must be called on the browser\n process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15329pub type cef_overlay_controller_t = _cef_overlay_controller_t;
15330#[doc = "\n Implement this structure to handle Panel events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
15331#[repr(C)]
15332#[derive(Debug, Copy, Clone)]
15333pub struct _cef_panel_delegate_t {
15334    #[doc = "\n Base structure.\n"]
15335    pub base: cef_view_delegate_t,
15336}
15337#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15338const _: () = {
15339    ["Size of _cef_panel_delegate_t"][::std::mem::size_of::<_cef_panel_delegate_t>() - 128usize];
15340    ["Alignment of _cef_panel_delegate_t"]
15341        [::std::mem::align_of::<_cef_panel_delegate_t>() - 8usize];
15342    ["Offset of field: _cef_panel_delegate_t::base"]
15343        [::std::mem::offset_of!(_cef_panel_delegate_t, base) - 0usize];
15344};
15345#[doc = "\n Implement this structure to handle Panel events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
15346pub type cef_panel_delegate_t = _cef_panel_delegate_t;
15347#[doc = "\n A Panel is a container in the views hierarchy that can contain other Views\n as children. Methods must be called on the browser process UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15348#[repr(C)]
15349#[derive(Debug, Copy, Clone)]
15350pub struct _cef_panel_t {
15351    #[doc = "\n Base structure.\n"]
15352    pub base: cef_view_t,
15353    #[doc = "\n Returns this Panel as a Window or NULL if this is not a Window.\n"]
15354    pub as_window:
15355        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_window_t>,
15356    #[doc = "\n Set this Panel's Layout to FillLayout and return the FillLayout object.\n"]
15357    pub set_to_fill_layout: ::std::option::Option<
15358        unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_fill_layout_t,
15359    >,
15360    #[doc = "\n Set this Panel's Layout to BoxLayout and return the BoxLayout object.\n"]
15361    pub set_to_box_layout: ::std::option::Option<
15362        unsafe extern "C" fn(
15363            self_: *mut _cef_panel_t,
15364            settings: *const cef_box_layout_settings_t,
15365        ) -> *mut _cef_box_layout_t,
15366    >,
15367    #[doc = "\n Get the Layout.\n"]
15368    pub get_layout:
15369        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_layout_t>,
15370    #[doc = "\n Lay out the child Views (set their bounds based on sizing heuristics\n specific to the current Layout).\n"]
15371    pub layout: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t)>,
15372    #[doc = "\n Add a child View.\n"]
15373    pub add_child_view: ::std::option::Option<
15374        unsafe extern "C" fn(self_: *mut _cef_panel_t, view: *mut _cef_view_t),
15375    >,
15376    #[doc = "\n Add a child View at the specified |index|. If |index| matches the result\n of GetChildCount() then the View will be added at the end.\n"]
15377    pub add_child_view_at: ::std::option::Option<
15378        unsafe extern "C" fn(
15379            self_: *mut _cef_panel_t,
15380            view: *mut _cef_view_t,
15381            index: ::std::os::raw::c_int,
15382        ),
15383    >,
15384    #[doc = "\n Move the child View to the specified |index|. A negative value for |index|\n will move the View to the end.\n"]
15385    pub reorder_child_view: ::std::option::Option<
15386        unsafe extern "C" fn(
15387            self_: *mut _cef_panel_t,
15388            view: *mut _cef_view_t,
15389            index: ::std::os::raw::c_int,
15390        ),
15391    >,
15392    #[doc = "\n Remove a child View. The View can then be added to another Panel.\n"]
15393    pub remove_child_view: ::std::option::Option<
15394        unsafe extern "C" fn(self_: *mut _cef_panel_t, view: *mut _cef_view_t),
15395    >,
15396    #[doc = "\n Remove all child Views. The removed Views will be deleted if the client\n holds no references to them.\n"]
15397    pub remove_all_child_views:
15398        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t)>,
15399    #[doc = "\n Returns the number of child Views.\n"]
15400    pub get_child_view_count:
15401        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> usize>,
15402    #[doc = "\n Returns the child View at the specified |index|.\n"]
15403    pub get_child_view_at: ::std::option::Option<
15404        unsafe extern "C" fn(
15405            self_: *mut _cef_panel_t,
15406            index: ::std::os::raw::c_int,
15407        ) -> *mut _cef_view_t,
15408    >,
15409}
15410#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15411const _: () = {
15412    ["Size of _cef_panel_t"][::std::mem::size_of::<_cef_panel_t>() - 552usize];
15413    ["Alignment of _cef_panel_t"][::std::mem::align_of::<_cef_panel_t>() - 8usize];
15414    ["Offset of field: _cef_panel_t::base"][::std::mem::offset_of!(_cef_panel_t, base) - 0usize];
15415    ["Offset of field: _cef_panel_t::as_window"]
15416        [::std::mem::offset_of!(_cef_panel_t, as_window) - 456usize];
15417    ["Offset of field: _cef_panel_t::set_to_fill_layout"]
15418        [::std::mem::offset_of!(_cef_panel_t, set_to_fill_layout) - 464usize];
15419    ["Offset of field: _cef_panel_t::set_to_box_layout"]
15420        [::std::mem::offset_of!(_cef_panel_t, set_to_box_layout) - 472usize];
15421    ["Offset of field: _cef_panel_t::get_layout"]
15422        [::std::mem::offset_of!(_cef_panel_t, get_layout) - 480usize];
15423    ["Offset of field: _cef_panel_t::layout"]
15424        [::std::mem::offset_of!(_cef_panel_t, layout) - 488usize];
15425    ["Offset of field: _cef_panel_t::add_child_view"]
15426        [::std::mem::offset_of!(_cef_panel_t, add_child_view) - 496usize];
15427    ["Offset of field: _cef_panel_t::add_child_view_at"]
15428        [::std::mem::offset_of!(_cef_panel_t, add_child_view_at) - 504usize];
15429    ["Offset of field: _cef_panel_t::reorder_child_view"]
15430        [::std::mem::offset_of!(_cef_panel_t, reorder_child_view) - 512usize];
15431    ["Offset of field: _cef_panel_t::remove_child_view"]
15432        [::std::mem::offset_of!(_cef_panel_t, remove_child_view) - 520usize];
15433    ["Offset of field: _cef_panel_t::remove_all_child_views"]
15434        [::std::mem::offset_of!(_cef_panel_t, remove_all_child_views) - 528usize];
15435    ["Offset of field: _cef_panel_t::get_child_view_count"]
15436        [::std::mem::offset_of!(_cef_panel_t, get_child_view_count) - 536usize];
15437    ["Offset of field: _cef_panel_t::get_child_view_at"]
15438        [::std::mem::offset_of!(_cef_panel_t, get_child_view_at) - 544usize];
15439};
15440#[doc = "\n A Panel is a container in the views hierarchy that can contain other Views\n as children. Methods must be called on the browser process UI thread unless\n otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15441pub type cef_panel_t = _cef_panel_t;
15442unsafe extern "C" {
15443    #[doc = "\n Create a new Panel.\n"]
15444    pub fn cef_panel_create(delegate: *mut _cef_panel_delegate_t) -> *mut cef_panel_t;
15445}
15446#[doc = "\n Implement this structure to handle window events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
15447#[repr(C)]
15448#[derive(Debug, Copy, Clone)]
15449pub struct _cef_window_delegate_t {
15450    #[doc = "\n Base structure.\n"]
15451    pub base: cef_panel_delegate_t,
15452    #[doc = "\n Called when |window| is created.\n"]
15453    pub on_window_created: ::std::option::Option<
15454        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
15455    >,
15456    #[doc = "\n Called when |window| is closing.\n"]
15457    pub on_window_closing: ::std::option::Option<
15458        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
15459    >,
15460    #[doc = "\n Called when |window| is destroyed. Release all references to |window| and\n do not attempt to execute any functions on |window| after this callback\n returns.\n"]
15461    pub on_window_destroyed: ::std::option::Option<
15462        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
15463    >,
15464    #[doc = "\n Called when |window| is activated or deactivated.\n"]
15465    pub on_window_activation_changed: ::std::option::Option<
15466        unsafe extern "C" fn(
15467            self_: *mut _cef_window_delegate_t,
15468            window: *mut _cef_window_t,
15469            active: ::std::os::raw::c_int,
15470        ),
15471    >,
15472    #[doc = "\n Called when |window| bounds have changed. |new_bounds| will be in DIP\n screen coordinates.\n"]
15473    pub on_window_bounds_changed: ::std::option::Option<
15474        unsafe extern "C" fn(
15475            self_: *mut _cef_window_delegate_t,
15476            window: *mut _cef_window_t,
15477            new_bounds: *const cef_rect_t,
15478        ),
15479    >,
15480    #[doc = "\n Called when |window| is transitioning to or from fullscreen mode. On MacOS\n the transition occurs asynchronously with |is_competed| set to false (0)\n when the transition starts and true (1) after the transition completes. On\n other platforms the transition occurs synchronously with |is_completed|\n set to true (1) after the transition completes. With Alloy style you must\n also implement cef_display_handler_t::OnFullscreenModeChange to handle\n fullscreen transitions initiated by browser content.\n"]
15481    pub on_window_fullscreen_transition: ::std::option::Option<
15482        unsafe extern "C" fn(
15483            self_: *mut _cef_window_delegate_t,
15484            window: *mut _cef_window_t,
15485            is_completed: ::std::os::raw::c_int,
15486        ),
15487    >,
15488    #[doc = "\n Return the parent for |window| or NULL if the |window| does not have a\n parent. Windows with parents will not get a taskbar button. Set |is_menu|\n to true (1) if |window| will be displayed as a menu, in which case it will\n not be clipped to the parent window bounds. Set |can_activate_menu| to\n false (0) if |is_menu| is true (1) and |window| should not be activated\n (given keyboard focus) when displayed.\n"]
15489    pub get_parent_window: ::std::option::Option<
15490        unsafe extern "C" fn(
15491            self_: *mut _cef_window_delegate_t,
15492            window: *mut _cef_window_t,
15493            is_menu: *mut ::std::os::raw::c_int,
15494            can_activate_menu: *mut ::std::os::raw::c_int,
15495        ) -> *mut _cef_window_t,
15496    >,
15497    #[doc = "\n Return true (1) if |window| should be created as a window modal dialog.\n Only called when a Window is returned via get_parent_window() with\n |is_menu| set to false (0). All controls in the parent Window will be\n disabled while |window| is visible. This functionality is not supported by\n all Linux window managers. Alternately, use\n cef_window_t::show_as_browser_modal_dialog() for a browser modal dialog\n that works on all platforms.\n"]
15498    pub is_window_modal_dialog: ::std::option::Option<
15499        unsafe extern "C" fn(
15500            self_: *mut _cef_window_delegate_t,
15501            window: *mut _cef_window_t,
15502        ) -> ::std::os::raw::c_int,
15503    >,
15504    #[doc = "\n Return the initial bounds for |window| in density independent pixel (DIP)\n coordinates. If this function returns an NULL CefRect then\n get_preferred_size() will be called to retrieve the size, and the window\n will be placed on the screen with origin (0,0). This function can be used\n in combination with cef_view_t::get_bounds_in_screen() to restore the\n previous window bounds.\n"]
15505    pub get_initial_bounds: ::std::option::Option<
15506        unsafe extern "C" fn(
15507            self_: *mut _cef_window_delegate_t,
15508            window: *mut _cef_window_t,
15509        ) -> cef_rect_t,
15510    >,
15511    #[doc = "\n Return the initial show state for |window|.\n"]
15512    pub get_initial_show_state: ::std::option::Option<
15513        unsafe extern "C" fn(
15514            self_: *mut _cef_window_delegate_t,
15515            window: *mut _cef_window_t,
15516        ) -> cef_show_state_t,
15517    >,
15518    #[doc = "\n Return true (1) if |window| should be created without a frame or title\n bar. The window will be resizable if can_resize() returns true (1). Use\n cef_window_t::set_draggable_regions() to specify draggable regions.\n"]
15519    pub is_frameless: ::std::option::Option<
15520        unsafe extern "C" fn(
15521            self_: *mut _cef_window_delegate_t,
15522            window: *mut _cef_window_t,
15523        ) -> ::std::os::raw::c_int,
15524    >,
15525    #[doc = "\n Return true (1) if |window| should be created with standard window buttons\n like close, minimize and zoom. This function is only supported on macOS.\n"]
15526    pub with_standard_window_buttons: ::std::option::Option<
15527        unsafe extern "C" fn(
15528            self_: *mut _cef_window_delegate_t,
15529            window: *mut _cef_window_t,
15530        ) -> ::std::os::raw::c_int,
15531    >,
15532    #[doc = "\n Return whether the titlebar height should be overridden, and sets the\n height of the titlebar in |titlebar_height|. On macOS, it can also be used\n to adjust the vertical position of the traffic light buttons in frameless\n windows. The buttons will be positioned halfway down the titlebar at a\n height of |titlebar_height| / 2.\n"]
15533    pub get_titlebar_height: ::std::option::Option<
15534        unsafe extern "C" fn(
15535            self_: *mut _cef_window_delegate_t,
15536            window: *mut _cef_window_t,
15537            titlebar_height: *mut f32,
15538        ) -> ::std::os::raw::c_int,
15539    >,
15540    #[doc = "\n Return whether the view should accept the initial mouse-down event,\n allowing it to respond to click-through behavior. If STATE_ENABLED is\n returned, the view will be sent a mouseDown: message for an initial mouse-\n down event, activating the view with one click, instead of clicking first\n to make the window active and then clicking the view.\n\n This function is only supported on macOS. For more details, refer to the\n documentation of acceptsFirstMouse.\n"]
15541    pub accepts_first_mouse: ::std::option::Option<
15542        unsafe extern "C" fn(
15543            self_: *mut _cef_window_delegate_t,
15544            window: *mut _cef_window_t,
15545        ) -> cef_state_t,
15546    >,
15547    #[doc = "\n Return true (1) if |window| can be resized.\n"]
15548    pub can_resize: ::std::option::Option<
15549        unsafe extern "C" fn(
15550            self_: *mut _cef_window_delegate_t,
15551            window: *mut _cef_window_t,
15552        ) -> ::std::os::raw::c_int,
15553    >,
15554    #[doc = "\n Return true (1) if |window| can be maximized.\n"]
15555    pub can_maximize: ::std::option::Option<
15556        unsafe extern "C" fn(
15557            self_: *mut _cef_window_delegate_t,
15558            window: *mut _cef_window_t,
15559        ) -> ::std::os::raw::c_int,
15560    >,
15561    #[doc = "\n Return true (1) if |window| can be minimized.\n"]
15562    pub can_minimize: ::std::option::Option<
15563        unsafe extern "C" fn(
15564            self_: *mut _cef_window_delegate_t,
15565            window: *mut _cef_window_t,
15566        ) -> ::std::os::raw::c_int,
15567    >,
15568    #[doc = "\n Return true (1) if |window| can be closed. This will be called for user-\n initiated window close actions and when cef_window_t::close() is called.\n"]
15569    pub can_close: ::std::option::Option<
15570        unsafe extern "C" fn(
15571            self_: *mut _cef_window_delegate_t,
15572            window: *mut _cef_window_t,
15573        ) -> ::std::os::raw::c_int,
15574    >,
15575    #[doc = "\n Called when a keyboard accelerator registered with\n cef_window_t::SetAccelerator is triggered. Return true (1) if the\n accelerator was handled or false (0) otherwise.\n"]
15576    pub on_accelerator: ::std::option::Option<
15577        unsafe extern "C" fn(
15578            self_: *mut _cef_window_delegate_t,
15579            window: *mut _cef_window_t,
15580            command_id: ::std::os::raw::c_int,
15581        ) -> ::std::os::raw::c_int,
15582    >,
15583    #[doc = "\n Called after all other controls in the window have had a chance to handle\n the event. |event| contains information about the keyboard event. Return\n true (1) if the keyboard event was handled or false (0) otherwise.\n"]
15584    pub on_key_event: ::std::option::Option<
15585        unsafe extern "C" fn(
15586            self_: *mut _cef_window_delegate_t,
15587            window: *mut _cef_window_t,
15588            event: *const cef_key_event_t,
15589        ) -> ::std::os::raw::c_int,
15590    >,
15591    #[doc = "\n Called after the native/OS or Chrome theme for |window| has changed.\n |chrome_theme| will be true (1) if the notification is for a Chrome theme.\n\n Native/OS theme colors are configured globally and do not need to be\n customized for each Window individually. An example of a native/OS theme\n change that triggers this callback is when the user switches between dark\n and light mode during application lifespan. Native/OS theme changes can be\n disabled by passing the `--force-dark-mode` or `--force-light-mode`\n command-line flag.\n\n Chrome theme colors will be applied and this callback will be triggered\n if/when a BrowserView is added to the Window's component hierarchy. Chrome\n theme colors can be configured on a per-RequestContext basis using\n cef_request_context_t::SetChromeColorScheme or (Chrome style only) by\n visiting chrome://settings/manageProfile. Any theme changes using those\n mechanisms will also trigger this callback. Chrome theme colors will be\n persisted and restored from disk cache.\n\n This callback is not triggered on Window creation so clients that wish to\n customize the initial native/OS theme must call\n cef_window_t::SetThemeColor and cef_window_t::ThemeChanged before showing\n the first Window.\n\n Theme colors will be reset to standard values before this callback is\n called for the first affected Window. Call cef_window_t::SetThemeColor\n from inside this callback to override a standard color or add a custom\n color. cef_view_delegate_t::OnThemeChanged will be called after this\n callback for the complete |window| component hierarchy.\n"]
15592    pub on_theme_colors_changed: ::std::option::Option<
15593        unsafe extern "C" fn(
15594            self_: *mut _cef_window_delegate_t,
15595            window: *mut _cef_window_t,
15596            chrome_theme: ::std::os::raw::c_int,
15597        ),
15598    >,
15599    #[doc = "\n Optionally change the runtime style for this Window. See\n cef_runtime_style_t documentation for details.\n"]
15600    pub get_window_runtime_style: ::std::option::Option<
15601        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t) -> cef_runtime_style_t,
15602    >,
15603    #[doc = "\n Return Linux-specific window properties for correctly handling by window\n managers\n"]
15604    pub get_linux_window_properties: ::std::option::Option<
15605        unsafe extern "C" fn(
15606            self_: *mut _cef_window_delegate_t,
15607            window: *mut _cef_window_t,
15608            properties: *mut _cef_linux_window_properties_t,
15609        ) -> ::std::os::raw::c_int,
15610    >,
15611}
15612#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15613const _: () = {
15614    ["Size of _cef_window_delegate_t"][::std::mem::size_of::<_cef_window_delegate_t>() - 312usize];
15615    ["Alignment of _cef_window_delegate_t"]
15616        [::std::mem::align_of::<_cef_window_delegate_t>() - 8usize];
15617    ["Offset of field: _cef_window_delegate_t::base"]
15618        [::std::mem::offset_of!(_cef_window_delegate_t, base) - 0usize];
15619    ["Offset of field: _cef_window_delegate_t::on_window_created"]
15620        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_created) - 128usize];
15621    ["Offset of field: _cef_window_delegate_t::on_window_closing"]
15622        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_closing) - 136usize];
15623    ["Offset of field: _cef_window_delegate_t::on_window_destroyed"]
15624        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_destroyed) - 144usize];
15625    ["Offset of field: _cef_window_delegate_t::on_window_activation_changed"]
15626        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_activation_changed) - 152usize];
15627    ["Offset of field: _cef_window_delegate_t::on_window_bounds_changed"]
15628        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_bounds_changed) - 160usize];
15629    ["Offset of field: _cef_window_delegate_t::on_window_fullscreen_transition"][::std::mem::offset_of!(
15630        _cef_window_delegate_t,
15631        on_window_fullscreen_transition
15632    ) - 168usize];
15633    ["Offset of field: _cef_window_delegate_t::get_parent_window"]
15634        [::std::mem::offset_of!(_cef_window_delegate_t, get_parent_window) - 176usize];
15635    ["Offset of field: _cef_window_delegate_t::is_window_modal_dialog"]
15636        [::std::mem::offset_of!(_cef_window_delegate_t, is_window_modal_dialog) - 184usize];
15637    ["Offset of field: _cef_window_delegate_t::get_initial_bounds"]
15638        [::std::mem::offset_of!(_cef_window_delegate_t, get_initial_bounds) - 192usize];
15639    ["Offset of field: _cef_window_delegate_t::get_initial_show_state"]
15640        [::std::mem::offset_of!(_cef_window_delegate_t, get_initial_show_state) - 200usize];
15641    ["Offset of field: _cef_window_delegate_t::is_frameless"]
15642        [::std::mem::offset_of!(_cef_window_delegate_t, is_frameless) - 208usize];
15643    ["Offset of field: _cef_window_delegate_t::with_standard_window_buttons"]
15644        [::std::mem::offset_of!(_cef_window_delegate_t, with_standard_window_buttons) - 216usize];
15645    ["Offset of field: _cef_window_delegate_t::get_titlebar_height"]
15646        [::std::mem::offset_of!(_cef_window_delegate_t, get_titlebar_height) - 224usize];
15647    ["Offset of field: _cef_window_delegate_t::accepts_first_mouse"]
15648        [::std::mem::offset_of!(_cef_window_delegate_t, accepts_first_mouse) - 232usize];
15649    ["Offset of field: _cef_window_delegate_t::can_resize"]
15650        [::std::mem::offset_of!(_cef_window_delegate_t, can_resize) - 240usize];
15651    ["Offset of field: _cef_window_delegate_t::can_maximize"]
15652        [::std::mem::offset_of!(_cef_window_delegate_t, can_maximize) - 248usize];
15653    ["Offset of field: _cef_window_delegate_t::can_minimize"]
15654        [::std::mem::offset_of!(_cef_window_delegate_t, can_minimize) - 256usize];
15655    ["Offset of field: _cef_window_delegate_t::can_close"]
15656        [::std::mem::offset_of!(_cef_window_delegate_t, can_close) - 264usize];
15657    ["Offset of field: _cef_window_delegate_t::on_accelerator"]
15658        [::std::mem::offset_of!(_cef_window_delegate_t, on_accelerator) - 272usize];
15659    ["Offset of field: _cef_window_delegate_t::on_key_event"]
15660        [::std::mem::offset_of!(_cef_window_delegate_t, on_key_event) - 280usize];
15661    ["Offset of field: _cef_window_delegate_t::on_theme_colors_changed"]
15662        [::std::mem::offset_of!(_cef_window_delegate_t, on_theme_colors_changed) - 288usize];
15663    ["Offset of field: _cef_window_delegate_t::get_window_runtime_style"]
15664        [::std::mem::offset_of!(_cef_window_delegate_t, get_window_runtime_style) - 296usize];
15665    ["Offset of field: _cef_window_delegate_t::get_linux_window_properties"]
15666        [::std::mem::offset_of!(_cef_window_delegate_t, get_linux_window_properties) - 304usize];
15667};
15668#[doc = "\n Implement this structure to handle window events. The functions of this\n structure will be called on the browser process UI thread unless otherwise\n indicated.\n\n NOTE: This struct is allocated client-side.\n"]
15669pub type cef_window_delegate_t = _cef_window_delegate_t;
15670#[doc = "\n A Window is a top-level Window/widget in the Views hierarchy. By default it\n will have a non-client area with title bar, icon and buttons that supports\n moving and resizing. All size and position values are in density independent\n pixels (DIP) unless otherwise indicated. Methods must be called on the\n browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15671#[repr(C)]
15672#[derive(Debug, Copy, Clone)]
15673pub struct _cef_window_t {
15674    #[doc = "\n Base structure.\n"]
15675    pub base: cef_panel_t,
15676    #[doc = "\n Show the Window.\n"]
15677    pub show: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15678    #[doc = "\n Show the Window as a browser modal dialog relative to |browser_view|. A\n parent Window must be returned via\n cef_window_delegate_t::get_parent_window() and |browser_view| must belong\n to that parent Window. While this Window is visible, |browser_view| will\n be disabled while other controls in the parent Window remain enabled.\n Navigating or destroying the |browser_view| will close this Window\n automatically. Alternately, use show() and return true (1) from\n cef_window_delegate_t::is_window_modal_dialog() for a window modal dialog\n where all controls in the parent Window are disabled.\n"]
15679    pub show_as_browser_modal_dialog: ::std::option::Option<
15680        unsafe extern "C" fn(self_: *mut _cef_window_t, browser_view: *mut _cef_browser_view_t),
15681    >,
15682    #[doc = "\n Hide the Window.\n"]
15683    pub hide: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15684    #[doc = "\n Sizes the Window to |size| and centers it in the current display.\n"]
15685    pub center_window: ::std::option::Option<
15686        unsafe extern "C" fn(self_: *mut _cef_window_t, size: *const cef_size_t),
15687    >,
15688    #[doc = "\n Close the Window.\n"]
15689    pub close: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15690    #[doc = "\n Returns true (1) if the Window has been closed.\n"]
15691    pub is_closed: ::std::option::Option<
15692        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15693    >,
15694    #[doc = "\n Activate the Window, assuming it already exists and is visible.\n"]
15695    pub activate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15696    #[doc = "\n Deactivate the Window, making the next Window in the Z order the active\n Window.\n"]
15697    pub deactivate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15698    #[doc = "\n Returns whether the Window is the currently active Window.\n"]
15699    pub is_active: ::std::option::Option<
15700        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15701    >,
15702    #[doc = "\n Bring this Window to the top of other Windows in the Windowing system.\n"]
15703    pub bring_to_top: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15704    #[doc = "\n Set the Window to be on top of other Windows in the Windowing system.\n"]
15705    pub set_always_on_top: ::std::option::Option<
15706        unsafe extern "C" fn(self_: *mut _cef_window_t, on_top: ::std::os::raw::c_int),
15707    >,
15708    #[doc = "\n Returns whether the Window has been set to be on top of other Windows in\n the Windowing system.\n"]
15709    pub is_always_on_top: ::std::option::Option<
15710        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15711    >,
15712    #[doc = "\n Maximize the Window.\n"]
15713    pub maximize: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15714    #[doc = "\n Minimize the Window.\n"]
15715    pub minimize: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15716    #[doc = "\n Restore the Window.\n"]
15717    pub restore: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15718    #[doc = "\n Set fullscreen Window state. The\n cef_window_delegate_t::OnWindowFullscreenTransition function will be\n called during the fullscreen transition for notification purposes.\n"]
15719    pub set_fullscreen: ::std::option::Option<
15720        unsafe extern "C" fn(self_: *mut _cef_window_t, fullscreen: ::std::os::raw::c_int),
15721    >,
15722    #[doc = "\n Returns true (1) if the Window is maximized.\n"]
15723    pub is_maximized: ::std::option::Option<
15724        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15725    >,
15726    #[doc = "\n Returns true (1) if the Window is minimized.\n"]
15727    pub is_minimized: ::std::option::Option<
15728        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15729    >,
15730    #[doc = "\n Returns true (1) if the Window is fullscreen.\n"]
15731    pub is_fullscreen: ::std::option::Option<
15732        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
15733    >,
15734    #[doc = "\n Returns the View that currently has focus in this Window, or nullptr if no\n View currently has focus. A Window may have a focused View even if it is\n not currently active. Any focus changes while a Window is not active may\n be applied after that Window next becomes active.\n"]
15735    pub get_focused_view:
15736        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_view_t>,
15737    #[doc = "\n Set the Window title.\n"]
15738    pub set_title: ::std::option::Option<
15739        unsafe extern "C" fn(self_: *mut _cef_window_t, title: *const cef_string_t),
15740    >,
15741    #[doc = "\n Get the Window title.\n"]
15742    pub get_title: ::std::option::Option<
15743        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_string_userfree_t,
15744    >,
15745    #[doc = "\n Set the Window icon. This should be a 16x16 icon suitable for use in the\n Windows's title bar.\n"]
15746    pub set_window_icon: ::std::option::Option<
15747        unsafe extern "C" fn(self_: *mut _cef_window_t, image: *mut _cef_image_t),
15748    >,
15749    #[doc = "\n Get the Window icon.\n"]
15750    pub get_window_icon:
15751        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_image_t>,
15752    #[doc = "\n Set the Window App icon. This should be a larger icon for use in the host\n environment app switching UI. On Windows, this is the ICON_BIG used in\n Alt-Tab list and Windows taskbar. The Window icon will be used by default\n if no Window App icon is specified.\n"]
15753    pub set_window_app_icon: ::std::option::Option<
15754        unsafe extern "C" fn(self_: *mut _cef_window_t, image: *mut _cef_image_t),
15755    >,
15756    #[doc = "\n Get the Window App icon.\n"]
15757    pub get_window_app_icon:
15758        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_image_t>,
15759    #[doc = "\n Add a View that will be overlayed on the Window contents with absolute\n positioning and high z-order. Positioning is controlled by |docking_mode|\n as described below. Setting |can_activate| to true (1) will allow the\n overlay view to receive input focus. The returned cef_overlay_controller_t\n object is used to control the overlay. Overlays are hidden by default.\n\n With CEF_DOCKING_MODE_CUSTOM:\n   1. The overlay is initially hidden, sized to |view|'s preferred size,\n      and positioned in the top-left corner.\n   2. Optionally change the overlay position and/or size by calling\n      CefOverlayController methods.\n   3. Call CefOverlayController::SetVisible(true) to show the overlay.\n   4. The overlay will be automatically re-sized if |view|'s layout\n      changes. Optionally change the overlay position and/or size when\n      OnLayoutChanged is called on the Window's delegate to indicate a\n      change in Window bounds.\n\n With other docking modes:\n   1. The overlay is initially hidden, sized to |view|'s preferred size,\n      and positioned based on |docking_mode|.\n   2. Call CefOverlayController::SetVisible(true) to show the overlay.\n   3. The overlay will be automatically re-sized if |view|'s layout changes\n      and re-positioned as appropriate when the Window resizes.\n\n Overlays created by this function will receive a higher z-order then any\n child Views added previously. It is therefore recommended to call this\n function last after all other child Views have been added so that the\n overlay displays as the top-most child of the Window.\n"]
15760    pub add_overlay_view: ::std::option::Option<
15761        unsafe extern "C" fn(
15762            self_: *mut _cef_window_t,
15763            view: *mut _cef_view_t,
15764            docking_mode: cef_docking_mode_t,
15765            can_activate: ::std::os::raw::c_int,
15766        ) -> *mut _cef_overlay_controller_t,
15767    >,
15768    #[doc = "\n Show a menu with contents |menu_model|. |screen_point| specifies the menu\n position in screen coordinates. |anchor_position| specifies how the menu\n will be anchored relative to |screen_point|.\n"]
15769    pub show_menu: ::std::option::Option<
15770        unsafe extern "C" fn(
15771            self_: *mut _cef_window_t,
15772            menu_model: *mut _cef_menu_model_t,
15773            screen_point: *const cef_point_t,
15774            anchor_position: cef_menu_anchor_position_t,
15775        ),
15776    >,
15777    #[doc = "\n Cancel the menu that is currently showing, if any.\n"]
15778    pub cancel_menu: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15779    #[doc = "\n Returns the Display that most closely intersects the bounds of this\n Window. May return NULL if this Window is not currently displayed.\n"]
15780    pub get_display: ::std::option::Option<
15781        unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_display_t,
15782    >,
15783    #[doc = "\n Returns the bounds (size and position) of this Window's client area.\n Position is in screen coordinates.\n"]
15784    pub get_client_area_bounds_in_screen:
15785        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_rect_t>,
15786    #[doc = "\n Set the regions where mouse events will be intercepted by this Window to\n support drag operations. Call this function with an NULL vector to clear\n the draggable regions. The draggable region bounds should be in window\n coordinates.\n"]
15787    pub set_draggable_regions: ::std::option::Option<
15788        unsafe extern "C" fn(
15789            self_: *mut _cef_window_t,
15790            regionsCount: usize,
15791            regions: *const cef_draggable_region_t,
15792        ),
15793    >,
15794    #[doc = "\n Retrieve the platform window handle for this Window.\n"]
15795    pub get_window_handle: ::std::option::Option<
15796        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_window_handle_t,
15797    >,
15798    #[doc = "\n Simulate a key press. |key_code| is the VKEY_* value from Chromium's\n ui/events/keycodes/keyboard_codes.h header (VK_* values on Windows).\n |event_flags| is some combination of EVENTFLAG_SHIFT_DOWN,\n EVENTFLAG_CONTROL_DOWN and/or EVENTFLAG_ALT_DOWN. This function is exposed\n primarily for testing purposes.\n"]
15799    pub send_key_press: ::std::option::Option<
15800        unsafe extern "C" fn(
15801            self_: *mut _cef_window_t,
15802            key_code: ::std::os::raw::c_int,
15803            event_flags: u32,
15804        ),
15805    >,
15806    #[doc = "\n Simulate a mouse move. The mouse cursor will be moved to the specified\n (screen_x, screen_y) position. This function is exposed primarily for\n testing purposes.\n"]
15807    pub send_mouse_move: ::std::option::Option<
15808        unsafe extern "C" fn(
15809            self_: *mut _cef_window_t,
15810            screen_x: ::std::os::raw::c_int,
15811            screen_y: ::std::os::raw::c_int,
15812        ),
15813    >,
15814    #[doc = "\n Simulate mouse down and/or mouse up events. |button| is the mouse button\n type. If |mouse_down| is true (1) a mouse down event will be sent. If\n |mouse_up| is true (1) a mouse up event will be sent. If both are true (1)\n a mouse down event will be sent followed by a mouse up event (equivalent\n to clicking the mouse button). The events will be sent using the current\n cursor position so make sure to call send_mouse_move() first to position\n the mouse. This function is exposed primarily for testing purposes.\n"]
15815    pub send_mouse_events: ::std::option::Option<
15816        unsafe extern "C" fn(
15817            self_: *mut _cef_window_t,
15818            button: cef_mouse_button_type_t,
15819            mouse_down: ::std::os::raw::c_int,
15820            mouse_up: ::std::os::raw::c_int,
15821        ),
15822    >,
15823    #[doc = "\n Set the keyboard accelerator for the specified |command_id|. |key_code|\n can be any virtual key or character value. Required modifier keys are\n specified by |shift_pressed|, |ctrl_pressed| and/or |alt_pressed|.\n cef_window_delegate_t::OnAccelerator will be called if the keyboard\n combination is triggered while this window has focus.\n\n The |high_priority| value will be considered if a child cef_browser_view_t\n has focus when the keyboard combination is triggered. If |high_priority|\n is true (1) then the key event will not be forwarded to the web content\n (`keydown` event handler) or cef_keyboard_handler_t first. If\n |high_priority| is false (0) then the behavior will depend on the\n cef_browser_view_t::SetPreferAccelerators configuration.\n"]
15824    pub set_accelerator: ::std::option::Option<
15825        unsafe extern "C" fn(
15826            self_: *mut _cef_window_t,
15827            command_id: ::std::os::raw::c_int,
15828            key_code: ::std::os::raw::c_int,
15829            shift_pressed: ::std::os::raw::c_int,
15830            ctrl_pressed: ::std::os::raw::c_int,
15831            alt_pressed: ::std::os::raw::c_int,
15832            high_priority: ::std::os::raw::c_int,
15833        ),
15834    >,
15835    #[doc = "\n Remove the keyboard accelerator for the specified |command_id|.\n"]
15836    pub remove_accelerator: ::std::option::Option<
15837        unsafe extern "C" fn(self_: *mut _cef_window_t, command_id: ::std::os::raw::c_int),
15838    >,
15839    #[doc = "\n Remove all keyboard accelerators.\n"]
15840    pub remove_all_accelerators:
15841        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15842    #[doc = "\n Override a standard theme color or add a custom color associated with\n |color_id|. See cef_color_ids.h for standard ID values. Recommended usage\n is as follows:\n\n 1. Customize the default native/OS theme by calling SetThemeColor before\n    showing the first Window. When done setting colors call\n    CefWindow::ThemeChanged to trigger CefViewDelegate::OnThemeChanged\n    notifications.\n 2. Customize the current native/OS or Chrome theme after it changes by\n    calling SetThemeColor from the CefWindowDelegate::OnThemeColorsChanged\n    callback. CefViewDelegate::OnThemeChanged notifications will then be\n    triggered automatically.\n\n The configured color will be available immediately via\n cef_view_t::GetThemeColor and will be applied to each View in this\n Window's component hierarchy when cef_view_delegate_t::OnThemeChanged is\n called. See OnThemeColorsChanged documentation for additional details.\n\n Clients wishing to add custom colors should use |color_id| values >=\n CEF_ChromeColorsEnd.\n"]
15843    pub set_theme_color: ::std::option::Option<
15844        unsafe extern "C" fn(
15845            self_: *mut _cef_window_t,
15846            color_id: ::std::os::raw::c_int,
15847            color: cef_color_t,
15848        ),
15849    >,
15850    #[doc = "\n Trigger cef_view_delegate_t::OnThemeChanged callbacks for each View in\n this Window's component hierarchy. Unlike a native/OS or Chrome theme\n change this function does not reset theme colors to standard values and\n does not result in a call to cef_window_delegate_t::OnThemeColorsChanged.\n\n Do not call this function from cef_window_delegate_t::OnThemeColorsChanged\n or cef_view_delegate_t::OnThemeChanged.\n"]
15851    pub theme_changed: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
15852    #[doc = "\n Returns the runtime style for this Window (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
15853    pub get_runtime_style: ::std::option::Option<
15854        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_runtime_style_t,
15855    >,
15856}
15857#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15858const _: () = {
15859    ["Size of _cef_window_t"][::std::mem::size_of::<_cef_window_t>() - 888usize];
15860    ["Alignment of _cef_window_t"][::std::mem::align_of::<_cef_window_t>() - 8usize];
15861    ["Offset of field: _cef_window_t::base"][::std::mem::offset_of!(_cef_window_t, base) - 0usize];
15862    ["Offset of field: _cef_window_t::show"]
15863        [::std::mem::offset_of!(_cef_window_t, show) - 552usize];
15864    ["Offset of field: _cef_window_t::show_as_browser_modal_dialog"]
15865        [::std::mem::offset_of!(_cef_window_t, show_as_browser_modal_dialog) - 560usize];
15866    ["Offset of field: _cef_window_t::hide"]
15867        [::std::mem::offset_of!(_cef_window_t, hide) - 568usize];
15868    ["Offset of field: _cef_window_t::center_window"]
15869        [::std::mem::offset_of!(_cef_window_t, center_window) - 576usize];
15870    ["Offset of field: _cef_window_t::close"]
15871        [::std::mem::offset_of!(_cef_window_t, close) - 584usize];
15872    ["Offset of field: _cef_window_t::is_closed"]
15873        [::std::mem::offset_of!(_cef_window_t, is_closed) - 592usize];
15874    ["Offset of field: _cef_window_t::activate"]
15875        [::std::mem::offset_of!(_cef_window_t, activate) - 600usize];
15876    ["Offset of field: _cef_window_t::deactivate"]
15877        [::std::mem::offset_of!(_cef_window_t, deactivate) - 608usize];
15878    ["Offset of field: _cef_window_t::is_active"]
15879        [::std::mem::offset_of!(_cef_window_t, is_active) - 616usize];
15880    ["Offset of field: _cef_window_t::bring_to_top"]
15881        [::std::mem::offset_of!(_cef_window_t, bring_to_top) - 624usize];
15882    ["Offset of field: _cef_window_t::set_always_on_top"]
15883        [::std::mem::offset_of!(_cef_window_t, set_always_on_top) - 632usize];
15884    ["Offset of field: _cef_window_t::is_always_on_top"]
15885        [::std::mem::offset_of!(_cef_window_t, is_always_on_top) - 640usize];
15886    ["Offset of field: _cef_window_t::maximize"]
15887        [::std::mem::offset_of!(_cef_window_t, maximize) - 648usize];
15888    ["Offset of field: _cef_window_t::minimize"]
15889        [::std::mem::offset_of!(_cef_window_t, minimize) - 656usize];
15890    ["Offset of field: _cef_window_t::restore"]
15891        [::std::mem::offset_of!(_cef_window_t, restore) - 664usize];
15892    ["Offset of field: _cef_window_t::set_fullscreen"]
15893        [::std::mem::offset_of!(_cef_window_t, set_fullscreen) - 672usize];
15894    ["Offset of field: _cef_window_t::is_maximized"]
15895        [::std::mem::offset_of!(_cef_window_t, is_maximized) - 680usize];
15896    ["Offset of field: _cef_window_t::is_minimized"]
15897        [::std::mem::offset_of!(_cef_window_t, is_minimized) - 688usize];
15898    ["Offset of field: _cef_window_t::is_fullscreen"]
15899        [::std::mem::offset_of!(_cef_window_t, is_fullscreen) - 696usize];
15900    ["Offset of field: _cef_window_t::get_focused_view"]
15901        [::std::mem::offset_of!(_cef_window_t, get_focused_view) - 704usize];
15902    ["Offset of field: _cef_window_t::set_title"]
15903        [::std::mem::offset_of!(_cef_window_t, set_title) - 712usize];
15904    ["Offset of field: _cef_window_t::get_title"]
15905        [::std::mem::offset_of!(_cef_window_t, get_title) - 720usize];
15906    ["Offset of field: _cef_window_t::set_window_icon"]
15907        [::std::mem::offset_of!(_cef_window_t, set_window_icon) - 728usize];
15908    ["Offset of field: _cef_window_t::get_window_icon"]
15909        [::std::mem::offset_of!(_cef_window_t, get_window_icon) - 736usize];
15910    ["Offset of field: _cef_window_t::set_window_app_icon"]
15911        [::std::mem::offset_of!(_cef_window_t, set_window_app_icon) - 744usize];
15912    ["Offset of field: _cef_window_t::get_window_app_icon"]
15913        [::std::mem::offset_of!(_cef_window_t, get_window_app_icon) - 752usize];
15914    ["Offset of field: _cef_window_t::add_overlay_view"]
15915        [::std::mem::offset_of!(_cef_window_t, add_overlay_view) - 760usize];
15916    ["Offset of field: _cef_window_t::show_menu"]
15917        [::std::mem::offset_of!(_cef_window_t, show_menu) - 768usize];
15918    ["Offset of field: _cef_window_t::cancel_menu"]
15919        [::std::mem::offset_of!(_cef_window_t, cancel_menu) - 776usize];
15920    ["Offset of field: _cef_window_t::get_display"]
15921        [::std::mem::offset_of!(_cef_window_t, get_display) - 784usize];
15922    ["Offset of field: _cef_window_t::get_client_area_bounds_in_screen"]
15923        [::std::mem::offset_of!(_cef_window_t, get_client_area_bounds_in_screen) - 792usize];
15924    ["Offset of field: _cef_window_t::set_draggable_regions"]
15925        [::std::mem::offset_of!(_cef_window_t, set_draggable_regions) - 800usize];
15926    ["Offset of field: _cef_window_t::get_window_handle"]
15927        [::std::mem::offset_of!(_cef_window_t, get_window_handle) - 808usize];
15928    ["Offset of field: _cef_window_t::send_key_press"]
15929        [::std::mem::offset_of!(_cef_window_t, send_key_press) - 816usize];
15930    ["Offset of field: _cef_window_t::send_mouse_move"]
15931        [::std::mem::offset_of!(_cef_window_t, send_mouse_move) - 824usize];
15932    ["Offset of field: _cef_window_t::send_mouse_events"]
15933        [::std::mem::offset_of!(_cef_window_t, send_mouse_events) - 832usize];
15934    ["Offset of field: _cef_window_t::set_accelerator"]
15935        [::std::mem::offset_of!(_cef_window_t, set_accelerator) - 840usize];
15936    ["Offset of field: _cef_window_t::remove_accelerator"]
15937        [::std::mem::offset_of!(_cef_window_t, remove_accelerator) - 848usize];
15938    ["Offset of field: _cef_window_t::remove_all_accelerators"]
15939        [::std::mem::offset_of!(_cef_window_t, remove_all_accelerators) - 856usize];
15940    ["Offset of field: _cef_window_t::set_theme_color"]
15941        [::std::mem::offset_of!(_cef_window_t, set_theme_color) - 864usize];
15942    ["Offset of field: _cef_window_t::theme_changed"]
15943        [::std::mem::offset_of!(_cef_window_t, theme_changed) - 872usize];
15944    ["Offset of field: _cef_window_t::get_runtime_style"]
15945        [::std::mem::offset_of!(_cef_window_t, get_runtime_style) - 880usize];
15946};
15947#[doc = "\n A Window is a top-level Window/widget in the Views hierarchy. By default it\n will have a non-client area with title bar, icon and buttons that supports\n moving and resizing. All size and position values are in density independent\n pixels (DIP) unless otherwise indicated. Methods must be called on the\n browser process UI thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
15948pub type cef_window_t = _cef_window_t;
15949unsafe extern "C" {
15950    #[doc = "\n Create a new Window.\n"]
15951    pub fn cef_window_create_top_level(delegate: *mut _cef_window_delegate_t) -> *mut cef_window_t;
15952}