Skip to main content

cef_dll_sys/bindings/
x86_64_unknown_linux_gnu.rs

1/* automatically generated by rust-bindgen 0.72.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_13500: i32 = 13500;
11pub const CEF_API_VERSION_13600: i32 = 13600;
12pub const CEF_API_VERSION_13601: i32 = 13601;
13pub const CEF_API_VERSION_13700: i32 = 13700;
14pub const CEF_API_VERSION_13800: i32 = 13800;
15pub const CEF_API_VERSION_13900: i32 = 13900;
16pub const CEF_API_VERSION_14000: i32 = 14000;
17pub const CEF_API_VERSION_14100: i32 = 14100;
18pub const CEF_API_VERSION_14200: i32 = 14200;
19pub const CEF_API_VERSION_14300: i32 = 14300;
20pub const CEF_API_VERSION_14400: i32 = 14400;
21pub const CEF_API_VERSION_14500: i32 = 14500;
22pub const CEF_API_VERSION_999998: i32 = 999998;
23pub const CEF_API_VERSION_999999: i32 = 999999;
24pub const CEF_API_VERSION_MIN: i32 = 13300;
25pub const CEF_API_VERSION_LAST: i32 = 14500;
26pub const CEF_API_VERSION_EXPERIMENTAL: i32 = 999999;
27pub const CEF_API_VERSION_NEXT: i32 = 999998;
28pub const CEF_API_VERSION: i32 = 999999;
29pub const CEF_VERSION: &[u8; 42] = b"145.0.28+g51162e8+chromium-145.0.7632.160\0";
30pub const CEF_VERSION_MAJOR: i32 = 145;
31pub const CEF_VERSION_MINOR: i32 = 0;
32pub const CEF_VERSION_PATCH: i32 = 28;
33pub const CHROME_VERSION_MAJOR: i32 = 145;
34pub const CHROME_VERSION_MINOR: i32 = 0;
35pub const CHROME_VERSION_BUILD: i32 = 7632;
36pub const CHROME_VERSION_PATCH: i32 = 160;
37pub type __uint16_t = ::std::os::raw::c_ushort;
38pub type __uint_least16_t = __uint16_t;
39pub type __pid_t = ::std::os::raw::c_int;
40pub type __time_t = ::std::os::raw::c_long;
41pub type pid_t = __pid_t;
42unsafe extern "C" {
43    #[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"]
44    pub fn cef_api_hash(
45        version: ::std::os::raw::c_int,
46        entry: ::std::os::raw::c_int,
47    ) -> *const ::std::os::raw::c_char;
48}
49unsafe extern "C" {
50    #[doc = "\n Returns the CEF API version that was configured by the first call to\n cef_api_hash().\n"]
51    pub fn cef_api_version() -> ::std::os::raw::c_int;
52}
53pub type wchar_t = ::std::os::raw::c_int;
54pub type char16_t = __uint_least16_t;
55#[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"]
56#[repr(C)]
57#[derive(Debug, Copy, Clone)]
58pub struct _cef_string_wide_t {
59    pub str_: *mut wchar_t,
60    pub length: usize,
61    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut wchar_t)>,
62}
63#[allow(clippy::unnecessary_operation, clippy::identity_op)]
64const _: () = {
65    ["Size of _cef_string_wide_t"][::std::mem::size_of::<_cef_string_wide_t>() - 24usize];
66    ["Alignment of _cef_string_wide_t"][::std::mem::align_of::<_cef_string_wide_t>() - 8usize];
67    ["Offset of field: _cef_string_wide_t::str_"]
68        [::std::mem::offset_of!(_cef_string_wide_t, str_) - 0usize];
69    ["Offset of field: _cef_string_wide_t::length"]
70        [::std::mem::offset_of!(_cef_string_wide_t, length) - 8usize];
71    ["Offset of field: _cef_string_wide_t::dtor"]
72        [::std::mem::offset_of!(_cef_string_wide_t, dtor) - 16usize];
73};
74#[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"]
75pub type cef_string_wide_t = _cef_string_wide_t;
76#[repr(C)]
77#[derive(Debug, Copy, Clone)]
78pub struct _cef_string_utf8_t {
79    pub str_: *mut ::std::os::raw::c_char,
80    pub length: usize,
81    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut ::std::os::raw::c_char)>,
82}
83#[allow(clippy::unnecessary_operation, clippy::identity_op)]
84const _: () = {
85    ["Size of _cef_string_utf8_t"][::std::mem::size_of::<_cef_string_utf8_t>() - 24usize];
86    ["Alignment of _cef_string_utf8_t"][::std::mem::align_of::<_cef_string_utf8_t>() - 8usize];
87    ["Offset of field: _cef_string_utf8_t::str_"]
88        [::std::mem::offset_of!(_cef_string_utf8_t, str_) - 0usize];
89    ["Offset of field: _cef_string_utf8_t::length"]
90        [::std::mem::offset_of!(_cef_string_utf8_t, length) - 8usize];
91    ["Offset of field: _cef_string_utf8_t::dtor"]
92        [::std::mem::offset_of!(_cef_string_utf8_t, dtor) - 16usize];
93};
94pub type cef_string_utf8_t = _cef_string_utf8_t;
95#[repr(C)]
96#[derive(Debug, Copy, Clone)]
97pub struct _cef_string_utf16_t {
98    pub str_: *mut char16_t,
99    pub length: usize,
100    pub dtor: ::std::option::Option<unsafe extern "C" fn(str_: *mut char16_t)>,
101}
102#[allow(clippy::unnecessary_operation, clippy::identity_op)]
103const _: () = {
104    ["Size of _cef_string_utf16_t"][::std::mem::size_of::<_cef_string_utf16_t>() - 24usize];
105    ["Alignment of _cef_string_utf16_t"][::std::mem::align_of::<_cef_string_utf16_t>() - 8usize];
106    ["Offset of field: _cef_string_utf16_t::str_"]
107        [::std::mem::offset_of!(_cef_string_utf16_t, str_) - 0usize];
108    ["Offset of field: _cef_string_utf16_t::length"]
109        [::std::mem::offset_of!(_cef_string_utf16_t, length) - 8usize];
110    ["Offset of field: _cef_string_utf16_t::dtor"]
111        [::std::mem::offset_of!(_cef_string_utf16_t, dtor) - 16usize];
112};
113pub type cef_string_utf16_t = _cef_string_utf16_t;
114unsafe extern "C" {
115    #[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"]
116    pub fn cef_string_wide_set(
117        src: *const wchar_t,
118        src_len: usize,
119        output: *mut cef_string_wide_t,
120        copy: ::std::os::raw::c_int,
121    ) -> ::std::os::raw::c_int;
122}
123unsafe extern "C" {
124    pub fn cef_string_utf8_set(
125        src: *const ::std::os::raw::c_char,
126        src_len: usize,
127        output: *mut cef_string_utf8_t,
128        copy: ::std::os::raw::c_int,
129    ) -> ::std::os::raw::c_int;
130}
131unsafe extern "C" {
132    pub fn cef_string_utf16_set(
133        src: *const char16_t,
134        src_len: usize,
135        output: *mut cef_string_utf16_t,
136        copy: ::std::os::raw::c_int,
137    ) -> ::std::os::raw::c_int;
138}
139unsafe extern "C" {
140    #[doc = "\n These functions clear string values. The structure itself is not freed.\n"]
141    pub fn cef_string_wide_clear(str_: *mut cef_string_wide_t);
142}
143unsafe extern "C" {
144    pub fn cef_string_utf8_clear(str_: *mut cef_string_utf8_t);
145}
146unsafe extern "C" {
147    pub fn cef_string_utf16_clear(str_: *mut cef_string_utf16_t);
148}
149unsafe extern "C" {
150    #[doc = "\n These functions compare two string values with the same results as strcmp().\n"]
151    pub fn cef_string_wide_cmp(
152        str1: *const cef_string_wide_t,
153        str2: *const cef_string_wide_t,
154    ) -> ::std::os::raw::c_int;
155}
156unsafe extern "C" {
157    pub fn cef_string_utf8_cmp(
158        str1: *const cef_string_utf8_t,
159        str2: *const cef_string_utf8_t,
160    ) -> ::std::os::raw::c_int;
161}
162unsafe extern "C" {
163    pub fn cef_string_utf16_cmp(
164        str1: *const cef_string_utf16_t,
165        str2: *const cef_string_utf16_t,
166    ) -> ::std::os::raw::c_int;
167}
168unsafe extern "C" {
169    #[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"]
170    pub fn cef_string_wide_to_utf8(
171        src: *const wchar_t,
172        src_len: usize,
173        output: *mut cef_string_utf8_t,
174    ) -> ::std::os::raw::c_int;
175}
176unsafe extern "C" {
177    pub fn cef_string_utf8_to_wide(
178        src: *const ::std::os::raw::c_char,
179        src_len: usize,
180        output: *mut cef_string_wide_t,
181    ) -> ::std::os::raw::c_int;
182}
183unsafe extern "C" {
184    pub fn cef_string_wide_to_utf16(
185        src: *const wchar_t,
186        src_len: usize,
187        output: *mut cef_string_utf16_t,
188    ) -> ::std::os::raw::c_int;
189}
190unsafe extern "C" {
191    pub fn cef_string_utf16_to_wide(
192        src: *const char16_t,
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_utf8_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}
204unsafe extern "C" {
205    pub fn cef_string_utf16_to_utf8(
206        src: *const char16_t,
207        src_len: usize,
208        output: *mut cef_string_utf8_t,
209    ) -> ::std::os::raw::c_int;
210}
211unsafe extern "C" {
212    #[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"]
213    pub fn cef_string_ascii_to_wide(
214        src: *const ::std::os::raw::c_char,
215        src_len: usize,
216        output: *mut cef_string_wide_t,
217    ) -> ::std::os::raw::c_int;
218}
219unsafe extern "C" {
220    pub fn cef_string_ascii_to_utf16(
221        src: *const ::std::os::raw::c_char,
222        src_len: usize,
223        output: *mut cef_string_utf16_t,
224    ) -> ::std::os::raw::c_int;
225}
226#[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"]
227pub type cef_string_userfree_wide_t = *mut cef_string_wide_t;
228pub type cef_string_userfree_utf8_t = *mut cef_string_utf8_t;
229pub type cef_string_userfree_utf16_t = *mut cef_string_utf16_t;
230unsafe extern "C" {
231    #[doc = "\n These functions allocate a new string structure. They must be freed by\n calling the associated free function.\n"]
232    pub fn cef_string_userfree_wide_alloc() -> cef_string_userfree_wide_t;
233}
234unsafe extern "C" {
235    pub fn cef_string_userfree_utf8_alloc() -> cef_string_userfree_utf8_t;
236}
237unsafe extern "C" {
238    pub fn cef_string_userfree_utf16_alloc() -> cef_string_userfree_utf16_t;
239}
240unsafe extern "C" {
241    #[doc = "\n These functions free the string structure allocated by the associated\n alloc function. Any string contents will first be cleared.\n"]
242    pub fn cef_string_userfree_wide_free(str_: cef_string_userfree_wide_t);
243}
244unsafe extern "C" {
245    pub fn cef_string_userfree_utf8_free(str_: cef_string_userfree_utf8_t);
246}
247unsafe extern "C" {
248    pub fn cef_string_userfree_utf16_free(str_: cef_string_userfree_utf16_t);
249}
250unsafe extern "C" {
251    #[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"]
252    pub fn cef_string_utf16_to_lower(
253        src: *const char16_t,
254        src_len: usize,
255        output: *mut cef_string_utf16_t,
256    ) -> ::std::os::raw::c_int;
257}
258unsafe extern "C" {
259    pub fn cef_string_utf16_to_upper(
260        src: *const char16_t,
261        src_len: usize,
262        output: *mut cef_string_utf16_t,
263    ) -> ::std::os::raw::c_int;
264}
265pub type cef_char_t = char16_t;
266pub type cef_string_userfree_t = cef_string_userfree_utf16_t;
267pub type cef_string_t = cef_string_utf16_t;
268#[repr(C)]
269#[derive(Debug, Copy, Clone)]
270pub struct _cef_string_list_t {
271    _unused: [u8; 0],
272}
273#[doc = "\n CEF string maps are a set of key/value string pairs.\n"]
274pub type cef_string_list_t = *mut _cef_string_list_t;
275unsafe extern "C" {
276    #[doc = "\n Allocate a new string map.\n"]
277    pub fn cef_string_list_alloc() -> cef_string_list_t;
278}
279unsafe extern "C" {
280    #[doc = "\n Return the number of elements in the string list.\n"]
281    pub fn cef_string_list_size(list: cef_string_list_t) -> usize;
282}
283unsafe extern "C" {
284    #[doc = "\n Retrieve the value at the specified zero-based string list index. Returns\n true (1) if the value was successfully retrieved.\n"]
285    pub fn cef_string_list_value(
286        list: cef_string_list_t,
287        index: usize,
288        value: *mut cef_string_t,
289    ) -> ::std::os::raw::c_int;
290}
291unsafe extern "C" {
292    #[doc = "\n Append a new value at the end of the string list.\n"]
293    pub fn cef_string_list_append(list: cef_string_list_t, value: *const cef_string_t);
294}
295unsafe extern "C" {
296    #[doc = "\n Clear the string list.\n"]
297    pub fn cef_string_list_clear(list: cef_string_list_t);
298}
299unsafe extern "C" {
300    #[doc = "\n Free the string list.\n"]
301    pub fn cef_string_list_free(list: cef_string_list_t);
302}
303unsafe extern "C" {
304    #[doc = "\n Creates a copy of an existing string list.\n"]
305    pub fn cef_string_list_copy(list: cef_string_list_t) -> cef_string_list_t;
306}
307#[repr(C)]
308#[derive(Debug, Copy, Clone)]
309pub struct _cef_string_map_t {
310    _unused: [u8; 0],
311}
312#[doc = "\n CEF string maps are a set of key/value string pairs.\n"]
313pub type cef_string_map_t = *mut _cef_string_map_t;
314unsafe extern "C" {
315    #[doc = "\n Allocate a new string map.\n"]
316    pub fn cef_string_map_alloc() -> cef_string_map_t;
317}
318unsafe extern "C" {
319    #[doc = "\n Return the number of elements in the string map.\n"]
320    pub fn cef_string_map_size(map: cef_string_map_t) -> usize;
321}
322unsafe extern "C" {
323    #[doc = "\n Return the value assigned to the specified key.\n"]
324    pub fn cef_string_map_find(
325        map: cef_string_map_t,
326        key: *const cef_string_t,
327        value: *mut cef_string_t,
328    ) -> ::std::os::raw::c_int;
329}
330unsafe extern "C" {
331    #[doc = "\n Return the key at the specified zero-based string map index.\n"]
332    pub fn cef_string_map_key(
333        map: cef_string_map_t,
334        index: usize,
335        key: *mut cef_string_t,
336    ) -> ::std::os::raw::c_int;
337}
338unsafe extern "C" {
339    #[doc = "\n Return the value at the specified zero-based string map index.\n"]
340    pub fn cef_string_map_value(
341        map: cef_string_map_t,
342        index: usize,
343        value: *mut cef_string_t,
344    ) -> ::std::os::raw::c_int;
345}
346unsafe extern "C" {
347    #[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"]
348    pub fn cef_string_map_append(
349        map: cef_string_map_t,
350        key: *const cef_string_t,
351        value: *const cef_string_t,
352    ) -> ::std::os::raw::c_int;
353}
354unsafe extern "C" {
355    #[doc = "\n Clear the string map.\n"]
356    pub fn cef_string_map_clear(map: cef_string_map_t);
357}
358unsafe extern "C" {
359    #[doc = "\n Free the string map.\n"]
360    pub fn cef_string_map_free(map: cef_string_map_t);
361}
362#[repr(C)]
363#[derive(Debug, Copy, Clone)]
364pub struct _cef_string_multimap_t {
365    _unused: [u8; 0],
366}
367#[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"]
368pub type cef_string_multimap_t = *mut _cef_string_multimap_t;
369unsafe extern "C" {
370    #[doc = "\n Allocate a new string multimap.\n"]
371    pub fn cef_string_multimap_alloc() -> cef_string_multimap_t;
372}
373unsafe extern "C" {
374    #[doc = "\n Return the number of elements in the string multimap.\n"]
375    pub fn cef_string_multimap_size(map: cef_string_multimap_t) -> usize;
376}
377unsafe extern "C" {
378    #[doc = "\n Return the number of values with the specified key.\n"]
379    pub fn cef_string_multimap_find_count(
380        map: cef_string_multimap_t,
381        key: *const cef_string_t,
382    ) -> usize;
383}
384unsafe extern "C" {
385    #[doc = "\n Return the value_index-th value with the specified key.\n"]
386    pub fn cef_string_multimap_enumerate(
387        map: cef_string_multimap_t,
388        key: *const cef_string_t,
389        value_index: usize,
390        value: *mut cef_string_t,
391    ) -> ::std::os::raw::c_int;
392}
393unsafe extern "C" {
394    #[doc = "\n Return the key at the specified zero-based string multimap index.\n"]
395    pub fn cef_string_multimap_key(
396        map: cef_string_multimap_t,
397        index: usize,
398        key: *mut cef_string_t,
399    ) -> ::std::os::raw::c_int;
400}
401unsafe extern "C" {
402    #[doc = "\n Return the value at the specified zero-based string multimap index.\n"]
403    pub fn cef_string_multimap_value(
404        map: cef_string_multimap_t,
405        index: usize,
406        value: *mut cef_string_t,
407    ) -> ::std::os::raw::c_int;
408}
409unsafe extern "C" {
410    #[doc = "\n Append a new key/value pair at the end of the string multimap.\n"]
411    pub fn cef_string_multimap_append(
412        map: cef_string_multimap_t,
413        key: *const cef_string_t,
414        value: *const cef_string_t,
415    ) -> ::std::os::raw::c_int;
416}
417unsafe extern "C" {
418    #[doc = "\n Clear the string multimap.\n"]
419    pub fn cef_string_multimap_clear(map: cef_string_multimap_t);
420}
421unsafe extern "C" {
422    #[doc = "\n Free the string multimap.\n"]
423    pub fn cef_string_multimap_free(map: cef_string_multimap_t);
424}
425pub type time_t = __time_t;
426#[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"]
427#[repr(C)]
428#[derive(Debug, Copy, Clone)]
429pub struct _cef_basetime_t {
430    pub val: i64,
431}
432#[allow(clippy::unnecessary_operation, clippy::identity_op)]
433const _: () = {
434    ["Size of _cef_basetime_t"][::std::mem::size_of::<_cef_basetime_t>() - 8usize];
435    ["Alignment of _cef_basetime_t"][::std::mem::align_of::<_cef_basetime_t>() - 8usize];
436    ["Offset of field: _cef_basetime_t::val"]
437        [::std::mem::offset_of!(_cef_basetime_t, val) - 0usize];
438};
439#[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"]
440pub type cef_basetime_t = _cef_basetime_t;
441#[doc = "\n Time information. Values should always be in UTC.\n"]
442#[repr(C)]
443#[derive(Debug, Copy, Clone)]
444pub struct _cef_time_t {
445    #[doc = "\n Four or five digit year \"2007\" (1601 to 30827 on Windows, 1970 to 2038 on\n 32-bit POSIX)\n"]
446    pub year: ::std::os::raw::c_int,
447    #[doc = "\n 1-based month (values 1 = January, etc.)\n"]
448    pub month: ::std::os::raw::c_int,
449    #[doc = "\n 0-based day of week (0 = Sunday, etc.)\n"]
450    pub day_of_week: ::std::os::raw::c_int,
451    #[doc = "\n 1-based day of month (1-31)\n"]
452    pub day_of_month: ::std::os::raw::c_int,
453    #[doc = "\n Hour within the current day (0-23)\n"]
454    pub hour: ::std::os::raw::c_int,
455    #[doc = "\n Minute within the current hour (0-59)\n"]
456    pub minute: ::std::os::raw::c_int,
457    #[doc = "\n Second within the current minute (0-59 plus leap seconds which may take\n it up to 60).\n"]
458    pub second: ::std::os::raw::c_int,
459    #[doc = "\n Milliseconds within the current second (0-999)\n"]
460    pub millisecond: ::std::os::raw::c_int,
461}
462#[allow(clippy::unnecessary_operation, clippy::identity_op)]
463const _: () = {
464    ["Size of _cef_time_t"][::std::mem::size_of::<_cef_time_t>() - 32usize];
465    ["Alignment of _cef_time_t"][::std::mem::align_of::<_cef_time_t>() - 4usize];
466    ["Offset of field: _cef_time_t::year"][::std::mem::offset_of!(_cef_time_t, year) - 0usize];
467    ["Offset of field: _cef_time_t::month"][::std::mem::offset_of!(_cef_time_t, month) - 4usize];
468    ["Offset of field: _cef_time_t::day_of_week"]
469        [::std::mem::offset_of!(_cef_time_t, day_of_week) - 8usize];
470    ["Offset of field: _cef_time_t::day_of_month"]
471        [::std::mem::offset_of!(_cef_time_t, day_of_month) - 12usize];
472    ["Offset of field: _cef_time_t::hour"][::std::mem::offset_of!(_cef_time_t, hour) - 16usize];
473    ["Offset of field: _cef_time_t::minute"][::std::mem::offset_of!(_cef_time_t, minute) - 20usize];
474    ["Offset of field: _cef_time_t::second"][::std::mem::offset_of!(_cef_time_t, second) - 24usize];
475    ["Offset of field: _cef_time_t::millisecond"]
476        [::std::mem::offset_of!(_cef_time_t, millisecond) - 28usize];
477};
478#[doc = "\n Time information. Values should always be in UTC.\n"]
479pub type cef_time_t = _cef_time_t;
480unsafe extern "C" {
481    #[doc = "\n Converts cef_time_t to/from time_t. Returns true (1) on success and false\n (0) on failure.\n"]
482    pub fn cef_time_to_timet(
483        cef_time: *const cef_time_t,
484        time: *mut time_t,
485    ) -> ::std::os::raw::c_int;
486}
487unsafe extern "C" {
488    pub fn cef_time_from_timet(time: time_t, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
489}
490unsafe extern "C" {
491    #[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"]
492    pub fn cef_time_to_doublet(
493        cef_time: *const cef_time_t,
494        time: *mut f64,
495    ) -> ::std::os::raw::c_int;
496}
497unsafe extern "C" {
498    pub fn cef_time_from_doublet(time: f64, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
499}
500unsafe extern "C" {
501    #[doc = "\n Retrieve the current system time. Returns true (1) on success and false (0)\n on failure.\n"]
502    pub fn cef_time_now(cef_time: *mut cef_time_t) -> ::std::os::raw::c_int;
503}
504unsafe extern "C" {
505    #[doc = "\n Retrieve the current system time.\n"]
506    pub fn cef_basetime_now() -> cef_basetime_t;
507}
508unsafe extern "C" {
509    #[doc = "\n Retrieve the delta in milliseconds between two time values. Returns true (1)\n on success and false (0) on failure."]
510    pub fn cef_time_delta(
511        cef_time1: *const cef_time_t,
512        cef_time2: *const cef_time_t,
513        delta: *mut ::std::os::raw::c_longlong,
514    ) -> ::std::os::raw::c_int;
515}
516unsafe extern "C" {
517    #[doc = "\n Converts cef_time_t to cef_basetime_t. Returns true (1) on success and\n false (0) on failure.\n"]
518    pub fn cef_time_to_basetime(
519        from: *const cef_time_t,
520        to: *mut cef_basetime_t,
521    ) -> ::std::os::raw::c_int;
522}
523unsafe extern "C" {
524    #[doc = "\n Converts cef_basetime_t to cef_time_t. Returns true (1) on success and\n false (0) on failure.\n"]
525    pub fn cef_time_from_basetime(
526        from: cef_basetime_t,
527        to: *mut cef_time_t,
528    ) -> ::std::os::raw::c_int;
529}
530#[repr(u32)]
531#[non_exhaustive]
532#[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"]
533#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
534pub enum cef_content_setting_types_t {
535    #[doc = " This setting governs whether cookies are enabled by the user in the\n 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."]
536    CEF_CONTENT_SETTING_TYPE_COOKIES = 0,
537    #[doc = " This setting governs whether cookies are enabled by the user in the\n 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."]
538    CEF_CONTENT_SETTING_TYPE_IMAGES = 1,
539    #[doc = " This setting governs whether cookies are enabled by the user in the\n 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."]
540    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT = 2,
541    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
542    CEF_CONTENT_SETTING_TYPE_POPUPS = 3,
543    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
544    CEF_CONTENT_SETTING_TYPE_GEOLOCATION = 4,
545    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
546    CEF_CONTENT_SETTING_TYPE_NOTIFICATIONS = 5,
547    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
548    CEF_CONTENT_SETTING_TYPE_AUTO_SELECT_CERTIFICATE = 6,
549    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
550    CEF_CONTENT_SETTING_TYPE_MIXEDSCRIPT = 7,
551    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
552    CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_MIC = 8,
553    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
554    CEF_CONTENT_SETTING_TYPE_MEDIASTREAM_CAMERA = 9,
555    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
556    CEF_CONTENT_SETTING_TYPE_PROTOCOL_HANDLERS = 10,
557    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
558    CEF_CONTENT_SETTING_TYPE_DEPRECATED_PPAPI_BROKER = 11,
559    #[doc = " This setting governs both popups and unwanted redirects like tab-unders\n and framebusting."]
560    CEF_CONTENT_SETTING_TYPE_AUTOMATIC_DOWNLOADS = 12,
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_MIDI_SYSEX = 13,
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_SSL_CERT_DECISIONS = 14,
565    #[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."]
566    CEF_CONTENT_SETTING_TYPE_PROTECTED_MEDIA_IDENTIFIER = 15,
567    #[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."]
568    CEF_CONTENT_SETTING_TYPE_APP_BANNER = 16,
569    #[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."]
570    CEF_CONTENT_SETTING_TYPE_SITE_ENGAGEMENT = 17,
571    #[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."]
572    CEF_CONTENT_SETTING_TYPE_DURABLE_STORAGE = 18,
573    #[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."]
574    CEF_CONTENT_SETTING_TYPE_USB_CHOOSER_DATA = 19,
575    #[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."]
576    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_GUARD = 20,
577    #[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."]
578    CEF_CONTENT_SETTING_TYPE_BACKGROUND_SYNC = 21,
579    #[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."]
580    CEF_CONTENT_SETTING_TYPE_AUTOPLAY = 22,
581    #[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."]
582    CEF_CONTENT_SETTING_TYPE_IMPORTANT_SITE_INFO = 23,
583    #[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."]
584    CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOBLOCKER_DATA = 24,
585    #[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."]
586    CEF_CONTENT_SETTING_TYPE_ADS = 25,
587    #[doc = " Website setting which stores metadata for the subresource filter to aid in\n decisions for whether or not to show the UI."]
588    CEF_CONTENT_SETTING_TYPE_ADS_DATA = 26,
589    #[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."]
590    CEF_CONTENT_SETTING_TYPE_MIDI = 27,
591    #[doc = " This content setting type is for caching password protection service's\n verdicts of each origin."]
592    CEF_CONTENT_SETTING_TYPE_PASSWORD_PROTECTION = 28,
593    #[doc = " Website setting which stores engagement data for media related to a\n specific origin."]
594    CEF_CONTENT_SETTING_TYPE_MEDIA_ENGAGEMENT = 29,
595    #[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."]
596    CEF_CONTENT_SETTING_TYPE_SOUND = 30,
597    #[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."]
598    CEF_CONTENT_SETTING_TYPE_CLIENT_HINTS = 31,
599    #[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."]
600    CEF_CONTENT_SETTING_TYPE_SENSORS = 32,
601    #[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."]
602    CEF_CONTENT_SETTING_TYPE_DEPRECATED_ACCESSIBILITY_EVENTS = 33,
603    #[doc = " Used to store whether to allow a website to install a payment handler."]
604    CEF_CONTENT_SETTING_TYPE_PAYMENT_HANDLER = 34,
605    #[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."]
606    CEF_CONTENT_SETTING_TYPE_USB_GUARD = 35,
607    #[doc = " Nothing is stored in this setting at present. Please refer to\n BackgroundFetchPermissionContext for details on how this permission\n is ascertained."]
608    CEF_CONTENT_SETTING_TYPE_BACKGROUND_FETCH = 36,
609    #[doc = " Website setting which stores the amount of times the user has dismissed\n intent picker UI without explicitly choosing an option."]
610    CEF_CONTENT_SETTING_TYPE_INTENT_PICKER_DISPLAY = 37,
611    #[doc = " Used to store whether to allow a website to detect user active/idle state."]
612    CEF_CONTENT_SETTING_TYPE_IDLE_DETECTION = 38,
613    #[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."]
614    CEF_CONTENT_SETTING_TYPE_SERIAL_GUARD = 39,
615    #[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."]
616    CEF_CONTENT_SETTING_TYPE_SERIAL_CHOOSER_DATA = 40,
617    #[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."]
618    CEF_CONTENT_SETTING_TYPE_PERIODIC_BACKGROUND_SYNC = 41,
619    #[doc = " Content setting which stores whether to allow sites to ask for permission\n to do Bluetooth scanning."]
620    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_SCANNING = 42,
621    #[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."]
622    CEF_CONTENT_SETTING_TYPE_HID_GUARD = 43,
623    #[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."]
624    CEF_CONTENT_SETTING_TYPE_HID_CHOOSER_DATA = 44,
625    #[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."]
626    CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SCREEN = 45,
627    #[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."]
628    CEF_CONTENT_SETTING_TYPE_WAKE_LOCK_SYSTEM = 46,
629    #[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."]
630    CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_ACCESS = 47,
631    #[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."]
632    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_WRITE_GUARD = 48,
633    #[doc = " Used to store whether to allow a website to exchange data with NFC\n devices."]
634    CEF_CONTENT_SETTING_TYPE_NFC = 49,
635    #[doc = " Website setting to store permissions granted to access particular\n Bluetooth devices."]
636    CEF_CONTENT_SETTING_TYPE_BLUETOOTH_CHOOSER_DATA = 50,
637    #[doc = " Full access to the system clipboard (sanitized read without user gesture,\n and unsanitized read and write with user gesture)."]
638    CEF_CONTENT_SETTING_TYPE_CLIPBOARD_READ_WRITE = 51,
639    #[doc = " This is special-cased in the permissions layer to always allow, and as\n such doesn't have associated prefs data."]
640    CEF_CONTENT_SETTING_TYPE_CLIPBOARD_SANITIZED_WRITE = 52,
641    #[doc = " This content setting type is for caching safe browsing real time url\n check's verdicts of each origin."]
642    CEF_CONTENT_SETTING_TYPE_SAFE_BROWSING_URL_CHECK_DATA = 53,
643    #[doc = " Used to store whether a site is allowed to request AR or VR sessions with\n the WebXr Device API."]
644    CEF_CONTENT_SETTING_TYPE_VR = 54,
645    #[doc = " Used to store whether a site is allowed to request AR or VR sessions with\n the WebXr Device API."]
646    CEF_CONTENT_SETTING_TYPE_AR = 55,
647    #[doc = " Content setting which stores whether to allow site to open and read files\n and directories selected through the File System Access API."]
648    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_READ_GUARD = 56,
649    #[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."]
650    CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS = 57,
651    #[doc = " Content setting which stores whether to allow a site to control camera\n movements. It does not give access to camera."]
652    CEF_CONTENT_SETTING_TYPE_CAMERA_PAN_TILT_ZOOM = 58,
653    #[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"]
654    CEF_CONTENT_SETTING_TYPE_WINDOW_MANAGEMENT = 59,
655    CEF_CONTENT_SETTING_TYPE_INSECURE_PRIVATE_NETWORK_DEPRECATED = 60,
656    #[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."]
657    CEF_CONTENT_SETTING_TYPE_LOCAL_FONTS = 61,
658    #[doc = " Stores per-origin state for permission auto-revocation (for all permission\n types)."]
659    CEF_CONTENT_SETTING_TYPE_PERMISSION_AUTOREVOCATION_DATA = 62,
660    #[doc = " Stores per-origin state of the most recently selected directory for the\n use by the File System Access API."]
661    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_LAST_PICKED_DIRECTORY = 63,
662    #[doc = " Controls access to the getDisplayMedia API."]
663    CEF_CONTENT_SETTING_TYPE_DISPLAY_CAPTURE = 64,
664    #[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."]
665    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_CHOOSER_DATA = 65,
666    #[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."]
667    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_SHARING = 66,
668    #[doc = " Whether to use the v8 optimized JIT for running JavaScript on the page."]
669    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_JIT = 67,
670    #[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."]
671    CEF_CONTENT_SETTING_TYPE_HTTP_ALLOWED = 68,
672    #[doc = " Stores metadata related to form fill, such as e.g. whether user data was\n autofilled on a specific website."]
673    CEF_CONTENT_SETTING_TYPE_FORMFILL_METADATA = 69,
674    #[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."]
675    CEF_CONTENT_SETTING_TYPE_DEPRECATED_FEDERATED_IDENTITY_ACTIVE_SESSION = 70,
676    #[doc = " Setting to indicate whether Chrome should automatically apply darkening to\n web content."]
677    CEF_CONTENT_SETTING_TYPE_AUTO_DARK_WEB_CONTENT = 71,
678    #[doc = " Setting to indicate whether Chrome should request the desktop view of a\n site instead of the mobile one."]
679    CEF_CONTENT_SETTING_TYPE_REQUEST_DESKTOP_SITE = 72,
680    #[doc = " Setting to indicate whether browser should allow signing into a website\n via the browser FedCM API."]
681    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_API = 73,
682    #[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."]
683    CEF_CONTENT_SETTING_TYPE_NOTIFICATION_INTERACTIONS = 74,
684    #[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."]
685    CEF_CONTENT_SETTING_TYPE_REDUCED_ACCEPT_LANGUAGE = 75,
686    #[doc = " Website setting which is used for NotificationPermissionReviewService to\n store origin blocklist from review notification permissions feature."]
687    CEF_CONTENT_SETTING_TYPE_NOTIFICATION_PERMISSION_REVIEW = 76,
688    CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_GUARD_DEPRECATED = 77,
689    CEF_CONTENT_SETTING_TYPE_PRIVATE_NETWORK_CHOOSER_DATA_DEPRECATED = 78,
690    #[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."]
691    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_SIGNIN_STATUS = 79,
692    #[doc = " Website setting which is used for RevokedPermissionsService to\n store revoked permissions of unused sites from unused site permissions\n feature."]
693    CEF_CONTENT_SETTING_TYPE_REVOKED_UNUSED_SITE_PERMISSIONS = 80,
694    #[doc = " Similar to STORAGE_ACCESS, but applicable at the page-level rather than\n being specific to a frame."]
695    CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_STORAGE_ACCESS = 81,
696    #[doc = " Setting to indicate whether user has opted in to allowing auto re-authn\n via the FedCM API."]
697    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_AUTO_REAUTHN_PERMISSION = 82,
698    #[doc = " Website setting which stores whether the user has explicitly registered\n a website as an identity-provider."]
699    CEF_CONTENT_SETTING_TYPE_FEDERATED_IDENTITY_IDENTITY_PROVIDER_REGISTRATION = 83,
700    #[doc = " Content setting which is used to indicate whether anti-abuse functionality\n should be enabled."]
701    CEF_CONTENT_SETTING_TYPE_ANTI_ABUSE = 84,
702    #[doc = " Content setting used to indicate whether third-party storage partitioning\n should be enabled."]
703    CEF_CONTENT_SETTING_TYPE_THIRD_PARTY_STORAGE_PARTITIONING = 85,
704    #[doc = " Used to indicate whether HTTPS-First Mode is enabled on the hostname."]
705    CEF_CONTENT_SETTING_TYPE_HTTPS_ENFORCED = 86,
706    #[doc = " Setting for enabling the `getAllScreensMedia` API. Spec link:\n https://github.com/screen-share/capture-all-screens"]
707    CEF_CONTENT_SETTING_TYPE_ALL_SCREEN_CAPTURE = 87,
708    #[doc = " Stores per origin metadata for cookie controls."]
709    CEF_CONTENT_SETTING_TYPE_COOKIE_CONTROLS_METADATA = 88,
710    #[doc = " Content Setting for temporary 3PC accesses granted by user behavior\n heuristics."]
711    CEF_CONTENT_SETTING_TYPE_TPCD_HEURISTICS_GRANTS = 89,
712    #[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."]
713    CEF_CONTENT_SETTING_TYPE_TPCD_METADATA_GRANTS = 90,
714    CEF_CONTENT_SETTING_TYPE_TPCD_TRIAL_DEPRECATED = 91,
715    CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_TRIAL_DEPRECATED = 92,
716    CEF_CONTENT_SETTING_TYPE_TOP_LEVEL_TPCD_ORIGIN_TRIAL_DEPRECATED = 93,
717    #[doc = " Content setting used to indicate whether entering picture-in-picture\n automatically should be enabled."]
718    CEF_CONTENT_SETTING_TYPE_AUTO_PICTURE_IN_PICTURE = 94,
719    #[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."]
720    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION = 95,
721    #[doc = " Whether the FSA Persistent Permissions restore prompt is eligible to be\n shown to the user, for a given origin."]
722    CEF_CONTENT_SETTING_TYPE_FILE_SYSTEM_ACCESS_RESTORE_PERMISSION = 96,
723    #[doc = " Whether an application capturing another tab, may scroll and zoom\n the captured tab."]
724    CEF_CONTENT_SETTING_TYPE_CAPTURED_SURFACE_CONTROL = 97,
725    #[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."]
726    CEF_CONTENT_SETTING_TYPE_SMART_CARD_GUARD = 98,
727    #[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."]
728    CEF_CONTENT_SETTING_TYPE_SMART_CARD_DATA = 99,
729    #[doc = " Content settings for access to printers for the Web Printing API."]
730    CEF_CONTENT_SETTING_TYPE_WEB_PRINTING = 100,
731    #[doc = " Content setting used to indicate whether entering HTML Fullscreen\n automatically (i.e. without transient activation) should be enabled."]
732    CEF_CONTENT_SETTING_TYPE_AUTOMATIC_FULLSCREEN = 101,
733    #[doc = " Content settings used to indicate that a web app is allowed to prompt the\n user for the installation of sub apps."]
734    CEF_CONTENT_SETTING_TYPE_SUB_APP_INSTALLATION_PROMPTS = 102,
735    #[doc = " Whether an application can enumerate audio output device."]
736    CEF_CONTENT_SETTING_TYPE_SPEAKER_SELECTION = 103,
737    #[doc = " Content settings for access to the Direct Sockets API."]
738    CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS = 104,
739    #[doc = " Keyboard Lock API allows a site to capture keyboard inputs that would\n otherwise be handled by the OS or the browser."]
740    CEF_CONTENT_SETTING_TYPE_KEYBOARD_LOCK = 105,
741    #[doc = " Pointer Lock API allows a site to hide the cursor and have exclusive\n access to mouse inputs."]
742    CEF_CONTENT_SETTING_TYPE_POINTER_LOCK = 106,
743    #[doc = " Website setting which is used for RevokedPermissionsService to store\n auto-revoked notification permissions from abusive sites."]
744    CEF_CONTENT_SETTING_TYPE_REVOKED_ABUSIVE_NOTIFICATION_PERMISSIONS = 107,
745    #[doc = " Content setting that controls tracking protection status per site.\n BLOCK: Protections enabled. This is the default state.\n ALLOW: Protections disabled."]
746    CEF_CONTENT_SETTING_TYPE_TRACKING_PROTECTION = 108,
747    #[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."]
748    CEF_CONTENT_SETTING_TYPE_DISPLAY_MEDIA_SYSTEM_AUDIO = 109,
749    #[doc = " Whether to use the higher-tier v8 optimizers for running JavaScript on the\n page."]
750    CEF_CONTENT_SETTING_TYPE_JAVASCRIPT_OPTIMIZER = 110,
751    #[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."]
752    CEF_CONTENT_SETTING_TYPE_STORAGE_ACCESS_HEADER_ORIGIN_TRIAL = 111,
753    #[doc = " Whether or not sites can request Hand Tracking data within WebXR Sessions."]
754    CEF_CONTENT_SETTING_TYPE_HAND_TRACKING = 112,
755    #[doc = " Website setting to indicate whether user has opted in to allow web apps to\n install other web apps."]
756    CEF_CONTENT_SETTING_TYPE_WEB_APP_INSTALLATION = 113,
757    #[doc = " Content settings for private network access in the context of the\n Direct Sockets API."]
758    CEF_CONTENT_SETTING_TYPE_DIRECT_SOCKETS_PRIVATE_NETWORK_ACCESS = 114,
759    #[doc = " Content settings for legacy cookie scope.\n Checks whether cookies scope is handled according to origin-bound cookies\n or legacy behavior."]
760    CEF_CONTENT_SETTING_TYPE_LEGACY_COOKIE_SCOPE = 115,
761    #[doc = " Website setting to indicate whether the user has allowlisted suspicious\n notifications for the origin."]
762    CEF_CONTENT_SETTING_TYPE_ARE_SUSPICIOUS_NOTIFICATIONS_ALLOWLISTED_BY_USER = 116,
763    #[doc = " Content settings for access to the Controlled Frame API."]
764    CEF_CONTENT_SETTING_TYPE_CONTROLLED_FRAME = 117,
765    #[doc = " Website setting which is used for RevokedPermissionsService to\n store revoked notification permissions of disruptive sites."]
766    CEF_CONTENT_SETTING_TYPE_REVOKED_DISRUPTIVE_NOTIFICATION_PERMISSIONS = 118,
767    #[doc = " Content setting for whether the site is allowed to make local network\n requests."]
768    CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK_ACCESS = 119,
769    #[doc = " Stores information on-device language packs for which a site has\n installed using the Web Speech API."]
770    CEF_CONTENT_SETTING_TYPE_ON_DEVICE_SPEECH_RECOGNITION_LANGUAGES_DOWNLOADED = 120,
771    #[doc = " Stores which Translator API language packs the site has initialized."]
772    CEF_CONTENT_SETTING_TYPE_INITIALIZED_TRANSLATIONS = 121,
773    #[doc = " Stores a list of notification ids where content detection found the\n notification to be suspicious and a warning has already been shown for the\n site. Used for recovering notification contents from the database if the\n user decides they would like to see all of these notifications."]
774    CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_IDS = 122,
775    #[doc = " To support approximate geolocation, the permission is migrating to use\n permissions with options, which won't be stored as ContentSettings. Upon\n launch of the feature, GEOLOCATION and GEOLOCATION_WITH_OPTIONS should be\n merged."]
776    CEF_CONTENT_SETTING_TYPE_GEOLOCATION_WITH_OPTIONS = 123,
777    #[doc = " Setting for enabling the Device Attributes API. Spec link:\n https://wicg.github.io/WebApiDevice/device_attributes/"]
778    CEF_CONTENT_SETTING_TYPE_DEVICE_ATTRIBUTES = 124,
779    #[doc = " Stores per-origin state for permission heuristics. Currently used for\n auto-granting geolocation element permission request after repeated\n temporary grants."]
780    CEF_CONTENT_SETTING_TYPE_PERMISSION_ACTIONS_HISTORY = 125,
781    #[doc = " Website setting to indicate whether the user has selected \"show original\"\n when suspicious warning is shown. If the user has selected this, the\n notification permission will not be revoked based on suspicious verdict."]
782    CEF_CONTENT_SETTING_TYPE_SUSPICIOUS_NOTIFICATION_SHOW_ORIGINAL = 126,
783    #[doc = " Content setting for whether the site is allowed to make local network\n requests. Split from LOCAL_NETWORK_ACCESS."]
784    CEF_CONTENT_SETTING_TYPE_LOCAL_NETWORK = 127,
785    #[doc = " Content setting for whether the site is allowed to make loopback network\n requests. Split from LOCAL_NETWORK_ACCESS."]
786    CEF_CONTENT_SETTING_TYPE_LOOPBACK_NETWORK = 128,
787    CEF_CONTENT_SETTING_TYPE_NUM_VALUES = 129,
788}
789#[repr(u32)]
790#[non_exhaustive]
791#[doc = "\n Supported content setting values. Should be kept in sync with Chromium's\n ContentSetting type.\n"]
792#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
793pub enum cef_content_setting_values_t {
794    CEF_CONTENT_SETTING_VALUE_DEFAULT = 0,
795    CEF_CONTENT_SETTING_VALUE_ALLOW = 1,
796    CEF_CONTENT_SETTING_VALUE_BLOCK = 2,
797    CEF_CONTENT_SETTING_VALUE_ASK = 3,
798    CEF_CONTENT_SETTING_VALUE_SESSION_ONLY = 4,
799    CEF_CONTENT_SETTING_VALUE_DETECT_IMPORTANT_CONTENT_DEPRECATED = 5,
800    CEF_CONTENT_SETTING_VALUE_NUM_VALUES = 6,
801}
802#[doc = "\n Structure representing a point.\n"]
803#[repr(C)]
804#[derive(Debug, Copy, Clone)]
805pub struct _cef_point_t {
806    pub x: ::std::os::raw::c_int,
807    pub y: ::std::os::raw::c_int,
808}
809#[allow(clippy::unnecessary_operation, clippy::identity_op)]
810const _: () = {
811    ["Size of _cef_point_t"][::std::mem::size_of::<_cef_point_t>() - 8usize];
812    ["Alignment of _cef_point_t"][::std::mem::align_of::<_cef_point_t>() - 4usize];
813    ["Offset of field: _cef_point_t::x"][::std::mem::offset_of!(_cef_point_t, x) - 0usize];
814    ["Offset of field: _cef_point_t::y"][::std::mem::offset_of!(_cef_point_t, y) - 4usize];
815};
816#[doc = "\n Structure representing a point.\n"]
817pub type cef_point_t = _cef_point_t;
818#[doc = "\n Structure representing a rectangle.\n"]
819#[repr(C)]
820#[derive(Debug, Copy, Clone)]
821pub struct _cef_rect_t {
822    pub x: ::std::os::raw::c_int,
823    pub y: ::std::os::raw::c_int,
824    pub width: ::std::os::raw::c_int,
825    pub height: ::std::os::raw::c_int,
826}
827#[allow(clippy::unnecessary_operation, clippy::identity_op)]
828const _: () = {
829    ["Size of _cef_rect_t"][::std::mem::size_of::<_cef_rect_t>() - 16usize];
830    ["Alignment of _cef_rect_t"][::std::mem::align_of::<_cef_rect_t>() - 4usize];
831    ["Offset of field: _cef_rect_t::x"][::std::mem::offset_of!(_cef_rect_t, x) - 0usize];
832    ["Offset of field: _cef_rect_t::y"][::std::mem::offset_of!(_cef_rect_t, y) - 4usize];
833    ["Offset of field: _cef_rect_t::width"][::std::mem::offset_of!(_cef_rect_t, width) - 8usize];
834    ["Offset of field: _cef_rect_t::height"][::std::mem::offset_of!(_cef_rect_t, height) - 12usize];
835};
836#[doc = "\n Structure representing a rectangle.\n"]
837pub type cef_rect_t = _cef_rect_t;
838#[doc = "\n Structure representing a size.\n"]
839#[repr(C)]
840#[derive(Debug, Copy, Clone)]
841pub struct _cef_size_t {
842    pub width: ::std::os::raw::c_int,
843    pub height: ::std::os::raw::c_int,
844}
845#[allow(clippy::unnecessary_operation, clippy::identity_op)]
846const _: () = {
847    ["Size of _cef_size_t"][::std::mem::size_of::<_cef_size_t>() - 8usize];
848    ["Alignment of _cef_size_t"][::std::mem::align_of::<_cef_size_t>() - 4usize];
849    ["Offset of field: _cef_size_t::width"][::std::mem::offset_of!(_cef_size_t, width) - 0usize];
850    ["Offset of field: _cef_size_t::height"][::std::mem::offset_of!(_cef_size_t, height) - 4usize];
851};
852#[doc = "\n Structure representing a size.\n"]
853pub type cef_size_t = _cef_size_t;
854#[doc = "\n Structure representing insets.\n"]
855#[repr(C)]
856#[derive(Debug, Copy, Clone)]
857pub struct _cef_insets_t {
858    pub top: ::std::os::raw::c_int,
859    pub left: ::std::os::raw::c_int,
860    pub bottom: ::std::os::raw::c_int,
861    pub right: ::std::os::raw::c_int,
862}
863#[allow(clippy::unnecessary_operation, clippy::identity_op)]
864const _: () = {
865    ["Size of _cef_insets_t"][::std::mem::size_of::<_cef_insets_t>() - 16usize];
866    ["Alignment of _cef_insets_t"][::std::mem::align_of::<_cef_insets_t>() - 4usize];
867    ["Offset of field: _cef_insets_t::top"][::std::mem::offset_of!(_cef_insets_t, top) - 0usize];
868    ["Offset of field: _cef_insets_t::left"][::std::mem::offset_of!(_cef_insets_t, left) - 4usize];
869    ["Offset of field: _cef_insets_t::bottom"]
870        [::std::mem::offset_of!(_cef_insets_t, bottom) - 8usize];
871    ["Offset of field: _cef_insets_t::right"]
872        [::std::mem::offset_of!(_cef_insets_t, right) - 12usize];
873};
874#[doc = "\n Structure representing insets.\n"]
875pub type cef_insets_t = _cef_insets_t;
876#[repr(u32)]
877#[non_exhaustive]
878#[doc = "\n Describes how to interpret the components of a pixel.\n"]
879#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
880pub enum cef_color_type_t {
881    #[doc = "\n RGBA with 8 bits per pixel (32bits total).\n"]
882    CEF_COLOR_TYPE_RGBA_8888 = 0,
883    #[doc = "\n BGRA with 8 bits per pixel (32bits total).\n"]
884    CEF_COLOR_TYPE_BGRA_8888 = 1,
885    #[doc = "\n BGRA with 8 bits per pixel (32bits total).\n"]
886    CEF_COLOR_TYPE_NUM_VALUES = 2,
887}
888#[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"]
889#[repr(C)]
890#[derive(Debug, Copy, Clone)]
891pub struct _cef_accelerated_paint_info_common_t {
892    #[doc = "\n Size of this structure.\n"]
893    pub size: usize,
894    #[doc = "\n Timestamp of the frame in microseconds since capture start.\n"]
895    pub timestamp: u64,
896    #[doc = "\n The full dimensions of the video frame.\n"]
897    pub coded_size: cef_size_t,
898    #[doc = "\n The visible area of the video frame.\n"]
899    pub visible_rect: cef_rect_t,
900    #[doc = "\n The region of the video frame that capturer would like to populate.\n"]
901    pub content_rect: cef_rect_t,
902    #[doc = "\n Full size of the source frame.\n"]
903    pub source_size: cef_size_t,
904    #[doc = "\n Updated area of frame, can be considered as the `dirty` area.\n"]
905    pub capture_update_rect: cef_rect_t,
906    #[doc = "\n May reflects where the frame's contents originate from if region\n capture is used internally.\n"]
907    pub region_capture_rect: cef_rect_t,
908    #[doc = "\n The increamental counter of the frame.\n"]
909    pub capture_counter: u64,
910    #[doc = "\n Optional flag of capture_update_rect\n"]
911    pub has_capture_update_rect: u8,
912    #[doc = "\n Optional flag of region_capture_rect\n"]
913    pub has_region_capture_rect: u8,
914    #[doc = "\n Optional flag of source_size\n"]
915    pub has_source_size: u8,
916    #[doc = "\n Optional flag of capture_counter\n"]
917    pub has_capture_counter: u8,
918}
919#[allow(clippy::unnecessary_operation, clippy::identity_op)]
920const _: () = {
921    ["Size of _cef_accelerated_paint_info_common_t"]
922        [::std::mem::size_of::<_cef_accelerated_paint_info_common_t>() - 112usize];
923    ["Alignment of _cef_accelerated_paint_info_common_t"]
924        [::std::mem::align_of::<_cef_accelerated_paint_info_common_t>() - 8usize];
925    ["Offset of field: _cef_accelerated_paint_info_common_t::size"]
926        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, size) - 0usize];
927    ["Offset of field: _cef_accelerated_paint_info_common_t::timestamp"]
928        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, timestamp) - 8usize];
929    ["Offset of field: _cef_accelerated_paint_info_common_t::coded_size"]
930        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, coded_size) - 16usize];
931    ["Offset of field: _cef_accelerated_paint_info_common_t::visible_rect"]
932        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, visible_rect) - 24usize];
933    ["Offset of field: _cef_accelerated_paint_info_common_t::content_rect"]
934        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, content_rect) - 40usize];
935    ["Offset of field: _cef_accelerated_paint_info_common_t::source_size"]
936        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, source_size) - 56usize];
937    ["Offset of field: _cef_accelerated_paint_info_common_t::capture_update_rect"][::std::mem::offset_of!(
938        _cef_accelerated_paint_info_common_t,
939        capture_update_rect
940    ) - 64usize];
941    ["Offset of field: _cef_accelerated_paint_info_common_t::region_capture_rect"][::std::mem::offset_of!(
942        _cef_accelerated_paint_info_common_t,
943        region_capture_rect
944    ) - 80usize];
945    ["Offset of field: _cef_accelerated_paint_info_common_t::capture_counter"]
946        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, capture_counter) - 96usize];
947    ["Offset of field: _cef_accelerated_paint_info_common_t::has_capture_update_rect"][::std::mem::offset_of!(
948        _cef_accelerated_paint_info_common_t,
949        has_capture_update_rect
950    )
951        - 104usize];
952    ["Offset of field: _cef_accelerated_paint_info_common_t::has_region_capture_rect"][::std::mem::offset_of!(
953        _cef_accelerated_paint_info_common_t,
954        has_region_capture_rect
955    )
956        - 105usize];
957    ["Offset of field: _cef_accelerated_paint_info_common_t::has_source_size"]
958        [::std::mem::offset_of!(_cef_accelerated_paint_info_common_t, has_source_size) - 106usize];
959    ["Offset of field: _cef_accelerated_paint_info_common_t::has_capture_counter"][::std::mem::offset_of!(
960        _cef_accelerated_paint_info_common_t,
961        has_capture_counter
962    ) - 107usize];
963};
964#[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"]
965pub type cef_accelerated_paint_info_common_t = _cef_accelerated_paint_info_common_t;
966#[repr(u32)]
967#[non_exhaustive]
968#[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"]
969#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
970pub enum cef_runtime_style_t {
971    #[doc = "\n Use the default style. See above documentation for exceptions.\n"]
972    CEF_RUNTIME_STYLE_DEFAULT = 0,
973    #[doc = "\n Use Chrome style.\n"]
974    CEF_RUNTIME_STYLE_CHROME = 1,
975    #[doc = "\n Use Alloy style.\n"]
976    CEF_RUNTIME_STYLE_ALLOY = 2,
977}
978#[repr(C)]
979#[derive(Copy, Clone)]
980pub struct _XEvent {
981    _unused: [u8; 0],
982}
983pub type XEvent = _XEvent;
984#[repr(C)]
985#[derive(Debug, Copy, Clone)]
986pub struct _XDisplay {
987    _unused: [u8; 0],
988}
989pub type XDisplay = _XDisplay;
990pub type cef_cursor_handle_t = ::std::os::raw::c_ulong;
991pub type cef_event_handle_t = *mut XEvent;
992pub type cef_window_handle_t = ::std::os::raw::c_ulong;
993unsafe extern "C" {
994    pub fn cef_get_xdisplay() -> *mut XDisplay;
995}
996#[doc = "\n Structure representing CefExecuteProcess arguments.\n"]
997#[repr(C)]
998#[derive(Debug, Copy, Clone)]
999pub struct _cef_main_args_t {
1000    pub argc: ::std::os::raw::c_int,
1001    pub argv: *mut *mut ::std::os::raw::c_char,
1002}
1003#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1004const _: () = {
1005    ["Size of _cef_main_args_t"][::std::mem::size_of::<_cef_main_args_t>() - 16usize];
1006    ["Alignment of _cef_main_args_t"][::std::mem::align_of::<_cef_main_args_t>() - 8usize];
1007    ["Offset of field: _cef_main_args_t::argc"]
1008        [::std::mem::offset_of!(_cef_main_args_t, argc) - 0usize];
1009    ["Offset of field: _cef_main_args_t::argv"]
1010        [::std::mem::offset_of!(_cef_main_args_t, argv) - 8usize];
1011};
1012#[doc = "\n Structure representing CefExecuteProcess arguments.\n"]
1013pub type cef_main_args_t = _cef_main_args_t;
1014#[doc = "\n Class representing window information.\n"]
1015#[repr(C)]
1016#[derive(Debug, Copy, Clone)]
1017pub struct _cef_window_info_t {
1018    #[doc = "\n Size of this structure.\n"]
1019    pub size: usize,
1020    #[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"]
1021    pub window_name: cef_string_t,
1022    #[doc = "\n Initial window bounds.\n"]
1023    pub bounds: cef_rect_t,
1024    #[doc = "\n Pointer for the parent window.\n"]
1025    pub parent_window: cef_window_handle_t,
1026    #[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"]
1027    pub windowless_rendering_enabled: ::std::os::raw::c_int,
1028    #[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"]
1029    pub shared_texture_enabled: ::std::os::raw::c_int,
1030    #[doc = "\n Set to true (1) to enable the ability to issue BeginFrame requests from\n the client application by calling CefBrowserHost::SendExternalBeginFrame.\n"]
1031    pub external_begin_frame_enabled: ::std::os::raw::c_int,
1032    #[doc = "\n Pointer for the new browser window. Only used with windowed rendering.\n"]
1033    pub window: cef_window_handle_t,
1034    #[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"]
1035    pub runtime_style: cef_runtime_style_t,
1036}
1037#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1038const _: () = {
1039    ["Size of _cef_window_info_t"][::std::mem::size_of::<_cef_window_info_t>() - 88usize];
1040    ["Alignment of _cef_window_info_t"][::std::mem::align_of::<_cef_window_info_t>() - 8usize];
1041    ["Offset of field: _cef_window_info_t::size"]
1042        [::std::mem::offset_of!(_cef_window_info_t, size) - 0usize];
1043    ["Offset of field: _cef_window_info_t::window_name"]
1044        [::std::mem::offset_of!(_cef_window_info_t, window_name) - 8usize];
1045    ["Offset of field: _cef_window_info_t::bounds"]
1046        [::std::mem::offset_of!(_cef_window_info_t, bounds) - 32usize];
1047    ["Offset of field: _cef_window_info_t::parent_window"]
1048        [::std::mem::offset_of!(_cef_window_info_t, parent_window) - 48usize];
1049    ["Offset of field: _cef_window_info_t::windowless_rendering_enabled"]
1050        [::std::mem::offset_of!(_cef_window_info_t, windowless_rendering_enabled) - 56usize];
1051    ["Offset of field: _cef_window_info_t::shared_texture_enabled"]
1052        [::std::mem::offset_of!(_cef_window_info_t, shared_texture_enabled) - 60usize];
1053    ["Offset of field: _cef_window_info_t::external_begin_frame_enabled"]
1054        [::std::mem::offset_of!(_cef_window_info_t, external_begin_frame_enabled) - 64usize];
1055    ["Offset of field: _cef_window_info_t::window"]
1056        [::std::mem::offset_of!(_cef_window_info_t, window) - 72usize];
1057    ["Offset of field: _cef_window_info_t::runtime_style"]
1058        [::std::mem::offset_of!(_cef_window_info_t, runtime_style) - 80usize];
1059};
1060#[doc = "\n Class representing window information.\n"]
1061pub type cef_window_info_t = _cef_window_info_t;
1062#[doc = "\n Structure containing the plane information of the shared texture.\n Sync with native_pixmap_handle.h\n"]
1063#[repr(C)]
1064#[derive(Debug, Copy, Clone)]
1065pub struct _cef_accelerated_paint_native_pixmap_plane_info_t {
1066    #[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"]
1067    pub stride: u32,
1068    pub offset: u64,
1069    pub size: u64,
1070    #[doc = "\n File descriptor for the underlying memory object (usually dmabuf).\n"]
1071    pub fd: ::std::os::raw::c_int,
1072}
1073#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1074const _: () = {
1075    ["Size of _cef_accelerated_paint_native_pixmap_plane_info_t"]
1076        [::std::mem::size_of::<_cef_accelerated_paint_native_pixmap_plane_info_t>() - 32usize];
1077    ["Alignment of _cef_accelerated_paint_native_pixmap_plane_info_t"]
1078        [::std::mem::align_of::<_cef_accelerated_paint_native_pixmap_plane_info_t>() - 8usize];
1079    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::stride"][::std::mem::offset_of!(
1080        _cef_accelerated_paint_native_pixmap_plane_info_t,
1081        stride
1082    ) - 0usize];
1083    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::offset"][::std::mem::offset_of!(
1084        _cef_accelerated_paint_native_pixmap_plane_info_t,
1085        offset
1086    ) - 8usize];
1087    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::size"]
1088        [::std::mem::offset_of!(_cef_accelerated_paint_native_pixmap_plane_info_t, size) - 16usize];
1089    ["Offset of field: _cef_accelerated_paint_native_pixmap_plane_info_t::fd"]
1090        [::std::mem::offset_of!(_cef_accelerated_paint_native_pixmap_plane_info_t, fd) - 24usize];
1091};
1092#[doc = "\n Structure containing the plane information of the shared texture.\n Sync with native_pixmap_handle.h\n"]
1093pub type cef_accelerated_paint_native_pixmap_plane_t =
1094    _cef_accelerated_paint_native_pixmap_plane_info_t;
1095#[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"]
1096#[repr(C)]
1097#[derive(Debug, Copy, Clone)]
1098pub struct _cef_accelerated_paint_info_t {
1099    #[doc = "\n Size of this structure.\n"]
1100    pub size: usize,
1101    #[doc = "\n Planes of the shared texture, usually file descriptors of dmabufs.\n"]
1102    pub planes: [cef_accelerated_paint_native_pixmap_plane_t; 4usize],
1103    #[doc = "\n Plane count.\n"]
1104    pub plane_count: ::std::os::raw::c_int,
1105    #[doc = "\n Modifier could be used with EGL driver.\n"]
1106    pub modifier: u64,
1107    #[doc = "\n The pixel format of the texture.\n"]
1108    pub format: cef_color_type_t,
1109    #[doc = "\n The extra common info.\n"]
1110    pub extra: cef_accelerated_paint_info_common_t,
1111}
1112#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1113const _: () = {
1114    ["Size of _cef_accelerated_paint_info_t"]
1115        [::std::mem::size_of::<_cef_accelerated_paint_info_t>() - 272usize];
1116    ["Alignment of _cef_accelerated_paint_info_t"]
1117        [::std::mem::align_of::<_cef_accelerated_paint_info_t>() - 8usize];
1118    ["Offset of field: _cef_accelerated_paint_info_t::size"]
1119        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, size) - 0usize];
1120    ["Offset of field: _cef_accelerated_paint_info_t::planes"]
1121        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, planes) - 8usize];
1122    ["Offset of field: _cef_accelerated_paint_info_t::plane_count"]
1123        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, plane_count) - 136usize];
1124    ["Offset of field: _cef_accelerated_paint_info_t::modifier"]
1125        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, modifier) - 144usize];
1126    ["Offset of field: _cef_accelerated_paint_info_t::format"]
1127        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, format) - 152usize];
1128    ["Offset of field: _cef_accelerated_paint_info_t::extra"]
1129        [::std::mem::offset_of!(_cef_accelerated_paint_info_t, extra) - 160usize];
1130};
1131#[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"]
1132pub type cef_accelerated_paint_info_t = _cef_accelerated_paint_info_t;
1133pub type cef_color_t = u32;
1134impl cef_log_severity_t {
1135    pub const LOGSEVERITY_DEBUG: cef_log_severity_t = cef_log_severity_t::LOGSEVERITY_VERBOSE;
1136}
1137#[repr(u32)]
1138#[non_exhaustive]
1139#[doc = "\n Log severity levels.\n"]
1140#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1141pub enum cef_log_severity_t {
1142    #[doc = "\n Default logging (currently INFO logging).\n"]
1143    LOGSEVERITY_DEFAULT = 0,
1144    #[doc = "\n Verbose logging.\n"]
1145    LOGSEVERITY_VERBOSE = 1,
1146    #[doc = "\n INFO logging.\n"]
1147    LOGSEVERITY_INFO = 2,
1148    #[doc = "\n WARNING logging.\n"]
1149    LOGSEVERITY_WARNING = 3,
1150    #[doc = "\n ERROR logging.\n"]
1151    LOGSEVERITY_ERROR = 4,
1152    #[doc = "\n FATAL logging.\n"]
1153    LOGSEVERITY_FATAL = 5,
1154    #[doc = "\n Disable logging to file for all messages, and to stderr for messages with\n severity less than FATAL.\n"]
1155    LOGSEVERITY_DISABLE = 99,
1156}
1157#[repr(u32)]
1158#[non_exhaustive]
1159#[doc = "\n Log items prepended to each log line.\n"]
1160#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1161pub enum cef_log_items_t {
1162    #[doc = "\n Prepend the default list of items.\n"]
1163    LOG_ITEMS_DEFAULT = 0,
1164    #[doc = "\n Prepend no items.\n"]
1165    LOG_ITEMS_NONE = 1,
1166    #[doc = "\n Prepend the process ID.\n"]
1167    LOG_ITEMS_FLAG_PROCESS_ID = 2,
1168    #[doc = "\n Prepend the thread ID.\n"]
1169    LOG_ITEMS_FLAG_THREAD_ID = 4,
1170    #[doc = "\n Prepend the timestamp.\n"]
1171    LOG_ITEMS_FLAG_TIME_STAMP = 8,
1172    #[doc = "\n Prepend the tickcount.\n"]
1173    LOG_ITEMS_FLAG_TICK_COUNT = 16,
1174}
1175#[repr(u32)]
1176#[non_exhaustive]
1177#[doc = "\n Represents the state of a setting.\n"]
1178#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1179pub enum cef_state_t {
1180    #[doc = "\n Use the default state for the setting.\n"]
1181    STATE_DEFAULT = 0,
1182    #[doc = "\n Enable or allow the setting.\n"]
1183    STATE_ENABLED = 1,
1184    #[doc = "\n Disable or disallow the setting.\n"]
1185    STATE_DISABLED = 2,
1186}
1187#[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"]
1188#[repr(C)]
1189#[derive(Debug, Copy, Clone)]
1190pub struct _cef_settings_t {
1191    #[doc = "\n Size of this structure.\n"]
1192    pub size: usize,
1193    #[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"]
1194    pub no_sandbox: ::std::os::raw::c_int,
1195    #[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"]
1196    pub browser_subprocess_path: cef_string_t,
1197    #[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"]
1198    pub framework_dir_path: cef_string_t,
1199    #[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"]
1200    pub main_bundle_path: cef_string_t,
1201    #[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"]
1202    pub multi_threaded_message_loop: ::std::os::raw::c_int,
1203    #[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"]
1204    pub external_message_pump: ::std::os::raw::c_int,
1205    #[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"]
1206    pub windowless_rendering_enabled: ::std::os::raw::c_int,
1207    #[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"]
1208    pub command_line_args_disabled: ::std::os::raw::c_int,
1209    #[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"]
1210    pub cache_path: cef_string_t,
1211    #[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"]
1212    pub root_cache_path: cef_string_t,
1213    #[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"]
1214    pub persist_session_cookies: ::std::os::raw::c_int,
1215    #[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"]
1216    pub user_agent: cef_string_t,
1217    #[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"]
1218    pub user_agent_product: cef_string_t,
1219    #[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"]
1220    pub locale: cef_string_t,
1221    #[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"]
1222    pub log_file: cef_string_t,
1223    #[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"]
1224    pub log_severity: cef_log_severity_t,
1225    #[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"]
1226    pub log_items: cef_log_items_t,
1227    #[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"]
1228    pub javascript_flags: cef_string_t,
1229    #[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"]
1230    pub resources_dir_path: cef_string_t,
1231    #[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"]
1232    pub locales_dir_path: cef_string_t,
1233    #[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"]
1234    pub remote_debugging_port: ::std::os::raw::c_int,
1235    #[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"]
1236    pub uncaught_exception_stack_size: ::std::os::raw::c_int,
1237    #[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"]
1238    pub background_color: cef_color_t,
1239    #[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"]
1240    pub accept_language_list: cef_string_t,
1241    #[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"]
1242    pub cookieable_schemes_list: cef_string_t,
1243    pub cookieable_schemes_exclude_defaults: ::std::os::raw::c_int,
1244    #[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"]
1245    pub chrome_policy_id: cef_string_t,
1246    #[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"]
1247    pub chrome_app_icon_id: ::std::os::raw::c_int,
1248    #[doc = "\n Specify whether signal handlers must be disabled on POSIX systems.\n"]
1249    pub disable_signal_handlers: ::std::os::raw::c_int,
1250}
1251#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1252const _: () = {
1253    ["Size of _cef_settings_t"][::std::mem::size_of::<_cef_settings_t>() - 440usize];
1254    ["Alignment of _cef_settings_t"][::std::mem::align_of::<_cef_settings_t>() - 8usize];
1255    ["Offset of field: _cef_settings_t::size"]
1256        [::std::mem::offset_of!(_cef_settings_t, size) - 0usize];
1257    ["Offset of field: _cef_settings_t::no_sandbox"]
1258        [::std::mem::offset_of!(_cef_settings_t, no_sandbox) - 8usize];
1259    ["Offset of field: _cef_settings_t::browser_subprocess_path"]
1260        [::std::mem::offset_of!(_cef_settings_t, browser_subprocess_path) - 16usize];
1261    ["Offset of field: _cef_settings_t::framework_dir_path"]
1262        [::std::mem::offset_of!(_cef_settings_t, framework_dir_path) - 40usize];
1263    ["Offset of field: _cef_settings_t::main_bundle_path"]
1264        [::std::mem::offset_of!(_cef_settings_t, main_bundle_path) - 64usize];
1265    ["Offset of field: _cef_settings_t::multi_threaded_message_loop"]
1266        [::std::mem::offset_of!(_cef_settings_t, multi_threaded_message_loop) - 88usize];
1267    ["Offset of field: _cef_settings_t::external_message_pump"]
1268        [::std::mem::offset_of!(_cef_settings_t, external_message_pump) - 92usize];
1269    ["Offset of field: _cef_settings_t::windowless_rendering_enabled"]
1270        [::std::mem::offset_of!(_cef_settings_t, windowless_rendering_enabled) - 96usize];
1271    ["Offset of field: _cef_settings_t::command_line_args_disabled"]
1272        [::std::mem::offset_of!(_cef_settings_t, command_line_args_disabled) - 100usize];
1273    ["Offset of field: _cef_settings_t::cache_path"]
1274        [::std::mem::offset_of!(_cef_settings_t, cache_path) - 104usize];
1275    ["Offset of field: _cef_settings_t::root_cache_path"]
1276        [::std::mem::offset_of!(_cef_settings_t, root_cache_path) - 128usize];
1277    ["Offset of field: _cef_settings_t::persist_session_cookies"]
1278        [::std::mem::offset_of!(_cef_settings_t, persist_session_cookies) - 152usize];
1279    ["Offset of field: _cef_settings_t::user_agent"]
1280        [::std::mem::offset_of!(_cef_settings_t, user_agent) - 160usize];
1281    ["Offset of field: _cef_settings_t::user_agent_product"]
1282        [::std::mem::offset_of!(_cef_settings_t, user_agent_product) - 184usize];
1283    ["Offset of field: _cef_settings_t::locale"]
1284        [::std::mem::offset_of!(_cef_settings_t, locale) - 208usize];
1285    ["Offset of field: _cef_settings_t::log_file"]
1286        [::std::mem::offset_of!(_cef_settings_t, log_file) - 232usize];
1287    ["Offset of field: _cef_settings_t::log_severity"]
1288        [::std::mem::offset_of!(_cef_settings_t, log_severity) - 256usize];
1289    ["Offset of field: _cef_settings_t::log_items"]
1290        [::std::mem::offset_of!(_cef_settings_t, log_items) - 260usize];
1291    ["Offset of field: _cef_settings_t::javascript_flags"]
1292        [::std::mem::offset_of!(_cef_settings_t, javascript_flags) - 264usize];
1293    ["Offset of field: _cef_settings_t::resources_dir_path"]
1294        [::std::mem::offset_of!(_cef_settings_t, resources_dir_path) - 288usize];
1295    ["Offset of field: _cef_settings_t::locales_dir_path"]
1296        [::std::mem::offset_of!(_cef_settings_t, locales_dir_path) - 312usize];
1297    ["Offset of field: _cef_settings_t::remote_debugging_port"]
1298        [::std::mem::offset_of!(_cef_settings_t, remote_debugging_port) - 336usize];
1299    ["Offset of field: _cef_settings_t::uncaught_exception_stack_size"]
1300        [::std::mem::offset_of!(_cef_settings_t, uncaught_exception_stack_size) - 340usize];
1301    ["Offset of field: _cef_settings_t::background_color"]
1302        [::std::mem::offset_of!(_cef_settings_t, background_color) - 344usize];
1303    ["Offset of field: _cef_settings_t::accept_language_list"]
1304        [::std::mem::offset_of!(_cef_settings_t, accept_language_list) - 352usize];
1305    ["Offset of field: _cef_settings_t::cookieable_schemes_list"]
1306        [::std::mem::offset_of!(_cef_settings_t, cookieable_schemes_list) - 376usize];
1307    ["Offset of field: _cef_settings_t::cookieable_schemes_exclude_defaults"]
1308        [::std::mem::offset_of!(_cef_settings_t, cookieable_schemes_exclude_defaults) - 400usize];
1309    ["Offset of field: _cef_settings_t::chrome_policy_id"]
1310        [::std::mem::offset_of!(_cef_settings_t, chrome_policy_id) - 408usize];
1311    ["Offset of field: _cef_settings_t::chrome_app_icon_id"]
1312        [::std::mem::offset_of!(_cef_settings_t, chrome_app_icon_id) - 432usize];
1313    ["Offset of field: _cef_settings_t::disable_signal_handlers"]
1314        [::std::mem::offset_of!(_cef_settings_t, disable_signal_handlers) - 436usize];
1315};
1316#[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"]
1317pub type cef_settings_t = _cef_settings_t;
1318#[doc = "\n Request context initialization settings. Specify NULL or 0 to get the\n recommended default values.\n"]
1319#[repr(C)]
1320#[derive(Debug, Copy, Clone)]
1321pub struct _cef_request_context_settings_t {
1322    #[doc = "\n Size of this structure.\n"]
1323    pub size: usize,
1324    #[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"]
1325    pub cache_path: cef_string_t,
1326    #[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"]
1327    pub persist_session_cookies: ::std::os::raw::c_int,
1328    #[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"]
1329    pub accept_language_list: cef_string_t,
1330    #[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"]
1331    pub cookieable_schemes_list: cef_string_t,
1332    pub cookieable_schemes_exclude_defaults: ::std::os::raw::c_int,
1333}
1334#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1335const _: () = {
1336    ["Size of _cef_request_context_settings_t"]
1337        [::std::mem::size_of::<_cef_request_context_settings_t>() - 96usize];
1338    ["Alignment of _cef_request_context_settings_t"]
1339        [::std::mem::align_of::<_cef_request_context_settings_t>() - 8usize];
1340    ["Offset of field: _cef_request_context_settings_t::size"]
1341        [::std::mem::offset_of!(_cef_request_context_settings_t, size) - 0usize];
1342    ["Offset of field: _cef_request_context_settings_t::cache_path"]
1343        [::std::mem::offset_of!(_cef_request_context_settings_t, cache_path) - 8usize];
1344    ["Offset of field: _cef_request_context_settings_t::persist_session_cookies"][::std::mem::offset_of!(
1345        _cef_request_context_settings_t,
1346        persist_session_cookies
1347    ) - 32usize];
1348    ["Offset of field: _cef_request_context_settings_t::accept_language_list"]
1349        [::std::mem::offset_of!(_cef_request_context_settings_t, accept_language_list) - 40usize];
1350    ["Offset of field: _cef_request_context_settings_t::cookieable_schemes_list"][::std::mem::offset_of!(
1351        _cef_request_context_settings_t,
1352        cookieable_schemes_list
1353    ) - 64usize];
1354    ["Offset of field: _cef_request_context_settings_t::cookieable_schemes_exclude_defaults"][::std::mem::offset_of!(
1355        _cef_request_context_settings_t,
1356        cookieable_schemes_exclude_defaults
1357    )
1358        - 88usize];
1359};
1360#[doc = "\n Request context initialization settings. Specify NULL or 0 to get the\n recommended default values.\n"]
1361pub type cef_request_context_settings_t = _cef_request_context_settings_t;
1362#[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"]
1363#[repr(C)]
1364#[derive(Debug, Copy, Clone)]
1365pub struct _cef_browser_settings_t {
1366    #[doc = "\n Size of this structure.\n"]
1367    pub size: usize,
1368    #[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 default value is 30. This value can also be changed\n dynamically via CefBrowserHost::SetWindowlessFrameRate.\n"]
1369    pub windowless_frame_rate: ::std::os::raw::c_int,
1370    #[doc = "\n Font settings.\n"]
1371    pub standard_font_family: cef_string_t,
1372    pub fixed_font_family: cef_string_t,
1373    pub serif_font_family: cef_string_t,
1374    pub sans_serif_font_family: cef_string_t,
1375    pub cursive_font_family: cef_string_t,
1376    pub fantasy_font_family: cef_string_t,
1377    pub default_font_size: ::std::os::raw::c_int,
1378    pub default_fixed_font_size: ::std::os::raw::c_int,
1379    pub minimum_font_size: ::std::os::raw::c_int,
1380    pub minimum_logical_font_size: ::std::os::raw::c_int,
1381    #[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"]
1382    pub default_encoding: cef_string_t,
1383    #[doc = "\n Controls the loading of fonts from remote sources. Also configurable using\n the \"disable-remote-fonts\" command-line switch.\n"]
1384    pub remote_fonts: cef_state_t,
1385    #[doc = "\n Controls whether JavaScript can be executed. Also configurable using the\n \"disable-javascript\" command-line switch.\n"]
1386    pub javascript: cef_state_t,
1387    #[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"]
1388    pub javascript_close_windows: cef_state_t,
1389    #[doc = "\n Controls whether JavaScript can access the clipboard. Also configurable\n using the \"disable-javascript-access-clipboard\" command-line switch.\n"]
1390    pub javascript_access_clipboard: cef_state_t,
1391    #[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"]
1392    pub javascript_dom_paste: cef_state_t,
1393    #[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"]
1394    pub image_loading: cef_state_t,
1395    #[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"]
1396    pub image_shrink_standalone_to_fit: cef_state_t,
1397    #[doc = "\n Controls whether text areas can be resized. Also configurable using the\n \"disable-text-area-resize\" command-line switch.\n"]
1398    pub text_area_resize: cef_state_t,
1399    #[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"]
1400    pub tab_to_links: cef_state_t,
1401    #[doc = "\n Controls whether local storage can be used. Also configurable using the\n \"disable-local-storage\" command-line switch.\n"]
1402    pub local_storage: cef_state_t,
1403    pub databases_deprecated: cef_state_t,
1404    #[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"]
1405    pub webgl: cef_state_t,
1406    #[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"]
1407    pub background_color: cef_color_t,
1408    #[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"]
1409    pub chrome_status_bubble: cef_state_t,
1410    #[doc = "\n Controls whether the Chrome zoom bubble will be shown when zooming. Only\n supported with Chrome style.\n"]
1411    pub chrome_zoom_bubble: cef_state_t,
1412}
1413#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1414const _: () = {
1415    ["Size of _cef_browser_settings_t"]
1416        [::std::mem::size_of::<_cef_browser_settings_t>() - 264usize];
1417    ["Alignment of _cef_browser_settings_t"]
1418        [::std::mem::align_of::<_cef_browser_settings_t>() - 8usize];
1419    ["Offset of field: _cef_browser_settings_t::size"]
1420        [::std::mem::offset_of!(_cef_browser_settings_t, size) - 0usize];
1421    ["Offset of field: _cef_browser_settings_t::windowless_frame_rate"]
1422        [::std::mem::offset_of!(_cef_browser_settings_t, windowless_frame_rate) - 8usize];
1423    ["Offset of field: _cef_browser_settings_t::standard_font_family"]
1424        [::std::mem::offset_of!(_cef_browser_settings_t, standard_font_family) - 16usize];
1425    ["Offset of field: _cef_browser_settings_t::fixed_font_family"]
1426        [::std::mem::offset_of!(_cef_browser_settings_t, fixed_font_family) - 40usize];
1427    ["Offset of field: _cef_browser_settings_t::serif_font_family"]
1428        [::std::mem::offset_of!(_cef_browser_settings_t, serif_font_family) - 64usize];
1429    ["Offset of field: _cef_browser_settings_t::sans_serif_font_family"]
1430        [::std::mem::offset_of!(_cef_browser_settings_t, sans_serif_font_family) - 88usize];
1431    ["Offset of field: _cef_browser_settings_t::cursive_font_family"]
1432        [::std::mem::offset_of!(_cef_browser_settings_t, cursive_font_family) - 112usize];
1433    ["Offset of field: _cef_browser_settings_t::fantasy_font_family"]
1434        [::std::mem::offset_of!(_cef_browser_settings_t, fantasy_font_family) - 136usize];
1435    ["Offset of field: _cef_browser_settings_t::default_font_size"]
1436        [::std::mem::offset_of!(_cef_browser_settings_t, default_font_size) - 160usize];
1437    ["Offset of field: _cef_browser_settings_t::default_fixed_font_size"]
1438        [::std::mem::offset_of!(_cef_browser_settings_t, default_fixed_font_size) - 164usize];
1439    ["Offset of field: _cef_browser_settings_t::minimum_font_size"]
1440        [::std::mem::offset_of!(_cef_browser_settings_t, minimum_font_size) - 168usize];
1441    ["Offset of field: _cef_browser_settings_t::minimum_logical_font_size"]
1442        [::std::mem::offset_of!(_cef_browser_settings_t, minimum_logical_font_size) - 172usize];
1443    ["Offset of field: _cef_browser_settings_t::default_encoding"]
1444        [::std::mem::offset_of!(_cef_browser_settings_t, default_encoding) - 176usize];
1445    ["Offset of field: _cef_browser_settings_t::remote_fonts"]
1446        [::std::mem::offset_of!(_cef_browser_settings_t, remote_fonts) - 200usize];
1447    ["Offset of field: _cef_browser_settings_t::javascript"]
1448        [::std::mem::offset_of!(_cef_browser_settings_t, javascript) - 204usize];
1449    ["Offset of field: _cef_browser_settings_t::javascript_close_windows"]
1450        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_close_windows) - 208usize];
1451    ["Offset of field: _cef_browser_settings_t::javascript_access_clipboard"]
1452        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_access_clipboard) - 212usize];
1453    ["Offset of field: _cef_browser_settings_t::javascript_dom_paste"]
1454        [::std::mem::offset_of!(_cef_browser_settings_t, javascript_dom_paste) - 216usize];
1455    ["Offset of field: _cef_browser_settings_t::image_loading"]
1456        [::std::mem::offset_of!(_cef_browser_settings_t, image_loading) - 220usize];
1457    ["Offset of field: _cef_browser_settings_t::image_shrink_standalone_to_fit"][::std::mem::offset_of!(
1458        _cef_browser_settings_t,
1459        image_shrink_standalone_to_fit
1460    ) - 224usize];
1461    ["Offset of field: _cef_browser_settings_t::text_area_resize"]
1462        [::std::mem::offset_of!(_cef_browser_settings_t, text_area_resize) - 228usize];
1463    ["Offset of field: _cef_browser_settings_t::tab_to_links"]
1464        [::std::mem::offset_of!(_cef_browser_settings_t, tab_to_links) - 232usize];
1465    ["Offset of field: _cef_browser_settings_t::local_storage"]
1466        [::std::mem::offset_of!(_cef_browser_settings_t, local_storage) - 236usize];
1467    ["Offset of field: _cef_browser_settings_t::databases_deprecated"]
1468        [::std::mem::offset_of!(_cef_browser_settings_t, databases_deprecated) - 240usize];
1469    ["Offset of field: _cef_browser_settings_t::webgl"]
1470        [::std::mem::offset_of!(_cef_browser_settings_t, webgl) - 244usize];
1471    ["Offset of field: _cef_browser_settings_t::background_color"]
1472        [::std::mem::offset_of!(_cef_browser_settings_t, background_color) - 248usize];
1473    ["Offset of field: _cef_browser_settings_t::chrome_status_bubble"]
1474        [::std::mem::offset_of!(_cef_browser_settings_t, chrome_status_bubble) - 252usize];
1475    ["Offset of field: _cef_browser_settings_t::chrome_zoom_bubble"]
1476        [::std::mem::offset_of!(_cef_browser_settings_t, chrome_zoom_bubble) - 256usize];
1477};
1478#[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"]
1479pub type cef_browser_settings_t = _cef_browser_settings_t;
1480#[repr(u32)]
1481#[non_exhaustive]
1482#[doc = "\n Return value types.\n"]
1483#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1484pub enum cef_return_value_t {
1485    #[doc = "\n Cancel immediately.\n"]
1486    RV_CANCEL = 0,
1487    #[doc = "\n Continue immediately.\n"]
1488    RV_CONTINUE = 1,
1489    #[doc = "\n Continue asynchronously (usually via a callback).\n"]
1490    RV_CONTINUE_ASYNC = 2,
1491}
1492#[doc = "\n URL component parts.\n"]
1493#[repr(C)]
1494#[derive(Debug, Copy, Clone)]
1495pub struct _cef_urlparts_t {
1496    #[doc = "\n Size of this structure.\n"]
1497    pub size: usize,
1498    #[doc = "\n The complete URL specification.\n"]
1499    pub spec: cef_string_t,
1500    #[doc = "\n Scheme component not including the colon (e.g., \"http\").\n"]
1501    pub scheme: cef_string_t,
1502    #[doc = "\n User name component.\n"]
1503    pub username: cef_string_t,
1504    #[doc = "\n Password component.\n"]
1505    pub password: cef_string_t,
1506    #[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"]
1507    pub host: cef_string_t,
1508    #[doc = "\n Port number component.\n"]
1509    pub port: cef_string_t,
1510    #[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"]
1511    pub origin: cef_string_t,
1512    #[doc = "\n Path component including the first slash following the host.\n"]
1513    pub path: cef_string_t,
1514    #[doc = "\n Query string component (i.e., everything following the '?').\n"]
1515    pub query: cef_string_t,
1516    #[doc = "\n Fragment (hash) identifier component (i.e., the string following the '#').\n"]
1517    pub fragment: cef_string_t,
1518}
1519#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1520const _: () = {
1521    ["Size of _cef_urlparts_t"][::std::mem::size_of::<_cef_urlparts_t>() - 248usize];
1522    ["Alignment of _cef_urlparts_t"][::std::mem::align_of::<_cef_urlparts_t>() - 8usize];
1523    ["Offset of field: _cef_urlparts_t::size"]
1524        [::std::mem::offset_of!(_cef_urlparts_t, size) - 0usize];
1525    ["Offset of field: _cef_urlparts_t::spec"]
1526        [::std::mem::offset_of!(_cef_urlparts_t, spec) - 8usize];
1527    ["Offset of field: _cef_urlparts_t::scheme"]
1528        [::std::mem::offset_of!(_cef_urlparts_t, scheme) - 32usize];
1529    ["Offset of field: _cef_urlparts_t::username"]
1530        [::std::mem::offset_of!(_cef_urlparts_t, username) - 56usize];
1531    ["Offset of field: _cef_urlparts_t::password"]
1532        [::std::mem::offset_of!(_cef_urlparts_t, password) - 80usize];
1533    ["Offset of field: _cef_urlparts_t::host"]
1534        [::std::mem::offset_of!(_cef_urlparts_t, host) - 104usize];
1535    ["Offset of field: _cef_urlparts_t::port"]
1536        [::std::mem::offset_of!(_cef_urlparts_t, port) - 128usize];
1537    ["Offset of field: _cef_urlparts_t::origin"]
1538        [::std::mem::offset_of!(_cef_urlparts_t, origin) - 152usize];
1539    ["Offset of field: _cef_urlparts_t::path"]
1540        [::std::mem::offset_of!(_cef_urlparts_t, path) - 176usize];
1541    ["Offset of field: _cef_urlparts_t::query"]
1542        [::std::mem::offset_of!(_cef_urlparts_t, query) - 200usize];
1543    ["Offset of field: _cef_urlparts_t::fragment"]
1544        [::std::mem::offset_of!(_cef_urlparts_t, fragment) - 224usize];
1545};
1546#[doc = "\n URL component parts.\n"]
1547pub type cef_urlparts_t = _cef_urlparts_t;
1548#[repr(i32)]
1549#[non_exhaustive]
1550#[doc = "\n Cookie priority values.\n"]
1551#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1552pub enum cef_cookie_priority_t {
1553    CEF_COOKIE_PRIORITY_LOW = -1,
1554    CEF_COOKIE_PRIORITY_MEDIUM = 0,
1555    CEF_COOKIE_PRIORITY_HIGH = 1,
1556}
1557#[repr(u32)]
1558#[non_exhaustive]
1559#[doc = "\n Cookie same site values.\n"]
1560#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1561pub enum cef_cookie_same_site_t {
1562    CEF_COOKIE_SAME_SITE_UNSPECIFIED = 0,
1563    CEF_COOKIE_SAME_SITE_NO_RESTRICTION = 1,
1564    CEF_COOKIE_SAME_SITE_LAX_MODE = 2,
1565    CEF_COOKIE_SAME_SITE_STRICT_MODE = 3,
1566    CEF_COOKIE_SAME_SITE_NUM_VALUES = 4,
1567}
1568#[doc = "\n Cookie information.\n"]
1569#[repr(C)]
1570#[derive(Debug, Copy, Clone)]
1571pub struct _cef_cookie_t {
1572    #[doc = "\n Size of this structure.\n"]
1573    pub size: usize,
1574    #[doc = "\n The cookie name.\n"]
1575    pub name: cef_string_t,
1576    #[doc = "\n The cookie value.\n"]
1577    pub value: cef_string_t,
1578    #[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"]
1579    pub domain: cef_string_t,
1580    #[doc = "\n If |path| is non-empty only URLs at or below the path will get the cookie\n value.\n"]
1581    pub path: cef_string_t,
1582    #[doc = "\n If |secure| is true the cookie will only be sent for HTTPS requests.\n"]
1583    pub secure: ::std::os::raw::c_int,
1584    #[doc = "\n If |httponly| is true the cookie will only be sent for HTTP requests.\n"]
1585    pub httponly: ::std::os::raw::c_int,
1586    #[doc = "\n The cookie creation date. This is automatically populated by the system on\n cookie creation.\n"]
1587    pub creation: cef_basetime_t,
1588    #[doc = "\n The cookie last access date. This is automatically populated by the system\n on access.\n"]
1589    pub last_access: cef_basetime_t,
1590    #[doc = "\n The cookie expiration date is only valid if |has_expires| is true.\n"]
1591    pub has_expires: ::std::os::raw::c_int,
1592    pub expires: cef_basetime_t,
1593    #[doc = "\n Same site.\n"]
1594    pub same_site: cef_cookie_same_site_t,
1595    #[doc = "\n Priority.\n"]
1596    pub priority: cef_cookie_priority_t,
1597}
1598#[allow(clippy::unnecessary_operation, clippy::identity_op)]
1599const _: () = {
1600    ["Size of _cef_cookie_t"][::std::mem::size_of::<_cef_cookie_t>() - 152usize];
1601    ["Alignment of _cef_cookie_t"][::std::mem::align_of::<_cef_cookie_t>() - 8usize];
1602    ["Offset of field: _cef_cookie_t::size"][::std::mem::offset_of!(_cef_cookie_t, size) - 0usize];
1603    ["Offset of field: _cef_cookie_t::name"][::std::mem::offset_of!(_cef_cookie_t, name) - 8usize];
1604    ["Offset of field: _cef_cookie_t::value"]
1605        [::std::mem::offset_of!(_cef_cookie_t, value) - 32usize];
1606    ["Offset of field: _cef_cookie_t::domain"]
1607        [::std::mem::offset_of!(_cef_cookie_t, domain) - 56usize];
1608    ["Offset of field: _cef_cookie_t::path"][::std::mem::offset_of!(_cef_cookie_t, path) - 80usize];
1609    ["Offset of field: _cef_cookie_t::secure"]
1610        [::std::mem::offset_of!(_cef_cookie_t, secure) - 104usize];
1611    ["Offset of field: _cef_cookie_t::httponly"]
1612        [::std::mem::offset_of!(_cef_cookie_t, httponly) - 108usize];
1613    ["Offset of field: _cef_cookie_t::creation"]
1614        [::std::mem::offset_of!(_cef_cookie_t, creation) - 112usize];
1615    ["Offset of field: _cef_cookie_t::last_access"]
1616        [::std::mem::offset_of!(_cef_cookie_t, last_access) - 120usize];
1617    ["Offset of field: _cef_cookie_t::has_expires"]
1618        [::std::mem::offset_of!(_cef_cookie_t, has_expires) - 128usize];
1619    ["Offset of field: _cef_cookie_t::expires"]
1620        [::std::mem::offset_of!(_cef_cookie_t, expires) - 136usize];
1621    ["Offset of field: _cef_cookie_t::same_site"]
1622        [::std::mem::offset_of!(_cef_cookie_t, same_site) - 144usize];
1623    ["Offset of field: _cef_cookie_t::priority"]
1624        [::std::mem::offset_of!(_cef_cookie_t, priority) - 148usize];
1625};
1626#[doc = "\n Cookie information.\n"]
1627pub type cef_cookie_t = _cef_cookie_t;
1628#[repr(u32)]
1629#[non_exhaustive]
1630#[doc = "\n Process termination status values.\n"]
1631#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1632pub enum cef_termination_status_t {
1633    #[doc = "\n Non-zero exit status.\n"]
1634    TS_ABNORMAL_TERMINATION = 0,
1635    #[doc = "\n SIGKILL or task manager kill.\n"]
1636    TS_PROCESS_WAS_KILLED = 1,
1637    #[doc = "\n Segmentation fault.\n"]
1638    TS_PROCESS_CRASHED = 2,
1639    #[doc = "\n Out of memory. Some platforms may use TS_PROCESS_CRASHED instead.\n"]
1640    TS_PROCESS_OOM = 3,
1641    #[doc = "\n Child process never launched.\n"]
1642    TS_LAUNCH_FAILED = 4,
1643    #[doc = "\n On Windows, the OS terminated the process due to code integrity failure.\n"]
1644    TS_INTEGRITY_FAILURE = 5,
1645    #[doc = "\n On Windows, the OS terminated the process due to code integrity failure.\n"]
1646    TS_NUM_VALUES = 6,
1647}
1648#[repr(u32)]
1649#[non_exhaustive]
1650#[doc = "\n Path key values.\n"]
1651#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1652pub enum cef_path_key_t {
1653    #[doc = "\n Current directory.\n"]
1654    PK_DIR_CURRENT = 0,
1655    #[doc = "\n Directory containing PK_FILE_EXE.\n"]
1656    PK_DIR_EXE = 1,
1657    #[doc = "\n Directory containing PK_FILE_MODULE.\n"]
1658    PK_DIR_MODULE = 2,
1659    #[doc = "\n Temporary directory.\n"]
1660    PK_DIR_TEMP = 3,
1661    #[doc = "\n Path and filename of the current executable.\n"]
1662    PK_FILE_EXE = 4,
1663    #[doc = "\n Path and filename of the module containing the CEF code (usually the\n libcef module).\n"]
1664    PK_FILE_MODULE = 5,
1665    #[doc = "\n \"Local Settings\\Application Data\" directory under the user profile\n directory on Windows.\n"]
1666    PK_LOCAL_APP_DATA = 6,
1667    #[doc = "\n \"Application Data\" directory under the user profile directory on Windows\n and \"~/Library/Application Support\" directory on MacOS.\n"]
1668    PK_USER_DATA = 7,
1669    #[doc = "\n Directory containing application resources. Can be configured via\n CefSettings.resources_dir_path.\n"]
1670    PK_DIR_RESOURCES = 8,
1671    #[doc = "\n Directory containing application resources. Can be configured via\n CefSettings.resources_dir_path.\n"]
1672    PK_NUM_VALUES = 9,
1673}
1674#[repr(u32)]
1675#[non_exhaustive]
1676#[doc = "\n Storage types.\n"]
1677#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1678pub enum cef_storage_type_t {
1679    ST_LOCALSTORAGE = 0,
1680    ST_SESSIONSTORAGE = 1,
1681}
1682#[repr(i32)]
1683#[non_exhaustive]
1684#[doc = "\n Supported error code values. For the complete list of error values see\n \"include/base/internal/cef_net_error_list.h\".\n"]
1685#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1686pub enum cef_errorcode_t {
1687    ERR_NONE = 0,
1688    ERR_IO_PENDING = -1,
1689    ERR_FAILED = -2,
1690    ERR_ABORTED = -3,
1691    ERR_INVALID_ARGUMENT = -4,
1692    ERR_INVALID_HANDLE = -5,
1693    ERR_FILE_NOT_FOUND = -6,
1694    ERR_TIMED_OUT = -7,
1695    ERR_FILE_TOO_BIG = -8,
1696    ERR_UNEXPECTED = -9,
1697    ERR_ACCESS_DENIED = -10,
1698    ERR_NOT_IMPLEMENTED = -11,
1699    ERR_INSUFFICIENT_RESOURCES = -12,
1700    ERR_OUT_OF_MEMORY = -13,
1701    ERR_UPLOAD_FILE_CHANGED = -14,
1702    ERR_SOCKET_NOT_CONNECTED = -15,
1703    ERR_FILE_EXISTS = -16,
1704    ERR_FILE_PATH_TOO_LONG = -17,
1705    ERR_FILE_NO_SPACE = -18,
1706    ERR_FILE_VIRUS_INFECTED = -19,
1707    ERR_BLOCKED_BY_CLIENT = -20,
1708    ERR_NETWORK_CHANGED = -21,
1709    ERR_BLOCKED_BY_ADMINISTRATOR = -22,
1710    ERR_SOCKET_IS_CONNECTED = -23,
1711    ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED = -25,
1712    ERR_CONTEXT_SHUT_DOWN = -26,
1713    ERR_BLOCKED_BY_RESPONSE = -27,
1714    ERR_CLEARTEXT_NOT_PERMITTED = -29,
1715    ERR_BLOCKED_BY_CSP = -30,
1716    ERR_BLOCKED_BY_ORB = -32,
1717    ERR_NETWORK_ACCESS_REVOKED = -33,
1718    ERR_BLOCKED_BY_FINGERPRINTING_PROTECTION = -34,
1719    ERR_BLOCKED_IN_INCOGNITO_BY_ADMINISTRATOR = -35,
1720    ERR_CONNECTION_CLOSED = -100,
1721    ERR_CONNECTION_RESET = -101,
1722    ERR_CONNECTION_REFUSED = -102,
1723    ERR_CONNECTION_ABORTED = -103,
1724    ERR_CONNECTION_FAILED = -104,
1725    ERR_NAME_NOT_RESOLVED = -105,
1726    ERR_INTERNET_DISCONNECTED = -106,
1727    ERR_SSL_PROTOCOL_ERROR = -107,
1728    ERR_ADDRESS_INVALID = -108,
1729    ERR_ADDRESS_UNREACHABLE = -109,
1730    ERR_SSL_CLIENT_AUTH_CERT_NEEDED = -110,
1731    ERR_TUNNEL_CONNECTION_FAILED = -111,
1732    ERR_SSL_VERSION_OR_CIPHER_MISMATCH = -113,
1733    ERR_SSL_RENEGOTIATION_REQUESTED = -114,
1734    ERR_PROXY_AUTH_UNSUPPORTED = -115,
1735    ERR_BAD_SSL_CLIENT_AUTH_CERT = -117,
1736    ERR_CONNECTION_TIMED_OUT = -118,
1737    ERR_HOST_RESOLVER_QUEUE_TOO_LARGE = -119,
1738    ERR_SOCKS_CONNECTION_FAILED = -120,
1739    ERR_SOCKS_CONNECTION_HOST_UNREACHABLE = -121,
1740    ERR_ALPN_NEGOTIATION_FAILED = -122,
1741    ERR_SSL_NO_RENEGOTIATION = -123,
1742    ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES = -124,
1743    ERR_SSL_DECOMPRESSION_FAILURE_ALERT = -125,
1744    ERR_SSL_BAD_RECORD_MAC_ALERT = -126,
1745    ERR_PROXY_AUTH_REQUESTED = -127,
1746    ERR_PROXY_CONNECTION_FAILED = -130,
1747    ERR_MANDATORY_PROXY_CONFIGURATION_FAILED = -131,
1748    ERR_PRECONNECT_MAX_SOCKET_LIMIT = -133,
1749    ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED = -134,
1750    ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY = -135,
1751    ERR_PROXY_CERTIFICATE_INVALID = -136,
1752    ERR_NAME_RESOLUTION_FAILED = -137,
1753    ERR_NETWORK_ACCESS_DENIED = -138,
1754    ERR_TEMPORARILY_THROTTLED = -139,
1755    ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED = -141,
1756    ERR_MSG_TOO_BIG = -142,
1757    ERR_WS_PROTOCOL_ERROR = -145,
1758    ERR_ADDRESS_IN_USE = -147,
1759    ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN = -150,
1760    ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED = -151,
1761    ERR_SSL_DECRYPT_ERROR_ALERT = -153,
1762    ERR_WS_THROTTLE_QUEUE_TOO_LARGE = -154,
1763    ERR_SSL_SERVER_CERT_CHANGED = -156,
1764    ERR_SSL_UNRECOGNIZED_NAME_ALERT = -159,
1765    ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR = -160,
1766    ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR = -161,
1767    ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE = -162,
1768    ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE = -163,
1769    ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT = -164,
1770    ERR_ICANN_NAME_COLLISION = -166,
1771    ERR_SSL_SERVER_CERT_BAD_FORMAT = -167,
1772    ERR_CT_STH_PARSING_FAILED = -168,
1773    ERR_CT_STH_INCOMPLETE = -169,
1774    ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH = -170,
1775    ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED = -171,
1776    ERR_SSL_OBSOLETE_CIPHER = -172,
1777    ERR_WS_UPGRADE = -173,
1778    ERR_READ_IF_READY_NOT_IMPLEMENTED = -174,
1779    ERR_NO_BUFFER_SPACE = -176,
1780    ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS = -177,
1781    ERR_EARLY_DATA_REJECTED = -178,
1782    ERR_WRONG_VERSION_ON_EARLY_DATA = -179,
1783    ERR_TLS13_DOWNGRADE_DETECTED = -180,
1784    ERR_SSL_KEY_USAGE_INCOMPATIBLE = -181,
1785    ERR_INVALID_ECH_CONFIG_LIST = -182,
1786    ERR_ECH_NOT_NEGOTIATED = -183,
1787    ERR_ECH_FALLBACK_CERTIFICATE_INVALID = -184,
1788    ERR_PROXY_UNABLE_TO_CONNECT_TO_DESTINATION = -186,
1789    ERR_PROXY_DELEGATE_CANCELED_CONNECT_REQUEST = -187,
1790    ERR_PROXY_DELEGATE_CANCELED_CONNECT_RESPONSE = -188,
1791    ERR_CERT_COMMON_NAME_INVALID = -200,
1792    ERR_CERT_DATE_INVALID = -201,
1793    ERR_CERT_AUTHORITY_INVALID = -202,
1794    ERR_CERT_CONTAINS_ERRORS = -203,
1795    ERR_CERT_NO_REVOCATION_MECHANISM = -204,
1796    ERR_CERT_UNABLE_TO_CHECK_REVOCATION = -205,
1797    ERR_CERT_REVOKED = -206,
1798    ERR_CERT_INVALID = -207,
1799    ERR_CERT_WEAK_SIGNATURE_ALGORITHM = -208,
1800    ERR_CERT_NON_UNIQUE_NAME = -210,
1801    ERR_CERT_WEAK_KEY = -211,
1802    ERR_CERT_NAME_CONSTRAINT_VIOLATION = -212,
1803    ERR_CERT_VALIDITY_TOO_LONG = -213,
1804    ERR_CERTIFICATE_TRANSPARENCY_REQUIRED = -214,
1805    ERR_CERT_KNOWN_INTERCEPTION_BLOCKED = -217,
1806    ERR_CERT_SELF_SIGNED_LOCAL_NETWORK = -219,
1807    ERR_CERT_END = -220,
1808    ERR_INVALID_URL = -300,
1809    ERR_DISALLOWED_URL_SCHEME = -301,
1810    ERR_UNKNOWN_URL_SCHEME = -302,
1811    ERR_INVALID_REDIRECT = -303,
1812    ERR_TOO_MANY_REDIRECTS = -310,
1813    ERR_UNSAFE_REDIRECT = -311,
1814    ERR_UNSAFE_PORT = -312,
1815    ERR_INVALID_RESPONSE = -320,
1816    ERR_INVALID_CHUNKED_ENCODING = -321,
1817    ERR_METHOD_NOT_SUPPORTED = -322,
1818    ERR_UNEXPECTED_PROXY_AUTH = -323,
1819    ERR_EMPTY_RESPONSE = -324,
1820    ERR_RESPONSE_HEADERS_TOO_BIG = -325,
1821    ERR_PAC_SCRIPT_FAILED = -327,
1822    ERR_REQUEST_RANGE_NOT_SATISFIABLE = -328,
1823    ERR_MALFORMED_IDENTITY = -329,
1824    ERR_CONTENT_DECODING_FAILED = -330,
1825    ERR_NETWORK_IO_SUSPENDED = -331,
1826    ERR_NO_SUPPORTED_PROXIES = -336,
1827    ERR_HTTP2_PROTOCOL_ERROR = -337,
1828    ERR_INVALID_AUTH_CREDENTIALS = -338,
1829    ERR_UNSUPPORTED_AUTH_SCHEME = -339,
1830    ERR_ENCODING_DETECTION_FAILED = -340,
1831    ERR_MISSING_AUTH_CREDENTIALS = -341,
1832    ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS = -342,
1833    ERR_MISCONFIGURED_AUTH_ENVIRONMENT = -343,
1834    ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS = -344,
1835    ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN = -345,
1836    ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH = -346,
1837    ERR_INCOMPLETE_HTTP2_HEADERS = -347,
1838    ERR_PAC_NOT_IN_DHCP = -348,
1839    ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION = -349,
1840    ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION = -350,
1841    ERR_HTTP2_SERVER_REFUSED_STREAM = -351,
1842    ERR_HTTP2_PING_FAILED = -352,
1843    ERR_CONTENT_LENGTH_MISMATCH = -354,
1844    ERR_INCOMPLETE_CHUNKED_ENCODING = -355,
1845    ERR_QUIC_PROTOCOL_ERROR = -356,
1846    ERR_RESPONSE_HEADERS_TRUNCATED = -357,
1847    ERR_QUIC_HANDSHAKE_FAILED = -358,
1848    ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY = -360,
1849    ERR_HTTP2_FLOW_CONTROL_ERROR = -361,
1850    ERR_HTTP2_FRAME_SIZE_ERROR = -362,
1851    ERR_HTTP2_COMPRESSION_ERROR = -363,
1852    ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION = -364,
1853    ERR_HTTP_1_1_REQUIRED = -365,
1854    ERR_PROXY_HTTP_1_1_REQUIRED = -366,
1855    ERR_PAC_SCRIPT_TERMINATED = -367,
1856    ERR_PROXY_REQUIRED = -368,
1857    ERR_INVALID_HTTP_RESPONSE = -370,
1858    ERR_CONTENT_DECODING_INIT_FAILED = -371,
1859    ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED = -372,
1860    ERR_TOO_MANY_RETRIES = -375,
1861    ERR_HTTP2_STREAM_CLOSED = -376,
1862    ERR_HTTP_RESPONSE_CODE_FAILURE = -379,
1863    ERR_QUIC_CERT_ROOT_NOT_KNOWN = -380,
1864    ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED = -381,
1865    ERR_TOO_MANY_ACCEPT_CH_RESTARTS = -382,
1866    ERR_INCONSISTENT_IP_ADDRESS_SPACE = -383,
1867    ERR_CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY = -384,
1868    ERR_BLOCKED_BY_LOCAL_NETWORK_ACCESS_CHECKS = -385,
1869    ERR_ZSTD_WINDOW_SIZE_TOO_BIG = -386,
1870    ERR_DICTIONARY_LOAD_FAILED = -387,
1871    ERR_UNEXPECTED_CONTENT_DICTIONARY_HEADER = -388,
1872    ERR_CACHE_MISS = -400,
1873    ERR_CACHE_READ_FAILURE = -401,
1874    ERR_CACHE_WRITE_FAILURE = -402,
1875    ERR_CACHE_OPERATION_NOT_SUPPORTED = -403,
1876    ERR_CACHE_OPEN_FAILURE = -404,
1877    ERR_CACHE_CREATE_FAILURE = -405,
1878    ERR_CACHE_RACE = -406,
1879    ERR_CACHE_CHECKSUM_READ_FAILURE = -407,
1880    ERR_CACHE_CHECKSUM_MISMATCH = -408,
1881    ERR_CACHE_LOCK_TIMEOUT = -409,
1882    ERR_CACHE_AUTH_FAILURE_AFTER_READ = -410,
1883    ERR_CACHE_ENTRY_NOT_SUITABLE = -411,
1884    ERR_CACHE_DOOM_FAILURE = -412,
1885    ERR_CACHE_OPEN_OR_CREATE_FAILURE = -413,
1886    ERR_INSECURE_RESPONSE = -501,
1887    ERR_NO_PRIVATE_KEY_FOR_CERT = -502,
1888    ERR_ADD_USER_CERT_FAILED = -503,
1889    ERR_INVALID_SIGNED_EXCHANGE = -504,
1890    ERR_INVALID_WEB_BUNDLE = -505,
1891    ERR_TRUST_TOKEN_OPERATION_FAILED = -506,
1892    ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST = -507,
1893    ERR_HTTPENGINE_PROVIDER_IN_USE = -508,
1894    ERR_PKCS12_IMPORT_BAD_PASSWORD = -701,
1895    ERR_PKCS12_IMPORT_FAILED = -702,
1896    ERR_IMPORT_CA_CERT_NOT_CA = -703,
1897    ERR_IMPORT_CERT_ALREADY_EXISTS = -704,
1898    ERR_IMPORT_CA_CERT_FAILED = -705,
1899    ERR_IMPORT_SERVER_CERT_FAILED = -706,
1900    ERR_PKCS12_IMPORT_INVALID_MAC = -707,
1901    ERR_PKCS12_IMPORT_INVALID_FILE = -708,
1902    ERR_PKCS12_IMPORT_UNSUPPORTED = -709,
1903    ERR_KEY_GENERATION_FAILED = -710,
1904    ERR_PRIVATE_KEY_EXPORT_FAILED = -712,
1905    ERR_SELF_SIGNED_CERT_GENERATION_FAILED = -713,
1906    ERR_CERT_DATABASE_CHANGED = -714,
1907    ERR_CERT_VERIFIER_CHANGED = -716,
1908    ERR_DNS_MALFORMED_RESPONSE = -800,
1909    ERR_DNS_SERVER_REQUIRES_TCP = -801,
1910    ERR_DNS_TIMED_OUT = -803,
1911    ERR_DNS_CACHE_MISS = -804,
1912    ERR_DNS_SEARCH_EMPTY = -805,
1913    ERR_DNS_SORT_ERROR = -806,
1914    ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED = -808,
1915    ERR_DNS_NAME_HTTPS_ONLY = -809,
1916    ERR_DNS_REQUEST_CANCELLED = -810,
1917    ERR_DNS_NO_MATCHING_SUPPORTED_ALPN = -811,
1918    ERR_DNS_SECURE_PROBE_RECORD_INVALID = -814,
1919    ERR_DNS_CACHE_INVALIDATION_IN_PROGRESS = -815,
1920    ERR_DNS_FORMAT_ERROR = -816,
1921    ERR_DNS_SERVER_FAILURE = -817,
1922    ERR_DNS_NOT_IMPLEMENTED = -818,
1923    ERR_DNS_REFUSED = -819,
1924    ERR_DNS_OTHER_FAILURE = -820,
1925    ERR_BLOB_INVALID_CONSTRUCTION_ARGUMENTS = -900,
1926    ERR_BLOB_OUT_OF_MEMORY = -901,
1927    ERR_BLOB_FILE_WRITE_FAILED = -902,
1928    ERR_BLOB_SOURCE_DIED_IN_TRANSIT = -903,
1929    ERR_BLOB_DEREFERENCED_WHILE_BUILDING = -904,
1930    ERR_BLOB_REFERENCED_BLOB_BROKEN = -905,
1931    ERR_BLOB_REFERENCED_FILE_UNAVAILABLE = -906,
1932}
1933#[repr(u32)]
1934#[non_exhaustive]
1935#[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"]
1936#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1937pub enum cef_cert_status_t {
1938    CERT_STATUS_NONE = 0,
1939    CERT_STATUS_COMMON_NAME_INVALID = 1,
1940    CERT_STATUS_DATE_INVALID = 2,
1941    CERT_STATUS_AUTHORITY_INVALID = 4,
1942    CERT_STATUS_NO_REVOCATION_MECHANISM = 16,
1943    CERT_STATUS_UNABLE_TO_CHECK_REVOCATION = 32,
1944    CERT_STATUS_REVOKED = 64,
1945    CERT_STATUS_INVALID = 128,
1946    CERT_STATUS_WEAK_SIGNATURE_ALGORITHM = 256,
1947    CERT_STATUS_NON_UNIQUE_NAME = 1024,
1948    CERT_STATUS_WEAK_KEY = 2048,
1949    CERT_STATUS_PINNED_KEY_MISSING = 8192,
1950    CERT_STATUS_NAME_CONSTRAINT_VIOLATION = 16384,
1951    CERT_STATUS_VALIDITY_TOO_LONG = 32768,
1952    CERT_STATUS_IS_EV = 65536,
1953    CERT_STATUS_REV_CHECKING_ENABLED = 131072,
1954    CERT_STATUS_SHA1_SIGNATURE_PRESENT = 524288,
1955    CERT_STATUS_CT_COMPLIANCE_FAILED = 1048576,
1956}
1957impl cef_resultcode_t {
1958    pub const CEF_RESULT_CODE_SANDBOX_FATAL_INTEGRITY: cef_resultcode_t =
1959        cef_resultcode_t::CEF_RESULT_CODE_SANDBOX_FATAL_FIRST;
1960}
1961#[repr(u32)]
1962#[non_exhaustive]
1963#[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"]
1964#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
1965pub enum cef_resultcode_t {
1966    CEF_RESULT_CODE_NORMAL_EXIT = 0,
1967    #[doc = " Process was killed by user or system."]
1968    CEF_RESULT_CODE_KILLED = 1,
1969    #[doc = " Process hung."]
1970    CEF_RESULT_CODE_HUNG = 2,
1971    #[doc = " A bad message caused the process termination."]
1972    CEF_RESULT_CODE_KILLED_BAD_MESSAGE = 3,
1973    #[doc = " The GPU process exited because initialization failed."]
1974    CEF_RESULT_CODE_GPU_DEAD_ON_ARRIVAL = 4,
1975    #[doc = " The GPU process exited because initialization failed."]
1976    CEF_RESULT_CODE_CHROME_FIRST = 5,
1977    #[doc = " The process is of an unknown type."]
1978    CEF_RESULT_CODE_BAD_PROCESS_TYPE = 6,
1979    #[doc = " A critical chrome file is missing."]
1980    CEF_RESULT_CODE_MISSING_DATA = 7,
1981    #[doc = " Command line parameter is not supported."]
1982    CEF_RESULT_CODE_UNSUPPORTED_PARAM = 13,
1983    #[doc = " The profile was in use on another host."]
1984    CEF_RESULT_CODE_PROFILE_IN_USE = 21,
1985    #[doc = " Failed to pack an extension via the command line."]
1986    CEF_RESULT_CODE_PACK_EXTENSION_ERROR = 22,
1987    #[doc = " The browser process exited early by passing the command line to another\n running browser."]
1988    CEF_RESULT_CODE_NORMAL_EXIT_PROCESS_NOTIFIED = 24,
1989    #[doc = " A browser process was sandboxed. This should never happen."]
1990    CEF_RESULT_CODE_INVALID_SANDBOX_STATE = 31,
1991    #[doc = " Cloud policy enrollment failed or was given up by user."]
1992    CEF_RESULT_CODE_CLOUD_POLICY_ENROLLMENT_FAILED = 32,
1993    #[doc = " The GPU process was terminated due to context lost."]
1994    CEF_RESULT_CODE_GPU_EXIT_ON_CONTEXT_LOST = 34,
1995    #[doc = " An early startup command was executed and the browser must exit."]
1996    CEF_RESULT_CODE_NORMAL_EXIT_PACK_EXTENSION_SUCCESS = 36,
1997    #[doc = " The browser process exited because system resources are exhausted. The\n system state can't be recovered and will be unstable."]
1998    CEF_RESULT_CODE_SYSTEM_RESOURCE_EXHAUSTED = 37,
1999    #[doc = " The browser process exited because it was re-launched without elevation."]
2000    CEF_RESULT_CODE_NORMAL_EXIT_AUTO_DE_ELEVATED = 38,
2001    #[doc = " Upon encountering a commit failure in a process, PartitionAlloc terminated\n another process deemed less important."]
2002    CEF_RESULT_CODE_TERMINATED_BY_OTHER_PROCESS_ON_COMMIT_FAILURE = 39,
2003    CEF_RESULT_CODE_CHROME_LAST = 40,
2004    CEF_RESULT_CODE_SANDBOX_FATAL_FIRST = 7006,
2005    #[doc = " Windows sandbox could not lower the token."]
2006    CEF_RESULT_CODE_SANDBOX_FATAL_DROPTOKEN = 7007,
2007    #[doc = " Windows sandbox failed to flush registry handles."]
2008    CEF_RESULT_CODE_SANDBOX_FATAL_FLUSHANDLES = 7008,
2009    #[doc = " Windows sandbox failed to forbid HCKU caching."]
2010    CEF_RESULT_CODE_SANDBOX_FATAL_CACHEDISABLE = 7009,
2011    #[doc = " Windows sandbox failed to close pending handles."]
2012    CEF_RESULT_CODE_SANDBOX_FATAL_CLOSEHANDLES = 7010,
2013    #[doc = " Windows sandbox could not set the mitigation policy."]
2014    CEF_RESULT_CODE_SANDBOX_FATAL_MITIGATION = 7011,
2015    #[doc = " Windows sandbox exceeded the job memory limit."]
2016    CEF_RESULT_CODE_SANDBOX_FATAL_MEMORY_EXCEEDED = 7012,
2017    #[doc = " Windows sandbox failed to warmup."]
2018    CEF_RESULT_CODE_SANDBOX_FATAL_WARMUP = 7013,
2019    #[doc = " Windows sandbox failed to warmup."]
2020    CEF_RESULT_CODE_SANDBOX_FATAL_BROKER_SHUTDOWN_HUNG = 7014,
2021    #[doc = " Windows sandbox failed to warmup."]
2022    CEF_RESULT_CODE_SANDBOX_FATAL_LAST = 7015,
2023    #[doc = " Windows sandbox failed to warmup."]
2024    CEF_RESULT_CODE_NUM_VALUES = 7016,
2025}
2026#[repr(u32)]
2027#[non_exhaustive]
2028#[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"]
2029#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2030pub enum cef_window_open_disposition_t {
2031    CEF_WOD_UNKNOWN = 0,
2032    #[doc = "\n Current tab. This is the default in most cases.\n"]
2033    CEF_WOD_CURRENT_TAB = 1,
2034    #[doc = "\n Indicates that only one tab with the url should exist in the same window.\n"]
2035    CEF_WOD_SINGLETON_TAB = 2,
2036    #[doc = "\n Shift key + Middle mouse button or meta/ctrl key while clicking.\n"]
2037    CEF_WOD_NEW_FOREGROUND_TAB = 3,
2038    #[doc = "\n Middle mouse button or meta/ctrl key while clicking.\n"]
2039    CEF_WOD_NEW_BACKGROUND_TAB = 4,
2040    #[doc = "\n New popup window.\n"]
2041    CEF_WOD_NEW_POPUP = 5,
2042    #[doc = "\n Shift key while clicking.\n"]
2043    CEF_WOD_NEW_WINDOW = 6,
2044    #[doc = "\n Alt key while clicking.\n"]
2045    CEF_WOD_SAVE_TO_DISK = 7,
2046    #[doc = "\n New off-the-record (incognito) window.\n"]
2047    CEF_WOD_OFF_THE_RECORD = 8,
2048    #[doc = "\n Special case error condition from the renderer.\n"]
2049    CEF_WOD_IGNORE_ACTION = 9,
2050    #[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"]
2051    CEF_WOD_SWITCH_TO_TAB = 10,
2052    #[doc = "\n Creates a new document picture-in-picture window showing a child WebView.\n"]
2053    CEF_WOD_NEW_PICTURE_IN_PICTURE = 11,
2054    #[doc = "\n Creates a new document picture-in-picture window showing a child WebView.\n"]
2055    CEF_WOD_NUM_VALUES = 12,
2056}
2057impl cef_drag_operations_mask_t {
2058    pub const DRAG_OPERATION_NONE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(0);
2059    pub const DRAG_OPERATION_COPY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(1);
2060    pub const DRAG_OPERATION_LINK: cef_drag_operations_mask_t = cef_drag_operations_mask_t(2);
2061    pub const DRAG_OPERATION_GENERIC: cef_drag_operations_mask_t = cef_drag_operations_mask_t(4);
2062    pub const DRAG_OPERATION_PRIVATE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(8);
2063    pub const DRAG_OPERATION_MOVE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(16);
2064    pub const DRAG_OPERATION_DELETE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(32);
2065    pub const DRAG_OPERATION_EVERY: cef_drag_operations_mask_t =
2066        cef_drag_operations_mask_t(4294967295);
2067}
2068impl ::std::ops::BitOr<cef_drag_operations_mask_t> for cef_drag_operations_mask_t {
2069    type Output = Self;
2070    #[inline]
2071    fn bitor(self, other: Self) -> Self {
2072        cef_drag_operations_mask_t(self.0 | other.0)
2073    }
2074}
2075impl ::std::ops::BitOrAssign for cef_drag_operations_mask_t {
2076    #[inline]
2077    fn bitor_assign(&mut self, rhs: cef_drag_operations_mask_t) {
2078        self.0 |= rhs.0;
2079    }
2080}
2081impl ::std::ops::BitAnd<cef_drag_operations_mask_t> for cef_drag_operations_mask_t {
2082    type Output = Self;
2083    #[inline]
2084    fn bitand(self, other: Self) -> Self {
2085        cef_drag_operations_mask_t(self.0 & other.0)
2086    }
2087}
2088impl ::std::ops::BitAndAssign for cef_drag_operations_mask_t {
2089    #[inline]
2090    fn bitand_assign(&mut self, rhs: cef_drag_operations_mask_t) {
2091        self.0 &= rhs.0;
2092    }
2093}
2094#[repr(transparent)]
2095#[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"]
2096#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2097pub struct cef_drag_operations_mask_t(pub ::std::os::raw::c_uint);
2098#[repr(u32)]
2099#[non_exhaustive]
2100#[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"]
2101#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2102pub enum cef_text_input_mode_t {
2103    CEF_TEXT_INPUT_MODE_DEFAULT = 0,
2104    CEF_TEXT_INPUT_MODE_NONE = 1,
2105    CEF_TEXT_INPUT_MODE_TEXT = 2,
2106    CEF_TEXT_INPUT_MODE_TEL = 3,
2107    CEF_TEXT_INPUT_MODE_URL = 4,
2108    CEF_TEXT_INPUT_MODE_EMAIL = 5,
2109    CEF_TEXT_INPUT_MODE_NUMERIC = 6,
2110    CEF_TEXT_INPUT_MODE_DECIMAL = 7,
2111    CEF_TEXT_INPUT_MODE_SEARCH = 8,
2112    CEF_TEXT_INPUT_MODE_NUM_VALUES = 9,
2113}
2114impl cef_v8_propertyattribute_t {
2115    #[doc = "\n Writeable, Enumerable, Configurable\n"]
2116    pub const V8_PROPERTY_ATTRIBUTE_NONE: cef_v8_propertyattribute_t =
2117        cef_v8_propertyattribute_t(0);
2118    #[doc = "\n Not writeable\n"]
2119    pub const V8_PROPERTY_ATTRIBUTE_READONLY: cef_v8_propertyattribute_t =
2120        cef_v8_propertyattribute_t(1);
2121    #[doc = "\n Not enumerable\n"]
2122    pub const V8_PROPERTY_ATTRIBUTE_DONTENUM: cef_v8_propertyattribute_t =
2123        cef_v8_propertyattribute_t(2);
2124    #[doc = "\n Not configurable\n"]
2125    pub const V8_PROPERTY_ATTRIBUTE_DONTDELETE: cef_v8_propertyattribute_t =
2126        cef_v8_propertyattribute_t(4);
2127}
2128impl ::std::ops::BitOr<cef_v8_propertyattribute_t> for cef_v8_propertyattribute_t {
2129    type Output = Self;
2130    #[inline]
2131    fn bitor(self, other: Self) -> Self {
2132        cef_v8_propertyattribute_t(self.0 | other.0)
2133    }
2134}
2135impl ::std::ops::BitOrAssign for cef_v8_propertyattribute_t {
2136    #[inline]
2137    fn bitor_assign(&mut self, rhs: cef_v8_propertyattribute_t) {
2138        self.0 |= rhs.0;
2139    }
2140}
2141impl ::std::ops::BitAnd<cef_v8_propertyattribute_t> for cef_v8_propertyattribute_t {
2142    type Output = Self;
2143    #[inline]
2144    fn bitand(self, other: Self) -> Self {
2145        cef_v8_propertyattribute_t(self.0 & other.0)
2146    }
2147}
2148impl ::std::ops::BitAndAssign for cef_v8_propertyattribute_t {
2149    #[inline]
2150    fn bitand_assign(&mut self, rhs: cef_v8_propertyattribute_t) {
2151        self.0 &= rhs.0;
2152    }
2153}
2154#[repr(transparent)]
2155#[doc = "\n V8 property attribute values.\n"]
2156#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2157pub struct cef_v8_propertyattribute_t(pub ::std::os::raw::c_uint);
2158#[repr(u32)]
2159#[non_exhaustive]
2160#[doc = "\n Post data elements may represent either bytes or files.\n"]
2161#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2162pub enum cef_postdataelement_type_t {
2163    PDE_TYPE_EMPTY = 0,
2164    PDE_TYPE_BYTES = 1,
2165    PDE_TYPE_FILE = 2,
2166    PDE_TYPE_NUM_VALUES = 3,
2167}
2168#[repr(u32)]
2169#[non_exhaustive]
2170#[doc = "\n Resource type for a request. These constants match their equivalents in\n Chromium's ResourceType and should not be renumbered.\n"]
2171#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2172pub enum cef_resource_type_t {
2173    #[doc = "\n Top level page.\n"]
2174    RT_MAIN_FRAME = 0,
2175    #[doc = "\n Frame or iframe.\n"]
2176    RT_SUB_FRAME = 1,
2177    #[doc = "\n CSS stylesheet.\n"]
2178    RT_STYLESHEET = 2,
2179    #[doc = "\n External script.\n"]
2180    RT_SCRIPT = 3,
2181    #[doc = "\n Image (jpg/gif/png/etc).\n"]
2182    RT_IMAGE = 4,
2183    #[doc = "\n Font.\n"]
2184    RT_FONT_RESOURCE = 5,
2185    #[doc = "\n Some other subresource. This is the default type if the actual type is\n unknown.\n"]
2186    RT_SUB_RESOURCE = 6,
2187    #[doc = "\n Object (or embed) tag for a plugin, or a resource that a plugin requested.\n"]
2188    RT_OBJECT = 7,
2189    #[doc = "\n Media resource.\n"]
2190    RT_MEDIA = 8,
2191    #[doc = "\n Main resource of a dedicated worker.\n"]
2192    RT_WORKER = 9,
2193    #[doc = "\n Main resource of a shared worker.\n"]
2194    RT_SHARED_WORKER = 10,
2195    #[doc = "\n Explicitly requested prefetch.\n"]
2196    RT_PREFETCH = 11,
2197    #[doc = "\n Favicon.\n"]
2198    RT_FAVICON = 12,
2199    #[doc = "\n XMLHttpRequest.\n"]
2200    RT_XHR = 13,
2201    #[doc = "\n A request for a \"<ping>\".\n"]
2202    RT_PING = 14,
2203    #[doc = "\n Main resource of a service worker.\n"]
2204    RT_SERVICE_WORKER = 15,
2205    #[doc = "\n A report of Content Security Policy violations.\n"]
2206    RT_CSP_REPORT = 16,
2207    #[doc = "\n A resource that a plugin requested.\n"]
2208    RT_PLUGIN_RESOURCE = 17,
2209    #[doc = "\n A main-frame service worker navigation preload request.\n"]
2210    RT_NAVIGATION_PRELOAD_MAIN_FRAME = 19,
2211    #[doc = "\n A sub-frame service worker navigation preload request.\n"]
2212    RT_NAVIGATION_PRELOAD_SUB_FRAME = 20,
2213    #[doc = "\n A sub-frame service worker navigation preload request.\n"]
2214    RT_NUM_VALUES = 21,
2215}
2216#[repr(u32)]
2217#[non_exhaustive]
2218#[doc = "\n Transition type for a request. Made up of one source value and 0 or more\n qualifiers.\n"]
2219#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2220pub enum cef_transition_type_t {
2221    #[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"]
2222    TT_LINK = 0,
2223    #[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"]
2224    TT_EXPLICIT = 1,
2225    #[doc = "\n User got to this page through a suggestion in the UI (for example, via the\n destinations page). Chrome style only.\n"]
2226    TT_AUTO_BOOKMARK = 2,
2227    #[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"]
2228    TT_AUTO_SUBFRAME = 3,
2229    #[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"]
2230    TT_MANUAL_SUBFRAME = 4,
2231    #[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"]
2232    TT_GENERATED = 5,
2233    #[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"]
2234    TT_AUTO_TOPLEVEL = 6,
2235    #[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"]
2236    TT_FORM_SUBMIT = 7,
2237    #[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"]
2238    TT_RELOAD = 8,
2239    #[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"]
2240    TT_KEYWORD = 9,
2241    #[doc = "\n Corresponds to a visit generated for a keyword. See description of\n TT_KEYWORD for more details. Chrome style only.\n"]
2242    TT_KEYWORD_GENERATED = 10,
2243    #[doc = "\n Corresponds to a visit generated for a keyword. See description of\n TT_KEYWORD for more details. Chrome style only.\n"]
2244    TT_NUM_VALUES = 11,
2245    #[doc = "\n General mask defining the bits used for the source values.\n"]
2246    TT_SOURCE_MASK = 255,
2247    #[doc = "\n Attempted to visit a URL but was blocked.\n"]
2248    TT_BLOCKED_FLAG = 8388608,
2249    #[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"]
2250    TT_FORWARD_BACK_FLAG = 16777216,
2251    #[doc = "\n Loaded a URL directly via CreateBrowser, LoadURL or LoadRequest.\n"]
2252    TT_DIRECT_LOAD_FLAG = 33554432,
2253    #[doc = "\n User is navigating to the home page. Chrome style only.\n"]
2254    TT_HOME_PAGE_FLAG = 67108864,
2255    #[doc = "\n The transition originated from an external application; the exact\n definition of this is embedder dependent. Chrome style only.\n"]
2256    TT_FROM_API_FLAG = 134217728,
2257    #[doc = "\n The beginning of a navigation chain.\n"]
2258    TT_CHAIN_START_FLAG = 268435456,
2259    #[doc = "\n The last transition in a redirect chain.\n"]
2260    TT_CHAIN_END_FLAG = 536870912,
2261    #[doc = "\n Redirects caused by JavaScript or a meta refresh tag on the page.\n"]
2262    TT_CLIENT_REDIRECT_FLAG = 1073741824,
2263    #[doc = "\n Redirects sent from the server by HTTP headers.\n"]
2264    TT_SERVER_REDIRECT_FLAG = 2147483648,
2265    #[doc = "\n Used to test whether a transition involves a redirect.\n"]
2266    TT_IS_REDIRECT_MASK = 3221225472,
2267    #[doc = "\n General mask defining the bits used for the qualifiers.\n"]
2268    TT_QUALIFIER_MASK = 4294967040,
2269}
2270impl cef_urlrequest_flags_t {
2271    #[doc = "\n Default behavior.\n"]
2272    pub const UR_FLAG_NONE: cef_urlrequest_flags_t = cef_urlrequest_flags_t(0);
2273    #[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"]
2274    pub const UR_FLAG_SKIP_CACHE: cef_urlrequest_flags_t = cef_urlrequest_flags_t(1);
2275    #[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"]
2276    pub const UR_FLAG_ONLY_FROM_CACHE: cef_urlrequest_flags_t = cef_urlrequest_flags_t(2);
2277    #[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"]
2278    pub const UR_FLAG_DISABLE_CACHE: cef_urlrequest_flags_t = cef_urlrequest_flags_t(4);
2279    #[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"]
2280    pub const UR_FLAG_ALLOW_STORED_CREDENTIALS: cef_urlrequest_flags_t = cef_urlrequest_flags_t(8);
2281    #[doc = "\n If set upload progress events will be generated when a request has a body.\n"]
2282    pub const UR_FLAG_REPORT_UPLOAD_PROGRESS: cef_urlrequest_flags_t = cef_urlrequest_flags_t(16);
2283    #[doc = "\n If set the CefURLRequestClient::OnDownloadData method will not be called.\n"]
2284    pub const UR_FLAG_NO_DOWNLOAD_DATA: cef_urlrequest_flags_t = cef_urlrequest_flags_t(32);
2285    #[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"]
2286    pub const UR_FLAG_NO_RETRY_ON_5XX: cef_urlrequest_flags_t = cef_urlrequest_flags_t(64);
2287    #[doc = "\n If set 3XX responses will cause the fetch to halt immediately rather than\n continue through the redirect.\n"]
2288    pub const UR_FLAG_STOP_ON_REDIRECT: cef_urlrequest_flags_t = cef_urlrequest_flags_t(128);
2289}
2290impl ::std::ops::BitOr<cef_urlrequest_flags_t> for cef_urlrequest_flags_t {
2291    type Output = Self;
2292    #[inline]
2293    fn bitor(self, other: Self) -> Self {
2294        cef_urlrequest_flags_t(self.0 | other.0)
2295    }
2296}
2297impl ::std::ops::BitOrAssign for cef_urlrequest_flags_t {
2298    #[inline]
2299    fn bitor_assign(&mut self, rhs: cef_urlrequest_flags_t) {
2300        self.0 |= rhs.0;
2301    }
2302}
2303impl ::std::ops::BitAnd<cef_urlrequest_flags_t> for cef_urlrequest_flags_t {
2304    type Output = Self;
2305    #[inline]
2306    fn bitand(self, other: Self) -> Self {
2307        cef_urlrequest_flags_t(self.0 & other.0)
2308    }
2309}
2310impl ::std::ops::BitAndAssign for cef_urlrequest_flags_t {
2311    #[inline]
2312    fn bitand_assign(&mut self, rhs: cef_urlrequest_flags_t) {
2313        self.0 &= rhs.0;
2314    }
2315}
2316#[repr(transparent)]
2317#[doc = "\n Flags used to customize the behavior of CefURLRequest.\n"]
2318#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2319pub struct cef_urlrequest_flags_t(pub ::std::os::raw::c_uint);
2320#[repr(u32)]
2321#[non_exhaustive]
2322#[doc = "\n Flags that represent CefURLRequest status.\n"]
2323#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2324pub enum cef_urlrequest_status_t {
2325    #[doc = "\n Unknown status.\n"]
2326    UR_UNKNOWN = 0,
2327    #[doc = "\n Request succeeded.\n"]
2328    UR_SUCCESS = 1,
2329    #[doc = "\n An IO request is pending, and the caller will be informed when it is\n completed.\n"]
2330    UR_IO_PENDING = 2,
2331    #[doc = "\n Request was canceled programatically.\n"]
2332    UR_CANCELED = 3,
2333    #[doc = "\n Request failed for some reason.\n"]
2334    UR_FAILED = 4,
2335    #[doc = "\n Request failed for some reason.\n"]
2336    UR_NUM_VALUES = 5,
2337}
2338#[doc = " Structure representing a draggable region.\n"]
2339#[repr(C)]
2340#[derive(Debug, Copy, Clone)]
2341pub struct _cef_draggable_region_t {
2342    #[doc = "\n Bounds of the region.\n"]
2343    pub bounds: cef_rect_t,
2344    #[doc = "\n True (1) this this region is draggable and false (0) otherwise.\n"]
2345    pub draggable: ::std::os::raw::c_int,
2346}
2347#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2348const _: () = {
2349    ["Size of _cef_draggable_region_t"][::std::mem::size_of::<_cef_draggable_region_t>() - 20usize];
2350    ["Alignment of _cef_draggable_region_t"]
2351        [::std::mem::align_of::<_cef_draggable_region_t>() - 4usize];
2352    ["Offset of field: _cef_draggable_region_t::bounds"]
2353        [::std::mem::offset_of!(_cef_draggable_region_t, bounds) - 0usize];
2354    ["Offset of field: _cef_draggable_region_t::draggable"]
2355        [::std::mem::offset_of!(_cef_draggable_region_t, draggable) - 16usize];
2356};
2357#[doc = " Structure representing a draggable region.\n"]
2358pub type cef_draggable_region_t = _cef_draggable_region_t;
2359#[repr(u32)]
2360#[non_exhaustive]
2361#[doc = "\n Existing process IDs.\n"]
2362#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2363pub enum cef_process_id_t {
2364    #[doc = "\n Browser process.\n"]
2365    PID_BROWSER = 0,
2366    #[doc = "\n Renderer process.\n"]
2367    PID_RENDERER = 1,
2368}
2369#[repr(u32)]
2370#[non_exhaustive]
2371#[doc = "\n Existing thread IDs.\n"]
2372#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2373pub enum cef_thread_id_t {
2374    #[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"]
2375    TID_UI = 0,
2376    #[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"]
2377    TID_FILE_BACKGROUND = 1,
2378    #[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"]
2379    TID_FILE_USER_VISIBLE = 2,
2380    #[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"]
2381    TID_FILE_USER_BLOCKING = 3,
2382    #[doc = "\n Used to launch and terminate browser processes.\n"]
2383    TID_PROCESS_LAUNCHER = 4,
2384    #[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"]
2385    TID_IO = 5,
2386    #[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"]
2387    TID_RENDERER = 6,
2388    #[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"]
2389    TID_NUM_VALUES = 7,
2390}
2391#[repr(u32)]
2392#[non_exhaustive]
2393#[doc = "\n Thread priority values listed in increasing order of importance.\n"]
2394#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2395pub enum cef_thread_priority_t {
2396    #[doc = "\n Suitable for threads that shouldn't disrupt high priority work.\n"]
2397    TP_BACKGROUND = 0,
2398    #[doc = "\n Default priority level.\n"]
2399    TP_NORMAL = 1,
2400    #[doc = "\n Suitable for threads which generate data for the display (at ~60Hz).\n"]
2401    TP_DISPLAY = 2,
2402    #[doc = "\n Suitable for low-latency, glitch-resistant audio.\n"]
2403    TP_REALTIME_AUDIO = 3,
2404    #[doc = "\n Suitable for low-latency, glitch-resistant audio.\n"]
2405    TP_NUM_VALUES = 4,
2406}
2407#[repr(u32)]
2408#[non_exhaustive]
2409#[doc = "\n Message loop types. Indicates the set of asynchronous events that a message\n loop can process.\n"]
2410#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2411pub enum cef_message_loop_type_t {
2412    #[doc = "\n Supports tasks and timers.\n"]
2413    ML_TYPE_DEFAULT = 0,
2414    #[doc = "\n Supports tasks, timers and native UI events (e.g. Windows messages).\n"]
2415    ML_TYPE_UI = 1,
2416    #[doc = "\n Supports tasks, timers and asynchronous IO events.\n"]
2417    ML_TYPE_IO = 2,
2418    #[doc = "\n Supports tasks, timers and asynchronous IO events.\n"]
2419    ML_NUM_VALUES = 3,
2420}
2421#[repr(u32)]
2422#[non_exhaustive]
2423#[doc = "\n Windows COM initialization mode. Specifies how COM will be initialized for a\n new thread.\n"]
2424#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2425pub enum cef_com_init_mode_t {
2426    #[doc = "\n No COM initialization.\n"]
2427    COM_INIT_MODE_NONE = 0,
2428    #[doc = "\n Initialize COM using single-threaded apartments.\n"]
2429    COM_INIT_MODE_STA = 1,
2430    #[doc = "\n Initialize COM using multi-threaded apartments.\n"]
2431    COM_INIT_MODE_MTA = 2,
2432}
2433#[repr(u32)]
2434#[non_exhaustive]
2435#[doc = "\n Supported value types.\n"]
2436#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2437pub enum cef_value_type_t {
2438    VTYPE_INVALID = 0,
2439    VTYPE_NULL = 1,
2440    VTYPE_BOOL = 2,
2441    VTYPE_INT = 3,
2442    VTYPE_DOUBLE = 4,
2443    VTYPE_STRING = 5,
2444    VTYPE_BINARY = 6,
2445    VTYPE_DICTIONARY = 7,
2446    VTYPE_LIST = 8,
2447    VTYPE_NUM_VALUES = 9,
2448}
2449#[repr(u32)]
2450#[non_exhaustive]
2451#[doc = "\n Supported JavaScript dialog types.\n"]
2452#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2453pub enum cef_jsdialog_type_t {
2454    JSDIALOGTYPE_ALERT = 0,
2455    JSDIALOGTYPE_CONFIRM = 1,
2456    JSDIALOGTYPE_PROMPT = 2,
2457    JSDIALOGTYPE_NUM_VALUES = 3,
2458}
2459#[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"]
2460#[repr(C)]
2461#[derive(Debug, Copy, Clone)]
2462pub struct _cef_screen_info_t {
2463    #[doc = "\n Size of this structure.\n"]
2464    pub size: usize,
2465    #[doc = "\n Device scale factor. Specifies the ratio between physical and logical\n pixels.\n"]
2466    pub device_scale_factor: f32,
2467    #[doc = "\n The screen depth in bits per pixel.\n"]
2468    pub depth: ::std::os::raw::c_int,
2469    #[doc = "\n The bits per color component. This assumes that the colors are balanced\n equally.\n"]
2470    pub depth_per_component: ::std::os::raw::c_int,
2471    #[doc = "\n This can be true for black and white printers.\n"]
2472    pub is_monochrome: ::std::os::raw::c_int,
2473    #[doc = " The |rect| and |available_rect| properties are used to determine the\n available surface for rendering popup views.\n"]
2474    pub rect: cef_rect_t,
2475    #[doc = " The |rect| and |available_rect| properties are used to determine the\n available surface for rendering popup views.\n"]
2476    pub available_rect: cef_rect_t,
2477}
2478#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2479const _: () = {
2480    ["Size of _cef_screen_info_t"][::std::mem::size_of::<_cef_screen_info_t>() - 56usize];
2481    ["Alignment of _cef_screen_info_t"][::std::mem::align_of::<_cef_screen_info_t>() - 8usize];
2482    ["Offset of field: _cef_screen_info_t::size"]
2483        [::std::mem::offset_of!(_cef_screen_info_t, size) - 0usize];
2484    ["Offset of field: _cef_screen_info_t::device_scale_factor"]
2485        [::std::mem::offset_of!(_cef_screen_info_t, device_scale_factor) - 8usize];
2486    ["Offset of field: _cef_screen_info_t::depth"]
2487        [::std::mem::offset_of!(_cef_screen_info_t, depth) - 12usize];
2488    ["Offset of field: _cef_screen_info_t::depth_per_component"]
2489        [::std::mem::offset_of!(_cef_screen_info_t, depth_per_component) - 16usize];
2490    ["Offset of field: _cef_screen_info_t::is_monochrome"]
2491        [::std::mem::offset_of!(_cef_screen_info_t, is_monochrome) - 20usize];
2492    ["Offset of field: _cef_screen_info_t::rect"]
2493        [::std::mem::offset_of!(_cef_screen_info_t, rect) - 24usize];
2494    ["Offset of field: _cef_screen_info_t::available_rect"]
2495        [::std::mem::offset_of!(_cef_screen_info_t, available_rect) - 40usize];
2496};
2497#[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"]
2498pub type cef_screen_info_t = _cef_screen_info_t;
2499#[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"]
2500#[repr(C)]
2501#[derive(Debug, Copy, Clone)]
2502pub struct _cef_linux_window_properties_t {
2503    #[doc = "\n Size of this structure.\n"]
2504    pub size: usize,
2505    #[doc = "\n Main window's Wayland's app_id\n"]
2506    pub wayland_app_id: cef_string_t,
2507    #[doc = "\n Main window's WM_CLASS_CLASS in X11\n"]
2508    pub wm_class_class: cef_string_t,
2509    #[doc = "\n Main window's WM_CLASS_NAME in X11\n"]
2510    pub wm_class_name: cef_string_t,
2511    #[doc = "\n Main window's WM_WINDOW_ROLE in X11\n"]
2512    pub wm_role_name: cef_string_t,
2513}
2514#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2515const _: () = {
2516    ["Size of _cef_linux_window_properties_t"]
2517        [::std::mem::size_of::<_cef_linux_window_properties_t>() - 104usize];
2518    ["Alignment of _cef_linux_window_properties_t"]
2519        [::std::mem::align_of::<_cef_linux_window_properties_t>() - 8usize];
2520    ["Offset of field: _cef_linux_window_properties_t::size"]
2521        [::std::mem::offset_of!(_cef_linux_window_properties_t, size) - 0usize];
2522    ["Offset of field: _cef_linux_window_properties_t::wayland_app_id"]
2523        [::std::mem::offset_of!(_cef_linux_window_properties_t, wayland_app_id) - 8usize];
2524    ["Offset of field: _cef_linux_window_properties_t::wm_class_class"]
2525        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_class_class) - 32usize];
2526    ["Offset of field: _cef_linux_window_properties_t::wm_class_name"]
2527        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_class_name) - 56usize];
2528    ["Offset of field: _cef_linux_window_properties_t::wm_role_name"]
2529        [::std::mem::offset_of!(_cef_linux_window_properties_t, wm_role_name) - 80usize];
2530};
2531#[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"]
2532pub type cef_linux_window_properties_t = _cef_linux_window_properties_t;
2533impl cef_menu_id_t {
2534    pub const MENU_ID_SPELLCHECK_SUGGESTION_LAST: cef_menu_id_t =
2535        cef_menu_id_t::MENU_ID_SPELLCHECK_SUGGESTION_4;
2536}
2537#[repr(u32)]
2538#[non_exhaustive]
2539#[doc = "\n Supported menu IDs. Non-English translations can be provided for the\n IDS_MENU_* strings in CefResourceBundleHandler::GetLocalizedString().\n"]
2540#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2541pub enum cef_menu_id_t {
2542    MENU_ID_BACK = 100,
2543    MENU_ID_FORWARD = 101,
2544    MENU_ID_RELOAD = 102,
2545    MENU_ID_RELOAD_NOCACHE = 103,
2546    MENU_ID_STOPLOAD = 104,
2547    MENU_ID_UNDO = 110,
2548    MENU_ID_REDO = 111,
2549    MENU_ID_CUT = 112,
2550    MENU_ID_COPY = 113,
2551    MENU_ID_PASTE = 114,
2552    MENU_ID_PASTE_MATCH_STYLE = 115,
2553    MENU_ID_DELETE = 116,
2554    MENU_ID_SELECT_ALL = 117,
2555    MENU_ID_FIND = 130,
2556    MENU_ID_PRINT = 131,
2557    MENU_ID_VIEW_SOURCE = 132,
2558    MENU_ID_SPELLCHECK_SUGGESTION_0 = 200,
2559    MENU_ID_SPELLCHECK_SUGGESTION_1 = 201,
2560    MENU_ID_SPELLCHECK_SUGGESTION_2 = 202,
2561    MENU_ID_SPELLCHECK_SUGGESTION_3 = 203,
2562    MENU_ID_SPELLCHECK_SUGGESTION_4 = 204,
2563    MENU_ID_NO_SPELLING_SUGGESTIONS = 205,
2564    MENU_ID_ADD_TO_DICTIONARY = 206,
2565    MENU_ID_CUSTOM_FIRST = 220,
2566    MENU_ID_CUSTOM_LAST = 250,
2567    MENU_ID_USER_FIRST = 26500,
2568    MENU_ID_USER_LAST = 28500,
2569}
2570#[repr(u32)]
2571#[non_exhaustive]
2572#[doc = "\n Mouse button types.\n"]
2573#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2574pub enum cef_mouse_button_type_t {
2575    MBT_LEFT = 0,
2576    MBT_MIDDLE = 1,
2577    MBT_RIGHT = 2,
2578}
2579#[doc = "\n Structure representing mouse event information.\n"]
2580#[repr(C)]
2581#[derive(Debug, Copy, Clone)]
2582pub struct _cef_mouse_event_t {
2583    #[doc = "\n X coordinate relative to the left side of the view.\n"]
2584    pub x: ::std::os::raw::c_int,
2585    #[doc = "\n Y coordinate relative to the top side of the view.\n"]
2586    pub y: ::std::os::raw::c_int,
2587    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
2588    pub modifiers: u32,
2589}
2590#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2591const _: () = {
2592    ["Size of _cef_mouse_event_t"][::std::mem::size_of::<_cef_mouse_event_t>() - 12usize];
2593    ["Alignment of _cef_mouse_event_t"][::std::mem::align_of::<_cef_mouse_event_t>() - 4usize];
2594    ["Offset of field: _cef_mouse_event_t::x"]
2595        [::std::mem::offset_of!(_cef_mouse_event_t, x) - 0usize];
2596    ["Offset of field: _cef_mouse_event_t::y"]
2597        [::std::mem::offset_of!(_cef_mouse_event_t, y) - 4usize];
2598    ["Offset of field: _cef_mouse_event_t::modifiers"]
2599        [::std::mem::offset_of!(_cef_mouse_event_t, modifiers) - 8usize];
2600};
2601#[doc = "\n Structure representing mouse event information.\n"]
2602pub type cef_mouse_event_t = _cef_mouse_event_t;
2603#[repr(u32)]
2604#[non_exhaustive]
2605#[doc = "\n Touch points states types.\n"]
2606#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2607pub enum cef_touch_event_type_t {
2608    CEF_TET_RELEASED = 0,
2609    CEF_TET_PRESSED = 1,
2610    CEF_TET_MOVED = 2,
2611    CEF_TET_CANCELLED = 3,
2612}
2613#[repr(u32)]
2614#[non_exhaustive]
2615#[doc = "\n The device type that caused the event.\n"]
2616#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2617pub enum cef_pointer_type_t {
2618    CEF_POINTER_TYPE_TOUCH = 0,
2619    CEF_POINTER_TYPE_MOUSE = 1,
2620    CEF_POINTER_TYPE_PEN = 2,
2621    CEF_POINTER_TYPE_ERASER = 3,
2622    CEF_POINTER_TYPE_UNKNOWN = 4,
2623}
2624#[doc = "\n Structure representing touch event information.\n"]
2625#[repr(C)]
2626#[derive(Debug, Copy, Clone)]
2627pub struct _cef_touch_event_t {
2628    #[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"]
2629    pub id: ::std::os::raw::c_int,
2630    #[doc = "\n X coordinate relative to the left side of the view.\n"]
2631    pub x: f32,
2632    #[doc = "\n Y coordinate relative to the top side of the view.\n"]
2633    pub y: f32,
2634    #[doc = "\n X radius in pixels. Set to 0 if not applicable.\n"]
2635    pub radius_x: f32,
2636    #[doc = "\n Y radius in pixels. Set to 0 if not applicable.\n"]
2637    pub radius_y: f32,
2638    #[doc = "\n Rotation angle in radians. Set to 0 if not applicable.\n"]
2639    pub rotation_angle: f32,
2640    #[doc = "\n The normalized pressure of the pointer input in the range of [0,1].\n Set to 0 if not applicable.\n"]
2641    pub pressure: f32,
2642    #[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"]
2643    pub type_: cef_touch_event_type_t,
2644    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
2645    pub modifiers: u32,
2646    #[doc = "\n The device type that caused the event.\n"]
2647    pub pointer_type: cef_pointer_type_t,
2648}
2649#[allow(clippy::unnecessary_operation, clippy::identity_op)]
2650const _: () = {
2651    ["Size of _cef_touch_event_t"][::std::mem::size_of::<_cef_touch_event_t>() - 40usize];
2652    ["Alignment of _cef_touch_event_t"][::std::mem::align_of::<_cef_touch_event_t>() - 4usize];
2653    ["Offset of field: _cef_touch_event_t::id"]
2654        [::std::mem::offset_of!(_cef_touch_event_t, id) - 0usize];
2655    ["Offset of field: _cef_touch_event_t::x"]
2656        [::std::mem::offset_of!(_cef_touch_event_t, x) - 4usize];
2657    ["Offset of field: _cef_touch_event_t::y"]
2658        [::std::mem::offset_of!(_cef_touch_event_t, y) - 8usize];
2659    ["Offset of field: _cef_touch_event_t::radius_x"]
2660        [::std::mem::offset_of!(_cef_touch_event_t, radius_x) - 12usize];
2661    ["Offset of field: _cef_touch_event_t::radius_y"]
2662        [::std::mem::offset_of!(_cef_touch_event_t, radius_y) - 16usize];
2663    ["Offset of field: _cef_touch_event_t::rotation_angle"]
2664        [::std::mem::offset_of!(_cef_touch_event_t, rotation_angle) - 20usize];
2665    ["Offset of field: _cef_touch_event_t::pressure"]
2666        [::std::mem::offset_of!(_cef_touch_event_t, pressure) - 24usize];
2667    ["Offset of field: _cef_touch_event_t::type_"]
2668        [::std::mem::offset_of!(_cef_touch_event_t, type_) - 28usize];
2669    ["Offset of field: _cef_touch_event_t::modifiers"]
2670        [::std::mem::offset_of!(_cef_touch_event_t, modifiers) - 32usize];
2671    ["Offset of field: _cef_touch_event_t::pointer_type"]
2672        [::std::mem::offset_of!(_cef_touch_event_t, pointer_type) - 36usize];
2673};
2674#[doc = "\n Structure representing touch event information.\n"]
2675pub type cef_touch_event_t = _cef_touch_event_t;
2676#[repr(u32)]
2677#[non_exhaustive]
2678#[doc = "\n Paint element types.\n"]
2679#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2680pub enum cef_paint_element_type_t {
2681    PET_VIEW = 0,
2682    PET_POPUP = 1,
2683}
2684impl cef_event_flags_t {
2685    pub const EVENTFLAG_NONE: cef_event_flags_t = cef_event_flags_t(0);
2686    pub const EVENTFLAG_CAPS_LOCK_ON: cef_event_flags_t = cef_event_flags_t(1);
2687    pub const EVENTFLAG_SHIFT_DOWN: cef_event_flags_t = cef_event_flags_t(2);
2688    pub const EVENTFLAG_CONTROL_DOWN: cef_event_flags_t = cef_event_flags_t(4);
2689    pub const EVENTFLAG_ALT_DOWN: cef_event_flags_t = cef_event_flags_t(8);
2690    pub const EVENTFLAG_LEFT_MOUSE_BUTTON: cef_event_flags_t = cef_event_flags_t(16);
2691    pub const EVENTFLAG_MIDDLE_MOUSE_BUTTON: cef_event_flags_t = cef_event_flags_t(32);
2692    pub const EVENTFLAG_RIGHT_MOUSE_BUTTON: cef_event_flags_t = cef_event_flags_t(64);
2693    #[doc = " Mac OS-X command key."]
2694    pub const EVENTFLAG_COMMAND_DOWN: cef_event_flags_t = cef_event_flags_t(128);
2695    #[doc = " Mac OS-X command key."]
2696    pub const EVENTFLAG_NUM_LOCK_ON: cef_event_flags_t = cef_event_flags_t(256);
2697    #[doc = " Mac OS-X command key."]
2698    pub const EVENTFLAG_IS_KEY_PAD: cef_event_flags_t = cef_event_flags_t(512);
2699    #[doc = " Mac OS-X command key."]
2700    pub const EVENTFLAG_IS_LEFT: cef_event_flags_t = cef_event_flags_t(1024);
2701    #[doc = " Mac OS-X command key."]
2702    pub const EVENTFLAG_IS_RIGHT: cef_event_flags_t = cef_event_flags_t(2048);
2703    #[doc = " Mac OS-X command key."]
2704    pub const EVENTFLAG_ALTGR_DOWN: cef_event_flags_t = cef_event_flags_t(4096);
2705    #[doc = " Mac OS-X command key."]
2706    pub const EVENTFLAG_IS_REPEAT: cef_event_flags_t = cef_event_flags_t(8192);
2707    #[doc = " Mac OS-X command key."]
2708    pub const EVENTFLAG_PRECISION_SCROLLING_DELTA: cef_event_flags_t = cef_event_flags_t(16384);
2709    #[doc = " Mac OS-X command key."]
2710    pub const EVENTFLAG_SCROLL_BY_PAGE: cef_event_flags_t = cef_event_flags_t(32768);
2711}
2712impl ::std::ops::BitOr<cef_event_flags_t> for cef_event_flags_t {
2713    type Output = Self;
2714    #[inline]
2715    fn bitor(self, other: Self) -> Self {
2716        cef_event_flags_t(self.0 | other.0)
2717    }
2718}
2719impl ::std::ops::BitOrAssign for cef_event_flags_t {
2720    #[inline]
2721    fn bitor_assign(&mut self, rhs: cef_event_flags_t) {
2722        self.0 |= rhs.0;
2723    }
2724}
2725impl ::std::ops::BitAnd<cef_event_flags_t> for cef_event_flags_t {
2726    type Output = Self;
2727    #[inline]
2728    fn bitand(self, other: Self) -> Self {
2729        cef_event_flags_t(self.0 & other.0)
2730    }
2731}
2732impl ::std::ops::BitAndAssign for cef_event_flags_t {
2733    #[inline]
2734    fn bitand_assign(&mut self, rhs: cef_event_flags_t) {
2735        self.0 &= rhs.0;
2736    }
2737}
2738#[repr(transparent)]
2739#[doc = "\n Supported event bit flags.\n"]
2740#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2741pub struct cef_event_flags_t(pub ::std::os::raw::c_uint);
2742#[repr(u32)]
2743#[non_exhaustive]
2744#[doc = "\n Supported menu item types.\n"]
2745#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2746pub enum cef_menu_item_type_t {
2747    MENUITEMTYPE_NONE = 0,
2748    MENUITEMTYPE_COMMAND = 1,
2749    MENUITEMTYPE_CHECK = 2,
2750    MENUITEMTYPE_RADIO = 3,
2751    MENUITEMTYPE_SEPARATOR = 4,
2752    MENUITEMTYPE_SUBMENU = 5,
2753}
2754impl cef_context_menu_type_flags_t {
2755    #[doc = "\n No node is selected.\n"]
2756    pub const CM_TYPEFLAG_NONE: cef_context_menu_type_flags_t = cef_context_menu_type_flags_t(0);
2757    #[doc = "\n The top page is selected.\n"]
2758    pub const CM_TYPEFLAG_PAGE: cef_context_menu_type_flags_t = cef_context_menu_type_flags_t(1);
2759    #[doc = "\n A subframe page is selected.\n"]
2760    pub const CM_TYPEFLAG_FRAME: cef_context_menu_type_flags_t = cef_context_menu_type_flags_t(2);
2761    #[doc = "\n A link is selected.\n"]
2762    pub const CM_TYPEFLAG_LINK: cef_context_menu_type_flags_t = cef_context_menu_type_flags_t(4);
2763    #[doc = "\n A media node is selected.\n"]
2764    pub const CM_TYPEFLAG_MEDIA: cef_context_menu_type_flags_t = cef_context_menu_type_flags_t(8);
2765    #[doc = "\n There is a textual or mixed selection that is selected.\n"]
2766    pub const CM_TYPEFLAG_SELECTION: cef_context_menu_type_flags_t =
2767        cef_context_menu_type_flags_t(16);
2768    #[doc = "\n An editable element is selected.\n"]
2769    pub const CM_TYPEFLAG_EDITABLE: cef_context_menu_type_flags_t =
2770        cef_context_menu_type_flags_t(32);
2771}
2772impl ::std::ops::BitOr<cef_context_menu_type_flags_t> for cef_context_menu_type_flags_t {
2773    type Output = Self;
2774    #[inline]
2775    fn bitor(self, other: Self) -> Self {
2776        cef_context_menu_type_flags_t(self.0 | other.0)
2777    }
2778}
2779impl ::std::ops::BitOrAssign for cef_context_menu_type_flags_t {
2780    #[inline]
2781    fn bitor_assign(&mut self, rhs: cef_context_menu_type_flags_t) {
2782        self.0 |= rhs.0;
2783    }
2784}
2785impl ::std::ops::BitAnd<cef_context_menu_type_flags_t> for cef_context_menu_type_flags_t {
2786    type Output = Self;
2787    #[inline]
2788    fn bitand(self, other: Self) -> Self {
2789        cef_context_menu_type_flags_t(self.0 & other.0)
2790    }
2791}
2792impl ::std::ops::BitAndAssign for cef_context_menu_type_flags_t {
2793    #[inline]
2794    fn bitand_assign(&mut self, rhs: cef_context_menu_type_flags_t) {
2795        self.0 &= rhs.0;
2796    }
2797}
2798#[repr(transparent)]
2799#[doc = "\n Supported context menu type flags.\n"]
2800#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2801pub struct cef_context_menu_type_flags_t(pub ::std::os::raw::c_uint);
2802#[repr(u32)]
2803#[non_exhaustive]
2804#[doc = "\n Supported context menu media types. These constants match their equivalents\n in Chromium's ContextMenuDataMediaType and should not be renumbered.\n"]
2805#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2806pub enum cef_context_menu_media_type_t {
2807    #[doc = "\n No special node is in context.\n"]
2808    CM_MEDIATYPE_NONE = 0,
2809    #[doc = "\n An image node is selected.\n"]
2810    CM_MEDIATYPE_IMAGE = 1,
2811    #[doc = "\n A video node is selected.\n"]
2812    CM_MEDIATYPE_VIDEO = 2,
2813    #[doc = "\n An audio node is selected.\n"]
2814    CM_MEDIATYPE_AUDIO = 3,
2815    #[doc = "\n An canvas node is selected.\n"]
2816    CM_MEDIATYPE_CANVAS = 4,
2817    #[doc = "\n A file node is selected.\n"]
2818    CM_MEDIATYPE_FILE = 5,
2819    #[doc = "\n A plugin node is selected.\n"]
2820    CM_MEDIATYPE_PLUGIN = 6,
2821    #[doc = "\n A plugin node is selected.\n"]
2822    CM_MEDIATYPE_NUM_VALUES = 7,
2823}
2824impl cef_context_menu_media_state_flags_t {
2825    pub const CM_MEDIAFLAG_NONE: cef_context_menu_media_state_flags_t =
2826        cef_context_menu_media_state_flags_t(0);
2827    pub const CM_MEDIAFLAG_IN_ERROR: cef_context_menu_media_state_flags_t =
2828        cef_context_menu_media_state_flags_t(1);
2829    pub const CM_MEDIAFLAG_PAUSED: cef_context_menu_media_state_flags_t =
2830        cef_context_menu_media_state_flags_t(2);
2831    pub const CM_MEDIAFLAG_MUTED: cef_context_menu_media_state_flags_t =
2832        cef_context_menu_media_state_flags_t(4);
2833    pub const CM_MEDIAFLAG_LOOP: cef_context_menu_media_state_flags_t =
2834        cef_context_menu_media_state_flags_t(8);
2835    pub const CM_MEDIAFLAG_CAN_SAVE: cef_context_menu_media_state_flags_t =
2836        cef_context_menu_media_state_flags_t(16);
2837    pub const CM_MEDIAFLAG_HAS_AUDIO: cef_context_menu_media_state_flags_t =
2838        cef_context_menu_media_state_flags_t(32);
2839    pub const CM_MEDIAFLAG_CAN_TOGGLE_CONTROLS: cef_context_menu_media_state_flags_t =
2840        cef_context_menu_media_state_flags_t(64);
2841    pub const CM_MEDIAFLAG_CONTROLS: cef_context_menu_media_state_flags_t =
2842        cef_context_menu_media_state_flags_t(128);
2843    pub const CM_MEDIAFLAG_CAN_PRINT: cef_context_menu_media_state_flags_t =
2844        cef_context_menu_media_state_flags_t(256);
2845    pub const CM_MEDIAFLAG_CAN_ROTATE: cef_context_menu_media_state_flags_t =
2846        cef_context_menu_media_state_flags_t(512);
2847    pub const CM_MEDIAFLAG_CAN_PICTURE_IN_PICTURE: cef_context_menu_media_state_flags_t =
2848        cef_context_menu_media_state_flags_t(1024);
2849    pub const CM_MEDIAFLAG_PICTURE_IN_PICTURE: cef_context_menu_media_state_flags_t =
2850        cef_context_menu_media_state_flags_t(2048);
2851    pub const CM_MEDIAFLAG_CAN_LOOP: cef_context_menu_media_state_flags_t =
2852        cef_context_menu_media_state_flags_t(4096);
2853}
2854impl ::std::ops::BitOr<cef_context_menu_media_state_flags_t>
2855    for cef_context_menu_media_state_flags_t
2856{
2857    type Output = Self;
2858    #[inline]
2859    fn bitor(self, other: Self) -> Self {
2860        cef_context_menu_media_state_flags_t(self.0 | other.0)
2861    }
2862}
2863impl ::std::ops::BitOrAssign for cef_context_menu_media_state_flags_t {
2864    #[inline]
2865    fn bitor_assign(&mut self, rhs: cef_context_menu_media_state_flags_t) {
2866        self.0 |= rhs.0;
2867    }
2868}
2869impl ::std::ops::BitAnd<cef_context_menu_media_state_flags_t>
2870    for cef_context_menu_media_state_flags_t
2871{
2872    type Output = Self;
2873    #[inline]
2874    fn bitand(self, other: Self) -> Self {
2875        cef_context_menu_media_state_flags_t(self.0 & other.0)
2876    }
2877}
2878impl ::std::ops::BitAndAssign for cef_context_menu_media_state_flags_t {
2879    #[inline]
2880    fn bitand_assign(&mut self, rhs: cef_context_menu_media_state_flags_t) {
2881        self.0 &= rhs.0;
2882    }
2883}
2884#[repr(transparent)]
2885#[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"]
2886#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2887pub struct cef_context_menu_media_state_flags_t(pub ::std::os::raw::c_uint);
2888impl cef_context_menu_edit_state_flags_t {
2889    pub const CM_EDITFLAG_NONE: cef_context_menu_edit_state_flags_t =
2890        cef_context_menu_edit_state_flags_t(0);
2891    pub const CM_EDITFLAG_CAN_UNDO: cef_context_menu_edit_state_flags_t =
2892        cef_context_menu_edit_state_flags_t(1);
2893    pub const CM_EDITFLAG_CAN_REDO: cef_context_menu_edit_state_flags_t =
2894        cef_context_menu_edit_state_flags_t(2);
2895    pub const CM_EDITFLAG_CAN_CUT: cef_context_menu_edit_state_flags_t =
2896        cef_context_menu_edit_state_flags_t(4);
2897    pub const CM_EDITFLAG_CAN_COPY: cef_context_menu_edit_state_flags_t =
2898        cef_context_menu_edit_state_flags_t(8);
2899    pub const CM_EDITFLAG_CAN_PASTE: cef_context_menu_edit_state_flags_t =
2900        cef_context_menu_edit_state_flags_t(16);
2901    pub const CM_EDITFLAG_CAN_DELETE: cef_context_menu_edit_state_flags_t =
2902        cef_context_menu_edit_state_flags_t(32);
2903    pub const CM_EDITFLAG_CAN_SELECT_ALL: cef_context_menu_edit_state_flags_t =
2904        cef_context_menu_edit_state_flags_t(64);
2905    pub const CM_EDITFLAG_CAN_TRANSLATE: cef_context_menu_edit_state_flags_t =
2906        cef_context_menu_edit_state_flags_t(128);
2907    pub const CM_EDITFLAG_CAN_EDIT_RICHLY: cef_context_menu_edit_state_flags_t =
2908        cef_context_menu_edit_state_flags_t(256);
2909}
2910impl ::std::ops::BitOr<cef_context_menu_edit_state_flags_t>
2911    for cef_context_menu_edit_state_flags_t
2912{
2913    type Output = Self;
2914    #[inline]
2915    fn bitor(self, other: Self) -> Self {
2916        cef_context_menu_edit_state_flags_t(self.0 | other.0)
2917    }
2918}
2919impl ::std::ops::BitOrAssign for cef_context_menu_edit_state_flags_t {
2920    #[inline]
2921    fn bitor_assign(&mut self, rhs: cef_context_menu_edit_state_flags_t) {
2922        self.0 |= rhs.0;
2923    }
2924}
2925impl ::std::ops::BitAnd<cef_context_menu_edit_state_flags_t>
2926    for cef_context_menu_edit_state_flags_t
2927{
2928    type Output = Self;
2929    #[inline]
2930    fn bitand(self, other: Self) -> Self {
2931        cef_context_menu_edit_state_flags_t(self.0 & other.0)
2932    }
2933}
2934impl ::std::ops::BitAndAssign for cef_context_menu_edit_state_flags_t {
2935    #[inline]
2936    fn bitand_assign(&mut self, rhs: cef_context_menu_edit_state_flags_t) {
2937        self.0 &= rhs.0;
2938    }
2939}
2940#[repr(transparent)]
2941#[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"]
2942#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2943pub struct cef_context_menu_edit_state_flags_t(pub ::std::os::raw::c_uint);
2944impl cef_quick_menu_edit_state_flags_t {
2945    pub const QM_EDITFLAG_NONE: cef_quick_menu_edit_state_flags_t =
2946        cef_quick_menu_edit_state_flags_t(0);
2947    pub const QM_EDITFLAG_CAN_ELLIPSIS: cef_quick_menu_edit_state_flags_t =
2948        cef_quick_menu_edit_state_flags_t(1);
2949    pub const QM_EDITFLAG_CAN_CUT: cef_quick_menu_edit_state_flags_t =
2950        cef_quick_menu_edit_state_flags_t(2);
2951    pub const QM_EDITFLAG_CAN_COPY: cef_quick_menu_edit_state_flags_t =
2952        cef_quick_menu_edit_state_flags_t(4);
2953    pub const QM_EDITFLAG_CAN_PASTE: cef_quick_menu_edit_state_flags_t =
2954        cef_quick_menu_edit_state_flags_t(8);
2955}
2956impl ::std::ops::BitOr<cef_quick_menu_edit_state_flags_t> for cef_quick_menu_edit_state_flags_t {
2957    type Output = Self;
2958    #[inline]
2959    fn bitor(self, other: Self) -> Self {
2960        cef_quick_menu_edit_state_flags_t(self.0 | other.0)
2961    }
2962}
2963impl ::std::ops::BitOrAssign for cef_quick_menu_edit_state_flags_t {
2964    #[inline]
2965    fn bitor_assign(&mut self, rhs: cef_quick_menu_edit_state_flags_t) {
2966        self.0 |= rhs.0;
2967    }
2968}
2969impl ::std::ops::BitAnd<cef_quick_menu_edit_state_flags_t> for cef_quick_menu_edit_state_flags_t {
2970    type Output = Self;
2971    #[inline]
2972    fn bitand(self, other: Self) -> Self {
2973        cef_quick_menu_edit_state_flags_t(self.0 & other.0)
2974    }
2975}
2976impl ::std::ops::BitAndAssign for cef_quick_menu_edit_state_flags_t {
2977    #[inline]
2978    fn bitand_assign(&mut self, rhs: cef_quick_menu_edit_state_flags_t) {
2979        self.0 &= rhs.0;
2980    }
2981}
2982#[repr(transparent)]
2983#[doc = "\n Supported quick menu state bit flags.\n"]
2984#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2985pub struct cef_quick_menu_edit_state_flags_t(pub ::std::os::raw::c_uint);
2986#[repr(u32)]
2987#[non_exhaustive]
2988#[doc = "\n Key event types.\n"]
2989#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
2990pub enum cef_key_event_type_t {
2991    #[doc = "\n Notification that a key transitioned from \"up\" to \"down\".\n"]
2992    KEYEVENT_RAWKEYDOWN = 0,
2993    #[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"]
2994    KEYEVENT_KEYDOWN = 1,
2995    #[doc = "\n Notification that a key was released.\n"]
2996    KEYEVENT_KEYUP = 2,
2997    #[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"]
2998    KEYEVENT_CHAR = 3,
2999}
3000#[doc = "\n Structure representing keyboard event information.\n"]
3001#[repr(C)]
3002#[derive(Debug, Copy, Clone)]
3003pub struct _cef_key_event_t {
3004    #[doc = "\n Size of this structure.\n"]
3005    pub size: usize,
3006    #[doc = "\n The type of keyboard event.\n"]
3007    pub type_: cef_key_event_type_t,
3008    #[doc = "\n Bit flags describing any pressed modifier keys. See\n cef_event_flags_t for values.\n"]
3009    pub modifiers: u32,
3010    #[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"]
3011    pub windows_key_code: ::std::os::raw::c_int,
3012    #[doc = "\n The actual key code genenerated by the platform.\n"]
3013    pub native_key_code: ::std::os::raw::c_int,
3014    #[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"]
3015    pub is_system_key: ::std::os::raw::c_int,
3016    #[doc = "\n The character generated by the keystroke.\n"]
3017    pub character: char16_t,
3018    #[doc = "\n Same as |character| but unmodified by any concurrently-held modifiers\n (except shift). This is useful for working out shortcut keys.\n"]
3019    pub unmodified_character: char16_t,
3020    #[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"]
3021    pub focus_on_editable_field: ::std::os::raw::c_int,
3022}
3023#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3024const _: () = {
3025    ["Size of _cef_key_event_t"][::std::mem::size_of::<_cef_key_event_t>() - 40usize];
3026    ["Alignment of _cef_key_event_t"][::std::mem::align_of::<_cef_key_event_t>() - 8usize];
3027    ["Offset of field: _cef_key_event_t::size"]
3028        [::std::mem::offset_of!(_cef_key_event_t, size) - 0usize];
3029    ["Offset of field: _cef_key_event_t::type_"]
3030        [::std::mem::offset_of!(_cef_key_event_t, type_) - 8usize];
3031    ["Offset of field: _cef_key_event_t::modifiers"]
3032        [::std::mem::offset_of!(_cef_key_event_t, modifiers) - 12usize];
3033    ["Offset of field: _cef_key_event_t::windows_key_code"]
3034        [::std::mem::offset_of!(_cef_key_event_t, windows_key_code) - 16usize];
3035    ["Offset of field: _cef_key_event_t::native_key_code"]
3036        [::std::mem::offset_of!(_cef_key_event_t, native_key_code) - 20usize];
3037    ["Offset of field: _cef_key_event_t::is_system_key"]
3038        [::std::mem::offset_of!(_cef_key_event_t, is_system_key) - 24usize];
3039    ["Offset of field: _cef_key_event_t::character"]
3040        [::std::mem::offset_of!(_cef_key_event_t, character) - 28usize];
3041    ["Offset of field: _cef_key_event_t::unmodified_character"]
3042        [::std::mem::offset_of!(_cef_key_event_t, unmodified_character) - 30usize];
3043    ["Offset of field: _cef_key_event_t::focus_on_editable_field"]
3044        [::std::mem::offset_of!(_cef_key_event_t, focus_on_editable_field) - 32usize];
3045};
3046#[doc = "\n Structure representing keyboard event information.\n"]
3047pub type cef_key_event_t = _cef_key_event_t;
3048#[repr(u32)]
3049#[non_exhaustive]
3050#[doc = "\n Focus sources.\n"]
3051#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3052pub enum cef_focus_source_t {
3053    #[doc = "\n The source is explicit navigation via the API (LoadURL(), etc).\n"]
3054    FOCUS_SOURCE_NAVIGATION = 0,
3055    #[doc = "\n The source is a system-generated focus event.\n"]
3056    FOCUS_SOURCE_SYSTEM = 1,
3057    #[doc = "\n The source is a system-generated focus event.\n"]
3058    FOCUS_SOURCE_NUM_VALUES = 2,
3059}
3060#[repr(u32)]
3061#[non_exhaustive]
3062#[doc = "\n Navigation types.\n"]
3063#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3064pub enum cef_navigation_type_t {
3065    NAVIGATION_LINK_CLICKED = 0,
3066    NAVIGATION_FORM_SUBMITTED = 1,
3067    NAVIGATION_BACK_FORWARD = 2,
3068    NAVIGATION_RELOAD = 3,
3069    NAVIGATION_FORM_RESUBMITTED = 4,
3070    NAVIGATION_OTHER = 5,
3071    NAVIGATION_NUM_VALUES = 6,
3072}
3073#[repr(u32)]
3074#[non_exhaustive]
3075#[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"]
3076#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3077pub enum cef_xml_encoding_type_t {
3078    XML_ENCODING_NONE = 0,
3079    XML_ENCODING_UTF8 = 1,
3080    XML_ENCODING_UTF16LE = 2,
3081    XML_ENCODING_UTF16BE = 3,
3082    XML_ENCODING_ASCII = 4,
3083    XML_ENCODING_NUM_VALUES = 5,
3084}
3085#[repr(u32)]
3086#[non_exhaustive]
3087#[doc = "\n XML node types.\n"]
3088#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3089pub enum cef_xml_node_type_t {
3090    XML_NODE_UNSUPPORTED = 0,
3091    XML_NODE_PROCESSING_INSTRUCTION = 1,
3092    XML_NODE_DOCUMENT_TYPE = 2,
3093    XML_NODE_ELEMENT_START = 3,
3094    XML_NODE_ELEMENT_END = 4,
3095    XML_NODE_ATTRIBUTE = 5,
3096    XML_NODE_TEXT = 6,
3097    XML_NODE_CDATA = 7,
3098    XML_NODE_ENTITY_REFERENCE = 8,
3099    XML_NODE_WHITESPACE = 9,
3100    XML_NODE_COMMENT = 10,
3101    XML_NODE_NUM_VALUES = 11,
3102}
3103#[doc = "\n Popup window features.\n"]
3104#[repr(C)]
3105#[derive(Debug, Copy, Clone)]
3106pub struct _cef_popup_features_t {
3107    #[doc = "\n Size of this structure.\n"]
3108    pub size: usize,
3109    pub x: ::std::os::raw::c_int,
3110    pub xSet: ::std::os::raw::c_int,
3111    pub y: ::std::os::raw::c_int,
3112    pub ySet: ::std::os::raw::c_int,
3113    pub width: ::std::os::raw::c_int,
3114    pub widthSet: ::std::os::raw::c_int,
3115    pub height: ::std::os::raw::c_int,
3116    pub heightSet: ::std::os::raw::c_int,
3117    #[doc = "\n True (1) if browser interface elements should be hidden.\n"]
3118    pub isPopup: ::std::os::raw::c_int,
3119}
3120#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3121const _: () = {
3122    ["Size of _cef_popup_features_t"][::std::mem::size_of::<_cef_popup_features_t>() - 48usize];
3123    ["Alignment of _cef_popup_features_t"]
3124        [::std::mem::align_of::<_cef_popup_features_t>() - 8usize];
3125    ["Offset of field: _cef_popup_features_t::size"]
3126        [::std::mem::offset_of!(_cef_popup_features_t, size) - 0usize];
3127    ["Offset of field: _cef_popup_features_t::x"]
3128        [::std::mem::offset_of!(_cef_popup_features_t, x) - 8usize];
3129    ["Offset of field: _cef_popup_features_t::xSet"]
3130        [::std::mem::offset_of!(_cef_popup_features_t, xSet) - 12usize];
3131    ["Offset of field: _cef_popup_features_t::y"]
3132        [::std::mem::offset_of!(_cef_popup_features_t, y) - 16usize];
3133    ["Offset of field: _cef_popup_features_t::ySet"]
3134        [::std::mem::offset_of!(_cef_popup_features_t, ySet) - 20usize];
3135    ["Offset of field: _cef_popup_features_t::width"]
3136        [::std::mem::offset_of!(_cef_popup_features_t, width) - 24usize];
3137    ["Offset of field: _cef_popup_features_t::widthSet"]
3138        [::std::mem::offset_of!(_cef_popup_features_t, widthSet) - 28usize];
3139    ["Offset of field: _cef_popup_features_t::height"]
3140        [::std::mem::offset_of!(_cef_popup_features_t, height) - 32usize];
3141    ["Offset of field: _cef_popup_features_t::heightSet"]
3142        [::std::mem::offset_of!(_cef_popup_features_t, heightSet) - 36usize];
3143    ["Offset of field: _cef_popup_features_t::isPopup"]
3144        [::std::mem::offset_of!(_cef_popup_features_t, isPopup) - 40usize];
3145};
3146#[doc = "\n Popup window features.\n"]
3147pub type cef_popup_features_t = _cef_popup_features_t;
3148#[repr(u32)]
3149#[non_exhaustive]
3150#[doc = "\n DOM document types.\n"]
3151#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3152pub enum cef_dom_document_type_t {
3153    DOM_DOCUMENT_TYPE_UNKNOWN = 0,
3154    DOM_DOCUMENT_TYPE_HTML = 1,
3155    DOM_DOCUMENT_TYPE_XHTML = 2,
3156    DOM_DOCUMENT_TYPE_PLUGIN = 3,
3157    DOM_DOCUMENT_TYPE_NUM_VALUES = 4,
3158}
3159#[repr(u32)]
3160#[non_exhaustive]
3161#[doc = "\n DOM event category flags.\n"]
3162#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3163pub enum cef_dom_event_category_t {
3164    DOM_EVENT_CATEGORY_UNKNOWN = 0,
3165    DOM_EVENT_CATEGORY_UI = 1,
3166    DOM_EVENT_CATEGORY_MOUSE = 2,
3167    DOM_EVENT_CATEGORY_MUTATION = 4,
3168    DOM_EVENT_CATEGORY_KEYBOARD = 8,
3169    DOM_EVENT_CATEGORY_TEXT = 16,
3170    DOM_EVENT_CATEGORY_COMPOSITION = 32,
3171    DOM_EVENT_CATEGORY_DRAG = 64,
3172    DOM_EVENT_CATEGORY_CLIPBOARD = 128,
3173    DOM_EVENT_CATEGORY_MESSAGE = 256,
3174    DOM_EVENT_CATEGORY_WHEEL = 512,
3175    DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED = 1024,
3176    DOM_EVENT_CATEGORY_OVERFLOW = 2048,
3177    DOM_EVENT_CATEGORY_PAGE_TRANSITION = 4096,
3178    DOM_EVENT_CATEGORY_POPSTATE = 8192,
3179    DOM_EVENT_CATEGORY_PROGRESS = 16384,
3180    DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS = 32768,
3181}
3182#[repr(u32)]
3183#[non_exhaustive]
3184#[doc = "\n DOM event processing phases.\n"]
3185#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3186pub enum cef_dom_event_phase_t {
3187    DOM_EVENT_PHASE_UNKNOWN = 0,
3188    DOM_EVENT_PHASE_CAPTURING = 1,
3189    DOM_EVENT_PHASE_AT_TARGET = 2,
3190    DOM_EVENT_PHASE_BUBBLING = 3,
3191    DOM_EVENT_PHASE_NUM_VALUES = 4,
3192}
3193#[repr(u32)]
3194#[non_exhaustive]
3195#[doc = "\n DOM node types.\n"]
3196#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3197pub enum cef_dom_node_type_t {
3198    DOM_NODE_TYPE_UNSUPPORTED = 0,
3199    DOM_NODE_TYPE_ELEMENT = 1,
3200    DOM_NODE_TYPE_ATTRIBUTE = 2,
3201    DOM_NODE_TYPE_TEXT = 3,
3202    DOM_NODE_TYPE_CDATA_SECTION = 4,
3203    DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS = 5,
3204    DOM_NODE_TYPE_COMMENT = 6,
3205    DOM_NODE_TYPE_DOCUMENT = 7,
3206    DOM_NODE_TYPE_DOCUMENT_TYPE = 8,
3207    DOM_NODE_TYPE_DOCUMENT_FRAGMENT = 9,
3208    DOM_NODE_TYPE_NUM_VALUES = 10,
3209}
3210#[repr(u32)]
3211#[non_exhaustive]
3212#[doc = "\n DOM form control types. Should be kept in sync with Chromium's\n blink::mojom::FormControlType type.\n"]
3213#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3214pub enum cef_dom_form_control_type_t {
3215    DOM_FORM_CONTROL_TYPE_UNSUPPORTED = 0,
3216    DOM_FORM_CONTROL_TYPE_BUTTON_BUTTON = 1,
3217    DOM_FORM_CONTROL_TYPE_BUTTON_SUBMIT = 2,
3218    DOM_FORM_CONTROL_TYPE_BUTTON_RESET = 3,
3219    DOM_FORM_CONTROL_TYPE_BUTTON_POPOVER = 4,
3220    DOM_FORM_CONTROL_TYPE_FIELDSET = 5,
3221    DOM_FORM_CONTROL_TYPE_INPUT_BUTTON = 6,
3222    DOM_FORM_CONTROL_TYPE_INPUT_CHECKBOX = 7,
3223    DOM_FORM_CONTROL_TYPE_INPUT_COLOR = 8,
3224    DOM_FORM_CONTROL_TYPE_INPUT_DATE = 9,
3225    DOM_FORM_CONTROL_TYPE_INPUT_DATETIME_LOCAL = 10,
3226    DOM_FORM_CONTROL_TYPE_INPUT_EMAIL = 11,
3227    DOM_FORM_CONTROL_TYPE_INPUT_FILE = 12,
3228    DOM_FORM_CONTROL_TYPE_INPUT_HIDDEN = 13,
3229    DOM_FORM_CONTROL_TYPE_INPUT_IMAGE = 14,
3230    DOM_FORM_CONTROL_TYPE_INPUT_MONTH = 15,
3231    DOM_FORM_CONTROL_TYPE_INPUT_NUMBER = 16,
3232    DOM_FORM_CONTROL_TYPE_INPUT_PASSWORD = 17,
3233    DOM_FORM_CONTROL_TYPE_INPUT_RADIO = 18,
3234    DOM_FORM_CONTROL_TYPE_INPUT_RANGE = 19,
3235    DOM_FORM_CONTROL_TYPE_INPUT_RESET = 20,
3236    DOM_FORM_CONTROL_TYPE_INPUT_SEARCH = 21,
3237    DOM_FORM_CONTROL_TYPE_INPUT_SUBMIT = 22,
3238    DOM_FORM_CONTROL_TYPE_INPUT_TELEPHONE = 23,
3239    DOM_FORM_CONTROL_TYPE_INPUT_TEXT = 24,
3240    DOM_FORM_CONTROL_TYPE_INPUT_TIME = 25,
3241    DOM_FORM_CONTROL_TYPE_INPUT_URL = 26,
3242    DOM_FORM_CONTROL_TYPE_INPUT_WEEK = 27,
3243    DOM_FORM_CONTROL_TYPE_OUTPUT = 28,
3244    DOM_FORM_CONTROL_TYPE_SELECT_ONE = 29,
3245    DOM_FORM_CONTROL_TYPE_SELECT_MULTIPLE = 30,
3246    DOM_FORM_CONTROL_TYPE_TEXT_AREA = 31,
3247    DOM_FORM_CONTROL_TYPE_NUM_VALUES = 32,
3248}
3249#[repr(u32)]
3250#[non_exhaustive]
3251#[doc = "\n Supported file dialog modes.\n"]
3252#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3253pub enum cef_file_dialog_mode_t {
3254    #[doc = "\n Requires that the file exists before allowing the user to pick it.\n"]
3255    FILE_DIALOG_OPEN = 0,
3256    #[doc = "\n Like Open, but allows picking multiple files to open.\n"]
3257    FILE_DIALOG_OPEN_MULTIPLE = 1,
3258    #[doc = "\n Like Open, but selects a folder to open.\n"]
3259    FILE_DIALOG_OPEN_FOLDER = 2,
3260    #[doc = "\n Allows picking a nonexistent file, and prompts to overwrite if the file\n already exists.\n"]
3261    FILE_DIALOG_SAVE = 3,
3262    #[doc = "\n Allows picking a nonexistent file, and prompts to overwrite if the file\n already exists.\n"]
3263    FILE_DIALOG_NUM_VALUES = 4,
3264}
3265#[repr(u32)]
3266#[non_exhaustive]
3267#[doc = "\n Print job color mode values.\n"]
3268#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3269pub enum cef_color_model_t {
3270    COLOR_MODEL_UNKNOWN = 0,
3271    COLOR_MODEL_GRAY = 1,
3272    COLOR_MODEL_COLOR = 2,
3273    COLOR_MODEL_CMYK = 3,
3274    COLOR_MODEL_CMY = 4,
3275    COLOR_MODEL_KCMY = 5,
3276    COLOR_MODEL_CMY_K = 6,
3277    COLOR_MODEL_BLACK = 7,
3278    COLOR_MODEL_GRAYSCALE = 8,
3279    COLOR_MODEL_RGB = 9,
3280    COLOR_MODEL_RGB16 = 10,
3281    COLOR_MODEL_RGBA = 11,
3282    COLOR_MODEL_COLORMODE_COLOR = 12,
3283    COLOR_MODEL_COLORMODE_MONOCHROME = 13,
3284    COLOR_MODEL_HP_COLOR_COLOR = 14,
3285    COLOR_MODEL_HP_COLOR_BLACK = 15,
3286    COLOR_MODEL_PRINTOUTMODE_NORMAL = 16,
3287    COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY = 17,
3288    COLOR_MODEL_PROCESSCOLORMODEL_CMYK = 18,
3289    COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE = 19,
3290    COLOR_MODEL_PROCESSCOLORMODEL_RGB = 20,
3291    COLOR_MODEL_NUM_VALUES = 21,
3292}
3293#[repr(i32)]
3294#[non_exhaustive]
3295#[doc = "\n Print job duplex mode values.\n"]
3296#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3297pub enum cef_duplex_mode_t {
3298    DUPLEX_MODE_UNKNOWN = -1,
3299    DUPLEX_MODE_SIMPLEX = 0,
3300    DUPLEX_MODE_LONG_EDGE = 1,
3301    DUPLEX_MODE_SHORT_EDGE = 2,
3302    DUPLEX_MODE_NUM_VALUES = 3,
3303}
3304#[repr(u32)]
3305#[non_exhaustive]
3306#[doc = "\n Cursor type values.\n"]
3307#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3308pub enum cef_cursor_type_t {
3309    CT_POINTER = 0,
3310    CT_CROSS = 1,
3311    CT_HAND = 2,
3312    CT_IBEAM = 3,
3313    CT_WAIT = 4,
3314    CT_HELP = 5,
3315    CT_EASTRESIZE = 6,
3316    CT_NORTHRESIZE = 7,
3317    CT_NORTHEASTRESIZE = 8,
3318    CT_NORTHWESTRESIZE = 9,
3319    CT_SOUTHRESIZE = 10,
3320    CT_SOUTHEASTRESIZE = 11,
3321    CT_SOUTHWESTRESIZE = 12,
3322    CT_WESTRESIZE = 13,
3323    CT_NORTHSOUTHRESIZE = 14,
3324    CT_EASTWESTRESIZE = 15,
3325    CT_NORTHEASTSOUTHWESTRESIZE = 16,
3326    CT_NORTHWESTSOUTHEASTRESIZE = 17,
3327    CT_COLUMNRESIZE = 18,
3328    CT_ROWRESIZE = 19,
3329    CT_MIDDLEPANNING = 20,
3330    CT_EASTPANNING = 21,
3331    CT_NORTHPANNING = 22,
3332    CT_NORTHEASTPANNING = 23,
3333    CT_NORTHWESTPANNING = 24,
3334    CT_SOUTHPANNING = 25,
3335    CT_SOUTHEASTPANNING = 26,
3336    CT_SOUTHWESTPANNING = 27,
3337    CT_WESTPANNING = 28,
3338    CT_MOVE = 29,
3339    CT_VERTICALTEXT = 30,
3340    CT_CELL = 31,
3341    CT_CONTEXTMENU = 32,
3342    CT_ALIAS = 33,
3343    CT_PROGRESS = 34,
3344    CT_NODROP = 35,
3345    CT_COPY = 36,
3346    CT_NONE = 37,
3347    CT_NOTALLOWED = 38,
3348    CT_ZOOMIN = 39,
3349    CT_ZOOMOUT = 40,
3350    CT_GRAB = 41,
3351    CT_GRABBING = 42,
3352    CT_MIDDLE_PANNING_VERTICAL = 43,
3353    CT_MIDDLE_PANNING_HORIZONTAL = 44,
3354    CT_CUSTOM = 45,
3355    CT_DND_NONE = 46,
3356    CT_DND_MOVE = 47,
3357    CT_DND_COPY = 48,
3358    CT_DND_LINK = 49,
3359    CT_NUM_VALUES = 50,
3360}
3361#[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"]
3362#[repr(C)]
3363#[derive(Debug, Copy, Clone)]
3364pub struct _cef_cursor_info_t {
3365    pub hotspot: cef_point_t,
3366    pub image_scale_factor: f32,
3367    pub buffer: *mut ::std::os::raw::c_void,
3368    pub size: cef_size_t,
3369}
3370#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3371const _: () = {
3372    ["Size of _cef_cursor_info_t"][::std::mem::size_of::<_cef_cursor_info_t>() - 32usize];
3373    ["Alignment of _cef_cursor_info_t"][::std::mem::align_of::<_cef_cursor_info_t>() - 8usize];
3374    ["Offset of field: _cef_cursor_info_t::hotspot"]
3375        [::std::mem::offset_of!(_cef_cursor_info_t, hotspot) - 0usize];
3376    ["Offset of field: _cef_cursor_info_t::image_scale_factor"]
3377        [::std::mem::offset_of!(_cef_cursor_info_t, image_scale_factor) - 8usize];
3378    ["Offset of field: _cef_cursor_info_t::buffer"]
3379        [::std::mem::offset_of!(_cef_cursor_info_t, buffer) - 16usize];
3380    ["Offset of field: _cef_cursor_info_t::size"]
3381        [::std::mem::offset_of!(_cef_cursor_info_t, size) - 24usize];
3382};
3383#[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"]
3384pub type cef_cursor_info_t = _cef_cursor_info_t;
3385#[repr(u32)]
3386#[non_exhaustive]
3387#[doc = "\n URI unescape rules passed to CefURIDecode().\n"]
3388#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3389pub enum cef_uri_unescape_rule_t {
3390    #[doc = "\n Don't unescape anything at all.\n"]
3391    UU_NONE = 0,
3392    #[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"]
3393    UU_NORMAL = 1,
3394    #[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"]
3395    UU_SPACES = 2,
3396    #[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"]
3397    UU_PATH_SEPARATORS = 4,
3398    #[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"]
3399    UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS = 8,
3400    #[doc = "\n URL queries use \"+\" for space. This flag controls that replacement.\n"]
3401    UU_REPLACE_PLUS_WITH_SPACE = 16,
3402}
3403#[repr(u32)]
3404#[non_exhaustive]
3405#[doc = "\n Options that can be passed to CefParseJSON.\n"]
3406#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3407pub enum cef_json_parser_options_t {
3408    #[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"]
3409    JSON_PARSER_RFC = 0,
3410    #[doc = "\n Allows commas to exist after the last element in structures.\n"]
3411    JSON_PARSER_ALLOW_TRAILING_COMMAS = 1,
3412}
3413#[repr(u32)]
3414#[non_exhaustive]
3415#[doc = "\n Options that can be passed to CefWriteJSON.\n"]
3416#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3417pub enum cef_json_writer_options_t {
3418    #[doc = "\n Default behavior.\n"]
3419    JSON_WRITER_DEFAULT = 0,
3420    #[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"]
3421    JSON_WRITER_OMIT_BINARY_VALUES = 1,
3422    #[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"]
3423    JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION = 2,
3424    #[doc = "\n Return a slightly nicer formatted json string (pads with whitespace to\n help with readability).\n"]
3425    JSON_WRITER_PRETTY_PRINT = 4,
3426}
3427#[repr(u32)]
3428#[non_exhaustive]
3429#[doc = "\n Margin type for PDF printing.\n"]
3430#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3431pub enum cef_pdf_print_margin_type_t {
3432    #[doc = "\n Default margins of 1cm (~0.4 inches).\n"]
3433    PDF_PRINT_MARGIN_DEFAULT = 0,
3434    #[doc = "\n No margins.\n"]
3435    PDF_PRINT_MARGIN_NONE = 1,
3436    #[doc = "\n Custom margins using the |margin_*| values from cef_pdf_print_settings_t.\n"]
3437    PDF_PRINT_MARGIN_CUSTOM = 2,
3438}
3439#[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"]
3440#[repr(C)]
3441#[derive(Debug, Copy, Clone)]
3442pub struct _cef_pdf_print_settings_t {
3443    #[doc = "\n Size of this structure.\n"]
3444    pub size: usize,
3445    #[doc = "\n Set to true (1) for landscape mode or false (0) for portrait mode.\n"]
3446    pub landscape: ::std::os::raw::c_int,
3447    #[doc = "\n Set to true (1) to print background graphics.\n"]
3448    pub print_background: ::std::os::raw::c_int,
3449    #[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"]
3450    pub scale: f64,
3451    #[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"]
3452    pub paper_width: f64,
3453    pub paper_height: f64,
3454    #[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"]
3455    pub prefer_css_page_size: ::std::os::raw::c_int,
3456    #[doc = "\n Margin type.\n"]
3457    pub margin_type: cef_pdf_print_margin_type_t,
3458    #[doc = "\n Margins in inches. Only used if |margin_type| is set to\n PDF_PRINT_MARGIN_CUSTOM.\n"]
3459    pub margin_top: f64,
3460    pub margin_right: f64,
3461    pub margin_bottom: f64,
3462    pub margin_left: f64,
3463    #[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"]
3464    pub page_ranges: cef_string_t,
3465    #[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"]
3466    pub display_header_footer: ::std::os::raw::c_int,
3467    #[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"]
3468    pub header_template: cef_string_t,
3469    #[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"]
3470    pub footer_template: cef_string_t,
3471    #[doc = "\n Set to true (1) to generate tagged (accessible) PDF.\n"]
3472    pub generate_tagged_pdf: ::std::os::raw::c_int,
3473    #[doc = "\n Set to true (1) to generate a document outline.\n"]
3474    pub generate_document_outline: ::std::os::raw::c_int,
3475}
3476#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3477const _: () = {
3478    ["Size of _cef_pdf_print_settings_t"]
3479        [::std::mem::size_of::<_cef_pdf_print_settings_t>() - 168usize];
3480    ["Alignment of _cef_pdf_print_settings_t"]
3481        [::std::mem::align_of::<_cef_pdf_print_settings_t>() - 8usize];
3482    ["Offset of field: _cef_pdf_print_settings_t::size"]
3483        [::std::mem::offset_of!(_cef_pdf_print_settings_t, size) - 0usize];
3484    ["Offset of field: _cef_pdf_print_settings_t::landscape"]
3485        [::std::mem::offset_of!(_cef_pdf_print_settings_t, landscape) - 8usize];
3486    ["Offset of field: _cef_pdf_print_settings_t::print_background"]
3487        [::std::mem::offset_of!(_cef_pdf_print_settings_t, print_background) - 12usize];
3488    ["Offset of field: _cef_pdf_print_settings_t::scale"]
3489        [::std::mem::offset_of!(_cef_pdf_print_settings_t, scale) - 16usize];
3490    ["Offset of field: _cef_pdf_print_settings_t::paper_width"]
3491        [::std::mem::offset_of!(_cef_pdf_print_settings_t, paper_width) - 24usize];
3492    ["Offset of field: _cef_pdf_print_settings_t::paper_height"]
3493        [::std::mem::offset_of!(_cef_pdf_print_settings_t, paper_height) - 32usize];
3494    ["Offset of field: _cef_pdf_print_settings_t::prefer_css_page_size"]
3495        [::std::mem::offset_of!(_cef_pdf_print_settings_t, prefer_css_page_size) - 40usize];
3496    ["Offset of field: _cef_pdf_print_settings_t::margin_type"]
3497        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_type) - 44usize];
3498    ["Offset of field: _cef_pdf_print_settings_t::margin_top"]
3499        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_top) - 48usize];
3500    ["Offset of field: _cef_pdf_print_settings_t::margin_right"]
3501        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_right) - 56usize];
3502    ["Offset of field: _cef_pdf_print_settings_t::margin_bottom"]
3503        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_bottom) - 64usize];
3504    ["Offset of field: _cef_pdf_print_settings_t::margin_left"]
3505        [::std::mem::offset_of!(_cef_pdf_print_settings_t, margin_left) - 72usize];
3506    ["Offset of field: _cef_pdf_print_settings_t::page_ranges"]
3507        [::std::mem::offset_of!(_cef_pdf_print_settings_t, page_ranges) - 80usize];
3508    ["Offset of field: _cef_pdf_print_settings_t::display_header_footer"]
3509        [::std::mem::offset_of!(_cef_pdf_print_settings_t, display_header_footer) - 104usize];
3510    ["Offset of field: _cef_pdf_print_settings_t::header_template"]
3511        [::std::mem::offset_of!(_cef_pdf_print_settings_t, header_template) - 112usize];
3512    ["Offset of field: _cef_pdf_print_settings_t::footer_template"]
3513        [::std::mem::offset_of!(_cef_pdf_print_settings_t, footer_template) - 136usize];
3514    ["Offset of field: _cef_pdf_print_settings_t::generate_tagged_pdf"]
3515        [::std::mem::offset_of!(_cef_pdf_print_settings_t, generate_tagged_pdf) - 160usize];
3516    ["Offset of field: _cef_pdf_print_settings_t::generate_document_outline"]
3517        [::std::mem::offset_of!(_cef_pdf_print_settings_t, generate_document_outline) - 164usize];
3518};
3519#[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"]
3520pub type cef_pdf_print_settings_t = _cef_pdf_print_settings_t;
3521#[repr(u32)]
3522#[non_exhaustive]
3523#[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"]
3524#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3525pub enum cef_scale_factor_t {
3526    SCALE_FACTOR_NONE = 0,
3527    SCALE_FACTOR_100P = 1,
3528    SCALE_FACTOR_125P = 2,
3529    SCALE_FACTOR_133P = 3,
3530    SCALE_FACTOR_140P = 4,
3531    SCALE_FACTOR_150P = 5,
3532    SCALE_FACTOR_180P = 6,
3533    SCALE_FACTOR_200P = 7,
3534    SCALE_FACTOR_250P = 8,
3535    SCALE_FACTOR_300P = 9,
3536    SCALE_FACTOR_NUM_VALUES = 10,
3537}
3538impl cef_referrer_policy_t {
3539    pub const REFERRER_POLICY_DEFAULT: cef_referrer_policy_t =
3540        cef_referrer_policy_t::REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE;
3541}
3542#[repr(u32)]
3543#[non_exhaustive]
3544#[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"]
3545#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3546pub enum cef_referrer_policy_t {
3547    #[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"]
3548    REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE = 0,
3549    #[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"]
3550    REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN = 1,
3551    #[doc = "\n Strip the referrer down to an origin when the origin of the referrer is\n different from the destination's origin.\n"]
3552    REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN = 2,
3553    #[doc = "\n Never change the referrer.\n"]
3554    REFERRER_POLICY_NEVER_CLEAR_REFERRER = 3,
3555    #[doc = "\n Strip the referrer down to the origin regardless of the redirect location.\n"]
3556    REFERRER_POLICY_ORIGIN = 4,
3557    #[doc = "\n Clear the referrer when the request's referrer is cross-origin with the\n request's destination.\n"]
3558    REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN = 5,
3559    #[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"]
3560    REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE = 6,
3561    #[doc = "\n Always clear the referrer regardless of the request destination.\n"]
3562    REFERRER_POLICY_NO_REFERRER = 7,
3563    #[doc = " Always the last value in this enumeration."]
3564    REFERRER_POLICY_NUM_VALUES = 8,
3565}
3566#[repr(u32)]
3567#[non_exhaustive]
3568#[doc = "\n Return values for CefResponseFilter::Filter().\n"]
3569#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3570pub enum cef_response_filter_status_t {
3571    #[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"]
3572    RESPONSE_FILTER_NEED_MORE_DATA = 0,
3573    #[doc = "\n Some or all of the pre-filter data was read successfully and all available\n filtered output has been written.\n"]
3574    RESPONSE_FILTER_DONE = 1,
3575    #[doc = "\n An error occurred during filtering.\n"]
3576    RESPONSE_FILTER_ERROR = 2,
3577}
3578#[repr(u32)]
3579#[non_exhaustive]
3580#[doc = "\n Describes how to interpret the alpha component of a pixel.\n"]
3581#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3582pub enum cef_alpha_type_t {
3583    #[doc = "\n No transparency. The alpha component is ignored.\n"]
3584    CEF_ALPHA_TYPE_OPAQUE = 0,
3585    #[doc = "\n Transparency with pre-multiplied alpha component.\n"]
3586    CEF_ALPHA_TYPE_PREMULTIPLIED = 1,
3587    #[doc = "\n Transparency with post-multiplied alpha component.\n"]
3588    CEF_ALPHA_TYPE_POSTMULTIPLIED = 2,
3589}
3590#[repr(u32)]
3591#[non_exhaustive]
3592#[doc = "\n Text style types. Should be kepy in sync with gfx::TextStyle.\n"]
3593#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3594pub enum cef_text_style_t {
3595    CEF_TEXT_STYLE_BOLD = 0,
3596    CEF_TEXT_STYLE_ITALIC = 1,
3597    CEF_TEXT_STYLE_STRIKE = 2,
3598    CEF_TEXT_STYLE_DIAGONAL_STRIKE = 3,
3599    CEF_TEXT_STYLE_UNDERLINE = 4,
3600    CEF_TEXT_STYLE_NUM_VALUES = 5,
3601}
3602#[repr(u32)]
3603#[non_exhaustive]
3604#[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"]
3605#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3606pub enum cef_axis_alignment_t {
3607    #[doc = " Child views will be left/top-aligned."]
3608    CEF_AXIS_ALIGNMENT_START = 0,
3609    #[doc = " Child views will be center-aligned."]
3610    CEF_AXIS_ALIGNMENT_CENTER = 1,
3611    #[doc = " Child views will be right/bottom-aligned."]
3612    CEF_AXIS_ALIGNMENT_END = 2,
3613    #[doc = " Child views will be stretched to fit."]
3614    CEF_AXIS_ALIGNMENT_STRETCH = 3,
3615    #[doc = " Child views will be stretched to fit."]
3616    CEF_AXIS_ALIGNMENT_NUM_VALUES = 4,
3617}
3618#[doc = "\n Settings used when initializing a CefBoxLayout.\n"]
3619#[repr(C)]
3620#[derive(Debug, Copy, Clone)]
3621pub struct _cef_box_layout_settings_t {
3622    #[doc = "\n Size of this structure.\n"]
3623    pub size: usize,
3624    #[doc = "\n If true (1) the layout will be horizontal, otherwise the layout will be\n vertical.\n"]
3625    pub horizontal: ::std::os::raw::c_int,
3626    #[doc = "\n Adds additional horizontal space between the child view area and the host\n view border.\n"]
3627    pub inside_border_horizontal_spacing: ::std::os::raw::c_int,
3628    #[doc = "\n Adds additional vertical space between the child view area and the host\n view border.\n"]
3629    pub inside_border_vertical_spacing: ::std::os::raw::c_int,
3630    #[doc = "\n Adds additional space around the child view area.\n"]
3631    pub inside_border_insets: cef_insets_t,
3632    #[doc = "\n Adds additional space between child views.\n"]
3633    pub between_child_spacing: ::std::os::raw::c_int,
3634    #[doc = "\n Specifies where along the main axis the child views should be laid out.\n"]
3635    pub main_axis_alignment: cef_axis_alignment_t,
3636    #[doc = "\n Specifies where along the cross axis the child views should be laid out.\n"]
3637    pub cross_axis_alignment: cef_axis_alignment_t,
3638    #[doc = "\n Minimum cross axis size.\n"]
3639    pub minimum_cross_axis_size: ::std::os::raw::c_int,
3640    #[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"]
3641    pub default_flex: ::std::os::raw::c_int,
3642}
3643#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3644const _: () = {
3645    ["Size of _cef_box_layout_settings_t"]
3646        [::std::mem::size_of::<_cef_box_layout_settings_t>() - 56usize];
3647    ["Alignment of _cef_box_layout_settings_t"]
3648        [::std::mem::align_of::<_cef_box_layout_settings_t>() - 8usize];
3649    ["Offset of field: _cef_box_layout_settings_t::size"]
3650        [::std::mem::offset_of!(_cef_box_layout_settings_t, size) - 0usize];
3651    ["Offset of field: _cef_box_layout_settings_t::horizontal"]
3652        [::std::mem::offset_of!(_cef_box_layout_settings_t, horizontal) - 8usize];
3653    ["Offset of field: _cef_box_layout_settings_t::inside_border_horizontal_spacing"][::std::mem::offset_of!(
3654        _cef_box_layout_settings_t,
3655        inside_border_horizontal_spacing
3656    ) - 12usize];
3657    ["Offset of field: _cef_box_layout_settings_t::inside_border_vertical_spacing"][::std::mem::offset_of!(
3658        _cef_box_layout_settings_t,
3659        inside_border_vertical_spacing
3660    ) - 16usize];
3661    ["Offset of field: _cef_box_layout_settings_t::inside_border_insets"]
3662        [::std::mem::offset_of!(_cef_box_layout_settings_t, inside_border_insets) - 20usize];
3663    ["Offset of field: _cef_box_layout_settings_t::between_child_spacing"]
3664        [::std::mem::offset_of!(_cef_box_layout_settings_t, between_child_spacing) - 36usize];
3665    ["Offset of field: _cef_box_layout_settings_t::main_axis_alignment"]
3666        [::std::mem::offset_of!(_cef_box_layout_settings_t, main_axis_alignment) - 40usize];
3667    ["Offset of field: _cef_box_layout_settings_t::cross_axis_alignment"]
3668        [::std::mem::offset_of!(_cef_box_layout_settings_t, cross_axis_alignment) - 44usize];
3669    ["Offset of field: _cef_box_layout_settings_t::minimum_cross_axis_size"]
3670        [::std::mem::offset_of!(_cef_box_layout_settings_t, minimum_cross_axis_size) - 48usize];
3671    ["Offset of field: _cef_box_layout_settings_t::default_flex"]
3672        [::std::mem::offset_of!(_cef_box_layout_settings_t, default_flex) - 52usize];
3673};
3674#[doc = "\n Settings used when initializing a CefBoxLayout.\n"]
3675pub type cef_box_layout_settings_t = _cef_box_layout_settings_t;
3676#[repr(u32)]
3677#[non_exhaustive]
3678#[doc = "\n Specifies the button display state.\n"]
3679#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3680pub enum cef_button_state_t {
3681    CEF_BUTTON_STATE_NORMAL = 0,
3682    CEF_BUTTON_STATE_HOVERED = 1,
3683    CEF_BUTTON_STATE_PRESSED = 2,
3684    CEF_BUTTON_STATE_DISABLED = 3,
3685    CEF_BUTTON_STATE_NUM_VALUES = 4,
3686}
3687#[repr(u32)]
3688#[non_exhaustive]
3689#[doc = "\n Specifies the horizontal text alignment mode.\n"]
3690#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3691pub enum cef_horizontal_alignment_t {
3692    #[doc = "\n Align the text's left edge with that of its display area.\n"]
3693    CEF_HORIZONTAL_ALIGNMENT_LEFT = 0,
3694    #[doc = "\n Align the text's center with that of its display area.\n"]
3695    CEF_HORIZONTAL_ALIGNMENT_CENTER = 1,
3696    #[doc = "\n Align the text's right edge with that of its display area.\n"]
3697    CEF_HORIZONTAL_ALIGNMENT_RIGHT = 2,
3698}
3699#[repr(u32)]
3700#[non_exhaustive]
3701#[doc = "\n Specifies how a menu will be anchored for non-RTL languages. The opposite\n position will be used for RTL languages.\n"]
3702#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3703pub enum cef_menu_anchor_position_t {
3704    CEF_MENU_ANCHOR_TOPLEFT = 0,
3705    CEF_MENU_ANCHOR_TOPRIGHT = 1,
3706    CEF_MENU_ANCHOR_BOTTOMCENTER = 2,
3707    CEF_MENU_ANCHOR_NUM_VALUES = 3,
3708}
3709#[repr(u32)]
3710#[non_exhaustive]
3711#[doc = "\n Supported color types for menu items.\n"]
3712#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3713pub enum cef_menu_color_type_t {
3714    CEF_MENU_COLOR_TEXT = 0,
3715    CEF_MENU_COLOR_TEXT_HOVERED = 1,
3716    CEF_MENU_COLOR_TEXT_ACCELERATOR = 2,
3717    CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED = 3,
3718    CEF_MENU_COLOR_BACKGROUND = 4,
3719    CEF_MENU_COLOR_BACKGROUND_HOVERED = 5,
3720    CEF_MENU_COLOR_NUM_VALUES = 6,
3721}
3722#[repr(u32)]
3723#[non_exhaustive]
3724#[doc = " Supported SSL version values. See net/ssl/ssl_connection_status_flags.h\n for more information."]
3725#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3726pub enum cef_ssl_version_t {
3727    #[doc = " Unknown SSL version."]
3728    SSL_CONNECTION_VERSION_UNKNOWN = 0,
3729    #[doc = " Unknown SSL version."]
3730    SSL_CONNECTION_VERSION_SSL2 = 1,
3731    #[doc = " Unknown SSL version."]
3732    SSL_CONNECTION_VERSION_SSL3 = 2,
3733    #[doc = " Unknown SSL version."]
3734    SSL_CONNECTION_VERSION_TLS1 = 3,
3735    #[doc = " Unknown SSL version."]
3736    SSL_CONNECTION_VERSION_TLS1_1 = 4,
3737    #[doc = " Unknown SSL version."]
3738    SSL_CONNECTION_VERSION_TLS1_2 = 5,
3739    #[doc = " Unknown SSL version."]
3740    SSL_CONNECTION_VERSION_TLS1_3 = 6,
3741    #[doc = " Unknown SSL version."]
3742    SSL_CONNECTION_VERSION_QUIC = 7,
3743    #[doc = " Unknown SSL version."]
3744    SSL_CONNECTION_VERSION_NUM_VALUES = 8,
3745}
3746#[repr(u32)]
3747#[non_exhaustive]
3748#[doc = " Supported SSL content status flags. See content/public/common/ssl_status.h\n for more information."]
3749#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3750pub enum cef_ssl_content_status_t {
3751    SSL_CONTENT_NORMAL_CONTENT = 0,
3752    SSL_CONTENT_DISPLAYED_INSECURE_CONTENT = 1,
3753    SSL_CONTENT_RAN_INSECURE_CONTENT = 2,
3754}
3755#[repr(u32)]
3756#[non_exhaustive]
3757#[doc = " Configuration options for registering a custom scheme.\n These values are used when calling AddCustomScheme."]
3758#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3759pub enum cef_scheme_options_t {
3760    CEF_SCHEME_OPTION_NONE = 0,
3761    #[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"]
3762    CEF_SCHEME_OPTION_STANDARD = 1,
3763    #[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"]
3764    CEF_SCHEME_OPTION_LOCAL = 2,
3765    #[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"]
3766    CEF_SCHEME_OPTION_DISPLAY_ISOLATED = 4,
3767    #[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"]
3768    CEF_SCHEME_OPTION_SECURE = 8,
3769    #[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"]
3770    CEF_SCHEME_OPTION_CORS_ENABLED = 16,
3771    #[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"]
3772    CEF_SCHEME_OPTION_CSP_BYPASSING = 32,
3773    #[doc = "\n If CEF_SCHEME_OPTION_FETCH_ENABLED is set the scheme can perform Fetch API\n requests.\n"]
3774    CEF_SCHEME_OPTION_FETCH_ENABLED = 64,
3775}
3776#[doc = "\n Structure representing a range.\n"]
3777#[repr(C)]
3778#[derive(Debug, Copy, Clone)]
3779pub struct _cef_range_t {
3780    pub from: u32,
3781    pub to: u32,
3782}
3783#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3784const _: () = {
3785    ["Size of _cef_range_t"][::std::mem::size_of::<_cef_range_t>() - 8usize];
3786    ["Alignment of _cef_range_t"][::std::mem::align_of::<_cef_range_t>() - 4usize];
3787    ["Offset of field: _cef_range_t::from"][::std::mem::offset_of!(_cef_range_t, from) - 0usize];
3788    ["Offset of field: _cef_range_t::to"][::std::mem::offset_of!(_cef_range_t, to) - 4usize];
3789};
3790#[doc = "\n Structure representing a range.\n"]
3791pub type cef_range_t = _cef_range_t;
3792#[repr(u32)]
3793#[non_exhaustive]
3794#[doc = "\n Composition underline style.\n"]
3795#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3796pub enum cef_composition_underline_style_t {
3797    CEF_CUS_SOLID = 0,
3798    CEF_CUS_DOT = 1,
3799    CEF_CUS_DASH = 2,
3800    CEF_CUS_NONE = 3,
3801    CEF_CUS_NUM_VALUES = 4,
3802}
3803#[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"]
3804#[repr(C)]
3805#[derive(Debug, Copy, Clone)]
3806pub struct _cef_composition_underline_t {
3807    #[doc = "\n Size of this structure.\n"]
3808    pub size: usize,
3809    #[doc = "\n Underline character range.\n"]
3810    pub range: cef_range_t,
3811    #[doc = "\n Text color.\n"]
3812    pub color: cef_color_t,
3813    #[doc = "\n Background color.\n"]
3814    pub background_color: cef_color_t,
3815    #[doc = "\n Set to true (1) for thick underline.\n"]
3816    pub thick: ::std::os::raw::c_int,
3817    #[doc = "\n Style.\n"]
3818    pub style: cef_composition_underline_style_t,
3819}
3820#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3821const _: () = {
3822    ["Size of _cef_composition_underline_t"]
3823        [::std::mem::size_of::<_cef_composition_underline_t>() - 32usize];
3824    ["Alignment of _cef_composition_underline_t"]
3825        [::std::mem::align_of::<_cef_composition_underline_t>() - 8usize];
3826    ["Offset of field: _cef_composition_underline_t::size"]
3827        [::std::mem::offset_of!(_cef_composition_underline_t, size) - 0usize];
3828    ["Offset of field: _cef_composition_underline_t::range"]
3829        [::std::mem::offset_of!(_cef_composition_underline_t, range) - 8usize];
3830    ["Offset of field: _cef_composition_underline_t::color"]
3831        [::std::mem::offset_of!(_cef_composition_underline_t, color) - 16usize];
3832    ["Offset of field: _cef_composition_underline_t::background_color"]
3833        [::std::mem::offset_of!(_cef_composition_underline_t, background_color) - 20usize];
3834    ["Offset of field: _cef_composition_underline_t::thick"]
3835        [::std::mem::offset_of!(_cef_composition_underline_t, thick) - 24usize];
3836    ["Offset of field: _cef_composition_underline_t::style"]
3837        [::std::mem::offset_of!(_cef_composition_underline_t, style) - 28usize];
3838};
3839#[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"]
3840pub type cef_composition_underline_t = _cef_composition_underline_t;
3841#[repr(u32)]
3842#[non_exhaustive]
3843#[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"]
3844#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3845pub enum cef_channel_layout_t {
3846    CEF_CHANNEL_LAYOUT_NONE = 0,
3847    CEF_CHANNEL_LAYOUT_UNSUPPORTED = 1,
3848    #[doc = " Front C"]
3849    CEF_CHANNEL_LAYOUT_MONO = 2,
3850    #[doc = " Front L, Front R"]
3851    CEF_CHANNEL_LAYOUT_STEREO = 3,
3852    #[doc = " Front L, Front R, Back C"]
3853    CEF_CHANNEL_LAYOUT_2_1 = 4,
3854    #[doc = " Front L, Front R, Front C"]
3855    CEF_CHANNEL_LAYOUT_SURROUND = 5,
3856    #[doc = " Front L, Front R, Front C, Back C"]
3857    CEF_CHANNEL_LAYOUT_4_0 = 6,
3858    #[doc = " Front L, Front R, Side L, Side R"]
3859    CEF_CHANNEL_LAYOUT_2_2 = 7,
3860    #[doc = " Front L, Front R, Back L, Back R"]
3861    CEF_CHANNEL_LAYOUT_QUAD = 8,
3862    #[doc = " Front L, Front R, Front C, Side L, Side R"]
3863    CEF_CHANNEL_LAYOUT_5_0 = 9,
3864    #[doc = " Front L, Front R, Front C, LFE, Side L, Side R"]
3865    CEF_CHANNEL_LAYOUT_5_1 = 10,
3866    #[doc = " Front L, Front R, Front C, Back L, Back R"]
3867    CEF_CHANNEL_LAYOUT_5_0_BACK = 11,
3868    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R"]
3869    CEF_CHANNEL_LAYOUT_5_1_BACK = 12,
3870    #[doc = " Front L, Front R, Front C, Back L, Back R, Side L, Side R"]
3871    CEF_CHANNEL_LAYOUT_7_0 = 13,
3872    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Side L, Side R"]
3873    CEF_CHANNEL_LAYOUT_7_1 = 14,
3874    #[doc = " Front L, Front R, Front C, LFE, Front LofC, Front RofC, Side L, Side R"]
3875    CEF_CHANNEL_LAYOUT_7_1_WIDE = 15,
3876    #[doc = " Front L, Front R"]
3877    CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX = 16,
3878    #[doc = " Front L, Front R, LFE"]
3879    CEF_CHANNEL_LAYOUT_2POINT1 = 17,
3880    #[doc = " Front L, Front R, Front C, LFE"]
3881    CEF_CHANNEL_LAYOUT_3_1 = 18,
3882    #[doc = " Front L, Front R, Front C, LFE, Back C"]
3883    CEF_CHANNEL_LAYOUT_4_1 = 19,
3884    #[doc = " Front L, Front R, Front C, Back C, Side L, Side R"]
3885    CEF_CHANNEL_LAYOUT_6_0 = 20,
3886    #[doc = " Front L, Front R, Front LofC, Front RofC, Side L, Side R"]
3887    CEF_CHANNEL_LAYOUT_6_0_FRONT = 21,
3888    #[doc = " Front L, Front R, Front C, Back L, Back R, Back C"]
3889    CEF_CHANNEL_LAYOUT_HEXAGONAL = 22,
3890    #[doc = " Front L, Front R, Front C, LFE, Back C, Side L, Side R"]
3891    CEF_CHANNEL_LAYOUT_6_1 = 23,
3892    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Back C"]
3893    CEF_CHANNEL_LAYOUT_6_1_BACK = 24,
3894    #[doc = " Front L, Front R, LFE, Front LofC, Front RofC, Side L, Side R"]
3895    CEF_CHANNEL_LAYOUT_6_1_FRONT = 25,
3896    #[doc = " Front L, Front R, Front C, Front LofC, Front RofC, Side L, Side R"]
3897    CEF_CHANNEL_LAYOUT_7_0_FRONT = 26,
3898    #[doc = " Front L, Front R, Front C, LFE, Back L, Back R, Front LofC, Front RofC"]
3899    CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK = 27,
3900    #[doc = " Front L, Front R, Front C, Back L, Back R, Back C, Side L, Side R"]
3901    CEF_CHANNEL_LAYOUT_OCTAGONAL = 28,
3902    #[doc = " Channels are not explicitly mapped to speakers."]
3903    CEF_CHANNEL_LAYOUT_DISCRETE = 29,
3904    #[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."]
3905    CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC = 30,
3906    #[doc = " Front L, Front R, LFE, Side L, Side R"]
3907    CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE = 31,
3908    #[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)."]
3909    CEF_CHANNEL_LAYOUT_BITSTREAM = 32,
3910    #[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"]
3911    CEF_CHANNEL_LAYOUT_5_1_4_DOWNMIX = 33,
3912    #[doc = " Front C, LFE"]
3913    CEF_CHANNEL_LAYOUT_1_1 = 34,
3914    #[doc = " Front L, Front R, LFE, Back C"]
3915    CEF_CHANNEL_LAYOUT_3_1_BACK = 35,
3916    #[doc = " Front L, Front R, LFE, Back C"]
3917    CEF_CHANNEL_NUM_VALUES = 36,
3918}
3919#[doc = "\n Structure representing the audio parameters for setting up the audio\n handler.\n"]
3920#[repr(C)]
3921#[derive(Debug, Copy, Clone)]
3922pub struct _cef_audio_parameters_t {
3923    #[doc = "\n Size of this structure.\n"]
3924    pub size: usize,
3925    #[doc = "\n Layout of the audio channels\n"]
3926    pub channel_layout: cef_channel_layout_t,
3927    #[doc = "\n Sample rate"]
3928    pub sample_rate: ::std::os::raw::c_int,
3929    #[doc = "\n Number of frames per buffer\n"]
3930    pub frames_per_buffer: ::std::os::raw::c_int,
3931}
3932#[allow(clippy::unnecessary_operation, clippy::identity_op)]
3933const _: () = {
3934    ["Size of _cef_audio_parameters_t"][::std::mem::size_of::<_cef_audio_parameters_t>() - 24usize];
3935    ["Alignment of _cef_audio_parameters_t"]
3936        [::std::mem::align_of::<_cef_audio_parameters_t>() - 8usize];
3937    ["Offset of field: _cef_audio_parameters_t::size"]
3938        [::std::mem::offset_of!(_cef_audio_parameters_t, size) - 0usize];
3939    ["Offset of field: _cef_audio_parameters_t::channel_layout"]
3940        [::std::mem::offset_of!(_cef_audio_parameters_t, channel_layout) - 8usize];
3941    ["Offset of field: _cef_audio_parameters_t::sample_rate"]
3942        [::std::mem::offset_of!(_cef_audio_parameters_t, sample_rate) - 12usize];
3943    ["Offset of field: _cef_audio_parameters_t::frames_per_buffer"]
3944        [::std::mem::offset_of!(_cef_audio_parameters_t, frames_per_buffer) - 16usize];
3945};
3946#[doc = "\n Structure representing the audio parameters for setting up the audio\n handler.\n"]
3947pub type cef_audio_parameters_t = _cef_audio_parameters_t;
3948#[repr(u32)]
3949#[non_exhaustive]
3950#[doc = "\n Result codes for CefMediaRouter::CreateRoute. Should be kept in sync with\n Chromium's media_router::mojom::RouteRequestResultCode type.\n"]
3951#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3952pub enum cef_media_route_create_result_t {
3953    CEF_MRCR_UNKNOWN_ERROR = 0,
3954    CEF_MRCR_OK = 1,
3955    CEF_MRCR_TIMED_OUT = 2,
3956    CEF_MRCR_ROUTE_NOT_FOUND = 3,
3957    CEF_MRCR_SINK_NOT_FOUND = 4,
3958    CEF_MRCR_INVALID_ORIGIN = 5,
3959    CEF_MRCR_OFF_THE_RECORD_MISMATCH_DEPRECATED = 6,
3960    CEF_MRCR_NO_SUPPORTED_PROVIDER = 7,
3961    CEF_MRCR_CANCELLED = 8,
3962    CEF_MRCR_ROUTE_ALREADY_EXISTS = 9,
3963    CEF_MRCR_DESKTOP_PICKER_FAILED = 10,
3964    CEF_MRCR_ROUTE_ALREADY_TERMINATED = 11,
3965    CEF_MRCR_REDUNDANT_REQUEST = 12,
3966    CEF_MRCR_USER_NOT_ALLOWED = 13,
3967    CEF_MRCR_NOTIFICATION_DISABLED = 14,
3968    CEF_MRCR_NUM_VALUES = 15,
3969}
3970#[repr(i32)]
3971#[non_exhaustive]
3972#[doc = "\n Connection state for a MediaRoute object. Should be kept in sync with\n Chromium's blink::mojom::PresentationConnectionState type.\n"]
3973#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3974pub enum cef_media_route_connection_state_t {
3975    CEF_MRCS_UNKNOWN = -1,
3976    CEF_MRCS_CONNECTING = 0,
3977    CEF_MRCS_CONNECTED = 1,
3978    CEF_MRCS_CLOSED = 2,
3979    CEF_MRCS_TERMINATED = 3,
3980    CEF_MRCS_NUM_VALUES = 4,
3981}
3982#[repr(u32)]
3983#[non_exhaustive]
3984#[doc = "\n Icon types for a MediaSink object. Should be kept in sync with Chromium's\n media_router::SinkIconType type.\n"]
3985#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
3986pub enum cef_media_sink_icon_type_t {
3987    CEF_MSIT_CAST = 0,
3988    CEF_MSIT_CAST_AUDIO_GROUP = 1,
3989    CEF_MSIT_CAST_AUDIO = 2,
3990    CEF_MSIT_MEETING = 3,
3991    CEF_MSIT_HANGOUT = 4,
3992    CEF_MSIT_EDUCATION = 5,
3993    CEF_MSIT_WIRED_DISPLAY = 6,
3994    CEF_MSIT_GENERIC = 7,
3995    CEF_MSIT_NUM_VALUES = 8,
3996}
3997#[doc = "\n Device information for a MediaSink object.\n"]
3998#[repr(C)]
3999#[derive(Debug, Copy, Clone)]
4000pub struct _cef_media_sink_device_info_t {
4001    #[doc = "\n Size of this structure.\n"]
4002    pub size: usize,
4003    pub ip_address: cef_string_t,
4004    pub port: ::std::os::raw::c_int,
4005    pub model_name: cef_string_t,
4006}
4007#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4008const _: () = {
4009    ["Size of _cef_media_sink_device_info_t"]
4010        [::std::mem::size_of::<_cef_media_sink_device_info_t>() - 64usize];
4011    ["Alignment of _cef_media_sink_device_info_t"]
4012        [::std::mem::align_of::<_cef_media_sink_device_info_t>() - 8usize];
4013    ["Offset of field: _cef_media_sink_device_info_t::size"]
4014        [::std::mem::offset_of!(_cef_media_sink_device_info_t, size) - 0usize];
4015    ["Offset of field: _cef_media_sink_device_info_t::ip_address"]
4016        [::std::mem::offset_of!(_cef_media_sink_device_info_t, ip_address) - 8usize];
4017    ["Offset of field: _cef_media_sink_device_info_t::port"]
4018        [::std::mem::offset_of!(_cef_media_sink_device_info_t, port) - 32usize];
4019    ["Offset of field: _cef_media_sink_device_info_t::model_name"]
4020        [::std::mem::offset_of!(_cef_media_sink_device_info_t, model_name) - 40usize];
4021};
4022#[doc = "\n Device information for a MediaSink object.\n"]
4023pub type cef_media_sink_device_info_t = _cef_media_sink_device_info_t;
4024#[repr(u32)]
4025#[non_exhaustive]
4026#[doc = "\n Represents commands available to TextField. Should be kept in sync with\n Chromium's views::TextField::MenuCommands type.\n"]
4027#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4028pub enum cef_text_field_commands_t {
4029    CEF_TFC_UNKNOWN = 0,
4030    CEF_TFC_CUT = 1,
4031    CEF_TFC_COPY = 2,
4032    CEF_TFC_PASTE = 3,
4033    CEF_TFC_SELECT_ALL = 4,
4034    CEF_TFC_SELECT_WORD = 5,
4035    CEF_TFC_UNDO = 6,
4036    CEF_TFC_DELETE = 7,
4037    CEF_TFC_NUM_VALUES = 8,
4038}
4039#[repr(u32)]
4040#[non_exhaustive]
4041#[doc = "\n Chrome toolbar types.\n"]
4042#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4043pub enum cef_chrome_toolbar_type_t {
4044    CEF_CTT_UNKNOWN = 0,
4045    CEF_CTT_NONE = 1,
4046    CEF_CTT_NORMAL = 2,
4047    CEF_CTT_LOCATION = 3,
4048    CEF_CTT_NUM_VALUES = 4,
4049}
4050#[repr(u32)]
4051#[non_exhaustive]
4052#[doc = "\n Chrome page action icon types. Should be kept in sync with Chromium's\n PageActionIconType type.\n"]
4053#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4054pub enum cef_chrome_page_action_icon_type_t {
4055    CEF_CPAIT_BOOKMARK_STAR = 0,
4056    CEF_CPAIT_CLICK_TO_CALL = 1,
4057    CEF_CPAIT_COOKIE_CONTROLS = 2,
4058    CEF_CPAIT_FILE_SYSTEM_ACCESS = 3,
4059    CEF_CPAIT_FIND = 4,
4060    CEF_CPAIT_MEMORY_SAVER = 5,
4061    CEF_CPAIT_INTENT_PICKER = 6,
4062    CEF_CPAIT_LOCAL_CARD_MIGRATION = 7,
4063    CEF_CPAIT_MANAGE_PASSWORDS = 8,
4064    CEF_CPAIT_PAYMENTS_OFFER_NOTIFICATION = 9,
4065    CEF_CPAIT_PRICE_TRACKING = 10,
4066    CEF_CPAIT_PWA_INSTALL = 11,
4067    CEF_CPAIT_QR_CODE_GENERATOR_DEPRECATED = 12,
4068    CEF_CPAIT_READER_MODE_DEPRECATED = 13,
4069    CEF_CPAIT_SAVE_AUTOFILL_ADDRESS = 14,
4070    CEF_CPAIT_SAVE_CARD = 15,
4071    CEF_CPAIT_SEND_TAB_TO_SELF_DEPRECATED = 16,
4072    CEF_CPAIT_SHARING_HUB = 17,
4073    CEF_CPAIT_SIDE_SEARCH_DEPRECATED = 18,
4074    CEF_CPAIT_SMS_REMOTE_FETCHER = 19,
4075    CEF_CPAIT_TRANSLATE = 20,
4076    CEF_CPAIT_VIRTUAL_CARD_ENROLL = 21,
4077    CEF_CPAIT_VIRTUAL_CARD_INFORMATION = 22,
4078    CEF_CPAIT_ZOOM = 23,
4079    CEF_CPAIT_SAVE_IBAN = 24,
4080    CEF_CPAIT_MANDATORY_REAUTH = 25,
4081    CEF_CPAIT_PRICE_INSIGHTS = 26,
4082    CEF_CPAIT_READ_ANYTHING_DEPRECATED = 27,
4083    CEF_CPAIT_PRODUCT_SPECIFICATIONS = 28,
4084    CEF_CPAIT_LENS_OVERLAY = 29,
4085    CEF_CPAIT_DISCOUNTS = 30,
4086    CEF_CPAIT_OPTIMIZATION_GUIDE = 31,
4087    CEF_CPAIT_COLLABORATION_MESSAGING = 32,
4088    CEF_CPAIT_CHANGE_PASSWORD = 33,
4089    CEF_CPAIT_LENS_OVERLAY_HOMEWORK = 34,
4090    CEF_CPAIT_AI_MODE = 35,
4091    CEF_CPAIT_READING_MODE = 36,
4092    CEF_CPAIT_CONTEXTUAL_SIDE_PANEL = 37,
4093    CEF_CPAIT_JS_OPTIMIZATIONS = 38,
4094    CEF_CPAIT_NUM_VALUES = 39,
4095}
4096#[repr(u32)]
4097#[non_exhaustive]
4098#[doc = "\n Chrome toolbar button types. Should be kept in sync with CEF's internal\n ToolbarButtonType type.\n"]
4099#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4100pub enum cef_chrome_toolbar_button_type_t {
4101    CEF_CTBT_CAST_DEPRECATED = 0,
4102    CEF_CTBT_DOWNLOAD_DEPRECATED = 1,
4103    CEF_CTBT_SEND_TAB_TO_SELF_DEPRECATED = 2,
4104    CEF_CTBT_SIDE_PANEL_DEPRECATED = 3,
4105    CEF_CTBT_MEDIA = 4,
4106    CEF_CTBT_TAB_SEARCH = 5,
4107    CEF_CTBT_BATTERY_SAVER = 6,
4108    CEF_CTBT_AVATAR = 7,
4109    CEF_CTBT_NUM_VALUES = 8,
4110}
4111#[repr(u32)]
4112#[non_exhaustive]
4113#[doc = "\n Docking modes supported by CefWindow::AddOverlay.\n"]
4114#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4115pub enum cef_docking_mode_t {
4116    CEF_DOCKING_MODE_TOP_LEFT = 0,
4117    CEF_DOCKING_MODE_TOP_RIGHT = 1,
4118    CEF_DOCKING_MODE_BOTTOM_LEFT = 2,
4119    CEF_DOCKING_MODE_BOTTOM_RIGHT = 3,
4120    CEF_DOCKING_MODE_CUSTOM = 4,
4121    CEF_DOCKING_MODE_NUM_VALUES = 5,
4122}
4123#[repr(u32)]
4124#[non_exhaustive]
4125#[doc = "\n Show states supported by CefWindowDelegate::GetInitialShowState.\n"]
4126#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4127pub enum cef_show_state_t {
4128    CEF_SHOW_STATE_NORMAL = 0,
4129    CEF_SHOW_STATE_MINIMIZED = 1,
4130    CEF_SHOW_STATE_MAXIMIZED = 2,
4131    CEF_SHOW_STATE_FULLSCREEN = 3,
4132    CEF_SHOW_STATE_HIDDEN = 4,
4133    CEF_SHOW_STATE_NUM_VALUES = 5,
4134}
4135impl cef_touch_handle_state_flags_t {
4136    pub const CEF_THS_FLAG_NONE: cef_touch_handle_state_flags_t = cef_touch_handle_state_flags_t(0);
4137    pub const CEF_THS_FLAG_ENABLED: cef_touch_handle_state_flags_t =
4138        cef_touch_handle_state_flags_t(1);
4139    pub const CEF_THS_FLAG_ORIENTATION: cef_touch_handle_state_flags_t =
4140        cef_touch_handle_state_flags_t(2);
4141    pub const CEF_THS_FLAG_ORIGIN: cef_touch_handle_state_flags_t =
4142        cef_touch_handle_state_flags_t(4);
4143    pub const CEF_THS_FLAG_ALPHA: cef_touch_handle_state_flags_t =
4144        cef_touch_handle_state_flags_t(8);
4145}
4146impl ::std::ops::BitOr<cef_touch_handle_state_flags_t> for cef_touch_handle_state_flags_t {
4147    type Output = Self;
4148    #[inline]
4149    fn bitor(self, other: Self) -> Self {
4150        cef_touch_handle_state_flags_t(self.0 | other.0)
4151    }
4152}
4153impl ::std::ops::BitOrAssign for cef_touch_handle_state_flags_t {
4154    #[inline]
4155    fn bitor_assign(&mut self, rhs: cef_touch_handle_state_flags_t) {
4156        self.0 |= rhs.0;
4157    }
4158}
4159impl ::std::ops::BitAnd<cef_touch_handle_state_flags_t> for cef_touch_handle_state_flags_t {
4160    type Output = Self;
4161    #[inline]
4162    fn bitand(self, other: Self) -> Self {
4163        cef_touch_handle_state_flags_t(self.0 & other.0)
4164    }
4165}
4166impl ::std::ops::BitAndAssign for cef_touch_handle_state_flags_t {
4167    #[inline]
4168    fn bitand_assign(&mut self, rhs: cef_touch_handle_state_flags_t) {
4169        self.0 &= rhs.0;
4170    }
4171}
4172#[repr(transparent)]
4173#[doc = "\n Values indicating what state of the touch handle is set.\n"]
4174#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4175pub struct cef_touch_handle_state_flags_t(pub ::std::os::raw::c_uint);
4176#[repr(C)]
4177#[derive(Debug, Copy, Clone)]
4178pub struct _cef_touch_handle_state_t {
4179    #[doc = "\n Size of this structure.\n"]
4180    pub size: usize,
4181    #[doc = "\n Touch handle id. Increments for each new touch handle.\n"]
4182    pub touch_handle_id: ::std::os::raw::c_int,
4183    #[doc = "\n Combination of cef_touch_handle_state_flags_t values indicating what state\n is set.\n"]
4184    pub flags: u32,
4185    #[doc = "\n Enabled state. Only set if |flags| contains CEF_THS_FLAG_ENABLED.\n"]
4186    pub enabled: ::std::os::raw::c_int,
4187    #[doc = "\n Orientation state. Only set if |flags| contains CEF_THS_FLAG_ORIENTATION.\n"]
4188    pub orientation: cef_horizontal_alignment_t,
4189    pub mirror_vertical: ::std::os::raw::c_int,
4190    pub mirror_horizontal: ::std::os::raw::c_int,
4191    #[doc = "\n Origin state. Only set if |flags| contains CEF_THS_FLAG_ORIGIN.\n"]
4192    pub origin: cef_point_t,
4193    #[doc = "\n Alpha state. Only set if |flags| contains CEF_THS_FLAG_ALPHA.\n"]
4194    pub alpha: f32,
4195}
4196#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4197const _: () = {
4198    ["Size of _cef_touch_handle_state_t"]
4199        [::std::mem::size_of::<_cef_touch_handle_state_t>() - 48usize];
4200    ["Alignment of _cef_touch_handle_state_t"]
4201        [::std::mem::align_of::<_cef_touch_handle_state_t>() - 8usize];
4202    ["Offset of field: _cef_touch_handle_state_t::size"]
4203        [::std::mem::offset_of!(_cef_touch_handle_state_t, size) - 0usize];
4204    ["Offset of field: _cef_touch_handle_state_t::touch_handle_id"]
4205        [::std::mem::offset_of!(_cef_touch_handle_state_t, touch_handle_id) - 8usize];
4206    ["Offset of field: _cef_touch_handle_state_t::flags"]
4207        [::std::mem::offset_of!(_cef_touch_handle_state_t, flags) - 12usize];
4208    ["Offset of field: _cef_touch_handle_state_t::enabled"]
4209        [::std::mem::offset_of!(_cef_touch_handle_state_t, enabled) - 16usize];
4210    ["Offset of field: _cef_touch_handle_state_t::orientation"]
4211        [::std::mem::offset_of!(_cef_touch_handle_state_t, orientation) - 20usize];
4212    ["Offset of field: _cef_touch_handle_state_t::mirror_vertical"]
4213        [::std::mem::offset_of!(_cef_touch_handle_state_t, mirror_vertical) - 24usize];
4214    ["Offset of field: _cef_touch_handle_state_t::mirror_horizontal"]
4215        [::std::mem::offset_of!(_cef_touch_handle_state_t, mirror_horizontal) - 28usize];
4216    ["Offset of field: _cef_touch_handle_state_t::origin"]
4217        [::std::mem::offset_of!(_cef_touch_handle_state_t, origin) - 32usize];
4218    ["Offset of field: _cef_touch_handle_state_t::alpha"]
4219        [::std::mem::offset_of!(_cef_touch_handle_state_t, alpha) - 40usize];
4220};
4221pub type cef_touch_handle_state_t = _cef_touch_handle_state_t;
4222#[repr(u32)]
4223#[non_exhaustive]
4224#[doc = "\n Media access permissions used by OnRequestMediaAccessPermission.\n"]
4225#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4226pub enum cef_media_access_permission_types_t {
4227    #[doc = "\n No permission.\n"]
4228    CEF_MEDIA_PERMISSION_NONE = 0,
4229    #[doc = "\n Device audio capture permission.\n"]
4230    CEF_MEDIA_PERMISSION_DEVICE_AUDIO_CAPTURE = 1,
4231    #[doc = "\n Device video capture permission.\n"]
4232    CEF_MEDIA_PERMISSION_DEVICE_VIDEO_CAPTURE = 2,
4233    #[doc = "\n Desktop audio capture permission.\n"]
4234    CEF_MEDIA_PERMISSION_DESKTOP_AUDIO_CAPTURE = 4,
4235    #[doc = "\n Desktop video capture permission.\n"]
4236    CEF_MEDIA_PERMISSION_DESKTOP_VIDEO_CAPTURE = 8,
4237}
4238#[repr(u32)]
4239#[non_exhaustive]
4240#[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"]
4241#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4242pub enum cef_permission_request_types_t {
4243    CEF_PERMISSION_TYPE_NONE = 0,
4244    CEF_PERMISSION_TYPE_AR_SESSION = 1,
4245    CEF_PERMISSION_TYPE_CAMERA_PAN_TILT_ZOOM = 2,
4246    CEF_PERMISSION_TYPE_CAMERA_STREAM = 4,
4247    CEF_PERMISSION_TYPE_CAPTURED_SURFACE_CONTROL = 8,
4248    CEF_PERMISSION_TYPE_CLIPBOARD = 16,
4249    CEF_PERMISSION_TYPE_TOP_LEVEL_STORAGE_ACCESS = 32,
4250    CEF_PERMISSION_TYPE_DISK_QUOTA = 64,
4251    CEF_PERMISSION_TYPE_LOCAL_FONTS = 128,
4252    CEF_PERMISSION_TYPE_GEOLOCATION = 256,
4253    CEF_PERMISSION_TYPE_HAND_TRACKING = 512,
4254    CEF_PERMISSION_TYPE_IDENTITY_PROVIDER = 1024,
4255    CEF_PERMISSION_TYPE_IDLE_DETECTION = 2048,
4256    CEF_PERMISSION_TYPE_MIC_STREAM = 4096,
4257    CEF_PERMISSION_TYPE_MIDI_SYSEX = 8192,
4258    CEF_PERMISSION_TYPE_MULTIPLE_DOWNLOADS = 16384,
4259    CEF_PERMISSION_TYPE_NOTIFICATIONS = 32768,
4260    CEF_PERMISSION_TYPE_KEYBOARD_LOCK = 65536,
4261    CEF_PERMISSION_TYPE_POINTER_LOCK = 131072,
4262    CEF_PERMISSION_TYPE_PROTECTED_MEDIA_IDENTIFIER = 262144,
4263    CEF_PERMISSION_TYPE_REGISTER_PROTOCOL_HANDLER = 524288,
4264    CEF_PERMISSION_TYPE_STORAGE_ACCESS = 1048576,
4265    CEF_PERMISSION_TYPE_VR_SESSION = 2097152,
4266    CEF_PERMISSION_TYPE_WEB_APP_INSTALLATION = 4194304,
4267    CEF_PERMISSION_TYPE_WINDOW_MANAGEMENT = 8388608,
4268    CEF_PERMISSION_TYPE_FILE_SYSTEM_ACCESS = 16777216,
4269    CEF_PERMISSION_TYPE_LOCAL_NETWORK_ACCESS = 33554432,
4270    CEF_PERMISSION_TYPE_LOCAL_NETWORK = 67108864,
4271    CEF_PERMISSION_TYPE_LOOPBACK_NETWORK = 134217728,
4272}
4273#[repr(u32)]
4274#[non_exhaustive]
4275#[doc = "\n Permission request results.\n"]
4276#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4277pub enum cef_permission_request_result_t {
4278    #[doc = "\n Accept the permission request as an explicit user action.\n"]
4279    CEF_PERMISSION_RESULT_ACCEPT = 0,
4280    #[doc = "\n Deny the permission request as an explicit user action.\n"]
4281    CEF_PERMISSION_RESULT_DENY = 1,
4282    #[doc = "\n Dismiss the permission request as an explicit user action.\n"]
4283    CEF_PERMISSION_RESULT_DISMISS = 2,
4284    #[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"]
4285    CEF_PERMISSION_RESULT_IGNORE = 3,
4286    #[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"]
4287    CEF_PERMISSION_RESULT_NUM_VALUES = 4,
4288}
4289#[repr(u32)]
4290#[non_exhaustive]
4291#[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"]
4292#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4293pub enum cef_test_cert_type_t {
4294    #[doc = " Valid certificate using the IP (127.0.0.1). Loads the \"ok_cert.pem\" file."]
4295    CEF_TEST_CERT_OK_IP = 0,
4296    #[doc = " Valid certificate using the domain (\"localhost\"). Loads the\n \"localhost_cert.pem\" file."]
4297    CEF_TEST_CERT_OK_DOMAIN = 1,
4298    #[doc = " Expired certificate. Loads the \"expired_cert.pem\" file."]
4299    CEF_TEST_CERT_EXPIRED = 2,
4300    #[doc = " Expired certificate. Loads the \"expired_cert.pem\" file."]
4301    CEF_TEST_CERT_NUM_VALUES = 3,
4302}
4303#[repr(u32)]
4304#[non_exhaustive]
4305#[doc = "\n Preferences type passed to\n CefBrowserProcessHandler::OnRegisterCustomPreferences.\n"]
4306#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4307pub enum cef_preferences_type_t {
4308    #[doc = " Global preferences registered a single time at application startup."]
4309    CEF_PREFERENCES_TYPE_GLOBAL = 0,
4310    #[doc = " Request context preferences registered each time a new CefRequestContext\n is created."]
4311    CEF_PREFERENCES_TYPE_REQUEST_CONTEXT = 1,
4312    #[doc = " Request context preferences registered each time a new CefRequestContext\n is created."]
4313    CEF_PREFERENCES_TYPE_NUM_VALUES = 2,
4314}
4315#[repr(u32)]
4316#[non_exhaustive]
4317#[doc = "\n Download interrupt reasons. Should be kept in sync with\n Chromium's download::DownloadInterruptReason type.\n"]
4318#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4319pub enum cef_download_interrupt_reason_t {
4320    CEF_DOWNLOAD_INTERRUPT_REASON_NONE = 0,
4321    #[doc = " Generic file operation failure."]
4322    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_FAILED = 1,
4323    #[doc = " The file cannot be accessed due to security restrictions."]
4324    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_ACCESS_DENIED = 2,
4325    #[doc = " There is not enough room on the drive."]
4326    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NO_SPACE = 3,
4327    #[doc = " The directory or file name is too long."]
4328    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_NAME_TOO_LONG = 5,
4329    #[doc = " The file is too large for the file system to handle."]
4330    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_LARGE = 6,
4331    #[doc = " The file contains a virus."]
4332    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_VIRUS_INFECTED = 7,
4333    #[doc = " The file was in use. Too many files are opened at once. We have run out of\n memory."]
4334    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TRANSIENT_ERROR = 10,
4335    #[doc = " The file was blocked due to local policy."]
4336    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_BLOCKED = 11,
4337    #[doc = " An attempt to check the safety of the download failed due to unexpected\n reasons. See http://crbug.com/153212."]
4338    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SECURITY_CHECK_FAILED = 12,
4339    #[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)."]
4340    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_TOO_SHORT = 13,
4341    #[doc = " The partial file didn't match the expected hash."]
4342    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_HASH_MISMATCH = 14,
4343    #[doc = " The source and the target of the download were the same."]
4344    CEF_DOWNLOAD_INTERRUPT_REASON_FILE_SAME_AS_SOURCE = 15,
4345    #[doc = " Generic network failure."]
4346    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_FAILED = 20,
4347    #[doc = " The network operation timed out."]
4348    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_TIMEOUT = 21,
4349    #[doc = " The network connection has been lost."]
4350    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_DISCONNECTED = 22,
4351    #[doc = " The server has gone down."]
4352    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_SERVER_DOWN = 23,
4353    #[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."]
4354    CEF_DOWNLOAD_INTERRUPT_REASON_NETWORK_INVALID_REQUEST = 24,
4355    #[doc = " The server indicates that the operation has failed (generic)."]
4356    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FAILED = 30,
4357    #[doc = " The server does not support range requests.\n Internal use only:  must restart from the beginning."]
4358    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_NO_RANGE = 31,
4359    #[doc = " The server does not have the requested data."]
4360    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_BAD_CONTENT = 33,
4361    #[doc = " Server didn't authorize access to resource."]
4362    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNAUTHORIZED = 34,
4363    #[doc = " Server certificate problem."]
4364    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CERT_PROBLEM = 35,
4365    #[doc = " Server access forbidden."]
4366    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_FORBIDDEN = 36,
4367    #[doc = " Unexpected server response. This might indicate that the responding server\n may not be the intended server."]
4368    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_UNREACHABLE = 37,
4369    #[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."]
4370    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CONTENT_LENGTH_MISMATCH = 38,
4371    #[doc = " An unexpected cross-origin redirect happened."]
4372    CEF_DOWNLOAD_INTERRUPT_REASON_SERVER_CROSS_ORIGIN_REDIRECT = 39,
4373    #[doc = " The user canceled the download."]
4374    CEF_DOWNLOAD_INTERRUPT_REASON_USER_CANCELED = 40,
4375    #[doc = " The user shut down the browser.\n Internal use only:  resume pending downloads if possible."]
4376    CEF_DOWNLOAD_INTERRUPT_REASON_USER_SHUTDOWN = 41,
4377    #[doc = " The browser crashed.\n Internal use only:  resume pending downloads if possible."]
4378    CEF_DOWNLOAD_INTERRUPT_REASON_CRASH = 50,
4379}
4380#[repr(u32)]
4381#[non_exhaustive]
4382#[doc = "\n Specifies the gesture commands.\n"]
4383#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4384pub enum cef_gesture_command_t {
4385    CEF_GESTURE_COMMAND_BACK = 0,
4386    CEF_GESTURE_COMMAND_FORWARD = 1,
4387}
4388#[repr(u32)]
4389#[non_exhaustive]
4390#[doc = "\n Specifies the zoom commands supported by CefBrowserHost::Zoom.\n"]
4391#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4392pub enum cef_zoom_command_t {
4393    CEF_ZOOM_COMMAND_OUT = 0,
4394    CEF_ZOOM_COMMAND_RESET = 1,
4395    CEF_ZOOM_COMMAND_IN = 2,
4396}
4397#[repr(u32)]
4398#[non_exhaustive]
4399#[doc = "\n Specifies the color variants supported by\n CefRequestContext::SetChromeThemeColor.\n"]
4400#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4401pub enum cef_color_variant_t {
4402    CEF_COLOR_VARIANT_SYSTEM = 0,
4403    CEF_COLOR_VARIANT_LIGHT = 1,
4404    CEF_COLOR_VARIANT_DARK = 2,
4405    CEF_COLOR_VARIANT_TONAL_SPOT = 3,
4406    CEF_COLOR_VARIANT_NEUTRAL = 4,
4407    CEF_COLOR_VARIANT_VIBRANT = 5,
4408    CEF_COLOR_VARIANT_EXPRESSIVE = 6,
4409    CEF_COLOR_VARIANT_NUM_VALUES = 7,
4410}
4411#[repr(u32)]
4412#[non_exhaustive]
4413#[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"]
4414#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
4415pub enum cef_task_type_t {
4416    CEF_TASK_TYPE_UNKNOWN = 0,
4417    #[doc = " The main browser process."]
4418    CEF_TASK_TYPE_BROWSER = 1,
4419    #[doc = " A graphics process."]
4420    CEF_TASK_TYPE_GPU = 2,
4421    #[doc = " A Linux zygote process."]
4422    CEF_TASK_TYPE_ZYGOTE = 3,
4423    #[doc = " A browser utility process."]
4424    CEF_TASK_TYPE_UTILITY = 4,
4425    #[doc = " A normal WebContents renderer process."]
4426    CEF_TASK_TYPE_RENDERER = 5,
4427    #[doc = " An extension or app process."]
4428    CEF_TASK_TYPE_EXTENSION = 6,
4429    #[doc = " A browser plugin guest process."]
4430    CEF_TASK_TYPE_GUEST = 7,
4431    CEF_TASK_TYPE_PLUGIN_DEPRECATED = 8,
4432    #[doc = " A sandbox helper process"]
4433    CEF_TASK_TYPE_SANDBOX_HELPER = 9,
4434    #[doc = " A dedicated worker running on the renderer process."]
4435    CEF_TASK_TYPE_DEDICATED_WORKER = 10,
4436    #[doc = " A shared worker running on the renderer process."]
4437    CEF_TASK_TYPE_SHARED_WORKER = 11,
4438    #[doc = " A service worker running on the renderer process."]
4439    CEF_TASK_TYPE_SERVICE_WORKER = 12,
4440    #[doc = " A service worker running on the renderer process."]
4441    CEF_TASK_TYPE_NUM_VALUES = 13,
4442}
4443#[doc = "\n Structure representing task information provided by CefTaskManager.\n"]
4444#[repr(C)]
4445#[derive(Debug, Copy, Clone)]
4446pub struct _cef_task_info_t {
4447    #[doc = "\n Size of this structure.\n"]
4448    pub size: usize,
4449    #[doc = " The task ID."]
4450    pub id: i64,
4451    #[doc = " The task type."]
4452    pub type_: cef_task_type_t,
4453    #[doc = " Set to true (1) if the task is killable."]
4454    pub is_killable: ::std::os::raw::c_int,
4455    #[doc = " The task title."]
4456    pub title: cef_string_t,
4457    #[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%."]
4458    pub cpu_usage: f64,
4459    #[doc = " The number of processors available on the system."]
4460    pub number_of_processors: ::std::os::raw::c_int,
4461    #[doc = " The memory footprint of the task in bytes. A value of -1 means no valid\n value is currently available."]
4462    pub memory: i64,
4463    #[doc = " The GPU memory usage of the task in bytes. A value of -1 means no valid\n value is currently available."]
4464    pub gpu_memory: i64,
4465    #[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)."]
4466    pub is_gpu_memory_inflated: ::std::os::raw::c_int,
4467}
4468#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4469const _: () = {
4470    ["Size of _cef_task_info_t"][::std::mem::size_of::<_cef_task_info_t>() - 88usize];
4471    ["Alignment of _cef_task_info_t"][::std::mem::align_of::<_cef_task_info_t>() - 8usize];
4472    ["Offset of field: _cef_task_info_t::size"]
4473        [::std::mem::offset_of!(_cef_task_info_t, size) - 0usize];
4474    ["Offset of field: _cef_task_info_t::id"]
4475        [::std::mem::offset_of!(_cef_task_info_t, id) - 8usize];
4476    ["Offset of field: _cef_task_info_t::type_"]
4477        [::std::mem::offset_of!(_cef_task_info_t, type_) - 16usize];
4478    ["Offset of field: _cef_task_info_t::is_killable"]
4479        [::std::mem::offset_of!(_cef_task_info_t, is_killable) - 20usize];
4480    ["Offset of field: _cef_task_info_t::title"]
4481        [::std::mem::offset_of!(_cef_task_info_t, title) - 24usize];
4482    ["Offset of field: _cef_task_info_t::cpu_usage"]
4483        [::std::mem::offset_of!(_cef_task_info_t, cpu_usage) - 48usize];
4484    ["Offset of field: _cef_task_info_t::number_of_processors"]
4485        [::std::mem::offset_of!(_cef_task_info_t, number_of_processors) - 56usize];
4486    ["Offset of field: _cef_task_info_t::memory"]
4487        [::std::mem::offset_of!(_cef_task_info_t, memory) - 64usize];
4488    ["Offset of field: _cef_task_info_t::gpu_memory"]
4489        [::std::mem::offset_of!(_cef_task_info_t, gpu_memory) - 72usize];
4490    ["Offset of field: _cef_task_info_t::is_gpu_memory_inflated"]
4491        [::std::mem::offset_of!(_cef_task_info_t, is_gpu_memory_inflated) - 80usize];
4492};
4493#[doc = "\n Structure representing task information provided by CefTaskManager.\n"]
4494pub type cef_task_info_t = _cef_task_info_t;
4495#[doc = "\n All ref-counted framework structures must include this structure first.\n"]
4496#[repr(C)]
4497#[derive(Debug, Copy, Clone)]
4498pub struct _cef_base_ref_counted_t {
4499    #[doc = "\n Size of the data structure.\n"]
4500    pub size: usize,
4501    #[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"]
4502    pub add_ref: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t)>,
4503    #[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"]
4504    pub release: ::std::option::Option<
4505        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4506    >,
4507    #[doc = "\n Returns true (1) if the current reference count is 1.\n"]
4508    pub has_one_ref: ::std::option::Option<
4509        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4510    >,
4511    #[doc = "\n Returns true (1) if the current reference count is at least 1.\n"]
4512    pub has_at_least_one_ref: ::std::option::Option<
4513        unsafe extern "C" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int,
4514    >,
4515}
4516#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4517const _: () = {
4518    ["Size of _cef_base_ref_counted_t"][::std::mem::size_of::<_cef_base_ref_counted_t>() - 40usize];
4519    ["Alignment of _cef_base_ref_counted_t"]
4520        [::std::mem::align_of::<_cef_base_ref_counted_t>() - 8usize];
4521    ["Offset of field: _cef_base_ref_counted_t::size"]
4522        [::std::mem::offset_of!(_cef_base_ref_counted_t, size) - 0usize];
4523    ["Offset of field: _cef_base_ref_counted_t::add_ref"]
4524        [::std::mem::offset_of!(_cef_base_ref_counted_t, add_ref) - 8usize];
4525    ["Offset of field: _cef_base_ref_counted_t::release"]
4526        [::std::mem::offset_of!(_cef_base_ref_counted_t, release) - 16usize];
4527    ["Offset of field: _cef_base_ref_counted_t::has_one_ref"]
4528        [::std::mem::offset_of!(_cef_base_ref_counted_t, has_one_ref) - 24usize];
4529    ["Offset of field: _cef_base_ref_counted_t::has_at_least_one_ref"]
4530        [::std::mem::offset_of!(_cef_base_ref_counted_t, has_at_least_one_ref) - 32usize];
4531};
4532#[doc = "\n All ref-counted framework structures must include this structure first.\n"]
4533pub type cef_base_ref_counted_t = _cef_base_ref_counted_t;
4534#[doc = "\n All scoped framework structures must include this structure first.\n"]
4535#[repr(C)]
4536#[derive(Debug, Copy, Clone)]
4537pub struct _cef_base_scoped_t {
4538    #[doc = "\n Size of the data structure.\n"]
4539    pub size: usize,
4540    #[doc = "\n Called to delete this object. May be NULL if the object is not owned.\n"]
4541    pub del: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_base_scoped_t)>,
4542}
4543#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4544const _: () = {
4545    ["Size of _cef_base_scoped_t"][::std::mem::size_of::<_cef_base_scoped_t>() - 16usize];
4546    ["Alignment of _cef_base_scoped_t"][::std::mem::align_of::<_cef_base_scoped_t>() - 8usize];
4547    ["Offset of field: _cef_base_scoped_t::size"]
4548        [::std::mem::offset_of!(_cef_base_scoped_t, size) - 0usize];
4549    ["Offset of field: _cef_base_scoped_t::del"]
4550        [::std::mem::offset_of!(_cef_base_scoped_t, del) - 8usize];
4551};
4552#[doc = "\n All scoped framework structures must include this structure first.\n"]
4553pub type cef_base_scoped_t = _cef_base_scoped_t;
4554#[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"]
4555#[repr(C)]
4556#[derive(Debug, Copy, Clone)]
4557pub struct _cef_value_t {
4558    #[doc = "\n Base structure.\n"]
4559    pub base: cef_base_ref_counted_t,
4560    #[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"]
4561    pub is_valid: ::std::option::Option<
4562        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4563    >,
4564    #[doc = "\n Returns true (1) if the underlying data is owned by another object.\n"]
4565    pub is_owned: ::std::option::Option<
4566        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4567    >,
4568    #[doc = "\n Returns true (1) if the underlying data is read-only. Some APIs may expose\n read-only objects.\n"]
4569    pub is_read_only: ::std::option::Option<
4570        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4571    >,
4572    #[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"]
4573    pub is_same: ::std::option::Option<
4574        unsafe extern "C" fn(
4575            self_: *mut _cef_value_t,
4576            that: *mut _cef_value_t,
4577        ) -> ::std::os::raw::c_int,
4578    >,
4579    #[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"]
4580    pub is_equal: ::std::option::Option<
4581        unsafe extern "C" fn(
4582            self_: *mut _cef_value_t,
4583            that: *mut _cef_value_t,
4584        ) -> ::std::os::raw::c_int,
4585    >,
4586    #[doc = "\n Returns a copy of this object. The underlying data will also be copied.\n"]
4587    pub copy:
4588        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_value_t>,
4589    #[doc = "\n Returns the underlying value type.\n"]
4590    pub get_type:
4591        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> cef_value_type_t>,
4592    #[doc = "\n Returns the underlying value as type bool.\n"]
4593    pub get_bool: ::std::option::Option<
4594        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4595    >,
4596    #[doc = "\n Returns the underlying value as type int.\n"]
4597    pub get_int: ::std::option::Option<
4598        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4599    >,
4600    #[doc = "\n Returns the underlying value as type double.\n"]
4601    pub get_double: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_value_t) -> f64>,
4602    #[doc = "\n Returns the underlying value as type string.\n"]
4603    pub get_string: ::std::option::Option<
4604        unsafe extern "C" fn(self_: *mut _cef_value_t) -> cef_string_userfree_t,
4605    >,
4606    #[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"]
4607    pub get_binary: ::std::option::Option<
4608        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_binary_value_t,
4609    >,
4610    #[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"]
4611    pub get_dictionary: ::std::option::Option<
4612        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_dictionary_value_t,
4613    >,
4614    #[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"]
4615    pub get_list: ::std::option::Option<
4616        unsafe extern "C" fn(self_: *mut _cef_value_t) -> *mut _cef_list_value_t,
4617    >,
4618    #[doc = "\n Sets the underlying value as type null. Returns true (1) if the value was\n set successfully.\n"]
4619    pub set_null: ::std::option::Option<
4620        unsafe extern "C" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int,
4621    >,
4622    #[doc = "\n Sets the underlying value as type bool. Returns true (1) if the value was\n set successfully.\n"]
4623    pub set_bool: ::std::option::Option<
4624        unsafe extern "C" fn(
4625            self_: *mut _cef_value_t,
4626            value: ::std::os::raw::c_int,
4627        ) -> ::std::os::raw::c_int,
4628    >,
4629    #[doc = "\n Sets the underlying value as type int. Returns true (1) if the value was\n set successfully.\n"]
4630    pub set_int: ::std::option::Option<
4631        unsafe extern "C" fn(
4632            self_: *mut _cef_value_t,
4633            value: ::std::os::raw::c_int,
4634        ) -> ::std::os::raw::c_int,
4635    >,
4636    #[doc = "\n Sets the underlying value as type double. Returns true (1) if the value\n was set successfully.\n"]
4637    pub set_double: ::std::option::Option<
4638        unsafe extern "C" fn(self_: *mut _cef_value_t, value: f64) -> ::std::os::raw::c_int,
4639    >,
4640    #[doc = "\n Sets the underlying value as type string. Returns true (1) if the value\n was set successfully.\n"]
4641    pub set_string: ::std::option::Option<
4642        unsafe extern "C" fn(
4643            self_: *mut _cef_value_t,
4644            value: *const cef_string_t,
4645        ) -> ::std::os::raw::c_int,
4646    >,
4647    #[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"]
4648    pub set_binary: ::std::option::Option<
4649        unsafe extern "C" fn(
4650            self_: *mut _cef_value_t,
4651            value: *mut _cef_binary_value_t,
4652        ) -> ::std::os::raw::c_int,
4653    >,
4654    #[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"]
4655    pub set_dictionary: ::std::option::Option<
4656        unsafe extern "C" fn(
4657            self_: *mut _cef_value_t,
4658            value: *mut _cef_dictionary_value_t,
4659        ) -> ::std::os::raw::c_int,
4660    >,
4661    #[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"]
4662    pub set_list: ::std::option::Option<
4663        unsafe extern "C" fn(
4664            self_: *mut _cef_value_t,
4665            value: *mut _cef_list_value_t,
4666        ) -> ::std::os::raw::c_int,
4667    >,
4668}
4669#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4670const _: () = {
4671    ["Size of _cef_value_t"][::std::mem::size_of::<_cef_value_t>() - 216usize];
4672    ["Alignment of _cef_value_t"][::std::mem::align_of::<_cef_value_t>() - 8usize];
4673    ["Offset of field: _cef_value_t::base"][::std::mem::offset_of!(_cef_value_t, base) - 0usize];
4674    ["Offset of field: _cef_value_t::is_valid"]
4675        [::std::mem::offset_of!(_cef_value_t, is_valid) - 40usize];
4676    ["Offset of field: _cef_value_t::is_owned"]
4677        [::std::mem::offset_of!(_cef_value_t, is_owned) - 48usize];
4678    ["Offset of field: _cef_value_t::is_read_only"]
4679        [::std::mem::offset_of!(_cef_value_t, is_read_only) - 56usize];
4680    ["Offset of field: _cef_value_t::is_same"]
4681        [::std::mem::offset_of!(_cef_value_t, is_same) - 64usize];
4682    ["Offset of field: _cef_value_t::is_equal"]
4683        [::std::mem::offset_of!(_cef_value_t, is_equal) - 72usize];
4684    ["Offset of field: _cef_value_t::copy"][::std::mem::offset_of!(_cef_value_t, copy) - 80usize];
4685    ["Offset of field: _cef_value_t::get_type"]
4686        [::std::mem::offset_of!(_cef_value_t, get_type) - 88usize];
4687    ["Offset of field: _cef_value_t::get_bool"]
4688        [::std::mem::offset_of!(_cef_value_t, get_bool) - 96usize];
4689    ["Offset of field: _cef_value_t::get_int"]
4690        [::std::mem::offset_of!(_cef_value_t, get_int) - 104usize];
4691    ["Offset of field: _cef_value_t::get_double"]
4692        [::std::mem::offset_of!(_cef_value_t, get_double) - 112usize];
4693    ["Offset of field: _cef_value_t::get_string"]
4694        [::std::mem::offset_of!(_cef_value_t, get_string) - 120usize];
4695    ["Offset of field: _cef_value_t::get_binary"]
4696        [::std::mem::offset_of!(_cef_value_t, get_binary) - 128usize];
4697    ["Offset of field: _cef_value_t::get_dictionary"]
4698        [::std::mem::offset_of!(_cef_value_t, get_dictionary) - 136usize];
4699    ["Offset of field: _cef_value_t::get_list"]
4700        [::std::mem::offset_of!(_cef_value_t, get_list) - 144usize];
4701    ["Offset of field: _cef_value_t::set_null"]
4702        [::std::mem::offset_of!(_cef_value_t, set_null) - 152usize];
4703    ["Offset of field: _cef_value_t::set_bool"]
4704        [::std::mem::offset_of!(_cef_value_t, set_bool) - 160usize];
4705    ["Offset of field: _cef_value_t::set_int"]
4706        [::std::mem::offset_of!(_cef_value_t, set_int) - 168usize];
4707    ["Offset of field: _cef_value_t::set_double"]
4708        [::std::mem::offset_of!(_cef_value_t, set_double) - 176usize];
4709    ["Offset of field: _cef_value_t::set_string"]
4710        [::std::mem::offset_of!(_cef_value_t, set_string) - 184usize];
4711    ["Offset of field: _cef_value_t::set_binary"]
4712        [::std::mem::offset_of!(_cef_value_t, set_binary) - 192usize];
4713    ["Offset of field: _cef_value_t::set_dictionary"]
4714        [::std::mem::offset_of!(_cef_value_t, set_dictionary) - 200usize];
4715    ["Offset of field: _cef_value_t::set_list"]
4716        [::std::mem::offset_of!(_cef_value_t, set_list) - 208usize];
4717};
4718#[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"]
4719pub type cef_value_t = _cef_value_t;
4720unsafe extern "C" {
4721    #[doc = "\n Creates a new object.\n"]
4722    pub fn cef_value_create() -> *mut cef_value_t;
4723}
4724#[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"]
4725#[repr(C)]
4726#[derive(Debug, Copy, Clone)]
4727pub struct _cef_binary_value_t {
4728    #[doc = "\n Base structure.\n"]
4729    pub base: cef_base_ref_counted_t,
4730    #[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"]
4731    pub is_valid: ::std::option::Option<
4732        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int,
4733    >,
4734    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
4735    pub is_owned: ::std::option::Option<
4736        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int,
4737    >,
4738    #[doc = "\n Returns true (1) if this object and |that| object have the same underlying\n data.\n"]
4739    pub is_same: ::std::option::Option<
4740        unsafe extern "C" fn(
4741            self_: *mut _cef_binary_value_t,
4742            that: *mut _cef_binary_value_t,
4743        ) -> ::std::os::raw::c_int,
4744    >,
4745    #[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"]
4746    pub is_equal: ::std::option::Option<
4747        unsafe extern "C" fn(
4748            self_: *mut _cef_binary_value_t,
4749            that: *mut _cef_binary_value_t,
4750        ) -> ::std::os::raw::c_int,
4751    >,
4752    #[doc = "\n Returns a copy of this object. The data in this object will also be\n copied.\n"]
4753    pub copy: ::std::option::Option<
4754        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> *mut _cef_binary_value_t,
4755    >,
4756    #[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"]
4757    pub get_raw_data: ::std::option::Option<
4758        unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> *const ::std::os::raw::c_void,
4759    >,
4760    #[doc = "\n Returns the data size.\n"]
4761    pub get_size:
4762        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_binary_value_t) -> usize>,
4763    #[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"]
4764    pub get_data: ::std::option::Option<
4765        unsafe extern "C" fn(
4766            self_: *mut _cef_binary_value_t,
4767            buffer: *mut ::std::os::raw::c_void,
4768            buffer_size: usize,
4769            data_offset: usize,
4770        ) -> usize,
4771    >,
4772}
4773#[allow(clippy::unnecessary_operation, clippy::identity_op)]
4774const _: () = {
4775    ["Size of _cef_binary_value_t"][::std::mem::size_of::<_cef_binary_value_t>() - 104usize];
4776    ["Alignment of _cef_binary_value_t"][::std::mem::align_of::<_cef_binary_value_t>() - 8usize];
4777    ["Offset of field: _cef_binary_value_t::base"]
4778        [::std::mem::offset_of!(_cef_binary_value_t, base) - 0usize];
4779    ["Offset of field: _cef_binary_value_t::is_valid"]
4780        [::std::mem::offset_of!(_cef_binary_value_t, is_valid) - 40usize];
4781    ["Offset of field: _cef_binary_value_t::is_owned"]
4782        [::std::mem::offset_of!(_cef_binary_value_t, is_owned) - 48usize];
4783    ["Offset of field: _cef_binary_value_t::is_same"]
4784        [::std::mem::offset_of!(_cef_binary_value_t, is_same) - 56usize];
4785    ["Offset of field: _cef_binary_value_t::is_equal"]
4786        [::std::mem::offset_of!(_cef_binary_value_t, is_equal) - 64usize];
4787    ["Offset of field: _cef_binary_value_t::copy"]
4788        [::std::mem::offset_of!(_cef_binary_value_t, copy) - 72usize];
4789    ["Offset of field: _cef_binary_value_t::get_raw_data"]
4790        [::std::mem::offset_of!(_cef_binary_value_t, get_raw_data) - 80usize];
4791    ["Offset of field: _cef_binary_value_t::get_size"]
4792        [::std::mem::offset_of!(_cef_binary_value_t, get_size) - 88usize];
4793    ["Offset of field: _cef_binary_value_t::get_data"]
4794        [::std::mem::offset_of!(_cef_binary_value_t, get_data) - 96usize];
4795};
4796#[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"]
4797pub type cef_binary_value_t = _cef_binary_value_t;
4798unsafe extern "C" {
4799    #[doc = "\n Creates a new object that is not owned by any other object. The specified\n |data| will be copied.\n"]
4800    pub fn cef_binary_value_create(
4801        data: *const ::std::os::raw::c_void,
4802        data_size: usize,
4803    ) -> *mut cef_binary_value_t;
4804}
4805#[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"]
4806#[repr(C)]
4807#[derive(Debug, Copy, Clone)]
4808pub struct _cef_dictionary_value_t {
4809    #[doc = "\n Base structure.\n"]
4810    pub base: cef_base_ref_counted_t,
4811    #[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"]
4812    pub is_valid: ::std::option::Option<
4813        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4814    >,
4815    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
4816    pub is_owned: ::std::option::Option<
4817        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4818    >,
4819    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
4820    pub is_read_only: ::std::option::Option<
4821        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4822    >,
4823    #[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"]
4824    pub is_same: ::std::option::Option<
4825        unsafe extern "C" fn(
4826            self_: *mut _cef_dictionary_value_t,
4827            that: *mut _cef_dictionary_value_t,
4828        ) -> ::std::os::raw::c_int,
4829    >,
4830    #[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"]
4831    pub is_equal: ::std::option::Option<
4832        unsafe extern "C" fn(
4833            self_: *mut _cef_dictionary_value_t,
4834            that: *mut _cef_dictionary_value_t,
4835        ) -> ::std::os::raw::c_int,
4836    >,
4837    #[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"]
4838    pub copy: ::std::option::Option<
4839        unsafe extern "C" fn(
4840            self_: *mut _cef_dictionary_value_t,
4841            exclude_empty_children: ::std::os::raw::c_int,
4842        ) -> *mut _cef_dictionary_value_t,
4843    >,
4844    #[doc = "\n Returns the number of values.\n"]
4845    pub get_size:
4846        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> usize>,
4847    #[doc = "\n Removes all values. Returns true (1) on success.\n"]
4848    pub clear: ::std::option::Option<
4849        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int,
4850    >,
4851    #[doc = "\n Returns true (1) if the current dictionary has a value for the given key.\n"]
4852    pub has_key: ::std::option::Option<
4853        unsafe extern "C" fn(
4854            self_: *mut _cef_dictionary_value_t,
4855            key: *const cef_string_t,
4856        ) -> ::std::os::raw::c_int,
4857    >,
4858    #[doc = "\n Reads all keys for this dictionary into the specified vector.\n"]
4859    pub get_keys: ::std::option::Option<
4860        unsafe extern "C" fn(
4861            self_: *mut _cef_dictionary_value_t,
4862            keys: cef_string_list_t,
4863        ) -> ::std::os::raw::c_int,
4864    >,
4865    #[doc = "\n Removes the value at the specified key. Returns true (1) is the value was\n removed successfully.\n"]
4866    pub remove: ::std::option::Option<
4867        unsafe extern "C" fn(
4868            self_: *mut _cef_dictionary_value_t,
4869            key: *const cef_string_t,
4870        ) -> ::std::os::raw::c_int,
4871    >,
4872    #[doc = "\n Returns the value type for the specified key.\n"]
4873    pub get_type: ::std::option::Option<
4874        unsafe extern "C" fn(
4875            self_: *mut _cef_dictionary_value_t,
4876            key: *const cef_string_t,
4877        ) -> cef_value_type_t,
4878    >,
4879    #[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"]
4880    pub get_value: ::std::option::Option<
4881        unsafe extern "C" fn(
4882            self_: *mut _cef_dictionary_value_t,
4883            key: *const cef_string_t,
4884        ) -> *mut _cef_value_t,
4885    >,
4886    #[doc = "\n Returns the value at the specified key as type bool.\n"]
4887    pub get_bool: ::std::option::Option<
4888        unsafe extern "C" fn(
4889            self_: *mut _cef_dictionary_value_t,
4890            key: *const cef_string_t,
4891        ) -> ::std::os::raw::c_int,
4892    >,
4893    #[doc = "\n Returns the value at the specified key as type int.\n"]
4894    pub get_int: ::std::option::Option<
4895        unsafe extern "C" fn(
4896            self_: *mut _cef_dictionary_value_t,
4897            key: *const cef_string_t,
4898        ) -> ::std::os::raw::c_int,
4899    >,
4900    #[doc = "\n Returns the value at the specified key as type double.\n"]
4901    pub get_double: ::std::option::Option<
4902        unsafe extern "C" fn(self_: *mut _cef_dictionary_value_t, key: *const cef_string_t) -> f64,
4903    >,
4904    #[doc = "\n Returns the value at the specified key as type string.\n"]
4905    pub get_string: ::std::option::Option<
4906        unsafe extern "C" fn(
4907            self_: *mut _cef_dictionary_value_t,
4908            key: *const cef_string_t,
4909        ) -> cef_string_userfree_t,
4910    >,
4911    #[doc = "\n Returns the value at the specified key as type binary. The returned value\n will reference existing data.\n"]
4912    pub get_binary: ::std::option::Option<
4913        unsafe extern "C" fn(
4914            self_: *mut _cef_dictionary_value_t,
4915            key: *const cef_string_t,
4916        ) -> *mut _cef_binary_value_t,
4917    >,
4918    #[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"]
4919    pub get_dictionary: ::std::option::Option<
4920        unsafe extern "C" fn(
4921            self_: *mut _cef_dictionary_value_t,
4922            key: *const cef_string_t,
4923        ) -> *mut _cef_dictionary_value_t,
4924    >,
4925    #[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"]
4926    pub get_list: ::std::option::Option<
4927        unsafe extern "C" fn(
4928            self_: *mut _cef_dictionary_value_t,
4929            key: *const cef_string_t,
4930        ) -> *mut _cef_list_value_t,
4931    >,
4932    #[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"]
4933    pub set_value: ::std::option::Option<
4934        unsafe extern "C" fn(
4935            self_: *mut _cef_dictionary_value_t,
4936            key: *const cef_string_t,
4937            value: *mut _cef_value_t,
4938        ) -> ::std::os::raw::c_int,
4939    >,
4940    #[doc = "\n Sets the value at the specified key as type null. Returns true (1) if the\n value was set successfully.\n"]
4941    pub set_null: ::std::option::Option<
4942        unsafe extern "C" fn(
4943            self_: *mut _cef_dictionary_value_t,
4944            key: *const cef_string_t,
4945        ) -> ::std::os::raw::c_int,
4946    >,
4947    #[doc = "\n Sets the value at the specified key as type bool. Returns true (1) if the\n value was set successfully.\n"]
4948    pub set_bool: ::std::option::Option<
4949        unsafe extern "C" fn(
4950            self_: *mut _cef_dictionary_value_t,
4951            key: *const cef_string_t,
4952            value: ::std::os::raw::c_int,
4953        ) -> ::std::os::raw::c_int,
4954    >,
4955    #[doc = "\n Sets the value at the specified key as type int. Returns true (1) if the\n value was set successfully.\n"]
4956    pub set_int: ::std::option::Option<
4957        unsafe extern "C" fn(
4958            self_: *mut _cef_dictionary_value_t,
4959            key: *const cef_string_t,
4960            value: ::std::os::raw::c_int,
4961        ) -> ::std::os::raw::c_int,
4962    >,
4963    #[doc = "\n Sets the value at the specified key as type double. Returns true (1) if\n the value was set successfully.\n"]
4964    pub set_double: ::std::option::Option<
4965        unsafe extern "C" fn(
4966            self_: *mut _cef_dictionary_value_t,
4967            key: *const cef_string_t,
4968            value: f64,
4969        ) -> ::std::os::raw::c_int,
4970    >,
4971    #[doc = "\n Sets the value at the specified key as type string. Returns true (1) if\n the value was set successfully.\n"]
4972    pub set_string: ::std::option::Option<
4973        unsafe extern "C" fn(
4974            self_: *mut _cef_dictionary_value_t,
4975            key: *const cef_string_t,
4976            value: *const cef_string_t,
4977        ) -> ::std::os::raw::c_int,
4978    >,
4979    #[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"]
4980    pub set_binary: ::std::option::Option<
4981        unsafe extern "C" fn(
4982            self_: *mut _cef_dictionary_value_t,
4983            key: *const cef_string_t,
4984            value: *mut _cef_binary_value_t,
4985        ) -> ::std::os::raw::c_int,
4986    >,
4987    #[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"]
4988    pub set_dictionary: ::std::option::Option<
4989        unsafe extern "C" fn(
4990            self_: *mut _cef_dictionary_value_t,
4991            key: *const cef_string_t,
4992            value: *mut _cef_dictionary_value_t,
4993        ) -> ::std::os::raw::c_int,
4994    >,
4995    #[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"]
4996    pub set_list: ::std::option::Option<
4997        unsafe extern "C" fn(
4998            self_: *mut _cef_dictionary_value_t,
4999            key: *const cef_string_t,
5000            value: *mut _cef_list_value_t,
5001        ) -> ::std::os::raw::c_int,
5002    >,
5003}
5004#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5005const _: () = {
5006    ["Size of _cef_dictionary_value_t"]
5007        [::std::mem::size_of::<_cef_dictionary_value_t>() - 272usize];
5008    ["Alignment of _cef_dictionary_value_t"]
5009        [::std::mem::align_of::<_cef_dictionary_value_t>() - 8usize];
5010    ["Offset of field: _cef_dictionary_value_t::base"]
5011        [::std::mem::offset_of!(_cef_dictionary_value_t, base) - 0usize];
5012    ["Offset of field: _cef_dictionary_value_t::is_valid"]
5013        [::std::mem::offset_of!(_cef_dictionary_value_t, is_valid) - 40usize];
5014    ["Offset of field: _cef_dictionary_value_t::is_owned"]
5015        [::std::mem::offset_of!(_cef_dictionary_value_t, is_owned) - 48usize];
5016    ["Offset of field: _cef_dictionary_value_t::is_read_only"]
5017        [::std::mem::offset_of!(_cef_dictionary_value_t, is_read_only) - 56usize];
5018    ["Offset of field: _cef_dictionary_value_t::is_same"]
5019        [::std::mem::offset_of!(_cef_dictionary_value_t, is_same) - 64usize];
5020    ["Offset of field: _cef_dictionary_value_t::is_equal"]
5021        [::std::mem::offset_of!(_cef_dictionary_value_t, is_equal) - 72usize];
5022    ["Offset of field: _cef_dictionary_value_t::copy"]
5023        [::std::mem::offset_of!(_cef_dictionary_value_t, copy) - 80usize];
5024    ["Offset of field: _cef_dictionary_value_t::get_size"]
5025        [::std::mem::offset_of!(_cef_dictionary_value_t, get_size) - 88usize];
5026    ["Offset of field: _cef_dictionary_value_t::clear"]
5027        [::std::mem::offset_of!(_cef_dictionary_value_t, clear) - 96usize];
5028    ["Offset of field: _cef_dictionary_value_t::has_key"]
5029        [::std::mem::offset_of!(_cef_dictionary_value_t, has_key) - 104usize];
5030    ["Offset of field: _cef_dictionary_value_t::get_keys"]
5031        [::std::mem::offset_of!(_cef_dictionary_value_t, get_keys) - 112usize];
5032    ["Offset of field: _cef_dictionary_value_t::remove"]
5033        [::std::mem::offset_of!(_cef_dictionary_value_t, remove) - 120usize];
5034    ["Offset of field: _cef_dictionary_value_t::get_type"]
5035        [::std::mem::offset_of!(_cef_dictionary_value_t, get_type) - 128usize];
5036    ["Offset of field: _cef_dictionary_value_t::get_value"]
5037        [::std::mem::offset_of!(_cef_dictionary_value_t, get_value) - 136usize];
5038    ["Offset of field: _cef_dictionary_value_t::get_bool"]
5039        [::std::mem::offset_of!(_cef_dictionary_value_t, get_bool) - 144usize];
5040    ["Offset of field: _cef_dictionary_value_t::get_int"]
5041        [::std::mem::offset_of!(_cef_dictionary_value_t, get_int) - 152usize];
5042    ["Offset of field: _cef_dictionary_value_t::get_double"]
5043        [::std::mem::offset_of!(_cef_dictionary_value_t, get_double) - 160usize];
5044    ["Offset of field: _cef_dictionary_value_t::get_string"]
5045        [::std::mem::offset_of!(_cef_dictionary_value_t, get_string) - 168usize];
5046    ["Offset of field: _cef_dictionary_value_t::get_binary"]
5047        [::std::mem::offset_of!(_cef_dictionary_value_t, get_binary) - 176usize];
5048    ["Offset of field: _cef_dictionary_value_t::get_dictionary"]
5049        [::std::mem::offset_of!(_cef_dictionary_value_t, get_dictionary) - 184usize];
5050    ["Offset of field: _cef_dictionary_value_t::get_list"]
5051        [::std::mem::offset_of!(_cef_dictionary_value_t, get_list) - 192usize];
5052    ["Offset of field: _cef_dictionary_value_t::set_value"]
5053        [::std::mem::offset_of!(_cef_dictionary_value_t, set_value) - 200usize];
5054    ["Offset of field: _cef_dictionary_value_t::set_null"]
5055        [::std::mem::offset_of!(_cef_dictionary_value_t, set_null) - 208usize];
5056    ["Offset of field: _cef_dictionary_value_t::set_bool"]
5057        [::std::mem::offset_of!(_cef_dictionary_value_t, set_bool) - 216usize];
5058    ["Offset of field: _cef_dictionary_value_t::set_int"]
5059        [::std::mem::offset_of!(_cef_dictionary_value_t, set_int) - 224usize];
5060    ["Offset of field: _cef_dictionary_value_t::set_double"]
5061        [::std::mem::offset_of!(_cef_dictionary_value_t, set_double) - 232usize];
5062    ["Offset of field: _cef_dictionary_value_t::set_string"]
5063        [::std::mem::offset_of!(_cef_dictionary_value_t, set_string) - 240usize];
5064    ["Offset of field: _cef_dictionary_value_t::set_binary"]
5065        [::std::mem::offset_of!(_cef_dictionary_value_t, set_binary) - 248usize];
5066    ["Offset of field: _cef_dictionary_value_t::set_dictionary"]
5067        [::std::mem::offset_of!(_cef_dictionary_value_t, set_dictionary) - 256usize];
5068    ["Offset of field: _cef_dictionary_value_t::set_list"]
5069        [::std::mem::offset_of!(_cef_dictionary_value_t, set_list) - 264usize];
5070};
5071#[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"]
5072pub type cef_dictionary_value_t = _cef_dictionary_value_t;
5073unsafe extern "C" {
5074    #[doc = "\n Creates a new object that is not owned by any other object.\n"]
5075    pub fn cef_dictionary_value_create() -> *mut cef_dictionary_value_t;
5076}
5077#[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"]
5078#[repr(C)]
5079#[derive(Debug, Copy, Clone)]
5080pub struct _cef_list_value_t {
5081    #[doc = "\n Base structure.\n"]
5082    pub base: cef_base_ref_counted_t,
5083    #[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"]
5084    pub is_valid: ::std::option::Option<
5085        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
5086    >,
5087    #[doc = "\n Returns true (1) if this object is currently owned by another object.\n"]
5088    pub is_owned: ::std::option::Option<
5089        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
5090    >,
5091    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
5092    pub is_read_only: ::std::option::Option<
5093        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
5094    >,
5095    #[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"]
5096    pub is_same: ::std::option::Option<
5097        unsafe extern "C" fn(
5098            self_: *mut _cef_list_value_t,
5099            that: *mut _cef_list_value_t,
5100        ) -> ::std::os::raw::c_int,
5101    >,
5102    #[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"]
5103    pub is_equal: ::std::option::Option<
5104        unsafe extern "C" fn(
5105            self_: *mut _cef_list_value_t,
5106            that: *mut _cef_list_value_t,
5107        ) -> ::std::os::raw::c_int,
5108    >,
5109    #[doc = "\n Returns a writable copy of this object.\n"]
5110    pub copy: ::std::option::Option<
5111        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> *mut _cef_list_value_t,
5112    >,
5113    #[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"]
5114    pub set_size: ::std::option::Option<
5115        unsafe extern "C" fn(self_: *mut _cef_list_value_t, size: usize) -> ::std::os::raw::c_int,
5116    >,
5117    #[doc = "\n Returns the number of values.\n"]
5118    pub get_size:
5119        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> usize>,
5120    #[doc = "\n Removes all values. Returns true (1) on success.\n"]
5121    pub clear: ::std::option::Option<
5122        unsafe extern "C" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int,
5123    >,
5124    #[doc = "\n Removes the value at the specified index.\n"]
5125    pub remove: ::std::option::Option<
5126        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
5127    >,
5128    #[doc = "\n Returns the value type at the specified index.\n"]
5129    pub get_type: ::std::option::Option<
5130        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> cef_value_type_t,
5131    >,
5132    #[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"]
5133    pub get_value: ::std::option::Option<
5134        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_value_t,
5135    >,
5136    #[doc = "\n Returns the value at the specified index as type bool.\n"]
5137    pub get_bool: ::std::option::Option<
5138        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
5139    >,
5140    #[doc = "\n Returns the value at the specified index as type int.\n"]
5141    pub get_int: ::std::option::Option<
5142        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
5143    >,
5144    #[doc = "\n Returns the value at the specified index as type double.\n"]
5145    pub get_double: ::std::option::Option<
5146        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> f64,
5147    >,
5148    #[doc = "\n Returns the value at the specified index as type string.\n"]
5149    pub get_string: ::std::option::Option<
5150        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> cef_string_userfree_t,
5151    >,
5152    #[doc = "\n Returns the value at the specified index as type binary. The returned\n value will reference existing data.\n"]
5153    pub get_binary: ::std::option::Option<
5154        unsafe extern "C" fn(
5155            self_: *mut _cef_list_value_t,
5156            index: usize,
5157        ) -> *mut _cef_binary_value_t,
5158    >,
5159    #[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"]
5160    pub get_dictionary: ::std::option::Option<
5161        unsafe extern "C" fn(
5162            self_: *mut _cef_list_value_t,
5163            index: usize,
5164        ) -> *mut _cef_dictionary_value_t,
5165    >,
5166    #[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"]
5167    pub get_list: ::std::option::Option<
5168        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> *mut _cef_list_value_t,
5169    >,
5170    #[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"]
5171    pub set_value: ::std::option::Option<
5172        unsafe extern "C" fn(
5173            self_: *mut _cef_list_value_t,
5174            index: usize,
5175            value: *mut _cef_value_t,
5176        ) -> ::std::os::raw::c_int,
5177    >,
5178    #[doc = "\n Sets the value at the specified index as type null. Returns true (1) if\n the value was set successfully.\n"]
5179    pub set_null: ::std::option::Option<
5180        unsafe extern "C" fn(self_: *mut _cef_list_value_t, index: usize) -> ::std::os::raw::c_int,
5181    >,
5182    #[doc = "\n Sets the value at the specified index as type bool. Returns true (1) if\n the value was set successfully.\n"]
5183    pub set_bool: ::std::option::Option<
5184        unsafe extern "C" fn(
5185            self_: *mut _cef_list_value_t,
5186            index: usize,
5187            value: ::std::os::raw::c_int,
5188        ) -> ::std::os::raw::c_int,
5189    >,
5190    #[doc = "\n Sets the value at the specified index as type int. Returns true (1) if the\n value was set successfully.\n"]
5191    pub set_int: ::std::option::Option<
5192        unsafe extern "C" fn(
5193            self_: *mut _cef_list_value_t,
5194            index: usize,
5195            value: ::std::os::raw::c_int,
5196        ) -> ::std::os::raw::c_int,
5197    >,
5198    #[doc = "\n Sets the value at the specified index as type double. Returns true (1) if\n the value was set successfully.\n"]
5199    pub set_double: ::std::option::Option<
5200        unsafe extern "C" fn(
5201            self_: *mut _cef_list_value_t,
5202            index: usize,
5203            value: f64,
5204        ) -> ::std::os::raw::c_int,
5205    >,
5206    #[doc = "\n Sets the value at the specified index as type string. Returns true (1) if\n the value was set successfully.\n"]
5207    pub set_string: ::std::option::Option<
5208        unsafe extern "C" fn(
5209            self_: *mut _cef_list_value_t,
5210            index: usize,
5211            value: *const cef_string_t,
5212        ) -> ::std::os::raw::c_int,
5213    >,
5214    #[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"]
5215    pub set_binary: ::std::option::Option<
5216        unsafe extern "C" fn(
5217            self_: *mut _cef_list_value_t,
5218            index: usize,
5219            value: *mut _cef_binary_value_t,
5220        ) -> ::std::os::raw::c_int,
5221    >,
5222    #[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"]
5223    pub set_dictionary: ::std::option::Option<
5224        unsafe extern "C" fn(
5225            self_: *mut _cef_list_value_t,
5226            index: usize,
5227            value: *mut _cef_dictionary_value_t,
5228        ) -> ::std::os::raw::c_int,
5229    >,
5230    #[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"]
5231    pub set_list: ::std::option::Option<
5232        unsafe extern "C" fn(
5233            self_: *mut _cef_list_value_t,
5234            index: usize,
5235            value: *mut _cef_list_value_t,
5236        ) -> ::std::os::raw::c_int,
5237    >,
5238}
5239#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5240const _: () = {
5241    ["Size of _cef_list_value_t"][::std::mem::size_of::<_cef_list_value_t>() - 264usize];
5242    ["Alignment of _cef_list_value_t"][::std::mem::align_of::<_cef_list_value_t>() - 8usize];
5243    ["Offset of field: _cef_list_value_t::base"]
5244        [::std::mem::offset_of!(_cef_list_value_t, base) - 0usize];
5245    ["Offset of field: _cef_list_value_t::is_valid"]
5246        [::std::mem::offset_of!(_cef_list_value_t, is_valid) - 40usize];
5247    ["Offset of field: _cef_list_value_t::is_owned"]
5248        [::std::mem::offset_of!(_cef_list_value_t, is_owned) - 48usize];
5249    ["Offset of field: _cef_list_value_t::is_read_only"]
5250        [::std::mem::offset_of!(_cef_list_value_t, is_read_only) - 56usize];
5251    ["Offset of field: _cef_list_value_t::is_same"]
5252        [::std::mem::offset_of!(_cef_list_value_t, is_same) - 64usize];
5253    ["Offset of field: _cef_list_value_t::is_equal"]
5254        [::std::mem::offset_of!(_cef_list_value_t, is_equal) - 72usize];
5255    ["Offset of field: _cef_list_value_t::copy"]
5256        [::std::mem::offset_of!(_cef_list_value_t, copy) - 80usize];
5257    ["Offset of field: _cef_list_value_t::set_size"]
5258        [::std::mem::offset_of!(_cef_list_value_t, set_size) - 88usize];
5259    ["Offset of field: _cef_list_value_t::get_size"]
5260        [::std::mem::offset_of!(_cef_list_value_t, get_size) - 96usize];
5261    ["Offset of field: _cef_list_value_t::clear"]
5262        [::std::mem::offset_of!(_cef_list_value_t, clear) - 104usize];
5263    ["Offset of field: _cef_list_value_t::remove"]
5264        [::std::mem::offset_of!(_cef_list_value_t, remove) - 112usize];
5265    ["Offset of field: _cef_list_value_t::get_type"]
5266        [::std::mem::offset_of!(_cef_list_value_t, get_type) - 120usize];
5267    ["Offset of field: _cef_list_value_t::get_value"]
5268        [::std::mem::offset_of!(_cef_list_value_t, get_value) - 128usize];
5269    ["Offset of field: _cef_list_value_t::get_bool"]
5270        [::std::mem::offset_of!(_cef_list_value_t, get_bool) - 136usize];
5271    ["Offset of field: _cef_list_value_t::get_int"]
5272        [::std::mem::offset_of!(_cef_list_value_t, get_int) - 144usize];
5273    ["Offset of field: _cef_list_value_t::get_double"]
5274        [::std::mem::offset_of!(_cef_list_value_t, get_double) - 152usize];
5275    ["Offset of field: _cef_list_value_t::get_string"]
5276        [::std::mem::offset_of!(_cef_list_value_t, get_string) - 160usize];
5277    ["Offset of field: _cef_list_value_t::get_binary"]
5278        [::std::mem::offset_of!(_cef_list_value_t, get_binary) - 168usize];
5279    ["Offset of field: _cef_list_value_t::get_dictionary"]
5280        [::std::mem::offset_of!(_cef_list_value_t, get_dictionary) - 176usize];
5281    ["Offset of field: _cef_list_value_t::get_list"]
5282        [::std::mem::offset_of!(_cef_list_value_t, get_list) - 184usize];
5283    ["Offset of field: _cef_list_value_t::set_value"]
5284        [::std::mem::offset_of!(_cef_list_value_t, set_value) - 192usize];
5285    ["Offset of field: _cef_list_value_t::set_null"]
5286        [::std::mem::offset_of!(_cef_list_value_t, set_null) - 200usize];
5287    ["Offset of field: _cef_list_value_t::set_bool"]
5288        [::std::mem::offset_of!(_cef_list_value_t, set_bool) - 208usize];
5289    ["Offset of field: _cef_list_value_t::set_int"]
5290        [::std::mem::offset_of!(_cef_list_value_t, set_int) - 216usize];
5291    ["Offset of field: _cef_list_value_t::set_double"]
5292        [::std::mem::offset_of!(_cef_list_value_t, set_double) - 224usize];
5293    ["Offset of field: _cef_list_value_t::set_string"]
5294        [::std::mem::offset_of!(_cef_list_value_t, set_string) - 232usize];
5295    ["Offset of field: _cef_list_value_t::set_binary"]
5296        [::std::mem::offset_of!(_cef_list_value_t, set_binary) - 240usize];
5297    ["Offset of field: _cef_list_value_t::set_dictionary"]
5298        [::std::mem::offset_of!(_cef_list_value_t, set_dictionary) - 248usize];
5299    ["Offset of field: _cef_list_value_t::set_list"]
5300        [::std::mem::offset_of!(_cef_list_value_t, set_list) - 256usize];
5301};
5302#[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"]
5303pub type cef_list_value_t = _cef_list_value_t;
5304unsafe extern "C" {
5305    #[doc = "\n Creates a new object that is not owned by any other object.\n"]
5306    pub fn cef_list_value_create() -> *mut cef_list_value_t;
5307}
5308#[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"]
5309#[repr(C)]
5310#[derive(Debug, Copy, Clone)]
5311pub struct _cef_accessibility_handler_t {
5312    #[doc = "\n Base structure.\n"]
5313    pub base: cef_base_ref_counted_t,
5314    #[doc = "\n Called after renderer process sends accessibility tree changes to the\n browser process.\n"]
5315    pub on_accessibility_tree_change: ::std::option::Option<
5316        unsafe extern "C" fn(self_: *mut _cef_accessibility_handler_t, value: *mut _cef_value_t),
5317    >,
5318    #[doc = "\n Called after renderer process sends accessibility location changes to the\n browser process.\n"]
5319    pub on_accessibility_location_change: ::std::option::Option<
5320        unsafe extern "C" fn(self_: *mut _cef_accessibility_handler_t, value: *mut _cef_value_t),
5321    >,
5322}
5323#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5324const _: () = {
5325    ["Size of _cef_accessibility_handler_t"]
5326        [::std::mem::size_of::<_cef_accessibility_handler_t>() - 56usize];
5327    ["Alignment of _cef_accessibility_handler_t"]
5328        [::std::mem::align_of::<_cef_accessibility_handler_t>() - 8usize];
5329    ["Offset of field: _cef_accessibility_handler_t::base"]
5330        [::std::mem::offset_of!(_cef_accessibility_handler_t, base) - 0usize];
5331    ["Offset of field: _cef_accessibility_handler_t::on_accessibility_tree_change"][::std::mem::offset_of!(
5332        _cef_accessibility_handler_t,
5333        on_accessibility_tree_change
5334    ) - 40usize];
5335    ["Offset of field: _cef_accessibility_handler_t::on_accessibility_location_change"][::std::mem::offset_of!(
5336        _cef_accessibility_handler_t,
5337        on_accessibility_location_change
5338    )
5339        - 48usize];
5340};
5341#[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"]
5342pub type cef_accessibility_handler_t = _cef_accessibility_handler_t;
5343#[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"]
5344#[repr(C)]
5345#[derive(Debug, Copy, Clone)]
5346pub struct _cef_dev_tools_message_observer_t {
5347    #[doc = "\n Base structure.\n"]
5348    pub base: cef_base_ref_counted_t,
5349    #[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"]
5350    pub on_dev_tools_message: ::std::option::Option<
5351        unsafe extern "C" fn(
5352            self_: *mut _cef_dev_tools_message_observer_t,
5353            browser: *mut _cef_browser_t,
5354            message: *const ::std::os::raw::c_void,
5355            message_size: usize,
5356        ) -> ::std::os::raw::c_int,
5357    >,
5358    #[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"]
5359    pub on_dev_tools_method_result: ::std::option::Option<
5360        unsafe extern "C" fn(
5361            self_: *mut _cef_dev_tools_message_observer_t,
5362            browser: *mut _cef_browser_t,
5363            message_id: ::std::os::raw::c_int,
5364            success: ::std::os::raw::c_int,
5365            result: *const ::std::os::raw::c_void,
5366            result_size: usize,
5367        ),
5368    >,
5369    #[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"]
5370    pub on_dev_tools_event: ::std::option::Option<
5371        unsafe extern "C" fn(
5372            self_: *mut _cef_dev_tools_message_observer_t,
5373            browser: *mut _cef_browser_t,
5374            method: *const cef_string_t,
5375            params: *const ::std::os::raw::c_void,
5376            params_size: usize,
5377        ),
5378    >,
5379    #[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"]
5380    pub on_dev_tools_agent_attached: ::std::option::Option<
5381        unsafe extern "C" fn(
5382            self_: *mut _cef_dev_tools_message_observer_t,
5383            browser: *mut _cef_browser_t,
5384        ),
5385    >,
5386    #[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"]
5387    pub on_dev_tools_agent_detached: ::std::option::Option<
5388        unsafe extern "C" fn(
5389            self_: *mut _cef_dev_tools_message_observer_t,
5390            browser: *mut _cef_browser_t,
5391        ),
5392    >,
5393}
5394#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5395const _: () = {
5396    ["Size of _cef_dev_tools_message_observer_t"]
5397        [::std::mem::size_of::<_cef_dev_tools_message_observer_t>() - 80usize];
5398    ["Alignment of _cef_dev_tools_message_observer_t"]
5399        [::std::mem::align_of::<_cef_dev_tools_message_observer_t>() - 8usize];
5400    ["Offset of field: _cef_dev_tools_message_observer_t::base"]
5401        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, base) - 0usize];
5402    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_message"]
5403        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, on_dev_tools_message) - 40usize];
5404    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_method_result"][::std::mem::offset_of!(
5405        _cef_dev_tools_message_observer_t,
5406        on_dev_tools_method_result
5407    ) - 48usize];
5408    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_event"]
5409        [::std::mem::offset_of!(_cef_dev_tools_message_observer_t, on_dev_tools_event) - 56usize];
5410    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_agent_attached"][::std::mem::offset_of!(
5411        _cef_dev_tools_message_observer_t,
5412        on_dev_tools_agent_attached
5413    )
5414        - 64usize];
5415    ["Offset of field: _cef_dev_tools_message_observer_t::on_dev_tools_agent_detached"][::std::mem::offset_of!(
5416        _cef_dev_tools_message_observer_t,
5417        on_dev_tools_agent_detached
5418    )
5419        - 72usize];
5420};
5421#[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"]
5422pub type cef_dev_tools_message_observer_t = _cef_dev_tools_message_observer_t;
5423#[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"]
5424#[repr(C)]
5425#[derive(Debug, Copy, Clone)]
5426pub struct _cef_image_t {
5427    #[doc = "\n Base structure.\n"]
5428    pub base: cef_base_ref_counted_t,
5429    #[doc = "\n Returns true (1) if this Image is NULL.\n"]
5430    pub is_empty: ::std::option::Option<
5431        unsafe extern "C" fn(self_: *mut _cef_image_t) -> ::std::os::raw::c_int,
5432    >,
5433    #[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"]
5434    pub is_same: ::std::option::Option<
5435        unsafe extern "C" fn(
5436            self_: *mut _cef_image_t,
5437            that: *mut _cef_image_t,
5438        ) -> ::std::os::raw::c_int,
5439    >,
5440    #[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"]
5441    pub add_bitmap: ::std::option::Option<
5442        unsafe extern "C" fn(
5443            self_: *mut _cef_image_t,
5444            scale_factor: f32,
5445            pixel_width: ::std::os::raw::c_int,
5446            pixel_height: ::std::os::raw::c_int,
5447            color_type: cef_color_type_t,
5448            alpha_type: cef_alpha_type_t,
5449            pixel_data: *const ::std::os::raw::c_void,
5450            pixel_data_size: usize,
5451        ) -> ::std::os::raw::c_int,
5452    >,
5453    #[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"]
5454    pub add_png: ::std::option::Option<
5455        unsafe extern "C" fn(
5456            self_: *mut _cef_image_t,
5457            scale_factor: f32,
5458            png_data: *const ::std::os::raw::c_void,
5459            png_data_size: usize,
5460        ) -> ::std::os::raw::c_int,
5461    >,
5462    #[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"]
5463    pub add_jpeg: ::std::option::Option<
5464        unsafe extern "C" fn(
5465            self_: *mut _cef_image_t,
5466            scale_factor: f32,
5467            jpeg_data: *const ::std::os::raw::c_void,
5468            jpeg_data_size: usize,
5469        ) -> ::std::os::raw::c_int,
5470    >,
5471    #[doc = "\n Returns the image width in density independent pixel (DIP) units.\n"]
5472    pub get_width: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_image_t) -> usize>,
5473    #[doc = "\n Returns the image height in density independent pixel (DIP) units.\n"]
5474    pub get_height: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_image_t) -> usize>,
5475    #[doc = "\n Returns true (1) if this image contains a representation for\n |scale_factor|.\n"]
5476    pub has_representation: ::std::option::Option<
5477        unsafe extern "C" fn(self_: *mut _cef_image_t, scale_factor: f32) -> ::std::os::raw::c_int,
5478    >,
5479    #[doc = "\n Removes the representation for |scale_factor|. Returns true (1) on\n success.\n"]
5480    pub remove_representation: ::std::option::Option<
5481        unsafe extern "C" fn(self_: *mut _cef_image_t, scale_factor: f32) -> ::std::os::raw::c_int,
5482    >,
5483    #[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"]
5484    pub get_representation_info: ::std::option::Option<
5485        unsafe extern "C" fn(
5486            self_: *mut _cef_image_t,
5487            scale_factor: f32,
5488            actual_scale_factor: *mut f32,
5489            pixel_width: *mut ::std::os::raw::c_int,
5490            pixel_height: *mut ::std::os::raw::c_int,
5491        ) -> ::std::os::raw::c_int,
5492    >,
5493    #[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"]
5494    pub get_as_bitmap: ::std::option::Option<
5495        unsafe extern "C" fn(
5496            self_: *mut _cef_image_t,
5497            scale_factor: f32,
5498            color_type: cef_color_type_t,
5499            alpha_type: cef_alpha_type_t,
5500            pixel_width: *mut ::std::os::raw::c_int,
5501            pixel_height: *mut ::std::os::raw::c_int,
5502        ) -> *mut _cef_binary_value_t,
5503    >,
5504    #[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"]
5505    pub get_as_png: ::std::option::Option<
5506        unsafe extern "C" fn(
5507            self_: *mut _cef_image_t,
5508            scale_factor: f32,
5509            with_transparency: ::std::os::raw::c_int,
5510            pixel_width: *mut ::std::os::raw::c_int,
5511            pixel_height: *mut ::std::os::raw::c_int,
5512        ) -> *mut _cef_binary_value_t,
5513    >,
5514    #[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"]
5515    pub get_as_jpeg: ::std::option::Option<
5516        unsafe extern "C" fn(
5517            self_: *mut _cef_image_t,
5518            scale_factor: f32,
5519            quality: ::std::os::raw::c_int,
5520            pixel_width: *mut ::std::os::raw::c_int,
5521            pixel_height: *mut ::std::os::raw::c_int,
5522        ) -> *mut _cef_binary_value_t,
5523    >,
5524}
5525#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5526const _: () = {
5527    ["Size of _cef_image_t"][::std::mem::size_of::<_cef_image_t>() - 144usize];
5528    ["Alignment of _cef_image_t"][::std::mem::align_of::<_cef_image_t>() - 8usize];
5529    ["Offset of field: _cef_image_t::base"][::std::mem::offset_of!(_cef_image_t, base) - 0usize];
5530    ["Offset of field: _cef_image_t::is_empty"]
5531        [::std::mem::offset_of!(_cef_image_t, is_empty) - 40usize];
5532    ["Offset of field: _cef_image_t::is_same"]
5533        [::std::mem::offset_of!(_cef_image_t, is_same) - 48usize];
5534    ["Offset of field: _cef_image_t::add_bitmap"]
5535        [::std::mem::offset_of!(_cef_image_t, add_bitmap) - 56usize];
5536    ["Offset of field: _cef_image_t::add_png"]
5537        [::std::mem::offset_of!(_cef_image_t, add_png) - 64usize];
5538    ["Offset of field: _cef_image_t::add_jpeg"]
5539        [::std::mem::offset_of!(_cef_image_t, add_jpeg) - 72usize];
5540    ["Offset of field: _cef_image_t::get_width"]
5541        [::std::mem::offset_of!(_cef_image_t, get_width) - 80usize];
5542    ["Offset of field: _cef_image_t::get_height"]
5543        [::std::mem::offset_of!(_cef_image_t, get_height) - 88usize];
5544    ["Offset of field: _cef_image_t::has_representation"]
5545        [::std::mem::offset_of!(_cef_image_t, has_representation) - 96usize];
5546    ["Offset of field: _cef_image_t::remove_representation"]
5547        [::std::mem::offset_of!(_cef_image_t, remove_representation) - 104usize];
5548    ["Offset of field: _cef_image_t::get_representation_info"]
5549        [::std::mem::offset_of!(_cef_image_t, get_representation_info) - 112usize];
5550    ["Offset of field: _cef_image_t::get_as_bitmap"]
5551        [::std::mem::offset_of!(_cef_image_t, get_as_bitmap) - 120usize];
5552    ["Offset of field: _cef_image_t::get_as_png"]
5553        [::std::mem::offset_of!(_cef_image_t, get_as_png) - 128usize];
5554    ["Offset of field: _cef_image_t::get_as_jpeg"]
5555        [::std::mem::offset_of!(_cef_image_t, get_as_jpeg) - 136usize];
5556};
5557#[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"]
5558pub type cef_image_t = _cef_image_t;
5559unsafe extern "C" {
5560    #[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"]
5561    pub fn cef_image_create() -> *mut cef_image_t;
5562}
5563#[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"]
5564#[repr(C)]
5565#[derive(Debug, Copy, Clone)]
5566pub struct _cef_read_handler_t {
5567    #[doc = "\n Base structure.\n"]
5568    pub base: cef_base_ref_counted_t,
5569    #[doc = "\n Read raw binary data.\n"]
5570    pub read: ::std::option::Option<
5571        unsafe extern "C" fn(
5572            self_: *mut _cef_read_handler_t,
5573            ptr: *mut ::std::os::raw::c_void,
5574            size: usize,
5575            n: usize,
5576        ) -> usize,
5577    >,
5578    #[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"]
5579    pub seek: ::std::option::Option<
5580        unsafe extern "C" fn(
5581            self_: *mut _cef_read_handler_t,
5582            offset: i64,
5583            whence: ::std::os::raw::c_int,
5584        ) -> ::std::os::raw::c_int,
5585    >,
5586    #[doc = "\n Return the current offset position.\n"]
5587    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> i64>,
5588    #[doc = "\n Return non-zero if at end of file.\n"]
5589    pub eof: ::std::option::Option<
5590        unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int,
5591    >,
5592    #[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"]
5593    pub may_block: ::std::option::Option<
5594        unsafe extern "C" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int,
5595    >,
5596}
5597#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5598const _: () = {
5599    ["Size of _cef_read_handler_t"][::std::mem::size_of::<_cef_read_handler_t>() - 80usize];
5600    ["Alignment of _cef_read_handler_t"][::std::mem::align_of::<_cef_read_handler_t>() - 8usize];
5601    ["Offset of field: _cef_read_handler_t::base"]
5602        [::std::mem::offset_of!(_cef_read_handler_t, base) - 0usize];
5603    ["Offset of field: _cef_read_handler_t::read"]
5604        [::std::mem::offset_of!(_cef_read_handler_t, read) - 40usize];
5605    ["Offset of field: _cef_read_handler_t::seek"]
5606        [::std::mem::offset_of!(_cef_read_handler_t, seek) - 48usize];
5607    ["Offset of field: _cef_read_handler_t::tell"]
5608        [::std::mem::offset_of!(_cef_read_handler_t, tell) - 56usize];
5609    ["Offset of field: _cef_read_handler_t::eof"]
5610        [::std::mem::offset_of!(_cef_read_handler_t, eof) - 64usize];
5611    ["Offset of field: _cef_read_handler_t::may_block"]
5612        [::std::mem::offset_of!(_cef_read_handler_t, may_block) - 72usize];
5613};
5614#[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"]
5615pub type cef_read_handler_t = _cef_read_handler_t;
5616#[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"]
5617#[repr(C)]
5618#[derive(Debug, Copy, Clone)]
5619pub struct _cef_stream_reader_t {
5620    #[doc = "\n Base structure.\n"]
5621    pub base: cef_base_ref_counted_t,
5622    #[doc = "\n Read raw binary data.\n"]
5623    pub read: ::std::option::Option<
5624        unsafe extern "C" fn(
5625            self_: *mut _cef_stream_reader_t,
5626            ptr: *mut ::std::os::raw::c_void,
5627            size: usize,
5628            n: usize,
5629        ) -> usize,
5630    >,
5631    #[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"]
5632    pub seek: ::std::option::Option<
5633        unsafe extern "C" fn(
5634            self_: *mut _cef_stream_reader_t,
5635            offset: i64,
5636            whence: ::std::os::raw::c_int,
5637        ) -> ::std::os::raw::c_int,
5638    >,
5639    #[doc = "\n Return the current offset position.\n"]
5640    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> i64>,
5641    #[doc = "\n Return non-zero if at end of file.\n"]
5642    pub eof: ::std::option::Option<
5643        unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int,
5644    >,
5645    #[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"]
5646    pub may_block: ::std::option::Option<
5647        unsafe extern "C" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int,
5648    >,
5649}
5650#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5651const _: () = {
5652    ["Size of _cef_stream_reader_t"][::std::mem::size_of::<_cef_stream_reader_t>() - 80usize];
5653    ["Alignment of _cef_stream_reader_t"][::std::mem::align_of::<_cef_stream_reader_t>() - 8usize];
5654    ["Offset of field: _cef_stream_reader_t::base"]
5655        [::std::mem::offset_of!(_cef_stream_reader_t, base) - 0usize];
5656    ["Offset of field: _cef_stream_reader_t::read"]
5657        [::std::mem::offset_of!(_cef_stream_reader_t, read) - 40usize];
5658    ["Offset of field: _cef_stream_reader_t::seek"]
5659        [::std::mem::offset_of!(_cef_stream_reader_t, seek) - 48usize];
5660    ["Offset of field: _cef_stream_reader_t::tell"]
5661        [::std::mem::offset_of!(_cef_stream_reader_t, tell) - 56usize];
5662    ["Offset of field: _cef_stream_reader_t::eof"]
5663        [::std::mem::offset_of!(_cef_stream_reader_t, eof) - 64usize];
5664    ["Offset of field: _cef_stream_reader_t::may_block"]
5665        [::std::mem::offset_of!(_cef_stream_reader_t, may_block) - 72usize];
5666};
5667#[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"]
5668pub type cef_stream_reader_t = _cef_stream_reader_t;
5669unsafe extern "C" {
5670    #[doc = "\n Create a new cef_stream_reader_t object from a file.\n"]
5671    pub fn cef_stream_reader_create_for_file(
5672        fileName: *const cef_string_t,
5673    ) -> *mut cef_stream_reader_t;
5674}
5675unsafe extern "C" {
5676    #[doc = "\n Create a new cef_stream_reader_t object from data.\n"]
5677    pub fn cef_stream_reader_create_for_data(
5678        data: *mut ::std::os::raw::c_void,
5679        size: usize,
5680    ) -> *mut cef_stream_reader_t;
5681}
5682unsafe extern "C" {
5683    #[doc = "\n Create a new cef_stream_reader_t object from a custom handler.\n"]
5684    pub fn cef_stream_reader_create_for_handler(
5685        handler: *mut cef_read_handler_t,
5686    ) -> *mut cef_stream_reader_t;
5687}
5688#[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"]
5689#[repr(C)]
5690#[derive(Debug, Copy, Clone)]
5691pub struct _cef_write_handler_t {
5692    #[doc = "\n Base structure.\n"]
5693    pub base: cef_base_ref_counted_t,
5694    #[doc = "\n Write raw binary data.\n"]
5695    pub write: ::std::option::Option<
5696        unsafe extern "C" fn(
5697            self_: *mut _cef_write_handler_t,
5698            ptr: *const ::std::os::raw::c_void,
5699            size: usize,
5700            n: usize,
5701        ) -> usize,
5702    >,
5703    #[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"]
5704    pub seek: ::std::option::Option<
5705        unsafe extern "C" fn(
5706            self_: *mut _cef_write_handler_t,
5707            offset: i64,
5708            whence: ::std::os::raw::c_int,
5709        ) -> ::std::os::raw::c_int,
5710    >,
5711    #[doc = "\n Return the current offset position.\n"]
5712    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> i64>,
5713    #[doc = "\n Flush the stream.\n"]
5714    pub flush: ::std::option::Option<
5715        unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int,
5716    >,
5717    #[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"]
5718    pub may_block: ::std::option::Option<
5719        unsafe extern "C" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int,
5720    >,
5721}
5722#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5723const _: () = {
5724    ["Size of _cef_write_handler_t"][::std::mem::size_of::<_cef_write_handler_t>() - 80usize];
5725    ["Alignment of _cef_write_handler_t"][::std::mem::align_of::<_cef_write_handler_t>() - 8usize];
5726    ["Offset of field: _cef_write_handler_t::base"]
5727        [::std::mem::offset_of!(_cef_write_handler_t, base) - 0usize];
5728    ["Offset of field: _cef_write_handler_t::write"]
5729        [::std::mem::offset_of!(_cef_write_handler_t, write) - 40usize];
5730    ["Offset of field: _cef_write_handler_t::seek"]
5731        [::std::mem::offset_of!(_cef_write_handler_t, seek) - 48usize];
5732    ["Offset of field: _cef_write_handler_t::tell"]
5733        [::std::mem::offset_of!(_cef_write_handler_t, tell) - 56usize];
5734    ["Offset of field: _cef_write_handler_t::flush"]
5735        [::std::mem::offset_of!(_cef_write_handler_t, flush) - 64usize];
5736    ["Offset of field: _cef_write_handler_t::may_block"]
5737        [::std::mem::offset_of!(_cef_write_handler_t, may_block) - 72usize];
5738};
5739#[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"]
5740pub type cef_write_handler_t = _cef_write_handler_t;
5741#[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"]
5742#[repr(C)]
5743#[derive(Debug, Copy, Clone)]
5744pub struct _cef_stream_writer_t {
5745    #[doc = "\n Base structure.\n"]
5746    pub base: cef_base_ref_counted_t,
5747    #[doc = "\n Write raw binary data.\n"]
5748    pub write: ::std::option::Option<
5749        unsafe extern "C" fn(
5750            self_: *mut _cef_stream_writer_t,
5751            ptr: *const ::std::os::raw::c_void,
5752            size: usize,
5753            n: usize,
5754        ) -> usize,
5755    >,
5756    #[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"]
5757    pub seek: ::std::option::Option<
5758        unsafe extern "C" fn(
5759            self_: *mut _cef_stream_writer_t,
5760            offset: i64,
5761            whence: ::std::os::raw::c_int,
5762        ) -> ::std::os::raw::c_int,
5763    >,
5764    #[doc = "\n Return the current offset position.\n"]
5765    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> i64>,
5766    #[doc = "\n Flush the stream.\n"]
5767    pub flush: ::std::option::Option<
5768        unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int,
5769    >,
5770    #[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"]
5771    pub may_block: ::std::option::Option<
5772        unsafe extern "C" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int,
5773    >,
5774}
5775#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5776const _: () = {
5777    ["Size of _cef_stream_writer_t"][::std::mem::size_of::<_cef_stream_writer_t>() - 80usize];
5778    ["Alignment of _cef_stream_writer_t"][::std::mem::align_of::<_cef_stream_writer_t>() - 8usize];
5779    ["Offset of field: _cef_stream_writer_t::base"]
5780        [::std::mem::offset_of!(_cef_stream_writer_t, base) - 0usize];
5781    ["Offset of field: _cef_stream_writer_t::write"]
5782        [::std::mem::offset_of!(_cef_stream_writer_t, write) - 40usize];
5783    ["Offset of field: _cef_stream_writer_t::seek"]
5784        [::std::mem::offset_of!(_cef_stream_writer_t, seek) - 48usize];
5785    ["Offset of field: _cef_stream_writer_t::tell"]
5786        [::std::mem::offset_of!(_cef_stream_writer_t, tell) - 56usize];
5787    ["Offset of field: _cef_stream_writer_t::flush"]
5788        [::std::mem::offset_of!(_cef_stream_writer_t, flush) - 64usize];
5789    ["Offset of field: _cef_stream_writer_t::may_block"]
5790        [::std::mem::offset_of!(_cef_stream_writer_t, may_block) - 72usize];
5791};
5792#[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"]
5793pub type cef_stream_writer_t = _cef_stream_writer_t;
5794unsafe extern "C" {
5795    #[doc = "\n Create a new cef_stream_writer_t object for a file.\n"]
5796    pub fn cef_stream_writer_create_for_file(
5797        fileName: *const cef_string_t,
5798    ) -> *mut cef_stream_writer_t;
5799}
5800unsafe extern "C" {
5801    #[doc = "\n Create a new cef_stream_writer_t object for a custom handler.\n"]
5802    pub fn cef_stream_writer_create_for_handler(
5803        handler: *mut cef_write_handler_t,
5804    ) -> *mut cef_stream_writer_t;
5805}
5806#[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"]
5807#[repr(C)]
5808#[derive(Debug, Copy, Clone)]
5809pub struct _cef_drag_data_t {
5810    #[doc = "\n Base structure.\n"]
5811    pub base: cef_base_ref_counted_t,
5812    #[doc = "\n Returns a copy of the current object.\n"]
5813    pub clone: ::std::option::Option<
5814        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_drag_data_t,
5815    >,
5816    #[doc = "\n Returns true (1) if this object is read-only.\n"]
5817    pub is_read_only: ::std::option::Option<
5818        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5819    >,
5820    #[doc = "\n Returns true (1) if the drag data is a link.\n"]
5821    pub is_link: ::std::option::Option<
5822        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5823    >,
5824    #[doc = "\n Returns true (1) if the drag data is a text or html fragment.\n"]
5825    pub is_fragment: ::std::option::Option<
5826        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5827    >,
5828    #[doc = "\n Returns true (1) if the drag data is a file.\n"]
5829    pub is_file: ::std::option::Option<
5830        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5831    >,
5832    #[doc = "\n Return the link URL that is being dragged.\n"]
5833    pub get_link_url: ::std::option::Option<
5834        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5835    >,
5836    #[doc = "\n Return the title associated with the link being dragged.\n"]
5837    pub get_link_title: ::std::option::Option<
5838        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5839    >,
5840    #[doc = "\n Return the metadata, if any, associated with the link being dragged.\n"]
5841    pub get_link_metadata: ::std::option::Option<
5842        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5843    >,
5844    #[doc = "\n Return the plain text fragment that is being dragged.\n"]
5845    pub get_fragment_text: ::std::option::Option<
5846        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5847    >,
5848    #[doc = "\n Return the text/html fragment that is being dragged.\n"]
5849    pub get_fragment_html: ::std::option::Option<
5850        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5851    >,
5852    #[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"]
5853    pub get_fragment_base_url: ::std::option::Option<
5854        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5855    >,
5856    #[doc = "\n Return the name of the file being dragged out of the browser window.\n"]
5857    pub get_file_name: ::std::option::Option<
5858        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t,
5859    >,
5860    #[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"]
5861    pub get_file_contents: ::std::option::Option<
5862        unsafe extern "C" fn(
5863            self_: *mut _cef_drag_data_t,
5864            writer: *mut _cef_stream_writer_t,
5865        ) -> usize,
5866    >,
5867    #[doc = "\n Retrieve the list of file names that are being dragged into the browser\n window.\n"]
5868    pub get_file_names: ::std::option::Option<
5869        unsafe extern "C" fn(
5870            self_: *mut _cef_drag_data_t,
5871            names: cef_string_list_t,
5872        ) -> ::std::os::raw::c_int,
5873    >,
5874    #[doc = "\n Retrieve the list of file paths that are being dragged into the browser\n window.\n"]
5875    pub get_file_paths: ::std::option::Option<
5876        unsafe extern "C" fn(
5877            self_: *mut _cef_drag_data_t,
5878            paths: cef_string_list_t,
5879        ) -> ::std::os::raw::c_int,
5880    >,
5881    #[doc = "\n Set the link URL that is being dragged.\n"]
5882    pub set_link_url: ::std::option::Option<
5883        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, url: *const cef_string_t),
5884    >,
5885    #[doc = "\n Set the title associated with the link being dragged.\n"]
5886    pub set_link_title: ::std::option::Option<
5887        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, title: *const cef_string_t),
5888    >,
5889    #[doc = "\n Set the metadata associated with the link being dragged.\n"]
5890    pub set_link_metadata: ::std::option::Option<
5891        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, data: *const cef_string_t),
5892    >,
5893    #[doc = "\n Set the plain text fragment that is being dragged.\n"]
5894    pub set_fragment_text: ::std::option::Option<
5895        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, text: *const cef_string_t),
5896    >,
5897    #[doc = "\n Set the text/html fragment that is being dragged.\n"]
5898    pub set_fragment_html: ::std::option::Option<
5899        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, html: *const cef_string_t),
5900    >,
5901    #[doc = "\n Set the base URL that the fragment came from.\n"]
5902    pub set_fragment_base_url: ::std::option::Option<
5903        unsafe extern "C" fn(self_: *mut _cef_drag_data_t, base_url: *const cef_string_t),
5904    >,
5905    #[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"]
5906    pub reset_file_contents:
5907        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t)>,
5908    #[doc = "\n Add a file that is being dragged into the webview.\n"]
5909    pub add_file: ::std::option::Option<
5910        unsafe extern "C" fn(
5911            self_: *mut _cef_drag_data_t,
5912            path: *const cef_string_t,
5913            display_name: *const cef_string_t,
5914        ),
5915    >,
5916    #[doc = "\n Clear list of filenames.\n"]
5917    pub clear_filenames: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t)>,
5918    #[doc = "\n Get the image representation of drag data. May return NULL if no image\n representation is available.\n"]
5919    pub get_image: ::std::option::Option<
5920        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_image_t,
5921    >,
5922    #[doc = "\n Get the image hotspot (drag start location relative to image dimensions).\n"]
5923    pub get_image_hotspot:
5924        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> cef_point_t>,
5925    #[doc = "\n Returns true (1) if an image representation of drag data is available.\n"]
5926    pub has_image: ::std::option::Option<
5927        unsafe extern "C" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int,
5928    >,
5929}
5930#[allow(clippy::unnecessary_operation, clippy::identity_op)]
5931const _: () = {
5932    ["Size of _cef_drag_data_t"][::std::mem::size_of::<_cef_drag_data_t>() - 256usize];
5933    ["Alignment of _cef_drag_data_t"][::std::mem::align_of::<_cef_drag_data_t>() - 8usize];
5934    ["Offset of field: _cef_drag_data_t::base"]
5935        [::std::mem::offset_of!(_cef_drag_data_t, base) - 0usize];
5936    ["Offset of field: _cef_drag_data_t::clone"]
5937        [::std::mem::offset_of!(_cef_drag_data_t, clone) - 40usize];
5938    ["Offset of field: _cef_drag_data_t::is_read_only"]
5939        [::std::mem::offset_of!(_cef_drag_data_t, is_read_only) - 48usize];
5940    ["Offset of field: _cef_drag_data_t::is_link"]
5941        [::std::mem::offset_of!(_cef_drag_data_t, is_link) - 56usize];
5942    ["Offset of field: _cef_drag_data_t::is_fragment"]
5943        [::std::mem::offset_of!(_cef_drag_data_t, is_fragment) - 64usize];
5944    ["Offset of field: _cef_drag_data_t::is_file"]
5945        [::std::mem::offset_of!(_cef_drag_data_t, is_file) - 72usize];
5946    ["Offset of field: _cef_drag_data_t::get_link_url"]
5947        [::std::mem::offset_of!(_cef_drag_data_t, get_link_url) - 80usize];
5948    ["Offset of field: _cef_drag_data_t::get_link_title"]
5949        [::std::mem::offset_of!(_cef_drag_data_t, get_link_title) - 88usize];
5950    ["Offset of field: _cef_drag_data_t::get_link_metadata"]
5951        [::std::mem::offset_of!(_cef_drag_data_t, get_link_metadata) - 96usize];
5952    ["Offset of field: _cef_drag_data_t::get_fragment_text"]
5953        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_text) - 104usize];
5954    ["Offset of field: _cef_drag_data_t::get_fragment_html"]
5955        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_html) - 112usize];
5956    ["Offset of field: _cef_drag_data_t::get_fragment_base_url"]
5957        [::std::mem::offset_of!(_cef_drag_data_t, get_fragment_base_url) - 120usize];
5958    ["Offset of field: _cef_drag_data_t::get_file_name"]
5959        [::std::mem::offset_of!(_cef_drag_data_t, get_file_name) - 128usize];
5960    ["Offset of field: _cef_drag_data_t::get_file_contents"]
5961        [::std::mem::offset_of!(_cef_drag_data_t, get_file_contents) - 136usize];
5962    ["Offset of field: _cef_drag_data_t::get_file_names"]
5963        [::std::mem::offset_of!(_cef_drag_data_t, get_file_names) - 144usize];
5964    ["Offset of field: _cef_drag_data_t::get_file_paths"]
5965        [::std::mem::offset_of!(_cef_drag_data_t, get_file_paths) - 152usize];
5966    ["Offset of field: _cef_drag_data_t::set_link_url"]
5967        [::std::mem::offset_of!(_cef_drag_data_t, set_link_url) - 160usize];
5968    ["Offset of field: _cef_drag_data_t::set_link_title"]
5969        [::std::mem::offset_of!(_cef_drag_data_t, set_link_title) - 168usize];
5970    ["Offset of field: _cef_drag_data_t::set_link_metadata"]
5971        [::std::mem::offset_of!(_cef_drag_data_t, set_link_metadata) - 176usize];
5972    ["Offset of field: _cef_drag_data_t::set_fragment_text"]
5973        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_text) - 184usize];
5974    ["Offset of field: _cef_drag_data_t::set_fragment_html"]
5975        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_html) - 192usize];
5976    ["Offset of field: _cef_drag_data_t::set_fragment_base_url"]
5977        [::std::mem::offset_of!(_cef_drag_data_t, set_fragment_base_url) - 200usize];
5978    ["Offset of field: _cef_drag_data_t::reset_file_contents"]
5979        [::std::mem::offset_of!(_cef_drag_data_t, reset_file_contents) - 208usize];
5980    ["Offset of field: _cef_drag_data_t::add_file"]
5981        [::std::mem::offset_of!(_cef_drag_data_t, add_file) - 216usize];
5982    ["Offset of field: _cef_drag_data_t::clear_filenames"]
5983        [::std::mem::offset_of!(_cef_drag_data_t, clear_filenames) - 224usize];
5984    ["Offset of field: _cef_drag_data_t::get_image"]
5985        [::std::mem::offset_of!(_cef_drag_data_t, get_image) - 232usize];
5986    ["Offset of field: _cef_drag_data_t::get_image_hotspot"]
5987        [::std::mem::offset_of!(_cef_drag_data_t, get_image_hotspot) - 240usize];
5988    ["Offset of field: _cef_drag_data_t::has_image"]
5989        [::std::mem::offset_of!(_cef_drag_data_t, has_image) - 248usize];
5990};
5991#[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"]
5992pub type cef_drag_data_t = _cef_drag_data_t;
5993unsafe extern "C" {
5994    #[doc = "\n Create a new cef_drag_data_t object.\n"]
5995    pub fn cef_drag_data_create() -> *mut cef_drag_data_t;
5996}
5997#[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"]
5998#[repr(C)]
5999#[derive(Debug, Copy, Clone)]
6000pub struct _cef_domvisitor_t {
6001    #[doc = "\n Base structure.\n"]
6002    pub base: cef_base_ref_counted_t,
6003    #[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"]
6004    pub visit: ::std::option::Option<
6005        unsafe extern "C" fn(self_: *mut _cef_domvisitor_t, document: *mut _cef_domdocument_t),
6006    >,
6007}
6008#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6009const _: () = {
6010    ["Size of _cef_domvisitor_t"][::std::mem::size_of::<_cef_domvisitor_t>() - 48usize];
6011    ["Alignment of _cef_domvisitor_t"][::std::mem::align_of::<_cef_domvisitor_t>() - 8usize];
6012    ["Offset of field: _cef_domvisitor_t::base"]
6013        [::std::mem::offset_of!(_cef_domvisitor_t, base) - 0usize];
6014    ["Offset of field: _cef_domvisitor_t::visit"]
6015        [::std::mem::offset_of!(_cef_domvisitor_t, visit) - 40usize];
6016};
6017#[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"]
6018pub type cef_domvisitor_t = _cef_domvisitor_t;
6019#[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"]
6020#[repr(C)]
6021#[derive(Debug, Copy, Clone)]
6022pub struct _cef_domdocument_t {
6023    #[doc = "\n Base structure.\n"]
6024    pub base: cef_base_ref_counted_t,
6025    #[doc = "\n Returns the document type.\n"]
6026    pub get_type: ::std::option::Option<
6027        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_dom_document_type_t,
6028    >,
6029    #[doc = "\n Returns the root document node.\n"]
6030    pub get_document: ::std::option::Option<
6031        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
6032    >,
6033    #[doc = "\n Returns the BODY node of an HTML document.\n"]
6034    pub get_body: ::std::option::Option<
6035        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
6036    >,
6037    #[doc = "\n Returns the HEAD node of an HTML document.\n"]
6038    pub get_head: ::std::option::Option<
6039        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
6040    >,
6041    #[doc = "\n Returns the title of an HTML document.\n"]
6042    pub get_title: ::std::option::Option<
6043        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
6044    >,
6045    #[doc = "\n Returns the document element with the specified ID value.\n"]
6046    pub get_element_by_id: ::std::option::Option<
6047        unsafe extern "C" fn(
6048            self_: *mut _cef_domdocument_t,
6049            id: *const cef_string_t,
6050        ) -> *mut _cef_domnode_t,
6051    >,
6052    #[doc = "\n Returns the node that currently has keyboard focus.\n"]
6053    pub get_focused_node: ::std::option::Option<
6054        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t,
6055    >,
6056    #[doc = "\n Returns true (1) if a portion of the document is selected.\n"]
6057    pub has_selection: ::std::option::Option<
6058        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
6059    >,
6060    #[doc = "\n Returns the selection offset within the start node.\n"]
6061    pub get_selection_start_offset: ::std::option::Option<
6062        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
6063    >,
6064    #[doc = "\n Returns the selection offset within the end node.\n"]
6065    pub get_selection_end_offset: ::std::option::Option<
6066        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int,
6067    >,
6068    #[doc = "\n Returns the contents of this selection as markup.\n"]
6069    pub get_selection_as_markup: ::std::option::Option<
6070        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
6071    >,
6072    #[doc = "\n Returns the contents of this selection as text.\n"]
6073    pub get_selection_as_text: ::std::option::Option<
6074        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
6075    >,
6076    #[doc = "\n Returns the base URL for the document.\n"]
6077    pub get_base_url: ::std::option::Option<
6078        unsafe extern "C" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t,
6079    >,
6080    #[doc = "\n Returns a complete URL based on the document base URL and the specified\n partial URL.\n"]
6081    pub get_complete_url: ::std::option::Option<
6082        unsafe extern "C" fn(
6083            self_: *mut _cef_domdocument_t,
6084            partialURL: *const cef_string_t,
6085        ) -> cef_string_userfree_t,
6086    >,
6087}
6088#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6089const _: () = {
6090    ["Size of _cef_domdocument_t"][::std::mem::size_of::<_cef_domdocument_t>() - 152usize];
6091    ["Alignment of _cef_domdocument_t"][::std::mem::align_of::<_cef_domdocument_t>() - 8usize];
6092    ["Offset of field: _cef_domdocument_t::base"]
6093        [::std::mem::offset_of!(_cef_domdocument_t, base) - 0usize];
6094    ["Offset of field: _cef_domdocument_t::get_type"]
6095        [::std::mem::offset_of!(_cef_domdocument_t, get_type) - 40usize];
6096    ["Offset of field: _cef_domdocument_t::get_document"]
6097        [::std::mem::offset_of!(_cef_domdocument_t, get_document) - 48usize];
6098    ["Offset of field: _cef_domdocument_t::get_body"]
6099        [::std::mem::offset_of!(_cef_domdocument_t, get_body) - 56usize];
6100    ["Offset of field: _cef_domdocument_t::get_head"]
6101        [::std::mem::offset_of!(_cef_domdocument_t, get_head) - 64usize];
6102    ["Offset of field: _cef_domdocument_t::get_title"]
6103        [::std::mem::offset_of!(_cef_domdocument_t, get_title) - 72usize];
6104    ["Offset of field: _cef_domdocument_t::get_element_by_id"]
6105        [::std::mem::offset_of!(_cef_domdocument_t, get_element_by_id) - 80usize];
6106    ["Offset of field: _cef_domdocument_t::get_focused_node"]
6107        [::std::mem::offset_of!(_cef_domdocument_t, get_focused_node) - 88usize];
6108    ["Offset of field: _cef_domdocument_t::has_selection"]
6109        [::std::mem::offset_of!(_cef_domdocument_t, has_selection) - 96usize];
6110    ["Offset of field: _cef_domdocument_t::get_selection_start_offset"]
6111        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_start_offset) - 104usize];
6112    ["Offset of field: _cef_domdocument_t::get_selection_end_offset"]
6113        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_end_offset) - 112usize];
6114    ["Offset of field: _cef_domdocument_t::get_selection_as_markup"]
6115        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_as_markup) - 120usize];
6116    ["Offset of field: _cef_domdocument_t::get_selection_as_text"]
6117        [::std::mem::offset_of!(_cef_domdocument_t, get_selection_as_text) - 128usize];
6118    ["Offset of field: _cef_domdocument_t::get_base_url"]
6119        [::std::mem::offset_of!(_cef_domdocument_t, get_base_url) - 136usize];
6120    ["Offset of field: _cef_domdocument_t::get_complete_url"]
6121        [::std::mem::offset_of!(_cef_domdocument_t, get_complete_url) - 144usize];
6122};
6123#[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"]
6124pub type cef_domdocument_t = _cef_domdocument_t;
6125#[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"]
6126#[repr(C)]
6127#[derive(Debug, Copy, Clone)]
6128pub struct _cef_domnode_t {
6129    #[doc = "\n Base structure.\n"]
6130    pub base: cef_base_ref_counted_t,
6131    #[doc = "\n Returns the type for this node.\n"]
6132    pub get_type: ::std::option::Option<
6133        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_dom_node_type_t,
6134    >,
6135    #[doc = "\n Returns true (1) if this is a text node.\n"]
6136    pub is_text: ::std::option::Option<
6137        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6138    >,
6139    #[doc = "\n Returns true (1) if this is an element node.\n"]
6140    pub is_element: ::std::option::Option<
6141        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6142    >,
6143    #[doc = "\n Returns true (1) if this is an editable node.\n"]
6144    pub is_editable: ::std::option::Option<
6145        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6146    >,
6147    #[doc = "\n Returns true (1) if this is a form control element node.\n"]
6148    pub is_form_control_element: ::std::option::Option<
6149        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6150    >,
6151    #[doc = "\n Returns the type of this form control element node.\n"]
6152    pub get_form_control_element_type: ::std::option::Option<
6153        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_dom_form_control_type_t,
6154    >,
6155    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
6156    pub is_same: ::std::option::Option<
6157        unsafe extern "C" fn(
6158            self_: *mut _cef_domnode_t,
6159            that: *mut _cef_domnode_t,
6160        ) -> ::std::os::raw::c_int,
6161    >,
6162    #[doc = "\n Returns the name of this node.\n"]
6163    pub get_name: ::std::option::Option<
6164        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
6165    >,
6166    #[doc = "\n Returns the value of this node.\n"]
6167    pub get_value: ::std::option::Option<
6168        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
6169    >,
6170    #[doc = "\n Set the value of this node. Returns true (1) on success.\n"]
6171    pub set_value: ::std::option::Option<
6172        unsafe extern "C" fn(
6173            self_: *mut _cef_domnode_t,
6174            value: *const cef_string_t,
6175        ) -> ::std::os::raw::c_int,
6176    >,
6177    #[doc = "\n Returns the contents of this node as markup.\n"]
6178    pub get_as_markup: ::std::option::Option<
6179        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
6180    >,
6181    #[doc = "\n Returns the document associated with this node.\n"]
6182    pub get_document: ::std::option::Option<
6183        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domdocument_t,
6184    >,
6185    #[doc = "\n Returns the parent node.\n"]
6186    pub get_parent: ::std::option::Option<
6187        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
6188    >,
6189    #[doc = "\n Returns the previous sibling node.\n"]
6190    pub get_previous_sibling: ::std::option::Option<
6191        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
6192    >,
6193    #[doc = "\n Returns the next sibling node.\n"]
6194    pub get_next_sibling: ::std::option::Option<
6195        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
6196    >,
6197    #[doc = "\n Returns true (1) if this node has child nodes.\n"]
6198    pub has_children: ::std::option::Option<
6199        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6200    >,
6201    #[doc = "\n Return the first child node.\n"]
6202    pub get_first_child: ::std::option::Option<
6203        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
6204    >,
6205    #[doc = "\n Returns the last child node.\n"]
6206    pub get_last_child: ::std::option::Option<
6207        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t,
6208    >,
6209    #[doc = "\n Returns the tag name of this element.\n"]
6210    pub get_element_tag_name: ::std::option::Option<
6211        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
6212    >,
6213    #[doc = "\n Returns true (1) if this element has attributes.\n"]
6214    pub has_element_attributes: ::std::option::Option<
6215        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int,
6216    >,
6217    #[doc = "\n Returns true (1) if this element has an attribute named |attrName|.\n"]
6218    pub has_element_attribute: ::std::option::Option<
6219        unsafe extern "C" fn(
6220            self_: *mut _cef_domnode_t,
6221            attrName: *const cef_string_t,
6222        ) -> ::std::os::raw::c_int,
6223    >,
6224    #[doc = "\n Returns the element attribute named |attrName|.\n"]
6225    pub get_element_attribute: ::std::option::Option<
6226        unsafe extern "C" fn(
6227            self_: *mut _cef_domnode_t,
6228            attrName: *const cef_string_t,
6229        ) -> cef_string_userfree_t,
6230    >,
6231    #[doc = "\n Returns a map of all element attributes.\n"]
6232    pub get_element_attributes: ::std::option::Option<
6233        unsafe extern "C" fn(self_: *mut _cef_domnode_t, attrMap: cef_string_map_t),
6234    >,
6235    #[doc = "\n Set the value for the element attribute named |attrName|. Returns true (1)\n on success.\n"]
6236    pub set_element_attribute: ::std::option::Option<
6237        unsafe extern "C" fn(
6238            self_: *mut _cef_domnode_t,
6239            attrName: *const cef_string_t,
6240            value: *const cef_string_t,
6241        ) -> ::std::os::raw::c_int,
6242    >,
6243    #[doc = "\n Returns the inner text of the element.\n"]
6244    pub get_element_inner_text: ::std::option::Option<
6245        unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t,
6246    >,
6247    #[doc = "\n Returns the bounds of the element in device pixels. Use\n \"window.devicePixelRatio\" to convert to/from CSS pixels.\n"]
6248    pub get_element_bounds:
6249        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_domnode_t) -> cef_rect_t>,
6250}
6251#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6252const _: () = {
6253    ["Size of _cef_domnode_t"][::std::mem::size_of::<_cef_domnode_t>() - 248usize];
6254    ["Alignment of _cef_domnode_t"][::std::mem::align_of::<_cef_domnode_t>() - 8usize];
6255    ["Offset of field: _cef_domnode_t::base"]
6256        [::std::mem::offset_of!(_cef_domnode_t, base) - 0usize];
6257    ["Offset of field: _cef_domnode_t::get_type"]
6258        [::std::mem::offset_of!(_cef_domnode_t, get_type) - 40usize];
6259    ["Offset of field: _cef_domnode_t::is_text"]
6260        [::std::mem::offset_of!(_cef_domnode_t, is_text) - 48usize];
6261    ["Offset of field: _cef_domnode_t::is_element"]
6262        [::std::mem::offset_of!(_cef_domnode_t, is_element) - 56usize];
6263    ["Offset of field: _cef_domnode_t::is_editable"]
6264        [::std::mem::offset_of!(_cef_domnode_t, is_editable) - 64usize];
6265    ["Offset of field: _cef_domnode_t::is_form_control_element"]
6266        [::std::mem::offset_of!(_cef_domnode_t, is_form_control_element) - 72usize];
6267    ["Offset of field: _cef_domnode_t::get_form_control_element_type"]
6268        [::std::mem::offset_of!(_cef_domnode_t, get_form_control_element_type) - 80usize];
6269    ["Offset of field: _cef_domnode_t::is_same"]
6270        [::std::mem::offset_of!(_cef_domnode_t, is_same) - 88usize];
6271    ["Offset of field: _cef_domnode_t::get_name"]
6272        [::std::mem::offset_of!(_cef_domnode_t, get_name) - 96usize];
6273    ["Offset of field: _cef_domnode_t::get_value"]
6274        [::std::mem::offset_of!(_cef_domnode_t, get_value) - 104usize];
6275    ["Offset of field: _cef_domnode_t::set_value"]
6276        [::std::mem::offset_of!(_cef_domnode_t, set_value) - 112usize];
6277    ["Offset of field: _cef_domnode_t::get_as_markup"]
6278        [::std::mem::offset_of!(_cef_domnode_t, get_as_markup) - 120usize];
6279    ["Offset of field: _cef_domnode_t::get_document"]
6280        [::std::mem::offset_of!(_cef_domnode_t, get_document) - 128usize];
6281    ["Offset of field: _cef_domnode_t::get_parent"]
6282        [::std::mem::offset_of!(_cef_domnode_t, get_parent) - 136usize];
6283    ["Offset of field: _cef_domnode_t::get_previous_sibling"]
6284        [::std::mem::offset_of!(_cef_domnode_t, get_previous_sibling) - 144usize];
6285    ["Offset of field: _cef_domnode_t::get_next_sibling"]
6286        [::std::mem::offset_of!(_cef_domnode_t, get_next_sibling) - 152usize];
6287    ["Offset of field: _cef_domnode_t::has_children"]
6288        [::std::mem::offset_of!(_cef_domnode_t, has_children) - 160usize];
6289    ["Offset of field: _cef_domnode_t::get_first_child"]
6290        [::std::mem::offset_of!(_cef_domnode_t, get_first_child) - 168usize];
6291    ["Offset of field: _cef_domnode_t::get_last_child"]
6292        [::std::mem::offset_of!(_cef_domnode_t, get_last_child) - 176usize];
6293    ["Offset of field: _cef_domnode_t::get_element_tag_name"]
6294        [::std::mem::offset_of!(_cef_domnode_t, get_element_tag_name) - 184usize];
6295    ["Offset of field: _cef_domnode_t::has_element_attributes"]
6296        [::std::mem::offset_of!(_cef_domnode_t, has_element_attributes) - 192usize];
6297    ["Offset of field: _cef_domnode_t::has_element_attribute"]
6298        [::std::mem::offset_of!(_cef_domnode_t, has_element_attribute) - 200usize];
6299    ["Offset of field: _cef_domnode_t::get_element_attribute"]
6300        [::std::mem::offset_of!(_cef_domnode_t, get_element_attribute) - 208usize];
6301    ["Offset of field: _cef_domnode_t::get_element_attributes"]
6302        [::std::mem::offset_of!(_cef_domnode_t, get_element_attributes) - 216usize];
6303    ["Offset of field: _cef_domnode_t::set_element_attribute"]
6304        [::std::mem::offset_of!(_cef_domnode_t, set_element_attribute) - 224usize];
6305    ["Offset of field: _cef_domnode_t::get_element_inner_text"]
6306        [::std::mem::offset_of!(_cef_domnode_t, get_element_inner_text) - 232usize];
6307    ["Offset of field: _cef_domnode_t::get_element_bounds"]
6308        [::std::mem::offset_of!(_cef_domnode_t, get_element_bounds) - 240usize];
6309};
6310#[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"]
6311pub type cef_domnode_t = _cef_domnode_t;
6312#[doc = "\n Structure that wraps platform-dependent share memory region mapping.\n\n NOTE: This struct is allocated DLL-side.\n"]
6313#[repr(C)]
6314#[derive(Debug, Copy, Clone)]
6315pub struct _cef_shared_memory_region_t {
6316    #[doc = "\n Base structure.\n"]
6317    pub base: cef_base_ref_counted_t,
6318    #[doc = "\n Returns true (1) if the mapping is valid.\n"]
6319    pub is_valid: ::std::option::Option<
6320        unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> ::std::os::raw::c_int,
6321    >,
6322    #[doc = "\n Returns the size of the mapping in bytes. Returns 0 for invalid instances.\n"]
6323    pub size: ::std::option::Option<
6324        unsafe extern "C" fn(self_: *mut _cef_shared_memory_region_t) -> usize,
6325    >,
6326    #[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"]
6327    pub memory: ::std::option::Option<
6328        unsafe extern "C" fn(
6329            self_: *mut _cef_shared_memory_region_t,
6330        ) -> *mut ::std::os::raw::c_void,
6331    >,
6332}
6333#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6334const _: () = {
6335    ["Size of _cef_shared_memory_region_t"]
6336        [::std::mem::size_of::<_cef_shared_memory_region_t>() - 64usize];
6337    ["Alignment of _cef_shared_memory_region_t"]
6338        [::std::mem::align_of::<_cef_shared_memory_region_t>() - 8usize];
6339    ["Offset of field: _cef_shared_memory_region_t::base"]
6340        [::std::mem::offset_of!(_cef_shared_memory_region_t, base) - 0usize];
6341    ["Offset of field: _cef_shared_memory_region_t::is_valid"]
6342        [::std::mem::offset_of!(_cef_shared_memory_region_t, is_valid) - 40usize];
6343    ["Offset of field: _cef_shared_memory_region_t::size"]
6344        [::std::mem::offset_of!(_cef_shared_memory_region_t, size) - 48usize];
6345    ["Offset of field: _cef_shared_memory_region_t::memory"]
6346        [::std::mem::offset_of!(_cef_shared_memory_region_t, memory) - 56usize];
6347};
6348#[doc = "\n Structure that wraps platform-dependent share memory region mapping.\n\n NOTE: This struct is allocated DLL-side.\n"]
6349pub type cef_shared_memory_region_t = _cef_shared_memory_region_t;
6350#[doc = "\n Structure representing a message. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6351#[repr(C)]
6352#[derive(Debug, Copy, Clone)]
6353pub struct _cef_process_message_t {
6354    #[doc = "\n Base structure.\n"]
6355    pub base: cef_base_ref_counted_t,
6356    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
6357    pub is_valid: ::std::option::Option<
6358        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int,
6359    >,
6360    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
6361    pub is_read_only: ::std::option::Option<
6362        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int,
6363    >,
6364    #[doc = "\n Returns a writable copy of this object. Returns nullptr when message\n contains a shared memory region.\n"]
6365    pub copy: ::std::option::Option<
6366        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> *mut _cef_process_message_t,
6367    >,
6368    #[doc = "\n Returns the message name.\n"]
6369    pub get_name: ::std::option::Option<
6370        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> cef_string_userfree_t,
6371    >,
6372    #[doc = "\n Returns the list of arguments. Returns nullptr when message contains a\n shared memory region.\n"]
6373    pub get_argument_list: ::std::option::Option<
6374        unsafe extern "C" fn(self_: *mut _cef_process_message_t) -> *mut _cef_list_value_t,
6375    >,
6376    #[doc = "\n Returns the shared memory region. Returns nullptr when message contains an\n argument list.\n"]
6377    pub get_shared_memory_region: ::std::option::Option<
6378        unsafe extern "C" fn(
6379            self_: *mut _cef_process_message_t,
6380        ) -> *mut _cef_shared_memory_region_t,
6381    >,
6382}
6383#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6384const _: () = {
6385    ["Size of _cef_process_message_t"][::std::mem::size_of::<_cef_process_message_t>() - 88usize];
6386    ["Alignment of _cef_process_message_t"]
6387        [::std::mem::align_of::<_cef_process_message_t>() - 8usize];
6388    ["Offset of field: _cef_process_message_t::base"]
6389        [::std::mem::offset_of!(_cef_process_message_t, base) - 0usize];
6390    ["Offset of field: _cef_process_message_t::is_valid"]
6391        [::std::mem::offset_of!(_cef_process_message_t, is_valid) - 40usize];
6392    ["Offset of field: _cef_process_message_t::is_read_only"]
6393        [::std::mem::offset_of!(_cef_process_message_t, is_read_only) - 48usize];
6394    ["Offset of field: _cef_process_message_t::copy"]
6395        [::std::mem::offset_of!(_cef_process_message_t, copy) - 56usize];
6396    ["Offset of field: _cef_process_message_t::get_name"]
6397        [::std::mem::offset_of!(_cef_process_message_t, get_name) - 64usize];
6398    ["Offset of field: _cef_process_message_t::get_argument_list"]
6399        [::std::mem::offset_of!(_cef_process_message_t, get_argument_list) - 72usize];
6400    ["Offset of field: _cef_process_message_t::get_shared_memory_region"]
6401        [::std::mem::offset_of!(_cef_process_message_t, get_shared_memory_region) - 80usize];
6402};
6403#[doc = "\n Structure representing a message. Can be used on any process and thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
6404pub type cef_process_message_t = _cef_process_message_t;
6405unsafe extern "C" {
6406    #[doc = "\n Create a new cef_process_message_t object with the specified name.\n"]
6407    pub fn cef_process_message_create(name: *const cef_string_t) -> *mut cef_process_message_t;
6408}
6409#[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"]
6410#[repr(C)]
6411#[derive(Debug, Copy, Clone)]
6412pub struct _cef_request_t {
6413    #[doc = "\n Base structure.\n"]
6414    pub base: cef_base_ref_counted_t,
6415    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6416    pub is_read_only: ::std::option::Option<
6417        unsafe extern "C" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int,
6418    >,
6419    #[doc = "\n Get the fully qualified URL.\n"]
6420    pub get_url: ::std::option::Option<
6421        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6422    >,
6423    #[doc = "\n Set the fully qualified URL.\n"]
6424    pub set_url: ::std::option::Option<
6425        unsafe extern "C" fn(self_: *mut _cef_request_t, url: *const cef_string_t),
6426    >,
6427    #[doc = "\n Get the request function type. The value will default to POST if post data\n is provided and GET otherwise.\n"]
6428    pub get_method: ::std::option::Option<
6429        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6430    >,
6431    #[doc = "\n Set the request function type.\n"]
6432    pub set_method: ::std::option::Option<
6433        unsafe extern "C" fn(self_: *mut _cef_request_t, method: *const cef_string_t),
6434    >,
6435    #[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"]
6436    pub set_referrer: ::std::option::Option<
6437        unsafe extern "C" fn(
6438            self_: *mut _cef_request_t,
6439            referrer_url: *const cef_string_t,
6440            policy: cef_referrer_policy_t,
6441        ),
6442    >,
6443    #[doc = "\n Get the referrer URL.\n"]
6444    pub get_referrer_url: ::std::option::Option<
6445        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6446    >,
6447    #[doc = "\n Get the referrer policy.\n"]
6448    pub get_referrer_policy: ::std::option::Option<
6449        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_referrer_policy_t,
6450    >,
6451    #[doc = "\n Get the post data.\n"]
6452    pub get_post_data: ::std::option::Option<
6453        unsafe extern "C" fn(self_: *mut _cef_request_t) -> *mut _cef_post_data_t,
6454    >,
6455    #[doc = "\n Set the post data.\n"]
6456    pub set_post_data: ::std::option::Option<
6457        unsafe extern "C" fn(self_: *mut _cef_request_t, postData: *mut _cef_post_data_t),
6458    >,
6459    #[doc = "\n Get the header values. Will not include the Referer value if any.\n"]
6460    pub get_header_map: ::std::option::Option<
6461        unsafe extern "C" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t),
6462    >,
6463    #[doc = "\n Set the header values. If a Referer value exists in the header map it will\n be removed and ignored.\n"]
6464    pub set_header_map: ::std::option::Option<
6465        unsafe extern "C" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t),
6466    >,
6467    #[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"]
6468    pub get_header_by_name: ::std::option::Option<
6469        unsafe extern "C" fn(
6470            self_: *mut _cef_request_t,
6471            name: *const cef_string_t,
6472        ) -> cef_string_userfree_t,
6473    >,
6474    #[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"]
6475    pub set_header_by_name: ::std::option::Option<
6476        unsafe extern "C" fn(
6477            self_: *mut _cef_request_t,
6478            name: *const cef_string_t,
6479            value: *const cef_string_t,
6480            overwrite: ::std::os::raw::c_int,
6481        ),
6482    >,
6483    #[doc = "\n Set all values at one time.\n"]
6484    pub set: ::std::option::Option<
6485        unsafe extern "C" fn(
6486            self_: *mut _cef_request_t,
6487            url: *const cef_string_t,
6488            method: *const cef_string_t,
6489            postData: *mut _cef_post_data_t,
6490            headerMap: cef_string_multimap_t,
6491        ),
6492    >,
6493    #[doc = "\n Get the flags used in combination with cef_urlrequest_t. See\n cef_urlrequest_flags_t for supported values.\n"]
6494    pub get_flags: ::std::option::Option<
6495        unsafe extern "C" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int,
6496    >,
6497    #[doc = "\n Set the flags used in combination with cef_urlrequest_t.  See\n cef_urlrequest_flags_t for supported values.\n"]
6498    pub set_flags: ::std::option::Option<
6499        unsafe extern "C" fn(self_: *mut _cef_request_t, flags: ::std::os::raw::c_int),
6500    >,
6501    #[doc = "\n Get the URL to the first party for cookies used in combination with\n cef_urlrequest_t.\n"]
6502    pub get_first_party_for_cookies: ::std::option::Option<
6503        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t,
6504    >,
6505    #[doc = "\n Set the URL to the first party for cookies used in combination with\n cef_urlrequest_t.\n"]
6506    pub set_first_party_for_cookies: ::std::option::Option<
6507        unsafe extern "C" fn(self_: *mut _cef_request_t, url: *const cef_string_t),
6508    >,
6509    #[doc = "\n Get the resource type for this request. Only available in the browser\n process.\n"]
6510    pub get_resource_type: ::std::option::Option<
6511        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_resource_type_t,
6512    >,
6513    #[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"]
6514    pub get_transition_type: ::std::option::Option<
6515        unsafe extern "C" fn(self_: *mut _cef_request_t) -> cef_transition_type_t,
6516    >,
6517    #[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"]
6518    pub get_identifier:
6519        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_request_t) -> u64>,
6520}
6521#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6522const _: () = {
6523    ["Size of _cef_request_t"][::std::mem::size_of::<_cef_request_t>() - 216usize];
6524    ["Alignment of _cef_request_t"][::std::mem::align_of::<_cef_request_t>() - 8usize];
6525    ["Offset of field: _cef_request_t::base"]
6526        [::std::mem::offset_of!(_cef_request_t, base) - 0usize];
6527    ["Offset of field: _cef_request_t::is_read_only"]
6528        [::std::mem::offset_of!(_cef_request_t, is_read_only) - 40usize];
6529    ["Offset of field: _cef_request_t::get_url"]
6530        [::std::mem::offset_of!(_cef_request_t, get_url) - 48usize];
6531    ["Offset of field: _cef_request_t::set_url"]
6532        [::std::mem::offset_of!(_cef_request_t, set_url) - 56usize];
6533    ["Offset of field: _cef_request_t::get_method"]
6534        [::std::mem::offset_of!(_cef_request_t, get_method) - 64usize];
6535    ["Offset of field: _cef_request_t::set_method"]
6536        [::std::mem::offset_of!(_cef_request_t, set_method) - 72usize];
6537    ["Offset of field: _cef_request_t::set_referrer"]
6538        [::std::mem::offset_of!(_cef_request_t, set_referrer) - 80usize];
6539    ["Offset of field: _cef_request_t::get_referrer_url"]
6540        [::std::mem::offset_of!(_cef_request_t, get_referrer_url) - 88usize];
6541    ["Offset of field: _cef_request_t::get_referrer_policy"]
6542        [::std::mem::offset_of!(_cef_request_t, get_referrer_policy) - 96usize];
6543    ["Offset of field: _cef_request_t::get_post_data"]
6544        [::std::mem::offset_of!(_cef_request_t, get_post_data) - 104usize];
6545    ["Offset of field: _cef_request_t::set_post_data"]
6546        [::std::mem::offset_of!(_cef_request_t, set_post_data) - 112usize];
6547    ["Offset of field: _cef_request_t::get_header_map"]
6548        [::std::mem::offset_of!(_cef_request_t, get_header_map) - 120usize];
6549    ["Offset of field: _cef_request_t::set_header_map"]
6550        [::std::mem::offset_of!(_cef_request_t, set_header_map) - 128usize];
6551    ["Offset of field: _cef_request_t::get_header_by_name"]
6552        [::std::mem::offset_of!(_cef_request_t, get_header_by_name) - 136usize];
6553    ["Offset of field: _cef_request_t::set_header_by_name"]
6554        [::std::mem::offset_of!(_cef_request_t, set_header_by_name) - 144usize];
6555    ["Offset of field: _cef_request_t::set"]
6556        [::std::mem::offset_of!(_cef_request_t, set) - 152usize];
6557    ["Offset of field: _cef_request_t::get_flags"]
6558        [::std::mem::offset_of!(_cef_request_t, get_flags) - 160usize];
6559    ["Offset of field: _cef_request_t::set_flags"]
6560        [::std::mem::offset_of!(_cef_request_t, set_flags) - 168usize];
6561    ["Offset of field: _cef_request_t::get_first_party_for_cookies"]
6562        [::std::mem::offset_of!(_cef_request_t, get_first_party_for_cookies) - 176usize];
6563    ["Offset of field: _cef_request_t::set_first_party_for_cookies"]
6564        [::std::mem::offset_of!(_cef_request_t, set_first_party_for_cookies) - 184usize];
6565    ["Offset of field: _cef_request_t::get_resource_type"]
6566        [::std::mem::offset_of!(_cef_request_t, get_resource_type) - 192usize];
6567    ["Offset of field: _cef_request_t::get_transition_type"]
6568        [::std::mem::offset_of!(_cef_request_t, get_transition_type) - 200usize];
6569    ["Offset of field: _cef_request_t::get_identifier"]
6570        [::std::mem::offset_of!(_cef_request_t, get_identifier) - 208usize];
6571};
6572#[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"]
6573pub type cef_request_t = _cef_request_t;
6574unsafe extern "C" {
6575    #[doc = "\n Create a new cef_request_t object.\n"]
6576    pub fn cef_request_create() -> *mut cef_request_t;
6577}
6578#[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"]
6579#[repr(C)]
6580#[derive(Debug, Copy, Clone)]
6581pub struct _cef_post_data_t {
6582    #[doc = "\n Base structure.\n"]
6583    pub base: cef_base_ref_counted_t,
6584    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6585    pub is_read_only: ::std::option::Option<
6586        unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int,
6587    >,
6588    #[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"]
6589    pub has_excluded_elements: ::std::option::Option<
6590        unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int,
6591    >,
6592    #[doc = "\n Returns the number of existing post data elements.\n"]
6593    pub get_element_count:
6594        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t) -> usize>,
6595    #[doc = "\n Retrieve the post data elements.\n"]
6596    pub get_elements: ::std::option::Option<
6597        unsafe extern "C" fn(
6598            self_: *mut _cef_post_data_t,
6599            elementsCount: *mut usize,
6600            elements: *mut *mut _cef_post_data_element_t,
6601        ),
6602    >,
6603    #[doc = "\n Remove the specified post data element.  Returns true (1) if the removal\n succeeds.\n"]
6604    pub remove_element: ::std::option::Option<
6605        unsafe extern "C" fn(
6606            self_: *mut _cef_post_data_t,
6607            element: *mut _cef_post_data_element_t,
6608        ) -> ::std::os::raw::c_int,
6609    >,
6610    #[doc = "\n Add the specified post data element.  Returns true (1) if the add\n succeeds.\n"]
6611    pub add_element: ::std::option::Option<
6612        unsafe extern "C" fn(
6613            self_: *mut _cef_post_data_t,
6614            element: *mut _cef_post_data_element_t,
6615        ) -> ::std::os::raw::c_int,
6616    >,
6617    #[doc = "\n Remove all existing post data elements.\n"]
6618    pub remove_elements: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_t)>,
6619}
6620#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6621const _: () = {
6622    ["Size of _cef_post_data_t"][::std::mem::size_of::<_cef_post_data_t>() - 96usize];
6623    ["Alignment of _cef_post_data_t"][::std::mem::align_of::<_cef_post_data_t>() - 8usize];
6624    ["Offset of field: _cef_post_data_t::base"]
6625        [::std::mem::offset_of!(_cef_post_data_t, base) - 0usize];
6626    ["Offset of field: _cef_post_data_t::is_read_only"]
6627        [::std::mem::offset_of!(_cef_post_data_t, is_read_only) - 40usize];
6628    ["Offset of field: _cef_post_data_t::has_excluded_elements"]
6629        [::std::mem::offset_of!(_cef_post_data_t, has_excluded_elements) - 48usize];
6630    ["Offset of field: _cef_post_data_t::get_element_count"]
6631        [::std::mem::offset_of!(_cef_post_data_t, get_element_count) - 56usize];
6632    ["Offset of field: _cef_post_data_t::get_elements"]
6633        [::std::mem::offset_of!(_cef_post_data_t, get_elements) - 64usize];
6634    ["Offset of field: _cef_post_data_t::remove_element"]
6635        [::std::mem::offset_of!(_cef_post_data_t, remove_element) - 72usize];
6636    ["Offset of field: _cef_post_data_t::add_element"]
6637        [::std::mem::offset_of!(_cef_post_data_t, add_element) - 80usize];
6638    ["Offset of field: _cef_post_data_t::remove_elements"]
6639        [::std::mem::offset_of!(_cef_post_data_t, remove_elements) - 88usize];
6640};
6641#[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"]
6642pub type cef_post_data_t = _cef_post_data_t;
6643unsafe extern "C" {
6644    #[doc = "\n Create a new cef_post_data_t object.\n"]
6645    pub fn cef_post_data_create() -> *mut cef_post_data_t;
6646}
6647#[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"]
6648#[repr(C)]
6649#[derive(Debug, Copy, Clone)]
6650pub struct _cef_post_data_element_t {
6651    #[doc = "\n Base structure.\n"]
6652    pub base: cef_base_ref_counted_t,
6653    #[doc = "\n Returns true (1) if this object is read-only.\n"]
6654    pub is_read_only: ::std::option::Option<
6655        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> ::std::os::raw::c_int,
6656    >,
6657    #[doc = "\n Remove all contents from the post data element.\n"]
6658    pub set_to_empty:
6659        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_element_t)>,
6660    #[doc = "\n The post data element will represent a file.\n"]
6661    pub set_to_file: ::std::option::Option<
6662        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t, fileName: *const cef_string_t),
6663    >,
6664    #[doc = "\n The post data element will represent bytes.  The bytes passed in will be\n copied.\n"]
6665    pub set_to_bytes: ::std::option::Option<
6666        unsafe extern "C" fn(
6667            self_: *mut _cef_post_data_element_t,
6668            size: usize,
6669            bytes: *const ::std::os::raw::c_void,
6670        ),
6671    >,
6672    #[doc = "\n Return the type of this post data element.\n"]
6673    pub get_type: ::std::option::Option<
6674        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> cef_postdataelement_type_t,
6675    >,
6676    #[doc = "\n Return the file name.\n"]
6677    pub get_file: ::std::option::Option<
6678        unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> cef_string_userfree_t,
6679    >,
6680    #[doc = "\n Return the number of bytes.\n"]
6681    pub get_bytes_count:
6682        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_post_data_element_t) -> usize>,
6683    #[doc = "\n Read up to |size| bytes into |bytes| and return the number of bytes\n actually read.\n"]
6684    pub get_bytes: ::std::option::Option<
6685        unsafe extern "C" fn(
6686            self_: *mut _cef_post_data_element_t,
6687            size: usize,
6688            bytes: *mut ::std::os::raw::c_void,
6689        ) -> usize,
6690    >,
6691}
6692#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6693const _: () = {
6694    ["Size of _cef_post_data_element_t"]
6695        [::std::mem::size_of::<_cef_post_data_element_t>() - 104usize];
6696    ["Alignment of _cef_post_data_element_t"]
6697        [::std::mem::align_of::<_cef_post_data_element_t>() - 8usize];
6698    ["Offset of field: _cef_post_data_element_t::base"]
6699        [::std::mem::offset_of!(_cef_post_data_element_t, base) - 0usize];
6700    ["Offset of field: _cef_post_data_element_t::is_read_only"]
6701        [::std::mem::offset_of!(_cef_post_data_element_t, is_read_only) - 40usize];
6702    ["Offset of field: _cef_post_data_element_t::set_to_empty"]
6703        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_empty) - 48usize];
6704    ["Offset of field: _cef_post_data_element_t::set_to_file"]
6705        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_file) - 56usize];
6706    ["Offset of field: _cef_post_data_element_t::set_to_bytes"]
6707        [::std::mem::offset_of!(_cef_post_data_element_t, set_to_bytes) - 64usize];
6708    ["Offset of field: _cef_post_data_element_t::get_type"]
6709        [::std::mem::offset_of!(_cef_post_data_element_t, get_type) - 72usize];
6710    ["Offset of field: _cef_post_data_element_t::get_file"]
6711        [::std::mem::offset_of!(_cef_post_data_element_t, get_file) - 80usize];
6712    ["Offset of field: _cef_post_data_element_t::get_bytes_count"]
6713        [::std::mem::offset_of!(_cef_post_data_element_t, get_bytes_count) - 88usize];
6714    ["Offset of field: _cef_post_data_element_t::get_bytes"]
6715        [::std::mem::offset_of!(_cef_post_data_element_t, get_bytes) - 96usize];
6716};
6717#[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"]
6718pub type cef_post_data_element_t = _cef_post_data_element_t;
6719unsafe extern "C" {
6720    #[doc = "\n Create a new cef_post_data_element_t object.\n"]
6721    pub fn cef_post_data_element_create() -> *mut cef_post_data_element_t;
6722}
6723#[doc = "\n Implement this structure to receive string values asynchronously.\n\n NOTE: This struct is allocated client-side.\n"]
6724#[repr(C)]
6725#[derive(Debug, Copy, Clone)]
6726pub struct _cef_string_visitor_t {
6727    #[doc = "\n Base structure.\n"]
6728    pub base: cef_base_ref_counted_t,
6729    #[doc = "\n Method that will be executed.\n"]
6730    pub visit: ::std::option::Option<
6731        unsafe extern "C" fn(self_: *mut _cef_string_visitor_t, string: *const cef_string_t),
6732    >,
6733}
6734#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6735const _: () = {
6736    ["Size of _cef_string_visitor_t"][::std::mem::size_of::<_cef_string_visitor_t>() - 48usize];
6737    ["Alignment of _cef_string_visitor_t"]
6738        [::std::mem::align_of::<_cef_string_visitor_t>() - 8usize];
6739    ["Offset of field: _cef_string_visitor_t::base"]
6740        [::std::mem::offset_of!(_cef_string_visitor_t, base) - 0usize];
6741    ["Offset of field: _cef_string_visitor_t::visit"]
6742        [::std::mem::offset_of!(_cef_string_visitor_t, visit) - 40usize];
6743};
6744#[doc = "\n Implement this structure to receive string values asynchronously.\n\n NOTE: This struct is allocated client-side.\n"]
6745pub type cef_string_visitor_t = _cef_string_visitor_t;
6746#[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"]
6747#[repr(C)]
6748#[derive(Debug, Copy, Clone)]
6749pub struct _cef_frame_t {
6750    #[doc = "\n Base structure.\n"]
6751    pub base: cef_base_ref_counted_t,
6752    #[doc = "\n True if this object is currently attached to a valid frame.\n"]
6753    pub is_valid: ::std::option::Option<
6754        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6755    >,
6756    #[doc = "\n Execute undo in this frame.\n"]
6757    pub undo: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6758    #[doc = "\n Execute redo in this frame.\n"]
6759    pub redo: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6760    #[doc = "\n Execute cut in this frame.\n"]
6761    pub cut: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6762    #[doc = "\n Execute copy in this frame.\n"]
6763    pub copy: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6764    #[doc = "\n Execute paste in this frame.\n"]
6765    pub paste: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6766    #[doc = "\n Execute paste and match style in this frame.\n"]
6767    pub paste_and_match_style:
6768        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6769    #[doc = "\n Execute delete in this frame.\n"]
6770    pub del: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6771    #[doc = "\n Execute select all in this frame.\n"]
6772    pub select_all: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6773    #[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"]
6774    pub view_source: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t)>,
6775    #[doc = "\n Retrieve this frame's HTML source as a string sent to the specified\n visitor.\n"]
6776    pub get_source: ::std::option::Option<
6777        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t),
6778    >,
6779    #[doc = "\n Retrieve this frame's display text as a string sent to the specified\n visitor.\n"]
6780    pub get_text: ::std::option::Option<
6781        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t),
6782    >,
6783    #[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"]
6784    pub load_request: ::std::option::Option<
6785        unsafe extern "C" fn(self_: *mut _cef_frame_t, request: *mut _cef_request_t),
6786    >,
6787    #[doc = "\n Load the specified |url|.\n"]
6788    pub load_url: ::std::option::Option<
6789        unsafe extern "C" fn(self_: *mut _cef_frame_t, url: *const cef_string_t),
6790    >,
6791    #[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"]
6792    pub execute_java_script: ::std::option::Option<
6793        unsafe extern "C" fn(
6794            self_: *mut _cef_frame_t,
6795            code: *const cef_string_t,
6796            script_url: *const cef_string_t,
6797            start_line: ::std::os::raw::c_int,
6798        ),
6799    >,
6800    #[doc = "\n Returns true (1) if this is the main (top-level) frame.\n"]
6801    pub is_main: ::std::option::Option<
6802        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6803    >,
6804    #[doc = "\n Returns true (1) if this is the focused frame.\n"]
6805    pub is_focused: ::std::option::Option<
6806        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int,
6807    >,
6808    #[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"]
6809    pub get_name: ::std::option::Option<
6810        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6811    >,
6812    #[doc = "\n Returns the globally unique identifier for this frame or NULL if the\n underlying frame does not yet exist.\n"]
6813    pub get_identifier: ::std::option::Option<
6814        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6815    >,
6816    #[doc = "\n Returns the parent of this frame or NULL if this is the main (top-level)\n frame.\n"]
6817    pub get_parent:
6818        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_frame_t>,
6819    #[doc = "\n Returns the URL currently loaded in this frame.\n"]
6820    pub get_url: ::std::option::Option<
6821        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t,
6822    >,
6823    #[doc = "\n Returns the browser that this frame belongs to.\n"]
6824    pub get_browser: ::std::option::Option<
6825        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_browser_t,
6826    >,
6827    #[doc = "\n Get the V8 context associated with the frame. This function can only be\n called from the render process.\n"]
6828    pub get_v8_context: ::std::option::Option<
6829        unsafe extern "C" fn(self_: *mut _cef_frame_t) -> *mut _cef_v8_context_t,
6830    >,
6831    #[doc = "\n Visit the DOM document. This function can only be called from the render\n process.\n"]
6832    pub visit_dom: ::std::option::Option<
6833        unsafe extern "C" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_domvisitor_t),
6834    >,
6835    #[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"]
6836    pub create_urlrequest: ::std::option::Option<
6837        unsafe extern "C" fn(
6838            self_: *mut _cef_frame_t,
6839            request: *mut _cef_request_t,
6840            client: *mut _cef_urlrequest_client_t,
6841        ) -> *mut _cef_urlrequest_t,
6842    >,
6843    #[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"]
6844    pub send_process_message: ::std::option::Option<
6845        unsafe extern "C" fn(
6846            self_: *mut _cef_frame_t,
6847            target_process: cef_process_id_t,
6848            message: *mut _cef_process_message_t,
6849        ),
6850    >,
6851}
6852#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6853const _: () = {
6854    ["Size of _cef_frame_t"][::std::mem::size_of::<_cef_frame_t>() - 248usize];
6855    ["Alignment of _cef_frame_t"][::std::mem::align_of::<_cef_frame_t>() - 8usize];
6856    ["Offset of field: _cef_frame_t::base"][::std::mem::offset_of!(_cef_frame_t, base) - 0usize];
6857    ["Offset of field: _cef_frame_t::is_valid"]
6858        [::std::mem::offset_of!(_cef_frame_t, is_valid) - 40usize];
6859    ["Offset of field: _cef_frame_t::undo"][::std::mem::offset_of!(_cef_frame_t, undo) - 48usize];
6860    ["Offset of field: _cef_frame_t::redo"][::std::mem::offset_of!(_cef_frame_t, redo) - 56usize];
6861    ["Offset of field: _cef_frame_t::cut"][::std::mem::offset_of!(_cef_frame_t, cut) - 64usize];
6862    ["Offset of field: _cef_frame_t::copy"][::std::mem::offset_of!(_cef_frame_t, copy) - 72usize];
6863    ["Offset of field: _cef_frame_t::paste"][::std::mem::offset_of!(_cef_frame_t, paste) - 80usize];
6864    ["Offset of field: _cef_frame_t::paste_and_match_style"]
6865        [::std::mem::offset_of!(_cef_frame_t, paste_and_match_style) - 88usize];
6866    ["Offset of field: _cef_frame_t::del"][::std::mem::offset_of!(_cef_frame_t, del) - 96usize];
6867    ["Offset of field: _cef_frame_t::select_all"]
6868        [::std::mem::offset_of!(_cef_frame_t, select_all) - 104usize];
6869    ["Offset of field: _cef_frame_t::view_source"]
6870        [::std::mem::offset_of!(_cef_frame_t, view_source) - 112usize];
6871    ["Offset of field: _cef_frame_t::get_source"]
6872        [::std::mem::offset_of!(_cef_frame_t, get_source) - 120usize];
6873    ["Offset of field: _cef_frame_t::get_text"]
6874        [::std::mem::offset_of!(_cef_frame_t, get_text) - 128usize];
6875    ["Offset of field: _cef_frame_t::load_request"]
6876        [::std::mem::offset_of!(_cef_frame_t, load_request) - 136usize];
6877    ["Offset of field: _cef_frame_t::load_url"]
6878        [::std::mem::offset_of!(_cef_frame_t, load_url) - 144usize];
6879    ["Offset of field: _cef_frame_t::execute_java_script"]
6880        [::std::mem::offset_of!(_cef_frame_t, execute_java_script) - 152usize];
6881    ["Offset of field: _cef_frame_t::is_main"]
6882        [::std::mem::offset_of!(_cef_frame_t, is_main) - 160usize];
6883    ["Offset of field: _cef_frame_t::is_focused"]
6884        [::std::mem::offset_of!(_cef_frame_t, is_focused) - 168usize];
6885    ["Offset of field: _cef_frame_t::get_name"]
6886        [::std::mem::offset_of!(_cef_frame_t, get_name) - 176usize];
6887    ["Offset of field: _cef_frame_t::get_identifier"]
6888        [::std::mem::offset_of!(_cef_frame_t, get_identifier) - 184usize];
6889    ["Offset of field: _cef_frame_t::get_parent"]
6890        [::std::mem::offset_of!(_cef_frame_t, get_parent) - 192usize];
6891    ["Offset of field: _cef_frame_t::get_url"]
6892        [::std::mem::offset_of!(_cef_frame_t, get_url) - 200usize];
6893    ["Offset of field: _cef_frame_t::get_browser"]
6894        [::std::mem::offset_of!(_cef_frame_t, get_browser) - 208usize];
6895    ["Offset of field: _cef_frame_t::get_v8_context"]
6896        [::std::mem::offset_of!(_cef_frame_t, get_v8_context) - 216usize];
6897    ["Offset of field: _cef_frame_t::visit_dom"]
6898        [::std::mem::offset_of!(_cef_frame_t, visit_dom) - 224usize];
6899    ["Offset of field: _cef_frame_t::create_urlrequest"]
6900        [::std::mem::offset_of!(_cef_frame_t, create_urlrequest) - 232usize];
6901    ["Offset of field: _cef_frame_t::send_process_message"]
6902        [::std::mem::offset_of!(_cef_frame_t, send_process_message) - 240usize];
6903};
6904#[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"]
6905pub type cef_frame_t = _cef_frame_t;
6906#[doc = "\n Structure representing the issuer or subject field of an X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6907#[repr(C)]
6908#[derive(Debug, Copy, Clone)]
6909pub struct _cef_x509_cert_principal_t {
6910    #[doc = "\n Base structure.\n"]
6911    pub base: cef_base_ref_counted_t,
6912    #[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"]
6913    pub get_display_name: ::std::option::Option<
6914        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6915    >,
6916    #[doc = "\n Returns the common name.\n"]
6917    pub get_common_name: ::std::option::Option<
6918        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6919    >,
6920    #[doc = "\n Returns the locality name.\n"]
6921    pub get_locality_name: ::std::option::Option<
6922        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6923    >,
6924    #[doc = "\n Returns the state or province name.\n"]
6925    pub get_state_or_province_name: ::std::option::Option<
6926        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6927    >,
6928    #[doc = "\n Returns the country name.\n"]
6929    pub get_country_name: ::std::option::Option<
6930        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t) -> cef_string_userfree_t,
6931    >,
6932    #[doc = "\n Retrieve the list of organization names.\n"]
6933    pub get_organization_names: ::std::option::Option<
6934        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t, names: cef_string_list_t),
6935    >,
6936    #[doc = "\n Retrieve the list of organization unit names.\n"]
6937    pub get_organization_unit_names: ::std::option::Option<
6938        unsafe extern "C" fn(self_: *mut _cef_x509_cert_principal_t, names: cef_string_list_t),
6939    >,
6940}
6941#[allow(clippy::unnecessary_operation, clippy::identity_op)]
6942const _: () = {
6943    ["Size of _cef_x509_cert_principal_t"]
6944        [::std::mem::size_of::<_cef_x509_cert_principal_t>() - 96usize];
6945    ["Alignment of _cef_x509_cert_principal_t"]
6946        [::std::mem::align_of::<_cef_x509_cert_principal_t>() - 8usize];
6947    ["Offset of field: _cef_x509_cert_principal_t::base"]
6948        [::std::mem::offset_of!(_cef_x509_cert_principal_t, base) - 0usize];
6949    ["Offset of field: _cef_x509_cert_principal_t::get_display_name"]
6950        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_display_name) - 40usize];
6951    ["Offset of field: _cef_x509_cert_principal_t::get_common_name"]
6952        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_common_name) - 48usize];
6953    ["Offset of field: _cef_x509_cert_principal_t::get_locality_name"]
6954        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_locality_name) - 56usize];
6955    ["Offset of field: _cef_x509_cert_principal_t::get_state_or_province_name"]
6956        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_state_or_province_name) - 64usize];
6957    ["Offset of field: _cef_x509_cert_principal_t::get_country_name"]
6958        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_country_name) - 72usize];
6959    ["Offset of field: _cef_x509_cert_principal_t::get_organization_names"]
6960        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_organization_names) - 80usize];
6961    ["Offset of field: _cef_x509_cert_principal_t::get_organization_unit_names"]
6962        [::std::mem::offset_of!(_cef_x509_cert_principal_t, get_organization_unit_names) - 88usize];
6963};
6964#[doc = "\n Structure representing the issuer or subject field of an X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6965pub type cef_x509_cert_principal_t = _cef_x509_cert_principal_t;
6966#[doc = "\n Structure representing a X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
6967#[repr(C)]
6968#[derive(Debug, Copy, Clone)]
6969pub struct _cef_x509_certificate_t {
6970    #[doc = "\n Base structure.\n"]
6971    pub base: cef_base_ref_counted_t,
6972    #[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"]
6973    pub get_subject: ::std::option::Option<
6974        unsafe extern "C" fn(
6975            self_: *mut _cef_x509_certificate_t,
6976        ) -> *mut _cef_x509_cert_principal_t,
6977    >,
6978    #[doc = "\n Returns the issuer of the X.509 certificate.\n"]
6979    pub get_issuer: ::std::option::Option<
6980        unsafe extern "C" fn(
6981            self_: *mut _cef_x509_certificate_t,
6982        ) -> *mut _cef_x509_cert_principal_t,
6983    >,
6984    #[doc = "\n Returns the DER encoded serial number for the X.509 certificate. The value\n possibly includes a leading 00 byte.\n"]
6985    pub get_serial_number: ::std::option::Option<
6986        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
6987    >,
6988    #[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"]
6989    pub get_valid_start: ::std::option::Option<
6990        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t,
6991    >,
6992    #[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"]
6993    pub get_valid_expiry: ::std::option::Option<
6994        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> cef_basetime_t,
6995    >,
6996    #[doc = "\n Returns the DER encoded data for the X.509 certificate.\n"]
6997    pub get_derencoded: ::std::option::Option<
6998        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
6999    >,
7000    #[doc = "\n Returns the PEM encoded data for the X.509 certificate.\n"]
7001    pub get_pemencoded: ::std::option::Option<
7002        unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> *mut _cef_binary_value_t,
7003    >,
7004    #[doc = "\n Returns the number of certificates in the issuer chain. If 0, the\n certificate is self-signed.\n"]
7005    pub get_issuer_chain_size:
7006        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_x509_certificate_t) -> usize>,
7007    #[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"]
7008    pub get_derencoded_issuer_chain: ::std::option::Option<
7009        unsafe extern "C" fn(
7010            self_: *mut _cef_x509_certificate_t,
7011            chainCount: *mut usize,
7012            chain: *mut *mut _cef_binary_value_t,
7013        ),
7014    >,
7015    #[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"]
7016    pub get_pemencoded_issuer_chain: ::std::option::Option<
7017        unsafe extern "C" fn(
7018            self_: *mut _cef_x509_certificate_t,
7019            chainCount: *mut usize,
7020            chain: *mut *mut _cef_binary_value_t,
7021        ),
7022    >,
7023}
7024#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7025const _: () = {
7026    ["Size of _cef_x509_certificate_t"]
7027        [::std::mem::size_of::<_cef_x509_certificate_t>() - 120usize];
7028    ["Alignment of _cef_x509_certificate_t"]
7029        [::std::mem::align_of::<_cef_x509_certificate_t>() - 8usize];
7030    ["Offset of field: _cef_x509_certificate_t::base"]
7031        [::std::mem::offset_of!(_cef_x509_certificate_t, base) - 0usize];
7032    ["Offset of field: _cef_x509_certificate_t::get_subject"]
7033        [::std::mem::offset_of!(_cef_x509_certificate_t, get_subject) - 40usize];
7034    ["Offset of field: _cef_x509_certificate_t::get_issuer"]
7035        [::std::mem::offset_of!(_cef_x509_certificate_t, get_issuer) - 48usize];
7036    ["Offset of field: _cef_x509_certificate_t::get_serial_number"]
7037        [::std::mem::offset_of!(_cef_x509_certificate_t, get_serial_number) - 56usize];
7038    ["Offset of field: _cef_x509_certificate_t::get_valid_start"]
7039        [::std::mem::offset_of!(_cef_x509_certificate_t, get_valid_start) - 64usize];
7040    ["Offset of field: _cef_x509_certificate_t::get_valid_expiry"]
7041        [::std::mem::offset_of!(_cef_x509_certificate_t, get_valid_expiry) - 72usize];
7042    ["Offset of field: _cef_x509_certificate_t::get_derencoded"]
7043        [::std::mem::offset_of!(_cef_x509_certificate_t, get_derencoded) - 80usize];
7044    ["Offset of field: _cef_x509_certificate_t::get_pemencoded"]
7045        [::std::mem::offset_of!(_cef_x509_certificate_t, get_pemencoded) - 88usize];
7046    ["Offset of field: _cef_x509_certificate_t::get_issuer_chain_size"]
7047        [::std::mem::offset_of!(_cef_x509_certificate_t, get_issuer_chain_size) - 96usize];
7048    ["Offset of field: _cef_x509_certificate_t::get_derencoded_issuer_chain"]
7049        [::std::mem::offset_of!(_cef_x509_certificate_t, get_derencoded_issuer_chain) - 104usize];
7050    ["Offset of field: _cef_x509_certificate_t::get_pemencoded_issuer_chain"]
7051        [::std::mem::offset_of!(_cef_x509_certificate_t, get_pemencoded_issuer_chain) - 112usize];
7052};
7053#[doc = "\n Structure representing a X.509 certificate.\n\n NOTE: This struct is allocated DLL-side.\n"]
7054pub type cef_x509_certificate_t = _cef_x509_certificate_t;
7055#[doc = "\n Structure representing the SSL information for a navigation entry.\n\n NOTE: This struct is allocated DLL-side.\n"]
7056#[repr(C)]
7057#[derive(Debug, Copy, Clone)]
7058pub struct _cef_sslstatus_t {
7059    #[doc = "\n Base structure.\n"]
7060    pub base: cef_base_ref_counted_t,
7061    #[doc = "\n Returns true (1) if the status is related to a secure SSL/TLS connection.\n"]
7062    pub is_secure_connection: ::std::option::Option<
7063        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> ::std::os::raw::c_int,
7064    >,
7065    #[doc = "\n Returns a bitmask containing any and all problems verifying the server\n certificate.\n"]
7066    pub get_cert_status: ::std::option::Option<
7067        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_cert_status_t,
7068    >,
7069    #[doc = "\n Returns the SSL version used for the SSL connection.\n"]
7070    pub get_sslversion: ::std::option::Option<
7071        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_version_t,
7072    >,
7073    #[doc = "\n Returns a bitmask containing the page security content status.\n"]
7074    pub get_content_status: ::std::option::Option<
7075        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_content_status_t,
7076    >,
7077    #[doc = "\n Returns the X.509 certificate.\n"]
7078    pub get_x509_certificate: ::std::option::Option<
7079        unsafe extern "C" fn(self_: *mut _cef_sslstatus_t) -> *mut _cef_x509_certificate_t,
7080    >,
7081}
7082#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7083const _: () = {
7084    ["Size of _cef_sslstatus_t"][::std::mem::size_of::<_cef_sslstatus_t>() - 80usize];
7085    ["Alignment of _cef_sslstatus_t"][::std::mem::align_of::<_cef_sslstatus_t>() - 8usize];
7086    ["Offset of field: _cef_sslstatus_t::base"]
7087        [::std::mem::offset_of!(_cef_sslstatus_t, base) - 0usize];
7088    ["Offset of field: _cef_sslstatus_t::is_secure_connection"]
7089        [::std::mem::offset_of!(_cef_sslstatus_t, is_secure_connection) - 40usize];
7090    ["Offset of field: _cef_sslstatus_t::get_cert_status"]
7091        [::std::mem::offset_of!(_cef_sslstatus_t, get_cert_status) - 48usize];
7092    ["Offset of field: _cef_sslstatus_t::get_sslversion"]
7093        [::std::mem::offset_of!(_cef_sslstatus_t, get_sslversion) - 56usize];
7094    ["Offset of field: _cef_sslstatus_t::get_content_status"]
7095        [::std::mem::offset_of!(_cef_sslstatus_t, get_content_status) - 64usize];
7096    ["Offset of field: _cef_sslstatus_t::get_x509_certificate"]
7097        [::std::mem::offset_of!(_cef_sslstatus_t, get_x509_certificate) - 72usize];
7098};
7099#[doc = "\n Structure representing the SSL information for a navigation entry.\n\n NOTE: This struct is allocated DLL-side.\n"]
7100pub type cef_sslstatus_t = _cef_sslstatus_t;
7101#[doc = "\n Structure used to represent an entry in navigation history.\n\n NOTE: This struct is allocated DLL-side.\n"]
7102#[repr(C)]
7103#[derive(Debug, Copy, Clone)]
7104pub struct _cef_navigation_entry_t {
7105    #[doc = "\n Base structure.\n"]
7106    pub base: cef_base_ref_counted_t,
7107    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
7108    pub is_valid: ::std::option::Option<
7109        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
7110    >,
7111    #[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"]
7112    pub get_url: ::std::option::Option<
7113        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
7114    >,
7115    #[doc = "\n Returns a display-friendly version of the URL.\n"]
7116    pub get_display_url: ::std::option::Option<
7117        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
7118    >,
7119    #[doc = "\n Returns the original URL that was entered by the user before any\n redirects.\n"]
7120    pub get_original_url: ::std::option::Option<
7121        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
7122    >,
7123    #[doc = "\n Returns the title set by the page. This value may be NULL.\n"]
7124    pub get_title: ::std::option::Option<
7125        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t,
7126    >,
7127    #[doc = "\n Returns the transition type which indicates what the user did to move to\n this page from the previous page.\n"]
7128    pub get_transition_type: ::std::option::Option<
7129        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_transition_type_t,
7130    >,
7131    #[doc = "\n Returns true (1) if this navigation includes post data.\n"]
7132    pub has_post_data: ::std::option::Option<
7133        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
7134    >,
7135    #[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"]
7136    pub get_completion_time: ::std::option::Option<
7137        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> cef_basetime_t,
7138    >,
7139    #[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"]
7140    pub get_http_status_code: ::std::option::Option<
7141        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int,
7142    >,
7143    #[doc = "\n Returns the SSL information for this navigation entry.\n"]
7144    pub get_sslstatus: ::std::option::Option<
7145        unsafe extern "C" fn(self_: *mut _cef_navigation_entry_t) -> *mut _cef_sslstatus_t,
7146    >,
7147}
7148#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7149const _: () = {
7150    ["Size of _cef_navigation_entry_t"]
7151        [::std::mem::size_of::<_cef_navigation_entry_t>() - 120usize];
7152    ["Alignment of _cef_navigation_entry_t"]
7153        [::std::mem::align_of::<_cef_navigation_entry_t>() - 8usize];
7154    ["Offset of field: _cef_navigation_entry_t::base"]
7155        [::std::mem::offset_of!(_cef_navigation_entry_t, base) - 0usize];
7156    ["Offset of field: _cef_navigation_entry_t::is_valid"]
7157        [::std::mem::offset_of!(_cef_navigation_entry_t, is_valid) - 40usize];
7158    ["Offset of field: _cef_navigation_entry_t::get_url"]
7159        [::std::mem::offset_of!(_cef_navigation_entry_t, get_url) - 48usize];
7160    ["Offset of field: _cef_navigation_entry_t::get_display_url"]
7161        [::std::mem::offset_of!(_cef_navigation_entry_t, get_display_url) - 56usize];
7162    ["Offset of field: _cef_navigation_entry_t::get_original_url"]
7163        [::std::mem::offset_of!(_cef_navigation_entry_t, get_original_url) - 64usize];
7164    ["Offset of field: _cef_navigation_entry_t::get_title"]
7165        [::std::mem::offset_of!(_cef_navigation_entry_t, get_title) - 72usize];
7166    ["Offset of field: _cef_navigation_entry_t::get_transition_type"]
7167        [::std::mem::offset_of!(_cef_navigation_entry_t, get_transition_type) - 80usize];
7168    ["Offset of field: _cef_navigation_entry_t::has_post_data"]
7169        [::std::mem::offset_of!(_cef_navigation_entry_t, has_post_data) - 88usize];
7170    ["Offset of field: _cef_navigation_entry_t::get_completion_time"]
7171        [::std::mem::offset_of!(_cef_navigation_entry_t, get_completion_time) - 96usize];
7172    ["Offset of field: _cef_navigation_entry_t::get_http_status_code"]
7173        [::std::mem::offset_of!(_cef_navigation_entry_t, get_http_status_code) - 104usize];
7174    ["Offset of field: _cef_navigation_entry_t::get_sslstatus"]
7175        [::std::mem::offset_of!(_cef_navigation_entry_t, get_sslstatus) - 112usize];
7176};
7177#[doc = "\n Structure used to represent an entry in navigation history.\n\n NOTE: This struct is allocated DLL-side.\n"]
7178pub type cef_navigation_entry_t = _cef_navigation_entry_t;
7179#[doc = "\n Generic callback structure used for managing the lifespan of a registration.\n\n NOTE: This struct is allocated DLL-side.\n"]
7180#[repr(C)]
7181#[derive(Debug, Copy, Clone)]
7182pub struct _cef_registration_t {
7183    #[doc = "\n Base structure.\n"]
7184    pub base: cef_base_ref_counted_t,
7185}
7186#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7187const _: () = {
7188    ["Size of _cef_registration_t"][::std::mem::size_of::<_cef_registration_t>() - 40usize];
7189    ["Alignment of _cef_registration_t"][::std::mem::align_of::<_cef_registration_t>() - 8usize];
7190    ["Offset of field: _cef_registration_t::base"]
7191        [::std::mem::offset_of!(_cef_registration_t, base) - 0usize];
7192};
7193#[doc = "\n Generic callback structure used for managing the lifespan of a registration.\n\n NOTE: This struct is allocated DLL-side.\n"]
7194pub type cef_registration_t = _cef_registration_t;
7195#[doc = "\n Generic callback structure used for asynchronous continuation.\n\n NOTE: This struct is allocated DLL-side.\n"]
7196#[repr(C)]
7197#[derive(Debug, Copy, Clone)]
7198pub struct _cef_callback_t {
7199    #[doc = "\n Base structure.\n"]
7200    pub base: cef_base_ref_counted_t,
7201    #[doc = "\n Continue processing.\n"]
7202    pub cont: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_callback_t)>,
7203    #[doc = "\n Cancel processing.\n"]
7204    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_callback_t)>,
7205}
7206#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7207const _: () = {
7208    ["Size of _cef_callback_t"][::std::mem::size_of::<_cef_callback_t>() - 56usize];
7209    ["Alignment of _cef_callback_t"][::std::mem::align_of::<_cef_callback_t>() - 8usize];
7210    ["Offset of field: _cef_callback_t::base"]
7211        [::std::mem::offset_of!(_cef_callback_t, base) - 0usize];
7212    ["Offset of field: _cef_callback_t::cont"]
7213        [::std::mem::offset_of!(_cef_callback_t, cont) - 40usize];
7214    ["Offset of field: _cef_callback_t::cancel"]
7215        [::std::mem::offset_of!(_cef_callback_t, cancel) - 48usize];
7216};
7217#[doc = "\n Generic callback structure used for asynchronous continuation.\n\n NOTE: This struct is allocated DLL-side.\n"]
7218pub type cef_callback_t = _cef_callback_t;
7219#[doc = "\n Generic callback structure used for asynchronous completion.\n\n NOTE: This struct is allocated client-side.\n"]
7220#[repr(C)]
7221#[derive(Debug, Copy, Clone)]
7222pub struct _cef_completion_callback_t {
7223    #[doc = "\n Base structure.\n"]
7224    pub base: cef_base_ref_counted_t,
7225    #[doc = "\n Method that will be called once the task is complete.\n"]
7226    pub on_complete:
7227        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_completion_callback_t)>,
7228}
7229#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7230const _: () = {
7231    ["Size of _cef_completion_callback_t"]
7232        [::std::mem::size_of::<_cef_completion_callback_t>() - 48usize];
7233    ["Alignment of _cef_completion_callback_t"]
7234        [::std::mem::align_of::<_cef_completion_callback_t>() - 8usize];
7235    ["Offset of field: _cef_completion_callback_t::base"]
7236        [::std::mem::offset_of!(_cef_completion_callback_t, base) - 0usize];
7237    ["Offset of field: _cef_completion_callback_t::on_complete"]
7238        [::std::mem::offset_of!(_cef_completion_callback_t, on_complete) - 40usize];
7239};
7240#[doc = "\n Generic callback structure used for asynchronous completion.\n\n NOTE: This struct is allocated client-side.\n"]
7241pub type cef_completion_callback_t = _cef_completion_callback_t;
7242#[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"]
7243#[repr(C)]
7244#[derive(Debug, Copy, Clone)]
7245pub struct _cef_cookie_manager_t {
7246    #[doc = "\n Base structure.\n"]
7247    pub base: cef_base_ref_counted_t,
7248    #[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"]
7249    pub visit_all_cookies: ::std::option::Option<
7250        unsafe extern "C" fn(
7251            self_: *mut _cef_cookie_manager_t,
7252            visitor: *mut _cef_cookie_visitor_t,
7253        ) -> ::std::os::raw::c_int,
7254    >,
7255    #[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"]
7256    pub visit_url_cookies: ::std::option::Option<
7257        unsafe extern "C" fn(
7258            self_: *mut _cef_cookie_manager_t,
7259            url: *const cef_string_t,
7260            includeHttpOnly: ::std::os::raw::c_int,
7261            visitor: *mut _cef_cookie_visitor_t,
7262        ) -> ::std::os::raw::c_int,
7263    >,
7264    #[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"]
7265    pub set_cookie: ::std::option::Option<
7266        unsafe extern "C" fn(
7267            self_: *mut _cef_cookie_manager_t,
7268            url: *const cef_string_t,
7269            cookie: *const _cef_cookie_t,
7270            callback: *mut _cef_set_cookie_callback_t,
7271        ) -> ::std::os::raw::c_int,
7272    >,
7273    #[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"]
7274    pub delete_cookies: ::std::option::Option<
7275        unsafe extern "C" fn(
7276            self_: *mut _cef_cookie_manager_t,
7277            url: *const cef_string_t,
7278            cookie_name: *const cef_string_t,
7279            callback: *mut _cef_delete_cookies_callback_t,
7280        ) -> ::std::os::raw::c_int,
7281    >,
7282    #[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"]
7283    pub flush_store: ::std::option::Option<
7284        unsafe extern "C" fn(
7285            self_: *mut _cef_cookie_manager_t,
7286            callback: *mut _cef_completion_callback_t,
7287        ) -> ::std::os::raw::c_int,
7288    >,
7289}
7290#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7291const _: () = {
7292    ["Size of _cef_cookie_manager_t"][::std::mem::size_of::<_cef_cookie_manager_t>() - 80usize];
7293    ["Alignment of _cef_cookie_manager_t"]
7294        [::std::mem::align_of::<_cef_cookie_manager_t>() - 8usize];
7295    ["Offset of field: _cef_cookie_manager_t::base"]
7296        [::std::mem::offset_of!(_cef_cookie_manager_t, base) - 0usize];
7297    ["Offset of field: _cef_cookie_manager_t::visit_all_cookies"]
7298        [::std::mem::offset_of!(_cef_cookie_manager_t, visit_all_cookies) - 40usize];
7299    ["Offset of field: _cef_cookie_manager_t::visit_url_cookies"]
7300        [::std::mem::offset_of!(_cef_cookie_manager_t, visit_url_cookies) - 48usize];
7301    ["Offset of field: _cef_cookie_manager_t::set_cookie"]
7302        [::std::mem::offset_of!(_cef_cookie_manager_t, set_cookie) - 56usize];
7303    ["Offset of field: _cef_cookie_manager_t::delete_cookies"]
7304        [::std::mem::offset_of!(_cef_cookie_manager_t, delete_cookies) - 64usize];
7305    ["Offset of field: _cef_cookie_manager_t::flush_store"]
7306        [::std::mem::offset_of!(_cef_cookie_manager_t, flush_store) - 72usize];
7307};
7308#[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"]
7309pub type cef_cookie_manager_t = _cef_cookie_manager_t;
7310unsafe extern "C" {
7311    #[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()-\n >GetDefaultCookieManager().\n"]
7312    pub fn cef_cookie_manager_get_global_manager(
7313        callback: *mut _cef_completion_callback_t,
7314    ) -> *mut cef_cookie_manager_t;
7315}
7316#[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"]
7317#[repr(C)]
7318#[derive(Debug, Copy, Clone)]
7319pub struct _cef_cookie_visitor_t {
7320    #[doc = "\n Base structure.\n"]
7321    pub base: cef_base_ref_counted_t,
7322    #[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"]
7323    pub visit: ::std::option::Option<
7324        unsafe extern "C" fn(
7325            self_: *mut _cef_cookie_visitor_t,
7326            cookie: *const _cef_cookie_t,
7327            count: ::std::os::raw::c_int,
7328            total: ::std::os::raw::c_int,
7329            deleteCookie: *mut ::std::os::raw::c_int,
7330        ) -> ::std::os::raw::c_int,
7331    >,
7332}
7333#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7334const _: () = {
7335    ["Size of _cef_cookie_visitor_t"][::std::mem::size_of::<_cef_cookie_visitor_t>() - 48usize];
7336    ["Alignment of _cef_cookie_visitor_t"]
7337        [::std::mem::align_of::<_cef_cookie_visitor_t>() - 8usize];
7338    ["Offset of field: _cef_cookie_visitor_t::base"]
7339        [::std::mem::offset_of!(_cef_cookie_visitor_t, base) - 0usize];
7340    ["Offset of field: _cef_cookie_visitor_t::visit"]
7341        [::std::mem::offset_of!(_cef_cookie_visitor_t, visit) - 40usize];
7342};
7343#[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"]
7344pub type cef_cookie_visitor_t = _cef_cookie_visitor_t;
7345#[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"]
7346#[repr(C)]
7347#[derive(Debug, Copy, Clone)]
7348pub struct _cef_set_cookie_callback_t {
7349    #[doc = "\n Base structure.\n"]
7350    pub base: cef_base_ref_counted_t,
7351    #[doc = "\n Method that will be called upon completion. |success| will be true (1) if\n the cookie was set successfully.\n"]
7352    pub on_complete: ::std::option::Option<
7353        unsafe extern "C" fn(
7354            self_: *mut _cef_set_cookie_callback_t,
7355            success: ::std::os::raw::c_int,
7356        ),
7357    >,
7358}
7359#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7360const _: () = {
7361    ["Size of _cef_set_cookie_callback_t"]
7362        [::std::mem::size_of::<_cef_set_cookie_callback_t>() - 48usize];
7363    ["Alignment of _cef_set_cookie_callback_t"]
7364        [::std::mem::align_of::<_cef_set_cookie_callback_t>() - 8usize];
7365    ["Offset of field: _cef_set_cookie_callback_t::base"]
7366        [::std::mem::offset_of!(_cef_set_cookie_callback_t, base) - 0usize];
7367    ["Offset of field: _cef_set_cookie_callback_t::on_complete"]
7368        [::std::mem::offset_of!(_cef_set_cookie_callback_t, on_complete) - 40usize];
7369};
7370#[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"]
7371pub type cef_set_cookie_callback_t = _cef_set_cookie_callback_t;
7372#[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"]
7373#[repr(C)]
7374#[derive(Debug, Copy, Clone)]
7375pub struct _cef_delete_cookies_callback_t {
7376    #[doc = "\n Base structure.\n"]
7377    pub base: cef_base_ref_counted_t,
7378    #[doc = "\n Method that will be called upon completion. |num_deleted| will be the\n number of cookies that were deleted.\n"]
7379    pub on_complete: ::std::option::Option<
7380        unsafe extern "C" fn(
7381            self_: *mut _cef_delete_cookies_callback_t,
7382            num_deleted: ::std::os::raw::c_int,
7383        ),
7384    >,
7385}
7386#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7387const _: () = {
7388    ["Size of _cef_delete_cookies_callback_t"]
7389        [::std::mem::size_of::<_cef_delete_cookies_callback_t>() - 48usize];
7390    ["Alignment of _cef_delete_cookies_callback_t"]
7391        [::std::mem::align_of::<_cef_delete_cookies_callback_t>() - 8usize];
7392    ["Offset of field: _cef_delete_cookies_callback_t::base"]
7393        [::std::mem::offset_of!(_cef_delete_cookies_callback_t, base) - 0usize];
7394    ["Offset of field: _cef_delete_cookies_callback_t::on_complete"]
7395        [::std::mem::offset_of!(_cef_delete_cookies_callback_t, on_complete) - 40usize];
7396};
7397#[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"]
7398pub type cef_delete_cookies_callback_t = _cef_delete_cookies_callback_t;
7399#[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"]
7400#[repr(C)]
7401#[derive(Debug, Copy, Clone)]
7402pub struct _cef_media_router_t {
7403    #[doc = "\n Base structure.\n"]
7404    pub base: cef_base_ref_counted_t,
7405    #[doc = "\n Add an observer for MediaRouter events. The observer will remain\n registered until the returned Registration object is destroyed.\n"]
7406    pub add_observer: ::std::option::Option<
7407        unsafe extern "C" fn(
7408            self_: *mut _cef_media_router_t,
7409            observer: *mut _cef_media_observer_t,
7410        ) -> *mut _cef_registration_t,
7411    >,
7412    #[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"]
7413    pub get_source: ::std::option::Option<
7414        unsafe extern "C" fn(
7415            self_: *mut _cef_media_router_t,
7416            urn: *const cef_string_t,
7417        ) -> *mut _cef_media_source_t,
7418    >,
7419    #[doc = "\n Trigger an asynchronous call to cef_media_observer_t::OnSinks on all\n registered observers.\n"]
7420    pub notify_current_sinks:
7421        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_router_t)>,
7422    #[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"]
7423    pub create_route: ::std::option::Option<
7424        unsafe extern "C" fn(
7425            self_: *mut _cef_media_router_t,
7426            source: *mut _cef_media_source_t,
7427            sink: *mut _cef_media_sink_t,
7428            callback: *mut _cef_media_route_create_callback_t,
7429        ),
7430    >,
7431    #[doc = "\n Trigger an asynchronous call to cef_media_observer_t::OnRoutes on all\n registered observers.\n"]
7432    pub notify_current_routes:
7433        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_router_t)>,
7434}
7435#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7436const _: () = {
7437    ["Size of _cef_media_router_t"][::std::mem::size_of::<_cef_media_router_t>() - 80usize];
7438    ["Alignment of _cef_media_router_t"][::std::mem::align_of::<_cef_media_router_t>() - 8usize];
7439    ["Offset of field: _cef_media_router_t::base"]
7440        [::std::mem::offset_of!(_cef_media_router_t, base) - 0usize];
7441    ["Offset of field: _cef_media_router_t::add_observer"]
7442        [::std::mem::offset_of!(_cef_media_router_t, add_observer) - 40usize];
7443    ["Offset of field: _cef_media_router_t::get_source"]
7444        [::std::mem::offset_of!(_cef_media_router_t, get_source) - 48usize];
7445    ["Offset of field: _cef_media_router_t::notify_current_sinks"]
7446        [::std::mem::offset_of!(_cef_media_router_t, notify_current_sinks) - 56usize];
7447    ["Offset of field: _cef_media_router_t::create_route"]
7448        [::std::mem::offset_of!(_cef_media_router_t, create_route) - 64usize];
7449    ["Offset of field: _cef_media_router_t::notify_current_routes"]
7450        [::std::mem::offset_of!(_cef_media_router_t, notify_current_routes) - 72usize];
7451};
7452#[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"]
7453pub type cef_media_router_t = _cef_media_router_t;
7454unsafe extern "C" {
7455    #[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()-\n >get_media_router().\n"]
7456    pub fn cef_media_router_get_global(
7457        callback: *mut _cef_completion_callback_t,
7458    ) -> *mut cef_media_router_t;
7459}
7460#[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"]
7461#[repr(C)]
7462#[derive(Debug, Copy, Clone)]
7463pub struct _cef_media_observer_t {
7464    #[doc = "\n Base structure.\n"]
7465    pub base: cef_base_ref_counted_t,
7466    #[doc = "\n The list of available media sinks has changed or\n cef_media_router_t::NotifyCurrentSinks was called.\n"]
7467    pub on_sinks: ::std::option::Option<
7468        unsafe extern "C" fn(
7469            self_: *mut _cef_media_observer_t,
7470            sinksCount: usize,
7471            sinks: *const *mut _cef_media_sink_t,
7472        ),
7473    >,
7474    #[doc = "\n The list of available media routes has changed or\n cef_media_router_t::NotifyCurrentRoutes was called.\n"]
7475    pub on_routes: ::std::option::Option<
7476        unsafe extern "C" fn(
7477            self_: *mut _cef_media_observer_t,
7478            routesCount: usize,
7479            routes: *const *mut _cef_media_route_t,
7480        ),
7481    >,
7482    #[doc = "\n The connection state of |route| has changed.\n"]
7483    pub on_route_state_changed: ::std::option::Option<
7484        unsafe extern "C" fn(
7485            self_: *mut _cef_media_observer_t,
7486            route: *mut _cef_media_route_t,
7487            state: cef_media_route_connection_state_t,
7488        ),
7489    >,
7490    #[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"]
7491    pub on_route_message_received: ::std::option::Option<
7492        unsafe extern "C" fn(
7493            self_: *mut _cef_media_observer_t,
7494            route: *mut _cef_media_route_t,
7495            message: *const ::std::os::raw::c_void,
7496            message_size: usize,
7497        ),
7498    >,
7499}
7500#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7501const _: () = {
7502    ["Size of _cef_media_observer_t"][::std::mem::size_of::<_cef_media_observer_t>() - 72usize];
7503    ["Alignment of _cef_media_observer_t"]
7504        [::std::mem::align_of::<_cef_media_observer_t>() - 8usize];
7505    ["Offset of field: _cef_media_observer_t::base"]
7506        [::std::mem::offset_of!(_cef_media_observer_t, base) - 0usize];
7507    ["Offset of field: _cef_media_observer_t::on_sinks"]
7508        [::std::mem::offset_of!(_cef_media_observer_t, on_sinks) - 40usize];
7509    ["Offset of field: _cef_media_observer_t::on_routes"]
7510        [::std::mem::offset_of!(_cef_media_observer_t, on_routes) - 48usize];
7511    ["Offset of field: _cef_media_observer_t::on_route_state_changed"]
7512        [::std::mem::offset_of!(_cef_media_observer_t, on_route_state_changed) - 56usize];
7513    ["Offset of field: _cef_media_observer_t::on_route_message_received"]
7514        [::std::mem::offset_of!(_cef_media_observer_t, on_route_message_received) - 64usize];
7515};
7516#[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"]
7517pub type cef_media_observer_t = _cef_media_observer_t;
7518#[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"]
7519#[repr(C)]
7520#[derive(Debug, Copy, Clone)]
7521pub struct _cef_media_route_t {
7522    #[doc = "\n Base structure.\n"]
7523    pub base: cef_base_ref_counted_t,
7524    #[doc = "\n Returns the ID for this route.\n"]
7525    pub get_id: ::std::option::Option<
7526        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> cef_string_userfree_t,
7527    >,
7528    #[doc = "\n Returns the source associated with this route.\n"]
7529    pub get_source: ::std::option::Option<
7530        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_source_t,
7531    >,
7532    #[doc = "\n Returns the sink associated with this route.\n"]
7533    pub get_sink: ::std::option::Option<
7534        unsafe extern "C" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_sink_t,
7535    >,
7536    #[doc = "\n Send a message over this route. |message| will be copied if necessary.\n"]
7537    pub send_route_message: ::std::option::Option<
7538        unsafe extern "C" fn(
7539            self_: *mut _cef_media_route_t,
7540            message: *const ::std::os::raw::c_void,
7541            message_size: usize,
7542        ),
7543    >,
7544    #[doc = "\n Terminate this route. Will result in an asynchronous call to\n cef_media_observer_t::OnRoutes on all registered observers.\n"]
7545    pub terminate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_route_t)>,
7546}
7547#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7548const _: () = {
7549    ["Size of _cef_media_route_t"][::std::mem::size_of::<_cef_media_route_t>() - 80usize];
7550    ["Alignment of _cef_media_route_t"][::std::mem::align_of::<_cef_media_route_t>() - 8usize];
7551    ["Offset of field: _cef_media_route_t::base"]
7552        [::std::mem::offset_of!(_cef_media_route_t, base) - 0usize];
7553    ["Offset of field: _cef_media_route_t::get_id"]
7554        [::std::mem::offset_of!(_cef_media_route_t, get_id) - 40usize];
7555    ["Offset of field: _cef_media_route_t::get_source"]
7556        [::std::mem::offset_of!(_cef_media_route_t, get_source) - 48usize];
7557    ["Offset of field: _cef_media_route_t::get_sink"]
7558        [::std::mem::offset_of!(_cef_media_route_t, get_sink) - 56usize];
7559    ["Offset of field: _cef_media_route_t::send_route_message"]
7560        [::std::mem::offset_of!(_cef_media_route_t, send_route_message) - 64usize];
7561    ["Offset of field: _cef_media_route_t::terminate"]
7562        [::std::mem::offset_of!(_cef_media_route_t, terminate) - 72usize];
7563};
7564#[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"]
7565pub type cef_media_route_t = _cef_media_route_t;
7566#[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"]
7567#[repr(C)]
7568#[derive(Debug, Copy, Clone)]
7569pub struct _cef_media_route_create_callback_t {
7570    #[doc = "\n Base structure.\n"]
7571    pub base: cef_base_ref_counted_t,
7572    #[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"]
7573    pub on_media_route_create_finished: ::std::option::Option<
7574        unsafe extern "C" fn(
7575            self_: *mut _cef_media_route_create_callback_t,
7576            result: cef_media_route_create_result_t,
7577            error: *const cef_string_t,
7578            route: *mut _cef_media_route_t,
7579        ),
7580    >,
7581}
7582#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7583const _: () = {
7584    ["Size of _cef_media_route_create_callback_t"]
7585        [::std::mem::size_of::<_cef_media_route_create_callback_t>() - 48usize];
7586    ["Alignment of _cef_media_route_create_callback_t"]
7587        [::std::mem::align_of::<_cef_media_route_create_callback_t>() - 8usize];
7588    ["Offset of field: _cef_media_route_create_callback_t::base"]
7589        [::std::mem::offset_of!(_cef_media_route_create_callback_t, base) - 0usize];
7590    ["Offset of field: _cef_media_route_create_callback_t::on_media_route_create_finished"][::std::mem::offset_of!(
7591        _cef_media_route_create_callback_t,
7592        on_media_route_create_finished
7593    )
7594        - 40usize];
7595};
7596#[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"]
7597pub type cef_media_route_create_callback_t = _cef_media_route_create_callback_t;
7598#[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"]
7599#[repr(C)]
7600#[derive(Debug, Copy, Clone)]
7601pub struct _cef_media_sink_t {
7602    #[doc = "\n Base structure.\n"]
7603    pub base: cef_base_ref_counted_t,
7604    #[doc = "\n Returns the ID for this sink.\n"]
7605    pub get_id: ::std::option::Option<
7606        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t,
7607    >,
7608    #[doc = "\n Returns the name of this sink.\n"]
7609    pub get_name: ::std::option::Option<
7610        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t,
7611    >,
7612    #[doc = "\n Returns the icon type for this sink.\n"]
7613    pub get_icon_type: ::std::option::Option<
7614        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> cef_media_sink_icon_type_t,
7615    >,
7616    #[doc = "\n Asynchronously retrieves device info.\n"]
7617    pub get_device_info: ::std::option::Option<
7618        unsafe extern "C" fn(
7619            self_: *mut _cef_media_sink_t,
7620            callback: *mut _cef_media_sink_device_info_callback_t,
7621        ),
7622    >,
7623    #[doc = "\n Returns true (1) if this sink accepts content via Cast.\n"]
7624    pub is_cast_sink: ::std::option::Option<
7625        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int,
7626    >,
7627    #[doc = "\n Returns true (1) if this sink accepts content via DIAL.\n"]
7628    pub is_dial_sink: ::std::option::Option<
7629        unsafe extern "C" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int,
7630    >,
7631    #[doc = "\n Returns true (1) if this sink is compatible with |source|.\n"]
7632    pub is_compatible_with: ::std::option::Option<
7633        unsafe extern "C" fn(
7634            self_: *mut _cef_media_sink_t,
7635            source: *mut _cef_media_source_t,
7636        ) -> ::std::os::raw::c_int,
7637    >,
7638}
7639#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7640const _: () = {
7641    ["Size of _cef_media_sink_t"][::std::mem::size_of::<_cef_media_sink_t>() - 96usize];
7642    ["Alignment of _cef_media_sink_t"][::std::mem::align_of::<_cef_media_sink_t>() - 8usize];
7643    ["Offset of field: _cef_media_sink_t::base"]
7644        [::std::mem::offset_of!(_cef_media_sink_t, base) - 0usize];
7645    ["Offset of field: _cef_media_sink_t::get_id"]
7646        [::std::mem::offset_of!(_cef_media_sink_t, get_id) - 40usize];
7647    ["Offset of field: _cef_media_sink_t::get_name"]
7648        [::std::mem::offset_of!(_cef_media_sink_t, get_name) - 48usize];
7649    ["Offset of field: _cef_media_sink_t::get_icon_type"]
7650        [::std::mem::offset_of!(_cef_media_sink_t, get_icon_type) - 56usize];
7651    ["Offset of field: _cef_media_sink_t::get_device_info"]
7652        [::std::mem::offset_of!(_cef_media_sink_t, get_device_info) - 64usize];
7653    ["Offset of field: _cef_media_sink_t::is_cast_sink"]
7654        [::std::mem::offset_of!(_cef_media_sink_t, is_cast_sink) - 72usize];
7655    ["Offset of field: _cef_media_sink_t::is_dial_sink"]
7656        [::std::mem::offset_of!(_cef_media_sink_t, is_dial_sink) - 80usize];
7657    ["Offset of field: _cef_media_sink_t::is_compatible_with"]
7658        [::std::mem::offset_of!(_cef_media_sink_t, is_compatible_with) - 88usize];
7659};
7660#[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"]
7661pub type cef_media_sink_t = _cef_media_sink_t;
7662#[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"]
7663#[repr(C)]
7664#[derive(Debug, Copy, Clone)]
7665pub struct _cef_media_sink_device_info_callback_t {
7666    #[doc = "\n Base structure.\n"]
7667    pub base: cef_base_ref_counted_t,
7668    #[doc = "\n Method that will be executed asyncronously once device information has\n been retrieved.\n"]
7669    pub on_media_sink_device_info: ::std::option::Option<
7670        unsafe extern "C" fn(
7671            self_: *mut _cef_media_sink_device_info_callback_t,
7672            device_info: *const _cef_media_sink_device_info_t,
7673        ),
7674    >,
7675}
7676#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7677const _: () = {
7678    ["Size of _cef_media_sink_device_info_callback_t"]
7679        [::std::mem::size_of::<_cef_media_sink_device_info_callback_t>() - 48usize];
7680    ["Alignment of _cef_media_sink_device_info_callback_t"]
7681        [::std::mem::align_of::<_cef_media_sink_device_info_callback_t>() - 8usize];
7682    ["Offset of field: _cef_media_sink_device_info_callback_t::base"]
7683        [::std::mem::offset_of!(_cef_media_sink_device_info_callback_t, base) - 0usize];
7684    ["Offset of field: _cef_media_sink_device_info_callback_t::on_media_sink_device_info"][::std::mem::offset_of!(
7685        _cef_media_sink_device_info_callback_t,
7686        on_media_sink_device_info
7687    )
7688        - 40usize];
7689};
7690#[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"]
7691pub type cef_media_sink_device_info_callback_t = _cef_media_sink_device_info_callback_t;
7692#[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"]
7693#[repr(C)]
7694#[derive(Debug, Copy, Clone)]
7695pub struct _cef_media_source_t {
7696    #[doc = "\n Base structure.\n"]
7697    pub base: cef_base_ref_counted_t,
7698    #[doc = "\n Returns the ID (media source URN or URL) for this source.\n"]
7699    pub get_id: ::std::option::Option<
7700        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> cef_string_userfree_t,
7701    >,
7702    #[doc = "\n Returns true (1) if this source outputs its content via Cast.\n"]
7703    pub is_cast_source: ::std::option::Option<
7704        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int,
7705    >,
7706    #[doc = "\n Returns true (1) if this source outputs its content via DIAL.\n"]
7707    pub is_dial_source: ::std::option::Option<
7708        unsafe extern "C" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int,
7709    >,
7710}
7711#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7712const _: () = {
7713    ["Size of _cef_media_source_t"][::std::mem::size_of::<_cef_media_source_t>() - 64usize];
7714    ["Alignment of _cef_media_source_t"][::std::mem::align_of::<_cef_media_source_t>() - 8usize];
7715    ["Offset of field: _cef_media_source_t::base"]
7716        [::std::mem::offset_of!(_cef_media_source_t, base) - 0usize];
7717    ["Offset of field: _cef_media_source_t::get_id"]
7718        [::std::mem::offset_of!(_cef_media_source_t, get_id) - 40usize];
7719    ["Offset of field: _cef_media_source_t::is_cast_source"]
7720        [::std::mem::offset_of!(_cef_media_source_t, is_cast_source) - 48usize];
7721    ["Offset of field: _cef_media_source_t::is_dial_source"]
7722        [::std::mem::offset_of!(_cef_media_source_t, is_dial_source) - 56usize];
7723};
7724#[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"]
7725pub type cef_media_source_t = _cef_media_source_t;
7726#[doc = "\n Structure that manages custom preference registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
7727#[repr(C)]
7728#[derive(Debug, Copy, Clone)]
7729pub struct _cef_preference_registrar_t {
7730    #[doc = "\n Base structure.\n"]
7731    pub base: cef_base_scoped_t,
7732    #[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"]
7733    pub add_preference: ::std::option::Option<
7734        unsafe extern "C" fn(
7735            self_: *mut _cef_preference_registrar_t,
7736            name: *const cef_string_t,
7737            default_value: *mut _cef_value_t,
7738        ) -> ::std::os::raw::c_int,
7739    >,
7740}
7741#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7742const _: () = {
7743    ["Size of _cef_preference_registrar_t"]
7744        [::std::mem::size_of::<_cef_preference_registrar_t>() - 24usize];
7745    ["Alignment of _cef_preference_registrar_t"]
7746        [::std::mem::align_of::<_cef_preference_registrar_t>() - 8usize];
7747    ["Offset of field: _cef_preference_registrar_t::base"]
7748        [::std::mem::offset_of!(_cef_preference_registrar_t, base) - 0usize];
7749    ["Offset of field: _cef_preference_registrar_t::add_preference"]
7750        [::std::mem::offset_of!(_cef_preference_registrar_t, add_preference) - 16usize];
7751};
7752#[doc = "\n Structure that manages custom preference registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
7753pub type cef_preference_registrar_t = _cef_preference_registrar_t;
7754#[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"]
7755#[repr(C)]
7756#[derive(Debug, Copy, Clone)]
7757pub struct _cef_preference_observer_t {
7758    #[doc = "\n Base structure.\n"]
7759    pub base: cef_base_ref_counted_t,
7760    #[doc = "\n Called when a preference has changed. The new value can be retrieved using\n cef_preference_manager_t::GetPreference.\n"]
7761    pub on_preference_changed: ::std::option::Option<
7762        unsafe extern "C" fn(self_: *mut _cef_preference_observer_t, name: *const cef_string_t),
7763    >,
7764}
7765#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7766const _: () = {
7767    ["Size of _cef_preference_observer_t"]
7768        [::std::mem::size_of::<_cef_preference_observer_t>() - 48usize];
7769    ["Alignment of _cef_preference_observer_t"]
7770        [::std::mem::align_of::<_cef_preference_observer_t>() - 8usize];
7771    ["Offset of field: _cef_preference_observer_t::base"]
7772        [::std::mem::offset_of!(_cef_preference_observer_t, base) - 0usize];
7773    ["Offset of field: _cef_preference_observer_t::on_preference_changed"]
7774        [::std::mem::offset_of!(_cef_preference_observer_t, on_preference_changed) - 40usize];
7775};
7776#[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"]
7777pub type cef_preference_observer_t = _cef_preference_observer_t;
7778#[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"]
7779#[repr(C)]
7780#[derive(Debug, Copy, Clone)]
7781pub struct _cef_preference_manager_t {
7782    #[doc = "\n Base structure.\n"]
7783    pub base: cef_base_ref_counted_t,
7784    #[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"]
7785    pub has_preference: ::std::option::Option<
7786        unsafe extern "C" fn(
7787            self_: *mut _cef_preference_manager_t,
7788            name: *const cef_string_t,
7789        ) -> ::std::os::raw::c_int,
7790    >,
7791    #[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"]
7792    pub get_preference: ::std::option::Option<
7793        unsafe extern "C" fn(
7794            self_: *mut _cef_preference_manager_t,
7795            name: *const cef_string_t,
7796        ) -> *mut _cef_value_t,
7797    >,
7798    #[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"]
7799    pub get_all_preferences: ::std::option::Option<
7800        unsafe extern "C" fn(
7801            self_: *mut _cef_preference_manager_t,
7802            include_defaults: ::std::os::raw::c_int,
7803        ) -> *mut _cef_dictionary_value_t,
7804    >,
7805    #[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"]
7806    pub can_set_preference: ::std::option::Option<
7807        unsafe extern "C" fn(
7808            self_: *mut _cef_preference_manager_t,
7809            name: *const cef_string_t,
7810        ) -> ::std::os::raw::c_int,
7811    >,
7812    #[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"]
7813    pub set_preference: ::std::option::Option<
7814        unsafe extern "C" fn(
7815            self_: *mut _cef_preference_manager_t,
7816            name: *const cef_string_t,
7817            value: *mut _cef_value_t,
7818            error: *mut cef_string_t,
7819        ) -> ::std::os::raw::c_int,
7820    >,
7821    #[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"]
7822    pub add_preference_observer: ::std::option::Option<
7823        unsafe extern "C" fn(
7824            self_: *mut _cef_preference_manager_t,
7825            name: *const cef_string_t,
7826            observer: *mut _cef_preference_observer_t,
7827        ) -> *mut _cef_registration_t,
7828    >,
7829}
7830#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7831const _: () = {
7832    ["Size of _cef_preference_manager_t"]
7833        [::std::mem::size_of::<_cef_preference_manager_t>() - 88usize];
7834    ["Alignment of _cef_preference_manager_t"]
7835        [::std::mem::align_of::<_cef_preference_manager_t>() - 8usize];
7836    ["Offset of field: _cef_preference_manager_t::base"]
7837        [::std::mem::offset_of!(_cef_preference_manager_t, base) - 0usize];
7838    ["Offset of field: _cef_preference_manager_t::has_preference"]
7839        [::std::mem::offset_of!(_cef_preference_manager_t, has_preference) - 40usize];
7840    ["Offset of field: _cef_preference_manager_t::get_preference"]
7841        [::std::mem::offset_of!(_cef_preference_manager_t, get_preference) - 48usize];
7842    ["Offset of field: _cef_preference_manager_t::get_all_preferences"]
7843        [::std::mem::offset_of!(_cef_preference_manager_t, get_all_preferences) - 56usize];
7844    ["Offset of field: _cef_preference_manager_t::can_set_preference"]
7845        [::std::mem::offset_of!(_cef_preference_manager_t, can_set_preference) - 64usize];
7846    ["Offset of field: _cef_preference_manager_t::set_preference"]
7847        [::std::mem::offset_of!(_cef_preference_manager_t, set_preference) - 72usize];
7848    ["Offset of field: _cef_preference_manager_t::add_preference_observer"]
7849        [::std::mem::offset_of!(_cef_preference_manager_t, add_preference_observer) - 80usize];
7850};
7851#[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"]
7852pub type cef_preference_manager_t = _cef_preference_manager_t;
7853unsafe extern "C" {
7854    #[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"]
7855    pub fn cef_preference_manager_get_chrome_variations_as_switches(switches: cef_string_list_t);
7856}
7857unsafe extern "C" {
7858    #[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"]
7859    pub fn cef_preference_manager_get_chrome_variations_as_strings(strings: cef_string_list_t);
7860}
7861unsafe extern "C" {
7862    #[doc = "\n Returns the global preference manager object.\n"]
7863    pub fn cef_preference_manager_get_global() -> *mut cef_preference_manager_t;
7864}
7865#[doc = "\n Callback structure for cef_request_context_t::ResolveHost.\n\n NOTE: This struct is allocated client-side.\n"]
7866#[repr(C)]
7867#[derive(Debug, Copy, Clone)]
7868pub struct _cef_resolve_callback_t {
7869    #[doc = "\n Base structure.\n"]
7870    pub base: cef_base_ref_counted_t,
7871    #[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"]
7872    pub on_resolve_completed: ::std::option::Option<
7873        unsafe extern "C" fn(
7874            self_: *mut _cef_resolve_callback_t,
7875            result: cef_errorcode_t,
7876            resolved_ips: cef_string_list_t,
7877        ),
7878    >,
7879}
7880#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7881const _: () = {
7882    ["Size of _cef_resolve_callback_t"][::std::mem::size_of::<_cef_resolve_callback_t>() - 48usize];
7883    ["Alignment of _cef_resolve_callback_t"]
7884        [::std::mem::align_of::<_cef_resolve_callback_t>() - 8usize];
7885    ["Offset of field: _cef_resolve_callback_t::base"]
7886        [::std::mem::offset_of!(_cef_resolve_callback_t, base) - 0usize];
7887    ["Offset of field: _cef_resolve_callback_t::on_resolve_completed"]
7888        [::std::mem::offset_of!(_cef_resolve_callback_t, on_resolve_completed) - 40usize];
7889};
7890#[doc = "\n Callback structure for cef_request_context_t::ResolveHost.\n\n NOTE: This struct is allocated client-side.\n"]
7891pub type cef_resolve_callback_t = _cef_resolve_callback_t;
7892#[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"]
7893#[repr(C)]
7894#[derive(Debug, Copy, Clone)]
7895pub struct _cef_setting_observer_t {
7896    #[doc = "\n Base structure.\n"]
7897    pub base: cef_base_ref_counted_t,
7898    #[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"]
7899    pub on_setting_changed: ::std::option::Option<
7900        unsafe extern "C" fn(
7901            self_: *mut _cef_setting_observer_t,
7902            requesting_url: *const cef_string_t,
7903            top_level_url: *const cef_string_t,
7904            content_type: cef_content_setting_types_t,
7905        ),
7906    >,
7907}
7908#[allow(clippy::unnecessary_operation, clippy::identity_op)]
7909const _: () = {
7910    ["Size of _cef_setting_observer_t"][::std::mem::size_of::<_cef_setting_observer_t>() - 48usize];
7911    ["Alignment of _cef_setting_observer_t"]
7912        [::std::mem::align_of::<_cef_setting_observer_t>() - 8usize];
7913    ["Offset of field: _cef_setting_observer_t::base"]
7914        [::std::mem::offset_of!(_cef_setting_observer_t, base) - 0usize];
7915    ["Offset of field: _cef_setting_observer_t::on_setting_changed"]
7916        [::std::mem::offset_of!(_cef_setting_observer_t, on_setting_changed) - 40usize];
7917};
7918#[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"]
7919pub type cef_setting_observer_t = _cef_setting_observer_t;
7920#[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"]
7921#[repr(C)]
7922#[derive(Debug, Copy, Clone)]
7923pub struct _cef_request_context_t {
7924    #[doc = "\n Base structure.\n"]
7925    pub base: cef_preference_manager_t,
7926    #[doc = "\n Returns true (1) if this object is pointing to the same context as |that|\n object.\n"]
7927    pub is_same: ::std::option::Option<
7928        unsafe extern "C" fn(
7929            self_: *mut _cef_request_context_t,
7930            other: *mut _cef_request_context_t,
7931        ) -> ::std::os::raw::c_int,
7932    >,
7933    #[doc = "\n Returns true (1) if this object is sharing the same storage as |that|\n object.\n"]
7934    pub is_sharing_with: ::std::option::Option<
7935        unsafe extern "C" fn(
7936            self_: *mut _cef_request_context_t,
7937            other: *mut _cef_request_context_t,
7938        ) -> ::std::os::raw::c_int,
7939    >,
7940    #[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"]
7941    pub is_global: ::std::option::Option<
7942        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int,
7943    >,
7944    #[doc = "\n Returns the handler for this context if any.\n"]
7945    pub get_handler: ::std::option::Option<
7946        unsafe extern "C" fn(
7947            self_: *mut _cef_request_context_t,
7948        ) -> *mut _cef_request_context_handler_t,
7949    >,
7950    #[doc = "\n Returns the cache path for this object. If NULL an \"incognito mode\" in-\n memory cache is being used.\n"]
7951    pub get_cache_path: ::std::option::Option<
7952        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_string_userfree_t,
7953    >,
7954    #[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"]
7955    pub get_cookie_manager: ::std::option::Option<
7956        unsafe extern "C" fn(
7957            self_: *mut _cef_request_context_t,
7958            callback: *mut _cef_completion_callback_t,
7959        ) -> *mut _cef_cookie_manager_t,
7960    >,
7961    #[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"]
7962    pub register_scheme_handler_factory: ::std::option::Option<
7963        unsafe extern "C" fn(
7964            self_: *mut _cef_request_context_t,
7965            scheme_name: *const cef_string_t,
7966            domain_name: *const cef_string_t,
7967            factory: *mut _cef_scheme_handler_factory_t,
7968        ) -> ::std::os::raw::c_int,
7969    >,
7970    #[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"]
7971    pub clear_scheme_handler_factories: ::std::option::Option<
7972        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int,
7973    >,
7974    #[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"]
7975    pub clear_certificate_exceptions: ::std::option::Option<
7976        unsafe extern "C" fn(
7977            self_: *mut _cef_request_context_t,
7978            callback: *mut _cef_completion_callback_t,
7979        ),
7980    >,
7981    #[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"]
7982    pub clear_http_auth_credentials: ::std::option::Option<
7983        unsafe extern "C" fn(
7984            self_: *mut _cef_request_context_t,
7985            callback: *mut _cef_completion_callback_t,
7986        ),
7987    >,
7988    #[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"]
7989    pub close_all_connections: ::std::option::Option<
7990        unsafe extern "C" fn(
7991            self_: *mut _cef_request_context_t,
7992            callback: *mut _cef_completion_callback_t,
7993        ),
7994    >,
7995    #[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"]
7996    pub resolve_host: ::std::option::Option<
7997        unsafe extern "C" fn(
7998            self_: *mut _cef_request_context_t,
7999            origin: *const cef_string_t,
8000            callback: *mut _cef_resolve_callback_t,
8001        ),
8002    >,
8003    #[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"]
8004    pub get_media_router: ::std::option::Option<
8005        unsafe extern "C" fn(
8006            self_: *mut _cef_request_context_t,
8007            callback: *mut _cef_completion_callback_t,
8008        ) -> *mut _cef_media_router_t,
8009    >,
8010    #[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"]
8011    pub get_website_setting: ::std::option::Option<
8012        unsafe extern "C" fn(
8013            self_: *mut _cef_request_context_t,
8014            requesting_url: *const cef_string_t,
8015            top_level_url: *const cef_string_t,
8016            content_type: cef_content_setting_types_t,
8017        ) -> *mut _cef_value_t,
8018    >,
8019    #[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"]
8020    pub set_website_setting: ::std::option::Option<
8021        unsafe extern "C" fn(
8022            self_: *mut _cef_request_context_t,
8023            requesting_url: *const cef_string_t,
8024            top_level_url: *const cef_string_t,
8025            content_type: cef_content_setting_types_t,
8026            value: *mut _cef_value_t,
8027        ),
8028    >,
8029    #[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"]
8030    pub get_content_setting: ::std::option::Option<
8031        unsafe extern "C" fn(
8032            self_: *mut _cef_request_context_t,
8033            requesting_url: *const cef_string_t,
8034            top_level_url: *const cef_string_t,
8035            content_type: cef_content_setting_types_t,
8036        ) -> cef_content_setting_values_t,
8037    >,
8038    #[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"]
8039    pub set_content_setting: ::std::option::Option<
8040        unsafe extern "C" fn(
8041            self_: *mut _cef_request_context_t,
8042            requesting_url: *const cef_string_t,
8043            top_level_url: *const cef_string_t,
8044            content_type: cef_content_setting_types_t,
8045            value: cef_content_setting_values_t,
8046        ),
8047    >,
8048    #[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"]
8049    pub set_chrome_color_scheme: ::std::option::Option<
8050        unsafe extern "C" fn(
8051            self_: *mut _cef_request_context_t,
8052            variant: cef_color_variant_t,
8053            user_color: cef_color_t,
8054        ),
8055    >,
8056    #[doc = "\n Returns the current Chrome color scheme mode (SYSTEM, LIGHT or DARK). Must\n be called on the browser process UI thread.\n"]
8057    pub get_chrome_color_scheme_mode: ::std::option::Option<
8058        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_variant_t,
8059    >,
8060    #[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"]
8061    pub get_chrome_color_scheme_color: ::std::option::Option<
8062        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_t,
8063    >,
8064    #[doc = "\n Returns the current Chrome color scheme variant. Must be called on the\n browser process UI thread.\n"]
8065    pub get_chrome_color_scheme_variant: ::std::option::Option<
8066        unsafe extern "C" fn(self_: *mut _cef_request_context_t) -> cef_color_variant_t,
8067    >,
8068    #[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"]
8069    pub add_setting_observer: ::std::option::Option<
8070        unsafe extern "C" fn(
8071            self_: *mut _cef_request_context_t,
8072            observer: *mut _cef_setting_observer_t,
8073        ) -> *mut _cef_registration_t,
8074    >,
8075    #[doc = "\n Clears the HTTP cache. If |callback| is non-NULL it will be executed on\n the UI thread after completion.\n"]
8076    pub clear_http_cache: ::std::option::Option<
8077        unsafe extern "C" fn(
8078            self_: *mut _cef_request_context_t,
8079            callback: *mut _cef_completion_callback_t,
8080        ),
8081    >,
8082}
8083#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8084const _: () = {
8085    ["Size of _cef_request_context_t"][::std::mem::size_of::<_cef_request_context_t>() - 272usize];
8086    ["Alignment of _cef_request_context_t"]
8087        [::std::mem::align_of::<_cef_request_context_t>() - 8usize];
8088    ["Offset of field: _cef_request_context_t::base"]
8089        [::std::mem::offset_of!(_cef_request_context_t, base) - 0usize];
8090    ["Offset of field: _cef_request_context_t::is_same"]
8091        [::std::mem::offset_of!(_cef_request_context_t, is_same) - 88usize];
8092    ["Offset of field: _cef_request_context_t::is_sharing_with"]
8093        [::std::mem::offset_of!(_cef_request_context_t, is_sharing_with) - 96usize];
8094    ["Offset of field: _cef_request_context_t::is_global"]
8095        [::std::mem::offset_of!(_cef_request_context_t, is_global) - 104usize];
8096    ["Offset of field: _cef_request_context_t::get_handler"]
8097        [::std::mem::offset_of!(_cef_request_context_t, get_handler) - 112usize];
8098    ["Offset of field: _cef_request_context_t::get_cache_path"]
8099        [::std::mem::offset_of!(_cef_request_context_t, get_cache_path) - 120usize];
8100    ["Offset of field: _cef_request_context_t::get_cookie_manager"]
8101        [::std::mem::offset_of!(_cef_request_context_t, get_cookie_manager) - 128usize];
8102    ["Offset of field: _cef_request_context_t::register_scheme_handler_factory"][::std::mem::offset_of!(
8103        _cef_request_context_t,
8104        register_scheme_handler_factory
8105    ) - 136usize];
8106    ["Offset of field: _cef_request_context_t::clear_scheme_handler_factories"]
8107        [::std::mem::offset_of!(_cef_request_context_t, clear_scheme_handler_factories) - 144usize];
8108    ["Offset of field: _cef_request_context_t::clear_certificate_exceptions"]
8109        [::std::mem::offset_of!(_cef_request_context_t, clear_certificate_exceptions) - 152usize];
8110    ["Offset of field: _cef_request_context_t::clear_http_auth_credentials"]
8111        [::std::mem::offset_of!(_cef_request_context_t, clear_http_auth_credentials) - 160usize];
8112    ["Offset of field: _cef_request_context_t::close_all_connections"]
8113        [::std::mem::offset_of!(_cef_request_context_t, close_all_connections) - 168usize];
8114    ["Offset of field: _cef_request_context_t::resolve_host"]
8115        [::std::mem::offset_of!(_cef_request_context_t, resolve_host) - 176usize];
8116    ["Offset of field: _cef_request_context_t::get_media_router"]
8117        [::std::mem::offset_of!(_cef_request_context_t, get_media_router) - 184usize];
8118    ["Offset of field: _cef_request_context_t::get_website_setting"]
8119        [::std::mem::offset_of!(_cef_request_context_t, get_website_setting) - 192usize];
8120    ["Offset of field: _cef_request_context_t::set_website_setting"]
8121        [::std::mem::offset_of!(_cef_request_context_t, set_website_setting) - 200usize];
8122    ["Offset of field: _cef_request_context_t::get_content_setting"]
8123        [::std::mem::offset_of!(_cef_request_context_t, get_content_setting) - 208usize];
8124    ["Offset of field: _cef_request_context_t::set_content_setting"]
8125        [::std::mem::offset_of!(_cef_request_context_t, set_content_setting) - 216usize];
8126    ["Offset of field: _cef_request_context_t::set_chrome_color_scheme"]
8127        [::std::mem::offset_of!(_cef_request_context_t, set_chrome_color_scheme) - 224usize];
8128    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_mode"]
8129        [::std::mem::offset_of!(_cef_request_context_t, get_chrome_color_scheme_mode) - 232usize];
8130    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_color"]
8131        [::std::mem::offset_of!(_cef_request_context_t, get_chrome_color_scheme_color) - 240usize];
8132    ["Offset of field: _cef_request_context_t::get_chrome_color_scheme_variant"][::std::mem::offset_of!(
8133        _cef_request_context_t,
8134        get_chrome_color_scheme_variant
8135    ) - 248usize];
8136    ["Offset of field: _cef_request_context_t::add_setting_observer"]
8137        [::std::mem::offset_of!(_cef_request_context_t, add_setting_observer) - 256usize];
8138    ["Offset of field: _cef_request_context_t::clear_http_cache"]
8139        [::std::mem::offset_of!(_cef_request_context_t, clear_http_cache) - 264usize];
8140};
8141#[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"]
8142pub type cef_request_context_t = _cef_request_context_t;
8143unsafe extern "C" {
8144    #[doc = "\n Returns the global context object.\n"]
8145    pub fn cef_request_context_get_global_context() -> *mut cef_request_context_t;
8146}
8147unsafe extern "C" {
8148    #[doc = "\n Creates a new context object with the specified |settings| and optional\n |handler|.\n"]
8149    pub fn cef_request_context_create_context(
8150        settings: *const _cef_request_context_settings_t,
8151        handler: *mut _cef_request_context_handler_t,
8152    ) -> *mut cef_request_context_t;
8153}
8154unsafe extern "C" {
8155    #[doc = "\n Creates a new context object that shares storage with |other| and uses an\n optional |handler|.\n"]
8156    pub fn cef_request_context_cef_create_context_shared(
8157        other: *mut cef_request_context_t,
8158        handler: *mut _cef_request_context_handler_t,
8159    ) -> *mut cef_request_context_t;
8160}
8161#[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"]
8162#[repr(C)]
8163#[derive(Debug, Copy, Clone)]
8164pub struct _cef_browser_t {
8165    #[doc = "\n Base structure.\n"]
8166    pub base: cef_base_ref_counted_t,
8167    #[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"]
8168    pub is_valid: ::std::option::Option<
8169        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8170    >,
8171    #[doc = "\n Returns the browser host object. This function can only be called in the\n browser process.\n"]
8172    pub get_host: ::std::option::Option<
8173        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t,
8174    >,
8175    #[doc = "\n Returns true (1) if the browser can navigate backwards.\n"]
8176    pub can_go_back: ::std::option::Option<
8177        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8178    >,
8179    #[doc = "\n Navigate backwards.\n"]
8180    pub go_back: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
8181    #[doc = "\n Returns true (1) if the browser can navigate forwards.\n"]
8182    pub can_go_forward: ::std::option::Option<
8183        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8184    >,
8185    #[doc = "\n Navigate forwards.\n"]
8186    pub go_forward: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
8187    #[doc = "\n Returns true (1) if the browser is currently loading.\n"]
8188    pub is_loading: ::std::option::Option<
8189        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8190    >,
8191    #[doc = "\n Reload the current page.\n"]
8192    pub reload: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
8193    #[doc = "\n Reload the current page ignoring any cached data.\n"]
8194    pub reload_ignore_cache:
8195        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
8196    #[doc = "\n Stop loading the page.\n"]
8197    pub stop_load: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t)>,
8198    #[doc = "\n Returns the globally unique identifier for this browser. This value is\n also used as the tabId for extension APIs.\n"]
8199    pub get_identifier: ::std::option::Option<
8200        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8201    >,
8202    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
8203    pub is_same: ::std::option::Option<
8204        unsafe extern "C" fn(
8205            self_: *mut _cef_browser_t,
8206            that: *mut _cef_browser_t,
8207        ) -> ::std::os::raw::c_int,
8208    >,
8209    #[doc = "\n Returns true (1) if the browser is a popup.\n"]
8210    pub is_popup: ::std::option::Option<
8211        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8212    >,
8213    #[doc = "\n Returns true (1) if a document has been loaded in the browser.\n"]
8214    pub has_document: ::std::option::Option<
8215        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int,
8216    >,
8217    #[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"]
8218    pub get_main_frame: ::std::option::Option<
8219        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t,
8220    >,
8221    #[doc = "\n Returns the focused frame for the browser.\n"]
8222    pub get_focused_frame: ::std::option::Option<
8223        unsafe extern "C" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t,
8224    >,
8225    #[doc = "\n Returns the frame with the specified identifier, or NULL if not found.\n"]
8226    pub get_frame_by_identifier: ::std::option::Option<
8227        unsafe extern "C" fn(
8228            self_: *mut _cef_browser_t,
8229            identifier: *const cef_string_t,
8230        ) -> *mut _cef_frame_t,
8231    >,
8232    #[doc = "\n Returns the frame with the specified name, or NULL if not found.\n"]
8233    pub get_frame_by_name: ::std::option::Option<
8234        unsafe extern "C" fn(
8235            self_: *mut _cef_browser_t,
8236            name: *const cef_string_t,
8237        ) -> *mut _cef_frame_t,
8238    >,
8239    #[doc = "\n Returns the number of frames that currently exist.\n"]
8240    pub get_frame_count:
8241        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_t) -> usize>,
8242    #[doc = "\n Returns the identifiers of all existing frames.\n"]
8243    pub get_frame_identifiers: ::std::option::Option<
8244        unsafe extern "C" fn(self_: *mut _cef_browser_t, identifiers: cef_string_list_t),
8245    >,
8246    #[doc = "\n Returns the names of all existing frames.\n"]
8247    pub get_frame_names: ::std::option::Option<
8248        unsafe extern "C" fn(self_: *mut _cef_browser_t, names: cef_string_list_t),
8249    >,
8250}
8251#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8252const _: () = {
8253    ["Size of _cef_browser_t"][::std::mem::size_of::<_cef_browser_t>() - 208usize];
8254    ["Alignment of _cef_browser_t"][::std::mem::align_of::<_cef_browser_t>() - 8usize];
8255    ["Offset of field: _cef_browser_t::base"]
8256        [::std::mem::offset_of!(_cef_browser_t, base) - 0usize];
8257    ["Offset of field: _cef_browser_t::is_valid"]
8258        [::std::mem::offset_of!(_cef_browser_t, is_valid) - 40usize];
8259    ["Offset of field: _cef_browser_t::get_host"]
8260        [::std::mem::offset_of!(_cef_browser_t, get_host) - 48usize];
8261    ["Offset of field: _cef_browser_t::can_go_back"]
8262        [::std::mem::offset_of!(_cef_browser_t, can_go_back) - 56usize];
8263    ["Offset of field: _cef_browser_t::go_back"]
8264        [::std::mem::offset_of!(_cef_browser_t, go_back) - 64usize];
8265    ["Offset of field: _cef_browser_t::can_go_forward"]
8266        [::std::mem::offset_of!(_cef_browser_t, can_go_forward) - 72usize];
8267    ["Offset of field: _cef_browser_t::go_forward"]
8268        [::std::mem::offset_of!(_cef_browser_t, go_forward) - 80usize];
8269    ["Offset of field: _cef_browser_t::is_loading"]
8270        [::std::mem::offset_of!(_cef_browser_t, is_loading) - 88usize];
8271    ["Offset of field: _cef_browser_t::reload"]
8272        [::std::mem::offset_of!(_cef_browser_t, reload) - 96usize];
8273    ["Offset of field: _cef_browser_t::reload_ignore_cache"]
8274        [::std::mem::offset_of!(_cef_browser_t, reload_ignore_cache) - 104usize];
8275    ["Offset of field: _cef_browser_t::stop_load"]
8276        [::std::mem::offset_of!(_cef_browser_t, stop_load) - 112usize];
8277    ["Offset of field: _cef_browser_t::get_identifier"]
8278        [::std::mem::offset_of!(_cef_browser_t, get_identifier) - 120usize];
8279    ["Offset of field: _cef_browser_t::is_same"]
8280        [::std::mem::offset_of!(_cef_browser_t, is_same) - 128usize];
8281    ["Offset of field: _cef_browser_t::is_popup"]
8282        [::std::mem::offset_of!(_cef_browser_t, is_popup) - 136usize];
8283    ["Offset of field: _cef_browser_t::has_document"]
8284        [::std::mem::offset_of!(_cef_browser_t, has_document) - 144usize];
8285    ["Offset of field: _cef_browser_t::get_main_frame"]
8286        [::std::mem::offset_of!(_cef_browser_t, get_main_frame) - 152usize];
8287    ["Offset of field: _cef_browser_t::get_focused_frame"]
8288        [::std::mem::offset_of!(_cef_browser_t, get_focused_frame) - 160usize];
8289    ["Offset of field: _cef_browser_t::get_frame_by_identifier"]
8290        [::std::mem::offset_of!(_cef_browser_t, get_frame_by_identifier) - 168usize];
8291    ["Offset of field: _cef_browser_t::get_frame_by_name"]
8292        [::std::mem::offset_of!(_cef_browser_t, get_frame_by_name) - 176usize];
8293    ["Offset of field: _cef_browser_t::get_frame_count"]
8294        [::std::mem::offset_of!(_cef_browser_t, get_frame_count) - 184usize];
8295    ["Offset of field: _cef_browser_t::get_frame_identifiers"]
8296        [::std::mem::offset_of!(_cef_browser_t, get_frame_identifiers) - 192usize];
8297    ["Offset of field: _cef_browser_t::get_frame_names"]
8298        [::std::mem::offset_of!(_cef_browser_t, get_frame_names) - 200usize];
8299};
8300#[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"]
8301pub type cef_browser_t = _cef_browser_t;
8302#[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"]
8303#[repr(C)]
8304#[derive(Debug, Copy, Clone)]
8305pub struct _cef_run_file_dialog_callback_t {
8306    #[doc = "\n Base structure.\n"]
8307    pub base: cef_base_ref_counted_t,
8308    #[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"]
8309    pub on_file_dialog_dismissed: ::std::option::Option<
8310        unsafe extern "C" fn(
8311            self_: *mut _cef_run_file_dialog_callback_t,
8312            file_paths: cef_string_list_t,
8313        ),
8314    >,
8315}
8316#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8317const _: () = {
8318    ["Size of _cef_run_file_dialog_callback_t"]
8319        [::std::mem::size_of::<_cef_run_file_dialog_callback_t>() - 48usize];
8320    ["Alignment of _cef_run_file_dialog_callback_t"]
8321        [::std::mem::align_of::<_cef_run_file_dialog_callback_t>() - 8usize];
8322    ["Offset of field: _cef_run_file_dialog_callback_t::base"]
8323        [::std::mem::offset_of!(_cef_run_file_dialog_callback_t, base) - 0usize];
8324    ["Offset of field: _cef_run_file_dialog_callback_t::on_file_dialog_dismissed"][::std::mem::offset_of!(
8325        _cef_run_file_dialog_callback_t,
8326        on_file_dialog_dismissed
8327    ) - 40usize];
8328};
8329#[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"]
8330pub type cef_run_file_dialog_callback_t = _cef_run_file_dialog_callback_t;
8331#[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"]
8332#[repr(C)]
8333#[derive(Debug, Copy, Clone)]
8334pub struct _cef_navigation_entry_visitor_t {
8335    #[doc = "\n Base structure.\n"]
8336    pub base: cef_base_ref_counted_t,
8337    #[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"]
8338    pub visit: ::std::option::Option<
8339        unsafe extern "C" fn(
8340            self_: *mut _cef_navigation_entry_visitor_t,
8341            entry: *mut _cef_navigation_entry_t,
8342            current: ::std::os::raw::c_int,
8343            index: ::std::os::raw::c_int,
8344            total: ::std::os::raw::c_int,
8345        ) -> ::std::os::raw::c_int,
8346    >,
8347}
8348#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8349const _: () = {
8350    ["Size of _cef_navigation_entry_visitor_t"]
8351        [::std::mem::size_of::<_cef_navigation_entry_visitor_t>() - 48usize];
8352    ["Alignment of _cef_navigation_entry_visitor_t"]
8353        [::std::mem::align_of::<_cef_navigation_entry_visitor_t>() - 8usize];
8354    ["Offset of field: _cef_navigation_entry_visitor_t::base"]
8355        [::std::mem::offset_of!(_cef_navigation_entry_visitor_t, base) - 0usize];
8356    ["Offset of field: _cef_navigation_entry_visitor_t::visit"]
8357        [::std::mem::offset_of!(_cef_navigation_entry_visitor_t, visit) - 40usize];
8358};
8359#[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"]
8360pub type cef_navigation_entry_visitor_t = _cef_navigation_entry_visitor_t;
8361#[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"]
8362#[repr(C)]
8363#[derive(Debug, Copy, Clone)]
8364pub struct _cef_pdf_print_callback_t {
8365    #[doc = "\n Base structure.\n"]
8366    pub base: cef_base_ref_counted_t,
8367    #[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"]
8368    pub on_pdf_print_finished: ::std::option::Option<
8369        unsafe extern "C" fn(
8370            self_: *mut _cef_pdf_print_callback_t,
8371            path: *const cef_string_t,
8372            ok: ::std::os::raw::c_int,
8373        ),
8374    >,
8375}
8376#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8377const _: () = {
8378    ["Size of _cef_pdf_print_callback_t"]
8379        [::std::mem::size_of::<_cef_pdf_print_callback_t>() - 48usize];
8380    ["Alignment of _cef_pdf_print_callback_t"]
8381        [::std::mem::align_of::<_cef_pdf_print_callback_t>() - 8usize];
8382    ["Offset of field: _cef_pdf_print_callback_t::base"]
8383        [::std::mem::offset_of!(_cef_pdf_print_callback_t, base) - 0usize];
8384    ["Offset of field: _cef_pdf_print_callback_t::on_pdf_print_finished"]
8385        [::std::mem::offset_of!(_cef_pdf_print_callback_t, on_pdf_print_finished) - 40usize];
8386};
8387#[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"]
8388pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t;
8389#[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"]
8390#[repr(C)]
8391#[derive(Debug, Copy, Clone)]
8392pub struct _cef_download_image_callback_t {
8393    #[doc = "\n Base structure.\n"]
8394    pub base: cef_base_ref_counted_t,
8395    #[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"]
8396    pub on_download_image_finished: ::std::option::Option<
8397        unsafe extern "C" fn(
8398            self_: *mut _cef_download_image_callback_t,
8399            image_url: *const cef_string_t,
8400            http_status_code: ::std::os::raw::c_int,
8401            image: *mut _cef_image_t,
8402        ),
8403    >,
8404}
8405#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8406const _: () = {
8407    ["Size of _cef_download_image_callback_t"]
8408        [::std::mem::size_of::<_cef_download_image_callback_t>() - 48usize];
8409    ["Alignment of _cef_download_image_callback_t"]
8410        [::std::mem::align_of::<_cef_download_image_callback_t>() - 8usize];
8411    ["Offset of field: _cef_download_image_callback_t::base"]
8412        [::std::mem::offset_of!(_cef_download_image_callback_t, base) - 0usize];
8413    ["Offset of field: _cef_download_image_callback_t::on_download_image_finished"][::std::mem::offset_of!(
8414        _cef_download_image_callback_t,
8415        on_download_image_finished
8416    ) - 40usize];
8417};
8418#[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"]
8419pub type cef_download_image_callback_t = _cef_download_image_callback_t;
8420#[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"]
8421#[repr(C)]
8422#[derive(Debug, Copy, Clone)]
8423pub struct _cef_browser_host_t {
8424    #[doc = "\n Base structure.\n"]
8425    pub base: cef_base_ref_counted_t,
8426    #[doc = "\n Returns the hosted browser object.\n"]
8427    pub get_browser: ::std::option::Option<
8428        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_browser_t,
8429    >,
8430    #[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"]
8431    pub close_browser: ::std::option::Option<
8432        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, force_close: ::std::os::raw::c_int),
8433    >,
8434    #[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"]
8435    pub try_close_browser: ::std::option::Option<
8436        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8437    >,
8438    #[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"]
8439    pub is_ready_to_be_closed: ::std::option::Option<
8440        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8441    >,
8442    #[doc = "\n Set whether the browser is focused.\n"]
8443    pub set_focus: ::std::option::Option<
8444        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, focus: ::std::os::raw::c_int),
8445    >,
8446    #[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"]
8447    pub get_window_handle: ::std::option::Option<
8448        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_window_handle_t,
8449    >,
8450    #[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"]
8451    pub get_opener_window_handle: ::std::option::Option<
8452        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_window_handle_t,
8453    >,
8454    #[doc = "\n Retrieve the unique identifier of the browser that opened this browser.\n Will return 0 for non-popup browsers.\n"]
8455    pub get_opener_identifier: ::std::option::Option<
8456        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8457    >,
8458    #[doc = "\n Returns true (1) if this browser is wrapped in a cef_browser_view_t.\n"]
8459    pub has_view: ::std::option::Option<
8460        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8461    >,
8462    #[doc = "\n Returns the client for this browser.\n"]
8463    pub get_client: ::std::option::Option<
8464        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_client_t,
8465    >,
8466    #[doc = "\n Returns the request context for this browser.\n"]
8467    pub get_request_context: ::std::option::Option<
8468        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_request_context_t,
8469    >,
8470    #[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"]
8471    pub can_zoom: ::std::option::Option<
8472        unsafe extern "C" fn(
8473            self_: *mut _cef_browser_host_t,
8474            command: cef_zoom_command_t,
8475        ) -> ::std::os::raw::c_int,
8476    >,
8477    #[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"]
8478    pub zoom: ::std::option::Option<
8479        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, command: cef_zoom_command_t),
8480    >,
8481    #[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"]
8482    pub get_default_zoom_level:
8483        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> f64>,
8484    #[doc = "\n Get the current zoom level. This function can only be called on the UI\n thread.\n"]
8485    pub get_zoom_level:
8486        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> f64>,
8487    #[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"]
8488    pub set_zoom_level: ::std::option::Option<
8489        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, zoomLevel: f64),
8490    >,
8491    #[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"]
8492    pub run_file_dialog: ::std::option::Option<
8493        unsafe extern "C" fn(
8494            self_: *mut _cef_browser_host_t,
8495            mode: cef_file_dialog_mode_t,
8496            title: *const cef_string_t,
8497            default_file_path: *const cef_string_t,
8498            accept_filters: cef_string_list_t,
8499            callback: *mut _cef_run_file_dialog_callback_t,
8500        ),
8501    >,
8502    #[doc = "\n Download the file at |url| using cef_download_handler_t.\n"]
8503    pub start_download: ::std::option::Option<
8504        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, url: *const cef_string_t),
8505    >,
8506    #[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"]
8507    pub download_image: ::std::option::Option<
8508        unsafe extern "C" fn(
8509            self_: *mut _cef_browser_host_t,
8510            image_url: *const cef_string_t,
8511            is_favicon: ::std::os::raw::c_int,
8512            max_image_size: u32,
8513            bypass_cache: ::std::os::raw::c_int,
8514            callback: *mut _cef_download_image_callback_t,
8515        ),
8516    >,
8517    #[doc = "\n Print the current browser contents.\n"]
8518    pub print: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8519    #[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"]
8520    pub print_to_pdf: ::std::option::Option<
8521        unsafe extern "C" fn(
8522            self_: *mut _cef_browser_host_t,
8523            path: *const cef_string_t,
8524            settings: *const _cef_pdf_print_settings_t,
8525            callback: *mut _cef_pdf_print_callback_t,
8526        ),
8527    >,
8528    #[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"]
8529    pub find: ::std::option::Option<
8530        unsafe extern "C" fn(
8531            self_: *mut _cef_browser_host_t,
8532            searchText: *const cef_string_t,
8533            forward: ::std::os::raw::c_int,
8534            matchCase: ::std::os::raw::c_int,
8535            findNext: ::std::os::raw::c_int,
8536        ),
8537    >,
8538    #[doc = "\n Cancel all searches that are currently going on.\n"]
8539    pub stop_finding: ::std::option::Option<
8540        unsafe extern "C" fn(
8541            self_: *mut _cef_browser_host_t,
8542            clearSelection: ::std::os::raw::c_int,
8543        ),
8544    >,
8545    #[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"]
8546    pub show_dev_tools: ::std::option::Option<
8547        unsafe extern "C" fn(
8548            self_: *mut _cef_browser_host_t,
8549            windowInfo: *const _cef_window_info_t,
8550            client: *mut _cef_client_t,
8551            settings: *const _cef_browser_settings_t,
8552            inspect_element_at: *const cef_point_t,
8553        ),
8554    >,
8555    #[doc = "\n Explicitly close the associated DevTools browser, if any.\n"]
8556    pub close_dev_tools:
8557        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8558    #[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"]
8559    pub has_dev_tools: ::std::option::Option<
8560        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8561    >,
8562    #[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"]
8563    pub send_dev_tools_message: ::std::option::Option<
8564        unsafe extern "C" fn(
8565            self_: *mut _cef_browser_host_t,
8566            message: *const ::std::os::raw::c_void,
8567            message_size: usize,
8568        ) -> ::std::os::raw::c_int,
8569    >,
8570    #[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"]
8571    pub execute_dev_tools_method: ::std::option::Option<
8572        unsafe extern "C" fn(
8573            self_: *mut _cef_browser_host_t,
8574            message_id: ::std::os::raw::c_int,
8575            method: *const cef_string_t,
8576            params: *mut _cef_dictionary_value_t,
8577        ) -> ::std::os::raw::c_int,
8578    >,
8579    #[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"]
8580    pub add_dev_tools_message_observer: ::std::option::Option<
8581        unsafe extern "C" fn(
8582            self_: *mut _cef_browser_host_t,
8583            observer: *mut _cef_dev_tools_message_observer_t,
8584        ) -> *mut _cef_registration_t,
8585    >,
8586    #[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"]
8587    pub get_navigation_entries: ::std::option::Option<
8588        unsafe extern "C" fn(
8589            self_: *mut _cef_browser_host_t,
8590            visitor: *mut _cef_navigation_entry_visitor_t,
8591            current_only: ::std::os::raw::c_int,
8592        ),
8593    >,
8594    #[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"]
8595    pub replace_misspelling: ::std::option::Option<
8596        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t),
8597    >,
8598    #[doc = "\n Add the specified |word| to the spelling dictionary.\n"]
8599    pub add_word_to_dictionary: ::std::option::Option<
8600        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t),
8601    >,
8602    #[doc = "\n Returns true (1) if window rendering is disabled.\n"]
8603    pub is_window_rendering_disabled: ::std::option::Option<
8604        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8605    >,
8606    #[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"]
8607    pub was_resized: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8608    #[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"]
8609    pub was_hidden: ::std::option::Option<
8610        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, hidden: ::std::os::raw::c_int),
8611    >,
8612    #[doc = "\n Notify the browser that screen information has changed. Updated\n information will be sent to the renderer process to configure screen size\n and position values used by CSS and JavaScript (window.deviceScaleFactor,\n window.screenX/Y, window.outerWidth/Height, etc.). For background see\n https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage.md#markdown-\n header-coordinate-systems\n\n This function is used with (a) windowless rendering and (b) windowed\n rendering with external (client-provided) root window.\n\n With windowless rendering the browser will call\n cef_render_handler_t::GetScreenInfo,\n cef_render_handler_t::GetRootScreenRect and\n cef_render_handler_t::GetViewRect. This simulates moving or resizing the\n root window in the current display, moving the root window from one\n display to another, or changing the properties of the current display.\n\n With windowed rendering the browser will call\n cef_display_handler_t::GetRootWindowScreenRect and use the associated\n display properties.\n"]
8613    pub notify_screen_info_changed:
8614        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8615    #[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"]
8616    pub invalidate: ::std::option::Option<
8617        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, type_: cef_paint_element_type_t),
8618    >,
8619    #[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"]
8620    pub send_external_begin_frame:
8621        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8622    #[doc = "\n Send a key event to the browser.\n"]
8623    pub send_key_event: ::std::option::Option<
8624        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_key_event_t),
8625    >,
8626    #[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"]
8627    pub send_mouse_click_event: ::std::option::Option<
8628        unsafe extern "C" fn(
8629            self_: *mut _cef_browser_host_t,
8630            event: *const cef_mouse_event_t,
8631            type_: cef_mouse_button_type_t,
8632            mouseUp: ::std::os::raw::c_int,
8633            clickCount: ::std::os::raw::c_int,
8634        ),
8635    >,
8636    #[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"]
8637    pub send_mouse_move_event: ::std::option::Option<
8638        unsafe extern "C" fn(
8639            self_: *mut _cef_browser_host_t,
8640            event: *const cef_mouse_event_t,
8641            mouseLeave: ::std::os::raw::c_int,
8642        ),
8643    >,
8644    #[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"]
8645    pub send_mouse_wheel_event: ::std::option::Option<
8646        unsafe extern "C" fn(
8647            self_: *mut _cef_browser_host_t,
8648            event: *const cef_mouse_event_t,
8649            deltaX: ::std::os::raw::c_int,
8650            deltaY: ::std::os::raw::c_int,
8651        ),
8652    >,
8653    #[doc = "\n Send a touch event to the browser for a windowless browser.\n"]
8654    pub send_touch_event: ::std::option::Option<
8655        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_touch_event_t),
8656    >,
8657    #[doc = "\n Send a capture lost event to the browser.\n"]
8658    pub send_capture_lost_event:
8659        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8660    #[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"]
8661    pub notify_move_or_resize_started:
8662        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8663    #[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 default value is 30. This\n function can only be called on the UI thread.\n"]
8664    pub get_windowless_frame_rate: ::std::option::Option<
8665        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8666    >,
8667    #[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 default value is 30. Can\n also be set at browser creation via\n cef_browser_tSettings.windowless_frame_rate.\n"]
8668    pub set_windowless_frame_rate: ::std::option::Option<
8669        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, frame_rate: ::std::os::raw::c_int),
8670    >,
8671    #[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"]
8672    pub ime_set_composition: ::std::option::Option<
8673        unsafe extern "C" fn(
8674            self_: *mut _cef_browser_host_t,
8675            text: *const cef_string_t,
8676            underlinesCount: usize,
8677            underlines: *const cef_composition_underline_t,
8678            replacement_range: *const cef_range_t,
8679            selection_range: *const cef_range_t,
8680        ),
8681    >,
8682    #[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"]
8683    pub ime_commit_text: ::std::option::Option<
8684        unsafe extern "C" fn(
8685            self_: *mut _cef_browser_host_t,
8686            text: *const cef_string_t,
8687            replacement_range: *const cef_range_t,
8688            relative_cursor_pos: ::std::os::raw::c_int,
8689        ),
8690    >,
8691    #[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"]
8692    pub ime_finish_composing_text: ::std::option::Option<
8693        unsafe extern "C" fn(
8694            self_: *mut _cef_browser_host_t,
8695            keep_selection: ::std::os::raw::c_int,
8696        ),
8697    >,
8698    #[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"]
8699    pub ime_cancel_composition:
8700        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8701    #[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"]
8702    pub drag_target_drag_enter: ::std::option::Option<
8703        unsafe extern "C" fn(
8704            self_: *mut _cef_browser_host_t,
8705            drag_data: *mut _cef_drag_data_t,
8706            event: *const cef_mouse_event_t,
8707            allowed_ops: cef_drag_operations_mask_t,
8708        ),
8709    >,
8710    #[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"]
8711    pub drag_target_drag_over: ::std::option::Option<
8712        unsafe extern "C" fn(
8713            self_: *mut _cef_browser_host_t,
8714            event: *const cef_mouse_event_t,
8715            allowed_ops: cef_drag_operations_mask_t,
8716        ),
8717    >,
8718    #[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"]
8719    pub drag_target_drag_leave:
8720        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8721    #[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"]
8722    pub drag_target_drop: ::std::option::Option<
8723        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, event: *const cef_mouse_event_t),
8724    >,
8725    #[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"]
8726    pub drag_source_ended_at: ::std::option::Option<
8727        unsafe extern "C" fn(
8728            self_: *mut _cef_browser_host_t,
8729            x: ::std::os::raw::c_int,
8730            y: ::std::os::raw::c_int,
8731            op: cef_drag_operations_mask_t,
8732        ),
8733    >,
8734    #[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"]
8735    pub drag_source_system_drag_ended:
8736        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_host_t)>,
8737    #[doc = "\n Returns the current visible navigation entry for this browser. This\n function can only be called on the UI thread.\n"]
8738    pub get_visible_navigation_entry: ::std::option::Option<
8739        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_navigation_entry_t,
8740    >,
8741    #[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"]
8742    pub set_accessibility_state: ::std::option::Option<
8743        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, accessibility_state: cef_state_t),
8744    >,
8745    #[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"]
8746    pub set_auto_resize_enabled: ::std::option::Option<
8747        unsafe extern "C" fn(
8748            self_: *mut _cef_browser_host_t,
8749            enabled: ::std::os::raw::c_int,
8750            min_size: *const cef_size_t,
8751            max_size: *const cef_size_t,
8752        ),
8753    >,
8754    #[doc = "\n Set whether the browser's audio is muted.\n"]
8755    pub set_audio_muted: ::std::option::Option<
8756        unsafe extern "C" fn(self_: *mut _cef_browser_host_t, mute: ::std::os::raw::c_int),
8757    >,
8758    #[doc = "\n Returns true (1) if the browser's audio is muted.  This function can only\n be called on the UI thread.\n"]
8759    pub is_audio_muted: ::std::option::Option<
8760        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8761    >,
8762    #[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"]
8763    pub is_fullscreen: ::std::option::Option<
8764        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8765    >,
8766    #[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"]
8767    pub exit_fullscreen: ::std::option::Option<
8768        unsafe extern "C" fn(
8769            self_: *mut _cef_browser_host_t,
8770            will_cause_resize: ::std::os::raw::c_int,
8771        ),
8772    >,
8773    #[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"]
8774    pub can_execute_chrome_command: ::std::option::Option<
8775        unsafe extern "C" fn(
8776            self_: *mut _cef_browser_host_t,
8777            command_id: ::std::os::raw::c_int,
8778        ) -> ::std::os::raw::c_int,
8779    >,
8780    #[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"]
8781    pub execute_chrome_command: ::std::option::Option<
8782        unsafe extern "C" fn(
8783            self_: *mut _cef_browser_host_t,
8784            command_id: ::std::os::raw::c_int,
8785            disposition: cef_window_open_disposition_t,
8786        ),
8787    >,
8788    #[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"]
8789    pub is_render_process_unresponsive: ::std::option::Option<
8790        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int,
8791    >,
8792    #[doc = "\n Returns the runtime style for this browser (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
8793    pub get_runtime_style: ::std::option::Option<
8794        unsafe extern "C" fn(self_: *mut _cef_browser_host_t) -> cef_runtime_style_t,
8795    >,
8796}
8797#[allow(clippy::unnecessary_operation, clippy::identity_op)]
8798const _: () = {
8799    ["Size of _cef_browser_host_t"][::std::mem::size_of::<_cef_browser_host_t>() - 584usize];
8800    ["Alignment of _cef_browser_host_t"][::std::mem::align_of::<_cef_browser_host_t>() - 8usize];
8801    ["Offset of field: _cef_browser_host_t::base"]
8802        [::std::mem::offset_of!(_cef_browser_host_t, base) - 0usize];
8803    ["Offset of field: _cef_browser_host_t::get_browser"]
8804        [::std::mem::offset_of!(_cef_browser_host_t, get_browser) - 40usize];
8805    ["Offset of field: _cef_browser_host_t::close_browser"]
8806        [::std::mem::offset_of!(_cef_browser_host_t, close_browser) - 48usize];
8807    ["Offset of field: _cef_browser_host_t::try_close_browser"]
8808        [::std::mem::offset_of!(_cef_browser_host_t, try_close_browser) - 56usize];
8809    ["Offset of field: _cef_browser_host_t::is_ready_to_be_closed"]
8810        [::std::mem::offset_of!(_cef_browser_host_t, is_ready_to_be_closed) - 64usize];
8811    ["Offset of field: _cef_browser_host_t::set_focus"]
8812        [::std::mem::offset_of!(_cef_browser_host_t, set_focus) - 72usize];
8813    ["Offset of field: _cef_browser_host_t::get_window_handle"]
8814        [::std::mem::offset_of!(_cef_browser_host_t, get_window_handle) - 80usize];
8815    ["Offset of field: _cef_browser_host_t::get_opener_window_handle"]
8816        [::std::mem::offset_of!(_cef_browser_host_t, get_opener_window_handle) - 88usize];
8817    ["Offset of field: _cef_browser_host_t::get_opener_identifier"]
8818        [::std::mem::offset_of!(_cef_browser_host_t, get_opener_identifier) - 96usize];
8819    ["Offset of field: _cef_browser_host_t::has_view"]
8820        [::std::mem::offset_of!(_cef_browser_host_t, has_view) - 104usize];
8821    ["Offset of field: _cef_browser_host_t::get_client"]
8822        [::std::mem::offset_of!(_cef_browser_host_t, get_client) - 112usize];
8823    ["Offset of field: _cef_browser_host_t::get_request_context"]
8824        [::std::mem::offset_of!(_cef_browser_host_t, get_request_context) - 120usize];
8825    ["Offset of field: _cef_browser_host_t::can_zoom"]
8826        [::std::mem::offset_of!(_cef_browser_host_t, can_zoom) - 128usize];
8827    ["Offset of field: _cef_browser_host_t::zoom"]
8828        [::std::mem::offset_of!(_cef_browser_host_t, zoom) - 136usize];
8829    ["Offset of field: _cef_browser_host_t::get_default_zoom_level"]
8830        [::std::mem::offset_of!(_cef_browser_host_t, get_default_zoom_level) - 144usize];
8831    ["Offset of field: _cef_browser_host_t::get_zoom_level"]
8832        [::std::mem::offset_of!(_cef_browser_host_t, get_zoom_level) - 152usize];
8833    ["Offset of field: _cef_browser_host_t::set_zoom_level"]
8834        [::std::mem::offset_of!(_cef_browser_host_t, set_zoom_level) - 160usize];
8835    ["Offset of field: _cef_browser_host_t::run_file_dialog"]
8836        [::std::mem::offset_of!(_cef_browser_host_t, run_file_dialog) - 168usize];
8837    ["Offset of field: _cef_browser_host_t::start_download"]
8838        [::std::mem::offset_of!(_cef_browser_host_t, start_download) - 176usize];
8839    ["Offset of field: _cef_browser_host_t::download_image"]
8840        [::std::mem::offset_of!(_cef_browser_host_t, download_image) - 184usize];
8841    ["Offset of field: _cef_browser_host_t::print"]
8842        [::std::mem::offset_of!(_cef_browser_host_t, print) - 192usize];
8843    ["Offset of field: _cef_browser_host_t::print_to_pdf"]
8844        [::std::mem::offset_of!(_cef_browser_host_t, print_to_pdf) - 200usize];
8845    ["Offset of field: _cef_browser_host_t::find"]
8846        [::std::mem::offset_of!(_cef_browser_host_t, find) - 208usize];
8847    ["Offset of field: _cef_browser_host_t::stop_finding"]
8848        [::std::mem::offset_of!(_cef_browser_host_t, stop_finding) - 216usize];
8849    ["Offset of field: _cef_browser_host_t::show_dev_tools"]
8850        [::std::mem::offset_of!(_cef_browser_host_t, show_dev_tools) - 224usize];
8851    ["Offset of field: _cef_browser_host_t::close_dev_tools"]
8852        [::std::mem::offset_of!(_cef_browser_host_t, close_dev_tools) - 232usize];
8853    ["Offset of field: _cef_browser_host_t::has_dev_tools"]
8854        [::std::mem::offset_of!(_cef_browser_host_t, has_dev_tools) - 240usize];
8855    ["Offset of field: _cef_browser_host_t::send_dev_tools_message"]
8856        [::std::mem::offset_of!(_cef_browser_host_t, send_dev_tools_message) - 248usize];
8857    ["Offset of field: _cef_browser_host_t::execute_dev_tools_method"]
8858        [::std::mem::offset_of!(_cef_browser_host_t, execute_dev_tools_method) - 256usize];
8859    ["Offset of field: _cef_browser_host_t::add_dev_tools_message_observer"]
8860        [::std::mem::offset_of!(_cef_browser_host_t, add_dev_tools_message_observer) - 264usize];
8861    ["Offset of field: _cef_browser_host_t::get_navigation_entries"]
8862        [::std::mem::offset_of!(_cef_browser_host_t, get_navigation_entries) - 272usize];
8863    ["Offset of field: _cef_browser_host_t::replace_misspelling"]
8864        [::std::mem::offset_of!(_cef_browser_host_t, replace_misspelling) - 280usize];
8865    ["Offset of field: _cef_browser_host_t::add_word_to_dictionary"]
8866        [::std::mem::offset_of!(_cef_browser_host_t, add_word_to_dictionary) - 288usize];
8867    ["Offset of field: _cef_browser_host_t::is_window_rendering_disabled"]
8868        [::std::mem::offset_of!(_cef_browser_host_t, is_window_rendering_disabled) - 296usize];
8869    ["Offset of field: _cef_browser_host_t::was_resized"]
8870        [::std::mem::offset_of!(_cef_browser_host_t, was_resized) - 304usize];
8871    ["Offset of field: _cef_browser_host_t::was_hidden"]
8872        [::std::mem::offset_of!(_cef_browser_host_t, was_hidden) - 312usize];
8873    ["Offset of field: _cef_browser_host_t::notify_screen_info_changed"]
8874        [::std::mem::offset_of!(_cef_browser_host_t, notify_screen_info_changed) - 320usize];
8875    ["Offset of field: _cef_browser_host_t::invalidate"]
8876        [::std::mem::offset_of!(_cef_browser_host_t, invalidate) - 328usize];
8877    ["Offset of field: _cef_browser_host_t::send_external_begin_frame"]
8878        [::std::mem::offset_of!(_cef_browser_host_t, send_external_begin_frame) - 336usize];
8879    ["Offset of field: _cef_browser_host_t::send_key_event"]
8880        [::std::mem::offset_of!(_cef_browser_host_t, send_key_event) - 344usize];
8881    ["Offset of field: _cef_browser_host_t::send_mouse_click_event"]
8882        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_click_event) - 352usize];
8883    ["Offset of field: _cef_browser_host_t::send_mouse_move_event"]
8884        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_move_event) - 360usize];
8885    ["Offset of field: _cef_browser_host_t::send_mouse_wheel_event"]
8886        [::std::mem::offset_of!(_cef_browser_host_t, send_mouse_wheel_event) - 368usize];
8887    ["Offset of field: _cef_browser_host_t::send_touch_event"]
8888        [::std::mem::offset_of!(_cef_browser_host_t, send_touch_event) - 376usize];
8889    ["Offset of field: _cef_browser_host_t::send_capture_lost_event"]
8890        [::std::mem::offset_of!(_cef_browser_host_t, send_capture_lost_event) - 384usize];
8891    ["Offset of field: _cef_browser_host_t::notify_move_or_resize_started"]
8892        [::std::mem::offset_of!(_cef_browser_host_t, notify_move_or_resize_started) - 392usize];
8893    ["Offset of field: _cef_browser_host_t::get_windowless_frame_rate"]
8894        [::std::mem::offset_of!(_cef_browser_host_t, get_windowless_frame_rate) - 400usize];
8895    ["Offset of field: _cef_browser_host_t::set_windowless_frame_rate"]
8896        [::std::mem::offset_of!(_cef_browser_host_t, set_windowless_frame_rate) - 408usize];
8897    ["Offset of field: _cef_browser_host_t::ime_set_composition"]
8898        [::std::mem::offset_of!(_cef_browser_host_t, ime_set_composition) - 416usize];
8899    ["Offset of field: _cef_browser_host_t::ime_commit_text"]
8900        [::std::mem::offset_of!(_cef_browser_host_t, ime_commit_text) - 424usize];
8901    ["Offset of field: _cef_browser_host_t::ime_finish_composing_text"]
8902        [::std::mem::offset_of!(_cef_browser_host_t, ime_finish_composing_text) - 432usize];
8903    ["Offset of field: _cef_browser_host_t::ime_cancel_composition"]
8904        [::std::mem::offset_of!(_cef_browser_host_t, ime_cancel_composition) - 440usize];
8905    ["Offset of field: _cef_browser_host_t::drag_target_drag_enter"]
8906        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_enter) - 448usize];
8907    ["Offset of field: _cef_browser_host_t::drag_target_drag_over"]
8908        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_over) - 456usize];
8909    ["Offset of field: _cef_browser_host_t::drag_target_drag_leave"]
8910        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drag_leave) - 464usize];
8911    ["Offset of field: _cef_browser_host_t::drag_target_drop"]
8912        [::std::mem::offset_of!(_cef_browser_host_t, drag_target_drop) - 472usize];
8913    ["Offset of field: _cef_browser_host_t::drag_source_ended_at"]
8914        [::std::mem::offset_of!(_cef_browser_host_t, drag_source_ended_at) - 480usize];
8915    ["Offset of field: _cef_browser_host_t::drag_source_system_drag_ended"]
8916        [::std::mem::offset_of!(_cef_browser_host_t, drag_source_system_drag_ended) - 488usize];
8917    ["Offset of field: _cef_browser_host_t::get_visible_navigation_entry"]
8918        [::std::mem::offset_of!(_cef_browser_host_t, get_visible_navigation_entry) - 496usize];
8919    ["Offset of field: _cef_browser_host_t::set_accessibility_state"]
8920        [::std::mem::offset_of!(_cef_browser_host_t, set_accessibility_state) - 504usize];
8921    ["Offset of field: _cef_browser_host_t::set_auto_resize_enabled"]
8922        [::std::mem::offset_of!(_cef_browser_host_t, set_auto_resize_enabled) - 512usize];
8923    ["Offset of field: _cef_browser_host_t::set_audio_muted"]
8924        [::std::mem::offset_of!(_cef_browser_host_t, set_audio_muted) - 520usize];
8925    ["Offset of field: _cef_browser_host_t::is_audio_muted"]
8926        [::std::mem::offset_of!(_cef_browser_host_t, is_audio_muted) - 528usize];
8927    ["Offset of field: _cef_browser_host_t::is_fullscreen"]
8928        [::std::mem::offset_of!(_cef_browser_host_t, is_fullscreen) - 536usize];
8929    ["Offset of field: _cef_browser_host_t::exit_fullscreen"]
8930        [::std::mem::offset_of!(_cef_browser_host_t, exit_fullscreen) - 544usize];
8931    ["Offset of field: _cef_browser_host_t::can_execute_chrome_command"]
8932        [::std::mem::offset_of!(_cef_browser_host_t, can_execute_chrome_command) - 552usize];
8933    ["Offset of field: _cef_browser_host_t::execute_chrome_command"]
8934        [::std::mem::offset_of!(_cef_browser_host_t, execute_chrome_command) - 560usize];
8935    ["Offset of field: _cef_browser_host_t::is_render_process_unresponsive"]
8936        [::std::mem::offset_of!(_cef_browser_host_t, is_render_process_unresponsive) - 568usize];
8937    ["Offset of field: _cef_browser_host_t::get_runtime_style"]
8938        [::std::mem::offset_of!(_cef_browser_host_t, get_runtime_style) - 576usize];
8939};
8940#[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"]
8941pub type cef_browser_host_t = _cef_browser_host_t;
8942unsafe extern "C" {
8943    #[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"]
8944    pub fn cef_browser_host_create_browser(
8945        windowInfo: *const cef_window_info_t,
8946        client: *mut _cef_client_t,
8947        url: *const cef_string_t,
8948        settings: *const _cef_browser_settings_t,
8949        extra_info: *mut _cef_dictionary_value_t,
8950        request_context: *mut _cef_request_context_t,
8951    ) -> ::std::os::raw::c_int;
8952}
8953unsafe extern "C" {
8954    #[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"]
8955    pub fn cef_browser_host_create_browser_sync(
8956        windowInfo: *const cef_window_info_t,
8957        client: *mut _cef_client_t,
8958        url: *const cef_string_t,
8959        settings: *const _cef_browser_settings_t,
8960        extra_info: *mut _cef_dictionary_value_t,
8961        request_context: *mut _cef_request_context_t,
8962    ) -> *mut cef_browser_t;
8963}
8964unsafe extern "C" {
8965    #[doc = "\n Returns the browser (if any) with the specified identifier.\n"]
8966    pub fn cef_browser_host_get_browser_by_identifier(
8967        browser_id: ::std::os::raw::c_int,
8968    ) -> *mut cef_browser_t;
8969}
8970#[doc = "\n Implement this structure to handle audio events.\n\n NOTE: This struct is allocated client-side.\n"]
8971#[repr(C)]
8972#[derive(Debug, Copy, Clone)]
8973pub struct _cef_audio_handler_t {
8974    #[doc = "\n Base structure.\n"]
8975    pub base: cef_base_ref_counted_t,
8976    #[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"]
8977    pub get_audio_parameters: ::std::option::Option<
8978        unsafe extern "C" fn(
8979            self_: *mut _cef_audio_handler_t,
8980            browser: *mut _cef_browser_t,
8981            params: *mut cef_audio_parameters_t,
8982        ) -> ::std::os::raw::c_int,
8983    >,
8984    #[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"]
8985    pub on_audio_stream_started: ::std::option::Option<
8986        unsafe extern "C" fn(
8987            self_: *mut _cef_audio_handler_t,
8988            browser: *mut _cef_browser_t,
8989            params: *const cef_audio_parameters_t,
8990            channels: ::std::os::raw::c_int,
8991        ),
8992    >,
8993    #[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"]
8994    pub on_audio_stream_packet: ::std::option::Option<
8995        unsafe extern "C" fn(
8996            self_: *mut _cef_audio_handler_t,
8997            browser: *mut _cef_browser_t,
8998            data: *mut *const f32,
8999            frames: ::std::os::raw::c_int,
9000            pts: i64,
9001        ),
9002    >,
9003    #[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"]
9004    pub on_audio_stream_stopped: ::std::option::Option<
9005        unsafe extern "C" fn(self_: *mut _cef_audio_handler_t, browser: *mut _cef_browser_t),
9006    >,
9007    #[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"]
9008    pub on_audio_stream_error: ::std::option::Option<
9009        unsafe extern "C" fn(
9010            self_: *mut _cef_audio_handler_t,
9011            browser: *mut _cef_browser_t,
9012            message: *const cef_string_t,
9013        ),
9014    >,
9015}
9016#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9017const _: () = {
9018    ["Size of _cef_audio_handler_t"][::std::mem::size_of::<_cef_audio_handler_t>() - 80usize];
9019    ["Alignment of _cef_audio_handler_t"][::std::mem::align_of::<_cef_audio_handler_t>() - 8usize];
9020    ["Offset of field: _cef_audio_handler_t::base"]
9021        [::std::mem::offset_of!(_cef_audio_handler_t, base) - 0usize];
9022    ["Offset of field: _cef_audio_handler_t::get_audio_parameters"]
9023        [::std::mem::offset_of!(_cef_audio_handler_t, get_audio_parameters) - 40usize];
9024    ["Offset of field: _cef_audio_handler_t::on_audio_stream_started"]
9025        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_started) - 48usize];
9026    ["Offset of field: _cef_audio_handler_t::on_audio_stream_packet"]
9027        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_packet) - 56usize];
9028    ["Offset of field: _cef_audio_handler_t::on_audio_stream_stopped"]
9029        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_stopped) - 64usize];
9030    ["Offset of field: _cef_audio_handler_t::on_audio_stream_error"]
9031        [::std::mem::offset_of!(_cef_audio_handler_t, on_audio_stream_error) - 72usize];
9032};
9033#[doc = "\n Implement this structure to handle audio events.\n\n NOTE: This struct is allocated client-side.\n"]
9034pub type cef_audio_handler_t = _cef_audio_handler_t;
9035#[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"]
9036#[repr(C)]
9037#[derive(Debug, Copy, Clone)]
9038pub struct _cef_command_handler_t {
9039    #[doc = "\n Base structure.\n"]
9040    pub base: cef_base_ref_counted_t,
9041    #[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"]
9042    pub on_chrome_command: ::std::option::Option<
9043        unsafe extern "C" fn(
9044            self_: *mut _cef_command_handler_t,
9045            browser: *mut _cef_browser_t,
9046            command_id: ::std::os::raw::c_int,
9047            disposition: cef_window_open_disposition_t,
9048        ) -> ::std::os::raw::c_int,
9049    >,
9050    #[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"]
9051    pub is_chrome_app_menu_item_visible: ::std::option::Option<
9052        unsafe extern "C" fn(
9053            self_: *mut _cef_command_handler_t,
9054            browser: *mut _cef_browser_t,
9055            command_id: ::std::os::raw::c_int,
9056        ) -> ::std::os::raw::c_int,
9057    >,
9058    #[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"]
9059    pub is_chrome_app_menu_item_enabled: ::std::option::Option<
9060        unsafe extern "C" fn(
9061            self_: *mut _cef_command_handler_t,
9062            browser: *mut _cef_browser_t,
9063            command_id: ::std::os::raw::c_int,
9064        ) -> ::std::os::raw::c_int,
9065    >,
9066    #[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"]
9067    pub is_chrome_page_action_icon_visible: ::std::option::Option<
9068        unsafe extern "C" fn(
9069            self_: *mut _cef_command_handler_t,
9070            icon_type: cef_chrome_page_action_icon_type_t,
9071        ) -> ::std::os::raw::c_int,
9072    >,
9073    #[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"]
9074    pub is_chrome_toolbar_button_visible: ::std::option::Option<
9075        unsafe extern "C" fn(
9076            self_: *mut _cef_command_handler_t,
9077            button_type: cef_chrome_toolbar_button_type_t,
9078        ) -> ::std::os::raw::c_int,
9079    >,
9080}
9081#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9082const _: () = {
9083    ["Size of _cef_command_handler_t"][::std::mem::size_of::<_cef_command_handler_t>() - 80usize];
9084    ["Alignment of _cef_command_handler_t"]
9085        [::std::mem::align_of::<_cef_command_handler_t>() - 8usize];
9086    ["Offset of field: _cef_command_handler_t::base"]
9087        [::std::mem::offset_of!(_cef_command_handler_t, base) - 0usize];
9088    ["Offset of field: _cef_command_handler_t::on_chrome_command"]
9089        [::std::mem::offset_of!(_cef_command_handler_t, on_chrome_command) - 40usize];
9090    ["Offset of field: _cef_command_handler_t::is_chrome_app_menu_item_visible"]
9091        [::std::mem::offset_of!(_cef_command_handler_t, is_chrome_app_menu_item_visible) - 48usize];
9092    ["Offset of field: _cef_command_handler_t::is_chrome_app_menu_item_enabled"]
9093        [::std::mem::offset_of!(_cef_command_handler_t, is_chrome_app_menu_item_enabled) - 56usize];
9094    ["Offset of field: _cef_command_handler_t::is_chrome_page_action_icon_visible"][::std::mem::offset_of!(
9095        _cef_command_handler_t,
9096        is_chrome_page_action_icon_visible
9097    ) - 64usize];
9098    ["Offset of field: _cef_command_handler_t::is_chrome_toolbar_button_visible"][::std::mem::offset_of!(
9099        _cef_command_handler_t,
9100        is_chrome_toolbar_button_visible
9101    ) - 72usize];
9102};
9103#[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"]
9104pub type cef_command_handler_t = _cef_command_handler_t;
9105#[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"]
9106#[repr(C)]
9107#[derive(Debug, Copy, Clone)]
9108pub struct _cef_menu_model_delegate_t {
9109    #[doc = "\n Base structure.\n"]
9110    pub base: cef_base_ref_counted_t,
9111    #[doc = "\n Perform the action associated with the specified |command_id| and optional\n |event_flags|.\n"]
9112    pub execute_command: ::std::option::Option<
9113        unsafe extern "C" fn(
9114            self_: *mut _cef_menu_model_delegate_t,
9115            menu_model: *mut _cef_menu_model_t,
9116            command_id: ::std::os::raw::c_int,
9117            event_flags: cef_event_flags_t,
9118        ),
9119    >,
9120    #[doc = "\n Called when the user moves the mouse outside the menu and over the owning\n window.\n"]
9121    pub mouse_outside_menu: ::std::option::Option<
9122        unsafe extern "C" fn(
9123            self_: *mut _cef_menu_model_delegate_t,
9124            menu_model: *mut _cef_menu_model_t,
9125            screen_point: *const cef_point_t,
9126        ),
9127    >,
9128    #[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"]
9129    pub unhandled_open_submenu: ::std::option::Option<
9130        unsafe extern "C" fn(
9131            self_: *mut _cef_menu_model_delegate_t,
9132            menu_model: *mut _cef_menu_model_t,
9133            is_rtl: ::std::os::raw::c_int,
9134        ),
9135    >,
9136    #[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"]
9137    pub unhandled_close_submenu: ::std::option::Option<
9138        unsafe extern "C" fn(
9139            self_: *mut _cef_menu_model_delegate_t,
9140            menu_model: *mut _cef_menu_model_t,
9141            is_rtl: ::std::os::raw::c_int,
9142        ),
9143    >,
9144    #[doc = "\n The menu is about to show.\n"]
9145    pub menu_will_show: ::std::option::Option<
9146        unsafe extern "C" fn(
9147            self_: *mut _cef_menu_model_delegate_t,
9148            menu_model: *mut _cef_menu_model_t,
9149        ),
9150    >,
9151    #[doc = "\n The menu has closed.\n"]
9152    pub menu_closed: ::std::option::Option<
9153        unsafe extern "C" fn(
9154            self_: *mut _cef_menu_model_delegate_t,
9155            menu_model: *mut _cef_menu_model_t,
9156        ),
9157    >,
9158    #[doc = "\n Optionally modify a menu item label. Return true (1) if |label| was\n modified.\n"]
9159    pub format_label: ::std::option::Option<
9160        unsafe extern "C" fn(
9161            self_: *mut _cef_menu_model_delegate_t,
9162            menu_model: *mut _cef_menu_model_t,
9163            label: *mut cef_string_t,
9164        ) -> ::std::os::raw::c_int,
9165    >,
9166}
9167#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9168const _: () = {
9169    ["Size of _cef_menu_model_delegate_t"]
9170        [::std::mem::size_of::<_cef_menu_model_delegate_t>() - 96usize];
9171    ["Alignment of _cef_menu_model_delegate_t"]
9172        [::std::mem::align_of::<_cef_menu_model_delegate_t>() - 8usize];
9173    ["Offset of field: _cef_menu_model_delegate_t::base"]
9174        [::std::mem::offset_of!(_cef_menu_model_delegate_t, base) - 0usize];
9175    ["Offset of field: _cef_menu_model_delegate_t::execute_command"]
9176        [::std::mem::offset_of!(_cef_menu_model_delegate_t, execute_command) - 40usize];
9177    ["Offset of field: _cef_menu_model_delegate_t::mouse_outside_menu"]
9178        [::std::mem::offset_of!(_cef_menu_model_delegate_t, mouse_outside_menu) - 48usize];
9179    ["Offset of field: _cef_menu_model_delegate_t::unhandled_open_submenu"]
9180        [::std::mem::offset_of!(_cef_menu_model_delegate_t, unhandled_open_submenu) - 56usize];
9181    ["Offset of field: _cef_menu_model_delegate_t::unhandled_close_submenu"]
9182        [::std::mem::offset_of!(_cef_menu_model_delegate_t, unhandled_close_submenu) - 64usize];
9183    ["Offset of field: _cef_menu_model_delegate_t::menu_will_show"]
9184        [::std::mem::offset_of!(_cef_menu_model_delegate_t, menu_will_show) - 72usize];
9185    ["Offset of field: _cef_menu_model_delegate_t::menu_closed"]
9186        [::std::mem::offset_of!(_cef_menu_model_delegate_t, menu_closed) - 80usize];
9187    ["Offset of field: _cef_menu_model_delegate_t::format_label"]
9188        [::std::mem::offset_of!(_cef_menu_model_delegate_t, format_label) - 88usize];
9189};
9190#[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"]
9191pub type cef_menu_model_delegate_t = _cef_menu_model_delegate_t;
9192#[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"]
9193#[repr(C)]
9194#[derive(Debug, Copy, Clone)]
9195pub struct _cef_menu_model_t {
9196    #[doc = "\n Base structure.\n"]
9197    pub base: cef_base_ref_counted_t,
9198    #[doc = "\n Returns true (1) if this menu is a submenu.\n"]
9199    pub is_sub_menu: ::std::option::Option<
9200        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
9201    >,
9202    #[doc = "\n Clears the menu. Returns true (1) on success.\n"]
9203    pub clear: ::std::option::Option<
9204        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
9205    >,
9206    #[doc = "\n Returns the number of items in this menu.\n"]
9207    pub get_count:
9208        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> usize>,
9209    #[doc = "\n Add a separator to the menu. Returns true (1) on success.\n"]
9210    pub add_separator: ::std::option::Option<
9211        unsafe extern "C" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int,
9212    >,
9213    #[doc = "\n Add an item to the menu. Returns true (1) on success.\n"]
9214    pub add_item: ::std::option::Option<
9215        unsafe extern "C" fn(
9216            self_: *mut _cef_menu_model_t,
9217            command_id: ::std::os::raw::c_int,
9218            label: *const cef_string_t,
9219        ) -> ::std::os::raw::c_int,
9220    >,
9221    #[doc = "\n Add a check item to the menu. Returns true (1) on success.\n"]
9222    pub add_check_item: ::std::option::Option<
9223        unsafe extern "C" fn(
9224            self_: *mut _cef_menu_model_t,
9225            command_id: ::std::os::raw::c_int,
9226            label: *const cef_string_t,
9227        ) -> ::std::os::raw::c_int,
9228    >,
9229    #[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"]
9230    pub add_radio_item: ::std::option::Option<
9231        unsafe extern "C" fn(
9232            self_: *mut _cef_menu_model_t,
9233            command_id: ::std::os::raw::c_int,
9234            label: *const cef_string_t,
9235            group_id: ::std::os::raw::c_int,
9236        ) -> ::std::os::raw::c_int,
9237    >,
9238    #[doc = "\n Add a sub-menu to the menu. The new sub-menu is returned.\n"]
9239    pub add_sub_menu: ::std::option::Option<
9240        unsafe extern "C" fn(
9241            self_: *mut _cef_menu_model_t,
9242            command_id: ::std::os::raw::c_int,
9243            label: *const cef_string_t,
9244        ) -> *mut _cef_menu_model_t,
9245    >,
9246    #[doc = "\n Insert a separator in the menu at the specified |index|. Returns true (1)\n on success.\n"]
9247    pub insert_separator_at: ::std::option::Option<
9248        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9249    >,
9250    #[doc = "\n Insert an item in the menu at the specified |index|. Returns true (1) on\n success.\n"]
9251    pub insert_item_at: ::std::option::Option<
9252        unsafe extern "C" fn(
9253            self_: *mut _cef_menu_model_t,
9254            index: usize,
9255            command_id: ::std::os::raw::c_int,
9256            label: *const cef_string_t,
9257        ) -> ::std::os::raw::c_int,
9258    >,
9259    #[doc = "\n Insert a check item in the menu at the specified |index|. Returns true (1)\n on success.\n"]
9260    pub insert_check_item_at: ::std::option::Option<
9261        unsafe extern "C" fn(
9262            self_: *mut _cef_menu_model_t,
9263            index: usize,
9264            command_id: ::std::os::raw::c_int,
9265            label: *const cef_string_t,
9266        ) -> ::std::os::raw::c_int,
9267    >,
9268    #[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"]
9269    pub insert_radio_item_at: ::std::option::Option<
9270        unsafe extern "C" fn(
9271            self_: *mut _cef_menu_model_t,
9272            index: usize,
9273            command_id: ::std::os::raw::c_int,
9274            label: *const cef_string_t,
9275            group_id: ::std::os::raw::c_int,
9276        ) -> ::std::os::raw::c_int,
9277    >,
9278    #[doc = "\n Insert a sub-menu in the menu at the specified |index|. The new sub-menu\n is returned.\n"]
9279    pub insert_sub_menu_at: ::std::option::Option<
9280        unsafe extern "C" fn(
9281            self_: *mut _cef_menu_model_t,
9282            index: usize,
9283            command_id: ::std::os::raw::c_int,
9284            label: *const cef_string_t,
9285        ) -> *mut _cef_menu_model_t,
9286    >,
9287    #[doc = "\n Removes the item with the specified |command_id|. Returns true (1) on\n success.\n"]
9288    pub remove: ::std::option::Option<
9289        unsafe extern "C" fn(
9290            self_: *mut _cef_menu_model_t,
9291            command_id: ::std::os::raw::c_int,
9292        ) -> ::std::os::raw::c_int,
9293    >,
9294    #[doc = "\n Removes the item at the specified |index|. Returns true (1) on success.\n"]
9295    pub remove_at: ::std::option::Option<
9296        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9297    >,
9298    #[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"]
9299    pub get_index_of: ::std::option::Option<
9300        unsafe extern "C" fn(
9301            self_: *mut _cef_menu_model_t,
9302            command_id: ::std::os::raw::c_int,
9303        ) -> ::std::os::raw::c_int,
9304    >,
9305    #[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"]
9306    pub get_command_id_at: ::std::option::Option<
9307        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9308    >,
9309    #[doc = "\n Sets the command id at the specified |index|. Returns true (1) on success.\n"]
9310    pub set_command_id_at: ::std::option::Option<
9311        unsafe extern "C" fn(
9312            self_: *mut _cef_menu_model_t,
9313            index: usize,
9314            command_id: ::std::os::raw::c_int,
9315        ) -> ::std::os::raw::c_int,
9316    >,
9317    #[doc = "\n Returns the label for the specified |command_id| or NULL if not found.\n"]
9318    pub get_label: ::std::option::Option<
9319        unsafe extern "C" fn(
9320            self_: *mut _cef_menu_model_t,
9321            command_id: ::std::os::raw::c_int,
9322        ) -> cef_string_userfree_t,
9323    >,
9324    #[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"]
9325    pub get_label_at: ::std::option::Option<
9326        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> cef_string_userfree_t,
9327    >,
9328    #[doc = "\n Sets the label for the specified |command_id|. Returns true (1) on\n success.\n"]
9329    pub set_label: ::std::option::Option<
9330        unsafe extern "C" fn(
9331            self_: *mut _cef_menu_model_t,
9332            command_id: ::std::os::raw::c_int,
9333            label: *const cef_string_t,
9334        ) -> ::std::os::raw::c_int,
9335    >,
9336    #[doc = "\n Set the label at the specified |index|. Returns true (1) on success.\n"]
9337    pub set_label_at: ::std::option::Option<
9338        unsafe extern "C" fn(
9339            self_: *mut _cef_menu_model_t,
9340            index: usize,
9341            label: *const cef_string_t,
9342        ) -> ::std::os::raw::c_int,
9343    >,
9344    #[doc = "\n Returns the item type for the specified |command_id|.\n"]
9345    pub get_type: ::std::option::Option<
9346        unsafe extern "C" fn(
9347            self_: *mut _cef_menu_model_t,
9348            command_id: ::std::os::raw::c_int,
9349        ) -> cef_menu_item_type_t,
9350    >,
9351    #[doc = "\n Returns the item type at the specified |index|.\n"]
9352    pub get_type_at: ::std::option::Option<
9353        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> cef_menu_item_type_t,
9354    >,
9355    #[doc = "\n Returns the group id for the specified |command_id| or -1 if invalid.\n"]
9356    pub get_group_id: ::std::option::Option<
9357        unsafe extern "C" fn(
9358            self_: *mut _cef_menu_model_t,
9359            command_id: ::std::os::raw::c_int,
9360        ) -> ::std::os::raw::c_int,
9361    >,
9362    #[doc = "\n Returns the group id at the specified |index| or -1 if invalid.\n"]
9363    pub get_group_id_at: ::std::option::Option<
9364        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9365    >,
9366    #[doc = "\n Sets the group id for the specified |command_id|. Returns true (1) on\n success.\n"]
9367    pub set_group_id: ::std::option::Option<
9368        unsafe extern "C" fn(
9369            self_: *mut _cef_menu_model_t,
9370            command_id: ::std::os::raw::c_int,
9371            group_id: ::std::os::raw::c_int,
9372        ) -> ::std::os::raw::c_int,
9373    >,
9374    #[doc = "\n Sets the group id at the specified |index|. Returns true (1) on success.\n"]
9375    pub set_group_id_at: ::std::option::Option<
9376        unsafe extern "C" fn(
9377            self_: *mut _cef_menu_model_t,
9378            index: usize,
9379            group_id: ::std::os::raw::c_int,
9380        ) -> ::std::os::raw::c_int,
9381    >,
9382    #[doc = "\n Returns the submenu for the specified |command_id| or NULL if invalid.\n"]
9383    pub get_sub_menu: ::std::option::Option<
9384        unsafe extern "C" fn(
9385            self_: *mut _cef_menu_model_t,
9386            command_id: ::std::os::raw::c_int,
9387        ) -> *mut _cef_menu_model_t,
9388    >,
9389    #[doc = "\n Returns the submenu at the specified |index| or NULL if invalid.\n"]
9390    pub get_sub_menu_at: ::std::option::Option<
9391        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> *mut _cef_menu_model_t,
9392    >,
9393    #[doc = "\n Returns true (1) if the specified |command_id| is visible.\n"]
9394    pub is_visible: ::std::option::Option<
9395        unsafe extern "C" fn(
9396            self_: *mut _cef_menu_model_t,
9397            command_id: ::std::os::raw::c_int,
9398        ) -> ::std::os::raw::c_int,
9399    >,
9400    #[doc = "\n Returns true (1) if the specified |index| is visible.\n"]
9401    pub is_visible_at: ::std::option::Option<
9402        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9403    >,
9404    #[doc = "\n Change the visibility of the specified |command_id|. Returns true (1) on\n success.\n"]
9405    pub set_visible: ::std::option::Option<
9406        unsafe extern "C" fn(
9407            self_: *mut _cef_menu_model_t,
9408            command_id: ::std::os::raw::c_int,
9409            visible: ::std::os::raw::c_int,
9410        ) -> ::std::os::raw::c_int,
9411    >,
9412    #[doc = "\n Change the visibility at the specified |index|. Returns true (1) on\n success.\n"]
9413    pub set_visible_at: ::std::option::Option<
9414        unsafe extern "C" fn(
9415            self_: *mut _cef_menu_model_t,
9416            index: usize,
9417            visible: ::std::os::raw::c_int,
9418        ) -> ::std::os::raw::c_int,
9419    >,
9420    #[doc = "\n Returns true (1) if the specified |command_id| is enabled.\n"]
9421    pub is_enabled: ::std::option::Option<
9422        unsafe extern "C" fn(
9423            self_: *mut _cef_menu_model_t,
9424            command_id: ::std::os::raw::c_int,
9425        ) -> ::std::os::raw::c_int,
9426    >,
9427    #[doc = "\n Returns true (1) if the specified |index| is enabled.\n"]
9428    pub is_enabled_at: ::std::option::Option<
9429        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9430    >,
9431    #[doc = "\n Change the enabled status of the specified |command_id|. Returns true (1)\n on success.\n"]
9432    pub set_enabled: ::std::option::Option<
9433        unsafe extern "C" fn(
9434            self_: *mut _cef_menu_model_t,
9435            command_id: ::std::os::raw::c_int,
9436            enabled: ::std::os::raw::c_int,
9437        ) -> ::std::os::raw::c_int,
9438    >,
9439    #[doc = "\n Change the enabled status at the specified |index|. Returns true (1) on\n success.\n"]
9440    pub set_enabled_at: ::std::option::Option<
9441        unsafe extern "C" fn(
9442            self_: *mut _cef_menu_model_t,
9443            index: usize,
9444            enabled: ::std::os::raw::c_int,
9445        ) -> ::std::os::raw::c_int,
9446    >,
9447    #[doc = "\n Returns true (1) if the specified |command_id| is checked. Only applies to\n check and radio items.\n"]
9448    pub is_checked: ::std::option::Option<
9449        unsafe extern "C" fn(
9450            self_: *mut _cef_menu_model_t,
9451            command_id: ::std::os::raw::c_int,
9452        ) -> ::std::os::raw::c_int,
9453    >,
9454    #[doc = "\n Returns true (1) if the specified |index| is checked. Only applies to\n check and radio items.\n"]
9455    pub is_checked_at: ::std::option::Option<
9456        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9457    >,
9458    #[doc = "\n Check the specified |command_id|. Only applies to check and radio items.\n Returns true (1) on success.\n"]
9459    pub set_checked: ::std::option::Option<
9460        unsafe extern "C" fn(
9461            self_: *mut _cef_menu_model_t,
9462            command_id: ::std::os::raw::c_int,
9463            checked: ::std::os::raw::c_int,
9464        ) -> ::std::os::raw::c_int,
9465    >,
9466    #[doc = "\n Check the specified |index|. Only applies to check and radio items.\n Returns true (1) on success.\n"]
9467    pub set_checked_at: ::std::option::Option<
9468        unsafe extern "C" fn(
9469            self_: *mut _cef_menu_model_t,
9470            index: usize,
9471            checked: ::std::os::raw::c_int,
9472        ) -> ::std::os::raw::c_int,
9473    >,
9474    #[doc = "\n Returns true (1) if the specified |command_id| has a keyboard accelerator\n assigned.\n"]
9475    pub has_accelerator: ::std::option::Option<
9476        unsafe extern "C" fn(
9477            self_: *mut _cef_menu_model_t,
9478            command_id: ::std::os::raw::c_int,
9479        ) -> ::std::os::raw::c_int,
9480    >,
9481    #[doc = "\n Returns true (1) if the specified |index| has a keyboard accelerator\n assigned.\n"]
9482    pub has_accelerator_at: ::std::option::Option<
9483        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9484    >,
9485    #[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"]
9486    pub set_accelerator: ::std::option::Option<
9487        unsafe extern "C" fn(
9488            self_: *mut _cef_menu_model_t,
9489            command_id: ::std::os::raw::c_int,
9490            key_code: ::std::os::raw::c_int,
9491            shift_pressed: ::std::os::raw::c_int,
9492            ctrl_pressed: ::std::os::raw::c_int,
9493            alt_pressed: ::std::os::raw::c_int,
9494        ) -> ::std::os::raw::c_int,
9495    >,
9496    #[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"]
9497    pub set_accelerator_at: ::std::option::Option<
9498        unsafe extern "C" fn(
9499            self_: *mut _cef_menu_model_t,
9500            index: usize,
9501            key_code: ::std::os::raw::c_int,
9502            shift_pressed: ::std::os::raw::c_int,
9503            ctrl_pressed: ::std::os::raw::c_int,
9504            alt_pressed: ::std::os::raw::c_int,
9505        ) -> ::std::os::raw::c_int,
9506    >,
9507    #[doc = "\n Remove the keyboard accelerator for the specified |command_id|. Returns\n true (1) on success.\n"]
9508    pub remove_accelerator: ::std::option::Option<
9509        unsafe extern "C" fn(
9510            self_: *mut _cef_menu_model_t,
9511            command_id: ::std::os::raw::c_int,
9512        ) -> ::std::os::raw::c_int,
9513    >,
9514    #[doc = "\n Remove the keyboard accelerator at the specified |index|. Returns true (1)\n on success.\n"]
9515    pub remove_accelerator_at: ::std::option::Option<
9516        unsafe extern "C" fn(self_: *mut _cef_menu_model_t, index: usize) -> ::std::os::raw::c_int,
9517    >,
9518    #[doc = "\n Retrieves the keyboard accelerator for the specified |command_id|. Returns\n true (1) on success.\n"]
9519    pub get_accelerator: ::std::option::Option<
9520        unsafe extern "C" fn(
9521            self_: *mut _cef_menu_model_t,
9522            command_id: ::std::os::raw::c_int,
9523            key_code: *mut ::std::os::raw::c_int,
9524            shift_pressed: *mut ::std::os::raw::c_int,
9525            ctrl_pressed: *mut ::std::os::raw::c_int,
9526            alt_pressed: *mut ::std::os::raw::c_int,
9527        ) -> ::std::os::raw::c_int,
9528    >,
9529    #[doc = "\n Retrieves the keyboard accelerator for the specified |index|. Returns true\n (1) on success.\n"]
9530    pub get_accelerator_at: ::std::option::Option<
9531        unsafe extern "C" fn(
9532            self_: *mut _cef_menu_model_t,
9533            index: usize,
9534            key_code: *mut ::std::os::raw::c_int,
9535            shift_pressed: *mut ::std::os::raw::c_int,
9536            ctrl_pressed: *mut ::std::os::raw::c_int,
9537            alt_pressed: *mut ::std::os::raw::c_int,
9538        ) -> ::std::os::raw::c_int,
9539    >,
9540    #[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"]
9541    pub set_color: ::std::option::Option<
9542        unsafe extern "C" fn(
9543            self_: *mut _cef_menu_model_t,
9544            command_id: ::std::os::raw::c_int,
9545            color_type: cef_menu_color_type_t,
9546            color: cef_color_t,
9547        ) -> ::std::os::raw::c_int,
9548    >,
9549    #[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"]
9550    pub set_color_at: ::std::option::Option<
9551        unsafe extern "C" fn(
9552            self_: *mut _cef_menu_model_t,
9553            index: ::std::os::raw::c_int,
9554            color_type: cef_menu_color_type_t,
9555            color: cef_color_t,
9556        ) -> ::std::os::raw::c_int,
9557    >,
9558    #[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"]
9559    pub get_color: ::std::option::Option<
9560        unsafe extern "C" fn(
9561            self_: *mut _cef_menu_model_t,
9562            command_id: ::std::os::raw::c_int,
9563            color_type: cef_menu_color_type_t,
9564            color: *mut cef_color_t,
9565        ) -> ::std::os::raw::c_int,
9566    >,
9567    #[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"]
9568    pub get_color_at: ::std::option::Option<
9569        unsafe extern "C" fn(
9570            self_: *mut _cef_menu_model_t,
9571            index: ::std::os::raw::c_int,
9572            color_type: cef_menu_color_type_t,
9573            color: *mut cef_color_t,
9574        ) -> ::std::os::raw::c_int,
9575    >,
9576    #[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"]
9577    pub set_font_list: ::std::option::Option<
9578        unsafe extern "C" fn(
9579            self_: *mut _cef_menu_model_t,
9580            command_id: ::std::os::raw::c_int,
9581            font_list: *const cef_string_t,
9582        ) -> ::std::os::raw::c_int,
9583    >,
9584    #[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"]
9585    pub set_font_list_at: ::std::option::Option<
9586        unsafe extern "C" fn(
9587            self_: *mut _cef_menu_model_t,
9588            index: ::std::os::raw::c_int,
9589            font_list: *const cef_string_t,
9590        ) -> ::std::os::raw::c_int,
9591    >,
9592}
9593#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9594const _: () = {
9595    ["Size of _cef_menu_model_t"][::std::mem::size_of::<_cef_menu_model_t>() - 488usize];
9596    ["Alignment of _cef_menu_model_t"][::std::mem::align_of::<_cef_menu_model_t>() - 8usize];
9597    ["Offset of field: _cef_menu_model_t::base"]
9598        [::std::mem::offset_of!(_cef_menu_model_t, base) - 0usize];
9599    ["Offset of field: _cef_menu_model_t::is_sub_menu"]
9600        [::std::mem::offset_of!(_cef_menu_model_t, is_sub_menu) - 40usize];
9601    ["Offset of field: _cef_menu_model_t::clear"]
9602        [::std::mem::offset_of!(_cef_menu_model_t, clear) - 48usize];
9603    ["Offset of field: _cef_menu_model_t::get_count"]
9604        [::std::mem::offset_of!(_cef_menu_model_t, get_count) - 56usize];
9605    ["Offset of field: _cef_menu_model_t::add_separator"]
9606        [::std::mem::offset_of!(_cef_menu_model_t, add_separator) - 64usize];
9607    ["Offset of field: _cef_menu_model_t::add_item"]
9608        [::std::mem::offset_of!(_cef_menu_model_t, add_item) - 72usize];
9609    ["Offset of field: _cef_menu_model_t::add_check_item"]
9610        [::std::mem::offset_of!(_cef_menu_model_t, add_check_item) - 80usize];
9611    ["Offset of field: _cef_menu_model_t::add_radio_item"]
9612        [::std::mem::offset_of!(_cef_menu_model_t, add_radio_item) - 88usize];
9613    ["Offset of field: _cef_menu_model_t::add_sub_menu"]
9614        [::std::mem::offset_of!(_cef_menu_model_t, add_sub_menu) - 96usize];
9615    ["Offset of field: _cef_menu_model_t::insert_separator_at"]
9616        [::std::mem::offset_of!(_cef_menu_model_t, insert_separator_at) - 104usize];
9617    ["Offset of field: _cef_menu_model_t::insert_item_at"]
9618        [::std::mem::offset_of!(_cef_menu_model_t, insert_item_at) - 112usize];
9619    ["Offset of field: _cef_menu_model_t::insert_check_item_at"]
9620        [::std::mem::offset_of!(_cef_menu_model_t, insert_check_item_at) - 120usize];
9621    ["Offset of field: _cef_menu_model_t::insert_radio_item_at"]
9622        [::std::mem::offset_of!(_cef_menu_model_t, insert_radio_item_at) - 128usize];
9623    ["Offset of field: _cef_menu_model_t::insert_sub_menu_at"]
9624        [::std::mem::offset_of!(_cef_menu_model_t, insert_sub_menu_at) - 136usize];
9625    ["Offset of field: _cef_menu_model_t::remove"]
9626        [::std::mem::offset_of!(_cef_menu_model_t, remove) - 144usize];
9627    ["Offset of field: _cef_menu_model_t::remove_at"]
9628        [::std::mem::offset_of!(_cef_menu_model_t, remove_at) - 152usize];
9629    ["Offset of field: _cef_menu_model_t::get_index_of"]
9630        [::std::mem::offset_of!(_cef_menu_model_t, get_index_of) - 160usize];
9631    ["Offset of field: _cef_menu_model_t::get_command_id_at"]
9632        [::std::mem::offset_of!(_cef_menu_model_t, get_command_id_at) - 168usize];
9633    ["Offset of field: _cef_menu_model_t::set_command_id_at"]
9634        [::std::mem::offset_of!(_cef_menu_model_t, set_command_id_at) - 176usize];
9635    ["Offset of field: _cef_menu_model_t::get_label"]
9636        [::std::mem::offset_of!(_cef_menu_model_t, get_label) - 184usize];
9637    ["Offset of field: _cef_menu_model_t::get_label_at"]
9638        [::std::mem::offset_of!(_cef_menu_model_t, get_label_at) - 192usize];
9639    ["Offset of field: _cef_menu_model_t::set_label"]
9640        [::std::mem::offset_of!(_cef_menu_model_t, set_label) - 200usize];
9641    ["Offset of field: _cef_menu_model_t::set_label_at"]
9642        [::std::mem::offset_of!(_cef_menu_model_t, set_label_at) - 208usize];
9643    ["Offset of field: _cef_menu_model_t::get_type"]
9644        [::std::mem::offset_of!(_cef_menu_model_t, get_type) - 216usize];
9645    ["Offset of field: _cef_menu_model_t::get_type_at"]
9646        [::std::mem::offset_of!(_cef_menu_model_t, get_type_at) - 224usize];
9647    ["Offset of field: _cef_menu_model_t::get_group_id"]
9648        [::std::mem::offset_of!(_cef_menu_model_t, get_group_id) - 232usize];
9649    ["Offset of field: _cef_menu_model_t::get_group_id_at"]
9650        [::std::mem::offset_of!(_cef_menu_model_t, get_group_id_at) - 240usize];
9651    ["Offset of field: _cef_menu_model_t::set_group_id"]
9652        [::std::mem::offset_of!(_cef_menu_model_t, set_group_id) - 248usize];
9653    ["Offset of field: _cef_menu_model_t::set_group_id_at"]
9654        [::std::mem::offset_of!(_cef_menu_model_t, set_group_id_at) - 256usize];
9655    ["Offset of field: _cef_menu_model_t::get_sub_menu"]
9656        [::std::mem::offset_of!(_cef_menu_model_t, get_sub_menu) - 264usize];
9657    ["Offset of field: _cef_menu_model_t::get_sub_menu_at"]
9658        [::std::mem::offset_of!(_cef_menu_model_t, get_sub_menu_at) - 272usize];
9659    ["Offset of field: _cef_menu_model_t::is_visible"]
9660        [::std::mem::offset_of!(_cef_menu_model_t, is_visible) - 280usize];
9661    ["Offset of field: _cef_menu_model_t::is_visible_at"]
9662        [::std::mem::offset_of!(_cef_menu_model_t, is_visible_at) - 288usize];
9663    ["Offset of field: _cef_menu_model_t::set_visible"]
9664        [::std::mem::offset_of!(_cef_menu_model_t, set_visible) - 296usize];
9665    ["Offset of field: _cef_menu_model_t::set_visible_at"]
9666        [::std::mem::offset_of!(_cef_menu_model_t, set_visible_at) - 304usize];
9667    ["Offset of field: _cef_menu_model_t::is_enabled"]
9668        [::std::mem::offset_of!(_cef_menu_model_t, is_enabled) - 312usize];
9669    ["Offset of field: _cef_menu_model_t::is_enabled_at"]
9670        [::std::mem::offset_of!(_cef_menu_model_t, is_enabled_at) - 320usize];
9671    ["Offset of field: _cef_menu_model_t::set_enabled"]
9672        [::std::mem::offset_of!(_cef_menu_model_t, set_enabled) - 328usize];
9673    ["Offset of field: _cef_menu_model_t::set_enabled_at"]
9674        [::std::mem::offset_of!(_cef_menu_model_t, set_enabled_at) - 336usize];
9675    ["Offset of field: _cef_menu_model_t::is_checked"]
9676        [::std::mem::offset_of!(_cef_menu_model_t, is_checked) - 344usize];
9677    ["Offset of field: _cef_menu_model_t::is_checked_at"]
9678        [::std::mem::offset_of!(_cef_menu_model_t, is_checked_at) - 352usize];
9679    ["Offset of field: _cef_menu_model_t::set_checked"]
9680        [::std::mem::offset_of!(_cef_menu_model_t, set_checked) - 360usize];
9681    ["Offset of field: _cef_menu_model_t::set_checked_at"]
9682        [::std::mem::offset_of!(_cef_menu_model_t, set_checked_at) - 368usize];
9683    ["Offset of field: _cef_menu_model_t::has_accelerator"]
9684        [::std::mem::offset_of!(_cef_menu_model_t, has_accelerator) - 376usize];
9685    ["Offset of field: _cef_menu_model_t::has_accelerator_at"]
9686        [::std::mem::offset_of!(_cef_menu_model_t, has_accelerator_at) - 384usize];
9687    ["Offset of field: _cef_menu_model_t::set_accelerator"]
9688        [::std::mem::offset_of!(_cef_menu_model_t, set_accelerator) - 392usize];
9689    ["Offset of field: _cef_menu_model_t::set_accelerator_at"]
9690        [::std::mem::offset_of!(_cef_menu_model_t, set_accelerator_at) - 400usize];
9691    ["Offset of field: _cef_menu_model_t::remove_accelerator"]
9692        [::std::mem::offset_of!(_cef_menu_model_t, remove_accelerator) - 408usize];
9693    ["Offset of field: _cef_menu_model_t::remove_accelerator_at"]
9694        [::std::mem::offset_of!(_cef_menu_model_t, remove_accelerator_at) - 416usize];
9695    ["Offset of field: _cef_menu_model_t::get_accelerator"]
9696        [::std::mem::offset_of!(_cef_menu_model_t, get_accelerator) - 424usize];
9697    ["Offset of field: _cef_menu_model_t::get_accelerator_at"]
9698        [::std::mem::offset_of!(_cef_menu_model_t, get_accelerator_at) - 432usize];
9699    ["Offset of field: _cef_menu_model_t::set_color"]
9700        [::std::mem::offset_of!(_cef_menu_model_t, set_color) - 440usize];
9701    ["Offset of field: _cef_menu_model_t::set_color_at"]
9702        [::std::mem::offset_of!(_cef_menu_model_t, set_color_at) - 448usize];
9703    ["Offset of field: _cef_menu_model_t::get_color"]
9704        [::std::mem::offset_of!(_cef_menu_model_t, get_color) - 456usize];
9705    ["Offset of field: _cef_menu_model_t::get_color_at"]
9706        [::std::mem::offset_of!(_cef_menu_model_t, get_color_at) - 464usize];
9707    ["Offset of field: _cef_menu_model_t::set_font_list"]
9708        [::std::mem::offset_of!(_cef_menu_model_t, set_font_list) - 472usize];
9709    ["Offset of field: _cef_menu_model_t::set_font_list_at"]
9710        [::std::mem::offset_of!(_cef_menu_model_t, set_font_list_at) - 480usize];
9711};
9712#[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"]
9713pub type cef_menu_model_t = _cef_menu_model_t;
9714unsafe extern "C" {
9715    #[doc = "\n Create a new MenuModel with the specified |delegate|.\n"]
9716    pub fn cef_menu_model_create(
9717        delegate: *mut _cef_menu_model_delegate_t,
9718    ) -> *mut cef_menu_model_t;
9719}
9720#[doc = "\n Callback structure used for continuation of custom context menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9721#[repr(C)]
9722#[derive(Debug, Copy, Clone)]
9723pub struct _cef_run_context_menu_callback_t {
9724    #[doc = "\n Base structure.\n"]
9725    pub base: cef_base_ref_counted_t,
9726    #[doc = "\n Complete context menu display by selecting the specified |command_id| and\n |event_flags|.\n"]
9727    pub cont: ::std::option::Option<
9728        unsafe extern "C" fn(
9729            self_: *mut _cef_run_context_menu_callback_t,
9730            command_id: ::std::os::raw::c_int,
9731            event_flags: cef_event_flags_t,
9732        ),
9733    >,
9734    #[doc = "\n Cancel context menu display.\n"]
9735    pub cancel:
9736        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_run_context_menu_callback_t)>,
9737}
9738#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9739const _: () = {
9740    ["Size of _cef_run_context_menu_callback_t"]
9741        [::std::mem::size_of::<_cef_run_context_menu_callback_t>() - 56usize];
9742    ["Alignment of _cef_run_context_menu_callback_t"]
9743        [::std::mem::align_of::<_cef_run_context_menu_callback_t>() - 8usize];
9744    ["Offset of field: _cef_run_context_menu_callback_t::base"]
9745        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, base) - 0usize];
9746    ["Offset of field: _cef_run_context_menu_callback_t::cont"]
9747        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, cont) - 40usize];
9748    ["Offset of field: _cef_run_context_menu_callback_t::cancel"]
9749        [::std::mem::offset_of!(_cef_run_context_menu_callback_t, cancel) - 48usize];
9750};
9751#[doc = "\n Callback structure used for continuation of custom context menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9752pub type cef_run_context_menu_callback_t = _cef_run_context_menu_callback_t;
9753#[doc = "\n Callback structure used for continuation of custom quick menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9754#[repr(C)]
9755#[derive(Debug, Copy, Clone)]
9756pub struct _cef_run_quick_menu_callback_t {
9757    #[doc = "\n Base structure.\n"]
9758    pub base: cef_base_ref_counted_t,
9759    #[doc = "\n Complete quick menu display by selecting the specified |command_id| and\n |event_flags|.\n"]
9760    pub cont: ::std::option::Option<
9761        unsafe extern "C" fn(
9762            self_: *mut _cef_run_quick_menu_callback_t,
9763            command_id: ::std::os::raw::c_int,
9764            event_flags: cef_event_flags_t,
9765        ),
9766    >,
9767    #[doc = "\n Cancel quick menu display.\n"]
9768    pub cancel:
9769        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_run_quick_menu_callback_t)>,
9770}
9771#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9772const _: () = {
9773    ["Size of _cef_run_quick_menu_callback_t"]
9774        [::std::mem::size_of::<_cef_run_quick_menu_callback_t>() - 56usize];
9775    ["Alignment of _cef_run_quick_menu_callback_t"]
9776        [::std::mem::align_of::<_cef_run_quick_menu_callback_t>() - 8usize];
9777    ["Offset of field: _cef_run_quick_menu_callback_t::base"]
9778        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, base) - 0usize];
9779    ["Offset of field: _cef_run_quick_menu_callback_t::cont"]
9780        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, cont) - 40usize];
9781    ["Offset of field: _cef_run_quick_menu_callback_t::cancel"]
9782        [::std::mem::offset_of!(_cef_run_quick_menu_callback_t, cancel) - 48usize];
9783};
9784#[doc = "\n Callback structure used for continuation of custom quick menu display.\n\n NOTE: This struct is allocated DLL-side.\n"]
9785pub type cef_run_quick_menu_callback_t = _cef_run_quick_menu_callback_t;
9786#[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"]
9787#[repr(C)]
9788#[derive(Debug, Copy, Clone)]
9789pub struct _cef_context_menu_handler_t {
9790    #[doc = "\n Base structure.\n"]
9791    pub base: cef_base_ref_counted_t,
9792    #[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"]
9793    pub on_before_context_menu: ::std::option::Option<
9794        unsafe extern "C" fn(
9795            self_: *mut _cef_context_menu_handler_t,
9796            browser: *mut _cef_browser_t,
9797            frame: *mut _cef_frame_t,
9798            params: *mut _cef_context_menu_params_t,
9799            model: *mut _cef_menu_model_t,
9800        ),
9801    >,
9802    #[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"]
9803    pub run_context_menu: ::std::option::Option<
9804        unsafe extern "C" fn(
9805            self_: *mut _cef_context_menu_handler_t,
9806            browser: *mut _cef_browser_t,
9807            frame: *mut _cef_frame_t,
9808            params: *mut _cef_context_menu_params_t,
9809            model: *mut _cef_menu_model_t,
9810            callback: *mut _cef_run_context_menu_callback_t,
9811        ) -> ::std::os::raw::c_int,
9812    >,
9813    #[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"]
9814    pub on_context_menu_command: ::std::option::Option<
9815        unsafe extern "C" fn(
9816            self_: *mut _cef_context_menu_handler_t,
9817            browser: *mut _cef_browser_t,
9818            frame: *mut _cef_frame_t,
9819            params: *mut _cef_context_menu_params_t,
9820            command_id: ::std::os::raw::c_int,
9821            event_flags: cef_event_flags_t,
9822        ) -> ::std::os::raw::c_int,
9823    >,
9824    #[doc = "\n Called when the context menu is dismissed irregardless of whether the menu\n was canceled or a command was selected.\n"]
9825    pub on_context_menu_dismissed: ::std::option::Option<
9826        unsafe extern "C" fn(
9827            self_: *mut _cef_context_menu_handler_t,
9828            browser: *mut _cef_browser_t,
9829            frame: *mut _cef_frame_t,
9830        ),
9831    >,
9832    #[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"]
9833    pub run_quick_menu: ::std::option::Option<
9834        unsafe extern "C" fn(
9835            self_: *mut _cef_context_menu_handler_t,
9836            browser: *mut _cef_browser_t,
9837            frame: *mut _cef_frame_t,
9838            location: *const cef_point_t,
9839            size: *const cef_size_t,
9840            edit_state_flags: cef_quick_menu_edit_state_flags_t,
9841            callback: *mut _cef_run_quick_menu_callback_t,
9842        ) -> ::std::os::raw::c_int,
9843    >,
9844    #[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"]
9845    pub on_quick_menu_command: ::std::option::Option<
9846        unsafe extern "C" fn(
9847            self_: *mut _cef_context_menu_handler_t,
9848            browser: *mut _cef_browser_t,
9849            frame: *mut _cef_frame_t,
9850            command_id: ::std::os::raw::c_int,
9851            event_flags: cef_event_flags_t,
9852        ) -> ::std::os::raw::c_int,
9853    >,
9854    #[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"]
9855    pub on_quick_menu_dismissed: ::std::option::Option<
9856        unsafe extern "C" fn(
9857            self_: *mut _cef_context_menu_handler_t,
9858            browser: *mut _cef_browser_t,
9859            frame: *mut _cef_frame_t,
9860        ),
9861    >,
9862}
9863#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9864const _: () = {
9865    ["Size of _cef_context_menu_handler_t"]
9866        [::std::mem::size_of::<_cef_context_menu_handler_t>() - 96usize];
9867    ["Alignment of _cef_context_menu_handler_t"]
9868        [::std::mem::align_of::<_cef_context_menu_handler_t>() - 8usize];
9869    ["Offset of field: _cef_context_menu_handler_t::base"]
9870        [::std::mem::offset_of!(_cef_context_menu_handler_t, base) - 0usize];
9871    ["Offset of field: _cef_context_menu_handler_t::on_before_context_menu"]
9872        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_before_context_menu) - 40usize];
9873    ["Offset of field: _cef_context_menu_handler_t::run_context_menu"]
9874        [::std::mem::offset_of!(_cef_context_menu_handler_t, run_context_menu) - 48usize];
9875    ["Offset of field: _cef_context_menu_handler_t::on_context_menu_command"]
9876        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_context_menu_command) - 56usize];
9877    ["Offset of field: _cef_context_menu_handler_t::on_context_menu_dismissed"]
9878        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_context_menu_dismissed) - 64usize];
9879    ["Offset of field: _cef_context_menu_handler_t::run_quick_menu"]
9880        [::std::mem::offset_of!(_cef_context_menu_handler_t, run_quick_menu) - 72usize];
9881    ["Offset of field: _cef_context_menu_handler_t::on_quick_menu_command"]
9882        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_quick_menu_command) - 80usize];
9883    ["Offset of field: _cef_context_menu_handler_t::on_quick_menu_dismissed"]
9884        [::std::mem::offset_of!(_cef_context_menu_handler_t, on_quick_menu_dismissed) - 88usize];
9885};
9886#[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"]
9887pub type cef_context_menu_handler_t = _cef_context_menu_handler_t;
9888#[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"]
9889#[repr(C)]
9890#[derive(Debug, Copy, Clone)]
9891pub struct _cef_context_menu_params_t {
9892    #[doc = "\n Base structure.\n"]
9893    pub base: cef_base_ref_counted_t,
9894    #[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"]
9895    pub get_xcoord: ::std::option::Option<
9896        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9897    >,
9898    #[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"]
9899    pub get_ycoord: ::std::option::Option<
9900        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9901    >,
9902    #[doc = "\n Returns flags representing the type of node that the context menu was\n invoked on.\n"]
9903    pub get_type_flags: ::std::option::Option<
9904        unsafe extern "C" fn(
9905            self_: *mut _cef_context_menu_params_t,
9906        ) -> cef_context_menu_type_flags_t,
9907    >,
9908    #[doc = "\n Returns the URL of the link, if any, that encloses the node that the\n context menu was invoked on.\n"]
9909    pub get_link_url: ::std::option::Option<
9910        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9911    >,
9912    #[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"]
9913    pub get_unfiltered_link_url: ::std::option::Option<
9914        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9915    >,
9916    #[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"]
9917    pub get_source_url: ::std::option::Option<
9918        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9919    >,
9920    #[doc = "\n Returns true (1) if the context menu was invoked on an image which has\n non-NULL contents.\n"]
9921    pub has_image_contents: ::std::option::Option<
9922        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9923    >,
9924    #[doc = "\n Returns the title text or the alt text if the context menu was invoked on\n an image.\n"]
9925    pub get_title_text: ::std::option::Option<
9926        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9927    >,
9928    #[doc = "\n Returns the URL of the top level page that the context menu was invoked\n on.\n"]
9929    pub get_page_url: ::std::option::Option<
9930        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9931    >,
9932    #[doc = "\n Returns the URL of the subframe that the context menu was invoked on.\n"]
9933    pub get_frame_url: ::std::option::Option<
9934        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9935    >,
9936    #[doc = "\n Returns the character encoding of the subframe that the context menu was\n invoked on.\n"]
9937    pub get_frame_charset: ::std::option::Option<
9938        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9939    >,
9940    #[doc = "\n Returns the type of context node that the context menu was invoked on.\n"]
9941    pub get_media_type: ::std::option::Option<
9942        unsafe extern "C" fn(
9943            self_: *mut _cef_context_menu_params_t,
9944        ) -> cef_context_menu_media_type_t,
9945    >,
9946    #[doc = "\n Returns flags representing the actions supported by the media element, if\n any, that the context menu was invoked on.\n"]
9947    pub get_media_state_flags: ::std::option::Option<
9948        unsafe extern "C" fn(
9949            self_: *mut _cef_context_menu_params_t,
9950        ) -> cef_context_menu_media_state_flags_t,
9951    >,
9952    #[doc = "\n Returns the text of the selection, if any, that the context menu was\n invoked on.\n"]
9953    pub get_selection_text: ::std::option::Option<
9954        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9955    >,
9956    #[doc = "\n Returns the text of the misspelled word, if any, that the context menu was\n invoked on.\n"]
9957    pub get_misspelled_word: ::std::option::Option<
9958        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t,
9959    >,
9960    #[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"]
9961    pub get_dictionary_suggestions: ::std::option::Option<
9962        unsafe extern "C" fn(
9963            self_: *mut _cef_context_menu_params_t,
9964            suggestions: cef_string_list_t,
9965        ) -> ::std::os::raw::c_int,
9966    >,
9967    #[doc = "\n Returns true (1) if the context menu was invoked on an editable node.\n"]
9968    pub is_editable: ::std::option::Option<
9969        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9970    >,
9971    #[doc = "\n Returns true (1) if the context menu was invoked on an editable node where\n spell-check is enabled.\n"]
9972    pub is_spell_check_enabled: ::std::option::Option<
9973        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9974    >,
9975    #[doc = "\n Returns flags representing the actions supported by the editable node, if\n any, that the context menu was invoked on.\n"]
9976    pub get_edit_state_flags: ::std::option::Option<
9977        unsafe extern "C" fn(
9978            self_: *mut _cef_context_menu_params_t,
9979        ) -> cef_context_menu_edit_state_flags_t,
9980    >,
9981    #[doc = "\n Returns true (1) if the context menu contains items specified by the\n renderer process.\n"]
9982    pub is_custom_menu: ::std::option::Option<
9983        unsafe extern "C" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int,
9984    >,
9985}
9986#[allow(clippy::unnecessary_operation, clippy::identity_op)]
9987const _: () = {
9988    ["Size of _cef_context_menu_params_t"]
9989        [::std::mem::size_of::<_cef_context_menu_params_t>() - 200usize];
9990    ["Alignment of _cef_context_menu_params_t"]
9991        [::std::mem::align_of::<_cef_context_menu_params_t>() - 8usize];
9992    ["Offset of field: _cef_context_menu_params_t::base"]
9993        [::std::mem::offset_of!(_cef_context_menu_params_t, base) - 0usize];
9994    ["Offset of field: _cef_context_menu_params_t::get_xcoord"]
9995        [::std::mem::offset_of!(_cef_context_menu_params_t, get_xcoord) - 40usize];
9996    ["Offset of field: _cef_context_menu_params_t::get_ycoord"]
9997        [::std::mem::offset_of!(_cef_context_menu_params_t, get_ycoord) - 48usize];
9998    ["Offset of field: _cef_context_menu_params_t::get_type_flags"]
9999        [::std::mem::offset_of!(_cef_context_menu_params_t, get_type_flags) - 56usize];
10000    ["Offset of field: _cef_context_menu_params_t::get_link_url"]
10001        [::std::mem::offset_of!(_cef_context_menu_params_t, get_link_url) - 64usize];
10002    ["Offset of field: _cef_context_menu_params_t::get_unfiltered_link_url"]
10003        [::std::mem::offset_of!(_cef_context_menu_params_t, get_unfiltered_link_url) - 72usize];
10004    ["Offset of field: _cef_context_menu_params_t::get_source_url"]
10005        [::std::mem::offset_of!(_cef_context_menu_params_t, get_source_url) - 80usize];
10006    ["Offset of field: _cef_context_menu_params_t::has_image_contents"]
10007        [::std::mem::offset_of!(_cef_context_menu_params_t, has_image_contents) - 88usize];
10008    ["Offset of field: _cef_context_menu_params_t::get_title_text"]
10009        [::std::mem::offset_of!(_cef_context_menu_params_t, get_title_text) - 96usize];
10010    ["Offset of field: _cef_context_menu_params_t::get_page_url"]
10011        [::std::mem::offset_of!(_cef_context_menu_params_t, get_page_url) - 104usize];
10012    ["Offset of field: _cef_context_menu_params_t::get_frame_url"]
10013        [::std::mem::offset_of!(_cef_context_menu_params_t, get_frame_url) - 112usize];
10014    ["Offset of field: _cef_context_menu_params_t::get_frame_charset"]
10015        [::std::mem::offset_of!(_cef_context_menu_params_t, get_frame_charset) - 120usize];
10016    ["Offset of field: _cef_context_menu_params_t::get_media_type"]
10017        [::std::mem::offset_of!(_cef_context_menu_params_t, get_media_type) - 128usize];
10018    ["Offset of field: _cef_context_menu_params_t::get_media_state_flags"]
10019        [::std::mem::offset_of!(_cef_context_menu_params_t, get_media_state_flags) - 136usize];
10020    ["Offset of field: _cef_context_menu_params_t::get_selection_text"]
10021        [::std::mem::offset_of!(_cef_context_menu_params_t, get_selection_text) - 144usize];
10022    ["Offset of field: _cef_context_menu_params_t::get_misspelled_word"]
10023        [::std::mem::offset_of!(_cef_context_menu_params_t, get_misspelled_word) - 152usize];
10024    ["Offset of field: _cef_context_menu_params_t::get_dictionary_suggestions"]
10025        [::std::mem::offset_of!(_cef_context_menu_params_t, get_dictionary_suggestions) - 160usize];
10026    ["Offset of field: _cef_context_menu_params_t::is_editable"]
10027        [::std::mem::offset_of!(_cef_context_menu_params_t, is_editable) - 168usize];
10028    ["Offset of field: _cef_context_menu_params_t::is_spell_check_enabled"]
10029        [::std::mem::offset_of!(_cef_context_menu_params_t, is_spell_check_enabled) - 176usize];
10030    ["Offset of field: _cef_context_menu_params_t::get_edit_state_flags"]
10031        [::std::mem::offset_of!(_cef_context_menu_params_t, get_edit_state_flags) - 184usize];
10032    ["Offset of field: _cef_context_menu_params_t::is_custom_menu"]
10033        [::std::mem::offset_of!(_cef_context_menu_params_t, is_custom_menu) - 192usize];
10034};
10035#[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"]
10036pub type cef_context_menu_params_t = _cef_context_menu_params_t;
10037#[doc = "\n Callback structure for asynchronous continuation of file dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10038#[repr(C)]
10039#[derive(Debug, Copy, Clone)]
10040pub struct _cef_file_dialog_callback_t {
10041    #[doc = "\n Base structure.\n"]
10042    pub base: cef_base_ref_counted_t,
10043    #[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"]
10044    pub cont: ::std::option::Option<
10045        unsafe extern "C" fn(
10046            self_: *mut _cef_file_dialog_callback_t,
10047            file_paths: cef_string_list_t,
10048        ),
10049    >,
10050    #[doc = "\n Cancel the file selection.\n"]
10051    pub cancel:
10052        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_file_dialog_callback_t)>,
10053}
10054#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10055const _: () = {
10056    ["Size of _cef_file_dialog_callback_t"]
10057        [::std::mem::size_of::<_cef_file_dialog_callback_t>() - 56usize];
10058    ["Alignment of _cef_file_dialog_callback_t"]
10059        [::std::mem::align_of::<_cef_file_dialog_callback_t>() - 8usize];
10060    ["Offset of field: _cef_file_dialog_callback_t::base"]
10061        [::std::mem::offset_of!(_cef_file_dialog_callback_t, base) - 0usize];
10062    ["Offset of field: _cef_file_dialog_callback_t::cont"]
10063        [::std::mem::offset_of!(_cef_file_dialog_callback_t, cont) - 40usize];
10064    ["Offset of field: _cef_file_dialog_callback_t::cancel"]
10065        [::std::mem::offset_of!(_cef_file_dialog_callback_t, cancel) - 48usize];
10066};
10067#[doc = "\n Callback structure for asynchronous continuation of file dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10068pub type cef_file_dialog_callback_t = _cef_file_dialog_callback_t;
10069#[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"]
10070#[repr(C)]
10071#[derive(Debug, Copy, Clone)]
10072pub struct _cef_dialog_handler_t {
10073    #[doc = "\n Base structure.\n"]
10074    pub base: cef_base_ref_counted_t,
10075    #[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"]
10076    pub on_file_dialog: ::std::option::Option<
10077        unsafe extern "C" fn(
10078            self_: *mut _cef_dialog_handler_t,
10079            browser: *mut _cef_browser_t,
10080            mode: cef_file_dialog_mode_t,
10081            title: *const cef_string_t,
10082            default_file_path: *const cef_string_t,
10083            accept_filters: cef_string_list_t,
10084            accept_extensions: cef_string_list_t,
10085            accept_descriptions: cef_string_list_t,
10086            callback: *mut _cef_file_dialog_callback_t,
10087        ) -> ::std::os::raw::c_int,
10088    >,
10089}
10090#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10091const _: () = {
10092    ["Size of _cef_dialog_handler_t"][::std::mem::size_of::<_cef_dialog_handler_t>() - 48usize];
10093    ["Alignment of _cef_dialog_handler_t"]
10094        [::std::mem::align_of::<_cef_dialog_handler_t>() - 8usize];
10095    ["Offset of field: _cef_dialog_handler_t::base"]
10096        [::std::mem::offset_of!(_cef_dialog_handler_t, base) - 0usize];
10097    ["Offset of field: _cef_dialog_handler_t::on_file_dialog"]
10098        [::std::mem::offset_of!(_cef_dialog_handler_t, on_file_dialog) - 40usize];
10099};
10100#[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"]
10101pub type cef_dialog_handler_t = _cef_dialog_handler_t;
10102#[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"]
10103#[repr(C)]
10104#[derive(Debug, Copy, Clone)]
10105pub struct _cef_display_handler_t {
10106    #[doc = "\n Base structure.\n"]
10107    pub base: cef_base_ref_counted_t,
10108    #[doc = "\n Called when a frame's address has changed.\n"]
10109    pub on_address_change: ::std::option::Option<
10110        unsafe extern "C" fn(
10111            self_: *mut _cef_display_handler_t,
10112            browser: *mut _cef_browser_t,
10113            frame: *mut _cef_frame_t,
10114            url: *const cef_string_t,
10115        ),
10116    >,
10117    #[doc = "\n Called when the page title changes.\n"]
10118    pub on_title_change: ::std::option::Option<
10119        unsafe extern "C" fn(
10120            self_: *mut _cef_display_handler_t,
10121            browser: *mut _cef_browser_t,
10122            title: *const cef_string_t,
10123        ),
10124    >,
10125    #[doc = "\n Called when the page icon changes.\n"]
10126    pub on_favicon_urlchange: ::std::option::Option<
10127        unsafe extern "C" fn(
10128            self_: *mut _cef_display_handler_t,
10129            browser: *mut _cef_browser_t,
10130            icon_urls: cef_string_list_t,
10131        ),
10132    >,
10133    #[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"]
10134    pub on_fullscreen_mode_change: ::std::option::Option<
10135        unsafe extern "C" fn(
10136            self_: *mut _cef_display_handler_t,
10137            browser: *mut _cef_browser_t,
10138            fullscreen: ::std::os::raw::c_int,
10139        ),
10140    >,
10141    #[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"]
10142    pub on_tooltip: ::std::option::Option<
10143        unsafe extern "C" fn(
10144            self_: *mut _cef_display_handler_t,
10145            browser: *mut _cef_browser_t,
10146            text: *mut cef_string_t,
10147        ) -> ::std::os::raw::c_int,
10148    >,
10149    #[doc = "\n Called when the browser receives a status message. |value| contains the\n text that will be displayed in the status message.\n"]
10150    pub on_status_message: ::std::option::Option<
10151        unsafe extern "C" fn(
10152            self_: *mut _cef_display_handler_t,
10153            browser: *mut _cef_browser_t,
10154            value: *const cef_string_t,
10155        ),
10156    >,
10157    #[doc = "\n Called to display a console message. Return true (1) to stop the message\n from being output to the console.\n"]
10158    pub on_console_message: ::std::option::Option<
10159        unsafe extern "C" fn(
10160            self_: *mut _cef_display_handler_t,
10161            browser: *mut _cef_browser_t,
10162            level: cef_log_severity_t,
10163            message: *const cef_string_t,
10164            source: *const cef_string_t,
10165            line: ::std::os::raw::c_int,
10166        ) -> ::std::os::raw::c_int,
10167    >,
10168    #[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 DIP coordinates. Return\n true (1) if the resize was handled or false (0) for default handling.\n"]
10169    pub on_auto_resize: ::std::option::Option<
10170        unsafe extern "C" fn(
10171            self_: *mut _cef_display_handler_t,
10172            browser: *mut _cef_browser_t,
10173            new_size: *const cef_size_t,
10174        ) -> ::std::os::raw::c_int,
10175    >,
10176    #[doc = "\n Called when the overall page loading progress has changed. |progress|\n ranges from 0.0 to 1.0.\n"]
10177    pub on_loading_progress_change: ::std::option::Option<
10178        unsafe extern "C" fn(
10179            self_: *mut _cef_display_handler_t,
10180            browser: *mut _cef_browser_t,
10181            progress: f64,
10182        ),
10183    >,
10184    #[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"]
10185    pub on_cursor_change: ::std::option::Option<
10186        unsafe extern "C" fn(
10187            self_: *mut _cef_display_handler_t,
10188            browser: *mut _cef_browser_t,
10189            cursor: cef_cursor_handle_t,
10190            type_: cef_cursor_type_t,
10191            custom_cursor_info: *const cef_cursor_info_t,
10192        ) -> ::std::os::raw::c_int,
10193    >,
10194    #[doc = "\n Called when the browser's access to an audio and/or video source has\n changed.\n"]
10195    pub on_media_access_change: ::std::option::Option<
10196        unsafe extern "C" fn(
10197            self_: *mut _cef_display_handler_t,
10198            browser: *mut _cef_browser_t,
10199            has_video_access: ::std::os::raw::c_int,
10200            has_audio_access: ::std::os::raw::c_int,
10201        ),
10202    >,
10203    #[doc = "\n Called when JavaScript is requesting new bounds via window.moveTo/By() or\n window.resizeTo/By(). |new_bounds| are in DIP screen coordinates.\n\n With Views-hosted browsers |new_bounds| are the desired bounds for the\n containing cef_window_t and may be passed directly to\n cef_window_t::SetBounds. With external (client-provided) parent on macOS\n and Windows |new_bounds| are the desired frame bounds for the containing\n root window. With other non-Views browsers |new_bounds| are the desired\n bounds for the browser content only unless the client implements either\n cef_display_handler_t::GetRootWindowScreenRect for windowed browsers or\n cef_render_handler_t::GetWindowScreenRect for windowless browsers. Clients\n may expand browser content bounds to window bounds using OS-specific or\n cef_display_t functions.\n\n Return true (1) if this function was handled or false (0) for default\n handling. Default move/resize behavior is only provided with Views-hosted\n Chrome style browsers.\n"]
10204    pub on_contents_bounds_change: ::std::option::Option<
10205        unsafe extern "C" fn(
10206            self_: *mut _cef_display_handler_t,
10207            browser: *mut _cef_browser_t,
10208            new_bounds: *const cef_rect_t,
10209        ) -> ::std::os::raw::c_int,
10210    >,
10211    #[doc = "\n Called to retrieve the external (client-provided) root window rectangle in\n screen DIP coordinates. Only called for windowed browsers on Windows and\n Linux. Return true (1) if the rectangle was provided. Return false (0) to\n use the root window bounds on Windows or the browser content bounds on\n Linux. For additional usage details see\n cef_browser_host_t::NotifyScreenInfoChanged.\n"]
10212    pub get_root_window_screen_rect: ::std::option::Option<
10213        unsafe extern "C" fn(
10214            self_: *mut _cef_display_handler_t,
10215            browser: *mut _cef_browser_t,
10216            rect: *mut cef_rect_t,
10217        ) -> ::std::os::raw::c_int,
10218    >,
10219}
10220#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10221const _: () = {
10222    ["Size of _cef_display_handler_t"][::std::mem::size_of::<_cef_display_handler_t>() - 144usize];
10223    ["Alignment of _cef_display_handler_t"]
10224        [::std::mem::align_of::<_cef_display_handler_t>() - 8usize];
10225    ["Offset of field: _cef_display_handler_t::base"]
10226        [::std::mem::offset_of!(_cef_display_handler_t, base) - 0usize];
10227    ["Offset of field: _cef_display_handler_t::on_address_change"]
10228        [::std::mem::offset_of!(_cef_display_handler_t, on_address_change) - 40usize];
10229    ["Offset of field: _cef_display_handler_t::on_title_change"]
10230        [::std::mem::offset_of!(_cef_display_handler_t, on_title_change) - 48usize];
10231    ["Offset of field: _cef_display_handler_t::on_favicon_urlchange"]
10232        [::std::mem::offset_of!(_cef_display_handler_t, on_favicon_urlchange) - 56usize];
10233    ["Offset of field: _cef_display_handler_t::on_fullscreen_mode_change"]
10234        [::std::mem::offset_of!(_cef_display_handler_t, on_fullscreen_mode_change) - 64usize];
10235    ["Offset of field: _cef_display_handler_t::on_tooltip"]
10236        [::std::mem::offset_of!(_cef_display_handler_t, on_tooltip) - 72usize];
10237    ["Offset of field: _cef_display_handler_t::on_status_message"]
10238        [::std::mem::offset_of!(_cef_display_handler_t, on_status_message) - 80usize];
10239    ["Offset of field: _cef_display_handler_t::on_console_message"]
10240        [::std::mem::offset_of!(_cef_display_handler_t, on_console_message) - 88usize];
10241    ["Offset of field: _cef_display_handler_t::on_auto_resize"]
10242        [::std::mem::offset_of!(_cef_display_handler_t, on_auto_resize) - 96usize];
10243    ["Offset of field: _cef_display_handler_t::on_loading_progress_change"]
10244        [::std::mem::offset_of!(_cef_display_handler_t, on_loading_progress_change) - 104usize];
10245    ["Offset of field: _cef_display_handler_t::on_cursor_change"]
10246        [::std::mem::offset_of!(_cef_display_handler_t, on_cursor_change) - 112usize];
10247    ["Offset of field: _cef_display_handler_t::on_media_access_change"]
10248        [::std::mem::offset_of!(_cef_display_handler_t, on_media_access_change) - 120usize];
10249    ["Offset of field: _cef_display_handler_t::on_contents_bounds_change"]
10250        [::std::mem::offset_of!(_cef_display_handler_t, on_contents_bounds_change) - 128usize];
10251    ["Offset of field: _cef_display_handler_t::get_root_window_screen_rect"]
10252        [::std::mem::offset_of!(_cef_display_handler_t, get_root_window_screen_rect) - 136usize];
10253};
10254#[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"]
10255pub type cef_display_handler_t = _cef_display_handler_t;
10256#[doc = "\n Structure used to represent a download item.\n\n NOTE: This struct is allocated DLL-side.\n"]
10257#[repr(C)]
10258#[derive(Debug, Copy, Clone)]
10259pub struct _cef_download_item_t {
10260    #[doc = "\n Base structure.\n"]
10261    pub base: cef_base_ref_counted_t,
10262    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
10263    pub is_valid: ::std::option::Option<
10264        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10265    >,
10266    #[doc = "\n Returns true (1) if the download is in progress.\n"]
10267    pub is_in_progress: ::std::option::Option<
10268        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10269    >,
10270    #[doc = "\n Returns true (1) if the download is complete.\n"]
10271    pub is_complete: ::std::option::Option<
10272        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10273    >,
10274    #[doc = "\n Returns true (1) if the download has been canceled.\n"]
10275    pub is_canceled: ::std::option::Option<
10276        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10277    >,
10278    #[doc = "\n Returns true (1) if the download has been interrupted.\n"]
10279    pub is_interrupted: ::std::option::Option<
10280        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10281    >,
10282    #[doc = "\n Returns the most recent interrupt reason.\n"]
10283    pub get_interrupt_reason: ::std::option::Option<
10284        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_download_interrupt_reason_t,
10285    >,
10286    #[doc = "\n Returns a simple speed estimate in bytes/s.\n"]
10287    pub get_current_speed:
10288        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
10289    #[doc = "\n Returns the rough percent complete or -1 if the receive total size is\n unknown.\n"]
10290    pub get_percent_complete: ::std::option::Option<
10291        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10292    >,
10293    #[doc = "\n Returns the total number of bytes.\n"]
10294    pub get_total_bytes:
10295        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
10296    #[doc = "\n Returns the number of received bytes.\n"]
10297    pub get_received_bytes:
10298        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> i64>,
10299    #[doc = "\n Returns the time that the download started.\n"]
10300    pub get_start_time: ::std::option::Option<
10301        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_basetime_t,
10302    >,
10303    #[doc = "\n Returns the time that the download ended.\n"]
10304    pub get_end_time: ::std::option::Option<
10305        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_basetime_t,
10306    >,
10307    #[doc = "\n Returns the full path to the downloaded or downloading file.\n"]
10308    pub get_full_path: ::std::option::Option<
10309        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10310    >,
10311    #[doc = "\n Returns the unique identifier for this download.\n"]
10312    pub get_id:
10313        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> u32>,
10314    #[doc = "\n Returns the URL.\n"]
10315    pub get_url: ::std::option::Option<
10316        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10317    >,
10318    #[doc = "\n Returns the original URL before any redirections.\n"]
10319    pub get_original_url: ::std::option::Option<
10320        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10321    >,
10322    #[doc = "\n Returns the suggested file name.\n"]
10323    pub get_suggested_file_name: ::std::option::Option<
10324        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10325    >,
10326    #[doc = "\n Returns the content disposition.\n"]
10327    pub get_content_disposition: ::std::option::Option<
10328        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10329    >,
10330    #[doc = "\n Returns the mime type.\n"]
10331    pub get_mime_type: ::std::option::Option<
10332        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t,
10333    >,
10334    #[doc = "\n Returns true (1) if the download has been paused.\n"]
10335    pub is_paused: ::std::option::Option<
10336        unsafe extern "C" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int,
10337    >,
10338}
10339#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10340const _: () = {
10341    ["Size of _cef_download_item_t"][::std::mem::size_of::<_cef_download_item_t>() - 200usize];
10342    ["Alignment of _cef_download_item_t"][::std::mem::align_of::<_cef_download_item_t>() - 8usize];
10343    ["Offset of field: _cef_download_item_t::base"]
10344        [::std::mem::offset_of!(_cef_download_item_t, base) - 0usize];
10345    ["Offset of field: _cef_download_item_t::is_valid"]
10346        [::std::mem::offset_of!(_cef_download_item_t, is_valid) - 40usize];
10347    ["Offset of field: _cef_download_item_t::is_in_progress"]
10348        [::std::mem::offset_of!(_cef_download_item_t, is_in_progress) - 48usize];
10349    ["Offset of field: _cef_download_item_t::is_complete"]
10350        [::std::mem::offset_of!(_cef_download_item_t, is_complete) - 56usize];
10351    ["Offset of field: _cef_download_item_t::is_canceled"]
10352        [::std::mem::offset_of!(_cef_download_item_t, is_canceled) - 64usize];
10353    ["Offset of field: _cef_download_item_t::is_interrupted"]
10354        [::std::mem::offset_of!(_cef_download_item_t, is_interrupted) - 72usize];
10355    ["Offset of field: _cef_download_item_t::get_interrupt_reason"]
10356        [::std::mem::offset_of!(_cef_download_item_t, get_interrupt_reason) - 80usize];
10357    ["Offset of field: _cef_download_item_t::get_current_speed"]
10358        [::std::mem::offset_of!(_cef_download_item_t, get_current_speed) - 88usize];
10359    ["Offset of field: _cef_download_item_t::get_percent_complete"]
10360        [::std::mem::offset_of!(_cef_download_item_t, get_percent_complete) - 96usize];
10361    ["Offset of field: _cef_download_item_t::get_total_bytes"]
10362        [::std::mem::offset_of!(_cef_download_item_t, get_total_bytes) - 104usize];
10363    ["Offset of field: _cef_download_item_t::get_received_bytes"]
10364        [::std::mem::offset_of!(_cef_download_item_t, get_received_bytes) - 112usize];
10365    ["Offset of field: _cef_download_item_t::get_start_time"]
10366        [::std::mem::offset_of!(_cef_download_item_t, get_start_time) - 120usize];
10367    ["Offset of field: _cef_download_item_t::get_end_time"]
10368        [::std::mem::offset_of!(_cef_download_item_t, get_end_time) - 128usize];
10369    ["Offset of field: _cef_download_item_t::get_full_path"]
10370        [::std::mem::offset_of!(_cef_download_item_t, get_full_path) - 136usize];
10371    ["Offset of field: _cef_download_item_t::get_id"]
10372        [::std::mem::offset_of!(_cef_download_item_t, get_id) - 144usize];
10373    ["Offset of field: _cef_download_item_t::get_url"]
10374        [::std::mem::offset_of!(_cef_download_item_t, get_url) - 152usize];
10375    ["Offset of field: _cef_download_item_t::get_original_url"]
10376        [::std::mem::offset_of!(_cef_download_item_t, get_original_url) - 160usize];
10377    ["Offset of field: _cef_download_item_t::get_suggested_file_name"]
10378        [::std::mem::offset_of!(_cef_download_item_t, get_suggested_file_name) - 168usize];
10379    ["Offset of field: _cef_download_item_t::get_content_disposition"]
10380        [::std::mem::offset_of!(_cef_download_item_t, get_content_disposition) - 176usize];
10381    ["Offset of field: _cef_download_item_t::get_mime_type"]
10382        [::std::mem::offset_of!(_cef_download_item_t, get_mime_type) - 184usize];
10383    ["Offset of field: _cef_download_item_t::is_paused"]
10384        [::std::mem::offset_of!(_cef_download_item_t, is_paused) - 192usize];
10385};
10386#[doc = "\n Structure used to represent a download item.\n\n NOTE: This struct is allocated DLL-side.\n"]
10387pub type cef_download_item_t = _cef_download_item_t;
10388#[doc = "\n Callback structure used to asynchronously continue a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10389#[repr(C)]
10390#[derive(Debug, Copy, Clone)]
10391pub struct _cef_before_download_callback_t {
10392    #[doc = "\n Base structure.\n"]
10393    pub base: cef_base_ref_counted_t,
10394    #[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"]
10395    pub cont: ::std::option::Option<
10396        unsafe extern "C" fn(
10397            self_: *mut _cef_before_download_callback_t,
10398            download_path: *const cef_string_t,
10399            show_dialog: ::std::os::raw::c_int,
10400        ),
10401    >,
10402}
10403#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10404const _: () = {
10405    ["Size of _cef_before_download_callback_t"]
10406        [::std::mem::size_of::<_cef_before_download_callback_t>() - 48usize];
10407    ["Alignment of _cef_before_download_callback_t"]
10408        [::std::mem::align_of::<_cef_before_download_callback_t>() - 8usize];
10409    ["Offset of field: _cef_before_download_callback_t::base"]
10410        [::std::mem::offset_of!(_cef_before_download_callback_t, base) - 0usize];
10411    ["Offset of field: _cef_before_download_callback_t::cont"]
10412        [::std::mem::offset_of!(_cef_before_download_callback_t, cont) - 40usize];
10413};
10414#[doc = "\n Callback structure used to asynchronously continue a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10415pub type cef_before_download_callback_t = _cef_before_download_callback_t;
10416#[doc = "\n Callback structure used to asynchronously cancel a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10417#[repr(C)]
10418#[derive(Debug, Copy, Clone)]
10419pub struct _cef_download_item_callback_t {
10420    #[doc = "\n Base structure.\n"]
10421    pub base: cef_base_ref_counted_t,
10422    #[doc = "\n Call to cancel the download.\n"]
10423    pub cancel:
10424        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10425    #[doc = "\n Call to pause the download.\n"]
10426    pub pause:
10427        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10428    #[doc = "\n Call to resume the download.\n"]
10429    pub resume:
10430        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_download_item_callback_t)>,
10431}
10432#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10433const _: () = {
10434    ["Size of _cef_download_item_callback_t"]
10435        [::std::mem::size_of::<_cef_download_item_callback_t>() - 64usize];
10436    ["Alignment of _cef_download_item_callback_t"]
10437        [::std::mem::align_of::<_cef_download_item_callback_t>() - 8usize];
10438    ["Offset of field: _cef_download_item_callback_t::base"]
10439        [::std::mem::offset_of!(_cef_download_item_callback_t, base) - 0usize];
10440    ["Offset of field: _cef_download_item_callback_t::cancel"]
10441        [::std::mem::offset_of!(_cef_download_item_callback_t, cancel) - 40usize];
10442    ["Offset of field: _cef_download_item_callback_t::pause"]
10443        [::std::mem::offset_of!(_cef_download_item_callback_t, pause) - 48usize];
10444    ["Offset of field: _cef_download_item_callback_t::resume"]
10445        [::std::mem::offset_of!(_cef_download_item_callback_t, resume) - 56usize];
10446};
10447#[doc = "\n Callback structure used to asynchronously cancel a download.\n\n NOTE: This struct is allocated DLL-side.\n"]
10448pub type cef_download_item_callback_t = _cef_download_item_callback_t;
10449#[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"]
10450#[repr(C)]
10451#[derive(Debug, Copy, Clone)]
10452pub struct _cef_download_handler_t {
10453    #[doc = "\n Base structure.\n"]
10454    pub base: cef_base_ref_counted_t,
10455    #[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"]
10456    pub can_download: ::std::option::Option<
10457        unsafe extern "C" fn(
10458            self_: *mut _cef_download_handler_t,
10459            browser: *mut _cef_browser_t,
10460            url: *const cef_string_t,
10461            request_method: *const cef_string_t,
10462        ) -> ::std::os::raw::c_int,
10463    >,
10464    #[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"]
10465    pub on_before_download: ::std::option::Option<
10466        unsafe extern "C" fn(
10467            self_: *mut _cef_download_handler_t,
10468            browser: *mut _cef_browser_t,
10469            download_item: *mut _cef_download_item_t,
10470            suggested_name: *const cef_string_t,
10471            callback: *mut _cef_before_download_callback_t,
10472        ) -> ::std::os::raw::c_int,
10473    >,
10474    #[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"]
10475    pub on_download_updated: ::std::option::Option<
10476        unsafe extern "C" fn(
10477            self_: *mut _cef_download_handler_t,
10478            browser: *mut _cef_browser_t,
10479            download_item: *mut _cef_download_item_t,
10480            callback: *mut _cef_download_item_callback_t,
10481        ),
10482    >,
10483}
10484#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10485const _: () = {
10486    ["Size of _cef_download_handler_t"][::std::mem::size_of::<_cef_download_handler_t>() - 64usize];
10487    ["Alignment of _cef_download_handler_t"]
10488        [::std::mem::align_of::<_cef_download_handler_t>() - 8usize];
10489    ["Offset of field: _cef_download_handler_t::base"]
10490        [::std::mem::offset_of!(_cef_download_handler_t, base) - 0usize];
10491    ["Offset of field: _cef_download_handler_t::can_download"]
10492        [::std::mem::offset_of!(_cef_download_handler_t, can_download) - 40usize];
10493    ["Offset of field: _cef_download_handler_t::on_before_download"]
10494        [::std::mem::offset_of!(_cef_download_handler_t, on_before_download) - 48usize];
10495    ["Offset of field: _cef_download_handler_t::on_download_updated"]
10496        [::std::mem::offset_of!(_cef_download_handler_t, on_download_updated) - 56usize];
10497};
10498#[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"]
10499pub type cef_download_handler_t = _cef_download_handler_t;
10500#[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"]
10501#[repr(C)]
10502#[derive(Debug, Copy, Clone)]
10503pub struct _cef_drag_handler_t {
10504    #[doc = "\n Base structure.\n"]
10505    pub base: cef_base_ref_counted_t,
10506    #[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"]
10507    pub on_drag_enter: ::std::option::Option<
10508        unsafe extern "C" fn(
10509            self_: *mut _cef_drag_handler_t,
10510            browser: *mut _cef_browser_t,
10511            dragData: *mut _cef_drag_data_t,
10512            mask: cef_drag_operations_mask_t,
10513        ) -> ::std::os::raw::c_int,
10514    >,
10515    #[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"]
10516    pub on_draggable_regions_changed: ::std::option::Option<
10517        unsafe extern "C" fn(
10518            self_: *mut _cef_drag_handler_t,
10519            browser: *mut _cef_browser_t,
10520            frame: *mut _cef_frame_t,
10521            regionsCount: usize,
10522            regions: *const cef_draggable_region_t,
10523        ),
10524    >,
10525}
10526#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10527const _: () = {
10528    ["Size of _cef_drag_handler_t"][::std::mem::size_of::<_cef_drag_handler_t>() - 56usize];
10529    ["Alignment of _cef_drag_handler_t"][::std::mem::align_of::<_cef_drag_handler_t>() - 8usize];
10530    ["Offset of field: _cef_drag_handler_t::base"]
10531        [::std::mem::offset_of!(_cef_drag_handler_t, base) - 0usize];
10532    ["Offset of field: _cef_drag_handler_t::on_drag_enter"]
10533        [::std::mem::offset_of!(_cef_drag_handler_t, on_drag_enter) - 40usize];
10534    ["Offset of field: _cef_drag_handler_t::on_draggable_regions_changed"]
10535        [::std::mem::offset_of!(_cef_drag_handler_t, on_draggable_regions_changed) - 48usize];
10536};
10537#[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"]
10538pub type cef_drag_handler_t = _cef_drag_handler_t;
10539#[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"]
10540#[repr(C)]
10541#[derive(Debug, Copy, Clone)]
10542pub struct _cef_find_handler_t {
10543    #[doc = "\n Base structure.\n"]
10544    pub base: cef_base_ref_counted_t,
10545    #[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"]
10546    pub on_find_result: ::std::option::Option<
10547        unsafe extern "C" fn(
10548            self_: *mut _cef_find_handler_t,
10549            browser: *mut _cef_browser_t,
10550            identifier: ::std::os::raw::c_int,
10551            count: ::std::os::raw::c_int,
10552            selectionRect: *const cef_rect_t,
10553            activeMatchOrdinal: ::std::os::raw::c_int,
10554            finalUpdate: ::std::os::raw::c_int,
10555        ),
10556    >,
10557}
10558#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10559const _: () = {
10560    ["Size of _cef_find_handler_t"][::std::mem::size_of::<_cef_find_handler_t>() - 48usize];
10561    ["Alignment of _cef_find_handler_t"][::std::mem::align_of::<_cef_find_handler_t>() - 8usize];
10562    ["Offset of field: _cef_find_handler_t::base"]
10563        [::std::mem::offset_of!(_cef_find_handler_t, base) - 0usize];
10564    ["Offset of field: _cef_find_handler_t::on_find_result"]
10565        [::std::mem::offset_of!(_cef_find_handler_t, on_find_result) - 40usize];
10566};
10567#[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"]
10568pub type cef_find_handler_t = _cef_find_handler_t;
10569#[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"]
10570#[repr(C)]
10571#[derive(Debug, Copy, Clone)]
10572pub struct _cef_focus_handler_t {
10573    #[doc = "\n Base structure.\n"]
10574    pub base: cef_base_ref_counted_t,
10575    #[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"]
10576    pub on_take_focus: ::std::option::Option<
10577        unsafe extern "C" fn(
10578            self_: *mut _cef_focus_handler_t,
10579            browser: *mut _cef_browser_t,
10580            next: ::std::os::raw::c_int,
10581        ),
10582    >,
10583    #[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"]
10584    pub on_set_focus: ::std::option::Option<
10585        unsafe extern "C" fn(
10586            self_: *mut _cef_focus_handler_t,
10587            browser: *mut _cef_browser_t,
10588            source: cef_focus_source_t,
10589        ) -> ::std::os::raw::c_int,
10590    >,
10591    #[doc = "\n Called when the browser component has received focus.\n"]
10592    pub on_got_focus: ::std::option::Option<
10593        unsafe extern "C" fn(self_: *mut _cef_focus_handler_t, browser: *mut _cef_browser_t),
10594    >,
10595}
10596#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10597const _: () = {
10598    ["Size of _cef_focus_handler_t"][::std::mem::size_of::<_cef_focus_handler_t>() - 64usize];
10599    ["Alignment of _cef_focus_handler_t"][::std::mem::align_of::<_cef_focus_handler_t>() - 8usize];
10600    ["Offset of field: _cef_focus_handler_t::base"]
10601        [::std::mem::offset_of!(_cef_focus_handler_t, base) - 0usize];
10602    ["Offset of field: _cef_focus_handler_t::on_take_focus"]
10603        [::std::mem::offset_of!(_cef_focus_handler_t, on_take_focus) - 40usize];
10604    ["Offset of field: _cef_focus_handler_t::on_set_focus"]
10605        [::std::mem::offset_of!(_cef_focus_handler_t, on_set_focus) - 48usize];
10606    ["Offset of field: _cef_focus_handler_t::on_got_focus"]
10607        [::std::mem::offset_of!(_cef_focus_handler_t, on_got_focus) - 56usize];
10608};
10609#[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"]
10610pub type cef_focus_handler_t = _cef_focus_handler_t;
10611#[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"]
10612#[repr(C)]
10613#[derive(Debug, Copy, Clone)]
10614pub struct _cef_frame_handler_t {
10615    #[doc = "\n Base structure.\n"]
10616    pub base: cef_base_ref_counted_t,
10617    #[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"]
10618    pub on_frame_created: ::std::option::Option<
10619        unsafe extern "C" fn(
10620            self_: *mut _cef_frame_handler_t,
10621            browser: *mut _cef_browser_t,
10622            frame: *mut _cef_frame_t,
10623        ),
10624    >,
10625    #[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"]
10626    pub on_frame_destroyed: ::std::option::Option<
10627        unsafe extern "C" fn(
10628            self_: *mut _cef_frame_handler_t,
10629            browser: *mut _cef_browser_t,
10630            frame: *mut _cef_frame_t,
10631        ),
10632    >,
10633    #[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"]
10634    pub on_frame_attached: ::std::option::Option<
10635        unsafe extern "C" fn(
10636            self_: *mut _cef_frame_handler_t,
10637            browser: *mut _cef_browser_t,
10638            frame: *mut _cef_frame_t,
10639            reattached: ::std::os::raw::c_int,
10640        ),
10641    >,
10642    #[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"]
10643    pub on_frame_detached: ::std::option::Option<
10644        unsafe extern "C" fn(
10645            self_: *mut _cef_frame_handler_t,
10646            browser: *mut _cef_browser_t,
10647            frame: *mut _cef_frame_t,
10648        ),
10649    >,
10650    #[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"]
10651    pub on_main_frame_changed: ::std::option::Option<
10652        unsafe extern "C" fn(
10653            self_: *mut _cef_frame_handler_t,
10654            browser: *mut _cef_browser_t,
10655            old_frame: *mut _cef_frame_t,
10656            new_frame: *mut _cef_frame_t,
10657        ),
10658    >,
10659}
10660#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10661const _: () = {
10662    ["Size of _cef_frame_handler_t"][::std::mem::size_of::<_cef_frame_handler_t>() - 80usize];
10663    ["Alignment of _cef_frame_handler_t"][::std::mem::align_of::<_cef_frame_handler_t>() - 8usize];
10664    ["Offset of field: _cef_frame_handler_t::base"]
10665        [::std::mem::offset_of!(_cef_frame_handler_t, base) - 0usize];
10666    ["Offset of field: _cef_frame_handler_t::on_frame_created"]
10667        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_created) - 40usize];
10668    ["Offset of field: _cef_frame_handler_t::on_frame_destroyed"]
10669        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_destroyed) - 48usize];
10670    ["Offset of field: _cef_frame_handler_t::on_frame_attached"]
10671        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_attached) - 56usize];
10672    ["Offset of field: _cef_frame_handler_t::on_frame_detached"]
10673        [::std::mem::offset_of!(_cef_frame_handler_t, on_frame_detached) - 64usize];
10674    ["Offset of field: _cef_frame_handler_t::on_main_frame_changed"]
10675        [::std::mem::offset_of!(_cef_frame_handler_t, on_main_frame_changed) - 72usize];
10676};
10677#[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"]
10678pub type cef_frame_handler_t = _cef_frame_handler_t;
10679#[doc = "\n Callback structure used for asynchronous continuation of JavaScript dialog\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10680#[repr(C)]
10681#[derive(Debug, Copy, Clone)]
10682pub struct _cef_jsdialog_callback_t {
10683    #[doc = "\n Base structure.\n"]
10684    pub base: cef_base_ref_counted_t,
10685    #[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"]
10686    pub cont: ::std::option::Option<
10687        unsafe extern "C" fn(
10688            self_: *mut _cef_jsdialog_callback_t,
10689            success: ::std::os::raw::c_int,
10690            user_input: *const cef_string_t,
10691        ),
10692    >,
10693}
10694#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10695const _: () = {
10696    ["Size of _cef_jsdialog_callback_t"]
10697        [::std::mem::size_of::<_cef_jsdialog_callback_t>() - 48usize];
10698    ["Alignment of _cef_jsdialog_callback_t"]
10699        [::std::mem::align_of::<_cef_jsdialog_callback_t>() - 8usize];
10700    ["Offset of field: _cef_jsdialog_callback_t::base"]
10701        [::std::mem::offset_of!(_cef_jsdialog_callback_t, base) - 0usize];
10702    ["Offset of field: _cef_jsdialog_callback_t::cont"]
10703        [::std::mem::offset_of!(_cef_jsdialog_callback_t, cont) - 40usize];
10704};
10705#[doc = "\n Callback structure used for asynchronous continuation of JavaScript dialog\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10706pub type cef_jsdialog_callback_t = _cef_jsdialog_callback_t;
10707#[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"]
10708#[repr(C)]
10709#[derive(Debug, Copy, Clone)]
10710pub struct _cef_jsdialog_handler_t {
10711    #[doc = "\n Base structure.\n"]
10712    pub base: cef_base_ref_counted_t,
10713    #[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"]
10714    pub on_jsdialog: ::std::option::Option<
10715        unsafe extern "C" fn(
10716            self_: *mut _cef_jsdialog_handler_t,
10717            browser: *mut _cef_browser_t,
10718            origin_url: *const cef_string_t,
10719            dialog_type: cef_jsdialog_type_t,
10720            message_text: *const cef_string_t,
10721            default_prompt_text: *const cef_string_t,
10722            callback: *mut _cef_jsdialog_callback_t,
10723            suppress_message: *mut ::std::os::raw::c_int,
10724        ) -> ::std::os::raw::c_int,
10725    >,
10726    #[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"]
10727    pub on_before_unload_dialog: ::std::option::Option<
10728        unsafe extern "C" fn(
10729            self_: *mut _cef_jsdialog_handler_t,
10730            browser: *mut _cef_browser_t,
10731            message_text: *const cef_string_t,
10732            is_reload: ::std::os::raw::c_int,
10733            callback: *mut _cef_jsdialog_callback_t,
10734        ) -> ::std::os::raw::c_int,
10735    >,
10736    #[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"]
10737    pub on_reset_dialog_state: ::std::option::Option<
10738        unsafe extern "C" fn(self_: *mut _cef_jsdialog_handler_t, browser: *mut _cef_browser_t),
10739    >,
10740    #[doc = "\n Called when the dialog is closed.\n"]
10741    pub on_dialog_closed: ::std::option::Option<
10742        unsafe extern "C" fn(self_: *mut _cef_jsdialog_handler_t, browser: *mut _cef_browser_t),
10743    >,
10744}
10745#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10746const _: () = {
10747    ["Size of _cef_jsdialog_handler_t"][::std::mem::size_of::<_cef_jsdialog_handler_t>() - 72usize];
10748    ["Alignment of _cef_jsdialog_handler_t"]
10749        [::std::mem::align_of::<_cef_jsdialog_handler_t>() - 8usize];
10750    ["Offset of field: _cef_jsdialog_handler_t::base"]
10751        [::std::mem::offset_of!(_cef_jsdialog_handler_t, base) - 0usize];
10752    ["Offset of field: _cef_jsdialog_handler_t::on_jsdialog"]
10753        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_jsdialog) - 40usize];
10754    ["Offset of field: _cef_jsdialog_handler_t::on_before_unload_dialog"]
10755        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_before_unload_dialog) - 48usize];
10756    ["Offset of field: _cef_jsdialog_handler_t::on_reset_dialog_state"]
10757        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_reset_dialog_state) - 56usize];
10758    ["Offset of field: _cef_jsdialog_handler_t::on_dialog_closed"]
10759        [::std::mem::offset_of!(_cef_jsdialog_handler_t, on_dialog_closed) - 64usize];
10760};
10761#[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"]
10762pub type cef_jsdialog_handler_t = _cef_jsdialog_handler_t;
10763#[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"]
10764#[repr(C)]
10765#[derive(Debug, Copy, Clone)]
10766pub struct _cef_keyboard_handler_t {
10767    #[doc = "\n Base structure.\n"]
10768    pub base: cef_base_ref_counted_t,
10769    #[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"]
10770    pub on_pre_key_event: ::std::option::Option<
10771        unsafe extern "C" fn(
10772            self_: *mut _cef_keyboard_handler_t,
10773            browser: *mut _cef_browser_t,
10774            event: *const cef_key_event_t,
10775            os_event: cef_event_handle_t,
10776            is_keyboard_shortcut: *mut ::std::os::raw::c_int,
10777        ) -> ::std::os::raw::c_int,
10778    >,
10779    #[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"]
10780    pub on_key_event: ::std::option::Option<
10781        unsafe extern "C" fn(
10782            self_: *mut _cef_keyboard_handler_t,
10783            browser: *mut _cef_browser_t,
10784            event: *const cef_key_event_t,
10785            os_event: cef_event_handle_t,
10786        ) -> ::std::os::raw::c_int,
10787    >,
10788}
10789#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10790const _: () = {
10791    ["Size of _cef_keyboard_handler_t"][::std::mem::size_of::<_cef_keyboard_handler_t>() - 56usize];
10792    ["Alignment of _cef_keyboard_handler_t"]
10793        [::std::mem::align_of::<_cef_keyboard_handler_t>() - 8usize];
10794    ["Offset of field: _cef_keyboard_handler_t::base"]
10795        [::std::mem::offset_of!(_cef_keyboard_handler_t, base) - 0usize];
10796    ["Offset of field: _cef_keyboard_handler_t::on_pre_key_event"]
10797        [::std::mem::offset_of!(_cef_keyboard_handler_t, on_pre_key_event) - 40usize];
10798    ["Offset of field: _cef_keyboard_handler_t::on_key_event"]
10799        [::std::mem::offset_of!(_cef_keyboard_handler_t, on_key_event) - 48usize];
10800};
10801#[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"]
10802pub type cef_keyboard_handler_t = _cef_keyboard_handler_t;
10803#[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"]
10804#[repr(C)]
10805#[derive(Copy, Clone)]
10806pub struct _cef_life_span_handler_t {
10807    #[doc = "\n Base structure.\n"]
10808    pub base: cef_base_ref_counted_t,
10809    #[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"]
10810    pub on_before_popup: ::std::option::Option<
10811        unsafe extern "C" fn(
10812            self_: *mut _cef_life_span_handler_t,
10813            browser: *mut _cef_browser_t,
10814            frame: *mut _cef_frame_t,
10815            popup_id: ::std::os::raw::c_int,
10816            target_url: *const cef_string_t,
10817            target_frame_name: *const cef_string_t,
10818            target_disposition: cef_window_open_disposition_t,
10819            user_gesture: ::std::os::raw::c_int,
10820            popupFeatures: *const cef_popup_features_t,
10821            windowInfo: *mut _cef_window_info_t,
10822            client: *mut *mut _cef_client_t,
10823            settings: *mut _cef_browser_settings_t,
10824            extra_info: *mut *mut _cef_dictionary_value_t,
10825            no_javascript_access: *mut ::std::os::raw::c_int,
10826        ) -> ::std::os::raw::c_int,
10827    >,
10828    #[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"]
10829    pub on_before_popup_aborted: ::std::option::Option<
10830        unsafe extern "C" fn(
10831            self_: *mut _cef_life_span_handler_t,
10832            browser: *mut _cef_browser_t,
10833            popup_id: ::std::os::raw::c_int,
10834        ),
10835    >,
10836    #[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"]
10837    pub on_before_dev_tools_popup: ::std::option::Option<
10838        unsafe extern "C" fn(
10839            self_: *mut _cef_life_span_handler_t,
10840            browser: *mut _cef_browser_t,
10841            windowInfo: *mut _cef_window_info_t,
10842            client: *mut *mut _cef_client_t,
10843            settings: *mut _cef_browser_settings_t,
10844            extra_info: *mut *mut _cef_dictionary_value_t,
10845            use_default_window: *mut ::std::os::raw::c_int,
10846        ),
10847    >,
10848    #[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"]
10849    pub on_after_created: ::std::option::Option<
10850        unsafe extern "C" fn(self_: *mut _cef_life_span_handler_t, browser: *mut _cef_browser_t),
10851    >,
10852    #[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"]
10853    pub do_close: ::std::option::Option<
10854        unsafe extern "C" fn(
10855            self_: *mut _cef_life_span_handler_t,
10856            browser: *mut _cef_browser_t,
10857        ) -> ::std::os::raw::c_int,
10858    >,
10859    #[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"]
10860    pub on_before_close: ::std::option::Option<
10861        unsafe extern "C" fn(self_: *mut _cef_life_span_handler_t, browser: *mut _cef_browser_t),
10862    >,
10863}
10864#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10865const _: () = {
10866    ["Size of _cef_life_span_handler_t"]
10867        [::std::mem::size_of::<_cef_life_span_handler_t>() - 88usize];
10868    ["Alignment of _cef_life_span_handler_t"]
10869        [::std::mem::align_of::<_cef_life_span_handler_t>() - 8usize];
10870    ["Offset of field: _cef_life_span_handler_t::base"]
10871        [::std::mem::offset_of!(_cef_life_span_handler_t, base) - 0usize];
10872    ["Offset of field: _cef_life_span_handler_t::on_before_popup"]
10873        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_popup) - 40usize];
10874    ["Offset of field: _cef_life_span_handler_t::on_before_popup_aborted"]
10875        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_popup_aborted) - 48usize];
10876    ["Offset of field: _cef_life_span_handler_t::on_before_dev_tools_popup"]
10877        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_dev_tools_popup) - 56usize];
10878    ["Offset of field: _cef_life_span_handler_t::on_after_created"]
10879        [::std::mem::offset_of!(_cef_life_span_handler_t, on_after_created) - 64usize];
10880    ["Offset of field: _cef_life_span_handler_t::do_close"]
10881        [::std::mem::offset_of!(_cef_life_span_handler_t, do_close) - 72usize];
10882    ["Offset of field: _cef_life_span_handler_t::on_before_close"]
10883        [::std::mem::offset_of!(_cef_life_span_handler_t, on_before_close) - 80usize];
10884};
10885#[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"]
10886pub type cef_life_span_handler_t = _cef_life_span_handler_t;
10887#[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"]
10888#[repr(C)]
10889#[derive(Debug, Copy, Clone)]
10890pub struct _cef_load_handler_t {
10891    #[doc = "\n Base structure.\n"]
10892    pub base: cef_base_ref_counted_t,
10893    #[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"]
10894    pub on_loading_state_change: ::std::option::Option<
10895        unsafe extern "C" fn(
10896            self_: *mut _cef_load_handler_t,
10897            browser: *mut _cef_browser_t,
10898            isLoading: ::std::os::raw::c_int,
10899            canGoBack: ::std::os::raw::c_int,
10900            canGoForward: ::std::os::raw::c_int,
10901        ),
10902    >,
10903    #[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"]
10904    pub on_load_start: ::std::option::Option<
10905        unsafe extern "C" fn(
10906            self_: *mut _cef_load_handler_t,
10907            browser: *mut _cef_browser_t,
10908            frame: *mut _cef_frame_t,
10909            transition_type: cef_transition_type_t,
10910        ),
10911    >,
10912    #[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"]
10913    pub on_load_end: ::std::option::Option<
10914        unsafe extern "C" fn(
10915            self_: *mut _cef_load_handler_t,
10916            browser: *mut _cef_browser_t,
10917            frame: *mut _cef_frame_t,
10918            httpStatusCode: ::std::os::raw::c_int,
10919        ),
10920    >,
10921    #[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"]
10922    pub on_load_error: ::std::option::Option<
10923        unsafe extern "C" fn(
10924            self_: *mut _cef_load_handler_t,
10925            browser: *mut _cef_browser_t,
10926            frame: *mut _cef_frame_t,
10927            errorCode: cef_errorcode_t,
10928            errorText: *const cef_string_t,
10929            failedUrl: *const cef_string_t,
10930        ),
10931    >,
10932}
10933#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10934const _: () = {
10935    ["Size of _cef_load_handler_t"][::std::mem::size_of::<_cef_load_handler_t>() - 72usize];
10936    ["Alignment of _cef_load_handler_t"][::std::mem::align_of::<_cef_load_handler_t>() - 8usize];
10937    ["Offset of field: _cef_load_handler_t::base"]
10938        [::std::mem::offset_of!(_cef_load_handler_t, base) - 0usize];
10939    ["Offset of field: _cef_load_handler_t::on_loading_state_change"]
10940        [::std::mem::offset_of!(_cef_load_handler_t, on_loading_state_change) - 40usize];
10941    ["Offset of field: _cef_load_handler_t::on_load_start"]
10942        [::std::mem::offset_of!(_cef_load_handler_t, on_load_start) - 48usize];
10943    ["Offset of field: _cef_load_handler_t::on_load_end"]
10944        [::std::mem::offset_of!(_cef_load_handler_t, on_load_end) - 56usize];
10945    ["Offset of field: _cef_load_handler_t::on_load_error"]
10946        [::std::mem::offset_of!(_cef_load_handler_t, on_load_error) - 64usize];
10947};
10948#[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"]
10949pub type cef_load_handler_t = _cef_load_handler_t;
10950#[doc = "\n Callback structure used for asynchronous continuation of media access\n permission requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10951#[repr(C)]
10952#[derive(Debug, Copy, Clone)]
10953pub struct _cef_media_access_callback_t {
10954    #[doc = "\n Base structure.\n"]
10955    pub base: cef_base_ref_counted_t,
10956    #[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"]
10957    pub cont: ::std::option::Option<
10958        unsafe extern "C" fn(self_: *mut _cef_media_access_callback_t, allowed_permissions: u32),
10959    >,
10960    #[doc = "\n Cancel the media access request.\n"]
10961    pub cancel:
10962        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_media_access_callback_t)>,
10963}
10964#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10965const _: () = {
10966    ["Size of _cef_media_access_callback_t"]
10967        [::std::mem::size_of::<_cef_media_access_callback_t>() - 56usize];
10968    ["Alignment of _cef_media_access_callback_t"]
10969        [::std::mem::align_of::<_cef_media_access_callback_t>() - 8usize];
10970    ["Offset of field: _cef_media_access_callback_t::base"]
10971        [::std::mem::offset_of!(_cef_media_access_callback_t, base) - 0usize];
10972    ["Offset of field: _cef_media_access_callback_t::cont"]
10973        [::std::mem::offset_of!(_cef_media_access_callback_t, cont) - 40usize];
10974    ["Offset of field: _cef_media_access_callback_t::cancel"]
10975        [::std::mem::offset_of!(_cef_media_access_callback_t, cancel) - 48usize];
10976};
10977#[doc = "\n Callback structure used for asynchronous continuation of media access\n permission requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
10978pub type cef_media_access_callback_t = _cef_media_access_callback_t;
10979#[doc = "\n Callback structure used for asynchronous continuation of permission prompts.\n\n NOTE: This struct is allocated DLL-side.\n"]
10980#[repr(C)]
10981#[derive(Debug, Copy, Clone)]
10982pub struct _cef_permission_prompt_callback_t {
10983    #[doc = "\n Base structure.\n"]
10984    pub base: cef_base_ref_counted_t,
10985    #[doc = "\n Complete the permissions request with the specified |result|.\n"]
10986    pub cont: ::std::option::Option<
10987        unsafe extern "C" fn(
10988            self_: *mut _cef_permission_prompt_callback_t,
10989            result: cef_permission_request_result_t,
10990        ),
10991    >,
10992}
10993#[allow(clippy::unnecessary_operation, clippy::identity_op)]
10994const _: () = {
10995    ["Size of _cef_permission_prompt_callback_t"]
10996        [::std::mem::size_of::<_cef_permission_prompt_callback_t>() - 48usize];
10997    ["Alignment of _cef_permission_prompt_callback_t"]
10998        [::std::mem::align_of::<_cef_permission_prompt_callback_t>() - 8usize];
10999    ["Offset of field: _cef_permission_prompt_callback_t::base"]
11000        [::std::mem::offset_of!(_cef_permission_prompt_callback_t, base) - 0usize];
11001    ["Offset of field: _cef_permission_prompt_callback_t::cont"]
11002        [::std::mem::offset_of!(_cef_permission_prompt_callback_t, cont) - 40usize];
11003};
11004#[doc = "\n Callback structure used for asynchronous continuation of permission prompts.\n\n NOTE: This struct is allocated DLL-side.\n"]
11005pub type cef_permission_prompt_callback_t = _cef_permission_prompt_callback_t;
11006#[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"]
11007#[repr(C)]
11008#[derive(Debug, Copy, Clone)]
11009pub struct _cef_permission_handler_t {
11010    #[doc = "\n Base structure.\n"]
11011    pub base: cef_base_ref_counted_t,
11012    #[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"]
11013    pub on_request_media_access_permission: ::std::option::Option<
11014        unsafe extern "C" fn(
11015            self_: *mut _cef_permission_handler_t,
11016            browser: *mut _cef_browser_t,
11017            frame: *mut _cef_frame_t,
11018            requesting_origin: *const cef_string_t,
11019            requested_permissions: u32,
11020            callback: *mut _cef_media_access_callback_t,
11021        ) -> ::std::os::raw::c_int,
11022    >,
11023    #[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"]
11024    pub on_show_permission_prompt: ::std::option::Option<
11025        unsafe extern "C" fn(
11026            self_: *mut _cef_permission_handler_t,
11027            browser: *mut _cef_browser_t,
11028            prompt_id: u64,
11029            requesting_origin: *const cef_string_t,
11030            requested_permissions: u32,
11031            callback: *mut _cef_permission_prompt_callback_t,
11032        ) -> ::std::os::raw::c_int,
11033    >,
11034    #[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"]
11035    pub on_dismiss_permission_prompt: ::std::option::Option<
11036        unsafe extern "C" fn(
11037            self_: *mut _cef_permission_handler_t,
11038            browser: *mut _cef_browser_t,
11039            prompt_id: u64,
11040            result: cef_permission_request_result_t,
11041        ),
11042    >,
11043}
11044#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11045const _: () = {
11046    ["Size of _cef_permission_handler_t"]
11047        [::std::mem::size_of::<_cef_permission_handler_t>() - 64usize];
11048    ["Alignment of _cef_permission_handler_t"]
11049        [::std::mem::align_of::<_cef_permission_handler_t>() - 8usize];
11050    ["Offset of field: _cef_permission_handler_t::base"]
11051        [::std::mem::offset_of!(_cef_permission_handler_t, base) - 0usize];
11052    ["Offset of field: _cef_permission_handler_t::on_request_media_access_permission"][::std::mem::offset_of!(
11053        _cef_permission_handler_t,
11054        on_request_media_access_permission
11055    ) - 40usize];
11056    ["Offset of field: _cef_permission_handler_t::on_show_permission_prompt"]
11057        [::std::mem::offset_of!(_cef_permission_handler_t, on_show_permission_prompt) - 48usize];
11058    ["Offset of field: _cef_permission_handler_t::on_dismiss_permission_prompt"]
11059        [::std::mem::offset_of!(_cef_permission_handler_t, on_dismiss_permission_prompt) - 56usize];
11060};
11061#[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"]
11062pub type cef_permission_handler_t = _cef_permission_handler_t;
11063#[doc = "\n Structure representing print settings.\n\n NOTE: This struct is allocated DLL-side.\n"]
11064#[repr(C)]
11065#[derive(Debug, Copy, Clone)]
11066pub struct _cef_print_settings_t {
11067    #[doc = "\n Base structure.\n"]
11068    pub base: cef_base_ref_counted_t,
11069    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
11070    pub is_valid: ::std::option::Option<
11071        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11072    >,
11073    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
11074    pub is_read_only: ::std::option::Option<
11075        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11076    >,
11077    #[doc = "\n Set the page orientation.\n"]
11078    pub set_orientation: ::std::option::Option<
11079        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, landscape: ::std::os::raw::c_int),
11080    >,
11081    #[doc = "\n Returns true (1) if the orientation is landscape.\n"]
11082    pub is_landscape: ::std::option::Option<
11083        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11084    >,
11085    #[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"]
11086    pub set_printer_printable_area: ::std::option::Option<
11087        unsafe extern "C" fn(
11088            self_: *mut _cef_print_settings_t,
11089            physical_size_device_units: *const cef_size_t,
11090            printable_area_device_units: *const cef_rect_t,
11091            landscape_needs_flip: ::std::os::raw::c_int,
11092        ),
11093    >,
11094    #[doc = "\n Set the device name.\n"]
11095    pub set_device_name: ::std::option::Option<
11096        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t),
11097    >,
11098    #[doc = "\n Get the device name.\n"]
11099    pub get_device_name: ::std::option::Option<
11100        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t,
11101    >,
11102    #[doc = "\n Set the DPI (dots per inch).\n"]
11103    pub set_dpi: ::std::option::Option<
11104        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, dpi: ::std::os::raw::c_int),
11105    >,
11106    #[doc = "\n Get the DPI (dots per inch).\n"]
11107    pub get_dpi: ::std::option::Option<
11108        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11109    >,
11110    #[doc = "\n Set the page ranges.\n"]
11111    pub set_page_ranges: ::std::option::Option<
11112        unsafe extern "C" fn(
11113            self_: *mut _cef_print_settings_t,
11114            rangesCount: usize,
11115            ranges: *const cef_range_t,
11116        ),
11117    >,
11118    #[doc = "\n Returns the number of page ranges that currently exist.\n"]
11119    pub get_page_ranges_count:
11120        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> usize>,
11121    #[doc = "\n Retrieve the page ranges.\n"]
11122    pub get_page_ranges: ::std::option::Option<
11123        unsafe extern "C" fn(
11124            self_: *mut _cef_print_settings_t,
11125            rangesCount: *mut usize,
11126            ranges: *mut cef_range_t,
11127        ),
11128    >,
11129    #[doc = "\n Set whether only the selection will be printed.\n"]
11130    pub set_selection_only: ::std::option::Option<
11131        unsafe extern "C" fn(
11132            self_: *mut _cef_print_settings_t,
11133            selection_only: ::std::os::raw::c_int,
11134        ),
11135    >,
11136    #[doc = "\n Returns true (1) if only the selection will be printed.\n"]
11137    pub is_selection_only: ::std::option::Option<
11138        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11139    >,
11140    #[doc = "\n Set whether pages will be collated.\n"]
11141    pub set_collate: ::std::option::Option<
11142        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, collate: ::std::os::raw::c_int),
11143    >,
11144    #[doc = "\n Returns true (1) if pages will be collated.\n"]
11145    pub will_collate: ::std::option::Option<
11146        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11147    >,
11148    #[doc = "\n Set the color model.\n"]
11149    pub set_color_model: ::std::option::Option<
11150        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, model: cef_color_model_t),
11151    >,
11152    #[doc = "\n Get the color model.\n"]
11153    pub get_color_model: ::std::option::Option<
11154        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t,
11155    >,
11156    #[doc = "\n Set the number of copies.\n"]
11157    pub set_copies: ::std::option::Option<
11158        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, copies: ::std::os::raw::c_int),
11159    >,
11160    #[doc = "\n Get the number of copies.\n"]
11161    pub get_copies: ::std::option::Option<
11162        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int,
11163    >,
11164    #[doc = "\n Set the duplex mode.\n"]
11165    pub set_duplex_mode: ::std::option::Option<
11166        unsafe extern "C" fn(self_: *mut _cef_print_settings_t, mode: cef_duplex_mode_t),
11167    >,
11168    #[doc = "\n Get the duplex mode.\n"]
11169    pub get_duplex_mode: ::std::option::Option<
11170        unsafe extern "C" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t,
11171    >,
11172}
11173#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11174const _: () = {
11175    ["Size of _cef_print_settings_t"][::std::mem::size_of::<_cef_print_settings_t>() - 216usize];
11176    ["Alignment of _cef_print_settings_t"]
11177        [::std::mem::align_of::<_cef_print_settings_t>() - 8usize];
11178    ["Offset of field: _cef_print_settings_t::base"]
11179        [::std::mem::offset_of!(_cef_print_settings_t, base) - 0usize];
11180    ["Offset of field: _cef_print_settings_t::is_valid"]
11181        [::std::mem::offset_of!(_cef_print_settings_t, is_valid) - 40usize];
11182    ["Offset of field: _cef_print_settings_t::is_read_only"]
11183        [::std::mem::offset_of!(_cef_print_settings_t, is_read_only) - 48usize];
11184    ["Offset of field: _cef_print_settings_t::set_orientation"]
11185        [::std::mem::offset_of!(_cef_print_settings_t, set_orientation) - 56usize];
11186    ["Offset of field: _cef_print_settings_t::is_landscape"]
11187        [::std::mem::offset_of!(_cef_print_settings_t, is_landscape) - 64usize];
11188    ["Offset of field: _cef_print_settings_t::set_printer_printable_area"]
11189        [::std::mem::offset_of!(_cef_print_settings_t, set_printer_printable_area) - 72usize];
11190    ["Offset of field: _cef_print_settings_t::set_device_name"]
11191        [::std::mem::offset_of!(_cef_print_settings_t, set_device_name) - 80usize];
11192    ["Offset of field: _cef_print_settings_t::get_device_name"]
11193        [::std::mem::offset_of!(_cef_print_settings_t, get_device_name) - 88usize];
11194    ["Offset of field: _cef_print_settings_t::set_dpi"]
11195        [::std::mem::offset_of!(_cef_print_settings_t, set_dpi) - 96usize];
11196    ["Offset of field: _cef_print_settings_t::get_dpi"]
11197        [::std::mem::offset_of!(_cef_print_settings_t, get_dpi) - 104usize];
11198    ["Offset of field: _cef_print_settings_t::set_page_ranges"]
11199        [::std::mem::offset_of!(_cef_print_settings_t, set_page_ranges) - 112usize];
11200    ["Offset of field: _cef_print_settings_t::get_page_ranges_count"]
11201        [::std::mem::offset_of!(_cef_print_settings_t, get_page_ranges_count) - 120usize];
11202    ["Offset of field: _cef_print_settings_t::get_page_ranges"]
11203        [::std::mem::offset_of!(_cef_print_settings_t, get_page_ranges) - 128usize];
11204    ["Offset of field: _cef_print_settings_t::set_selection_only"]
11205        [::std::mem::offset_of!(_cef_print_settings_t, set_selection_only) - 136usize];
11206    ["Offset of field: _cef_print_settings_t::is_selection_only"]
11207        [::std::mem::offset_of!(_cef_print_settings_t, is_selection_only) - 144usize];
11208    ["Offset of field: _cef_print_settings_t::set_collate"]
11209        [::std::mem::offset_of!(_cef_print_settings_t, set_collate) - 152usize];
11210    ["Offset of field: _cef_print_settings_t::will_collate"]
11211        [::std::mem::offset_of!(_cef_print_settings_t, will_collate) - 160usize];
11212    ["Offset of field: _cef_print_settings_t::set_color_model"]
11213        [::std::mem::offset_of!(_cef_print_settings_t, set_color_model) - 168usize];
11214    ["Offset of field: _cef_print_settings_t::get_color_model"]
11215        [::std::mem::offset_of!(_cef_print_settings_t, get_color_model) - 176usize];
11216    ["Offset of field: _cef_print_settings_t::set_copies"]
11217        [::std::mem::offset_of!(_cef_print_settings_t, set_copies) - 184usize];
11218    ["Offset of field: _cef_print_settings_t::get_copies"]
11219        [::std::mem::offset_of!(_cef_print_settings_t, get_copies) - 192usize];
11220    ["Offset of field: _cef_print_settings_t::set_duplex_mode"]
11221        [::std::mem::offset_of!(_cef_print_settings_t, set_duplex_mode) - 200usize];
11222    ["Offset of field: _cef_print_settings_t::get_duplex_mode"]
11223        [::std::mem::offset_of!(_cef_print_settings_t, get_duplex_mode) - 208usize];
11224};
11225#[doc = "\n Structure representing print settings.\n\n NOTE: This struct is allocated DLL-side.\n"]
11226pub type cef_print_settings_t = _cef_print_settings_t;
11227unsafe extern "C" {
11228    #[doc = "\n Create a new cef_print_settings_t object.\n"]
11229    pub fn cef_print_settings_create() -> *mut cef_print_settings_t;
11230}
11231#[doc = "\n Callback structure for asynchronous continuation of print dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11232#[repr(C)]
11233#[derive(Debug, Copy, Clone)]
11234pub struct _cef_print_dialog_callback_t {
11235    #[doc = "\n Base structure.\n"]
11236    pub base: cef_base_ref_counted_t,
11237    #[doc = "\n Continue printing with the specified |settings|.\n"]
11238    pub cont: ::std::option::Option<
11239        unsafe extern "C" fn(
11240            self_: *mut _cef_print_dialog_callback_t,
11241            settings: *mut _cef_print_settings_t,
11242        ),
11243    >,
11244    #[doc = "\n Cancel the printing.\n"]
11245    pub cancel:
11246        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_dialog_callback_t)>,
11247}
11248#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11249const _: () = {
11250    ["Size of _cef_print_dialog_callback_t"]
11251        [::std::mem::size_of::<_cef_print_dialog_callback_t>() - 56usize];
11252    ["Alignment of _cef_print_dialog_callback_t"]
11253        [::std::mem::align_of::<_cef_print_dialog_callback_t>() - 8usize];
11254    ["Offset of field: _cef_print_dialog_callback_t::base"]
11255        [::std::mem::offset_of!(_cef_print_dialog_callback_t, base) - 0usize];
11256    ["Offset of field: _cef_print_dialog_callback_t::cont"]
11257        [::std::mem::offset_of!(_cef_print_dialog_callback_t, cont) - 40usize];
11258    ["Offset of field: _cef_print_dialog_callback_t::cancel"]
11259        [::std::mem::offset_of!(_cef_print_dialog_callback_t, cancel) - 48usize];
11260};
11261#[doc = "\n Callback structure for asynchronous continuation of print dialog requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11262pub type cef_print_dialog_callback_t = _cef_print_dialog_callback_t;
11263#[doc = "\n Callback structure for asynchronous continuation of print job requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11264#[repr(C)]
11265#[derive(Debug, Copy, Clone)]
11266pub struct _cef_print_job_callback_t {
11267    #[doc = "\n Base structure.\n"]
11268    pub base: cef_base_ref_counted_t,
11269    #[doc = "\n Indicate completion of the print job.\n"]
11270    pub cont: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_print_job_callback_t)>,
11271}
11272#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11273const _: () = {
11274    ["Size of _cef_print_job_callback_t"]
11275        [::std::mem::size_of::<_cef_print_job_callback_t>() - 48usize];
11276    ["Alignment of _cef_print_job_callback_t"]
11277        [::std::mem::align_of::<_cef_print_job_callback_t>() - 8usize];
11278    ["Offset of field: _cef_print_job_callback_t::base"]
11279        [::std::mem::offset_of!(_cef_print_job_callback_t, base) - 0usize];
11280    ["Offset of field: _cef_print_job_callback_t::cont"]
11281        [::std::mem::offset_of!(_cef_print_job_callback_t, cont) - 40usize];
11282};
11283#[doc = "\n Callback structure for asynchronous continuation of print job requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11284pub type cef_print_job_callback_t = _cef_print_job_callback_t;
11285#[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"]
11286#[repr(C)]
11287#[derive(Debug, Copy, Clone)]
11288pub struct _cef_print_handler_t {
11289    #[doc = "\n Base structure.\n"]
11290    pub base: cef_base_ref_counted_t,
11291    #[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"]
11292    pub on_print_start: ::std::option::Option<
11293        unsafe extern "C" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t),
11294    >,
11295    #[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"]
11296    pub on_print_settings: ::std::option::Option<
11297        unsafe extern "C" fn(
11298            self_: *mut _cef_print_handler_t,
11299            browser: *mut _cef_browser_t,
11300            settings: *mut _cef_print_settings_t,
11301            get_defaults: ::std::os::raw::c_int,
11302        ),
11303    >,
11304    #[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"]
11305    pub on_print_dialog: ::std::option::Option<
11306        unsafe extern "C" fn(
11307            self_: *mut _cef_print_handler_t,
11308            browser: *mut _cef_browser_t,
11309            has_selection: ::std::os::raw::c_int,
11310            callback: *mut _cef_print_dialog_callback_t,
11311        ) -> ::std::os::raw::c_int,
11312    >,
11313    #[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"]
11314    pub on_print_job: ::std::option::Option<
11315        unsafe extern "C" fn(
11316            self_: *mut _cef_print_handler_t,
11317            browser: *mut _cef_browser_t,
11318            document_name: *const cef_string_t,
11319            pdf_file_path: *const cef_string_t,
11320            callback: *mut _cef_print_job_callback_t,
11321        ) -> ::std::os::raw::c_int,
11322    >,
11323    #[doc = "\n Reset client state related to printing.\n"]
11324    pub on_print_reset: ::std::option::Option<
11325        unsafe extern "C" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t),
11326    >,
11327    #[doc = "\n Return the PDF paper size in device units. Used in combination with\n cef_browser_host_t::print_to_pdf().\n"]
11328    pub get_pdf_paper_size: ::std::option::Option<
11329        unsafe extern "C" fn(
11330            self_: *mut _cef_print_handler_t,
11331            browser: *mut _cef_browser_t,
11332            device_units_per_inch: ::std::os::raw::c_int,
11333        ) -> cef_size_t,
11334    >,
11335}
11336#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11337const _: () = {
11338    ["Size of _cef_print_handler_t"][::std::mem::size_of::<_cef_print_handler_t>() - 88usize];
11339    ["Alignment of _cef_print_handler_t"][::std::mem::align_of::<_cef_print_handler_t>() - 8usize];
11340    ["Offset of field: _cef_print_handler_t::base"]
11341        [::std::mem::offset_of!(_cef_print_handler_t, base) - 0usize];
11342    ["Offset of field: _cef_print_handler_t::on_print_start"]
11343        [::std::mem::offset_of!(_cef_print_handler_t, on_print_start) - 40usize];
11344    ["Offset of field: _cef_print_handler_t::on_print_settings"]
11345        [::std::mem::offset_of!(_cef_print_handler_t, on_print_settings) - 48usize];
11346    ["Offset of field: _cef_print_handler_t::on_print_dialog"]
11347        [::std::mem::offset_of!(_cef_print_handler_t, on_print_dialog) - 56usize];
11348    ["Offset of field: _cef_print_handler_t::on_print_job"]
11349        [::std::mem::offset_of!(_cef_print_handler_t, on_print_job) - 64usize];
11350    ["Offset of field: _cef_print_handler_t::on_print_reset"]
11351        [::std::mem::offset_of!(_cef_print_handler_t, on_print_reset) - 72usize];
11352    ["Offset of field: _cef_print_handler_t::get_pdf_paper_size"]
11353        [::std::mem::offset_of!(_cef_print_handler_t, get_pdf_paper_size) - 80usize];
11354};
11355#[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"]
11356pub type cef_print_handler_t = _cef_print_handler_t;
11357#[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"]
11358#[repr(C)]
11359#[derive(Debug, Copy, Clone)]
11360pub struct _cef_render_handler_t {
11361    #[doc = "\n Base structure.\n"]
11362    pub base: cef_base_ref_counted_t,
11363    #[doc = "\n Return the handler for accessibility notifications. If no handler is\n provided the default implementation will be used.\n"]
11364    pub get_accessibility_handler: ::std::option::Option<
11365        unsafe extern "C" fn(
11366            self_: *mut _cef_render_handler_t,
11367        ) -> *mut _cef_accessibility_handler_t,
11368    >,
11369    #[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"]
11370    pub get_root_screen_rect: ::std::option::Option<
11371        unsafe extern "C" fn(
11372            self_: *mut _cef_render_handler_t,
11373            browser: *mut _cef_browser_t,
11374            rect: *mut cef_rect_t,
11375        ) -> ::std::os::raw::c_int,
11376    >,
11377    #[doc = "\n Called to retrieve the view rectangle in screen DIP coordinates. This\n function must always provide a non-NULL rectangle.\n"]
11378    pub get_view_rect: ::std::option::Option<
11379        unsafe extern "C" fn(
11380            self_: *mut _cef_render_handler_t,
11381            browser: *mut _cef_browser_t,
11382            rect: *mut cef_rect_t,
11383        ),
11384    >,
11385    #[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"]
11386    pub get_screen_point: ::std::option::Option<
11387        unsafe extern "C" fn(
11388            self_: *mut _cef_render_handler_t,
11389            browser: *mut _cef_browser_t,
11390            viewX: ::std::os::raw::c_int,
11391            viewY: ::std::os::raw::c_int,
11392            screenX: *mut ::std::os::raw::c_int,
11393            screenY: *mut ::std::os::raw::c_int,
11394        ) -> ::std::os::raw::c_int,
11395    >,
11396    #[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"]
11397    pub get_screen_info: ::std::option::Option<
11398        unsafe extern "C" fn(
11399            self_: *mut _cef_render_handler_t,
11400            browser: *mut _cef_browser_t,
11401            screen_info: *mut cef_screen_info_t,
11402        ) -> ::std::os::raw::c_int,
11403    >,
11404    #[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"]
11405    pub on_popup_show: ::std::option::Option<
11406        unsafe extern "C" fn(
11407            self_: *mut _cef_render_handler_t,
11408            browser: *mut _cef_browser_t,
11409            show: ::std::os::raw::c_int,
11410        ),
11411    >,
11412    #[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"]
11413    pub on_popup_size: ::std::option::Option<
11414        unsafe extern "C" fn(
11415            self_: *mut _cef_render_handler_t,
11416            browser: *mut _cef_browser_t,
11417            rect: *const cef_rect_t,
11418        ),
11419    >,
11420    #[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"]
11421    pub on_paint: ::std::option::Option<
11422        unsafe extern "C" fn(
11423            self_: *mut _cef_render_handler_t,
11424            browser: *mut _cef_browser_t,
11425            type_: cef_paint_element_type_t,
11426            dirtyRectsCount: usize,
11427            dirtyRects: *const cef_rect_t,
11428            buffer: *const ::std::os::raw::c_void,
11429            width: ::std::os::raw::c_int,
11430            height: ::std::os::raw::c_int,
11431        ),
11432    >,
11433    #[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 OpenSharedResource1 or\n D3D12 OpenSharedHandle, on macOS it is an IOSurface pointer that can be\n opened with Metal or OpenGL, and on Linux it contains several planes, each\n with an fd to the underlying 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"]
11434    pub on_accelerated_paint: ::std::option::Option<
11435        unsafe extern "C" fn(
11436            self_: *mut _cef_render_handler_t,
11437            browser: *mut _cef_browser_t,
11438            type_: cef_paint_element_type_t,
11439            dirtyRectsCount: usize,
11440            dirtyRects: *const cef_rect_t,
11441            info: *const cef_accelerated_paint_info_t,
11442        ),
11443    >,
11444    #[doc = "\n Called to retrieve the size of the touch handle for the specified\n |orientation|.\n"]
11445    pub get_touch_handle_size: ::std::option::Option<
11446        unsafe extern "C" fn(
11447            self_: *mut _cef_render_handler_t,
11448            browser: *mut _cef_browser_t,
11449            orientation: cef_horizontal_alignment_t,
11450            size: *mut cef_size_t,
11451        ),
11452    >,
11453    #[doc = "\n Called when touch handle state is updated. The client is responsible for\n rendering the touch handles.\n"]
11454    pub on_touch_handle_state_changed: ::std::option::Option<
11455        unsafe extern "C" fn(
11456            self_: *mut _cef_render_handler_t,
11457            browser: *mut _cef_browser_t,
11458            state: *const cef_touch_handle_state_t,
11459        ),
11460    >,
11461    #[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"]
11462    pub start_dragging: ::std::option::Option<
11463        unsafe extern "C" fn(
11464            self_: *mut _cef_render_handler_t,
11465            browser: *mut _cef_browser_t,
11466            drag_data: *mut _cef_drag_data_t,
11467            allowed_ops: cef_drag_operations_mask_t,
11468            x: ::std::os::raw::c_int,
11469            y: ::std::os::raw::c_int,
11470        ) -> ::std::os::raw::c_int,
11471    >,
11472    #[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"]
11473    pub update_drag_cursor: ::std::option::Option<
11474        unsafe extern "C" fn(
11475            self_: *mut _cef_render_handler_t,
11476            browser: *mut _cef_browser_t,
11477            operation: cef_drag_operations_mask_t,
11478        ),
11479    >,
11480    #[doc = "\n Called when the scroll offset has changed.\n"]
11481    pub on_scroll_offset_changed: ::std::option::Option<
11482        unsafe extern "C" fn(
11483            self_: *mut _cef_render_handler_t,
11484            browser: *mut _cef_browser_t,
11485            x: f64,
11486            y: f64,
11487        ),
11488    >,
11489    #[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"]
11490    pub on_ime_composition_range_changed: ::std::option::Option<
11491        unsafe extern "C" fn(
11492            self_: *mut _cef_render_handler_t,
11493            browser: *mut _cef_browser_t,
11494            selected_range: *const cef_range_t,
11495            character_boundsCount: usize,
11496            character_bounds: *const cef_rect_t,
11497        ),
11498    >,
11499    #[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"]
11500    pub on_text_selection_changed: ::std::option::Option<
11501        unsafe extern "C" fn(
11502            self_: *mut _cef_render_handler_t,
11503            browser: *mut _cef_browser_t,
11504            selected_text: *const cef_string_t,
11505            selected_range: *const cef_range_t,
11506        ),
11507    >,
11508    #[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"]
11509    pub on_virtual_keyboard_requested: ::std::option::Option<
11510        unsafe extern "C" fn(
11511            self_: *mut _cef_render_handler_t,
11512            browser: *mut _cef_browser_t,
11513            input_mode: cef_text_input_mode_t,
11514        ),
11515    >,
11516}
11517#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11518const _: () = {
11519    ["Size of _cef_render_handler_t"][::std::mem::size_of::<_cef_render_handler_t>() - 176usize];
11520    ["Alignment of _cef_render_handler_t"]
11521        [::std::mem::align_of::<_cef_render_handler_t>() - 8usize];
11522    ["Offset of field: _cef_render_handler_t::base"]
11523        [::std::mem::offset_of!(_cef_render_handler_t, base) - 0usize];
11524    ["Offset of field: _cef_render_handler_t::get_accessibility_handler"]
11525        [::std::mem::offset_of!(_cef_render_handler_t, get_accessibility_handler) - 40usize];
11526    ["Offset of field: _cef_render_handler_t::get_root_screen_rect"]
11527        [::std::mem::offset_of!(_cef_render_handler_t, get_root_screen_rect) - 48usize];
11528    ["Offset of field: _cef_render_handler_t::get_view_rect"]
11529        [::std::mem::offset_of!(_cef_render_handler_t, get_view_rect) - 56usize];
11530    ["Offset of field: _cef_render_handler_t::get_screen_point"]
11531        [::std::mem::offset_of!(_cef_render_handler_t, get_screen_point) - 64usize];
11532    ["Offset of field: _cef_render_handler_t::get_screen_info"]
11533        [::std::mem::offset_of!(_cef_render_handler_t, get_screen_info) - 72usize];
11534    ["Offset of field: _cef_render_handler_t::on_popup_show"]
11535        [::std::mem::offset_of!(_cef_render_handler_t, on_popup_show) - 80usize];
11536    ["Offset of field: _cef_render_handler_t::on_popup_size"]
11537        [::std::mem::offset_of!(_cef_render_handler_t, on_popup_size) - 88usize];
11538    ["Offset of field: _cef_render_handler_t::on_paint"]
11539        [::std::mem::offset_of!(_cef_render_handler_t, on_paint) - 96usize];
11540    ["Offset of field: _cef_render_handler_t::on_accelerated_paint"]
11541        [::std::mem::offset_of!(_cef_render_handler_t, on_accelerated_paint) - 104usize];
11542    ["Offset of field: _cef_render_handler_t::get_touch_handle_size"]
11543        [::std::mem::offset_of!(_cef_render_handler_t, get_touch_handle_size) - 112usize];
11544    ["Offset of field: _cef_render_handler_t::on_touch_handle_state_changed"]
11545        [::std::mem::offset_of!(_cef_render_handler_t, on_touch_handle_state_changed) - 120usize];
11546    ["Offset of field: _cef_render_handler_t::start_dragging"]
11547        [::std::mem::offset_of!(_cef_render_handler_t, start_dragging) - 128usize];
11548    ["Offset of field: _cef_render_handler_t::update_drag_cursor"]
11549        [::std::mem::offset_of!(_cef_render_handler_t, update_drag_cursor) - 136usize];
11550    ["Offset of field: _cef_render_handler_t::on_scroll_offset_changed"]
11551        [::std::mem::offset_of!(_cef_render_handler_t, on_scroll_offset_changed) - 144usize];
11552    ["Offset of field: _cef_render_handler_t::on_ime_composition_range_changed"][::std::mem::offset_of!(
11553        _cef_render_handler_t,
11554        on_ime_composition_range_changed
11555    ) - 152usize];
11556    ["Offset of field: _cef_render_handler_t::on_text_selection_changed"]
11557        [::std::mem::offset_of!(_cef_render_handler_t, on_text_selection_changed) - 160usize];
11558    ["Offset of field: _cef_render_handler_t::on_virtual_keyboard_requested"]
11559        [::std::mem::offset_of!(_cef_render_handler_t, on_virtual_keyboard_requested) - 168usize];
11560};
11561#[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"]
11562pub type cef_render_handler_t = _cef_render_handler_t;
11563#[doc = "\n Callback structure used for asynchronous continuation of authentication\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11564#[repr(C)]
11565#[derive(Debug, Copy, Clone)]
11566pub struct _cef_auth_callback_t {
11567    #[doc = "\n Base structure.\n"]
11568    pub base: cef_base_ref_counted_t,
11569    #[doc = "\n Continue the authentication request.\n"]
11570    pub cont: ::std::option::Option<
11571        unsafe extern "C" fn(
11572            self_: *mut _cef_auth_callback_t,
11573            username: *const cef_string_t,
11574            password: *const cef_string_t,
11575        ),
11576    >,
11577    #[doc = "\n Cancel the authentication request.\n"]
11578    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_auth_callback_t)>,
11579}
11580#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11581const _: () = {
11582    ["Size of _cef_auth_callback_t"][::std::mem::size_of::<_cef_auth_callback_t>() - 56usize];
11583    ["Alignment of _cef_auth_callback_t"][::std::mem::align_of::<_cef_auth_callback_t>() - 8usize];
11584    ["Offset of field: _cef_auth_callback_t::base"]
11585        [::std::mem::offset_of!(_cef_auth_callback_t, base) - 0usize];
11586    ["Offset of field: _cef_auth_callback_t::cont"]
11587        [::std::mem::offset_of!(_cef_auth_callback_t, cont) - 40usize];
11588    ["Offset of field: _cef_auth_callback_t::cancel"]
11589        [::std::mem::offset_of!(_cef_auth_callback_t, cancel) - 48usize];
11590};
11591#[doc = "\n Callback structure used for asynchronous continuation of authentication\n requests.\n\n NOTE: This struct is allocated DLL-side.\n"]
11592pub type cef_auth_callback_t = _cef_auth_callback_t;
11593#[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"]
11594#[repr(C)]
11595#[derive(Debug, Copy, Clone)]
11596pub struct _cef_response_t {
11597    #[doc = "\n Base structure.\n"]
11598    pub base: cef_base_ref_counted_t,
11599    #[doc = "\n Returns true (1) if this object is read-only.\n"]
11600    pub is_read_only: ::std::option::Option<
11601        unsafe extern "C" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int,
11602    >,
11603    #[doc = "\n Get the response error code. Returns ERR_NONE if there was no error.\n"]
11604    pub get_error:
11605        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_errorcode_t>,
11606    #[doc = "\n Set the response error code. This can be used by custom scheme handlers to\n return errors during initial request processing.\n"]
11607    pub set_error: ::std::option::Option<
11608        unsafe extern "C" fn(self_: *mut _cef_response_t, error: cef_errorcode_t),
11609    >,
11610    #[doc = "\n Get the response status code.\n"]
11611    pub get_status: ::std::option::Option<
11612        unsafe extern "C" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int,
11613    >,
11614    #[doc = "\n Set the response status code.\n"]
11615    pub set_status: ::std::option::Option<
11616        unsafe extern "C" fn(self_: *mut _cef_response_t, status: ::std::os::raw::c_int),
11617    >,
11618    #[doc = "\n Get the response status text.\n"]
11619    pub get_status_text: ::std::option::Option<
11620        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11621    >,
11622    #[doc = "\n Set the response status text.\n"]
11623    pub set_status_text: ::std::option::Option<
11624        unsafe extern "C" fn(self_: *mut _cef_response_t, statusText: *const cef_string_t),
11625    >,
11626    #[doc = "\n Get the response mime type.\n"]
11627    pub get_mime_type: ::std::option::Option<
11628        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11629    >,
11630    #[doc = "\n Set the response mime type.\n"]
11631    pub set_mime_type: ::std::option::Option<
11632        unsafe extern "C" fn(self_: *mut _cef_response_t, mimeType: *const cef_string_t),
11633    >,
11634    #[doc = "\n Get the response charset.\n"]
11635    pub get_charset: ::std::option::Option<
11636        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11637    >,
11638    #[doc = "\n Set the response charset.\n"]
11639    pub set_charset: ::std::option::Option<
11640        unsafe extern "C" fn(self_: *mut _cef_response_t, charset: *const cef_string_t),
11641    >,
11642    #[doc = "\n Get the value for the specified response header field.\n"]
11643    pub get_header_by_name: ::std::option::Option<
11644        unsafe extern "C" fn(
11645            self_: *mut _cef_response_t,
11646            name: *const cef_string_t,
11647        ) -> cef_string_userfree_t,
11648    >,
11649    #[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"]
11650    pub set_header_by_name: ::std::option::Option<
11651        unsafe extern "C" fn(
11652            self_: *mut _cef_response_t,
11653            name: *const cef_string_t,
11654            value: *const cef_string_t,
11655            overwrite: ::std::os::raw::c_int,
11656        ),
11657    >,
11658    #[doc = "\n Get all response header fields.\n"]
11659    pub get_header_map: ::std::option::Option<
11660        unsafe extern "C" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t),
11661    >,
11662    #[doc = "\n Set all response header fields.\n"]
11663    pub set_header_map: ::std::option::Option<
11664        unsafe extern "C" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t),
11665    >,
11666    #[doc = "\n Get the resolved URL after redirects or changed as a result of HSTS.\n"]
11667    pub get_url: ::std::option::Option<
11668        unsafe extern "C" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t,
11669    >,
11670    #[doc = "\n Set the resolved URL after redirects or changed as a result of HSTS.\n"]
11671    pub set_url: ::std::option::Option<
11672        unsafe extern "C" fn(self_: *mut _cef_response_t, url: *const cef_string_t),
11673    >,
11674}
11675#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11676const _: () = {
11677    ["Size of _cef_response_t"][::std::mem::size_of::<_cef_response_t>() - 176usize];
11678    ["Alignment of _cef_response_t"][::std::mem::align_of::<_cef_response_t>() - 8usize];
11679    ["Offset of field: _cef_response_t::base"]
11680        [::std::mem::offset_of!(_cef_response_t, base) - 0usize];
11681    ["Offset of field: _cef_response_t::is_read_only"]
11682        [::std::mem::offset_of!(_cef_response_t, is_read_only) - 40usize];
11683    ["Offset of field: _cef_response_t::get_error"]
11684        [::std::mem::offset_of!(_cef_response_t, get_error) - 48usize];
11685    ["Offset of field: _cef_response_t::set_error"]
11686        [::std::mem::offset_of!(_cef_response_t, set_error) - 56usize];
11687    ["Offset of field: _cef_response_t::get_status"]
11688        [::std::mem::offset_of!(_cef_response_t, get_status) - 64usize];
11689    ["Offset of field: _cef_response_t::set_status"]
11690        [::std::mem::offset_of!(_cef_response_t, set_status) - 72usize];
11691    ["Offset of field: _cef_response_t::get_status_text"]
11692        [::std::mem::offset_of!(_cef_response_t, get_status_text) - 80usize];
11693    ["Offset of field: _cef_response_t::set_status_text"]
11694        [::std::mem::offset_of!(_cef_response_t, set_status_text) - 88usize];
11695    ["Offset of field: _cef_response_t::get_mime_type"]
11696        [::std::mem::offset_of!(_cef_response_t, get_mime_type) - 96usize];
11697    ["Offset of field: _cef_response_t::set_mime_type"]
11698        [::std::mem::offset_of!(_cef_response_t, set_mime_type) - 104usize];
11699    ["Offset of field: _cef_response_t::get_charset"]
11700        [::std::mem::offset_of!(_cef_response_t, get_charset) - 112usize];
11701    ["Offset of field: _cef_response_t::set_charset"]
11702        [::std::mem::offset_of!(_cef_response_t, set_charset) - 120usize];
11703    ["Offset of field: _cef_response_t::get_header_by_name"]
11704        [::std::mem::offset_of!(_cef_response_t, get_header_by_name) - 128usize];
11705    ["Offset of field: _cef_response_t::set_header_by_name"]
11706        [::std::mem::offset_of!(_cef_response_t, set_header_by_name) - 136usize];
11707    ["Offset of field: _cef_response_t::get_header_map"]
11708        [::std::mem::offset_of!(_cef_response_t, get_header_map) - 144usize];
11709    ["Offset of field: _cef_response_t::set_header_map"]
11710        [::std::mem::offset_of!(_cef_response_t, set_header_map) - 152usize];
11711    ["Offset of field: _cef_response_t::get_url"]
11712        [::std::mem::offset_of!(_cef_response_t, get_url) - 160usize];
11713    ["Offset of field: _cef_response_t::set_url"]
11714        [::std::mem::offset_of!(_cef_response_t, set_url) - 168usize];
11715};
11716#[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"]
11717pub type cef_response_t = _cef_response_t;
11718unsafe extern "C" {
11719    #[doc = "\n Create a new cef_response_t object.\n"]
11720    pub fn cef_response_create() -> *mut cef_response_t;
11721}
11722#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::skip().\n\n NOTE: This struct is allocated DLL-side.\n"]
11723#[repr(C)]
11724#[derive(Debug, Copy, Clone)]
11725pub struct _cef_resource_skip_callback_t {
11726    #[doc = "\n Base structure.\n"]
11727    pub base: cef_base_ref_counted_t,
11728    #[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"]
11729    pub cont: ::std::option::Option<
11730        unsafe extern "C" fn(self_: *mut _cef_resource_skip_callback_t, bytes_skipped: i64),
11731    >,
11732}
11733#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11734const _: () = {
11735    ["Size of _cef_resource_skip_callback_t"]
11736        [::std::mem::size_of::<_cef_resource_skip_callback_t>() - 48usize];
11737    ["Alignment of _cef_resource_skip_callback_t"]
11738        [::std::mem::align_of::<_cef_resource_skip_callback_t>() - 8usize];
11739    ["Offset of field: _cef_resource_skip_callback_t::base"]
11740        [::std::mem::offset_of!(_cef_resource_skip_callback_t, base) - 0usize];
11741    ["Offset of field: _cef_resource_skip_callback_t::cont"]
11742        [::std::mem::offset_of!(_cef_resource_skip_callback_t, cont) - 40usize];
11743};
11744#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::skip().\n\n NOTE: This struct is allocated DLL-side.\n"]
11745pub type cef_resource_skip_callback_t = _cef_resource_skip_callback_t;
11746#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::read().\n\n NOTE: This struct is allocated DLL-side.\n"]
11747#[repr(C)]
11748#[derive(Debug, Copy, Clone)]
11749pub struct _cef_resource_read_callback_t {
11750    #[doc = "\n Base structure.\n"]
11751    pub base: cef_base_ref_counted_t,
11752    #[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"]
11753    pub cont: ::std::option::Option<
11754        unsafe extern "C" fn(
11755            self_: *mut _cef_resource_read_callback_t,
11756            bytes_read: ::std::os::raw::c_int,
11757        ),
11758    >,
11759}
11760#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11761const _: () = {
11762    ["Size of _cef_resource_read_callback_t"]
11763        [::std::mem::size_of::<_cef_resource_read_callback_t>() - 48usize];
11764    ["Alignment of _cef_resource_read_callback_t"]
11765        [::std::mem::align_of::<_cef_resource_read_callback_t>() - 8usize];
11766    ["Offset of field: _cef_resource_read_callback_t::base"]
11767        [::std::mem::offset_of!(_cef_resource_read_callback_t, base) - 0usize];
11768    ["Offset of field: _cef_resource_read_callback_t::cont"]
11769        [::std::mem::offset_of!(_cef_resource_read_callback_t, cont) - 40usize];
11770};
11771#[doc = "\n Callback for asynchronous continuation of cef_resource_handler_t::read().\n\n NOTE: This struct is allocated DLL-side.\n"]
11772pub type cef_resource_read_callback_t = _cef_resource_read_callback_t;
11773#[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"]
11774#[repr(C)]
11775#[derive(Debug, Copy, Clone)]
11776pub struct _cef_resource_handler_t {
11777    #[doc = "\n Base structure.\n"]
11778    pub base: cef_base_ref_counted_t,
11779    #[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"]
11780    pub open: ::std::option::Option<
11781        unsafe extern "C" fn(
11782            self_: *mut _cef_resource_handler_t,
11783            request: *mut _cef_request_t,
11784            handle_request: *mut ::std::os::raw::c_int,
11785            callback: *mut _cef_callback_t,
11786        ) -> ::std::os::raw::c_int,
11787    >,
11788    #[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"]
11789    pub process_request: ::std::option::Option<
11790        unsafe extern "C" fn(
11791            self_: *mut _cef_resource_handler_t,
11792            request: *mut _cef_request_t,
11793            callback: *mut _cef_callback_t,
11794        ) -> ::std::os::raw::c_int,
11795    >,
11796    #[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"]
11797    pub get_response_headers: ::std::option::Option<
11798        unsafe extern "C" fn(
11799            self_: *mut _cef_resource_handler_t,
11800            response: *mut _cef_response_t,
11801            response_length: *mut i64,
11802            redirectUrl: *mut cef_string_t,
11803        ),
11804    >,
11805    #[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"]
11806    pub skip: ::std::option::Option<
11807        unsafe extern "C" fn(
11808            self_: *mut _cef_resource_handler_t,
11809            bytes_to_skip: i64,
11810            bytes_skipped: *mut i64,
11811            callback: *mut _cef_resource_skip_callback_t,
11812        ) -> ::std::os::raw::c_int,
11813    >,
11814    #[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"]
11815    pub read: ::std::option::Option<
11816        unsafe extern "C" fn(
11817            self_: *mut _cef_resource_handler_t,
11818            data_out: *mut ::std::os::raw::c_void,
11819            bytes_to_read: ::std::os::raw::c_int,
11820            bytes_read: *mut ::std::os::raw::c_int,
11821            callback: *mut _cef_resource_read_callback_t,
11822        ) -> ::std::os::raw::c_int,
11823    >,
11824    #[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"]
11825    pub read_response: ::std::option::Option<
11826        unsafe extern "C" fn(
11827            self_: *mut _cef_resource_handler_t,
11828            data_out: *mut ::std::os::raw::c_void,
11829            bytes_to_read: ::std::os::raw::c_int,
11830            bytes_read: *mut ::std::os::raw::c_int,
11831            callback: *mut _cef_callback_t,
11832        ) -> ::std::os::raw::c_int,
11833    >,
11834    #[doc = "\n Request processing has been canceled.\n"]
11835    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_resource_handler_t)>,
11836}
11837#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11838const _: () = {
11839    ["Size of _cef_resource_handler_t"][::std::mem::size_of::<_cef_resource_handler_t>() - 96usize];
11840    ["Alignment of _cef_resource_handler_t"]
11841        [::std::mem::align_of::<_cef_resource_handler_t>() - 8usize];
11842    ["Offset of field: _cef_resource_handler_t::base"]
11843        [::std::mem::offset_of!(_cef_resource_handler_t, base) - 0usize];
11844    ["Offset of field: _cef_resource_handler_t::open"]
11845        [::std::mem::offset_of!(_cef_resource_handler_t, open) - 40usize];
11846    ["Offset of field: _cef_resource_handler_t::process_request"]
11847        [::std::mem::offset_of!(_cef_resource_handler_t, process_request) - 48usize];
11848    ["Offset of field: _cef_resource_handler_t::get_response_headers"]
11849        [::std::mem::offset_of!(_cef_resource_handler_t, get_response_headers) - 56usize];
11850    ["Offset of field: _cef_resource_handler_t::skip"]
11851        [::std::mem::offset_of!(_cef_resource_handler_t, skip) - 64usize];
11852    ["Offset of field: _cef_resource_handler_t::read"]
11853        [::std::mem::offset_of!(_cef_resource_handler_t, read) - 72usize];
11854    ["Offset of field: _cef_resource_handler_t::read_response"]
11855        [::std::mem::offset_of!(_cef_resource_handler_t, read_response) - 80usize];
11856    ["Offset of field: _cef_resource_handler_t::cancel"]
11857        [::std::mem::offset_of!(_cef_resource_handler_t, cancel) - 88usize];
11858};
11859#[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"]
11860pub type cef_resource_handler_t = _cef_resource_handler_t;
11861#[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"]
11862#[repr(C)]
11863#[derive(Debug, Copy, Clone)]
11864pub struct _cef_response_filter_t {
11865    #[doc = "\n Base structure.\n"]
11866    pub base: cef_base_ref_counted_t,
11867    #[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"]
11868    pub init_filter: ::std::option::Option<
11869        unsafe extern "C" fn(self_: *mut _cef_response_filter_t) -> ::std::os::raw::c_int,
11870    >,
11871    #[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"]
11872    pub filter: ::std::option::Option<
11873        unsafe extern "C" fn(
11874            self_: *mut _cef_response_filter_t,
11875            data_in: *mut ::std::os::raw::c_void,
11876            data_in_size: usize,
11877            data_in_read: *mut usize,
11878            data_out: *mut ::std::os::raw::c_void,
11879            data_out_size: usize,
11880            data_out_written: *mut usize,
11881        ) -> cef_response_filter_status_t,
11882    >,
11883}
11884#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11885const _: () = {
11886    ["Size of _cef_response_filter_t"][::std::mem::size_of::<_cef_response_filter_t>() - 56usize];
11887    ["Alignment of _cef_response_filter_t"]
11888        [::std::mem::align_of::<_cef_response_filter_t>() - 8usize];
11889    ["Offset of field: _cef_response_filter_t::base"]
11890        [::std::mem::offset_of!(_cef_response_filter_t, base) - 0usize];
11891    ["Offset of field: _cef_response_filter_t::init_filter"]
11892        [::std::mem::offset_of!(_cef_response_filter_t, init_filter) - 40usize];
11893    ["Offset of field: _cef_response_filter_t::filter"]
11894        [::std::mem::offset_of!(_cef_response_filter_t, filter) - 48usize];
11895};
11896#[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"]
11897pub type cef_response_filter_t = _cef_response_filter_t;
11898#[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"]
11899#[repr(C)]
11900#[derive(Debug, Copy, Clone)]
11901pub struct _cef_resource_request_handler_t {
11902    #[doc = "\n Base structure.\n"]
11903    pub base: cef_base_ref_counted_t,
11904    #[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"]
11905    pub get_cookie_access_filter: ::std::option::Option<
11906        unsafe extern "C" fn(
11907            self_: *mut _cef_resource_request_handler_t,
11908            browser: *mut _cef_browser_t,
11909            frame: *mut _cef_frame_t,
11910            request: *mut _cef_request_t,
11911        ) -> *mut _cef_cookie_access_filter_t,
11912    >,
11913    #[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"]
11914    pub on_before_resource_load: ::std::option::Option<
11915        unsafe extern "C" fn(
11916            self_: *mut _cef_resource_request_handler_t,
11917            browser: *mut _cef_browser_t,
11918            frame: *mut _cef_frame_t,
11919            request: *mut _cef_request_t,
11920            callback: *mut _cef_callback_t,
11921        ) -> cef_return_value_t,
11922    >,
11923    #[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"]
11924    pub get_resource_handler: ::std::option::Option<
11925        unsafe extern "C" fn(
11926            self_: *mut _cef_resource_request_handler_t,
11927            browser: *mut _cef_browser_t,
11928            frame: *mut _cef_frame_t,
11929            request: *mut _cef_request_t,
11930        ) -> *mut _cef_resource_handler_t,
11931    >,
11932    #[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"]
11933    pub on_resource_redirect: ::std::option::Option<
11934        unsafe extern "C" fn(
11935            self_: *mut _cef_resource_request_handler_t,
11936            browser: *mut _cef_browser_t,
11937            frame: *mut _cef_frame_t,
11938            request: *mut _cef_request_t,
11939            response: *mut _cef_response_t,
11940            new_url: *mut cef_string_t,
11941        ),
11942    >,
11943    #[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"]
11944    pub on_resource_response: ::std::option::Option<
11945        unsafe extern "C" fn(
11946            self_: *mut _cef_resource_request_handler_t,
11947            browser: *mut _cef_browser_t,
11948            frame: *mut _cef_frame_t,
11949            request: *mut _cef_request_t,
11950            response: *mut _cef_response_t,
11951        ) -> ::std::os::raw::c_int,
11952    >,
11953    #[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"]
11954    pub get_resource_response_filter: ::std::option::Option<
11955        unsafe extern "C" fn(
11956            self_: *mut _cef_resource_request_handler_t,
11957            browser: *mut _cef_browser_t,
11958            frame: *mut _cef_frame_t,
11959            request: *mut _cef_request_t,
11960            response: *mut _cef_response_t,
11961        ) -> *mut _cef_response_filter_t,
11962    >,
11963    #[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"]
11964    pub on_resource_load_complete: ::std::option::Option<
11965        unsafe extern "C" fn(
11966            self_: *mut _cef_resource_request_handler_t,
11967            browser: *mut _cef_browser_t,
11968            frame: *mut _cef_frame_t,
11969            request: *mut _cef_request_t,
11970            response: *mut _cef_response_t,
11971            status: cef_urlrequest_status_t,
11972            received_content_length: i64,
11973        ),
11974    >,
11975    #[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"]
11976    pub on_protocol_execution: ::std::option::Option<
11977        unsafe extern "C" fn(
11978            self_: *mut _cef_resource_request_handler_t,
11979            browser: *mut _cef_browser_t,
11980            frame: *mut _cef_frame_t,
11981            request: *mut _cef_request_t,
11982            allow_os_execution: *mut ::std::os::raw::c_int,
11983        ),
11984    >,
11985}
11986#[allow(clippy::unnecessary_operation, clippy::identity_op)]
11987const _: () = {
11988    ["Size of _cef_resource_request_handler_t"]
11989        [::std::mem::size_of::<_cef_resource_request_handler_t>() - 104usize];
11990    ["Alignment of _cef_resource_request_handler_t"]
11991        [::std::mem::align_of::<_cef_resource_request_handler_t>() - 8usize];
11992    ["Offset of field: _cef_resource_request_handler_t::base"]
11993        [::std::mem::offset_of!(_cef_resource_request_handler_t, base) - 0usize];
11994    ["Offset of field: _cef_resource_request_handler_t::get_cookie_access_filter"][::std::mem::offset_of!(
11995        _cef_resource_request_handler_t,
11996        get_cookie_access_filter
11997    ) - 40usize];
11998    ["Offset of field: _cef_resource_request_handler_t::on_before_resource_load"][::std::mem::offset_of!(
11999        _cef_resource_request_handler_t,
12000        on_before_resource_load
12001    ) - 48usize];
12002    ["Offset of field: _cef_resource_request_handler_t::get_resource_handler"]
12003        [::std::mem::offset_of!(_cef_resource_request_handler_t, get_resource_handler) - 56usize];
12004    ["Offset of field: _cef_resource_request_handler_t::on_resource_redirect"]
12005        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_resource_redirect) - 64usize];
12006    ["Offset of field: _cef_resource_request_handler_t::on_resource_response"]
12007        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_resource_response) - 72usize];
12008    ["Offset of field: _cef_resource_request_handler_t::get_resource_response_filter"][::std::mem::offset_of!(
12009        _cef_resource_request_handler_t,
12010        get_resource_response_filter
12011    ) - 80usize];
12012    ["Offset of field: _cef_resource_request_handler_t::on_resource_load_complete"][::std::mem::offset_of!(
12013        _cef_resource_request_handler_t,
12014        on_resource_load_complete
12015    ) - 88usize];
12016    ["Offset of field: _cef_resource_request_handler_t::on_protocol_execution"]
12017        [::std::mem::offset_of!(_cef_resource_request_handler_t, on_protocol_execution) - 96usize];
12018};
12019#[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"]
12020pub type cef_resource_request_handler_t = _cef_resource_request_handler_t;
12021#[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"]
12022#[repr(C)]
12023#[derive(Debug, Copy, Clone)]
12024pub struct _cef_cookie_access_filter_t {
12025    #[doc = "\n Base structure.\n"]
12026    pub base: cef_base_ref_counted_t,
12027    #[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"]
12028    pub can_send_cookie: ::std::option::Option<
12029        unsafe extern "C" fn(
12030            self_: *mut _cef_cookie_access_filter_t,
12031            browser: *mut _cef_browser_t,
12032            frame: *mut _cef_frame_t,
12033            request: *mut _cef_request_t,
12034            cookie: *const _cef_cookie_t,
12035        ) -> ::std::os::raw::c_int,
12036    >,
12037    #[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"]
12038    pub can_save_cookie: ::std::option::Option<
12039        unsafe extern "C" fn(
12040            self_: *mut _cef_cookie_access_filter_t,
12041            browser: *mut _cef_browser_t,
12042            frame: *mut _cef_frame_t,
12043            request: *mut _cef_request_t,
12044            response: *mut _cef_response_t,
12045            cookie: *const _cef_cookie_t,
12046        ) -> ::std::os::raw::c_int,
12047    >,
12048}
12049#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12050const _: () = {
12051    ["Size of _cef_cookie_access_filter_t"]
12052        [::std::mem::size_of::<_cef_cookie_access_filter_t>() - 56usize];
12053    ["Alignment of _cef_cookie_access_filter_t"]
12054        [::std::mem::align_of::<_cef_cookie_access_filter_t>() - 8usize];
12055    ["Offset of field: _cef_cookie_access_filter_t::base"]
12056        [::std::mem::offset_of!(_cef_cookie_access_filter_t, base) - 0usize];
12057    ["Offset of field: _cef_cookie_access_filter_t::can_send_cookie"]
12058        [::std::mem::offset_of!(_cef_cookie_access_filter_t, can_send_cookie) - 40usize];
12059    ["Offset of field: _cef_cookie_access_filter_t::can_save_cookie"]
12060        [::std::mem::offset_of!(_cef_cookie_access_filter_t, can_save_cookie) - 48usize];
12061};
12062#[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"]
12063pub type cef_cookie_access_filter_t = _cef_cookie_access_filter_t;
12064#[doc = "\n Structure representing SSL information.\n\n NOTE: This struct is allocated DLL-side.\n"]
12065#[repr(C)]
12066#[derive(Debug, Copy, Clone)]
12067pub struct _cef_sslinfo_t {
12068    #[doc = "\n Base structure.\n"]
12069    pub base: cef_base_ref_counted_t,
12070    #[doc = "\n Returns a bitmask containing any and all problems verifying the server\n certificate.\n"]
12071    pub get_cert_status: ::std::option::Option<
12072        unsafe extern "C" fn(self_: *mut _cef_sslinfo_t) -> cef_cert_status_t,
12073    >,
12074    #[doc = "\n Returns the X.509 certificate.\n"]
12075    pub get_x509_certificate: ::std::option::Option<
12076        unsafe extern "C" fn(self_: *mut _cef_sslinfo_t) -> *mut _cef_x509_certificate_t,
12077    >,
12078}
12079#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12080const _: () = {
12081    ["Size of _cef_sslinfo_t"][::std::mem::size_of::<_cef_sslinfo_t>() - 56usize];
12082    ["Alignment of _cef_sslinfo_t"][::std::mem::align_of::<_cef_sslinfo_t>() - 8usize];
12083    ["Offset of field: _cef_sslinfo_t::base"]
12084        [::std::mem::offset_of!(_cef_sslinfo_t, base) - 0usize];
12085    ["Offset of field: _cef_sslinfo_t::get_cert_status"]
12086        [::std::mem::offset_of!(_cef_sslinfo_t, get_cert_status) - 40usize];
12087    ["Offset of field: _cef_sslinfo_t::get_x509_certificate"]
12088        [::std::mem::offset_of!(_cef_sslinfo_t, get_x509_certificate) - 48usize];
12089};
12090#[doc = "\n Structure representing SSL information.\n\n NOTE: This struct is allocated DLL-side.\n"]
12091pub type cef_sslinfo_t = _cef_sslinfo_t;
12092unsafe extern "C" {
12093    #[doc = "\n Returns true (1) if the certificate status represents an error.\n"]
12094    pub fn cef_is_cert_status_error(status: cef_cert_status_t) -> ::std::os::raw::c_int;
12095}
12096#[doc = "\n Callback structure for asynchronous handling of an unresponsive process.\n\n NOTE: This struct is allocated DLL-side.\n"]
12097#[repr(C)]
12098#[derive(Debug, Copy, Clone)]
12099pub struct _cef_unresponsive_process_callback_t {
12100    #[doc = "\n Base structure.\n"]
12101    pub base: cef_base_ref_counted_t,
12102    #[doc = "\n Reset the timeout for the unresponsive process.\n"]
12103    pub wait: ::std::option::Option<
12104        unsafe extern "C" fn(self_: *mut _cef_unresponsive_process_callback_t),
12105    >,
12106    #[doc = "\n Terminate the unresponsive process.\n"]
12107    pub terminate: ::std::option::Option<
12108        unsafe extern "C" fn(self_: *mut _cef_unresponsive_process_callback_t),
12109    >,
12110}
12111#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12112const _: () = {
12113    ["Size of _cef_unresponsive_process_callback_t"]
12114        [::std::mem::size_of::<_cef_unresponsive_process_callback_t>() - 56usize];
12115    ["Alignment of _cef_unresponsive_process_callback_t"]
12116        [::std::mem::align_of::<_cef_unresponsive_process_callback_t>() - 8usize];
12117    ["Offset of field: _cef_unresponsive_process_callback_t::base"]
12118        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, base) - 0usize];
12119    ["Offset of field: _cef_unresponsive_process_callback_t::wait"]
12120        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, wait) - 40usize];
12121    ["Offset of field: _cef_unresponsive_process_callback_t::terminate"]
12122        [::std::mem::offset_of!(_cef_unresponsive_process_callback_t, terminate) - 48usize];
12123};
12124#[doc = "\n Callback structure for asynchronous handling of an unresponsive process.\n\n NOTE: This struct is allocated DLL-side.\n"]
12125pub type cef_unresponsive_process_callback_t = _cef_unresponsive_process_callback_t;
12126#[doc = "\n Callback structure used to select a client certificate for authentication.\n\n NOTE: This struct is allocated DLL-side.\n"]
12127#[repr(C)]
12128#[derive(Debug, Copy, Clone)]
12129pub struct _cef_select_client_certificate_callback_t {
12130    #[doc = "\n Base structure.\n"]
12131    pub base: cef_base_ref_counted_t,
12132    #[doc = "\n Chooses the specified certificate for client certificate authentication.\n NULL value means that no client certificate should be used.\n"]
12133    pub select: ::std::option::Option<
12134        unsafe extern "C" fn(
12135            self_: *mut _cef_select_client_certificate_callback_t,
12136            cert: *mut _cef_x509_certificate_t,
12137        ),
12138    >,
12139}
12140#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12141const _: () = {
12142    ["Size of _cef_select_client_certificate_callback_t"]
12143        [::std::mem::size_of::<_cef_select_client_certificate_callback_t>() - 48usize];
12144    ["Alignment of _cef_select_client_certificate_callback_t"]
12145        [::std::mem::align_of::<_cef_select_client_certificate_callback_t>() - 8usize];
12146    ["Offset of field: _cef_select_client_certificate_callback_t::base"]
12147        [::std::mem::offset_of!(_cef_select_client_certificate_callback_t, base) - 0usize];
12148    ["Offset of field: _cef_select_client_certificate_callback_t::select"]
12149        [::std::mem::offset_of!(_cef_select_client_certificate_callback_t, select) - 40usize];
12150};
12151#[doc = "\n Callback structure used to select a client certificate for authentication.\n\n NOTE: This struct is allocated DLL-side.\n"]
12152pub type cef_select_client_certificate_callback_t = _cef_select_client_certificate_callback_t;
12153#[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"]
12154#[repr(C)]
12155#[derive(Debug, Copy, Clone)]
12156pub struct _cef_request_handler_t {
12157    #[doc = "\n Base structure.\n"]
12158    pub base: cef_base_ref_counted_t,
12159    #[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"]
12160    pub on_before_browse: ::std::option::Option<
12161        unsafe extern "C" fn(
12162            self_: *mut _cef_request_handler_t,
12163            browser: *mut _cef_browser_t,
12164            frame: *mut _cef_frame_t,
12165            request: *mut _cef_request_t,
12166            user_gesture: ::std::os::raw::c_int,
12167            is_redirect: ::std::os::raw::c_int,
12168        ) -> ::std::os::raw::c_int,
12169    >,
12170    #[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"]
12171    pub on_open_urlfrom_tab: ::std::option::Option<
12172        unsafe extern "C" fn(
12173            self_: *mut _cef_request_handler_t,
12174            browser: *mut _cef_browser_t,
12175            frame: *mut _cef_frame_t,
12176            target_url: *const cef_string_t,
12177            target_disposition: cef_window_open_disposition_t,
12178            user_gesture: ::std::os::raw::c_int,
12179        ) -> ::std::os::raw::c_int,
12180    >,
12181    #[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"]
12182    pub get_resource_request_handler: ::std::option::Option<
12183        unsafe extern "C" fn(
12184            self_: *mut _cef_request_handler_t,
12185            browser: *mut _cef_browser_t,
12186            frame: *mut _cef_frame_t,
12187            request: *mut _cef_request_t,
12188            is_navigation: ::std::os::raw::c_int,
12189            is_download: ::std::os::raw::c_int,
12190            request_initiator: *const cef_string_t,
12191            disable_default_handling: *mut ::std::os::raw::c_int,
12192        ) -> *mut _cef_resource_request_handler_t,
12193    >,
12194    #[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"]
12195    pub get_auth_credentials: ::std::option::Option<
12196        unsafe extern "C" fn(
12197            self_: *mut _cef_request_handler_t,
12198            browser: *mut _cef_browser_t,
12199            origin_url: *const cef_string_t,
12200            isProxy: ::std::os::raw::c_int,
12201            host: *const cef_string_t,
12202            port: ::std::os::raw::c_int,
12203            realm: *const cef_string_t,
12204            scheme: *const cef_string_t,
12205            callback: *mut _cef_auth_callback_t,
12206        ) -> ::std::os::raw::c_int,
12207    >,
12208    #[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"]
12209    pub on_certificate_error: ::std::option::Option<
12210        unsafe extern "C" fn(
12211            self_: *mut _cef_request_handler_t,
12212            browser: *mut _cef_browser_t,
12213            cert_error: cef_errorcode_t,
12214            request_url: *const cef_string_t,
12215            ssl_info: *mut _cef_sslinfo_t,
12216            callback: *mut _cef_callback_t,
12217        ) -> ::std::os::raw::c_int,
12218    >,
12219    #[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"]
12220    pub on_select_client_certificate: ::std::option::Option<
12221        unsafe extern "C" fn(
12222            self_: *mut _cef_request_handler_t,
12223            browser: *mut _cef_browser_t,
12224            isProxy: ::std::os::raw::c_int,
12225            host: *const cef_string_t,
12226            port: ::std::os::raw::c_int,
12227            certificatesCount: usize,
12228            certificates: *const *mut _cef_x509_certificate_t,
12229            callback: *mut _cef_select_client_certificate_callback_t,
12230        ) -> ::std::os::raw::c_int,
12231    >,
12232    #[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"]
12233    pub on_render_view_ready: ::std::option::Option<
12234        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
12235    >,
12236    #[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 to continue\n waiting with Alloy style or display of the \"Page unresponsive\" dialog with\n Chrome style. Return true (1) and don't execute the callback to continue\n waiting without display of the Chrome style dialog. Return true (1) and\n call cef_unresponsive_process_callback_t::Wait either in this function or\n at a later time to reset the wait timer. In cases where you continue\n waiting there may be 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"]
12237    pub on_render_process_unresponsive: ::std::option::Option<
12238        unsafe extern "C" fn(
12239            self_: *mut _cef_request_handler_t,
12240            browser: *mut _cef_browser_t,
12241            callback: *mut _cef_unresponsive_process_callback_t,
12242        ) -> ::std::os::raw::c_int,
12243    >,
12244    #[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"]
12245    pub on_render_process_responsive: ::std::option::Option<
12246        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
12247    >,
12248    #[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"]
12249    pub on_render_process_terminated: ::std::option::Option<
12250        unsafe extern "C" fn(
12251            self_: *mut _cef_request_handler_t,
12252            browser: *mut _cef_browser_t,
12253            status: cef_termination_status_t,
12254            error_code: ::std::os::raw::c_int,
12255            error_string: *const cef_string_t,
12256        ),
12257    >,
12258    #[doc = "\n Called on the browser process UI thread when the window.document object of\n the main frame has been created.\n"]
12259    pub on_document_available_in_main_frame: ::std::option::Option<
12260        unsafe extern "C" fn(self_: *mut _cef_request_handler_t, browser: *mut _cef_browser_t),
12261    >,
12262}
12263#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12264const _: () = {
12265    ["Size of _cef_request_handler_t"][::std::mem::size_of::<_cef_request_handler_t>() - 128usize];
12266    ["Alignment of _cef_request_handler_t"]
12267        [::std::mem::align_of::<_cef_request_handler_t>() - 8usize];
12268    ["Offset of field: _cef_request_handler_t::base"]
12269        [::std::mem::offset_of!(_cef_request_handler_t, base) - 0usize];
12270    ["Offset of field: _cef_request_handler_t::on_before_browse"]
12271        [::std::mem::offset_of!(_cef_request_handler_t, on_before_browse) - 40usize];
12272    ["Offset of field: _cef_request_handler_t::on_open_urlfrom_tab"]
12273        [::std::mem::offset_of!(_cef_request_handler_t, on_open_urlfrom_tab) - 48usize];
12274    ["Offset of field: _cef_request_handler_t::get_resource_request_handler"]
12275        [::std::mem::offset_of!(_cef_request_handler_t, get_resource_request_handler) - 56usize];
12276    ["Offset of field: _cef_request_handler_t::get_auth_credentials"]
12277        [::std::mem::offset_of!(_cef_request_handler_t, get_auth_credentials) - 64usize];
12278    ["Offset of field: _cef_request_handler_t::on_certificate_error"]
12279        [::std::mem::offset_of!(_cef_request_handler_t, on_certificate_error) - 72usize];
12280    ["Offset of field: _cef_request_handler_t::on_select_client_certificate"]
12281        [::std::mem::offset_of!(_cef_request_handler_t, on_select_client_certificate) - 80usize];
12282    ["Offset of field: _cef_request_handler_t::on_render_view_ready"]
12283        [::std::mem::offset_of!(_cef_request_handler_t, on_render_view_ready) - 88usize];
12284    ["Offset of field: _cef_request_handler_t::on_render_process_unresponsive"]
12285        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_unresponsive) - 96usize];
12286    ["Offset of field: _cef_request_handler_t::on_render_process_responsive"]
12287        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_responsive) - 104usize];
12288    ["Offset of field: _cef_request_handler_t::on_render_process_terminated"]
12289        [::std::mem::offset_of!(_cef_request_handler_t, on_render_process_terminated) - 112usize];
12290    ["Offset of field: _cef_request_handler_t::on_document_available_in_main_frame"][::std::mem::offset_of!(
12291        _cef_request_handler_t,
12292        on_document_available_in_main_frame
12293    ) - 120usize];
12294};
12295#[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"]
12296pub type cef_request_handler_t = _cef_request_handler_t;
12297#[doc = "\n Implement this structure to provide handler implementations.\n\n NOTE: This struct is allocated client-side.\n"]
12298#[repr(C)]
12299#[derive(Debug, Copy, Clone)]
12300pub struct _cef_client_t {
12301    #[doc = "\n Base structure.\n"]
12302    pub base: cef_base_ref_counted_t,
12303    #[doc = "\n Return the handler for audio rendering events.\n"]
12304    pub get_audio_handler: ::std::option::Option<
12305        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t,
12306    >,
12307    #[doc = "\n Return the handler for commands. If no handler is provided the default\n implementation will be used.\n"]
12308    pub get_command_handler: ::std::option::Option<
12309        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_command_handler_t,
12310    >,
12311    #[doc = "\n Return the handler for context menus. If no handler is provided the\n default implementation will be used.\n"]
12312    pub get_context_menu_handler: ::std::option::Option<
12313        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t,
12314    >,
12315    #[doc = "\n Return the handler for dialogs. If no handler is provided the default\n implementation will be used.\n"]
12316    pub get_dialog_handler: ::std::option::Option<
12317        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t,
12318    >,
12319    #[doc = "\n Return the handler for browser display state events.\n"]
12320    pub get_display_handler: ::std::option::Option<
12321        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t,
12322    >,
12323    #[doc = "\n Return the handler for download events. If no handler is returned\n downloads will not be allowed.\n"]
12324    pub get_download_handler: ::std::option::Option<
12325        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t,
12326    >,
12327    #[doc = "\n Return the handler for drag events.\n"]
12328    pub get_drag_handler: ::std::option::Option<
12329        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t,
12330    >,
12331    #[doc = "\n Return the handler for find result events.\n"]
12332    pub get_find_handler: ::std::option::Option<
12333        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t,
12334    >,
12335    #[doc = "\n Return the handler for focus events.\n"]
12336    pub get_focus_handler: ::std::option::Option<
12337        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t,
12338    >,
12339    #[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"]
12340    pub get_frame_handler: ::std::option::Option<
12341        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_frame_handler_t,
12342    >,
12343    #[doc = "\n Return the handler for permission requests.\n"]
12344    pub get_permission_handler: ::std::option::Option<
12345        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_permission_handler_t,
12346    >,
12347    #[doc = "\n Return the handler for JavaScript dialogs. If no handler is provided the\n default implementation will be used.\n"]
12348    pub get_jsdialog_handler: ::std::option::Option<
12349        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t,
12350    >,
12351    #[doc = "\n Return the handler for keyboard events.\n"]
12352    pub get_keyboard_handler: ::std::option::Option<
12353        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t,
12354    >,
12355    #[doc = "\n Return the handler for browser life span events.\n"]
12356    pub get_life_span_handler: ::std::option::Option<
12357        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t,
12358    >,
12359    #[doc = "\n Return the handler for browser load status events.\n"]
12360    pub get_load_handler: ::std::option::Option<
12361        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t,
12362    >,
12363    #[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"]
12364    pub get_print_handler: ::std::option::Option<
12365        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_print_handler_t,
12366    >,
12367    #[doc = "\n Return the handler for off-screen rendering events.\n"]
12368    pub get_render_handler: ::std::option::Option<
12369        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t,
12370    >,
12371    #[doc = "\n Return the handler for browser request events.\n"]
12372    pub get_request_handler: ::std::option::Option<
12373        unsafe extern "C" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t,
12374    >,
12375    #[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"]
12376    pub on_process_message_received: ::std::option::Option<
12377        unsafe extern "C" fn(
12378            self_: *mut _cef_client_t,
12379            browser: *mut _cef_browser_t,
12380            frame: *mut _cef_frame_t,
12381            source_process: cef_process_id_t,
12382            message: *mut _cef_process_message_t,
12383        ) -> ::std::os::raw::c_int,
12384    >,
12385}
12386#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12387const _: () = {
12388    ["Size of _cef_client_t"][::std::mem::size_of::<_cef_client_t>() - 192usize];
12389    ["Alignment of _cef_client_t"][::std::mem::align_of::<_cef_client_t>() - 8usize];
12390    ["Offset of field: _cef_client_t::base"][::std::mem::offset_of!(_cef_client_t, base) - 0usize];
12391    ["Offset of field: _cef_client_t::get_audio_handler"]
12392        [::std::mem::offset_of!(_cef_client_t, get_audio_handler) - 40usize];
12393    ["Offset of field: _cef_client_t::get_command_handler"]
12394        [::std::mem::offset_of!(_cef_client_t, get_command_handler) - 48usize];
12395    ["Offset of field: _cef_client_t::get_context_menu_handler"]
12396        [::std::mem::offset_of!(_cef_client_t, get_context_menu_handler) - 56usize];
12397    ["Offset of field: _cef_client_t::get_dialog_handler"]
12398        [::std::mem::offset_of!(_cef_client_t, get_dialog_handler) - 64usize];
12399    ["Offset of field: _cef_client_t::get_display_handler"]
12400        [::std::mem::offset_of!(_cef_client_t, get_display_handler) - 72usize];
12401    ["Offset of field: _cef_client_t::get_download_handler"]
12402        [::std::mem::offset_of!(_cef_client_t, get_download_handler) - 80usize];
12403    ["Offset of field: _cef_client_t::get_drag_handler"]
12404        [::std::mem::offset_of!(_cef_client_t, get_drag_handler) - 88usize];
12405    ["Offset of field: _cef_client_t::get_find_handler"]
12406        [::std::mem::offset_of!(_cef_client_t, get_find_handler) - 96usize];
12407    ["Offset of field: _cef_client_t::get_focus_handler"]
12408        [::std::mem::offset_of!(_cef_client_t, get_focus_handler) - 104usize];
12409    ["Offset of field: _cef_client_t::get_frame_handler"]
12410        [::std::mem::offset_of!(_cef_client_t, get_frame_handler) - 112usize];
12411    ["Offset of field: _cef_client_t::get_permission_handler"]
12412        [::std::mem::offset_of!(_cef_client_t, get_permission_handler) - 120usize];
12413    ["Offset of field: _cef_client_t::get_jsdialog_handler"]
12414        [::std::mem::offset_of!(_cef_client_t, get_jsdialog_handler) - 128usize];
12415    ["Offset of field: _cef_client_t::get_keyboard_handler"]
12416        [::std::mem::offset_of!(_cef_client_t, get_keyboard_handler) - 136usize];
12417    ["Offset of field: _cef_client_t::get_life_span_handler"]
12418        [::std::mem::offset_of!(_cef_client_t, get_life_span_handler) - 144usize];
12419    ["Offset of field: _cef_client_t::get_load_handler"]
12420        [::std::mem::offset_of!(_cef_client_t, get_load_handler) - 152usize];
12421    ["Offset of field: _cef_client_t::get_print_handler"]
12422        [::std::mem::offset_of!(_cef_client_t, get_print_handler) - 160usize];
12423    ["Offset of field: _cef_client_t::get_render_handler"]
12424        [::std::mem::offset_of!(_cef_client_t, get_render_handler) - 168usize];
12425    ["Offset of field: _cef_client_t::get_request_handler"]
12426        [::std::mem::offset_of!(_cef_client_t, get_request_handler) - 176usize];
12427    ["Offset of field: _cef_client_t::on_process_message_received"]
12428        [::std::mem::offset_of!(_cef_client_t, on_process_message_received) - 184usize];
12429};
12430#[doc = "\n Implement this structure to provide handler implementations.\n\n NOTE: This struct is allocated client-side.\n"]
12431pub type cef_client_t = _cef_client_t;
12432#[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"]
12433#[repr(C)]
12434#[derive(Debug, Copy, Clone)]
12435pub struct _cef_command_line_t {
12436    #[doc = "\n Base structure.\n"]
12437    pub base: cef_base_ref_counted_t,
12438    #[doc = "\n Returns true (1) if this object is valid. Do not call any other functions\n if this function returns false (0).\n"]
12439    pub is_valid: ::std::option::Option<
12440        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12441    >,
12442    #[doc = "\n Returns true (1) if the values of this object are read-only. Some APIs may\n expose read-only objects.\n"]
12443    pub is_read_only: ::std::option::Option<
12444        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12445    >,
12446    #[doc = "\n Returns a writable copy of this object.\n"]
12447    pub copy: ::std::option::Option<
12448        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> *mut _cef_command_line_t,
12449    >,
12450    #[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"]
12451    pub init_from_argv: ::std::option::Option<
12452        unsafe extern "C" fn(
12453            self_: *mut _cef_command_line_t,
12454            argc: ::std::os::raw::c_int,
12455            argv: *const *const ::std::os::raw::c_char,
12456        ),
12457    >,
12458    #[doc = "\n Initialize the command line with the string returned by calling\n GetCommandLineW(). This function is only supported on Windows.\n"]
12459    pub init_from_string: ::std::option::Option<
12460        unsafe extern "C" fn(self_: *mut _cef_command_line_t, command_line: *const cef_string_t),
12461    >,
12462    #[doc = "\n Reset the command-line switches and arguments but leave the program\n component unchanged.\n"]
12463    pub reset: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_command_line_t)>,
12464    #[doc = "\n Retrieve the original command line string as a vector of strings. The argv\n array: `{ program, [(--|-|/)switch[=value]]*, [--], [argument]* }`\n"]
12465    pub get_argv: ::std::option::Option<
12466        unsafe extern "C" fn(self_: *mut _cef_command_line_t, argv: cef_string_list_t),
12467    >,
12468    #[doc = "\n Constructs and returns the represented command line string. Use this\n function cautiously because quoting behavior is unclear.\n"]
12469    pub get_command_line_string: ::std::option::Option<
12470        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t,
12471    >,
12472    #[doc = "\n Get the program part of the command line string (the first item).\n"]
12473    pub get_program: ::std::option::Option<
12474        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t,
12475    >,
12476    #[doc = "\n Set the program part of the command line string (the first item).\n"]
12477    pub set_program: ::std::option::Option<
12478        unsafe extern "C" fn(self_: *mut _cef_command_line_t, program: *const cef_string_t),
12479    >,
12480    #[doc = "\n Returns true (1) if the command line has switches.\n"]
12481    pub has_switches: ::std::option::Option<
12482        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12483    >,
12484    #[doc = "\n Returns true (1) if the command line contains the given switch.\n"]
12485    pub has_switch: ::std::option::Option<
12486        unsafe extern "C" fn(
12487            self_: *mut _cef_command_line_t,
12488            name: *const cef_string_t,
12489        ) -> ::std::os::raw::c_int,
12490    >,
12491    #[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"]
12492    pub get_switch_value: ::std::option::Option<
12493        unsafe extern "C" fn(
12494            self_: *mut _cef_command_line_t,
12495            name: *const cef_string_t,
12496        ) -> cef_string_userfree_t,
12497    >,
12498    #[doc = "\n Returns the map of switch names and values. If a switch has no value an\n NULL string is returned.\n"]
12499    pub get_switches: ::std::option::Option<
12500        unsafe extern "C" fn(self_: *mut _cef_command_line_t, switches: cef_string_map_t),
12501    >,
12502    #[doc = "\n Add a switch to the end of the command line.\n"]
12503    pub append_switch: ::std::option::Option<
12504        unsafe extern "C" fn(self_: *mut _cef_command_line_t, name: *const cef_string_t),
12505    >,
12506    #[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"]
12507    pub append_switch_with_value: ::std::option::Option<
12508        unsafe extern "C" fn(
12509            self_: *mut _cef_command_line_t,
12510            name: *const cef_string_t,
12511            value: *const cef_string_t,
12512        ),
12513    >,
12514    #[doc = "\n True if there are remaining command line arguments.\n"]
12515    pub has_arguments: ::std::option::Option<
12516        unsafe extern "C" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int,
12517    >,
12518    #[doc = "\n Get the remaining command line arguments.\n"]
12519    pub get_arguments: ::std::option::Option<
12520        unsafe extern "C" fn(self_: *mut _cef_command_line_t, arguments: cef_string_list_t),
12521    >,
12522    #[doc = "\n Add an argument to the end of the command line.\n"]
12523    pub append_argument: ::std::option::Option<
12524        unsafe extern "C" fn(self_: *mut _cef_command_line_t, argument: *const cef_string_t),
12525    >,
12526    #[doc = "\n Insert a command before the current command. Common for debuggers, like\n \"valgrind\" or \"gdb --args\".\n"]
12527    pub prepend_wrapper: ::std::option::Option<
12528        unsafe extern "C" fn(self_: *mut _cef_command_line_t, wrapper: *const cef_string_t),
12529    >,
12530    #[doc = "\n Remove a switch from the command line. If no such switch is present, this\n has no effect.\n"]
12531    pub remove_switch: ::std::option::Option<
12532        unsafe extern "C" fn(self_: *mut _cef_command_line_t, name: *const cef_string_t),
12533    >,
12534}
12535#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12536const _: () = {
12537    ["Size of _cef_command_line_t"][::std::mem::size_of::<_cef_command_line_t>() - 208usize];
12538    ["Alignment of _cef_command_line_t"][::std::mem::align_of::<_cef_command_line_t>() - 8usize];
12539    ["Offset of field: _cef_command_line_t::base"]
12540        [::std::mem::offset_of!(_cef_command_line_t, base) - 0usize];
12541    ["Offset of field: _cef_command_line_t::is_valid"]
12542        [::std::mem::offset_of!(_cef_command_line_t, is_valid) - 40usize];
12543    ["Offset of field: _cef_command_line_t::is_read_only"]
12544        [::std::mem::offset_of!(_cef_command_line_t, is_read_only) - 48usize];
12545    ["Offset of field: _cef_command_line_t::copy"]
12546        [::std::mem::offset_of!(_cef_command_line_t, copy) - 56usize];
12547    ["Offset of field: _cef_command_line_t::init_from_argv"]
12548        [::std::mem::offset_of!(_cef_command_line_t, init_from_argv) - 64usize];
12549    ["Offset of field: _cef_command_line_t::init_from_string"]
12550        [::std::mem::offset_of!(_cef_command_line_t, init_from_string) - 72usize];
12551    ["Offset of field: _cef_command_line_t::reset"]
12552        [::std::mem::offset_of!(_cef_command_line_t, reset) - 80usize];
12553    ["Offset of field: _cef_command_line_t::get_argv"]
12554        [::std::mem::offset_of!(_cef_command_line_t, get_argv) - 88usize];
12555    ["Offset of field: _cef_command_line_t::get_command_line_string"]
12556        [::std::mem::offset_of!(_cef_command_line_t, get_command_line_string) - 96usize];
12557    ["Offset of field: _cef_command_line_t::get_program"]
12558        [::std::mem::offset_of!(_cef_command_line_t, get_program) - 104usize];
12559    ["Offset of field: _cef_command_line_t::set_program"]
12560        [::std::mem::offset_of!(_cef_command_line_t, set_program) - 112usize];
12561    ["Offset of field: _cef_command_line_t::has_switches"]
12562        [::std::mem::offset_of!(_cef_command_line_t, has_switches) - 120usize];
12563    ["Offset of field: _cef_command_line_t::has_switch"]
12564        [::std::mem::offset_of!(_cef_command_line_t, has_switch) - 128usize];
12565    ["Offset of field: _cef_command_line_t::get_switch_value"]
12566        [::std::mem::offset_of!(_cef_command_line_t, get_switch_value) - 136usize];
12567    ["Offset of field: _cef_command_line_t::get_switches"]
12568        [::std::mem::offset_of!(_cef_command_line_t, get_switches) - 144usize];
12569    ["Offset of field: _cef_command_line_t::append_switch"]
12570        [::std::mem::offset_of!(_cef_command_line_t, append_switch) - 152usize];
12571    ["Offset of field: _cef_command_line_t::append_switch_with_value"]
12572        [::std::mem::offset_of!(_cef_command_line_t, append_switch_with_value) - 160usize];
12573    ["Offset of field: _cef_command_line_t::has_arguments"]
12574        [::std::mem::offset_of!(_cef_command_line_t, has_arguments) - 168usize];
12575    ["Offset of field: _cef_command_line_t::get_arguments"]
12576        [::std::mem::offset_of!(_cef_command_line_t, get_arguments) - 176usize];
12577    ["Offset of field: _cef_command_line_t::append_argument"]
12578        [::std::mem::offset_of!(_cef_command_line_t, append_argument) - 184usize];
12579    ["Offset of field: _cef_command_line_t::prepend_wrapper"]
12580        [::std::mem::offset_of!(_cef_command_line_t, prepend_wrapper) - 192usize];
12581    ["Offset of field: _cef_command_line_t::remove_switch"]
12582        [::std::mem::offset_of!(_cef_command_line_t, remove_switch) - 200usize];
12583};
12584#[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"]
12585pub type cef_command_line_t = _cef_command_line_t;
12586unsafe extern "C" {
12587    #[doc = "\n Create a new cef_command_line_t instance.\n"]
12588    pub fn cef_command_line_create() -> *mut cef_command_line_t;
12589}
12590unsafe extern "C" {
12591    #[doc = "\n Returns the singleton global cef_command_line_t object. The returned object\n will be read-only.\n"]
12592    pub fn cef_command_line_get_global() -> *mut cef_command_line_t;
12593}
12594#[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"]
12595#[repr(C)]
12596#[derive(Debug, Copy, Clone)]
12597pub struct _cef_request_context_handler_t {
12598    #[doc = "\n Base structure.\n"]
12599    pub base: cef_base_ref_counted_t,
12600    #[doc = "\n Called on the browser process UI thread immediately after the request\n context has been initialized.\n"]
12601    pub on_request_context_initialized: ::std::option::Option<
12602        unsafe extern "C" fn(
12603            self_: *mut _cef_request_context_handler_t,
12604            request_context: *mut _cef_request_context_t,
12605        ),
12606    >,
12607    #[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"]
12608    pub get_resource_request_handler: ::std::option::Option<
12609        unsafe extern "C" fn(
12610            self_: *mut _cef_request_context_handler_t,
12611            browser: *mut _cef_browser_t,
12612            frame: *mut _cef_frame_t,
12613            request: *mut _cef_request_t,
12614            is_navigation: ::std::os::raw::c_int,
12615            is_download: ::std::os::raw::c_int,
12616            request_initiator: *const cef_string_t,
12617            disable_default_handling: *mut ::std::os::raw::c_int,
12618        ) -> *mut _cef_resource_request_handler_t,
12619    >,
12620}
12621#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12622const _: () = {
12623    ["Size of _cef_request_context_handler_t"]
12624        [::std::mem::size_of::<_cef_request_context_handler_t>() - 56usize];
12625    ["Alignment of _cef_request_context_handler_t"]
12626        [::std::mem::align_of::<_cef_request_context_handler_t>() - 8usize];
12627    ["Offset of field: _cef_request_context_handler_t::base"]
12628        [::std::mem::offset_of!(_cef_request_context_handler_t, base) - 0usize];
12629    ["Offset of field: _cef_request_context_handler_t::on_request_context_initialized"][::std::mem::offset_of!(
12630        _cef_request_context_handler_t,
12631        on_request_context_initialized
12632    )
12633        - 40usize];
12634    ["Offset of field: _cef_request_context_handler_t::get_resource_request_handler"][::std::mem::offset_of!(
12635        _cef_request_context_handler_t,
12636        get_resource_request_handler
12637    ) - 48usize];
12638};
12639#[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"]
12640pub type cef_request_context_handler_t = _cef_request_context_handler_t;
12641#[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"]
12642#[repr(C)]
12643#[derive(Debug, Copy, Clone)]
12644pub struct _cef_browser_process_handler_t {
12645    #[doc = "\n Base structure.\n"]
12646    pub base: cef_base_ref_counted_t,
12647    #[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"]
12648    pub on_register_custom_preferences: ::std::option::Option<
12649        unsafe extern "C" fn(
12650            self_: *mut _cef_browser_process_handler_t,
12651            type_: cef_preferences_type_t,
12652            registrar: *mut _cef_preference_registrar_t,
12653        ),
12654    >,
12655    #[doc = "\n Called on the browser process UI thread immediately after the CEF context\n has been initialized.\n"]
12656    pub on_context_initialized:
12657        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t)>,
12658    #[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"]
12659    pub on_before_child_process_launch: ::std::option::Option<
12660        unsafe extern "C" fn(
12661            self_: *mut _cef_browser_process_handler_t,
12662            command_line: *mut _cef_command_line_t,
12663        ),
12664    >,
12665    #[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"]
12666    pub on_already_running_app_relaunch: ::std::option::Option<
12667        unsafe extern "C" fn(
12668            self_: *mut _cef_browser_process_handler_t,
12669            command_line: *mut _cef_command_line_t,
12670            current_directory: *const cef_string_t,
12671        ) -> ::std::os::raw::c_int,
12672    >,
12673    #[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"]
12674    pub on_schedule_message_pump_work: ::std::option::Option<
12675        unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t, delay_ms: i64),
12676    >,
12677    #[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"]
12678    pub get_default_client: ::std::option::Option<
12679        unsafe extern "C" fn(self_: *mut _cef_browser_process_handler_t) -> *mut _cef_client_t,
12680    >,
12681    #[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"]
12682    pub get_default_request_context_handler: ::std::option::Option<
12683        unsafe extern "C" fn(
12684            self_: *mut _cef_browser_process_handler_t,
12685        ) -> *mut _cef_request_context_handler_t,
12686    >,
12687}
12688#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12689const _: () = {
12690    ["Size of _cef_browser_process_handler_t"]
12691        [::std::mem::size_of::<_cef_browser_process_handler_t>() - 96usize];
12692    ["Alignment of _cef_browser_process_handler_t"]
12693        [::std::mem::align_of::<_cef_browser_process_handler_t>() - 8usize];
12694    ["Offset of field: _cef_browser_process_handler_t::base"]
12695        [::std::mem::offset_of!(_cef_browser_process_handler_t, base) - 0usize];
12696    ["Offset of field: _cef_browser_process_handler_t::on_register_custom_preferences"][::std::mem::offset_of!(
12697        _cef_browser_process_handler_t,
12698        on_register_custom_preferences
12699    )
12700        - 40usize];
12701    ["Offset of field: _cef_browser_process_handler_t::on_context_initialized"]
12702        [::std::mem::offset_of!(_cef_browser_process_handler_t, on_context_initialized) - 48usize];
12703    ["Offset of field: _cef_browser_process_handler_t::on_before_child_process_launch"][::std::mem::offset_of!(
12704        _cef_browser_process_handler_t,
12705        on_before_child_process_launch
12706    )
12707        - 56usize];
12708    ["Offset of field: _cef_browser_process_handler_t::on_already_running_app_relaunch"][::std::mem::offset_of!(
12709        _cef_browser_process_handler_t,
12710        on_already_running_app_relaunch
12711    )
12712        - 64usize];
12713    ["Offset of field: _cef_browser_process_handler_t::on_schedule_message_pump_work"][::std::mem::offset_of!(
12714        _cef_browser_process_handler_t,
12715        on_schedule_message_pump_work
12716    ) - 72usize];
12717    ["Offset of field: _cef_browser_process_handler_t::get_default_client"]
12718        [::std::mem::offset_of!(_cef_browser_process_handler_t, get_default_client) - 80usize];
12719    ["Offset of field: _cef_browser_process_handler_t::get_default_request_context_handler"][::std::mem::offset_of!(
12720        _cef_browser_process_handler_t,
12721        get_default_request_context_handler
12722    )
12723        - 88usize];
12724};
12725#[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"]
12726pub type cef_browser_process_handler_t = _cef_browser_process_handler_t;
12727#[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"]
12728#[repr(C)]
12729#[derive(Debug, Copy, Clone)]
12730pub struct _cef_task_t {
12731    #[doc = "\n Base structure.\n"]
12732    pub base: cef_base_ref_counted_t,
12733    #[doc = "\n Method that will be executed on the target thread.\n"]
12734    pub execute: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_task_t)>,
12735}
12736#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12737const _: () = {
12738    ["Size of _cef_task_t"][::std::mem::size_of::<_cef_task_t>() - 48usize];
12739    ["Alignment of _cef_task_t"][::std::mem::align_of::<_cef_task_t>() - 8usize];
12740    ["Offset of field: _cef_task_t::base"][::std::mem::offset_of!(_cef_task_t, base) - 0usize];
12741    ["Offset of field: _cef_task_t::execute"]
12742        [::std::mem::offset_of!(_cef_task_t, execute) - 40usize];
12743};
12744#[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"]
12745pub type cef_task_t = _cef_task_t;
12746#[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"]
12747#[repr(C)]
12748#[derive(Debug, Copy, Clone)]
12749pub struct _cef_task_runner_t {
12750    #[doc = "\n Base structure.\n"]
12751    pub base: cef_base_ref_counted_t,
12752    #[doc = "\n Returns true (1) if this object is pointing to the same task runner as\n |that| object.\n"]
12753    pub is_same: ::std::option::Option<
12754        unsafe extern "C" fn(
12755            self_: *mut _cef_task_runner_t,
12756            that: *mut _cef_task_runner_t,
12757        ) -> ::std::os::raw::c_int,
12758    >,
12759    #[doc = "\n Returns true (1) if this task runner belongs to the current thread.\n"]
12760    pub belongs_to_current_thread: ::std::option::Option<
12761        unsafe extern "C" fn(self_: *mut _cef_task_runner_t) -> ::std::os::raw::c_int,
12762    >,
12763    #[doc = "\n Returns true (1) if this task runner is for the specified CEF thread.\n"]
12764    pub belongs_to_thread: ::std::option::Option<
12765        unsafe extern "C" fn(
12766            self_: *mut _cef_task_runner_t,
12767            threadId: cef_thread_id_t,
12768        ) -> ::std::os::raw::c_int,
12769    >,
12770    #[doc = "\n Post a task for execution on the thread associated with this task runner.\n Execution will occur asynchronously.\n"]
12771    pub post_task: ::std::option::Option<
12772        unsafe extern "C" fn(
12773            self_: *mut _cef_task_runner_t,
12774            task: *mut _cef_task_t,
12775        ) -> ::std::os::raw::c_int,
12776    >,
12777    #[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"]
12778    pub post_delayed_task: ::std::option::Option<
12779        unsafe extern "C" fn(
12780            self_: *mut _cef_task_runner_t,
12781            task: *mut _cef_task_t,
12782            delay_ms: i64,
12783        ) -> ::std::os::raw::c_int,
12784    >,
12785}
12786#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12787const _: () = {
12788    ["Size of _cef_task_runner_t"][::std::mem::size_of::<_cef_task_runner_t>() - 80usize];
12789    ["Alignment of _cef_task_runner_t"][::std::mem::align_of::<_cef_task_runner_t>() - 8usize];
12790    ["Offset of field: _cef_task_runner_t::base"]
12791        [::std::mem::offset_of!(_cef_task_runner_t, base) - 0usize];
12792    ["Offset of field: _cef_task_runner_t::is_same"]
12793        [::std::mem::offset_of!(_cef_task_runner_t, is_same) - 40usize];
12794    ["Offset of field: _cef_task_runner_t::belongs_to_current_thread"]
12795        [::std::mem::offset_of!(_cef_task_runner_t, belongs_to_current_thread) - 48usize];
12796    ["Offset of field: _cef_task_runner_t::belongs_to_thread"]
12797        [::std::mem::offset_of!(_cef_task_runner_t, belongs_to_thread) - 56usize];
12798    ["Offset of field: _cef_task_runner_t::post_task"]
12799        [::std::mem::offset_of!(_cef_task_runner_t, post_task) - 64usize];
12800    ["Offset of field: _cef_task_runner_t::post_delayed_task"]
12801        [::std::mem::offset_of!(_cef_task_runner_t, post_delayed_task) - 72usize];
12802};
12803#[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"]
12804pub type cef_task_runner_t = _cef_task_runner_t;
12805unsafe extern "C" {
12806    #[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"]
12807    pub fn cef_task_runner_get_for_current_thread() -> *mut cef_task_runner_t;
12808}
12809unsafe extern "C" {
12810    #[doc = "\n Returns the task runner for the specified CEF thread.\n"]
12811    pub fn cef_task_runner_get_for_thread(threadId: cef_thread_id_t) -> *mut cef_task_runner_t;
12812}
12813unsafe extern "C" {
12814    #[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"]
12815    pub fn cef_currently_on(threadId: cef_thread_id_t) -> ::std::os::raw::c_int;
12816}
12817unsafe extern "C" {
12818    #[doc = "\n Post a task for execution on the specified thread. Equivalent to using\n cef_task_runner_t::GetForThread(threadId)->PostTask(task).\n"]
12819    pub fn cef_post_task(threadId: cef_thread_id_t, task: *mut cef_task_t)
12820        -> ::std::os::raw::c_int;
12821}
12822unsafe extern "C" {
12823    #[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"]
12824    pub fn cef_post_delayed_task(
12825        threadId: cef_thread_id_t,
12826        task: *mut cef_task_t,
12827        delay_ms: i64,
12828    ) -> ::std::os::raw::c_int;
12829}
12830#[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"]
12831#[repr(C)]
12832#[derive(Debug, Copy, Clone)]
12833pub struct _cef_v8_context_t {
12834    #[doc = "\n Base structure.\n"]
12835    pub base: cef_base_ref_counted_t,
12836    #[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"]
12837    pub get_task_runner: ::std::option::Option<
12838        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_task_runner_t,
12839    >,
12840    #[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"]
12841    pub is_valid: ::std::option::Option<
12842        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12843    >,
12844    #[doc = "\n Returns the browser for this context. This function will return an NULL\n reference for WebWorker contexts.\n"]
12845    pub get_browser: ::std::option::Option<
12846        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_browser_t,
12847    >,
12848    #[doc = "\n Returns the frame for this context. This function will return an NULL\n reference for WebWorker contexts.\n"]
12849    pub get_frame: ::std::option::Option<
12850        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_frame_t,
12851    >,
12852    #[doc = "\n Returns the global object for this context. The context must be entered\n before calling this function.\n"]
12853    pub get_global: ::std::option::Option<
12854        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> *mut _cef_v8_value_t,
12855    >,
12856    #[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"]
12857    pub enter: ::std::option::Option<
12858        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12859    >,
12860    #[doc = "\n Exit this context. Call this function only after calling enter(). Returns\n true (1) if the scope was exited successfully.\n"]
12861    pub exit: ::std::option::Option<
12862        unsafe extern "C" fn(self_: *mut _cef_v8_context_t) -> ::std::os::raw::c_int,
12863    >,
12864    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
12865    pub is_same: ::std::option::Option<
12866        unsafe extern "C" fn(
12867            self_: *mut _cef_v8_context_t,
12868            that: *mut _cef_v8_context_t,
12869        ) -> ::std::os::raw::c_int,
12870    >,
12871    #[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"]
12872    pub eval: ::std::option::Option<
12873        unsafe extern "C" fn(
12874            self_: *mut _cef_v8_context_t,
12875            code: *const cef_string_t,
12876            script_url: *const cef_string_t,
12877            start_line: ::std::os::raw::c_int,
12878            retval: *mut *mut _cef_v8_value_t,
12879            exception: *mut *mut _cef_v8_exception_t,
12880        ) -> ::std::os::raw::c_int,
12881    >,
12882}
12883#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12884const _: () = {
12885    ["Size of _cef_v8_context_t"][::std::mem::size_of::<_cef_v8_context_t>() - 112usize];
12886    ["Alignment of _cef_v8_context_t"][::std::mem::align_of::<_cef_v8_context_t>() - 8usize];
12887    ["Offset of field: _cef_v8_context_t::base"]
12888        [::std::mem::offset_of!(_cef_v8_context_t, base) - 0usize];
12889    ["Offset of field: _cef_v8_context_t::get_task_runner"]
12890        [::std::mem::offset_of!(_cef_v8_context_t, get_task_runner) - 40usize];
12891    ["Offset of field: _cef_v8_context_t::is_valid"]
12892        [::std::mem::offset_of!(_cef_v8_context_t, is_valid) - 48usize];
12893    ["Offset of field: _cef_v8_context_t::get_browser"]
12894        [::std::mem::offset_of!(_cef_v8_context_t, get_browser) - 56usize];
12895    ["Offset of field: _cef_v8_context_t::get_frame"]
12896        [::std::mem::offset_of!(_cef_v8_context_t, get_frame) - 64usize];
12897    ["Offset of field: _cef_v8_context_t::get_global"]
12898        [::std::mem::offset_of!(_cef_v8_context_t, get_global) - 72usize];
12899    ["Offset of field: _cef_v8_context_t::enter"]
12900        [::std::mem::offset_of!(_cef_v8_context_t, enter) - 80usize];
12901    ["Offset of field: _cef_v8_context_t::exit"]
12902        [::std::mem::offset_of!(_cef_v8_context_t, exit) - 88usize];
12903    ["Offset of field: _cef_v8_context_t::is_same"]
12904        [::std::mem::offset_of!(_cef_v8_context_t, is_same) - 96usize];
12905    ["Offset of field: _cef_v8_context_t::eval"]
12906        [::std::mem::offset_of!(_cef_v8_context_t, eval) - 104usize];
12907};
12908#[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"]
12909pub type cef_v8_context_t = _cef_v8_context_t;
12910unsafe extern "C" {
12911    #[doc = "\n Returns the current (top) context object in the V8 context stack.\n"]
12912    pub fn cef_v8_context_get_current_context() -> *mut cef_v8_context_t;
12913}
12914unsafe extern "C" {
12915    #[doc = "\n Returns the entered (bottom) context object in the V8 context stack.\n"]
12916    pub fn cef_v8_context_get_entered_context() -> *mut cef_v8_context_t;
12917}
12918unsafe extern "C" {
12919    #[doc = "\n Returns true (1) if V8 is currently inside a context.\n"]
12920    pub fn cef_v8_context_in_context() -> ::std::os::raw::c_int;
12921}
12922#[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"]
12923#[repr(C)]
12924#[derive(Debug, Copy, Clone)]
12925pub struct _cef_v8_handler_t {
12926    #[doc = "\n Base structure.\n"]
12927    pub base: cef_base_ref_counted_t,
12928    #[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"]
12929    pub execute: ::std::option::Option<
12930        unsafe extern "C" fn(
12931            self_: *mut _cef_v8_handler_t,
12932            name: *const cef_string_t,
12933            object: *mut _cef_v8_value_t,
12934            argumentsCount: usize,
12935            arguments: *const *mut _cef_v8_value_t,
12936            retval: *mut *mut _cef_v8_value_t,
12937            exception: *mut cef_string_t,
12938        ) -> ::std::os::raw::c_int,
12939    >,
12940}
12941#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12942const _: () = {
12943    ["Size of _cef_v8_handler_t"][::std::mem::size_of::<_cef_v8_handler_t>() - 48usize];
12944    ["Alignment of _cef_v8_handler_t"][::std::mem::align_of::<_cef_v8_handler_t>() - 8usize];
12945    ["Offset of field: _cef_v8_handler_t::base"]
12946        [::std::mem::offset_of!(_cef_v8_handler_t, base) - 0usize];
12947    ["Offset of field: _cef_v8_handler_t::execute"]
12948        [::std::mem::offset_of!(_cef_v8_handler_t, execute) - 40usize];
12949};
12950#[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"]
12951pub type cef_v8_handler_t = _cef_v8_handler_t;
12952#[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"]
12953#[repr(C)]
12954#[derive(Debug, Copy, Clone)]
12955pub struct _cef_v8_accessor_t {
12956    #[doc = "\n Base structure.\n"]
12957    pub base: cef_base_ref_counted_t,
12958    #[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"]
12959    pub get: ::std::option::Option<
12960        unsafe extern "C" fn(
12961            self_: *mut _cef_v8_accessor_t,
12962            name: *const cef_string_t,
12963            object: *mut _cef_v8_value_t,
12964            retval: *mut *mut _cef_v8_value_t,
12965            exception: *mut cef_string_t,
12966        ) -> ::std::os::raw::c_int,
12967    >,
12968    #[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"]
12969    pub set: ::std::option::Option<
12970        unsafe extern "C" fn(
12971            self_: *mut _cef_v8_accessor_t,
12972            name: *const cef_string_t,
12973            object: *mut _cef_v8_value_t,
12974            value: *mut _cef_v8_value_t,
12975            exception: *mut cef_string_t,
12976        ) -> ::std::os::raw::c_int,
12977    >,
12978}
12979#[allow(clippy::unnecessary_operation, clippy::identity_op)]
12980const _: () = {
12981    ["Size of _cef_v8_accessor_t"][::std::mem::size_of::<_cef_v8_accessor_t>() - 56usize];
12982    ["Alignment of _cef_v8_accessor_t"][::std::mem::align_of::<_cef_v8_accessor_t>() - 8usize];
12983    ["Offset of field: _cef_v8_accessor_t::base"]
12984        [::std::mem::offset_of!(_cef_v8_accessor_t, base) - 0usize];
12985    ["Offset of field: _cef_v8_accessor_t::get"]
12986        [::std::mem::offset_of!(_cef_v8_accessor_t, get) - 40usize];
12987    ["Offset of field: _cef_v8_accessor_t::set"]
12988        [::std::mem::offset_of!(_cef_v8_accessor_t, set) - 48usize];
12989};
12990#[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"]
12991pub type cef_v8_accessor_t = _cef_v8_accessor_t;
12992#[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"]
12993#[repr(C)]
12994#[derive(Debug, Copy, Clone)]
12995pub struct _cef_v8_interceptor_t {
12996    #[doc = "\n Base structure.\n"]
12997    pub base: cef_base_ref_counted_t,
12998    #[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"]
12999    pub get_byname: ::std::option::Option<
13000        unsafe extern "C" fn(
13001            self_: *mut _cef_v8_interceptor_t,
13002            name: *const cef_string_t,
13003            object: *mut _cef_v8_value_t,
13004            retval: *mut *mut _cef_v8_value_t,
13005            exception: *mut cef_string_t,
13006        ) -> ::std::os::raw::c_int,
13007    >,
13008    #[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"]
13009    pub get_byindex: ::std::option::Option<
13010        unsafe extern "C" fn(
13011            self_: *mut _cef_v8_interceptor_t,
13012            index: ::std::os::raw::c_int,
13013            object: *mut _cef_v8_value_t,
13014            retval: *mut *mut _cef_v8_value_t,
13015            exception: *mut cef_string_t,
13016        ) -> ::std::os::raw::c_int,
13017    >,
13018    #[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"]
13019    pub set_byname: ::std::option::Option<
13020        unsafe extern "C" fn(
13021            self_: *mut _cef_v8_interceptor_t,
13022            name: *const cef_string_t,
13023            object: *mut _cef_v8_value_t,
13024            value: *mut _cef_v8_value_t,
13025            exception: *mut cef_string_t,
13026        ) -> ::std::os::raw::c_int,
13027    >,
13028    #[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"]
13029    pub set_byindex: ::std::option::Option<
13030        unsafe extern "C" fn(
13031            self_: *mut _cef_v8_interceptor_t,
13032            index: ::std::os::raw::c_int,
13033            object: *mut _cef_v8_value_t,
13034            value: *mut _cef_v8_value_t,
13035            exception: *mut cef_string_t,
13036        ) -> ::std::os::raw::c_int,
13037    >,
13038}
13039#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13040const _: () = {
13041    ["Size of _cef_v8_interceptor_t"][::std::mem::size_of::<_cef_v8_interceptor_t>() - 72usize];
13042    ["Alignment of _cef_v8_interceptor_t"]
13043        [::std::mem::align_of::<_cef_v8_interceptor_t>() - 8usize];
13044    ["Offset of field: _cef_v8_interceptor_t::base"]
13045        [::std::mem::offset_of!(_cef_v8_interceptor_t, base) - 0usize];
13046    ["Offset of field: _cef_v8_interceptor_t::get_byname"]
13047        [::std::mem::offset_of!(_cef_v8_interceptor_t, get_byname) - 40usize];
13048    ["Offset of field: _cef_v8_interceptor_t::get_byindex"]
13049        [::std::mem::offset_of!(_cef_v8_interceptor_t, get_byindex) - 48usize];
13050    ["Offset of field: _cef_v8_interceptor_t::set_byname"]
13051        [::std::mem::offset_of!(_cef_v8_interceptor_t, set_byname) - 56usize];
13052    ["Offset of field: _cef_v8_interceptor_t::set_byindex"]
13053        [::std::mem::offset_of!(_cef_v8_interceptor_t, set_byindex) - 64usize];
13054};
13055#[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"]
13056pub type cef_v8_interceptor_t = _cef_v8_interceptor_t;
13057#[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"]
13058#[repr(C)]
13059#[derive(Debug, Copy, Clone)]
13060pub struct _cef_v8_exception_t {
13061    #[doc = "\n Base structure.\n"]
13062    pub base: cef_base_ref_counted_t,
13063    #[doc = "\n Returns the exception message.\n"]
13064    pub get_message: ::std::option::Option<
13065        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
13066    >,
13067    #[doc = "\n Returns the line of source code that the exception occurred within.\n"]
13068    pub get_source_line: ::std::option::Option<
13069        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
13070    >,
13071    #[doc = "\n Returns the resource name for the script from where the function causing\n the error originates.\n"]
13072    pub get_script_resource_name: ::std::option::Option<
13073        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> cef_string_userfree_t,
13074    >,
13075    #[doc = "\n Returns the 1-based number of the line where the error occurred or 0 if\n the line number is unknown.\n"]
13076    pub get_line_number: ::std::option::Option<
13077        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
13078    >,
13079    #[doc = "\n Returns the index within the script of the first character where the error\n occurred.\n"]
13080    pub get_start_position: ::std::option::Option<
13081        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
13082    >,
13083    #[doc = "\n Returns the index within the script of the last character where the error\n occurred.\n"]
13084    pub get_end_position: ::std::option::Option<
13085        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
13086    >,
13087    #[doc = "\n Returns the index within the line of the first character where the error\n occurred.\n"]
13088    pub get_start_column: ::std::option::Option<
13089        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
13090    >,
13091    #[doc = "\n Returns the index within the line of the last character where the error\n occurred.\n"]
13092    pub get_end_column: ::std::option::Option<
13093        unsafe extern "C" fn(self_: *mut _cef_v8_exception_t) -> ::std::os::raw::c_int,
13094    >,
13095}
13096#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13097const _: () = {
13098    ["Size of _cef_v8_exception_t"][::std::mem::size_of::<_cef_v8_exception_t>() - 104usize];
13099    ["Alignment of _cef_v8_exception_t"][::std::mem::align_of::<_cef_v8_exception_t>() - 8usize];
13100    ["Offset of field: _cef_v8_exception_t::base"]
13101        [::std::mem::offset_of!(_cef_v8_exception_t, base) - 0usize];
13102    ["Offset of field: _cef_v8_exception_t::get_message"]
13103        [::std::mem::offset_of!(_cef_v8_exception_t, get_message) - 40usize];
13104    ["Offset of field: _cef_v8_exception_t::get_source_line"]
13105        [::std::mem::offset_of!(_cef_v8_exception_t, get_source_line) - 48usize];
13106    ["Offset of field: _cef_v8_exception_t::get_script_resource_name"]
13107        [::std::mem::offset_of!(_cef_v8_exception_t, get_script_resource_name) - 56usize];
13108    ["Offset of field: _cef_v8_exception_t::get_line_number"]
13109        [::std::mem::offset_of!(_cef_v8_exception_t, get_line_number) - 64usize];
13110    ["Offset of field: _cef_v8_exception_t::get_start_position"]
13111        [::std::mem::offset_of!(_cef_v8_exception_t, get_start_position) - 72usize];
13112    ["Offset of field: _cef_v8_exception_t::get_end_position"]
13113        [::std::mem::offset_of!(_cef_v8_exception_t, get_end_position) - 80usize];
13114    ["Offset of field: _cef_v8_exception_t::get_start_column"]
13115        [::std::mem::offset_of!(_cef_v8_exception_t, get_start_column) - 88usize];
13116    ["Offset of field: _cef_v8_exception_t::get_end_column"]
13117        [::std::mem::offset_of!(_cef_v8_exception_t, get_end_column) - 96usize];
13118};
13119#[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"]
13120pub type cef_v8_exception_t = _cef_v8_exception_t;
13121#[doc = "\n Callback structure that is passed to cef_v8_value_t::CreateArrayBuffer.\n\n NOTE: This struct is allocated client-side.\n"]
13122#[repr(C)]
13123#[derive(Debug, Copy, Clone)]
13124pub struct _cef_v8_array_buffer_release_callback_t {
13125    #[doc = "\n Base structure.\n"]
13126    pub base: cef_base_ref_counted_t,
13127    #[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"]
13128    pub release_buffer: ::std::option::Option<
13129        unsafe extern "C" fn(
13130            self_: *mut _cef_v8_array_buffer_release_callback_t,
13131            buffer: *mut ::std::os::raw::c_void,
13132        ),
13133    >,
13134}
13135#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13136const _: () = {
13137    ["Size of _cef_v8_array_buffer_release_callback_t"]
13138        [::std::mem::size_of::<_cef_v8_array_buffer_release_callback_t>() - 48usize];
13139    ["Alignment of _cef_v8_array_buffer_release_callback_t"]
13140        [::std::mem::align_of::<_cef_v8_array_buffer_release_callback_t>() - 8usize];
13141    ["Offset of field: _cef_v8_array_buffer_release_callback_t::base"]
13142        [::std::mem::offset_of!(_cef_v8_array_buffer_release_callback_t, base) - 0usize];
13143    ["Offset of field: _cef_v8_array_buffer_release_callback_t::release_buffer"]
13144        [::std::mem::offset_of!(_cef_v8_array_buffer_release_callback_t, release_buffer) - 40usize];
13145};
13146#[doc = "\n Callback structure that is passed to cef_v8_value_t::CreateArrayBuffer.\n\n NOTE: This struct is allocated client-side.\n"]
13147pub type cef_v8_array_buffer_release_callback_t = _cef_v8_array_buffer_release_callback_t;
13148#[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"]
13149#[repr(C)]
13150#[derive(Debug, Copy, Clone)]
13151pub struct _cef_v8_value_t {
13152    #[doc = "\n Base structure.\n"]
13153    pub base: cef_base_ref_counted_t,
13154    #[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"]
13155    pub is_valid: ::std::option::Option<
13156        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13157    >,
13158    #[doc = "\n True if the value type is undefined.\n"]
13159    pub is_undefined: ::std::option::Option<
13160        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13161    >,
13162    #[doc = "\n True if the value type is null.\n"]
13163    pub is_null: ::std::option::Option<
13164        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13165    >,
13166    #[doc = "\n True if the value type is bool.\n"]
13167    pub is_bool: ::std::option::Option<
13168        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13169    >,
13170    #[doc = "\n True if the value type is int.\n"]
13171    pub is_int: ::std::option::Option<
13172        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13173    >,
13174    #[doc = "\n True if the value type is unsigned int.\n"]
13175    pub is_uint: ::std::option::Option<
13176        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13177    >,
13178    #[doc = "\n True if the value type is double.\n"]
13179    pub is_double: ::std::option::Option<
13180        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13181    >,
13182    #[doc = "\n True if the value type is Date.\n"]
13183    pub is_date: ::std::option::Option<
13184        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13185    >,
13186    #[doc = "\n True if the value type is string.\n"]
13187    pub is_string: ::std::option::Option<
13188        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13189    >,
13190    #[doc = "\n True if the value type is object.\n"]
13191    pub is_object: ::std::option::Option<
13192        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13193    >,
13194    #[doc = "\n True if the value type is array.\n"]
13195    pub is_array: ::std::option::Option<
13196        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13197    >,
13198    #[doc = "\n True if the value type is an ArrayBuffer.\n"]
13199    pub is_array_buffer: ::std::option::Option<
13200        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13201    >,
13202    #[doc = "\n True if the value type is function.\n"]
13203    pub is_function: ::std::option::Option<
13204        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13205    >,
13206    #[doc = "\n True if the value type is a Promise.\n"]
13207    pub is_promise: ::std::option::Option<
13208        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13209    >,
13210    #[doc = "\n Returns true (1) if this object is pointing to the same handle as |that|\n object.\n"]
13211    pub is_same: ::std::option::Option<
13212        unsafe extern "C" fn(
13213            self_: *mut _cef_v8_value_t,
13214            that: *mut _cef_v8_value_t,
13215        ) -> ::std::os::raw::c_int,
13216    >,
13217    #[doc = "\n Return a bool value.\n"]
13218    pub get_bool_value: ::std::option::Option<
13219        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13220    >,
13221    #[doc = "\n Return an int value.\n"]
13222    pub get_int_value:
13223        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> i32>,
13224    #[doc = "\n Return an unsigned int value.\n"]
13225    pub get_uint_value:
13226        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> u32>,
13227    #[doc = "\n Return a double value.\n"]
13228    pub get_double_value:
13229        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> f64>,
13230    #[doc = "\n Return a Date value.\n"]
13231    pub get_date_value:
13232        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_basetime_t>,
13233    #[doc = "\n Return a string value.\n"]
13234    pub get_string_value: ::std::option::Option<
13235        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_string_userfree_t,
13236    >,
13237    #[doc = "\n Returns true (1) if this is a user created object.\n"]
13238    pub is_user_created: ::std::option::Option<
13239        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13240    >,
13241    #[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"]
13242    pub has_exception: ::std::option::Option<
13243        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13244    >,
13245    #[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"]
13246    pub get_exception: ::std::option::Option<
13247        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_v8_exception_t,
13248    >,
13249    #[doc = "\n Clears the last exception and returns true (1) on success.\n"]
13250    pub clear_exception: ::std::option::Option<
13251        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13252    >,
13253    #[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"]
13254    pub will_rethrow_exceptions: ::std::option::Option<
13255        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13256    >,
13257    #[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"]
13258    pub set_rethrow_exceptions: ::std::option::Option<
13259        unsafe extern "C" fn(
13260            self_: *mut _cef_v8_value_t,
13261            rethrow: ::std::os::raw::c_int,
13262        ) -> ::std::os::raw::c_int,
13263    >,
13264    #[doc = "\n Returns true (1) if the object has a value with the specified identifier.\n"]
13265    pub has_value_bykey: ::std::option::Option<
13266        unsafe extern "C" fn(
13267            self_: *mut _cef_v8_value_t,
13268            key: *const cef_string_t,
13269        ) -> ::std::os::raw::c_int,
13270    >,
13271    #[doc = "\n Returns true (1) if the object has a value with the specified identifier.\n"]
13272    pub has_value_byindex: ::std::option::Option<
13273        unsafe extern "C" fn(
13274            self_: *mut _cef_v8_value_t,
13275            index: ::std::os::raw::c_int,
13276        ) -> ::std::os::raw::c_int,
13277    >,
13278    #[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"]
13279    pub delete_value_bykey: ::std::option::Option<
13280        unsafe extern "C" fn(
13281            self_: *mut _cef_v8_value_t,
13282            key: *const cef_string_t,
13283        ) -> ::std::os::raw::c_int,
13284    >,
13285    #[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"]
13286    pub delete_value_byindex: ::std::option::Option<
13287        unsafe extern "C" fn(
13288            self_: *mut _cef_v8_value_t,
13289            index: ::std::os::raw::c_int,
13290        ) -> ::std::os::raw::c_int,
13291    >,
13292    #[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"]
13293    pub get_value_bykey: ::std::option::Option<
13294        unsafe extern "C" fn(
13295            self_: *mut _cef_v8_value_t,
13296            key: *const cef_string_t,
13297        ) -> *mut _cef_v8_value_t,
13298    >,
13299    #[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"]
13300    pub get_value_byindex: ::std::option::Option<
13301        unsafe extern "C" fn(
13302            self_: *mut _cef_v8_value_t,
13303            index: ::std::os::raw::c_int,
13304        ) -> *mut _cef_v8_value_t,
13305    >,
13306    #[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"]
13307    pub set_value_bykey: ::std::option::Option<
13308        unsafe extern "C" fn(
13309            self_: *mut _cef_v8_value_t,
13310            key: *const cef_string_t,
13311            value: *mut _cef_v8_value_t,
13312            attribute: cef_v8_propertyattribute_t,
13313        ) -> ::std::os::raw::c_int,
13314    >,
13315    #[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"]
13316    pub set_value_byindex: ::std::option::Option<
13317        unsafe extern "C" fn(
13318            self_: *mut _cef_v8_value_t,
13319            index: ::std::os::raw::c_int,
13320            value: *mut _cef_v8_value_t,
13321        ) -> ::std::os::raw::c_int,
13322    >,
13323    #[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"]
13324    pub set_value_byaccessor: ::std::option::Option<
13325        unsafe extern "C" fn(
13326            self_: *mut _cef_v8_value_t,
13327            key: *const cef_string_t,
13328            attribute: cef_v8_propertyattribute_t,
13329        ) -> ::std::os::raw::c_int,
13330    >,
13331    #[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"]
13332    pub get_keys: ::std::option::Option<
13333        unsafe extern "C" fn(
13334            self_: *mut _cef_v8_value_t,
13335            keys: cef_string_list_t,
13336        ) -> ::std::os::raw::c_int,
13337    >,
13338    #[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"]
13339    pub set_user_data: ::std::option::Option<
13340        unsafe extern "C" fn(
13341            self_: *mut _cef_v8_value_t,
13342            user_data: *mut _cef_base_ref_counted_t,
13343        ) -> ::std::os::raw::c_int,
13344    >,
13345    #[doc = "\n Returns the user data, if any, assigned to this object.\n"]
13346    pub get_user_data: ::std::option::Option<
13347        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_base_ref_counted_t,
13348    >,
13349    #[doc = "\n Returns the amount of externally allocated memory registered for the\n object.\n"]
13350    pub get_externally_allocated_memory: ::std::option::Option<
13351        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13352    >,
13353    #[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"]
13354    pub adjust_externally_allocated_memory: ::std::option::Option<
13355        unsafe extern "C" fn(
13356            self_: *mut _cef_v8_value_t,
13357            change_in_bytes: ::std::os::raw::c_int,
13358        ) -> ::std::os::raw::c_int,
13359    >,
13360    #[doc = "\n Returns the number of elements in the array.\n"]
13361    pub get_array_length: ::std::option::Option<
13362        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13363    >,
13364    #[doc = "\n Returns the ReleaseCallback object associated with the ArrayBuffer or NULL\n if the ArrayBuffer was not created with CreateArrayBuffer.\n"]
13365    pub get_array_buffer_release_callback: ::std::option::Option<
13366        unsafe extern "C" fn(
13367            self_: *mut _cef_v8_value_t,
13368        ) -> *mut _cef_v8_array_buffer_release_callback_t,
13369    >,
13370    #[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"]
13371    pub neuter_array_buffer: ::std::option::Option<
13372        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> ::std::os::raw::c_int,
13373    >,
13374    #[doc = "\n Returns the length (in bytes) of the ArrayBuffer.\n"]
13375    pub get_array_buffer_byte_length:
13376        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> usize>,
13377    #[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"]
13378    pub get_array_buffer_data: ::std::option::Option<
13379        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut ::std::os::raw::c_void,
13380    >,
13381    #[doc = "\n Returns the function name.\n"]
13382    pub get_function_name: ::std::option::Option<
13383        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> cef_string_userfree_t,
13384    >,
13385    #[doc = "\n Returns the function handler or NULL if not a CEF-created function.\n"]
13386    pub get_function_handler: ::std::option::Option<
13387        unsafe extern "C" fn(self_: *mut _cef_v8_value_t) -> *mut _cef_v8_handler_t,
13388    >,
13389    #[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"]
13390    pub execute_function: ::std::option::Option<
13391        unsafe extern "C" fn(
13392            self_: *mut _cef_v8_value_t,
13393            object: *mut _cef_v8_value_t,
13394            argumentsCount: usize,
13395            arguments: *const *mut _cef_v8_value_t,
13396        ) -> *mut _cef_v8_value_t,
13397    >,
13398    #[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"]
13399    pub execute_function_with_context: ::std::option::Option<
13400        unsafe extern "C" fn(
13401            self_: *mut _cef_v8_value_t,
13402            context: *mut _cef_v8_context_t,
13403            object: *mut _cef_v8_value_t,
13404            argumentsCount: usize,
13405            arguments: *const *mut _cef_v8_value_t,
13406        ) -> *mut _cef_v8_value_t,
13407    >,
13408    #[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"]
13409    pub resolve_promise: ::std::option::Option<
13410        unsafe extern "C" fn(
13411            self_: *mut _cef_v8_value_t,
13412            arg: *mut _cef_v8_value_t,
13413        ) -> ::std::os::raw::c_int,
13414    >,
13415    #[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"]
13416    pub reject_promise: ::std::option::Option<
13417        unsafe extern "C" fn(
13418            self_: *mut _cef_v8_value_t,
13419            errorMsg: *const cef_string_t,
13420        ) -> ::std::os::raw::c_int,
13421    >,
13422}
13423#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13424const _: () = {
13425    ["Size of _cef_v8_value_t"][::std::mem::size_of::<_cef_v8_value_t>() - 456usize];
13426    ["Alignment of _cef_v8_value_t"][::std::mem::align_of::<_cef_v8_value_t>() - 8usize];
13427    ["Offset of field: _cef_v8_value_t::base"]
13428        [::std::mem::offset_of!(_cef_v8_value_t, base) - 0usize];
13429    ["Offset of field: _cef_v8_value_t::is_valid"]
13430        [::std::mem::offset_of!(_cef_v8_value_t, is_valid) - 40usize];
13431    ["Offset of field: _cef_v8_value_t::is_undefined"]
13432        [::std::mem::offset_of!(_cef_v8_value_t, is_undefined) - 48usize];
13433    ["Offset of field: _cef_v8_value_t::is_null"]
13434        [::std::mem::offset_of!(_cef_v8_value_t, is_null) - 56usize];
13435    ["Offset of field: _cef_v8_value_t::is_bool"]
13436        [::std::mem::offset_of!(_cef_v8_value_t, is_bool) - 64usize];
13437    ["Offset of field: _cef_v8_value_t::is_int"]
13438        [::std::mem::offset_of!(_cef_v8_value_t, is_int) - 72usize];
13439    ["Offset of field: _cef_v8_value_t::is_uint"]
13440        [::std::mem::offset_of!(_cef_v8_value_t, is_uint) - 80usize];
13441    ["Offset of field: _cef_v8_value_t::is_double"]
13442        [::std::mem::offset_of!(_cef_v8_value_t, is_double) - 88usize];
13443    ["Offset of field: _cef_v8_value_t::is_date"]
13444        [::std::mem::offset_of!(_cef_v8_value_t, is_date) - 96usize];
13445    ["Offset of field: _cef_v8_value_t::is_string"]
13446        [::std::mem::offset_of!(_cef_v8_value_t, is_string) - 104usize];
13447    ["Offset of field: _cef_v8_value_t::is_object"]
13448        [::std::mem::offset_of!(_cef_v8_value_t, is_object) - 112usize];
13449    ["Offset of field: _cef_v8_value_t::is_array"]
13450        [::std::mem::offset_of!(_cef_v8_value_t, is_array) - 120usize];
13451    ["Offset of field: _cef_v8_value_t::is_array_buffer"]
13452        [::std::mem::offset_of!(_cef_v8_value_t, is_array_buffer) - 128usize];
13453    ["Offset of field: _cef_v8_value_t::is_function"]
13454        [::std::mem::offset_of!(_cef_v8_value_t, is_function) - 136usize];
13455    ["Offset of field: _cef_v8_value_t::is_promise"]
13456        [::std::mem::offset_of!(_cef_v8_value_t, is_promise) - 144usize];
13457    ["Offset of field: _cef_v8_value_t::is_same"]
13458        [::std::mem::offset_of!(_cef_v8_value_t, is_same) - 152usize];
13459    ["Offset of field: _cef_v8_value_t::get_bool_value"]
13460        [::std::mem::offset_of!(_cef_v8_value_t, get_bool_value) - 160usize];
13461    ["Offset of field: _cef_v8_value_t::get_int_value"]
13462        [::std::mem::offset_of!(_cef_v8_value_t, get_int_value) - 168usize];
13463    ["Offset of field: _cef_v8_value_t::get_uint_value"]
13464        [::std::mem::offset_of!(_cef_v8_value_t, get_uint_value) - 176usize];
13465    ["Offset of field: _cef_v8_value_t::get_double_value"]
13466        [::std::mem::offset_of!(_cef_v8_value_t, get_double_value) - 184usize];
13467    ["Offset of field: _cef_v8_value_t::get_date_value"]
13468        [::std::mem::offset_of!(_cef_v8_value_t, get_date_value) - 192usize];
13469    ["Offset of field: _cef_v8_value_t::get_string_value"]
13470        [::std::mem::offset_of!(_cef_v8_value_t, get_string_value) - 200usize];
13471    ["Offset of field: _cef_v8_value_t::is_user_created"]
13472        [::std::mem::offset_of!(_cef_v8_value_t, is_user_created) - 208usize];
13473    ["Offset of field: _cef_v8_value_t::has_exception"]
13474        [::std::mem::offset_of!(_cef_v8_value_t, has_exception) - 216usize];
13475    ["Offset of field: _cef_v8_value_t::get_exception"]
13476        [::std::mem::offset_of!(_cef_v8_value_t, get_exception) - 224usize];
13477    ["Offset of field: _cef_v8_value_t::clear_exception"]
13478        [::std::mem::offset_of!(_cef_v8_value_t, clear_exception) - 232usize];
13479    ["Offset of field: _cef_v8_value_t::will_rethrow_exceptions"]
13480        [::std::mem::offset_of!(_cef_v8_value_t, will_rethrow_exceptions) - 240usize];
13481    ["Offset of field: _cef_v8_value_t::set_rethrow_exceptions"]
13482        [::std::mem::offset_of!(_cef_v8_value_t, set_rethrow_exceptions) - 248usize];
13483    ["Offset of field: _cef_v8_value_t::has_value_bykey"]
13484        [::std::mem::offset_of!(_cef_v8_value_t, has_value_bykey) - 256usize];
13485    ["Offset of field: _cef_v8_value_t::has_value_byindex"]
13486        [::std::mem::offset_of!(_cef_v8_value_t, has_value_byindex) - 264usize];
13487    ["Offset of field: _cef_v8_value_t::delete_value_bykey"]
13488        [::std::mem::offset_of!(_cef_v8_value_t, delete_value_bykey) - 272usize];
13489    ["Offset of field: _cef_v8_value_t::delete_value_byindex"]
13490        [::std::mem::offset_of!(_cef_v8_value_t, delete_value_byindex) - 280usize];
13491    ["Offset of field: _cef_v8_value_t::get_value_bykey"]
13492        [::std::mem::offset_of!(_cef_v8_value_t, get_value_bykey) - 288usize];
13493    ["Offset of field: _cef_v8_value_t::get_value_byindex"]
13494        [::std::mem::offset_of!(_cef_v8_value_t, get_value_byindex) - 296usize];
13495    ["Offset of field: _cef_v8_value_t::set_value_bykey"]
13496        [::std::mem::offset_of!(_cef_v8_value_t, set_value_bykey) - 304usize];
13497    ["Offset of field: _cef_v8_value_t::set_value_byindex"]
13498        [::std::mem::offset_of!(_cef_v8_value_t, set_value_byindex) - 312usize];
13499    ["Offset of field: _cef_v8_value_t::set_value_byaccessor"]
13500        [::std::mem::offset_of!(_cef_v8_value_t, set_value_byaccessor) - 320usize];
13501    ["Offset of field: _cef_v8_value_t::get_keys"]
13502        [::std::mem::offset_of!(_cef_v8_value_t, get_keys) - 328usize];
13503    ["Offset of field: _cef_v8_value_t::set_user_data"]
13504        [::std::mem::offset_of!(_cef_v8_value_t, set_user_data) - 336usize];
13505    ["Offset of field: _cef_v8_value_t::get_user_data"]
13506        [::std::mem::offset_of!(_cef_v8_value_t, get_user_data) - 344usize];
13507    ["Offset of field: _cef_v8_value_t::get_externally_allocated_memory"]
13508        [::std::mem::offset_of!(_cef_v8_value_t, get_externally_allocated_memory) - 352usize];
13509    ["Offset of field: _cef_v8_value_t::adjust_externally_allocated_memory"]
13510        [::std::mem::offset_of!(_cef_v8_value_t, adjust_externally_allocated_memory) - 360usize];
13511    ["Offset of field: _cef_v8_value_t::get_array_length"]
13512        [::std::mem::offset_of!(_cef_v8_value_t, get_array_length) - 368usize];
13513    ["Offset of field: _cef_v8_value_t::get_array_buffer_release_callback"]
13514        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_release_callback) - 376usize];
13515    ["Offset of field: _cef_v8_value_t::neuter_array_buffer"]
13516        [::std::mem::offset_of!(_cef_v8_value_t, neuter_array_buffer) - 384usize];
13517    ["Offset of field: _cef_v8_value_t::get_array_buffer_byte_length"]
13518        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_byte_length) - 392usize];
13519    ["Offset of field: _cef_v8_value_t::get_array_buffer_data"]
13520        [::std::mem::offset_of!(_cef_v8_value_t, get_array_buffer_data) - 400usize];
13521    ["Offset of field: _cef_v8_value_t::get_function_name"]
13522        [::std::mem::offset_of!(_cef_v8_value_t, get_function_name) - 408usize];
13523    ["Offset of field: _cef_v8_value_t::get_function_handler"]
13524        [::std::mem::offset_of!(_cef_v8_value_t, get_function_handler) - 416usize];
13525    ["Offset of field: _cef_v8_value_t::execute_function"]
13526        [::std::mem::offset_of!(_cef_v8_value_t, execute_function) - 424usize];
13527    ["Offset of field: _cef_v8_value_t::execute_function_with_context"]
13528        [::std::mem::offset_of!(_cef_v8_value_t, execute_function_with_context) - 432usize];
13529    ["Offset of field: _cef_v8_value_t::resolve_promise"]
13530        [::std::mem::offset_of!(_cef_v8_value_t, resolve_promise) - 440usize];
13531    ["Offset of field: _cef_v8_value_t::reject_promise"]
13532        [::std::mem::offset_of!(_cef_v8_value_t, reject_promise) - 448usize];
13533};
13534#[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"]
13535pub type cef_v8_value_t = _cef_v8_value_t;
13536unsafe extern "C" {
13537    #[doc = "\n Create a new cef_v8_value_t object of type undefined.\n"]
13538    pub fn cef_v8_value_create_undefined() -> *mut cef_v8_value_t;
13539}
13540unsafe extern "C" {
13541    #[doc = "\n Create a new cef_v8_value_t object of type null.\n"]
13542    pub fn cef_v8_value_create_null() -> *mut cef_v8_value_t;
13543}
13544unsafe extern "C" {
13545    #[doc = "\n Create a new cef_v8_value_t object of type bool.\n"]
13546    pub fn cef_v8_value_create_bool(value: ::std::os::raw::c_int) -> *mut cef_v8_value_t;
13547}
13548unsafe extern "C" {
13549    #[doc = "\n Create a new cef_v8_value_t object of type int.\n"]
13550    pub fn cef_v8_value_create_int(value: i32) -> *mut cef_v8_value_t;
13551}
13552unsafe extern "C" {
13553    #[doc = "\n Create a new cef_v8_value_t object of type unsigned int.\n"]
13554    pub fn cef_v8_value_create_uint(value: u32) -> *mut cef_v8_value_t;
13555}
13556unsafe extern "C" {
13557    #[doc = "\n Create a new cef_v8_value_t object of type double.\n"]
13558    pub fn cef_v8_value_create_double(value: f64) -> *mut cef_v8_value_t;
13559}
13560unsafe extern "C" {
13561    #[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"]
13562    pub fn cef_v8_value_create_date(date: cef_basetime_t) -> *mut cef_v8_value_t;
13563}
13564unsafe extern "C" {
13565    #[doc = "\n Create a new cef_v8_value_t object of type string.\n"]
13566    pub fn cef_v8_value_create_string(value: *const cef_string_t) -> *mut cef_v8_value_t;
13567}
13568unsafe extern "C" {
13569    #[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"]
13570    pub fn cef_v8_value_create_object(
13571        accessor: *mut cef_v8_accessor_t,
13572        interceptor: *mut cef_v8_interceptor_t,
13573    ) -> *mut cef_v8_value_t;
13574}
13575unsafe extern "C" {
13576    #[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"]
13577    pub fn cef_v8_value_create_array(length: ::std::os::raw::c_int) -> *mut cef_v8_value_t;
13578}
13579unsafe extern "C" {
13580    #[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"]
13581    pub fn cef_v8_value_create_array_buffer(
13582        buffer: *mut ::std::os::raw::c_void,
13583        length: usize,
13584        release_callback: *mut cef_v8_array_buffer_release_callback_t,
13585    ) -> *mut cef_v8_value_t;
13586}
13587unsafe extern "C" {
13588    #[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"]
13589    pub fn cef_v8_value_create_array_buffer_with_copy(
13590        buffer: *mut ::std::os::raw::c_void,
13591        length: usize,
13592    ) -> *mut cef_v8_value_t;
13593}
13594unsafe extern "C" {
13595    #[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"]
13596    pub fn cef_v8_value_create_function(
13597        name: *const cef_string_t,
13598        handler: *mut cef_v8_handler_t,
13599    ) -> *mut cef_v8_value_t;
13600}
13601unsafe extern "C" {
13602    #[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"]
13603    pub fn cef_v8_value_create_promise() -> *mut cef_v8_value_t;
13604}
13605#[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"]
13606#[repr(C)]
13607#[derive(Debug, Copy, Clone)]
13608pub struct _cef_v8_stack_trace_t {
13609    #[doc = "\n Base structure.\n"]
13610    pub base: cef_base_ref_counted_t,
13611    #[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"]
13612    pub is_valid: ::std::option::Option<
13613        unsafe extern "C" fn(self_: *mut _cef_v8_stack_trace_t) -> ::std::os::raw::c_int,
13614    >,
13615    #[doc = "\n Returns the number of stack frames.\n"]
13616    pub get_frame_count: ::std::option::Option<
13617        unsafe extern "C" fn(self_: *mut _cef_v8_stack_trace_t) -> ::std::os::raw::c_int,
13618    >,
13619    #[doc = "\n Returns the stack frame at the specified 0-based index.\n"]
13620    pub get_frame: ::std::option::Option<
13621        unsafe extern "C" fn(
13622            self_: *mut _cef_v8_stack_trace_t,
13623            index: ::std::os::raw::c_int,
13624        ) -> *mut _cef_v8_stack_frame_t,
13625    >,
13626}
13627#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13628const _: () = {
13629    ["Size of _cef_v8_stack_trace_t"][::std::mem::size_of::<_cef_v8_stack_trace_t>() - 64usize];
13630    ["Alignment of _cef_v8_stack_trace_t"]
13631        [::std::mem::align_of::<_cef_v8_stack_trace_t>() - 8usize];
13632    ["Offset of field: _cef_v8_stack_trace_t::base"]
13633        [::std::mem::offset_of!(_cef_v8_stack_trace_t, base) - 0usize];
13634    ["Offset of field: _cef_v8_stack_trace_t::is_valid"]
13635        [::std::mem::offset_of!(_cef_v8_stack_trace_t, is_valid) - 40usize];
13636    ["Offset of field: _cef_v8_stack_trace_t::get_frame_count"]
13637        [::std::mem::offset_of!(_cef_v8_stack_trace_t, get_frame_count) - 48usize];
13638    ["Offset of field: _cef_v8_stack_trace_t::get_frame"]
13639        [::std::mem::offset_of!(_cef_v8_stack_trace_t, get_frame) - 56usize];
13640};
13641#[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"]
13642pub type cef_v8_stack_trace_t = _cef_v8_stack_trace_t;
13643unsafe extern "C" {
13644    #[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"]
13645    pub fn cef_v8_stack_trace_get_current(
13646        frame_limit: ::std::os::raw::c_int,
13647    ) -> *mut cef_v8_stack_trace_t;
13648}
13649#[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"]
13650#[repr(C)]
13651#[derive(Debug, Copy, Clone)]
13652pub struct _cef_v8_stack_frame_t {
13653    #[doc = "\n Base structure.\n"]
13654    pub base: cef_base_ref_counted_t,
13655    #[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"]
13656    pub is_valid: ::std::option::Option<
13657        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13658    >,
13659    #[doc = "\n Returns the name of the resource script that contains the function.\n"]
13660    pub get_script_name: ::std::option::Option<
13661        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13662    >,
13663    #[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"]
13664    pub get_script_name_or_source_url: ::std::option::Option<
13665        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13666    >,
13667    #[doc = "\n Returns the name of the function.\n"]
13668    pub get_function_name: ::std::option::Option<
13669        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> cef_string_userfree_t,
13670    >,
13671    #[doc = "\n Returns the 1-based line number for the function call or 0 if unknown.\n"]
13672    pub get_line_number: ::std::option::Option<
13673        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13674    >,
13675    #[doc = "\n Returns the 1-based column offset on the line for the function call or 0\n if unknown.\n"]
13676    pub get_column: ::std::option::Option<
13677        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13678    >,
13679    #[doc = "\n Returns true (1) if the function was compiled using eval().\n"]
13680    pub is_eval: ::std::option::Option<
13681        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13682    >,
13683    #[doc = "\n Returns true (1) if the function was called as a constructor via \"new\".\n"]
13684    pub is_constructor: ::std::option::Option<
13685        unsafe extern "C" fn(self_: *mut _cef_v8_stack_frame_t) -> ::std::os::raw::c_int,
13686    >,
13687}
13688#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13689const _: () = {
13690    ["Size of _cef_v8_stack_frame_t"][::std::mem::size_of::<_cef_v8_stack_frame_t>() - 104usize];
13691    ["Alignment of _cef_v8_stack_frame_t"]
13692        [::std::mem::align_of::<_cef_v8_stack_frame_t>() - 8usize];
13693    ["Offset of field: _cef_v8_stack_frame_t::base"]
13694        [::std::mem::offset_of!(_cef_v8_stack_frame_t, base) - 0usize];
13695    ["Offset of field: _cef_v8_stack_frame_t::is_valid"]
13696        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_valid) - 40usize];
13697    ["Offset of field: _cef_v8_stack_frame_t::get_script_name"]
13698        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_script_name) - 48usize];
13699    ["Offset of field: _cef_v8_stack_frame_t::get_script_name_or_source_url"]
13700        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_script_name_or_source_url) - 56usize];
13701    ["Offset of field: _cef_v8_stack_frame_t::get_function_name"]
13702        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_function_name) - 64usize];
13703    ["Offset of field: _cef_v8_stack_frame_t::get_line_number"]
13704        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_line_number) - 72usize];
13705    ["Offset of field: _cef_v8_stack_frame_t::get_column"]
13706        [::std::mem::offset_of!(_cef_v8_stack_frame_t, get_column) - 80usize];
13707    ["Offset of field: _cef_v8_stack_frame_t::is_eval"]
13708        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_eval) - 88usize];
13709    ["Offset of field: _cef_v8_stack_frame_t::is_constructor"]
13710        [::std::mem::offset_of!(_cef_v8_stack_frame_t, is_constructor) - 96usize];
13711};
13712#[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"]
13713pub type cef_v8_stack_frame_t = _cef_v8_stack_frame_t;
13714unsafe extern "C" {
13715    #[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"]
13716    pub fn cef_register_extension(
13717        extension_name: *const cef_string_t,
13718        javascript_code: *const cef_string_t,
13719        handler: *mut cef_v8_handler_t,
13720    ) -> ::std::os::raw::c_int;
13721}
13722#[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"]
13723#[repr(C)]
13724#[derive(Debug, Copy, Clone)]
13725pub struct _cef_render_process_handler_t {
13726    #[doc = "\n Base structure.\n"]
13727    pub base: cef_base_ref_counted_t,
13728    #[doc = "\n Called after WebKit has been initialized.\n"]
13729    pub on_web_kit_initialized:
13730        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_render_process_handler_t)>,
13731    #[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"]
13732    pub on_browser_created: ::std::option::Option<
13733        unsafe extern "C" fn(
13734            self_: *mut _cef_render_process_handler_t,
13735            browser: *mut _cef_browser_t,
13736            extra_info: *mut _cef_dictionary_value_t,
13737        ),
13738    >,
13739    #[doc = "\n Called before a browser is destroyed.\n"]
13740    pub on_browser_destroyed: ::std::option::Option<
13741        unsafe extern "C" fn(
13742            self_: *mut _cef_render_process_handler_t,
13743            browser: *mut _cef_browser_t,
13744        ),
13745    >,
13746    #[doc = "\n Return the handler for browser load status events.\n"]
13747    pub get_load_handler: ::std::option::Option<
13748        unsafe extern "C" fn(self_: *mut _cef_render_process_handler_t) -> *mut _cef_load_handler_t,
13749    >,
13750    #[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"]
13751    pub on_context_created: ::std::option::Option<
13752        unsafe extern "C" fn(
13753            self_: *mut _cef_render_process_handler_t,
13754            browser: *mut _cef_browser_t,
13755            frame: *mut _cef_frame_t,
13756            context: *mut _cef_v8_context_t,
13757        ),
13758    >,
13759    #[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"]
13760    pub on_context_released: ::std::option::Option<
13761        unsafe extern "C" fn(
13762            self_: *mut _cef_render_process_handler_t,
13763            browser: *mut _cef_browser_t,
13764            frame: *mut _cef_frame_t,
13765            context: *mut _cef_v8_context_t,
13766        ),
13767    >,
13768    #[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"]
13769    pub on_uncaught_exception: ::std::option::Option<
13770        unsafe extern "C" fn(
13771            self_: *mut _cef_render_process_handler_t,
13772            browser: *mut _cef_browser_t,
13773            frame: *mut _cef_frame_t,
13774            context: *mut _cef_v8_context_t,
13775            exception: *mut _cef_v8_exception_t,
13776            stackTrace: *mut _cef_v8_stack_trace_t,
13777        ),
13778    >,
13779    #[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"]
13780    pub on_focused_node_changed: ::std::option::Option<
13781        unsafe extern "C" fn(
13782            self_: *mut _cef_render_process_handler_t,
13783            browser: *mut _cef_browser_t,
13784            frame: *mut _cef_frame_t,
13785            node: *mut _cef_domnode_t,
13786        ),
13787    >,
13788    #[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"]
13789    pub on_process_message_received: ::std::option::Option<
13790        unsafe extern "C" fn(
13791            self_: *mut _cef_render_process_handler_t,
13792            browser: *mut _cef_browser_t,
13793            frame: *mut _cef_frame_t,
13794            source_process: cef_process_id_t,
13795            message: *mut _cef_process_message_t,
13796        ) -> ::std::os::raw::c_int,
13797    >,
13798}
13799#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13800const _: () = {
13801    ["Size of _cef_render_process_handler_t"]
13802        [::std::mem::size_of::<_cef_render_process_handler_t>() - 112usize];
13803    ["Alignment of _cef_render_process_handler_t"]
13804        [::std::mem::align_of::<_cef_render_process_handler_t>() - 8usize];
13805    ["Offset of field: _cef_render_process_handler_t::base"]
13806        [::std::mem::offset_of!(_cef_render_process_handler_t, base) - 0usize];
13807    ["Offset of field: _cef_render_process_handler_t::on_web_kit_initialized"]
13808        [::std::mem::offset_of!(_cef_render_process_handler_t, on_web_kit_initialized) - 40usize];
13809    ["Offset of field: _cef_render_process_handler_t::on_browser_created"]
13810        [::std::mem::offset_of!(_cef_render_process_handler_t, on_browser_created) - 48usize];
13811    ["Offset of field: _cef_render_process_handler_t::on_browser_destroyed"]
13812        [::std::mem::offset_of!(_cef_render_process_handler_t, on_browser_destroyed) - 56usize];
13813    ["Offset of field: _cef_render_process_handler_t::get_load_handler"]
13814        [::std::mem::offset_of!(_cef_render_process_handler_t, get_load_handler) - 64usize];
13815    ["Offset of field: _cef_render_process_handler_t::on_context_created"]
13816        [::std::mem::offset_of!(_cef_render_process_handler_t, on_context_created) - 72usize];
13817    ["Offset of field: _cef_render_process_handler_t::on_context_released"]
13818        [::std::mem::offset_of!(_cef_render_process_handler_t, on_context_released) - 80usize];
13819    ["Offset of field: _cef_render_process_handler_t::on_uncaught_exception"]
13820        [::std::mem::offset_of!(_cef_render_process_handler_t, on_uncaught_exception) - 88usize];
13821    ["Offset of field: _cef_render_process_handler_t::on_focused_node_changed"]
13822        [::std::mem::offset_of!(_cef_render_process_handler_t, on_focused_node_changed) - 96usize];
13823    ["Offset of field: _cef_render_process_handler_t::on_process_message_received"][::std::mem::offset_of!(
13824        _cef_render_process_handler_t,
13825        on_process_message_received
13826    ) - 104usize];
13827};
13828#[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"]
13829pub type cef_render_process_handler_t = _cef_render_process_handler_t;
13830#[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"]
13831#[repr(C)]
13832#[derive(Debug, Copy, Clone)]
13833pub struct _cef_resource_bundle_handler_t {
13834    #[doc = "\n Base structure.\n"]
13835    pub base: cef_base_ref_counted_t,
13836    #[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"]
13837    pub get_localized_string: ::std::option::Option<
13838        unsafe extern "C" fn(
13839            self_: *mut _cef_resource_bundle_handler_t,
13840            string_id: ::std::os::raw::c_int,
13841            string: *mut cef_string_t,
13842        ) -> ::std::os::raw::c_int,
13843    >,
13844    #[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"]
13845    pub get_data_resource: ::std::option::Option<
13846        unsafe extern "C" fn(
13847            self_: *mut _cef_resource_bundle_handler_t,
13848            resource_id: ::std::os::raw::c_int,
13849            data: *mut *mut ::std::os::raw::c_void,
13850            data_size: *mut usize,
13851        ) -> ::std::os::raw::c_int,
13852    >,
13853    #[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"]
13854    pub get_data_resource_for_scale: ::std::option::Option<
13855        unsafe extern "C" fn(
13856            self_: *mut _cef_resource_bundle_handler_t,
13857            resource_id: ::std::os::raw::c_int,
13858            scale_factor: cef_scale_factor_t,
13859            data: *mut *mut ::std::os::raw::c_void,
13860            data_size: *mut usize,
13861        ) -> ::std::os::raw::c_int,
13862    >,
13863}
13864#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13865const _: () = {
13866    ["Size of _cef_resource_bundle_handler_t"]
13867        [::std::mem::size_of::<_cef_resource_bundle_handler_t>() - 64usize];
13868    ["Alignment of _cef_resource_bundle_handler_t"]
13869        [::std::mem::align_of::<_cef_resource_bundle_handler_t>() - 8usize];
13870    ["Offset of field: _cef_resource_bundle_handler_t::base"]
13871        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, base) - 0usize];
13872    ["Offset of field: _cef_resource_bundle_handler_t::get_localized_string"]
13873        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, get_localized_string) - 40usize];
13874    ["Offset of field: _cef_resource_bundle_handler_t::get_data_resource"]
13875        [::std::mem::offset_of!(_cef_resource_bundle_handler_t, get_data_resource) - 48usize];
13876    ["Offset of field: _cef_resource_bundle_handler_t::get_data_resource_for_scale"][::std::mem::offset_of!(
13877        _cef_resource_bundle_handler_t,
13878        get_data_resource_for_scale
13879    ) - 56usize];
13880};
13881#[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"]
13882pub type cef_resource_bundle_handler_t = _cef_resource_bundle_handler_t;
13883#[doc = "\n Structure that manages custom scheme registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
13884#[repr(C)]
13885#[derive(Debug, Copy, Clone)]
13886pub struct _cef_scheme_registrar_t {
13887    #[doc = "\n Base structure.\n"]
13888    pub base: cef_base_scoped_t,
13889    #[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"]
13890    pub add_custom_scheme: ::std::option::Option<
13891        unsafe extern "C" fn(
13892            self_: *mut _cef_scheme_registrar_t,
13893            scheme_name: *const cef_string_t,
13894            options: ::std::os::raw::c_int,
13895        ) -> ::std::os::raw::c_int,
13896    >,
13897}
13898#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13899const _: () = {
13900    ["Size of _cef_scheme_registrar_t"][::std::mem::size_of::<_cef_scheme_registrar_t>() - 24usize];
13901    ["Alignment of _cef_scheme_registrar_t"]
13902        [::std::mem::align_of::<_cef_scheme_registrar_t>() - 8usize];
13903    ["Offset of field: _cef_scheme_registrar_t::base"]
13904        [::std::mem::offset_of!(_cef_scheme_registrar_t, base) - 0usize];
13905    ["Offset of field: _cef_scheme_registrar_t::add_custom_scheme"]
13906        [::std::mem::offset_of!(_cef_scheme_registrar_t, add_custom_scheme) - 16usize];
13907};
13908#[doc = "\n Structure that manages custom scheme registrations.\n\n NOTE: This struct is allocated DLL-side.\n"]
13909pub type cef_scheme_registrar_t = _cef_scheme_registrar_t;
13910#[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"]
13911#[repr(C)]
13912#[derive(Debug, Copy, Clone)]
13913pub struct _cef_scheme_handler_factory_t {
13914    #[doc = "\n Base structure.\n"]
13915    pub base: cef_base_ref_counted_t,
13916    #[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"]
13917    pub create: ::std::option::Option<
13918        unsafe extern "C" fn(
13919            self_: *mut _cef_scheme_handler_factory_t,
13920            browser: *mut _cef_browser_t,
13921            frame: *mut _cef_frame_t,
13922            scheme_name: *const cef_string_t,
13923            request: *mut _cef_request_t,
13924        ) -> *mut _cef_resource_handler_t,
13925    >,
13926}
13927#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13928const _: () = {
13929    ["Size of _cef_scheme_handler_factory_t"]
13930        [::std::mem::size_of::<_cef_scheme_handler_factory_t>() - 48usize];
13931    ["Alignment of _cef_scheme_handler_factory_t"]
13932        [::std::mem::align_of::<_cef_scheme_handler_factory_t>() - 8usize];
13933    ["Offset of field: _cef_scheme_handler_factory_t::base"]
13934        [::std::mem::offset_of!(_cef_scheme_handler_factory_t, base) - 0usize];
13935    ["Offset of field: _cef_scheme_handler_factory_t::create"]
13936        [::std::mem::offset_of!(_cef_scheme_handler_factory_t, create) - 40usize];
13937};
13938#[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"]
13939pub type cef_scheme_handler_factory_t = _cef_scheme_handler_factory_t;
13940unsafe extern "C" {
13941    #[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()-\n >register_scheme_handler_factory().\n"]
13942    pub fn cef_register_scheme_handler_factory(
13943        scheme_name: *const cef_string_t,
13944        domain_name: *const cef_string_t,
13945        factory: *mut cef_scheme_handler_factory_t,
13946    ) -> ::std::os::raw::c_int;
13947}
13948unsafe extern "C" {
13949    #[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()-\n >clear_scheme_handler_factories().\n"]
13950    pub fn cef_clear_scheme_handler_factories() -> ::std::os::raw::c_int;
13951}
13952#[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"]
13953#[repr(C)]
13954#[derive(Debug, Copy, Clone)]
13955pub struct _cef_app_t {
13956    #[doc = "\n Base structure.\n"]
13957    pub base: cef_base_ref_counted_t,
13958    #[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"]
13959    pub on_before_command_line_processing: ::std::option::Option<
13960        unsafe extern "C" fn(
13961            self_: *mut _cef_app_t,
13962            process_type: *const cef_string_t,
13963            command_line: *mut _cef_command_line_t,
13964        ),
13965    >,
13966    #[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"]
13967    pub on_register_custom_schemes: ::std::option::Option<
13968        unsafe extern "C" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t),
13969    >,
13970    #[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"]
13971    pub get_resource_bundle_handler: ::std::option::Option<
13972        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t,
13973    >,
13974    #[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"]
13975    pub get_browser_process_handler: ::std::option::Option<
13976        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t,
13977    >,
13978    #[doc = "\n Return the handler for functionality specific to the render process. This\n function is called on the render process main thread.\n"]
13979    pub get_render_process_handler: ::std::option::Option<
13980        unsafe extern "C" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t,
13981    >,
13982}
13983#[allow(clippy::unnecessary_operation, clippy::identity_op)]
13984const _: () = {
13985    ["Size of _cef_app_t"][::std::mem::size_of::<_cef_app_t>() - 80usize];
13986    ["Alignment of _cef_app_t"][::std::mem::align_of::<_cef_app_t>() - 8usize];
13987    ["Offset of field: _cef_app_t::base"][::std::mem::offset_of!(_cef_app_t, base) - 0usize];
13988    ["Offset of field: _cef_app_t::on_before_command_line_processing"]
13989        [::std::mem::offset_of!(_cef_app_t, on_before_command_line_processing) - 40usize];
13990    ["Offset of field: _cef_app_t::on_register_custom_schemes"]
13991        [::std::mem::offset_of!(_cef_app_t, on_register_custom_schemes) - 48usize];
13992    ["Offset of field: _cef_app_t::get_resource_bundle_handler"]
13993        [::std::mem::offset_of!(_cef_app_t, get_resource_bundle_handler) - 56usize];
13994    ["Offset of field: _cef_app_t::get_browser_process_handler"]
13995        [::std::mem::offset_of!(_cef_app_t, get_browser_process_handler) - 64usize];
13996    ["Offset of field: _cef_app_t::get_render_process_handler"]
13997        [::std::mem::offset_of!(_cef_app_t, get_render_process_handler) - 72usize];
13998};
13999#[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"]
14000pub type cef_app_t = _cef_app_t;
14001unsafe extern "C" {
14002    #[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"]
14003    pub fn cef_execute_process(
14004        args: *const cef_main_args_t,
14005        application: *mut cef_app_t,
14006        windows_sandbox_info: *mut ::std::os::raw::c_void,
14007    ) -> ::std::os::raw::c_int;
14008}
14009unsafe extern "C" {
14010    #[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, CefGetExitCode. The |windows_sandbox_info| parameter is only\n used on Windows and may be NULL (see cef_sandbox_win.h for details).\n"]
14011    pub fn cef_initialize(
14012        args: *const cef_main_args_t,
14013        settings: *const _cef_settings_t,
14014        application: *mut cef_app_t,
14015        windows_sandbox_info: *mut ::std::os::raw::c_void,
14016    ) -> ::std::os::raw::c_int;
14017}
14018unsafe extern "C" {
14019    #[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"]
14020    pub fn cef_get_exit_code() -> ::std::os::raw::c_int;
14021}
14022unsafe extern "C" {
14023    #[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"]
14024    pub fn cef_shutdown();
14025}
14026unsafe extern "C" {
14027    #[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"]
14028    pub fn cef_do_message_loop_work();
14029}
14030unsafe extern "C" {
14031    #[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"]
14032    pub fn cef_run_message_loop();
14033}
14034unsafe extern "C" {
14035    #[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"]
14036    pub fn cef_quit_message_loop();
14037}
14038unsafe extern "C" {
14039    #[doc = "\n Set to true (1) before calling OS APIs on the CEF UI thread that will enter\n a native message loop (see usage restrictions below). Set to false (0) after\n exiting the native message loop. On Windows, use the CefSetOSModalLoop\n function instead in cases like native top menus where resize of the browser\n content is not required, or in cases like printer APIs where reentrancy\n safety cannot be guaranteed.\n\n Nested processing of Chromium tasks is disabled by default because common\n controls and/or printer functions may use nested native message loops that\n lead to unplanned reentrancy. This function re-enables nested processing in\n the scope of an upcoming native message loop. It must only be used in cases\n where the stack is reentrancy safe and processing nestable tasks is\n explicitly safe. Do not use in cases (like the printer example) where an OS\n API may experience unplanned reentrancy as a result of a new task executing\n immediately.\n\n For instance,\n - The UI thread is running a message loop.\n - It receives a task #1 and executes it.\n - The task #1 implicitly starts a nested message loop. For example, via\n   Windows APIs such as MessageBox or GetSaveFileName, or default handling of\n   a user-initiated drag/resize operation (e.g. DefWindowProc handling of\n   WM_SYSCOMMAND for SC_MOVE/SC_SIZE).\n - The UI thread receives a task #2 before or while in this second message\n   loop.\n - With NestableTasksAllowed set to true (1), the task #2 will run right\n   away. Otherwise, it will be executed right after task #1 completes at\n   \"thread message loop level\".\n"]
14040    pub fn cef_set_nestable_tasks_allowed(allowed: ::std::os::raw::c_int);
14041}
14042unsafe extern "C" {
14043    #[doc = "\n Crash reporting is configured using an INI-style config file named\n \"crash_reporter.cfg\". On Windows and Linux this file must be placed next to\n the main application executable. On macOS this file must be placed in the\n top-level app bundle Resources directory (e.g.\n \"<appname>.app/Contents/Resources\"). File contents are as follows:\n\n <pre>\n  # Comments start with a hash character and must be on their own line.\n\n  [Config]\n  ProductName=<Value of the \"prod\" crash key; defaults to \"cef\">\n  ProductVersion=<Value of the \"ver\" crash key; defaults to the CEF version>\n  AppName=<Windows only; App-specific folder name component for storing crash\n           information; default to \"CEF\">\n  ExternalHandler=<Windows only; Name of the external handler exe to use\n                   instead of re-launching the main exe; default to empty>\n  BrowserCrashForwardingEnabled=<macOS only; True if browser process crashes\n                                 should be forwarded to the system crash\n                                 reporter; default to false>\n  ServerURL=<crash server URL; default to empty>\n  RateLimitEnabled=<True if uploads should be rate limited; default to true>\n  MaxUploadsPerDay=<Max uploads per 24 hours, used if rate limit is enabled;\n                    default to 5>\n  MaxDatabaseSizeInMb=<Total crash report disk usage greater than this value\n                       will cause older reports to be deleted; default to 20>\n  MaxDatabaseAgeInDays=<Crash reports older than this value will be deleted;\n                        default to 5>\n\n  [CrashKeys]\n  my_key1=<small|medium|large>\n  my_key2=<small|medium|large>\n </pre>\n\n <b>Config section:</b>\n\n If \"ProductName\" and/or \"ProductVersion\" are set then the specified values\n will be included in the crash dump metadata. On macOS if these values are\n set to NULL then they will be retrieved from the Info.plist file using the\n \"CFBundleName\" and \"CFBundleShortVersionString\" keys respectively.\n\n If \"AppName\" is set on Windows then crash report information (metrics,\n database and dumps) will be stored locally on disk under the\n \"C:\\Users\\[CurrentUser]\\AppData\\Local\\[AppName]\\User Data\" folder. On other\n platforms the cef_settings_t.root_cache_path value will be used.\n\n If \"ExternalHandler\" is set on Windows then the specified exe will be\n launched as the crashpad-handler instead of re-launching the main process\n exe. The value can be an absolute path or a path relative to the main exe\n directory. On Linux the cef_settings_t.browser_subprocess_path value will be\n used. On macOS the existing subprocess app bundle will be used.\n\n If \"BrowserCrashForwardingEnabled\" is set to true (1) on macOS then browser\n process crashes will be forwarded to the system crash reporter. This results\n in the crash UI dialog being displayed to the user and crash reports being\n logged under \"~/Library/Logs/DiagnosticReports\". Forwarding of crash reports\n from non-browser processes and Debug builds is always disabled.\n\n If \"ServerURL\" is set then crashes will be uploaded as a multi-part POST\n request to the specified URL. Otherwise, reports will only be stored locally\n on disk.\n\n If \"RateLimitEnabled\" is set to true (1) then crash report uploads will be\n rate limited as follows:\n  1. If \"MaxUploadsPerDay\" is set to a positive value then at most the\n     specified number of crashes will be uploaded in each 24 hour period.\n  2. If crash upload fails due to a network or server error then an\n     incremental backoff delay up to a maximum of 24 hours will be applied\n     for retries.\n  3. If a backoff delay is applied and \"MaxUploadsPerDay\" is > 1 then the\n     \"MaxUploadsPerDay\" value will be reduced to 1 until the client is\n     restarted. This helps to avoid an upload flood when the network or\n     server error is resolved.\n Rate limiting is not supported on Linux.\n\n If \"MaxDatabaseSizeInMb\" is set to a positive value then crash report\n storage on disk will be limited to that size in megabytes. For example, on\n Windows each dump is about 600KB so a \"MaxDatabaseSizeInMb\" value of 20\n equates to about 34 crash reports stored on disk. Not supported on Linux.\n\n If \"MaxDatabaseAgeInDays\" is set to a positive value then crash reports\n older than the specified age in days will be deleted. Not supported on\n Linux.\n\n <b>CrashKeys section:</b>\n\n A maximum of 26 crash keys of each size can be specified for use by the\n application. Crash key values will be truncated based on the specified size\n (small = 64 bytes, medium = 256 bytes, large = 1024 bytes). The value of\n crash keys can be set from any thread or process using the\n CefSetCrashKeyValue function. These key/value pairs will be sent to the\n crash server along with the crash dump file.\n"]
14044    pub fn cef_crash_reporting_enabled() -> ::std::os::raw::c_int;
14045}
14046unsafe extern "C" {
14047    #[doc = "\n Sets or clears a specific key-value pair from the crash metadata.\n"]
14048    pub fn cef_set_crash_key_value(key: *const cef_string_t, value: *const cef_string_t);
14049}
14050unsafe extern "C" {
14051    #[doc = "\n Creates a directory and all parent directories if they don't already exist.\n Returns true (1) on successful creation or if the directory already exists.\n The directory is only readable by the current user. Calling this function on\n the browser process UI or IO threads is not allowed.\n"]
14052    pub fn cef_create_directory(full_path: *const cef_string_t) -> ::std::os::raw::c_int;
14053}
14054unsafe extern "C" {
14055    #[doc = "\n Get the temporary directory provided by the system.\n\n WARNING: In general, you should use the temp directory variants below\n instead of this function. Those variants will ensure that the proper\n permissions are set so that other users on the system can't edit them while\n they're open (which could lead to security issues).\n"]
14056    pub fn cef_get_temp_directory(temp_dir: *mut cef_string_t) -> ::std::os::raw::c_int;
14057}
14058unsafe extern "C" {
14059    #[doc = "\n Creates a new directory. On Windows if |prefix| is provided the new\n directory name is in the format of \"prefixyyyy\". Returns true (1) on success\n and sets |new_temp_path| to the full path of the directory that was created.\n The directory is only readable by the current user. Calling this function on\n the browser process UI or IO threads is not allowed.\n"]
14060    pub fn cef_create_new_temp_directory(
14061        prefix: *const cef_string_t,
14062        new_temp_path: *mut cef_string_t,
14063    ) -> ::std::os::raw::c_int;
14064}
14065unsafe extern "C" {
14066    #[doc = "\n Creates a directory within another directory. Extra characters will be\n appended to |prefix| to ensure that the new directory does not have the same\n name as an existing directory. Returns true (1) on success and sets\n |new_dir| to the full path of the directory that was created. The directory\n is only readable by the current user. Calling this function on the browser\n process UI or IO threads is not allowed.\n"]
14067    pub fn cef_create_temp_directory_in_directory(
14068        base_dir: *const cef_string_t,
14069        prefix: *const cef_string_t,
14070        new_dir: *mut cef_string_t,
14071    ) -> ::std::os::raw::c_int;
14072}
14073unsafe extern "C" {
14074    #[doc = "\n Returns true (1) if the given path exists and is a directory. Calling this\n function on the browser process UI or IO threads is not allowed.\n"]
14075    pub fn cef_directory_exists(path: *const cef_string_t) -> ::std::os::raw::c_int;
14076}
14077unsafe extern "C" {
14078    #[doc = "\n Deletes the given path whether it's a file or a directory. If |path| is a\n directory all contents will be deleted.  If |recursive| is true (1) any sub-\n directories and their contents will also be deleted (equivalent to executing\n \"rm -rf\", so use with caution). On POSIX environments if |path| is a\n symbolic link then only the symlink will be deleted. Returns true (1) on\n successful deletion or if |path| does not exist. Calling this function on\n the browser process UI or IO threads is not allowed.\n"]
14079    pub fn cef_delete_file(
14080        path: *const cef_string_t,
14081        recursive: ::std::os::raw::c_int,
14082    ) -> ::std::os::raw::c_int;
14083}
14084unsafe extern "C" {
14085    #[doc = "\n Writes the contents of |src_dir| into a zip archive at |dest_file|. If\n |include_hidden_files| is true (1) files starting with \".\" will be included.\n Returns true (1) on success.  Calling this function on the browser process\n UI or IO threads is not allowed.\n"]
14086    pub fn cef_zip_directory(
14087        src_dir: *const cef_string_t,
14088        dest_file: *const cef_string_t,
14089        include_hidden_files: ::std::os::raw::c_int,
14090    ) -> ::std::os::raw::c_int;
14091}
14092unsafe extern "C" {
14093    #[doc = "\n Loads the existing \"Certificate Revocation Lists\" file that is managed by\n Google Chrome. This file can generally be found in Chrome's User Data\n directory (e.g. \"C:\\Users\\[User]\\AppData\\Local\\Google\\Chrome\\User Data\\\" on\n Windows) and is updated periodically by Chrome's component updater service.\n Must be called in the browser process after the context has been\n initialized. See https://dev.chromium.org/Home/chromium-security/crlsets for\n background.\n"]
14094    pub fn cef_load_crlsets_file(path: *const cef_string_t);
14095}
14096unsafe extern "C" {
14097    #[doc = "\n Returns true (1) if the application text direction is right-to-left.\n"]
14098    pub fn cef_is_rtl() -> ::std::os::raw::c_int;
14099}
14100unsafe extern "C" {
14101    #[doc = "\n Add an entry to the cross-origin access whitelist.\n\n The same-origin policy restricts how scripts hosted from different origins\n (scheme + domain + port) can communicate. By default, scripts can only\n access resources with the same origin. Scripts hosted on the HTTP and HTTPS\n schemes (but no other schemes) can use the \"Access-Control-Allow-Origin\"\n header to allow cross-origin requests. For example,\n https://source.example.com can make XMLHttpRequest requests on\n http://target.example.com if the http://target.example.com request returns\n an \"Access-Control-Allow-Origin: https://source.example.com\" response\n header.\n\n Scripts in separate frames or iframes and hosted from the same protocol and\n domain suffix can execute cross-origin JavaScript if both pages set the\n document.domain value to the same domain suffix. For example,\n scheme://foo.example.com and scheme://bar.example.com can communicate using\n JavaScript if both domains set document.domain=\"example.com\".\n\n This function is used to allow access to origins that would otherwise\n violate the same-origin policy. Scripts hosted underneath the fully\n qualified |source_origin| URL (like http://www.example.com) will be allowed\n access to all resources hosted on the specified |target_protocol| and\n |target_domain|. If |target_domain| is non-NULL and\n |allow_target_subdomains| is false (0) only exact domain matches will be\n allowed. If |target_domain| contains a top- level domain component (like\n \"example.com\") and |allow_target_subdomains| is true (1) sub-domain matches\n will be allowed. If |target_domain| is NULL and |allow_target_subdomains| if\n true (1) all domains and IP addresses will be allowed.\n\n This function cannot be used to bypass the restrictions on local or display\n isolated schemes. See the comments on CefRegisterCustomScheme for more\n information.\n\n This function may be called on any thread. Returns false (0) if\n |source_origin| is invalid or the whitelist cannot be accessed.\n"]
14102    pub fn cef_add_cross_origin_whitelist_entry(
14103        source_origin: *const cef_string_t,
14104        target_protocol: *const cef_string_t,
14105        target_domain: *const cef_string_t,
14106        allow_target_subdomains: ::std::os::raw::c_int,
14107    ) -> ::std::os::raw::c_int;
14108}
14109unsafe extern "C" {
14110    #[doc = "\n Remove an entry from the cross-origin access whitelist. Returns false (0) if\n |source_origin| is invalid or the whitelist cannot be accessed.\n"]
14111    pub fn cef_remove_cross_origin_whitelist_entry(
14112        source_origin: *const cef_string_t,
14113        target_protocol: *const cef_string_t,
14114        target_domain: *const cef_string_t,
14115        allow_target_subdomains: ::std::os::raw::c_int,
14116    ) -> ::std::os::raw::c_int;
14117}
14118unsafe extern "C" {
14119    #[doc = "\n Remove all entries from the cross-origin access whitelist. Returns false (0)\n if the whitelist cannot be accessed.\n"]
14120    pub fn cef_clear_cross_origin_whitelist() -> ::std::os::raw::c_int;
14121}
14122unsafe extern "C" {
14123    #[doc = "\n Combines specified |base_url| and |relative_url| into |resolved_url|.\n Returns false (0) if one of the URLs is NULL or invalid.\n"]
14124    pub fn cef_resolve_url(
14125        base_url: *const cef_string_t,
14126        relative_url: *const cef_string_t,
14127        resolved_url: *mut cef_string_t,
14128    ) -> ::std::os::raw::c_int;
14129}
14130unsafe extern "C" {
14131    #[doc = "\n Parse the specified |url| into its component parts. Returns false (0) if the\n URL is NULL or invalid.\n"]
14132    pub fn cef_parse_url(
14133        url: *const cef_string_t,
14134        parts: *mut _cef_urlparts_t,
14135    ) -> ::std::os::raw::c_int;
14136}
14137unsafe extern "C" {
14138    #[doc = "\n Creates a URL from the specified |parts|, which must contain a non-NULL spec\n or a non-NULL host and path (at a minimum), but not both. Returns false (0)\n if |parts| isn't initialized as described.\n"]
14139    pub fn cef_create_url(
14140        parts: *const _cef_urlparts_t,
14141        url: *mut cef_string_t,
14142    ) -> ::std::os::raw::c_int;
14143}
14144unsafe extern "C" {
14145    #[doc = "\n This is a convenience function for formatting a URL in a concise and human-\n friendly way to help users make security-related decisions (or in other\n circumstances when people need to distinguish sites, origins, or otherwise-\n simplified URLs from each other). Internationalized domain names (IDN) may\n be presented in Unicode if the conversion is considered safe. The returned\n value will (a) omit the path for standard schemes, excepting file and\n filesystem, and (b) omit the port if it is the default for the scheme. Do\n not use this for URLs which will be parsed or sent to other applications.\n"]
14146    pub fn cef_format_url_for_security_display(
14147        origin_url: *const cef_string_t,
14148    ) -> cef_string_userfree_t;
14149}
14150unsafe extern "C" {
14151    #[doc = "\n Returns the mime type for the specified file extension or an NULL string if\n unknown.\n"]
14152    pub fn cef_get_mime_type(extension: *const cef_string_t) -> cef_string_userfree_t;
14153}
14154unsafe extern "C" {
14155    #[doc = "\n Get the extensions associated with the given mime type. This should be\n passed in lower case. There could be multiple extensions for a given mime\n type, like \"html,htm\" for \"text/html\", or \"txt,text,html,...\" for \"text/*\".\n Any existing elements in the provided vector will not be erased.\n"]
14156    pub fn cef_get_extensions_for_mime_type(
14157        mime_type: *const cef_string_t,
14158        extensions: cef_string_list_t,
14159    );
14160}
14161unsafe extern "C" {
14162    #[doc = "\n Encodes |data| as a base64 string.\n"]
14163    pub fn cef_base64_encode(
14164        data: *const ::std::os::raw::c_void,
14165        data_size: usize,
14166    ) -> cef_string_userfree_t;
14167}
14168unsafe extern "C" {
14169    #[doc = "\n Decodes the base64 encoded string |data|. The returned value will be NULL if\n the decoding fails.\n"]
14170    pub fn cef_base64_decode(data: *const cef_string_t) -> *mut _cef_binary_value_t;
14171}
14172unsafe extern "C" {
14173    #[doc = "\n Escapes characters in |text| which are unsuitable for use as a query\n parameter value. Everything except alphanumerics and -_.!~*'() will be\n converted to \"%XX\". If |use_plus| is true (1) spaces will change to \"+\". The\n result is basically the same as encodeURIComponent in Javacript.\n"]
14174    pub fn cef_uriencode(
14175        text: *const cef_string_t,
14176        use_plus: ::std::os::raw::c_int,
14177    ) -> cef_string_userfree_t;
14178}
14179unsafe extern "C" {
14180    #[doc = "\n Unescapes |text| and returns the result. Unescaping consists of looking for\n the exact pattern \"%XX\" where each X is a hex digit and converting to the\n character with the numerical value of those digits (e.g. \"i%20=%203%3b\"\n unescapes to \"i = 3;\"). If |convert_to_utf8| is true (1) this function will\n attempt to interpret the initial decoded result as UTF-8. If the result is\n convertable into UTF-8 it will be returned as converted. Otherwise the\n initial decoded result will be returned.  The |unescape_rule| parameter\n supports further customization the decoding process.\n"]
14181    pub fn cef_uridecode(
14182        text: *const cef_string_t,
14183        convert_to_utf8: ::std::os::raw::c_int,
14184        unescape_rule: cef_uri_unescape_rule_t,
14185    ) -> cef_string_userfree_t;
14186}
14187unsafe extern "C" {
14188    #[doc = "\n Parses the specified |json_string| and returns a dictionary or list\n representation. If JSON parsing fails this function returns NULL.\n"]
14189    pub fn cef_parse_json(
14190        json_string: *const cef_string_t,
14191        options: cef_json_parser_options_t,
14192    ) -> *mut _cef_value_t;
14193}
14194unsafe extern "C" {
14195    #[doc = "\n Parses the specified UTF8-encoded |json| buffer of size |json_size| and\n returns a dictionary or list representation. If JSON parsing fails this\n function returns NULL.\n"]
14196    pub fn cef_parse_json_buffer(
14197        json: *const ::std::os::raw::c_void,
14198        json_size: usize,
14199        options: cef_json_parser_options_t,
14200    ) -> *mut _cef_value_t;
14201}
14202unsafe extern "C" {
14203    #[doc = "\n Parses the specified |json_string| and returns a dictionary or list\n representation. If JSON parsing fails this function returns NULL and\n populates |error_msg_out| with a formatted error message.\n"]
14204    pub fn cef_parse_jsonand_return_error(
14205        json_string: *const cef_string_t,
14206        options: cef_json_parser_options_t,
14207        error_msg_out: *mut cef_string_t,
14208    ) -> *mut _cef_value_t;
14209}
14210unsafe extern "C" {
14211    #[doc = "\n Generates a JSON string from the specified root |node| which should be a\n dictionary or list value. Returns an NULL string on failure. This function\n requires exclusive access to |node| including any underlying data.\n"]
14212    pub fn cef_write_json(
14213        node: *mut _cef_value_t,
14214        options: cef_json_writer_options_t,
14215    ) -> cef_string_userfree_t;
14216}
14217unsafe extern "C" {
14218    #[doc = "\n Retrieve the path associated with the specified |key|. Returns true (1) on\n success. Can be called on any thread in the browser process.\n"]
14219    pub fn cef_get_path(key: cef_path_key_t, path: *mut cef_string_t) -> ::std::os::raw::c_int;
14220}
14221unsafe extern "C" {
14222    #[doc = "\n Launches the process specified via |command_line|. Returns true (1) upon\n success. Must be called on the browser process TID_PROCESS_LAUNCHER thread.\n\n Unix-specific notes:\n - All file descriptors open in the parent process will be closed in the\n   child process except for stdin, stdout, and stderr.\n - If the first argument on the command line does not contain a slash, PATH\n   will be searched. (See man execvp.)\n"]
14223    pub fn cef_launch_process(command_line: *mut _cef_command_line_t) -> ::std::os::raw::c_int;
14224}
14225#[doc = "\n Structure used for retrieving resources from the resource bundle (*.pak)\n files loaded by CEF during startup or via the cef_resource_bundle_handler_t\n returned from cef_app_t::GetResourceBundleHandler. See CefSettings for\n additional options related to resource bundle loading. The functions of this\n structure may be called on any thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14226#[repr(C)]
14227#[derive(Debug, Copy, Clone)]
14228pub struct _cef_resource_bundle_t {
14229    #[doc = "\n Base structure.\n"]
14230    pub base: cef_base_ref_counted_t,
14231    #[doc = "\n Returns the localized string for the specified |string_id| or an NULL\n string if the value is not found. Use the cef_id_for_pack_string_name()\n function for version-safe mapping of string IDS names from\n cef_pack_strings.h to version-specific numerical |string_id| values.\n"]
14232    pub get_localized_string: ::std::option::Option<
14233        unsafe extern "C" fn(
14234            self_: *mut _cef_resource_bundle_t,
14235            string_id: ::std::os::raw::c_int,
14236        ) -> cef_string_userfree_t,
14237    >,
14238    #[doc = "\n Returns a cef_binary_value_t containing the decompressed contents of the\n specified scale independent |resource_id| or NULL if not found. 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"]
14239    pub get_data_resource: ::std::option::Option<
14240        unsafe extern "C" fn(
14241            self_: *mut _cef_resource_bundle_t,
14242            resource_id: ::std::os::raw::c_int,
14243        ) -> *mut _cef_binary_value_t,
14244    >,
14245    #[doc = "\n Returns a cef_binary_value_t containing the decompressed contents of the\n specified |resource_id| nearest the scale factor |scale_factor| or NULL if\n not found. Use a |scale_factor| value of SCALE_FACTOR_NONE for scale\n independent resources or call GetDataResource instead. 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"]
14246    pub get_data_resource_for_scale: ::std::option::Option<
14247        unsafe extern "C" fn(
14248            self_: *mut _cef_resource_bundle_t,
14249            resource_id: ::std::os::raw::c_int,
14250            scale_factor: cef_scale_factor_t,
14251        ) -> *mut _cef_binary_value_t,
14252    >,
14253}
14254#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14255const _: () = {
14256    ["Size of _cef_resource_bundle_t"][::std::mem::size_of::<_cef_resource_bundle_t>() - 64usize];
14257    ["Alignment of _cef_resource_bundle_t"]
14258        [::std::mem::align_of::<_cef_resource_bundle_t>() - 8usize];
14259    ["Offset of field: _cef_resource_bundle_t::base"]
14260        [::std::mem::offset_of!(_cef_resource_bundle_t, base) - 0usize];
14261    ["Offset of field: _cef_resource_bundle_t::get_localized_string"]
14262        [::std::mem::offset_of!(_cef_resource_bundle_t, get_localized_string) - 40usize];
14263    ["Offset of field: _cef_resource_bundle_t::get_data_resource"]
14264        [::std::mem::offset_of!(_cef_resource_bundle_t, get_data_resource) - 48usize];
14265    ["Offset of field: _cef_resource_bundle_t::get_data_resource_for_scale"]
14266        [::std::mem::offset_of!(_cef_resource_bundle_t, get_data_resource_for_scale) - 56usize];
14267};
14268#[doc = "\n Structure used for retrieving resources from the resource bundle (*.pak)\n files loaded by CEF during startup or via the cef_resource_bundle_handler_t\n returned from cef_app_t::GetResourceBundleHandler. See CefSettings for\n additional options related to resource bundle loading. The functions of this\n structure may be called on any thread unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14269pub type cef_resource_bundle_t = _cef_resource_bundle_t;
14270unsafe extern "C" {
14271    #[doc = "\n Returns the global resource bundle instance.\n"]
14272    pub fn cef_resource_bundle_get_global() -> *mut cef_resource_bundle_t;
14273}
14274#[doc = "\n Structure representing a server that supports HTTP and WebSocket requests.\n Server capacity is limited and is intended to handle only a small number of\n simultaneous connections (e.g. for communicating between applications on\n localhost). The functions of this structure are safe to call from any thread\n in the brower process unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14275#[repr(C)]
14276#[derive(Debug, Copy, Clone)]
14277pub struct _cef_server_t {
14278    #[doc = "\n Base structure.\n"]
14279    pub base: cef_base_ref_counted_t,
14280    #[doc = "\n Returns the task runner for the dedicated server thread.\n"]
14281    pub get_task_runner: ::std::option::Option<
14282        unsafe extern "C" fn(self_: *mut _cef_server_t) -> *mut _cef_task_runner_t,
14283    >,
14284    #[doc = "\n Stop the server and shut down the dedicated server thread. See\n cef_server_handler_t::OnServerCreated documentation for a description of\n server lifespan.\n"]
14285    pub shutdown: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_server_t)>,
14286    #[doc = "\n Returns true (1) if the server is currently running and accepting incoming\n connections. See cef_server_handler_t::OnServerCreated documentation for a\n description of server lifespan. This function must be called on the\n dedicated server thread.\n"]
14287    pub is_running: ::std::option::Option<
14288        unsafe extern "C" fn(self_: *mut _cef_server_t) -> ::std::os::raw::c_int,
14289    >,
14290    #[doc = "\n Returns the server address including the port number.\n"]
14291    pub get_address: ::std::option::Option<
14292        unsafe extern "C" fn(self_: *mut _cef_server_t) -> cef_string_userfree_t,
14293    >,
14294    #[doc = "\n Returns true (1) if the server currently has a connection. This function\n must be called on the dedicated server thread.\n"]
14295    pub has_connection: ::std::option::Option<
14296        unsafe extern "C" fn(self_: *mut _cef_server_t) -> ::std::os::raw::c_int,
14297    >,
14298    #[doc = "\n Returns true (1) if |connection_id| represents a valid connection. This\n function must be called on the dedicated server thread.\n"]
14299    pub is_valid_connection: ::std::option::Option<
14300        unsafe extern "C" fn(
14301            self_: *mut _cef_server_t,
14302            connection_id: ::std::os::raw::c_int,
14303        ) -> ::std::os::raw::c_int,
14304    >,
14305    #[doc = "\n Send an HTTP 200 \"OK\" response to the connection identified by\n |connection_id|. |content_type| is the response content type (e.g.\n \"text/html\"), |data| is the response content, and |data_size| is the size\n of |data| in bytes. The contents of |data| will be copied. The connection\n will be closed automatically after the response is sent.\n"]
14306    pub send_http200_response: ::std::option::Option<
14307        unsafe extern "C" fn(
14308            self_: *mut _cef_server_t,
14309            connection_id: ::std::os::raw::c_int,
14310            content_type: *const cef_string_t,
14311            data: *const ::std::os::raw::c_void,
14312            data_size: usize,
14313        ),
14314    >,
14315    #[doc = "\n Send an HTTP 404 \"Not Found\" response to the connection identified by\n |connection_id|. The connection will be closed automatically after the\n response is sent.\n"]
14316    pub send_http404_response: ::std::option::Option<
14317        unsafe extern "C" fn(self_: *mut _cef_server_t, connection_id: ::std::os::raw::c_int),
14318    >,
14319    #[doc = "\n Send an HTTP 500 \"Internal Server Error\" response to the connection\n identified by |connection_id|. |error_message| is the associated error\n message. The connection will be closed automatically after the response is\n sent.\n"]
14320    pub send_http500_response: ::std::option::Option<
14321        unsafe extern "C" fn(
14322            self_: *mut _cef_server_t,
14323            connection_id: ::std::os::raw::c_int,
14324            error_message: *const cef_string_t,
14325        ),
14326    >,
14327    #[doc = "\n Send a custom HTTP response to the connection identified by\n |connection_id|. |response_code| is the HTTP response code sent in the\n status line (e.g. 200), |content_type| is the response content type sent\n as the \"Content-Type\" header (e.g. \"text/html\"), |content_length| is the\n expected content length, and |extra_headers| is the map of extra response\n headers. If |content_length| is >= 0 then the \"Content-Length\" header will\n be sent. If |content_length| is 0 then no content is expected and the\n connection will be closed automatically after the response is sent. If\n |content_length| is < 0 then no \"Content-Length\" header will be sent and\n the client will continue reading until the connection is closed. Use the\n SendRawData function to send the content, if applicable, and call\n CloseConnection after all content has been sent.\n"]
14328    pub send_http_response: ::std::option::Option<
14329        unsafe extern "C" fn(
14330            self_: *mut _cef_server_t,
14331            connection_id: ::std::os::raw::c_int,
14332            response_code: ::std::os::raw::c_int,
14333            content_type: *const cef_string_t,
14334            content_length: i64,
14335            extra_headers: cef_string_multimap_t,
14336        ),
14337    >,
14338    #[doc = "\n Send raw data directly to the connection identified by |connection_id|.\n |data| is the raw data and |data_size| is the size of |data| in bytes. The\n contents of |data| will be copied. No validation of |data| is performed\n internally so the client should be careful to send the amount indicated by\n the \"Content-Length\" header, if specified. See SendHttpResponse\n documentation for intended usage.\n"]
14339    pub send_raw_data: ::std::option::Option<
14340        unsafe extern "C" fn(
14341            self_: *mut _cef_server_t,
14342            connection_id: ::std::os::raw::c_int,
14343            data: *const ::std::os::raw::c_void,
14344            data_size: usize,
14345        ),
14346    >,
14347    #[doc = "\n Close the connection identified by |connection_id|. See SendHttpResponse\n documentation for intended usage.\n"]
14348    pub close_connection: ::std::option::Option<
14349        unsafe extern "C" fn(self_: *mut _cef_server_t, connection_id: ::std::os::raw::c_int),
14350    >,
14351    #[doc = "\n Send a WebSocket message to the connection identified by |connection_id|.\n |data| is the response content and |data_size| is the size of |data| in\n bytes. The contents of |data| will be copied. See\n cef_server_handler_t::OnWebSocketRequest documentation for intended usage.\n"]
14352    pub send_web_socket_message: ::std::option::Option<
14353        unsafe extern "C" fn(
14354            self_: *mut _cef_server_t,
14355            connection_id: ::std::os::raw::c_int,
14356            data: *const ::std::os::raw::c_void,
14357            data_size: usize,
14358        ),
14359    >,
14360}
14361#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14362const _: () = {
14363    ["Size of _cef_server_t"][::std::mem::size_of::<_cef_server_t>() - 144usize];
14364    ["Alignment of _cef_server_t"][::std::mem::align_of::<_cef_server_t>() - 8usize];
14365    ["Offset of field: _cef_server_t::base"][::std::mem::offset_of!(_cef_server_t, base) - 0usize];
14366    ["Offset of field: _cef_server_t::get_task_runner"]
14367        [::std::mem::offset_of!(_cef_server_t, get_task_runner) - 40usize];
14368    ["Offset of field: _cef_server_t::shutdown"]
14369        [::std::mem::offset_of!(_cef_server_t, shutdown) - 48usize];
14370    ["Offset of field: _cef_server_t::is_running"]
14371        [::std::mem::offset_of!(_cef_server_t, is_running) - 56usize];
14372    ["Offset of field: _cef_server_t::get_address"]
14373        [::std::mem::offset_of!(_cef_server_t, get_address) - 64usize];
14374    ["Offset of field: _cef_server_t::has_connection"]
14375        [::std::mem::offset_of!(_cef_server_t, has_connection) - 72usize];
14376    ["Offset of field: _cef_server_t::is_valid_connection"]
14377        [::std::mem::offset_of!(_cef_server_t, is_valid_connection) - 80usize];
14378    ["Offset of field: _cef_server_t::send_http200_response"]
14379        [::std::mem::offset_of!(_cef_server_t, send_http200_response) - 88usize];
14380    ["Offset of field: _cef_server_t::send_http404_response"]
14381        [::std::mem::offset_of!(_cef_server_t, send_http404_response) - 96usize];
14382    ["Offset of field: _cef_server_t::send_http500_response"]
14383        [::std::mem::offset_of!(_cef_server_t, send_http500_response) - 104usize];
14384    ["Offset of field: _cef_server_t::send_http_response"]
14385        [::std::mem::offset_of!(_cef_server_t, send_http_response) - 112usize];
14386    ["Offset of field: _cef_server_t::send_raw_data"]
14387        [::std::mem::offset_of!(_cef_server_t, send_raw_data) - 120usize];
14388    ["Offset of field: _cef_server_t::close_connection"]
14389        [::std::mem::offset_of!(_cef_server_t, close_connection) - 128usize];
14390    ["Offset of field: _cef_server_t::send_web_socket_message"]
14391        [::std::mem::offset_of!(_cef_server_t, send_web_socket_message) - 136usize];
14392};
14393#[doc = "\n Structure representing a server that supports HTTP and WebSocket requests.\n Server capacity is limited and is intended to handle only a small number of\n simultaneous connections (e.g. for communicating between applications on\n localhost). The functions of this structure are safe to call from any thread\n in the brower process unless otherwise indicated.\n\n NOTE: This struct is allocated DLL-side.\n"]
14394pub type cef_server_t = _cef_server_t;
14395unsafe extern "C" {
14396    #[doc = "\n Create a new server that binds to |address| and |port|. |address| must be a\n valid IPv4 or IPv6 address (e.g. 127.0.0.1 or ::1) and |port| must be a port\n number outside of the reserved range (e.g. between 1025 and 65535 on most\n platforms). |backlog| is the maximum number of pending connections. A new\n thread will be created for each CreateServer call (the \"dedicated server\n thread\"). It is therefore recommended to use a different\n cef_server_handler_t instance for each CreateServer call to avoid thread\n safety issues in the cef_server_handler_t implementation. The\n cef_server_handler_t::OnServerCreated function will be called on the\n dedicated server thread to report success or failure. See\n cef_server_handler_t::OnServerCreated documentation for a description of\n server lifespan.\n"]
14397    pub fn cef_server_create(
14398        address: *const cef_string_t,
14399        port: u16,
14400        backlog: ::std::os::raw::c_int,
14401        handler: *mut _cef_server_handler_t,
14402    );
14403}
14404#[doc = "\n Implement this structure to handle HTTP server requests. A new thread will\n be created for each cef_server_t::CreateServer call (the \"dedicated server\n thread\"), and the functions of this structure will be called on that thread.\n It is therefore recommended to use a different cef_server_handler_t instance\n for each cef_server_t::CreateServer call to avoid thread safety issues in\n the cef_server_handler_t implementation.\n\n NOTE: This struct is allocated client-side.\n"]
14405#[repr(C)]
14406#[derive(Debug, Copy, Clone)]
14407pub struct _cef_server_handler_t {
14408    #[doc = "\n Base structure.\n"]
14409    pub base: cef_base_ref_counted_t,
14410    #[doc = "\n Called when |server| is created. If the server was started successfully\n then cef_server_t::IsRunning will return true (1). The server will\n continue running until cef_server_t::Shutdown is called, after which time\n OnServerDestroyed will be called. If the server failed to start then\n OnServerDestroyed will be called immediately after this function returns.\n"]
14411    pub on_server_created: ::std::option::Option<
14412        unsafe extern "C" fn(self_: *mut _cef_server_handler_t, server: *mut _cef_server_t),
14413    >,
14414    #[doc = "\n Called when |server| is destroyed. The server thread will be stopped after\n this function returns. The client should release any references to\n |server| when this function is called. See OnServerCreated documentation\n for a description of server lifespan.\n"]
14415    pub on_server_destroyed: ::std::option::Option<
14416        unsafe extern "C" fn(self_: *mut _cef_server_handler_t, server: *mut _cef_server_t),
14417    >,
14418    #[doc = "\n Called when a client connects to |server|. |connection_id| uniquely\n identifies the connection. Each call to this function will have a matching\n call to OnClientDisconnected.\n"]
14419    pub on_client_connected: ::std::option::Option<
14420        unsafe extern "C" fn(
14421            self_: *mut _cef_server_handler_t,
14422            server: *mut _cef_server_t,
14423            connection_id: ::std::os::raw::c_int,
14424        ),
14425    >,
14426    #[doc = "\n Called when a client disconnects from |server|. |connection_id| uniquely\n identifies the connection. The client should release any data associated\n with |connection_id| when this function is called and |connection_id|\n should no longer be passed to cef_server_t functions. Disconnects can\n originate from either the client or the server. For example, the server\n will disconnect automatically after a cef_server_t::SendHttpXXXResponse\n function is called.\n"]
14427    pub on_client_disconnected: ::std::option::Option<
14428        unsafe extern "C" fn(
14429            self_: *mut _cef_server_handler_t,
14430            server: *mut _cef_server_t,
14431            connection_id: ::std::os::raw::c_int,
14432        ),
14433    >,
14434    #[doc = "\n Called when |server| receives an HTTP request. |connection_id| uniquely\n identifies the connection, |client_address| is the requesting IPv4 or IPv6\n client address including port number, and |request| contains the request\n contents (URL, function, headers and optional POST data). Call\n cef_server_t functions either synchronously or asynchronusly to send a\n response.\n"]
14435    pub on_http_request: ::std::option::Option<
14436        unsafe extern "C" fn(
14437            self_: *mut _cef_server_handler_t,
14438            server: *mut _cef_server_t,
14439            connection_id: ::std::os::raw::c_int,
14440            client_address: *const cef_string_t,
14441            request: *mut _cef_request_t,
14442        ),
14443    >,
14444    #[doc = "\n Called when |server| receives a WebSocket request. |connection_id|\n uniquely identifies the connection, |client_address| is the requesting\n IPv4 or IPv6 client address including port number, and |request| contains\n the request contents (URL, function, headers and optional POST data).\n Execute |callback| either synchronously or asynchronously to accept or\n decline the WebSocket connection. If the request is accepted then\n OnWebSocketConnected will be called after the WebSocket has connected and\n incoming messages will be delivered to the OnWebSocketMessage callback. If\n the request is declined then the client will be disconnected and\n OnClientDisconnected will be called. Call the\n cef_server_t::SendWebSocketMessage function after receiving the\n OnWebSocketConnected callback to respond with WebSocket messages.\n"]
14445    pub on_web_socket_request: ::std::option::Option<
14446        unsafe extern "C" fn(
14447            self_: *mut _cef_server_handler_t,
14448            server: *mut _cef_server_t,
14449            connection_id: ::std::os::raw::c_int,
14450            client_address: *const cef_string_t,
14451            request: *mut _cef_request_t,
14452            callback: *mut _cef_callback_t,
14453        ),
14454    >,
14455    #[doc = "\n Called after the client has accepted the WebSocket connection for |server|\n and |connection_id| via the OnWebSocketRequest callback. See\n OnWebSocketRequest documentation for intended usage.\n"]
14456    pub on_web_socket_connected: ::std::option::Option<
14457        unsafe extern "C" fn(
14458            self_: *mut _cef_server_handler_t,
14459            server: *mut _cef_server_t,
14460            connection_id: ::std::os::raw::c_int,
14461        ),
14462    >,
14463    #[doc = "\n Called when |server| receives an WebSocket message. |connection_id|\n uniquely identifies the connection, |data| is the message content and\n |data_size| is the size of |data| in bytes. Do not keep a reference to\n |data| outside of this function. See OnWebSocketRequest documentation for\n intended usage.\n"]
14464    pub on_web_socket_message: ::std::option::Option<
14465        unsafe extern "C" fn(
14466            self_: *mut _cef_server_handler_t,
14467            server: *mut _cef_server_t,
14468            connection_id: ::std::os::raw::c_int,
14469            data: *const ::std::os::raw::c_void,
14470            data_size: usize,
14471        ),
14472    >,
14473}
14474#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14475const _: () = {
14476    ["Size of _cef_server_handler_t"][::std::mem::size_of::<_cef_server_handler_t>() - 104usize];
14477    ["Alignment of _cef_server_handler_t"]
14478        [::std::mem::align_of::<_cef_server_handler_t>() - 8usize];
14479    ["Offset of field: _cef_server_handler_t::base"]
14480        [::std::mem::offset_of!(_cef_server_handler_t, base) - 0usize];
14481    ["Offset of field: _cef_server_handler_t::on_server_created"]
14482        [::std::mem::offset_of!(_cef_server_handler_t, on_server_created) - 40usize];
14483    ["Offset of field: _cef_server_handler_t::on_server_destroyed"]
14484        [::std::mem::offset_of!(_cef_server_handler_t, on_server_destroyed) - 48usize];
14485    ["Offset of field: _cef_server_handler_t::on_client_connected"]
14486        [::std::mem::offset_of!(_cef_server_handler_t, on_client_connected) - 56usize];
14487    ["Offset of field: _cef_server_handler_t::on_client_disconnected"]
14488        [::std::mem::offset_of!(_cef_server_handler_t, on_client_disconnected) - 64usize];
14489    ["Offset of field: _cef_server_handler_t::on_http_request"]
14490        [::std::mem::offset_of!(_cef_server_handler_t, on_http_request) - 72usize];
14491    ["Offset of field: _cef_server_handler_t::on_web_socket_request"]
14492        [::std::mem::offset_of!(_cef_server_handler_t, on_web_socket_request) - 80usize];
14493    ["Offset of field: _cef_server_handler_t::on_web_socket_connected"]
14494        [::std::mem::offset_of!(_cef_server_handler_t, on_web_socket_connected) - 88usize];
14495    ["Offset of field: _cef_server_handler_t::on_web_socket_message"]
14496        [::std::mem::offset_of!(_cef_server_handler_t, on_web_socket_message) - 96usize];
14497};
14498#[doc = "\n Implement this structure to handle HTTP server requests. A new thread will\n be created for each cef_server_t::CreateServer call (the \"dedicated server\n thread\"), and the functions of this structure will be called on that thread.\n It is therefore recommended to use a different cef_server_handler_t instance\n for each cef_server_t::CreateServer call to avoid thread safety issues in\n the cef_server_handler_t implementation.\n\n NOTE: This struct is allocated client-side.\n"]
14499pub type cef_server_handler_t = _cef_server_handler_t;
14500#[doc = "\n Structure that builds a cef_process_message_t containing a shared memory\n region. This structure is not thread-safe but may be used exclusively on a\n different thread from the one which constructed it.\n\n NOTE: This struct is allocated DLL-side.\n"]
14501#[repr(C)]
14502#[derive(Debug, Copy, Clone)]
14503pub struct _cef_shared_process_message_builder_t {
14504    #[doc = "\n Base structure.\n"]
14505    pub base: cef_base_ref_counted_t,
14506    #[doc = "\n Returns true (1) if the builder is valid.\n"]
14507    pub is_valid: ::std::option::Option<
14508        unsafe extern "C" fn(
14509            self_: *mut _cef_shared_process_message_builder_t,
14510        ) -> ::std::os::raw::c_int,
14511    >,
14512    #[doc = "\n Returns the size of the shared memory region in bytes. Returns 0 for\n invalid instances.\n"]
14513    pub size: ::std::option::Option<
14514        unsafe extern "C" fn(self_: *mut _cef_shared_process_message_builder_t) -> usize,
14515    >,
14516    #[doc = "\n Returns the pointer to the writable memory. Returns nullptr for invalid\n instances. The returned pointer is only valid for the life span of this\n object.\n"]
14517    pub memory: ::std::option::Option<
14518        unsafe extern "C" fn(
14519            self_: *mut _cef_shared_process_message_builder_t,
14520        ) -> *mut ::std::os::raw::c_void,
14521    >,
14522    #[doc = "\n Creates a new cef_process_message_t from the data provided to the builder.\n Returns nullptr for invalid instances. Invalidates the builder instance.\n"]
14523    pub build: ::std::option::Option<
14524        unsafe extern "C" fn(
14525            self_: *mut _cef_shared_process_message_builder_t,
14526        ) -> *mut _cef_process_message_t,
14527    >,
14528}
14529#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14530const _: () = {
14531    ["Size of _cef_shared_process_message_builder_t"]
14532        [::std::mem::size_of::<_cef_shared_process_message_builder_t>() - 72usize];
14533    ["Alignment of _cef_shared_process_message_builder_t"]
14534        [::std::mem::align_of::<_cef_shared_process_message_builder_t>() - 8usize];
14535    ["Offset of field: _cef_shared_process_message_builder_t::base"]
14536        [::std::mem::offset_of!(_cef_shared_process_message_builder_t, base) - 0usize];
14537    ["Offset of field: _cef_shared_process_message_builder_t::is_valid"]
14538        [::std::mem::offset_of!(_cef_shared_process_message_builder_t, is_valid) - 40usize];
14539    ["Offset of field: _cef_shared_process_message_builder_t::size"]
14540        [::std::mem::offset_of!(_cef_shared_process_message_builder_t, size) - 48usize];
14541    ["Offset of field: _cef_shared_process_message_builder_t::memory"]
14542        [::std::mem::offset_of!(_cef_shared_process_message_builder_t, memory) - 56usize];
14543    ["Offset of field: _cef_shared_process_message_builder_t::build"]
14544        [::std::mem::offset_of!(_cef_shared_process_message_builder_t, build) - 64usize];
14545};
14546#[doc = "\n Structure that builds a cef_process_message_t containing a shared memory\n region. This structure is not thread-safe but may be used exclusively on a\n different thread from the one which constructed it.\n\n NOTE: This struct is allocated DLL-side.\n"]
14547pub type cef_shared_process_message_builder_t = _cef_shared_process_message_builder_t;
14548unsafe extern "C" {
14549    #[doc = "\n Creates a new cef_shared_process_message_builder_t with the specified |name|\n and shared memory region of specified |byte_size|.\n"]
14550    pub fn cef_shared_process_message_builder_create(
14551        name: *const cef_string_t,
14552        byte_size: usize,
14553    ) -> *mut cef_shared_process_message_builder_t;
14554}
14555#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
14556#[repr(C)]
14557#[derive(Debug, Copy, Clone)]
14558pub struct _cef_task_manager_t {
14559    #[doc = "\n Base structure.\n"]
14560    pub base: cef_base_ref_counted_t,
14561    #[doc = "\n Returns the number of tasks currently tracked by the task manager. Returns\n 0 if the function was called from the incorrect thread.\n"]
14562    pub get_tasks_count:
14563        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_task_manager_t) -> usize>,
14564    #[doc = "\n Gets the list of task IDs currently tracked by the task manager. Tasks\n that share the same process id will always be consecutive. The list will\n be sorted in a way that reflects the process tree: the browser process\n will be first, followed by the gpu process if it exists. Related processes\n (e.g., a subframe process and its parent) will be kept together if\n possible. Callers can expect this ordering to be stable when a process is\n added or removed. The task IDs are unique within the application lifespan.\n Returns false (0) if the function was called from the incorrect thread.\n"]
14565    pub get_task_ids_list: ::std::option::Option<
14566        unsafe extern "C" fn(
14567            self_: *mut _cef_task_manager_t,
14568            task_idsCount: *mut usize,
14569            task_ids: *mut i64,
14570        ) -> ::std::os::raw::c_int,
14571    >,
14572    #[doc = "\n Gets information about the task with |task_id|. Returns true (1) if the\n information about the task was successfully retrieved and false (0) if the\n |task_id| is invalid or the function was called from the incorrect thread.\n"]
14573    pub get_task_info: ::std::option::Option<
14574        unsafe extern "C" fn(
14575            self_: *mut _cef_task_manager_t,
14576            task_id: i64,
14577            info: *mut _cef_task_info_t,
14578        ) -> ::std::os::raw::c_int,
14579    >,
14580    #[doc = "\n Attempts to terminate a task with |task_id|. Returns false (0) if the\n |task_id| is invalid, the call is made from an incorrect thread, or if the\n task cannot be terminated.\n"]
14581    pub kill_task: ::std::option::Option<
14582        unsafe extern "C" fn(
14583            self_: *mut _cef_task_manager_t,
14584            task_id: i64,
14585        ) -> ::std::os::raw::c_int,
14586    >,
14587    #[doc = "\n Returns the task ID associated with the main task for |browser_id| (value\n from cef_browser_t::GetIdentifier). Returns -1 if |browser_id| is invalid,\n does not currently have an associated task, or the function was called\n from the incorrect thread.\n"]
14588    pub get_task_id_for_browser_id: ::std::option::Option<
14589        unsafe extern "C" fn(
14590            self_: *mut _cef_task_manager_t,
14591            browser_id: ::std::os::raw::c_int,
14592        ) -> i64,
14593    >,
14594}
14595#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14596const _: () = {
14597    ["Size of _cef_task_manager_t"][::std::mem::size_of::<_cef_task_manager_t>() - 80usize];
14598    ["Alignment of _cef_task_manager_t"][::std::mem::align_of::<_cef_task_manager_t>() - 8usize];
14599    ["Offset of field: _cef_task_manager_t::base"]
14600        [::std::mem::offset_of!(_cef_task_manager_t, base) - 0usize];
14601    ["Offset of field: _cef_task_manager_t::get_tasks_count"]
14602        [::std::mem::offset_of!(_cef_task_manager_t, get_tasks_count) - 40usize];
14603    ["Offset of field: _cef_task_manager_t::get_task_ids_list"]
14604        [::std::mem::offset_of!(_cef_task_manager_t, get_task_ids_list) - 48usize];
14605    ["Offset of field: _cef_task_manager_t::get_task_info"]
14606        [::std::mem::offset_of!(_cef_task_manager_t, get_task_info) - 56usize];
14607    ["Offset of field: _cef_task_manager_t::kill_task"]
14608        [::std::mem::offset_of!(_cef_task_manager_t, kill_task) - 64usize];
14609    ["Offset of field: _cef_task_manager_t::get_task_id_for_browser_id"]
14610        [::std::mem::offset_of!(_cef_task_manager_t, get_task_id_for_browser_id) - 72usize];
14611};
14612#[doc = "\n Structure that facilitates managing the browser-related tasks. The functions\n of this structure may only be called on the UI thread.\n\n NOTE: This struct is allocated DLL-side.\n"]
14613pub type cef_task_manager_t = _cef_task_manager_t;
14614unsafe extern "C" {
14615    #[doc = "\n Returns the global task manager object. Returns nullptr if the function was\n called from the incorrect thread.\n"]
14616    pub fn cef_task_manager_get() -> *mut cef_task_manager_t;
14617}
14618pub type pthread_t = ::std::os::raw::c_ulong;
14619pub type cef_platform_thread_id_t = pid_t;
14620unsafe extern "C" {
14621    #[doc = "\n Returns the current platform thread ID.\n"]
14622    pub fn cef_get_current_platform_thread_id() -> cef_platform_thread_id_t;
14623}
14624pub type cef_platform_thread_handle_t = pthread_t;
14625unsafe extern "C" {
14626    #[doc = "\n Returns the current platform thread handle.\n"]
14627    pub fn cef_get_current_platform_thread_handle() -> cef_platform_thread_handle_t;
14628}
14629#[doc = "\n A simple thread abstraction that establishes a message loop on a new thread.\n The consumer uses cef_task_runner_t to execute code on the thread's message\n loop. The thread is terminated when the cef_thread_t object is destroyed or\n stop() is called. All pending tasks queued on the thread's message loop will\n run to completion before the thread is terminated. cef_thread_create() can\n be called on any valid CEF thread in either the browser or render process.\n This structure should only be used for tasks that require a dedicated\n thread. In most cases you can post tasks to an existing CEF thread instead\n of creating a new one; see cef_task.h for details.\n\n NOTE: This struct is allocated DLL-side.\n"]
14630#[repr(C)]
14631#[derive(Debug, Copy, Clone)]
14632pub struct _cef_thread_t {
14633    #[doc = "\n Base structure.\n"]
14634    pub base: cef_base_ref_counted_t,
14635    #[doc = "\n Returns the cef_task_runner_t that will execute code on this thread's\n message loop. This function is safe to call from any thread.\n"]
14636    pub get_task_runner: ::std::option::Option<
14637        unsafe extern "C" fn(self_: *mut _cef_thread_t) -> *mut _cef_task_runner_t,
14638    >,
14639    #[doc = "\n Returns the platform thread ID. It will return the same value after stop()\n is called. This function is safe to call from any thread.\n"]
14640    pub get_platform_thread_id: ::std::option::Option<
14641        unsafe extern "C" fn(self_: *mut _cef_thread_t) -> cef_platform_thread_id_t,
14642    >,
14643    #[doc = "\n Stop and join the thread. This function must be called from the same\n thread that called cef_thread_create(). Do not call this function if\n cef_thread_create() was called with a |stoppable| value of false (0).\n"]
14644    pub stop: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_thread_t)>,
14645    #[doc = "\n Returns true (1) if the thread is currently running. This function must be\n called from the same thread that called cef_thread_create().\n"]
14646    pub is_running: ::std::option::Option<
14647        unsafe extern "C" fn(self_: *mut _cef_thread_t) -> ::std::os::raw::c_int,
14648    >,
14649}
14650#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14651const _: () = {
14652    ["Size of _cef_thread_t"][::std::mem::size_of::<_cef_thread_t>() - 72usize];
14653    ["Alignment of _cef_thread_t"][::std::mem::align_of::<_cef_thread_t>() - 8usize];
14654    ["Offset of field: _cef_thread_t::base"][::std::mem::offset_of!(_cef_thread_t, base) - 0usize];
14655    ["Offset of field: _cef_thread_t::get_task_runner"]
14656        [::std::mem::offset_of!(_cef_thread_t, get_task_runner) - 40usize];
14657    ["Offset of field: _cef_thread_t::get_platform_thread_id"]
14658        [::std::mem::offset_of!(_cef_thread_t, get_platform_thread_id) - 48usize];
14659    ["Offset of field: _cef_thread_t::stop"][::std::mem::offset_of!(_cef_thread_t, stop) - 56usize];
14660    ["Offset of field: _cef_thread_t::is_running"]
14661        [::std::mem::offset_of!(_cef_thread_t, is_running) - 64usize];
14662};
14663#[doc = "\n A simple thread abstraction that establishes a message loop on a new thread.\n The consumer uses cef_task_runner_t to execute code on the thread's message\n loop. The thread is terminated when the cef_thread_t object is destroyed or\n stop() is called. All pending tasks queued on the thread's message loop will\n run to completion before the thread is terminated. cef_thread_create() can\n be called on any valid CEF thread in either the browser or render process.\n This structure should only be used for tasks that require a dedicated\n thread. In most cases you can post tasks to an existing CEF thread instead\n of creating a new one; see cef_task.h for details.\n\n NOTE: This struct is allocated DLL-side.\n"]
14664pub type cef_thread_t = _cef_thread_t;
14665unsafe extern "C" {
14666    #[doc = "\n Create and start a new thread. This function does not block waiting for the\n thread to run initialization. |display_name| is the name that will be used\n to identify the thread. |priority| is the thread execution priority.\n |message_loop_type| indicates the set of asynchronous events that the thread\n can process. If |stoppable| is true (1) the thread will stopped and joined\n on destruction or when stop() is called; otherwise, the thread cannot be\n stopped and will be leaked on shutdown. On Windows the |com_init_mode| value\n specifies how COM will be initialized for the thread. If |com_init_mode| is\n set to COM_INIT_MODE_STA then |message_loop_type| must be set to ML_TYPE_UI.\n"]
14667    pub fn cef_thread_create(
14668        display_name: *const cef_string_t,
14669        priority: cef_thread_priority_t,
14670        message_loop_type: cef_message_loop_type_t,
14671        stoppable: ::std::os::raw::c_int,
14672        com_init_mode: cef_com_init_mode_t,
14673    ) -> *mut cef_thread_t;
14674}
14675#[doc = "\n Implement this structure to receive notification when tracing has completed.\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"]
14676#[repr(C)]
14677#[derive(Debug, Copy, Clone)]
14678pub struct _cef_end_tracing_callback_t {
14679    #[doc = "\n Base structure.\n"]
14680    pub base: cef_base_ref_counted_t,
14681    #[doc = "\n Called after all processes have sent their trace data. |tracing_file| is\n the path at which tracing data was written. The client is responsible for\n deleting |tracing_file|.\n"]
14682    pub on_end_tracing_complete: ::std::option::Option<
14683        unsafe extern "C" fn(
14684            self_: *mut _cef_end_tracing_callback_t,
14685            tracing_file: *const cef_string_t,
14686        ),
14687    >,
14688}
14689#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14690const _: () = {
14691    ["Size of _cef_end_tracing_callback_t"]
14692        [::std::mem::size_of::<_cef_end_tracing_callback_t>() - 48usize];
14693    ["Alignment of _cef_end_tracing_callback_t"]
14694        [::std::mem::align_of::<_cef_end_tracing_callback_t>() - 8usize];
14695    ["Offset of field: _cef_end_tracing_callback_t::base"]
14696        [::std::mem::offset_of!(_cef_end_tracing_callback_t, base) - 0usize];
14697    ["Offset of field: _cef_end_tracing_callback_t::on_end_tracing_complete"]
14698        [::std::mem::offset_of!(_cef_end_tracing_callback_t, on_end_tracing_complete) - 40usize];
14699};
14700#[doc = "\n Implement this structure to receive notification when tracing has completed.\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"]
14701pub type cef_end_tracing_callback_t = _cef_end_tracing_callback_t;
14702unsafe extern "C" {
14703    #[doc = "\n Start tracing events on all processes. Tracing is initialized asynchronously\n and |callback| will be executed on the UI thread after initialization is\n complete.\n\n If CefBeginTracing was called previously, or if a CefEndTracingAsync call is\n pending, CefBeginTracing will fail and return false (0).\n\n |categories| is a comma-delimited list of category wildcards. A category can\n have an optional '-' prefix to make it an excluded category. Having both\n included and excluded categories in the same list is not supported.\n\n Examples:\n - \"test_MyTest*\"\n - \"test_MyTest*,test_OtherStuff\"\n - \"-excluded_category1,-excluded_category2\"\n\n This function must be called on the browser process UI thread.\n"]
14704    pub fn cef_begin_tracing(
14705        categories: *const cef_string_t,
14706        callback: *mut _cef_completion_callback_t,
14707    ) -> ::std::os::raw::c_int;
14708}
14709unsafe extern "C" {
14710    #[doc = "\n Stop tracing events on all processes.\n\n This function will fail and return false (0) if a previous call to\n CefEndTracingAsync is already pending or if CefBeginTracing was not called.\n\n |tracing_file| is the path at which tracing data will be written and\n |callback| is the callback that will be executed once all processes have\n sent their trace data. If |tracing_file| is NULL a new temporary file path\n will be used. If |callback| is NULL no trace data will be written.\n\n This function must be called on the browser process UI thread.\n"]
14711    pub fn cef_end_tracing(
14712        tracing_file: *const cef_string_t,
14713        callback: *mut cef_end_tracing_callback_t,
14714    ) -> ::std::os::raw::c_int;
14715}
14716unsafe extern "C" {
14717    #[doc = "\n Returns the current system trace time or, if none is defined, the current\n high-res time. Can be used by clients to synchronize with the time\n information in trace events.\n"]
14718    pub fn cef_now_from_system_trace_time() -> i64;
14719}
14720#[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"]
14721#[repr(C)]
14722#[derive(Debug, Copy, Clone)]
14723pub struct _cef_urlrequest_t {
14724    #[doc = "\n Base structure.\n"]
14725    pub base: cef_base_ref_counted_t,
14726    #[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"]
14727    pub get_request: ::std::option::Option<
14728        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_request_t,
14729    >,
14730    #[doc = "\n Returns the client.\n"]
14731    pub get_client: ::std::option::Option<
14732        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_urlrequest_client_t,
14733    >,
14734    #[doc = "\n Returns the request status.\n"]
14735    pub get_request_status: ::std::option::Option<
14736        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> cef_urlrequest_status_t,
14737    >,
14738    #[doc = "\n Returns the request error if status is UR_CANCELED or UR_FAILED, or 0\n otherwise.\n"]
14739    pub get_request_error: ::std::option::Option<
14740        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> cef_errorcode_t,
14741    >,
14742    #[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"]
14743    pub get_response: ::std::option::Option<
14744        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> *mut _cef_response_t,
14745    >,
14746    #[doc = "\n Returns true (1) if the response body was served from the cache. This\n includes responses for which revalidation was required.\n"]
14747    pub response_was_cached: ::std::option::Option<
14748        unsafe extern "C" fn(self_: *mut _cef_urlrequest_t) -> ::std::os::raw::c_int,
14749    >,
14750    #[doc = "\n Cancel the request.\n"]
14751    pub cancel: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_urlrequest_t)>,
14752}
14753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14754const _: () = {
14755    ["Size of _cef_urlrequest_t"][::std::mem::size_of::<_cef_urlrequest_t>() - 96usize];
14756    ["Alignment of _cef_urlrequest_t"][::std::mem::align_of::<_cef_urlrequest_t>() - 8usize];
14757    ["Offset of field: _cef_urlrequest_t::base"]
14758        [::std::mem::offset_of!(_cef_urlrequest_t, base) - 0usize];
14759    ["Offset of field: _cef_urlrequest_t::get_request"]
14760        [::std::mem::offset_of!(_cef_urlrequest_t, get_request) - 40usize];
14761    ["Offset of field: _cef_urlrequest_t::get_client"]
14762        [::std::mem::offset_of!(_cef_urlrequest_t, get_client) - 48usize];
14763    ["Offset of field: _cef_urlrequest_t::get_request_status"]
14764        [::std::mem::offset_of!(_cef_urlrequest_t, get_request_status) - 56usize];
14765    ["Offset of field: _cef_urlrequest_t::get_request_error"]
14766        [::std::mem::offset_of!(_cef_urlrequest_t, get_request_error) - 64usize];
14767    ["Offset of field: _cef_urlrequest_t::get_response"]
14768        [::std::mem::offset_of!(_cef_urlrequest_t, get_response) - 72usize];
14769    ["Offset of field: _cef_urlrequest_t::response_was_cached"]
14770        [::std::mem::offset_of!(_cef_urlrequest_t, response_was_cached) - 80usize];
14771    ["Offset of field: _cef_urlrequest_t::cancel"]
14772        [::std::mem::offset_of!(_cef_urlrequest_t, cancel) - 88usize];
14773};
14774#[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"]
14775pub type cef_urlrequest_t = _cef_urlrequest_t;
14776unsafe extern "C" {
14777    #[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"]
14778    pub fn cef_urlrequest_create(
14779        request: *mut _cef_request_t,
14780        client: *mut _cef_urlrequest_client_t,
14781        request_context: *mut _cef_request_context_t,
14782    ) -> *mut cef_urlrequest_t;
14783}
14784#[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"]
14785#[repr(C)]
14786#[derive(Debug, Copy, Clone)]
14787pub struct _cef_urlrequest_client_t {
14788    #[doc = "\n Base structure.\n"]
14789    pub base: cef_base_ref_counted_t,
14790    #[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"]
14791    pub on_request_complete: ::std::option::Option<
14792        unsafe extern "C" fn(self_: *mut _cef_urlrequest_client_t, request: *mut _cef_urlrequest_t),
14793    >,
14794    #[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"]
14795    pub on_upload_progress: ::std::option::Option<
14796        unsafe extern "C" fn(
14797            self_: *mut _cef_urlrequest_client_t,
14798            request: *mut _cef_urlrequest_t,
14799            current: i64,
14800            total: i64,
14801        ),
14802    >,
14803    #[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"]
14804    pub on_download_progress: ::std::option::Option<
14805        unsafe extern "C" fn(
14806            self_: *mut _cef_urlrequest_client_t,
14807            request: *mut _cef_urlrequest_t,
14808            current: i64,
14809            total: i64,
14810        ),
14811    >,
14812    #[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"]
14813    pub on_download_data: ::std::option::Option<
14814        unsafe extern "C" fn(
14815            self_: *mut _cef_urlrequest_client_t,
14816            request: *mut _cef_urlrequest_t,
14817            data: *const ::std::os::raw::c_void,
14818            data_length: usize,
14819        ),
14820    >,
14821    #[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"]
14822    pub get_auth_credentials: ::std::option::Option<
14823        unsafe extern "C" fn(
14824            self_: *mut _cef_urlrequest_client_t,
14825            isProxy: ::std::os::raw::c_int,
14826            host: *const cef_string_t,
14827            port: ::std::os::raw::c_int,
14828            realm: *const cef_string_t,
14829            scheme: *const cef_string_t,
14830            callback: *mut _cef_auth_callback_t,
14831        ) -> ::std::os::raw::c_int,
14832    >,
14833}
14834#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14835const _: () = {
14836    ["Size of _cef_urlrequest_client_t"]
14837        [::std::mem::size_of::<_cef_urlrequest_client_t>() - 80usize];
14838    ["Alignment of _cef_urlrequest_client_t"]
14839        [::std::mem::align_of::<_cef_urlrequest_client_t>() - 8usize];
14840    ["Offset of field: _cef_urlrequest_client_t::base"]
14841        [::std::mem::offset_of!(_cef_urlrequest_client_t, base) - 0usize];
14842    ["Offset of field: _cef_urlrequest_client_t::on_request_complete"]
14843        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_request_complete) - 40usize];
14844    ["Offset of field: _cef_urlrequest_client_t::on_upload_progress"]
14845        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_upload_progress) - 48usize];
14846    ["Offset of field: _cef_urlrequest_client_t::on_download_progress"]
14847        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_download_progress) - 56usize];
14848    ["Offset of field: _cef_urlrequest_client_t::on_download_data"]
14849        [::std::mem::offset_of!(_cef_urlrequest_client_t, on_download_data) - 64usize];
14850    ["Offset of field: _cef_urlrequest_client_t::get_auth_credentials"]
14851        [::std::mem::offset_of!(_cef_urlrequest_client_t, get_auth_credentials) - 72usize];
14852};
14853#[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"]
14854pub type cef_urlrequest_client_t = _cef_urlrequest_client_t;
14855#[doc = "\n WaitableEvent is a thread synchronization tool that allows one thread to\n wait for another thread to finish some work. This is equivalent to using a\n Lock+ConditionVariable to protect a simple boolean value. However, using\n WaitableEvent in conjunction with a Lock to wait for a more complex state\n change (e.g., for an item to be added to a queue) is not recommended. In\n that case consider using a ConditionVariable instead of a WaitableEvent. It\n is safe to create and/or signal a WaitableEvent from any thread. Blocking on\n a WaitableEvent by calling the *wait() functions is not allowed on the\n browser process UI or IO threads.\n\n NOTE: This struct is allocated DLL-side.\n"]
14856#[repr(C)]
14857#[derive(Debug, Copy, Clone)]
14858pub struct _cef_waitable_event_t {
14859    #[doc = "\n Base structure.\n"]
14860    pub base: cef_base_ref_counted_t,
14861    #[doc = "\n Put the event in the un-signaled state.\n"]
14862    pub reset: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_waitable_event_t)>,
14863    #[doc = "\n Put the event in the signaled state. This causes any thread blocked on\n Wait to be woken up.\n"]
14864    pub signal: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_waitable_event_t)>,
14865    #[doc = "\n Returns true (1) if the event is in the signaled state, else false (0). If\n the event was created with |automatic_reset| set to true (1) then calling\n this function will also cause a reset.\n"]
14866    pub is_signaled: ::std::option::Option<
14867        unsafe extern "C" fn(self_: *mut _cef_waitable_event_t) -> ::std::os::raw::c_int,
14868    >,
14869    #[doc = "\n Wait indefinitely for the event to be signaled. This function will not\n return until after the call to signal() has completed. This function\n cannot be called on the browser process UI or IO threads.\n"]
14870    pub wait: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_waitable_event_t)>,
14871    #[doc = "\n Wait up to |max_ms| milliseconds for the event to be signaled. Returns\n true (1) if the event was signaled. A return value of false (0) does not\n necessarily mean that |max_ms| was exceeded. This function will not return\n until after the call to signal() has completed. This function cannot be\n called on the browser process UI or IO threads.\n"]
14872    pub timed_wait: ::std::option::Option<
14873        unsafe extern "C" fn(
14874            self_: *mut _cef_waitable_event_t,
14875            max_ms: i64,
14876        ) -> ::std::os::raw::c_int,
14877    >,
14878}
14879#[allow(clippy::unnecessary_operation, clippy::identity_op)]
14880const _: () = {
14881    ["Size of _cef_waitable_event_t"][::std::mem::size_of::<_cef_waitable_event_t>() - 80usize];
14882    ["Alignment of _cef_waitable_event_t"]
14883        [::std::mem::align_of::<_cef_waitable_event_t>() - 8usize];
14884    ["Offset of field: _cef_waitable_event_t::base"]
14885        [::std::mem::offset_of!(_cef_waitable_event_t, base) - 0usize];
14886    ["Offset of field: _cef_waitable_event_t::reset"]
14887        [::std::mem::offset_of!(_cef_waitable_event_t, reset) - 40usize];
14888    ["Offset of field: _cef_waitable_event_t::signal"]
14889        [::std::mem::offset_of!(_cef_waitable_event_t, signal) - 48usize];
14890    ["Offset of field: _cef_waitable_event_t::is_signaled"]
14891        [::std::mem::offset_of!(_cef_waitable_event_t, is_signaled) - 56usize];
14892    ["Offset of field: _cef_waitable_event_t::wait"]
14893        [::std::mem::offset_of!(_cef_waitable_event_t, wait) - 64usize];
14894    ["Offset of field: _cef_waitable_event_t::timed_wait"]
14895        [::std::mem::offset_of!(_cef_waitable_event_t, timed_wait) - 72usize];
14896};
14897#[doc = "\n WaitableEvent is a thread synchronization tool that allows one thread to\n wait for another thread to finish some work. This is equivalent to using a\n Lock+ConditionVariable to protect a simple boolean value. However, using\n WaitableEvent in conjunction with a Lock to wait for a more complex state\n change (e.g., for an item to be added to a queue) is not recommended. In\n that case consider using a ConditionVariable instead of a WaitableEvent. It\n is safe to create and/or signal a WaitableEvent from any thread. Blocking on\n a WaitableEvent by calling the *wait() functions is not allowed on the\n browser process UI or IO threads.\n\n NOTE: This struct is allocated DLL-side.\n"]
14898pub type cef_waitable_event_t = _cef_waitable_event_t;
14899unsafe extern "C" {
14900    #[doc = "\n Create a new waitable event. If |automatic_reset| is true (1) then the event\n state is automatically reset to un-signaled after a single waiting thread\n has been released; otherwise, the state remains signaled until reset() is\n called manually. If |initially_signaled| is true (1) then the event will\n start in the signaled state.\n"]
14901    pub fn cef_waitable_event_create(
14902        automatic_reset: ::std::os::raw::c_int,
14903        initially_signaled: ::std::os::raw::c_int,
14904    ) -> *mut cef_waitable_event_t;
14905}
14906#[doc = "\n Structure that supports the reading of XML data via the libxml streaming\n API. The functions of this structure should only be called on the thread\n that creates the object.\n\n NOTE: This struct is allocated DLL-side.\n"]
14907#[repr(C)]
14908#[derive(Debug, Copy, Clone)]
14909pub struct _cef_xml_reader_t {
14910    #[doc = "\n Base structure.\n"]
14911    pub base: cef_base_ref_counted_t,
14912    #[doc = "\n Moves the cursor to the next node in the document. This function must be\n called at least once to set the current cursor position. Returns true (1)\n if the cursor position was set successfully.\n"]
14913    pub move_to_next_node: ::std::option::Option<
14914        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14915    >,
14916    #[doc = "\n Close the document. This should be called directly to ensure that cleanup\n occurs on the correct thread.\n"]
14917    pub close: ::std::option::Option<
14918        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14919    >,
14920    #[doc = "\n Returns true (1) if an error has been reported by the XML parser.\n"]
14921    pub has_error: ::std::option::Option<
14922        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14923    >,
14924    #[doc = "\n Returns the error string.\n"]
14925    pub get_error: ::std::option::Option<
14926        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14927    >,
14928    #[doc = "\n Returns the node type.\n"]
14929    pub get_type: ::std::option::Option<
14930        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_xml_node_type_t,
14931    >,
14932    #[doc = "\n Returns the node depth. Depth starts at 0 for the root node.\n"]
14933    pub get_depth: ::std::option::Option<
14934        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14935    >,
14936    #[doc = "\n Returns the local name. See http://www.w3.org/TR/REC-xml-names/#NT-\n LocalPart for additional details.\n"]
14937    pub get_local_name: ::std::option::Option<
14938        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14939    >,
14940    #[doc = "\n Returns the namespace prefix. See http://www.w3.org/TR/REC-xml-names/ for\n additional details.\n"]
14941    pub get_prefix: ::std::option::Option<
14942        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14943    >,
14944    #[doc = "\n Returns the qualified name, equal to (Prefix:)LocalName. See\n http://www.w3.org/TR/REC-xml-names/#ns-qualnames for additional details.\n"]
14945    pub get_qualified_name: ::std::option::Option<
14946        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14947    >,
14948    #[doc = "\n Returns the URI defining the namespace associated with the node. See\n http://www.w3.org/TR/REC-xml-names/ for additional details.\n"]
14949    pub get_namespace_uri: ::std::option::Option<
14950        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14951    >,
14952    #[doc = "\n Returns the base URI of the node. See http://www.w3.org/TR/xmlbase/ for\n additional details.\n"]
14953    pub get_base_uri: ::std::option::Option<
14954        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14955    >,
14956    #[doc = "\n Returns the xml:lang scope within which the node resides. See\n http://www.w3.org/TR/REC-xml/#sec-lang-tag for additional details.\n"]
14957    pub get_xml_lang: ::std::option::Option<
14958        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14959    >,
14960    #[doc = "\n Returns true (1) if the node represents an NULL element. \"<a/>\" is\n considered NULL but \"<a></a>\" is not.\n"]
14961    pub is_empty_element: ::std::option::Option<
14962        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14963    >,
14964    #[doc = "\n Returns true (1) if the node has a text value.\n"]
14965    pub has_value: ::std::option::Option<
14966        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14967    >,
14968    #[doc = "\n Returns the text value.\n"]
14969    pub get_value: ::std::option::Option<
14970        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
14971    >,
14972    #[doc = "\n Returns true (1) if the node has attributes.\n"]
14973    pub has_attributes: ::std::option::Option<
14974        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
14975    >,
14976    #[doc = "\n Returns the number of attributes.\n"]
14977    pub get_attribute_count:
14978        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> usize>,
14979    #[doc = "\n Returns the value of the attribute at the specified 0-based index.\n"]
14980    pub get_attribute_byindex: ::std::option::Option<
14981        unsafe extern "C" fn(
14982            self_: *mut _cef_xml_reader_t,
14983            index: ::std::os::raw::c_int,
14984        ) -> cef_string_userfree_t,
14985    >,
14986    #[doc = "\n Returns the value of the attribute with the specified qualified name.\n"]
14987    pub get_attribute_byqname: ::std::option::Option<
14988        unsafe extern "C" fn(
14989            self_: *mut _cef_xml_reader_t,
14990            qualifiedName: *const cef_string_t,
14991        ) -> cef_string_userfree_t,
14992    >,
14993    #[doc = "\n Returns the value of the attribute with the specified local name and\n namespace URI.\n"]
14994    pub get_attribute_bylname: ::std::option::Option<
14995        unsafe extern "C" fn(
14996            self_: *mut _cef_xml_reader_t,
14997            localName: *const cef_string_t,
14998            namespaceURI: *const cef_string_t,
14999        ) -> cef_string_userfree_t,
15000    >,
15001    #[doc = "\n Returns an XML representation of the current node's children.\n"]
15002    pub get_inner_xml: ::std::option::Option<
15003        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
15004    >,
15005    #[doc = "\n Returns an XML representation of the current node including its children.\n"]
15006    pub get_outer_xml: ::std::option::Option<
15007        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> cef_string_userfree_t,
15008    >,
15009    #[doc = "\n Returns the line number for the current node.\n"]
15010    pub get_line_number: ::std::option::Option<
15011        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
15012    >,
15013    #[doc = "\n Moves the cursor to the attribute at the specified 0-based index. Returns\n true (1) if the cursor position was set successfully.\n"]
15014    pub move_to_attribute_byindex: ::std::option::Option<
15015        unsafe extern "C" fn(
15016            self_: *mut _cef_xml_reader_t,
15017            index: ::std::os::raw::c_int,
15018        ) -> ::std::os::raw::c_int,
15019    >,
15020    #[doc = "\n Moves the cursor to the attribute with the specified qualified name.\n Returns true (1) if the cursor position was set successfully.\n"]
15021    pub move_to_attribute_byqname: ::std::option::Option<
15022        unsafe extern "C" fn(
15023            self_: *mut _cef_xml_reader_t,
15024            qualifiedName: *const cef_string_t,
15025        ) -> ::std::os::raw::c_int,
15026    >,
15027    #[doc = "\n Moves the cursor to the attribute with the specified local name and\n namespace URI. Returns true (1) if the cursor position was set\n successfully.\n"]
15028    pub move_to_attribute_bylname: ::std::option::Option<
15029        unsafe extern "C" fn(
15030            self_: *mut _cef_xml_reader_t,
15031            localName: *const cef_string_t,
15032            namespaceURI: *const cef_string_t,
15033        ) -> ::std::os::raw::c_int,
15034    >,
15035    #[doc = "\n Moves the cursor to the first attribute in the current element. Returns\n true (1) if the cursor position was set successfully.\n"]
15036    pub move_to_first_attribute: ::std::option::Option<
15037        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
15038    >,
15039    #[doc = "\n Moves the cursor to the next attribute in the current element. Returns\n true (1) if the cursor position was set successfully.\n"]
15040    pub move_to_next_attribute: ::std::option::Option<
15041        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
15042    >,
15043    #[doc = "\n Moves the cursor back to the carrying element. Returns true (1) if the\n cursor position was set successfully.\n"]
15044    pub move_to_carrying_element: ::std::option::Option<
15045        unsafe extern "C" fn(self_: *mut _cef_xml_reader_t) -> ::std::os::raw::c_int,
15046    >,
15047}
15048#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15049const _: () = {
15050    ["Size of _cef_xml_reader_t"][::std::mem::size_of::<_cef_xml_reader_t>() - 272usize];
15051    ["Alignment of _cef_xml_reader_t"][::std::mem::align_of::<_cef_xml_reader_t>() - 8usize];
15052    ["Offset of field: _cef_xml_reader_t::base"]
15053        [::std::mem::offset_of!(_cef_xml_reader_t, base) - 0usize];
15054    ["Offset of field: _cef_xml_reader_t::move_to_next_node"]
15055        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_next_node) - 40usize];
15056    ["Offset of field: _cef_xml_reader_t::close"]
15057        [::std::mem::offset_of!(_cef_xml_reader_t, close) - 48usize];
15058    ["Offset of field: _cef_xml_reader_t::has_error"]
15059        [::std::mem::offset_of!(_cef_xml_reader_t, has_error) - 56usize];
15060    ["Offset of field: _cef_xml_reader_t::get_error"]
15061        [::std::mem::offset_of!(_cef_xml_reader_t, get_error) - 64usize];
15062    ["Offset of field: _cef_xml_reader_t::get_type"]
15063        [::std::mem::offset_of!(_cef_xml_reader_t, get_type) - 72usize];
15064    ["Offset of field: _cef_xml_reader_t::get_depth"]
15065        [::std::mem::offset_of!(_cef_xml_reader_t, get_depth) - 80usize];
15066    ["Offset of field: _cef_xml_reader_t::get_local_name"]
15067        [::std::mem::offset_of!(_cef_xml_reader_t, get_local_name) - 88usize];
15068    ["Offset of field: _cef_xml_reader_t::get_prefix"]
15069        [::std::mem::offset_of!(_cef_xml_reader_t, get_prefix) - 96usize];
15070    ["Offset of field: _cef_xml_reader_t::get_qualified_name"]
15071        [::std::mem::offset_of!(_cef_xml_reader_t, get_qualified_name) - 104usize];
15072    ["Offset of field: _cef_xml_reader_t::get_namespace_uri"]
15073        [::std::mem::offset_of!(_cef_xml_reader_t, get_namespace_uri) - 112usize];
15074    ["Offset of field: _cef_xml_reader_t::get_base_uri"]
15075        [::std::mem::offset_of!(_cef_xml_reader_t, get_base_uri) - 120usize];
15076    ["Offset of field: _cef_xml_reader_t::get_xml_lang"]
15077        [::std::mem::offset_of!(_cef_xml_reader_t, get_xml_lang) - 128usize];
15078    ["Offset of field: _cef_xml_reader_t::is_empty_element"]
15079        [::std::mem::offset_of!(_cef_xml_reader_t, is_empty_element) - 136usize];
15080    ["Offset of field: _cef_xml_reader_t::has_value"]
15081        [::std::mem::offset_of!(_cef_xml_reader_t, has_value) - 144usize];
15082    ["Offset of field: _cef_xml_reader_t::get_value"]
15083        [::std::mem::offset_of!(_cef_xml_reader_t, get_value) - 152usize];
15084    ["Offset of field: _cef_xml_reader_t::has_attributes"]
15085        [::std::mem::offset_of!(_cef_xml_reader_t, has_attributes) - 160usize];
15086    ["Offset of field: _cef_xml_reader_t::get_attribute_count"]
15087        [::std::mem::offset_of!(_cef_xml_reader_t, get_attribute_count) - 168usize];
15088    ["Offset of field: _cef_xml_reader_t::get_attribute_byindex"]
15089        [::std::mem::offset_of!(_cef_xml_reader_t, get_attribute_byindex) - 176usize];
15090    ["Offset of field: _cef_xml_reader_t::get_attribute_byqname"]
15091        [::std::mem::offset_of!(_cef_xml_reader_t, get_attribute_byqname) - 184usize];
15092    ["Offset of field: _cef_xml_reader_t::get_attribute_bylname"]
15093        [::std::mem::offset_of!(_cef_xml_reader_t, get_attribute_bylname) - 192usize];
15094    ["Offset of field: _cef_xml_reader_t::get_inner_xml"]
15095        [::std::mem::offset_of!(_cef_xml_reader_t, get_inner_xml) - 200usize];
15096    ["Offset of field: _cef_xml_reader_t::get_outer_xml"]
15097        [::std::mem::offset_of!(_cef_xml_reader_t, get_outer_xml) - 208usize];
15098    ["Offset of field: _cef_xml_reader_t::get_line_number"]
15099        [::std::mem::offset_of!(_cef_xml_reader_t, get_line_number) - 216usize];
15100    ["Offset of field: _cef_xml_reader_t::move_to_attribute_byindex"]
15101        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_attribute_byindex) - 224usize];
15102    ["Offset of field: _cef_xml_reader_t::move_to_attribute_byqname"]
15103        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_attribute_byqname) - 232usize];
15104    ["Offset of field: _cef_xml_reader_t::move_to_attribute_bylname"]
15105        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_attribute_bylname) - 240usize];
15106    ["Offset of field: _cef_xml_reader_t::move_to_first_attribute"]
15107        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_first_attribute) - 248usize];
15108    ["Offset of field: _cef_xml_reader_t::move_to_next_attribute"]
15109        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_next_attribute) - 256usize];
15110    ["Offset of field: _cef_xml_reader_t::move_to_carrying_element"]
15111        [::std::mem::offset_of!(_cef_xml_reader_t, move_to_carrying_element) - 264usize];
15112};
15113#[doc = "\n Structure that supports the reading of XML data via the libxml streaming\n API. The functions of this structure should only be called on the thread\n that creates the object.\n\n NOTE: This struct is allocated DLL-side.\n"]
15114pub type cef_xml_reader_t = _cef_xml_reader_t;
15115unsafe extern "C" {
15116    #[doc = "\n Create a new cef_xml_reader_t object. The returned object's functions can\n only be called from the thread that created the object.\n"]
15117    pub fn cef_xml_reader_create(
15118        stream: *mut _cef_stream_reader_t,
15119        encodingType: cef_xml_encoding_type_t,
15120        URI: *const cef_string_t,
15121    ) -> *mut cef_xml_reader_t;
15122}
15123#[doc = "\n Structure that supports the reading of zip archives via the zlib unzip API.\n The functions of this structure should only be called on the thread that\n creates the object.\n\n NOTE: This struct is allocated DLL-side.\n"]
15124#[repr(C)]
15125#[derive(Debug, Copy, Clone)]
15126pub struct _cef_zip_reader_t {
15127    #[doc = "\n Base structure.\n"]
15128    pub base: cef_base_ref_counted_t,
15129    #[doc = "\n Moves the cursor to the first file in the archive. Returns true (1) if the\n cursor position was set successfully.\n"]
15130    pub move_to_first_file: ::std::option::Option<
15131        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> ::std::os::raw::c_int,
15132    >,
15133    #[doc = "\n Moves the cursor to the next file in the archive. Returns true (1) if the\n cursor position was set successfully.\n"]
15134    pub move_to_next_file: ::std::option::Option<
15135        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> ::std::os::raw::c_int,
15136    >,
15137    #[doc = "\n Moves the cursor to the specified file in the archive. If |caseSensitive|\n is true (1) then the search will be case sensitive. Returns true (1) if\n the cursor position was set successfully.\n"]
15138    pub move_to_file: ::std::option::Option<
15139        unsafe extern "C" fn(
15140            self_: *mut _cef_zip_reader_t,
15141            fileName: *const cef_string_t,
15142            caseSensitive: ::std::os::raw::c_int,
15143        ) -> ::std::os::raw::c_int,
15144    >,
15145    #[doc = "\n Closes the archive. This should be called directly to ensure that cleanup\n occurs on the correct thread.\n"]
15146    pub close: ::std::option::Option<
15147        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> ::std::os::raw::c_int,
15148    >,
15149    #[doc = "\n Returns the name of the file.\n"]
15150    pub get_file_name: ::std::option::Option<
15151        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> cef_string_userfree_t,
15152    >,
15153    #[doc = "\n Returns the uncompressed size of the file.\n"]
15154    pub get_file_size:
15155        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> i64>,
15156    #[doc = "\n Returns the last modified timestamp for the file.\n"]
15157    pub get_file_last_modified: ::std::option::Option<
15158        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> cef_basetime_t,
15159    >,
15160    #[doc = "\n Opens the file for reading of uncompressed data. A read password may\n optionally be specified.\n"]
15161    pub open_file: ::std::option::Option<
15162        unsafe extern "C" fn(
15163            self_: *mut _cef_zip_reader_t,
15164            password: *const cef_string_t,
15165        ) -> ::std::os::raw::c_int,
15166    >,
15167    #[doc = "\n Closes the file.\n"]
15168    pub close_file: ::std::option::Option<
15169        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> ::std::os::raw::c_int,
15170    >,
15171    #[doc = "\n Read uncompressed file contents into the specified buffer. Returns < 0 if\n an error occurred, 0 if at the end of file, or the number of bytes read.\n"]
15172    pub read_file: ::std::option::Option<
15173        unsafe extern "C" fn(
15174            self_: *mut _cef_zip_reader_t,
15175            buffer: *mut ::std::os::raw::c_void,
15176            bufferSize: usize,
15177        ) -> ::std::os::raw::c_int,
15178    >,
15179    #[doc = "\n Returns the current offset in the uncompressed file contents.\n"]
15180    pub tell: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> i64>,
15181    #[doc = "\n Returns true (1) if at end of the file contents.\n"]
15182    pub eof: ::std::option::Option<
15183        unsafe extern "C" fn(self_: *mut _cef_zip_reader_t) -> ::std::os::raw::c_int,
15184    >,
15185}
15186#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15187const _: () = {
15188    ["Size of _cef_zip_reader_t"][::std::mem::size_of::<_cef_zip_reader_t>() - 136usize];
15189    ["Alignment of _cef_zip_reader_t"][::std::mem::align_of::<_cef_zip_reader_t>() - 8usize];
15190    ["Offset of field: _cef_zip_reader_t::base"]
15191        [::std::mem::offset_of!(_cef_zip_reader_t, base) - 0usize];
15192    ["Offset of field: _cef_zip_reader_t::move_to_first_file"]
15193        [::std::mem::offset_of!(_cef_zip_reader_t, move_to_first_file) - 40usize];
15194    ["Offset of field: _cef_zip_reader_t::move_to_next_file"]
15195        [::std::mem::offset_of!(_cef_zip_reader_t, move_to_next_file) - 48usize];
15196    ["Offset of field: _cef_zip_reader_t::move_to_file"]
15197        [::std::mem::offset_of!(_cef_zip_reader_t, move_to_file) - 56usize];
15198    ["Offset of field: _cef_zip_reader_t::close"]
15199        [::std::mem::offset_of!(_cef_zip_reader_t, close) - 64usize];
15200    ["Offset of field: _cef_zip_reader_t::get_file_name"]
15201        [::std::mem::offset_of!(_cef_zip_reader_t, get_file_name) - 72usize];
15202    ["Offset of field: _cef_zip_reader_t::get_file_size"]
15203        [::std::mem::offset_of!(_cef_zip_reader_t, get_file_size) - 80usize];
15204    ["Offset of field: _cef_zip_reader_t::get_file_last_modified"]
15205        [::std::mem::offset_of!(_cef_zip_reader_t, get_file_last_modified) - 88usize];
15206    ["Offset of field: _cef_zip_reader_t::open_file"]
15207        [::std::mem::offset_of!(_cef_zip_reader_t, open_file) - 96usize];
15208    ["Offset of field: _cef_zip_reader_t::close_file"]
15209        [::std::mem::offset_of!(_cef_zip_reader_t, close_file) - 104usize];
15210    ["Offset of field: _cef_zip_reader_t::read_file"]
15211        [::std::mem::offset_of!(_cef_zip_reader_t, read_file) - 112usize];
15212    ["Offset of field: _cef_zip_reader_t::tell"]
15213        [::std::mem::offset_of!(_cef_zip_reader_t, tell) - 120usize];
15214    ["Offset of field: _cef_zip_reader_t::eof"]
15215        [::std::mem::offset_of!(_cef_zip_reader_t, eof) - 128usize];
15216};
15217#[doc = "\n Structure that supports the reading of zip archives via the zlib unzip API.\n The functions of this structure should only be called on the thread that\n creates the object.\n\n NOTE: This struct is allocated DLL-side.\n"]
15218pub type cef_zip_reader_t = _cef_zip_reader_t;
15219unsafe extern "C" {
15220    #[doc = "\n Create a new cef_zip_reader_t object. The returned object's functions can\n only be called from the thread that created the object.\n"]
15221    pub fn cef_zip_reader_create(stream: *mut _cef_stream_reader_t) -> *mut cef_zip_reader_t;
15222}
15223#[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"]
15224#[repr(C)]
15225#[derive(Debug, Copy, Clone)]
15226pub struct _cef_layout_t {
15227    #[doc = "\n Base structure.\n"]
15228    pub base: cef_base_ref_counted_t,
15229    #[doc = "\n Returns this Layout as a BoxLayout or NULL if this is not a BoxLayout.\n"]
15230    pub as_box_layout: ::std::option::Option<
15231        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_box_layout_t,
15232    >,
15233    #[doc = "\n Returns this Layout as a FillLayout or NULL if this is not a FillLayout.\n"]
15234    pub as_fill_layout: ::std::option::Option<
15235        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> *mut _cef_fill_layout_t,
15236    >,
15237    #[doc = "\n Returns true (1) if this Layout is valid.\n"]
15238    pub is_valid: ::std::option::Option<
15239        unsafe extern "C" fn(self_: *mut _cef_layout_t) -> ::std::os::raw::c_int,
15240    >,
15241}
15242#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15243const _: () = {
15244    ["Size of _cef_layout_t"][::std::mem::size_of::<_cef_layout_t>() - 64usize];
15245    ["Alignment of _cef_layout_t"][::std::mem::align_of::<_cef_layout_t>() - 8usize];
15246    ["Offset of field: _cef_layout_t::base"][::std::mem::offset_of!(_cef_layout_t, base) - 0usize];
15247    ["Offset of field: _cef_layout_t::as_box_layout"]
15248        [::std::mem::offset_of!(_cef_layout_t, as_box_layout) - 40usize];
15249    ["Offset of field: _cef_layout_t::as_fill_layout"]
15250        [::std::mem::offset_of!(_cef_layout_t, as_fill_layout) - 48usize];
15251    ["Offset of field: _cef_layout_t::is_valid"]
15252        [::std::mem::offset_of!(_cef_layout_t, is_valid) - 56usize];
15253};
15254#[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"]
15255pub type cef_layout_t = _cef_layout_t;
15256#[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"]
15257#[repr(C)]
15258#[derive(Debug, Copy, Clone)]
15259pub struct _cef_box_layout_t {
15260    #[doc = "\n Base structure.\n"]
15261    pub base: cef_layout_t,
15262    #[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"]
15263    pub set_flex_for_view: ::std::option::Option<
15264        unsafe extern "C" fn(
15265            self_: *mut _cef_box_layout_t,
15266            view: *mut _cef_view_t,
15267            flex: ::std::os::raw::c_int,
15268        ),
15269    >,
15270    #[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"]
15271    pub clear_flex_for_view: ::std::option::Option<
15272        unsafe extern "C" fn(self_: *mut _cef_box_layout_t, view: *mut _cef_view_t),
15273    >,
15274}
15275#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15276const _: () = {
15277    ["Size of _cef_box_layout_t"][::std::mem::size_of::<_cef_box_layout_t>() - 80usize];
15278    ["Alignment of _cef_box_layout_t"][::std::mem::align_of::<_cef_box_layout_t>() - 8usize];
15279    ["Offset of field: _cef_box_layout_t::base"]
15280        [::std::mem::offset_of!(_cef_box_layout_t, base) - 0usize];
15281    ["Offset of field: _cef_box_layout_t::set_flex_for_view"]
15282        [::std::mem::offset_of!(_cef_box_layout_t, set_flex_for_view) - 64usize];
15283    ["Offset of field: _cef_box_layout_t::clear_flex_for_view"]
15284        [::std::mem::offset_of!(_cef_box_layout_t, clear_flex_for_view) - 72usize];
15285};
15286#[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"]
15287pub type cef_box_layout_t = _cef_box_layout_t;
15288#[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"]
15289#[repr(C)]
15290#[derive(Debug, Copy, Clone)]
15291pub struct _cef_view_delegate_t {
15292    #[doc = "\n Base structure.\n"]
15293    pub base: cef_base_ref_counted_t,
15294    #[doc = "\n Return the preferred size for |view|. The Layout will use this information\n to determine the display size.\n"]
15295    pub get_preferred_size: ::std::option::Option<
15296        unsafe extern "C" fn(
15297            self_: *mut _cef_view_delegate_t,
15298            view: *mut _cef_view_t,
15299        ) -> cef_size_t,
15300    >,
15301    #[doc = "\n Return the minimum size for |view|.\n"]
15302    pub get_minimum_size: ::std::option::Option<
15303        unsafe extern "C" fn(
15304            self_: *mut _cef_view_delegate_t,
15305            view: *mut _cef_view_t,
15306        ) -> cef_size_t,
15307    >,
15308    #[doc = "\n Return the maximum size for |view|.\n"]
15309    pub get_maximum_size: ::std::option::Option<
15310        unsafe extern "C" fn(
15311            self_: *mut _cef_view_delegate_t,
15312            view: *mut _cef_view_t,
15313        ) -> cef_size_t,
15314    >,
15315    #[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"]
15316    pub get_height_for_width: ::std::option::Option<
15317        unsafe extern "C" fn(
15318            self_: *mut _cef_view_delegate_t,
15319            view: *mut _cef_view_t,
15320            width: ::std::os::raw::c_int,
15321        ) -> ::std::os::raw::c_int,
15322    >,
15323    #[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"]
15324    pub on_parent_view_changed: ::std::option::Option<
15325        unsafe extern "C" fn(
15326            self_: *mut _cef_view_delegate_t,
15327            view: *mut _cef_view_t,
15328            added: ::std::os::raw::c_int,
15329            parent: *mut _cef_view_t,
15330        ),
15331    >,
15332    #[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"]
15333    pub on_child_view_changed: ::std::option::Option<
15334        unsafe extern "C" fn(
15335            self_: *mut _cef_view_delegate_t,
15336            view: *mut _cef_view_t,
15337            added: ::std::os::raw::c_int,
15338            child: *mut _cef_view_t,
15339        ),
15340    >,
15341    #[doc = "\n Called when |view| is added or removed from the cef_window_t.\n"]
15342    pub on_window_changed: ::std::option::Option<
15343        unsafe extern "C" fn(
15344            self_: *mut _cef_view_delegate_t,
15345            view: *mut _cef_view_t,
15346            added: ::std::os::raw::c_int,
15347        ),
15348    >,
15349    #[doc = "\n Called when the layout of |view| has changed.\n"]
15350    pub on_layout_changed: ::std::option::Option<
15351        unsafe extern "C" fn(
15352            self_: *mut _cef_view_delegate_t,
15353            view: *mut _cef_view_t,
15354            new_bounds: *const cef_rect_t,
15355        ),
15356    >,
15357    #[doc = "\n Called when |view| gains focus.\n"]
15358    pub on_focus: ::std::option::Option<
15359        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
15360    >,
15361    #[doc = "\n Called when |view| loses focus.\n"]
15362    pub on_blur: ::std::option::Option<
15363        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
15364    >,
15365    #[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"]
15366    pub on_theme_changed: ::std::option::Option<
15367        unsafe extern "C" fn(self_: *mut _cef_view_delegate_t, view: *mut _cef_view_t),
15368    >,
15369}
15370#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15371const _: () = {
15372    ["Size of _cef_view_delegate_t"][::std::mem::size_of::<_cef_view_delegate_t>() - 128usize];
15373    ["Alignment of _cef_view_delegate_t"][::std::mem::align_of::<_cef_view_delegate_t>() - 8usize];
15374    ["Offset of field: _cef_view_delegate_t::base"]
15375        [::std::mem::offset_of!(_cef_view_delegate_t, base) - 0usize];
15376    ["Offset of field: _cef_view_delegate_t::get_preferred_size"]
15377        [::std::mem::offset_of!(_cef_view_delegate_t, get_preferred_size) - 40usize];
15378    ["Offset of field: _cef_view_delegate_t::get_minimum_size"]
15379        [::std::mem::offset_of!(_cef_view_delegate_t, get_minimum_size) - 48usize];
15380    ["Offset of field: _cef_view_delegate_t::get_maximum_size"]
15381        [::std::mem::offset_of!(_cef_view_delegate_t, get_maximum_size) - 56usize];
15382    ["Offset of field: _cef_view_delegate_t::get_height_for_width"]
15383        [::std::mem::offset_of!(_cef_view_delegate_t, get_height_for_width) - 64usize];
15384    ["Offset of field: _cef_view_delegate_t::on_parent_view_changed"]
15385        [::std::mem::offset_of!(_cef_view_delegate_t, on_parent_view_changed) - 72usize];
15386    ["Offset of field: _cef_view_delegate_t::on_child_view_changed"]
15387        [::std::mem::offset_of!(_cef_view_delegate_t, on_child_view_changed) - 80usize];
15388    ["Offset of field: _cef_view_delegate_t::on_window_changed"]
15389        [::std::mem::offset_of!(_cef_view_delegate_t, on_window_changed) - 88usize];
15390    ["Offset of field: _cef_view_delegate_t::on_layout_changed"]
15391        [::std::mem::offset_of!(_cef_view_delegate_t, on_layout_changed) - 96usize];
15392    ["Offset of field: _cef_view_delegate_t::on_focus"]
15393        [::std::mem::offset_of!(_cef_view_delegate_t, on_focus) - 104usize];
15394    ["Offset of field: _cef_view_delegate_t::on_blur"]
15395        [::std::mem::offset_of!(_cef_view_delegate_t, on_blur) - 112usize];
15396    ["Offset of field: _cef_view_delegate_t::on_theme_changed"]
15397        [::std::mem::offset_of!(_cef_view_delegate_t, on_theme_changed) - 120usize];
15398};
15399#[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"]
15400pub type cef_view_delegate_t = _cef_view_delegate_t;
15401#[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"]
15402#[repr(C)]
15403#[derive(Debug, Copy, Clone)]
15404pub struct _cef_browser_view_delegate_t {
15405    #[doc = "\n Base structure.\n"]
15406    pub base: cef_view_delegate_t,
15407    #[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"]
15408    pub on_browser_created: ::std::option::Option<
15409        unsafe extern "C" fn(
15410            self_: *mut _cef_browser_view_delegate_t,
15411            browser_view: *mut _cef_browser_view_t,
15412            browser: *mut _cef_browser_t,
15413        ),
15414    >,
15415    #[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"]
15416    pub on_browser_destroyed: ::std::option::Option<
15417        unsafe extern "C" fn(
15418            self_: *mut _cef_browser_view_delegate_t,
15419            browser_view: *mut _cef_browser_view_t,
15420            browser: *mut _cef_browser_t,
15421        ),
15422    >,
15423    #[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"]
15424    pub get_delegate_for_popup_browser_view: ::std::option::Option<
15425        unsafe extern "C" fn(
15426            self_: *mut _cef_browser_view_delegate_t,
15427            browser_view: *mut _cef_browser_view_t,
15428            settings: *const _cef_browser_settings_t,
15429            client: *mut _cef_client_t,
15430            is_devtools: ::std::os::raw::c_int,
15431        ) -> *mut _cef_browser_view_delegate_t,
15432    >,
15433    #[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"]
15434    pub on_popup_browser_view_created: ::std::option::Option<
15435        unsafe extern "C" fn(
15436            self_: *mut _cef_browser_view_delegate_t,
15437            browser_view: *mut _cef_browser_view_t,
15438            popup_browser_view: *mut _cef_browser_view_t,
15439            is_devtools: ::std::os::raw::c_int,
15440        ) -> ::std::os::raw::c_int,
15441    >,
15442    #[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"]
15443    pub get_chrome_toolbar_type: ::std::option::Option<
15444        unsafe extern "C" fn(
15445            self_: *mut _cef_browser_view_delegate_t,
15446            browser_view: *mut _cef_browser_view_t,
15447        ) -> cef_chrome_toolbar_type_t,
15448    >,
15449    #[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"]
15450    pub use_frameless_window_for_picture_in_picture: ::std::option::Option<
15451        unsafe extern "C" fn(
15452            self_: *mut _cef_browser_view_delegate_t,
15453            browser_view: *mut _cef_browser_view_t,
15454        ) -> ::std::os::raw::c_int,
15455    >,
15456    #[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"]
15457    pub on_gesture_command: ::std::option::Option<
15458        unsafe extern "C" fn(
15459            self_: *mut _cef_browser_view_delegate_t,
15460            browser_view: *mut _cef_browser_view_t,
15461            gesture_command: cef_gesture_command_t,
15462        ) -> ::std::os::raw::c_int,
15463    >,
15464    #[doc = "\n Optionally change the runtime style for this BrowserView. See\n cef_runtime_style_t documentation for details.\n"]
15465    pub get_browser_runtime_style: ::std::option::Option<
15466        unsafe extern "C" fn(self_: *mut _cef_browser_view_delegate_t) -> cef_runtime_style_t,
15467    >,
15468    #[doc = "\n Return true (1) to allow the use of JavaScript moveTo/By() and\n resizeTo/By() (without user activation) with Document picture-in-picture\n popups.\n"]
15469    pub allow_move_for_picture_in_picture: ::std::option::Option<
15470        unsafe extern "C" fn(
15471            self_: *mut _cef_browser_view_delegate_t,
15472            browser_view: *mut _cef_browser_view_t,
15473        ) -> ::std::os::raw::c_int,
15474    >,
15475    #[doc = "\n Return true (1) to allow opening Document picture-in-picture without user\n activation. Default is false (0) (user activation required).\n"]
15476    pub allow_picture_in_picture_without_user_activation: ::std::option::Option<
15477        unsafe extern "C" fn(
15478            self_: *mut _cef_browser_view_delegate_t,
15479            browser_view: *mut _cef_browser_view_t,
15480        ) -> ::std::os::raw::c_int,
15481    >,
15482}
15483#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15484const _: () = {
15485    ["Size of _cef_browser_view_delegate_t"]
15486        [::std::mem::size_of::<_cef_browser_view_delegate_t>() - 208usize];
15487    ["Alignment of _cef_browser_view_delegate_t"]
15488        [::std::mem::align_of::<_cef_browser_view_delegate_t>() - 8usize];
15489    ["Offset of field: _cef_browser_view_delegate_t::base"]
15490        [::std::mem::offset_of!(_cef_browser_view_delegate_t, base) - 0usize];
15491    ["Offset of field: _cef_browser_view_delegate_t::on_browser_created"]
15492        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_browser_created) - 128usize];
15493    ["Offset of field: _cef_browser_view_delegate_t::on_browser_destroyed"]
15494        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_browser_destroyed) - 136usize];
15495    ["Offset of field: _cef_browser_view_delegate_t::get_delegate_for_popup_browser_view"][::std::mem::offset_of!(
15496        _cef_browser_view_delegate_t,
15497        get_delegate_for_popup_browser_view
15498    )
15499        - 144usize];
15500    ["Offset of field: _cef_browser_view_delegate_t::on_popup_browser_view_created"][::std::mem::offset_of!(
15501        _cef_browser_view_delegate_t,
15502        on_popup_browser_view_created
15503    ) - 152usize];
15504    ["Offset of field: _cef_browser_view_delegate_t::get_chrome_toolbar_type"]
15505        [::std::mem::offset_of!(_cef_browser_view_delegate_t, get_chrome_toolbar_type) - 160usize];
15506    ["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] ;
15507    ["Offset of field: _cef_browser_view_delegate_t::on_gesture_command"]
15508        [::std::mem::offset_of!(_cef_browser_view_delegate_t, on_gesture_command) - 176usize];
15509    ["Offset of field: _cef_browser_view_delegate_t::get_browser_runtime_style"][::std::mem::offset_of!(
15510        _cef_browser_view_delegate_t,
15511        get_browser_runtime_style
15512    ) - 184usize];
15513    ["Offset of field: _cef_browser_view_delegate_t::allow_move_for_picture_in_picture"][::std::mem::offset_of!(
15514        _cef_browser_view_delegate_t,
15515        allow_move_for_picture_in_picture
15516    )
15517        - 192usize];
15518    ["Offset of field: _cef_browser_view_delegate_t::allow_picture_in_picture_without_user_activation"] [:: std :: mem :: offset_of ! (_cef_browser_view_delegate_t , allow_picture_in_picture_without_user_activation) - 200usize] ;
15519};
15520#[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"]
15521pub type cef_browser_view_delegate_t = _cef_browser_view_delegate_t;
15522#[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"]
15523#[repr(C)]
15524#[derive(Debug, Copy, Clone)]
15525pub struct _cef_view_t {
15526    #[doc = "\n Base structure.\n"]
15527    pub base: cef_base_ref_counted_t,
15528    #[doc = "\n Returns this View as a BrowserView or NULL if this is not a BrowserView.\n"]
15529    pub as_browser_view: ::std::option::Option<
15530        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_browser_view_t,
15531    >,
15532    #[doc = "\n Returns this View as a Button or NULL if this is not a Button.\n"]
15533    pub as_button:
15534        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_button_t>,
15535    #[doc = "\n Returns this View as a Panel or NULL if this is not a Panel.\n"]
15536    pub as_panel:
15537        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_panel_t>,
15538    #[doc = "\n Returns this View as a ScrollView or NULL if this is not a ScrollView.\n"]
15539    pub as_scroll_view: ::std::option::Option<
15540        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_scroll_view_t,
15541    >,
15542    #[doc = "\n Returns this View as a Textfield or NULL if this is not a Textfield.\n"]
15543    pub as_textfield: ::std::option::Option<
15544        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_textfield_t,
15545    >,
15546    #[doc = "\n Returns the type of this View as a string. Used primarily for testing\n purposes.\n"]
15547    pub get_type_string: ::std::option::Option<
15548        unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_string_userfree_t,
15549    >,
15550    #[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"]
15551    pub to_string: ::std::option::Option<
15552        unsafe extern "C" fn(
15553            self_: *mut _cef_view_t,
15554            include_children: ::std::os::raw::c_int,
15555        ) -> cef_string_userfree_t,
15556    >,
15557    #[doc = "\n Returns true (1) if this View is valid.\n"]
15558    pub is_valid: ::std::option::Option<
15559        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15560    >,
15561    #[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"]
15562    pub is_attached: ::std::option::Option<
15563        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15564    >,
15565    #[doc = "\n Returns true (1) if this View is the same as |that| View.\n"]
15566    pub is_same: ::std::option::Option<
15567        unsafe extern "C" fn(
15568            self_: *mut _cef_view_t,
15569            that: *mut _cef_view_t,
15570        ) -> ::std::os::raw::c_int,
15571    >,
15572    #[doc = "\n Returns the delegate associated with this View, if any.\n"]
15573    pub get_delegate: ::std::option::Option<
15574        unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_view_delegate_t,
15575    >,
15576    #[doc = "\n Returns the top-level Window hosting this View, if any.\n"]
15577    pub get_window:
15578        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_window_t>,
15579    #[doc = "\n Returns the ID for this View.\n"]
15580    pub get_id: ::std::option::Option<
15581        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15582    >,
15583    #[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"]
15584    pub set_id: ::std::option::Option<
15585        unsafe extern "C" fn(self_: *mut _cef_view_t, id: ::std::os::raw::c_int),
15586    >,
15587    #[doc = "\n Returns the group id of this View, or -1 if not set.\n"]
15588    pub get_group_id: ::std::option::Option<
15589        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15590    >,
15591    #[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"]
15592    pub set_group_id: ::std::option::Option<
15593        unsafe extern "C" fn(self_: *mut _cef_view_t, group_id: ::std::os::raw::c_int),
15594    >,
15595    #[doc = "\n Returns the View that contains this View, if any.\n"]
15596    pub get_parent_view:
15597        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> *mut _cef_view_t>,
15598    #[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"]
15599    pub get_view_for_id: ::std::option::Option<
15600        unsafe extern "C" fn(
15601            self_: *mut _cef_view_t,
15602            id: ::std::os::raw::c_int,
15603        ) -> *mut _cef_view_t,
15604    >,
15605    #[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"]
15606    pub set_bounds: ::std::option::Option<
15607        unsafe extern "C" fn(self_: *mut _cef_view_t, bounds: *const cef_rect_t),
15608    >,
15609    #[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"]
15610    pub get_bounds:
15611        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_rect_t>,
15612    #[doc = "\n Returns the bounds (size and position) of this View in DIP screen\n coordinates.\n"]
15613    pub get_bounds_in_screen:
15614        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_rect_t>,
15615    #[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"]
15616    pub set_size: ::std::option::Option<
15617        unsafe extern "C" fn(self_: *mut _cef_view_t, size: *const cef_size_t),
15618    >,
15619    #[doc = "\n Returns the size of this View in parent coordinates, or DIP screen\n coordinates if there is no parent.\n"]
15620    pub get_size:
15621        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
15622    #[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"]
15623    pub set_position: ::std::option::Option<
15624        unsafe extern "C" fn(self_: *mut _cef_view_t, position: *const cef_point_t),
15625    >,
15626    #[doc = "\n Returns the position of this View. Position is in parent coordinates, or\n DIP screen coordinates if there is no parent.\n"]
15627    pub get_position:
15628        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_point_t>,
15629    #[doc = "\n Sets the insets for this View. |insets| is in parent coordinates, or DIP\n screen coordinates if there is no parent.\n"]
15630    pub set_insets: ::std::option::Option<
15631        unsafe extern "C" fn(self_: *mut _cef_view_t, insets: *const cef_insets_t),
15632    >,
15633    #[doc = "\n Returns the insets for this View in parent coordinates, or DIP screen\n coordinates if there is no parent.\n"]
15634    pub get_insets:
15635        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_insets_t>,
15636    #[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"]
15637    pub get_preferred_size:
15638        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
15639    #[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"]
15640    pub size_to_preferred_size:
15641        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
15642    #[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"]
15643    pub get_minimum_size:
15644        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
15645    #[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"]
15646    pub get_maximum_size:
15647        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_size_t>,
15648    #[doc = "\n Returns the height necessary to display this View with the provided width.\n"]
15649    pub get_height_for_width: ::std::option::Option<
15650        unsafe extern "C" fn(
15651            self_: *mut _cef_view_t,
15652            width: ::std::os::raw::c_int,
15653        ) -> ::std::os::raw::c_int,
15654    >,
15655    #[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"]
15656    pub invalidate_layout: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
15657    #[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"]
15658    pub set_visible: ::std::option::Option<
15659        unsafe extern "C" fn(self_: *mut _cef_view_t, visible: ::std::os::raw::c_int),
15660    >,
15661    #[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"]
15662    pub is_visible: ::std::option::Option<
15663        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15664    >,
15665    #[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"]
15666    pub is_drawn: ::std::option::Option<
15667        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15668    >,
15669    #[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"]
15670    pub set_enabled: ::std::option::Option<
15671        unsafe extern "C" fn(self_: *mut _cef_view_t, enabled: ::std::os::raw::c_int),
15672    >,
15673    #[doc = "\n Returns whether this View is enabled.\n"]
15674    pub is_enabled: ::std::option::Option<
15675        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15676    >,
15677    #[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"]
15678    pub set_focusable: ::std::option::Option<
15679        unsafe extern "C" fn(self_: *mut _cef_view_t, focusable: ::std::os::raw::c_int),
15680    >,
15681    #[doc = "\n Returns true (1) if this View is focusable, enabled and drawn.\n"]
15682    pub is_focusable: ::std::option::Option<
15683        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15684    >,
15685    #[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"]
15686    pub is_accessibility_focusable: ::std::option::Option<
15687        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15688    >,
15689    #[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"]
15690    pub has_focus: ::std::option::Option<
15691        unsafe extern "C" fn(self_: *mut _cef_view_t) -> ::std::os::raw::c_int,
15692    >,
15693    #[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"]
15694    pub request_focus: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t)>,
15695    #[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"]
15696    pub set_background_color:
15697        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t, color: cef_color_t)>,
15698    #[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"]
15699    pub get_background_color:
15700        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_view_t) -> cef_color_t>,
15701    #[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"]
15702    pub get_theme_color: ::std::option::Option<
15703        unsafe extern "C" fn(
15704            self_: *mut _cef_view_t,
15705            color_id: ::std::os::raw::c_int,
15706        ) -> cef_color_t,
15707    >,
15708    #[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"]
15709    pub convert_point_to_screen: ::std::option::Option<
15710        unsafe extern "C" fn(
15711            self_: *mut _cef_view_t,
15712            point: *mut cef_point_t,
15713        ) -> ::std::os::raw::c_int,
15714    >,
15715    #[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"]
15716    pub convert_point_from_screen: ::std::option::Option<
15717        unsafe extern "C" fn(
15718            self_: *mut _cef_view_t,
15719            point: *mut cef_point_t,
15720        ) -> ::std::os::raw::c_int,
15721    >,
15722    #[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"]
15723    pub convert_point_to_window: ::std::option::Option<
15724        unsafe extern "C" fn(
15725            self_: *mut _cef_view_t,
15726            point: *mut cef_point_t,
15727        ) -> ::std::os::raw::c_int,
15728    >,
15729    #[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"]
15730    pub convert_point_from_window: ::std::option::Option<
15731        unsafe extern "C" fn(
15732            self_: *mut _cef_view_t,
15733            point: *mut cef_point_t,
15734        ) -> ::std::os::raw::c_int,
15735    >,
15736    #[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"]
15737    pub convert_point_to_view: ::std::option::Option<
15738        unsafe extern "C" fn(
15739            self_: *mut _cef_view_t,
15740            view: *mut _cef_view_t,
15741            point: *mut cef_point_t,
15742        ) -> ::std::os::raw::c_int,
15743    >,
15744    #[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"]
15745    pub convert_point_from_view: ::std::option::Option<
15746        unsafe extern "C" fn(
15747            self_: *mut _cef_view_t,
15748            view: *mut _cef_view_t,
15749            point: *mut cef_point_t,
15750        ) -> ::std::os::raw::c_int,
15751    >,
15752}
15753#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15754const _: () = {
15755    ["Size of _cef_view_t"][::std::mem::size_of::<_cef_view_t>() - 456usize];
15756    ["Alignment of _cef_view_t"][::std::mem::align_of::<_cef_view_t>() - 8usize];
15757    ["Offset of field: _cef_view_t::base"][::std::mem::offset_of!(_cef_view_t, base) - 0usize];
15758    ["Offset of field: _cef_view_t::as_browser_view"]
15759        [::std::mem::offset_of!(_cef_view_t, as_browser_view) - 40usize];
15760    ["Offset of field: _cef_view_t::as_button"]
15761        [::std::mem::offset_of!(_cef_view_t, as_button) - 48usize];
15762    ["Offset of field: _cef_view_t::as_panel"]
15763        [::std::mem::offset_of!(_cef_view_t, as_panel) - 56usize];
15764    ["Offset of field: _cef_view_t::as_scroll_view"]
15765        [::std::mem::offset_of!(_cef_view_t, as_scroll_view) - 64usize];
15766    ["Offset of field: _cef_view_t::as_textfield"]
15767        [::std::mem::offset_of!(_cef_view_t, as_textfield) - 72usize];
15768    ["Offset of field: _cef_view_t::get_type_string"]
15769        [::std::mem::offset_of!(_cef_view_t, get_type_string) - 80usize];
15770    ["Offset of field: _cef_view_t::to_string"]
15771        [::std::mem::offset_of!(_cef_view_t, to_string) - 88usize];
15772    ["Offset of field: _cef_view_t::is_valid"]
15773        [::std::mem::offset_of!(_cef_view_t, is_valid) - 96usize];
15774    ["Offset of field: _cef_view_t::is_attached"]
15775        [::std::mem::offset_of!(_cef_view_t, is_attached) - 104usize];
15776    ["Offset of field: _cef_view_t::is_same"]
15777        [::std::mem::offset_of!(_cef_view_t, is_same) - 112usize];
15778    ["Offset of field: _cef_view_t::get_delegate"]
15779        [::std::mem::offset_of!(_cef_view_t, get_delegate) - 120usize];
15780    ["Offset of field: _cef_view_t::get_window"]
15781        [::std::mem::offset_of!(_cef_view_t, get_window) - 128usize];
15782    ["Offset of field: _cef_view_t::get_id"]
15783        [::std::mem::offset_of!(_cef_view_t, get_id) - 136usize];
15784    ["Offset of field: _cef_view_t::set_id"]
15785        [::std::mem::offset_of!(_cef_view_t, set_id) - 144usize];
15786    ["Offset of field: _cef_view_t::get_group_id"]
15787        [::std::mem::offset_of!(_cef_view_t, get_group_id) - 152usize];
15788    ["Offset of field: _cef_view_t::set_group_id"]
15789        [::std::mem::offset_of!(_cef_view_t, set_group_id) - 160usize];
15790    ["Offset of field: _cef_view_t::get_parent_view"]
15791        [::std::mem::offset_of!(_cef_view_t, get_parent_view) - 168usize];
15792    ["Offset of field: _cef_view_t::get_view_for_id"]
15793        [::std::mem::offset_of!(_cef_view_t, get_view_for_id) - 176usize];
15794    ["Offset of field: _cef_view_t::set_bounds"]
15795        [::std::mem::offset_of!(_cef_view_t, set_bounds) - 184usize];
15796    ["Offset of field: _cef_view_t::get_bounds"]
15797        [::std::mem::offset_of!(_cef_view_t, get_bounds) - 192usize];
15798    ["Offset of field: _cef_view_t::get_bounds_in_screen"]
15799        [::std::mem::offset_of!(_cef_view_t, get_bounds_in_screen) - 200usize];
15800    ["Offset of field: _cef_view_t::set_size"]
15801        [::std::mem::offset_of!(_cef_view_t, set_size) - 208usize];
15802    ["Offset of field: _cef_view_t::get_size"]
15803        [::std::mem::offset_of!(_cef_view_t, get_size) - 216usize];
15804    ["Offset of field: _cef_view_t::set_position"]
15805        [::std::mem::offset_of!(_cef_view_t, set_position) - 224usize];
15806    ["Offset of field: _cef_view_t::get_position"]
15807        [::std::mem::offset_of!(_cef_view_t, get_position) - 232usize];
15808    ["Offset of field: _cef_view_t::set_insets"]
15809        [::std::mem::offset_of!(_cef_view_t, set_insets) - 240usize];
15810    ["Offset of field: _cef_view_t::get_insets"]
15811        [::std::mem::offset_of!(_cef_view_t, get_insets) - 248usize];
15812    ["Offset of field: _cef_view_t::get_preferred_size"]
15813        [::std::mem::offset_of!(_cef_view_t, get_preferred_size) - 256usize];
15814    ["Offset of field: _cef_view_t::size_to_preferred_size"]
15815        [::std::mem::offset_of!(_cef_view_t, size_to_preferred_size) - 264usize];
15816    ["Offset of field: _cef_view_t::get_minimum_size"]
15817        [::std::mem::offset_of!(_cef_view_t, get_minimum_size) - 272usize];
15818    ["Offset of field: _cef_view_t::get_maximum_size"]
15819        [::std::mem::offset_of!(_cef_view_t, get_maximum_size) - 280usize];
15820    ["Offset of field: _cef_view_t::get_height_for_width"]
15821        [::std::mem::offset_of!(_cef_view_t, get_height_for_width) - 288usize];
15822    ["Offset of field: _cef_view_t::invalidate_layout"]
15823        [::std::mem::offset_of!(_cef_view_t, invalidate_layout) - 296usize];
15824    ["Offset of field: _cef_view_t::set_visible"]
15825        [::std::mem::offset_of!(_cef_view_t, set_visible) - 304usize];
15826    ["Offset of field: _cef_view_t::is_visible"]
15827        [::std::mem::offset_of!(_cef_view_t, is_visible) - 312usize];
15828    ["Offset of field: _cef_view_t::is_drawn"]
15829        [::std::mem::offset_of!(_cef_view_t, is_drawn) - 320usize];
15830    ["Offset of field: _cef_view_t::set_enabled"]
15831        [::std::mem::offset_of!(_cef_view_t, set_enabled) - 328usize];
15832    ["Offset of field: _cef_view_t::is_enabled"]
15833        [::std::mem::offset_of!(_cef_view_t, is_enabled) - 336usize];
15834    ["Offset of field: _cef_view_t::set_focusable"]
15835        [::std::mem::offset_of!(_cef_view_t, set_focusable) - 344usize];
15836    ["Offset of field: _cef_view_t::is_focusable"]
15837        [::std::mem::offset_of!(_cef_view_t, is_focusable) - 352usize];
15838    ["Offset of field: _cef_view_t::is_accessibility_focusable"]
15839        [::std::mem::offset_of!(_cef_view_t, is_accessibility_focusable) - 360usize];
15840    ["Offset of field: _cef_view_t::has_focus"]
15841        [::std::mem::offset_of!(_cef_view_t, has_focus) - 368usize];
15842    ["Offset of field: _cef_view_t::request_focus"]
15843        [::std::mem::offset_of!(_cef_view_t, request_focus) - 376usize];
15844    ["Offset of field: _cef_view_t::set_background_color"]
15845        [::std::mem::offset_of!(_cef_view_t, set_background_color) - 384usize];
15846    ["Offset of field: _cef_view_t::get_background_color"]
15847        [::std::mem::offset_of!(_cef_view_t, get_background_color) - 392usize];
15848    ["Offset of field: _cef_view_t::get_theme_color"]
15849        [::std::mem::offset_of!(_cef_view_t, get_theme_color) - 400usize];
15850    ["Offset of field: _cef_view_t::convert_point_to_screen"]
15851        [::std::mem::offset_of!(_cef_view_t, convert_point_to_screen) - 408usize];
15852    ["Offset of field: _cef_view_t::convert_point_from_screen"]
15853        [::std::mem::offset_of!(_cef_view_t, convert_point_from_screen) - 416usize];
15854    ["Offset of field: _cef_view_t::convert_point_to_window"]
15855        [::std::mem::offset_of!(_cef_view_t, convert_point_to_window) - 424usize];
15856    ["Offset of field: _cef_view_t::convert_point_from_window"]
15857        [::std::mem::offset_of!(_cef_view_t, convert_point_from_window) - 432usize];
15858    ["Offset of field: _cef_view_t::convert_point_to_view"]
15859        [::std::mem::offset_of!(_cef_view_t, convert_point_to_view) - 440usize];
15860    ["Offset of field: _cef_view_t::convert_point_from_view"]
15861        [::std::mem::offset_of!(_cef_view_t, convert_point_from_view) - 448usize];
15862};
15863#[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"]
15864pub type cef_view_t = _cef_view_t;
15865#[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"]
15866#[repr(C)]
15867#[derive(Debug, Copy, Clone)]
15868pub struct _cef_browser_view_t {
15869    #[doc = "\n Base structure.\n"]
15870    pub base: cef_view_t,
15871    #[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"]
15872    pub get_browser: ::std::option::Option<
15873        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> *mut _cef_browser_t,
15874    >,
15875    #[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"]
15876    pub get_chrome_toolbar: ::std::option::Option<
15877        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> *mut _cef_view_t,
15878    >,
15879    #[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"]
15880    pub set_prefer_accelerators: ::std::option::Option<
15881        unsafe extern "C" fn(
15882            self_: *mut _cef_browser_view_t,
15883            prefer_accelerators: ::std::os::raw::c_int,
15884        ),
15885    >,
15886    #[doc = "\n Returns the runtime style for this BrowserView (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
15887    pub get_runtime_style: ::std::option::Option<
15888        unsafe extern "C" fn(self_: *mut _cef_browser_view_t) -> cef_runtime_style_t,
15889    >,
15890}
15891#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15892const _: () = {
15893    ["Size of _cef_browser_view_t"][::std::mem::size_of::<_cef_browser_view_t>() - 488usize];
15894    ["Alignment of _cef_browser_view_t"][::std::mem::align_of::<_cef_browser_view_t>() - 8usize];
15895    ["Offset of field: _cef_browser_view_t::base"]
15896        [::std::mem::offset_of!(_cef_browser_view_t, base) - 0usize];
15897    ["Offset of field: _cef_browser_view_t::get_browser"]
15898        [::std::mem::offset_of!(_cef_browser_view_t, get_browser) - 456usize];
15899    ["Offset of field: _cef_browser_view_t::get_chrome_toolbar"]
15900        [::std::mem::offset_of!(_cef_browser_view_t, get_chrome_toolbar) - 464usize];
15901    ["Offset of field: _cef_browser_view_t::set_prefer_accelerators"]
15902        [::std::mem::offset_of!(_cef_browser_view_t, set_prefer_accelerators) - 472usize];
15903    ["Offset of field: _cef_browser_view_t::get_runtime_style"]
15904        [::std::mem::offset_of!(_cef_browser_view_t, get_runtime_style) - 480usize];
15905};
15906#[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"]
15907pub type cef_browser_view_t = _cef_browser_view_t;
15908unsafe extern "C" {
15909    #[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"]
15910    pub fn cef_browser_view_create(
15911        client: *mut _cef_client_t,
15912        url: *const cef_string_t,
15913        settings: *const _cef_browser_settings_t,
15914        extra_info: *mut _cef_dictionary_value_t,
15915        request_context: *mut _cef_request_context_t,
15916        delegate: *mut _cef_browser_view_delegate_t,
15917    ) -> *mut cef_browser_view_t;
15918}
15919unsafe extern "C" {
15920    #[doc = "\n Returns the BrowserView associated with |browser|.\n"]
15921    pub fn cef_browser_view_get_for_browser(
15922        browser: *mut _cef_browser_t,
15923    ) -> *mut cef_browser_view_t;
15924}
15925#[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"]
15926#[repr(C)]
15927#[derive(Debug, Copy, Clone)]
15928pub struct _cef_button_t {
15929    #[doc = "\n Base structure.\n"]
15930    pub base: cef_view_t,
15931    #[doc = "\n Returns this Button as a LabelButton or NULL if this is not a LabelButton.\n"]
15932    pub as_label_button: ::std::option::Option<
15933        unsafe extern "C" fn(self_: *mut _cef_button_t) -> *mut _cef_label_button_t,
15934    >,
15935    #[doc = "\n Sets the current display state of the Button.\n"]
15936    pub set_state: ::std::option::Option<
15937        unsafe extern "C" fn(self_: *mut _cef_button_t, state: cef_button_state_t),
15938    >,
15939    #[doc = "\n Returns the current display state of the Button.\n"]
15940    pub get_state: ::std::option::Option<
15941        unsafe extern "C" fn(self_: *mut _cef_button_t) -> cef_button_state_t,
15942    >,
15943    #[doc = "\n Sets the Button will use an ink drop effect for displaying state changes.\n"]
15944    pub set_ink_drop_enabled: ::std::option::Option<
15945        unsafe extern "C" fn(self_: *mut _cef_button_t, enabled: ::std::os::raw::c_int),
15946    >,
15947    #[doc = "\n Sets the tooltip text that will be displayed when the user hovers the\n mouse cursor over the Button.\n"]
15948    pub set_tooltip_text: ::std::option::Option<
15949        unsafe extern "C" fn(self_: *mut _cef_button_t, tooltip_text: *const cef_string_t),
15950    >,
15951    #[doc = "\n Sets the accessible name that will be exposed to assistive technology\n (AT).\n"]
15952    pub set_accessible_name: ::std::option::Option<
15953        unsafe extern "C" fn(self_: *mut _cef_button_t, name: *const cef_string_t),
15954    >,
15955}
15956#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15957const _: () = {
15958    ["Size of _cef_button_t"][::std::mem::size_of::<_cef_button_t>() - 504usize];
15959    ["Alignment of _cef_button_t"][::std::mem::align_of::<_cef_button_t>() - 8usize];
15960    ["Offset of field: _cef_button_t::base"][::std::mem::offset_of!(_cef_button_t, base) - 0usize];
15961    ["Offset of field: _cef_button_t::as_label_button"]
15962        [::std::mem::offset_of!(_cef_button_t, as_label_button) - 456usize];
15963    ["Offset of field: _cef_button_t::set_state"]
15964        [::std::mem::offset_of!(_cef_button_t, set_state) - 464usize];
15965    ["Offset of field: _cef_button_t::get_state"]
15966        [::std::mem::offset_of!(_cef_button_t, get_state) - 472usize];
15967    ["Offset of field: _cef_button_t::set_ink_drop_enabled"]
15968        [::std::mem::offset_of!(_cef_button_t, set_ink_drop_enabled) - 480usize];
15969    ["Offset of field: _cef_button_t::set_tooltip_text"]
15970        [::std::mem::offset_of!(_cef_button_t, set_tooltip_text) - 488usize];
15971    ["Offset of field: _cef_button_t::set_accessible_name"]
15972        [::std::mem::offset_of!(_cef_button_t, set_accessible_name) - 496usize];
15973};
15974#[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"]
15975pub type cef_button_t = _cef_button_t;
15976#[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"]
15977#[repr(C)]
15978#[derive(Debug, Copy, Clone)]
15979pub struct _cef_button_delegate_t {
15980    #[doc = "\n Base structure.\n"]
15981    pub base: cef_view_delegate_t,
15982    #[doc = "\n Called when |button| is pressed.\n"]
15983    pub on_button_pressed: ::std::option::Option<
15984        unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_t),
15985    >,
15986    #[doc = "\n Called when the state of |button| changes.\n"]
15987    pub on_button_state_changed: ::std::option::Option<
15988        unsafe extern "C" fn(self_: *mut _cef_button_delegate_t, button: *mut _cef_button_t),
15989    >,
15990}
15991#[allow(clippy::unnecessary_operation, clippy::identity_op)]
15992const _: () = {
15993    ["Size of _cef_button_delegate_t"][::std::mem::size_of::<_cef_button_delegate_t>() - 144usize];
15994    ["Alignment of _cef_button_delegate_t"]
15995        [::std::mem::align_of::<_cef_button_delegate_t>() - 8usize];
15996    ["Offset of field: _cef_button_delegate_t::base"]
15997        [::std::mem::offset_of!(_cef_button_delegate_t, base) - 0usize];
15998    ["Offset of field: _cef_button_delegate_t::on_button_pressed"]
15999        [::std::mem::offset_of!(_cef_button_delegate_t, on_button_pressed) - 128usize];
16000    ["Offset of field: _cef_button_delegate_t::on_button_state_changed"]
16001        [::std::mem::offset_of!(_cef_button_delegate_t, on_button_state_changed) - 136usize];
16002};
16003#[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"]
16004pub type cef_button_delegate_t = _cef_button_delegate_t;
16005#[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 For details on coordinate systems and usage see\n https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown-\n header-coordinate-systems\n\n NOTE: This struct is allocated DLL-side.\n"]
16006#[repr(C)]
16007#[derive(Debug, Copy, Clone)]
16008pub struct _cef_display_t {
16009    #[doc = "\n Base structure.\n"]
16010    pub base: cef_base_ref_counted_t,
16011    #[doc = "\n Returns the unique identifier for this Display.\n"]
16012    pub get_id: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> i64>,
16013    #[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. Windowed browsers with 1.0 zoom will have a\n JavaScript `window.devicePixelRatio` value matching the associated\n Display's get_device_scale_factor() value.\n"]
16014    pub get_device_scale_factor:
16015        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> f32>,
16016    #[doc = "\n Convert |point| from DIP coordinates to pixel coordinates using this\n Display's device scale factor.\n"]
16017    pub convert_point_to_pixels: ::std::option::Option<
16018        unsafe extern "C" fn(self_: *mut _cef_display_t, point: *mut cef_point_t),
16019    >,
16020    #[doc = "\n Convert |point| from pixel coordinates to DIP coordinates using this\n Display's device scale factor.\n"]
16021    pub convert_point_from_pixels: ::std::option::Option<
16022        unsafe extern "C" fn(self_: *mut _cef_display_t, point: *mut cef_point_t),
16023    >,
16024    #[doc = "\n Returns this Display's bounds in DIP screen coordinates. This is the full\n size of the display.\n"]
16025    pub get_bounds:
16026        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> cef_rect_t>,
16027    #[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"]
16028    pub get_work_area:
16029        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_display_t) -> cef_rect_t>,
16030    #[doc = "\n Returns this Display's rotation in degrees.\n"]
16031    pub get_rotation: ::std::option::Option<
16032        unsafe extern "C" fn(self_: *mut _cef_display_t) -> ::std::os::raw::c_int,
16033    >,
16034}
16035#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16036const _: () = {
16037    ["Size of _cef_display_t"][::std::mem::size_of::<_cef_display_t>() - 96usize];
16038    ["Alignment of _cef_display_t"][::std::mem::align_of::<_cef_display_t>() - 8usize];
16039    ["Offset of field: _cef_display_t::base"]
16040        [::std::mem::offset_of!(_cef_display_t, base) - 0usize];
16041    ["Offset of field: _cef_display_t::get_id"]
16042        [::std::mem::offset_of!(_cef_display_t, get_id) - 40usize];
16043    ["Offset of field: _cef_display_t::get_device_scale_factor"]
16044        [::std::mem::offset_of!(_cef_display_t, get_device_scale_factor) - 48usize];
16045    ["Offset of field: _cef_display_t::convert_point_to_pixels"]
16046        [::std::mem::offset_of!(_cef_display_t, convert_point_to_pixels) - 56usize];
16047    ["Offset of field: _cef_display_t::convert_point_from_pixels"]
16048        [::std::mem::offset_of!(_cef_display_t, convert_point_from_pixels) - 64usize];
16049    ["Offset of field: _cef_display_t::get_bounds"]
16050        [::std::mem::offset_of!(_cef_display_t, get_bounds) - 72usize];
16051    ["Offset of field: _cef_display_t::get_work_area"]
16052        [::std::mem::offset_of!(_cef_display_t, get_work_area) - 80usize];
16053    ["Offset of field: _cef_display_t::get_rotation"]
16054        [::std::mem::offset_of!(_cef_display_t, get_rotation) - 88usize];
16055};
16056#[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 For details on coordinate systems and usage see\n https://bitbucket.org/chromiumembedded/cef/wiki/GeneralUsage#markdown-\n header-coordinate-systems\n\n NOTE: This struct is allocated DLL-side.\n"]
16057pub type cef_display_t = _cef_display_t;
16058unsafe extern "C" {
16059    #[doc = "\n Returns the primary Display.\n"]
16060    pub fn cef_display_get_primary() -> *mut cef_display_t;
16061}
16062unsafe extern "C" {
16063    #[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"]
16064    pub fn cef_display_get_nearest_point(
16065        point: *const cef_point_t,
16066        input_pixel_coords: ::std::os::raw::c_int,
16067    ) -> *mut cef_display_t;
16068}
16069unsafe extern "C" {
16070    #[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"]
16071    pub fn cef_display_get_matching_bounds(
16072        bounds: *const cef_rect_t,
16073        input_pixel_coords: ::std::os::raw::c_int,
16074    ) -> *mut cef_display_t;
16075}
16076unsafe extern "C" {
16077    #[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"]
16078    pub fn cef_display_get_count() -> usize;
16079}
16080unsafe extern "C" {
16081    #[doc = "\n Returns all Displays. Mirrored displays are excluded; this function is\n intended to return distinct, usable displays.\n"]
16082    pub fn cef_display_get_alls(displaysCount: *mut usize, displays: *mut *mut cef_display_t);
16083}
16084unsafe extern "C" {
16085    #[doc = "\n Convert |point| from DIP screen coordinates to pixel screen coordinates.\n This function is only used on Windows.\n"]
16086    pub fn cef_display_convert_screen_point_to_pixels(point: *const cef_point_t) -> cef_point_t;
16087}
16088unsafe extern "C" {
16089    #[doc = "\n Convert |point| from pixel screen coordinates to DIP screen coordinates.\n This function is only used on Windows.\n"]
16090    pub fn cef_display_convert_screen_point_from_pixels(point: *const cef_point_t) -> cef_point_t;
16091}
16092unsafe extern "C" {
16093    #[doc = "\n Convert |rect| from DIP screen coordinates to pixel screen coordinates. This\n function is only used on Windows.\n"]
16094    pub fn cef_display_convert_screen_rect_to_pixels(rect: *const cef_rect_t) -> cef_rect_t;
16095}
16096unsafe extern "C" {
16097    #[doc = "\n Convert |rect| from pixel screen coordinates to DIP screen coordinates. This\n function is only used on Windows.\n"]
16098    pub fn cef_display_convert_screen_rect_from_pixels(rect: *const cef_rect_t) -> cef_rect_t;
16099}
16100#[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"]
16101#[repr(C)]
16102#[derive(Debug, Copy, Clone)]
16103pub struct _cef_fill_layout_t {
16104    #[doc = "\n Base structure.\n"]
16105    pub base: cef_layout_t,
16106}
16107#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16108const _: () = {
16109    ["Size of _cef_fill_layout_t"][::std::mem::size_of::<_cef_fill_layout_t>() - 64usize];
16110    ["Alignment of _cef_fill_layout_t"][::std::mem::align_of::<_cef_fill_layout_t>() - 8usize];
16111    ["Offset of field: _cef_fill_layout_t::base"]
16112        [::std::mem::offset_of!(_cef_fill_layout_t, base) - 0usize];
16113};
16114#[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"]
16115pub type cef_fill_layout_t = _cef_fill_layout_t;
16116#[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"]
16117#[repr(C)]
16118#[derive(Debug, Copy, Clone)]
16119pub struct _cef_label_button_t {
16120    #[doc = "\n Base structure.\n"]
16121    pub base: cef_button_t,
16122    #[doc = "\n Returns this LabelButton as a MenuButton or NULL if this is not a\n MenuButton.\n"]
16123    pub as_menu_button: ::std::option::Option<
16124        unsafe extern "C" fn(self_: *mut _cef_label_button_t) -> *mut _cef_menu_button_t,
16125    >,
16126    #[doc = "\n Sets the text shown on the LabelButton. By default |text| will also be\n used as the accessible name.\n"]
16127    pub set_text: ::std::option::Option<
16128        unsafe extern "C" fn(self_: *mut _cef_label_button_t, text: *const cef_string_t),
16129    >,
16130    #[doc = "\n Returns the text shown on the LabelButton.\n"]
16131    pub get_text: ::std::option::Option<
16132        unsafe extern "C" fn(self_: *mut _cef_label_button_t) -> cef_string_userfree_t,
16133    >,
16134    #[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"]
16135    pub set_image: ::std::option::Option<
16136        unsafe extern "C" fn(
16137            self_: *mut _cef_label_button_t,
16138            button_state: cef_button_state_t,
16139            image: *mut _cef_image_t,
16140        ),
16141    >,
16142    #[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"]
16143    pub get_image: ::std::option::Option<
16144        unsafe extern "C" fn(
16145            self_: *mut _cef_label_button_t,
16146            button_state: cef_button_state_t,
16147        ) -> *mut _cef_image_t,
16148    >,
16149    #[doc = "\n Sets the text color shown for the specified button |for_state| to |color|.\n"]
16150    pub set_text_color: ::std::option::Option<
16151        unsafe extern "C" fn(
16152            self_: *mut _cef_label_button_t,
16153            for_state: cef_button_state_t,
16154            color: cef_color_t,
16155        ),
16156    >,
16157    #[doc = "\n Sets the text colors shown for the non-disabled states to |color|.\n"]
16158    pub set_enabled_text_colors: ::std::option::Option<
16159        unsafe extern "C" fn(self_: *mut _cef_label_button_t, color: cef_color_t),
16160    >,
16161    #[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"]
16162    pub set_font_list: ::std::option::Option<
16163        unsafe extern "C" fn(self_: *mut _cef_label_button_t, font_list: *const cef_string_t),
16164    >,
16165    #[doc = "\n Sets the horizontal alignment; reversed in RTL. Default is\n CEF_HORIZONTAL_ALIGNMENT_CENTER.\n"]
16166    pub set_horizontal_alignment: ::std::option::Option<
16167        unsafe extern "C" fn(
16168            self_: *mut _cef_label_button_t,
16169            alignment: cef_horizontal_alignment_t,
16170        ),
16171    >,
16172    #[doc = "\n Reset the minimum size of this LabelButton to |size|.\n"]
16173    pub set_minimum_size: ::std::option::Option<
16174        unsafe extern "C" fn(self_: *mut _cef_label_button_t, size: *const cef_size_t),
16175    >,
16176    #[doc = "\n Reset the maximum size of this LabelButton to |size|.\n"]
16177    pub set_maximum_size: ::std::option::Option<
16178        unsafe extern "C" fn(self_: *mut _cef_label_button_t, size: *const cef_size_t),
16179    >,
16180}
16181#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16182const _: () = {
16183    ["Size of _cef_label_button_t"][::std::mem::size_of::<_cef_label_button_t>() - 592usize];
16184    ["Alignment of _cef_label_button_t"][::std::mem::align_of::<_cef_label_button_t>() - 8usize];
16185    ["Offset of field: _cef_label_button_t::base"]
16186        [::std::mem::offset_of!(_cef_label_button_t, base) - 0usize];
16187    ["Offset of field: _cef_label_button_t::as_menu_button"]
16188        [::std::mem::offset_of!(_cef_label_button_t, as_menu_button) - 504usize];
16189    ["Offset of field: _cef_label_button_t::set_text"]
16190        [::std::mem::offset_of!(_cef_label_button_t, set_text) - 512usize];
16191    ["Offset of field: _cef_label_button_t::get_text"]
16192        [::std::mem::offset_of!(_cef_label_button_t, get_text) - 520usize];
16193    ["Offset of field: _cef_label_button_t::set_image"]
16194        [::std::mem::offset_of!(_cef_label_button_t, set_image) - 528usize];
16195    ["Offset of field: _cef_label_button_t::get_image"]
16196        [::std::mem::offset_of!(_cef_label_button_t, get_image) - 536usize];
16197    ["Offset of field: _cef_label_button_t::set_text_color"]
16198        [::std::mem::offset_of!(_cef_label_button_t, set_text_color) - 544usize];
16199    ["Offset of field: _cef_label_button_t::set_enabled_text_colors"]
16200        [::std::mem::offset_of!(_cef_label_button_t, set_enabled_text_colors) - 552usize];
16201    ["Offset of field: _cef_label_button_t::set_font_list"]
16202        [::std::mem::offset_of!(_cef_label_button_t, set_font_list) - 560usize];
16203    ["Offset of field: _cef_label_button_t::set_horizontal_alignment"]
16204        [::std::mem::offset_of!(_cef_label_button_t, set_horizontal_alignment) - 568usize];
16205    ["Offset of field: _cef_label_button_t::set_minimum_size"]
16206        [::std::mem::offset_of!(_cef_label_button_t, set_minimum_size) - 576usize];
16207    ["Offset of field: _cef_label_button_t::set_maximum_size"]
16208        [::std::mem::offset_of!(_cef_label_button_t, set_maximum_size) - 584usize];
16209};
16210#[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"]
16211pub type cef_label_button_t = _cef_label_button_t;
16212unsafe extern "C" {
16213    #[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"]
16214    pub fn cef_label_button_create(
16215        delegate: *mut _cef_button_delegate_t,
16216        text: *const cef_string_t,
16217    ) -> *mut cef_label_button_t;
16218}
16219#[doc = "\n MenuButton pressed lock is released when this object is destroyed.\n\n NOTE: This struct is allocated DLL-side.\n"]
16220#[repr(C)]
16221#[derive(Debug, Copy, Clone)]
16222pub struct _cef_menu_button_pressed_lock_t {
16223    #[doc = "\n Base structure.\n"]
16224    pub base: cef_base_ref_counted_t,
16225}
16226#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16227const _: () = {
16228    ["Size of _cef_menu_button_pressed_lock_t"]
16229        [::std::mem::size_of::<_cef_menu_button_pressed_lock_t>() - 40usize];
16230    ["Alignment of _cef_menu_button_pressed_lock_t"]
16231        [::std::mem::align_of::<_cef_menu_button_pressed_lock_t>() - 8usize];
16232    ["Offset of field: _cef_menu_button_pressed_lock_t::base"]
16233        [::std::mem::offset_of!(_cef_menu_button_pressed_lock_t, base) - 0usize];
16234};
16235#[doc = "\n MenuButton pressed lock is released when this object is destroyed.\n\n NOTE: This struct is allocated DLL-side.\n"]
16236pub type cef_menu_button_pressed_lock_t = _cef_menu_button_pressed_lock_t;
16237#[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"]
16238#[repr(C)]
16239#[derive(Debug, Copy, Clone)]
16240pub struct _cef_menu_button_delegate_t {
16241    #[doc = "\n Base structure.\n"]
16242    pub base: cef_button_delegate_t,
16243    #[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"]
16244    pub on_menu_button_pressed: ::std::option::Option<
16245        unsafe extern "C" fn(
16246            self_: *mut _cef_menu_button_delegate_t,
16247            menu_button: *mut _cef_menu_button_t,
16248            screen_point: *const cef_point_t,
16249            button_pressed_lock: *mut _cef_menu_button_pressed_lock_t,
16250        ),
16251    >,
16252}
16253#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16254const _: () = {
16255    ["Size of _cef_menu_button_delegate_t"]
16256        [::std::mem::size_of::<_cef_menu_button_delegate_t>() - 152usize];
16257    ["Alignment of _cef_menu_button_delegate_t"]
16258        [::std::mem::align_of::<_cef_menu_button_delegate_t>() - 8usize];
16259    ["Offset of field: _cef_menu_button_delegate_t::base"]
16260        [::std::mem::offset_of!(_cef_menu_button_delegate_t, base) - 0usize];
16261    ["Offset of field: _cef_menu_button_delegate_t::on_menu_button_pressed"]
16262        [::std::mem::offset_of!(_cef_menu_button_delegate_t, on_menu_button_pressed) - 144usize];
16263};
16264#[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"]
16265pub type cef_menu_button_delegate_t = _cef_menu_button_delegate_t;
16266#[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"]
16267#[repr(C)]
16268#[derive(Debug, Copy, Clone)]
16269pub struct _cef_menu_button_t {
16270    #[doc = "\n Base structure.\n"]
16271    pub base: cef_label_button_t,
16272    #[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"]
16273    pub show_menu: ::std::option::Option<
16274        unsafe extern "C" fn(
16275            self_: *mut _cef_menu_button_t,
16276            menu_model: *mut _cef_menu_model_t,
16277            screen_point: *const cef_point_t,
16278            anchor_position: cef_menu_anchor_position_t,
16279        ),
16280    >,
16281    #[doc = "\n Show the menu for this button. Results in a call to\n cef_menu_button_delegate_t::on_menu_button_pressed().\n"]
16282    pub trigger_menu: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_menu_button_t)>,
16283}
16284#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16285const _: () = {
16286    ["Size of _cef_menu_button_t"][::std::mem::size_of::<_cef_menu_button_t>() - 608usize];
16287    ["Alignment of _cef_menu_button_t"][::std::mem::align_of::<_cef_menu_button_t>() - 8usize];
16288    ["Offset of field: _cef_menu_button_t::base"]
16289        [::std::mem::offset_of!(_cef_menu_button_t, base) - 0usize];
16290    ["Offset of field: _cef_menu_button_t::show_menu"]
16291        [::std::mem::offset_of!(_cef_menu_button_t, show_menu) - 592usize];
16292    ["Offset of field: _cef_menu_button_t::trigger_menu"]
16293        [::std::mem::offset_of!(_cef_menu_button_t, trigger_menu) - 600usize];
16294};
16295#[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"]
16296pub type cef_menu_button_t = _cef_menu_button_t;
16297unsafe extern "C" {
16298    #[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"]
16299    pub fn cef_menu_button_create(
16300        delegate: *mut _cef_menu_button_delegate_t,
16301        text: *const cef_string_t,
16302    ) -> *mut cef_menu_button_t;
16303}
16304#[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"]
16305#[repr(C)]
16306#[derive(Debug, Copy, Clone)]
16307pub struct _cef_overlay_controller_t {
16308    #[doc = "\n Base structure.\n"]
16309    pub base: cef_base_ref_counted_t,
16310    #[doc = "\n Returns true (1) if this object is valid.\n"]
16311    pub is_valid: ::std::option::Option<
16312        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
16313    >,
16314    #[doc = "\n Returns true (1) if this object is the same as |that| object.\n"]
16315    pub is_same: ::std::option::Option<
16316        unsafe extern "C" fn(
16317            self_: *mut _cef_overlay_controller_t,
16318            that: *mut _cef_overlay_controller_t,
16319        ) -> ::std::os::raw::c_int,
16320    >,
16321    #[doc = "\n Returns the contents View for this overlay.\n"]
16322    pub get_contents_view: ::std::option::Option<
16323        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_view_t,
16324    >,
16325    #[doc = "\n Returns the top-level Window hosting this overlay. Use this function\n instead of calling get_window() on the contents View.\n"]
16326    pub get_window: ::std::option::Option<
16327        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> *mut _cef_window_t,
16328    >,
16329    #[doc = "\n Returns the docking mode for this overlay.\n"]
16330    pub get_docking_mode: ::std::option::Option<
16331        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_docking_mode_t,
16332    >,
16333    #[doc = "\n Destroy this overlay.\n"]
16334    pub destroy: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>,
16335    #[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"]
16336    pub set_bounds: ::std::option::Option<
16337        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, bounds: *const cef_rect_t),
16338    >,
16339    #[doc = "\n Returns the bounds (size and position) of this overlay in parent\n coordinates.\n"]
16340    pub get_bounds: ::std::option::Option<
16341        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t,
16342    >,
16343    #[doc = "\n Returns the bounds (size and position) of this overlay in DIP screen\n coordinates.\n"]
16344    pub get_bounds_in_screen: ::std::option::Option<
16345        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_rect_t,
16346    >,
16347    #[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"]
16348    pub set_size: ::std::option::Option<
16349        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, size: *const cef_size_t),
16350    >,
16351    #[doc = "\n Returns the size of this overlay in parent coordinates.\n"]
16352    pub get_size: ::std::option::Option<
16353        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_size_t,
16354    >,
16355    #[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"]
16356    pub set_position: ::std::option::Option<
16357        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, position: *const cef_point_t),
16358    >,
16359    #[doc = "\n Returns the position of this overlay in parent coordinates.\n"]
16360    pub get_position: ::std::option::Option<
16361        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_point_t,
16362    >,
16363    #[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"]
16364    pub set_insets: ::std::option::Option<
16365        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, insets: *const cef_insets_t),
16366    >,
16367    #[doc = "\n Returns the insets for this overlay in parent coordinates.\n"]
16368    pub get_insets: ::std::option::Option<
16369        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> cef_insets_t,
16370    >,
16371    #[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"]
16372    pub size_to_preferred_size:
16373        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t)>,
16374    #[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"]
16375    pub set_visible: ::std::option::Option<
16376        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t, visible: ::std::os::raw::c_int),
16377    >,
16378    #[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"]
16379    pub is_visible: ::std::option::Option<
16380        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
16381    >,
16382    #[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"]
16383    pub is_drawn: ::std::option::Option<
16384        unsafe extern "C" fn(self_: *mut _cef_overlay_controller_t) -> ::std::os::raw::c_int,
16385    >,
16386}
16387#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16388const _: () = {
16389    ["Size of _cef_overlay_controller_t"]
16390        [::std::mem::size_of::<_cef_overlay_controller_t>() - 192usize];
16391    ["Alignment of _cef_overlay_controller_t"]
16392        [::std::mem::align_of::<_cef_overlay_controller_t>() - 8usize];
16393    ["Offset of field: _cef_overlay_controller_t::base"]
16394        [::std::mem::offset_of!(_cef_overlay_controller_t, base) - 0usize];
16395    ["Offset of field: _cef_overlay_controller_t::is_valid"]
16396        [::std::mem::offset_of!(_cef_overlay_controller_t, is_valid) - 40usize];
16397    ["Offset of field: _cef_overlay_controller_t::is_same"]
16398        [::std::mem::offset_of!(_cef_overlay_controller_t, is_same) - 48usize];
16399    ["Offset of field: _cef_overlay_controller_t::get_contents_view"]
16400        [::std::mem::offset_of!(_cef_overlay_controller_t, get_contents_view) - 56usize];
16401    ["Offset of field: _cef_overlay_controller_t::get_window"]
16402        [::std::mem::offset_of!(_cef_overlay_controller_t, get_window) - 64usize];
16403    ["Offset of field: _cef_overlay_controller_t::get_docking_mode"]
16404        [::std::mem::offset_of!(_cef_overlay_controller_t, get_docking_mode) - 72usize];
16405    ["Offset of field: _cef_overlay_controller_t::destroy"]
16406        [::std::mem::offset_of!(_cef_overlay_controller_t, destroy) - 80usize];
16407    ["Offset of field: _cef_overlay_controller_t::set_bounds"]
16408        [::std::mem::offset_of!(_cef_overlay_controller_t, set_bounds) - 88usize];
16409    ["Offset of field: _cef_overlay_controller_t::get_bounds"]
16410        [::std::mem::offset_of!(_cef_overlay_controller_t, get_bounds) - 96usize];
16411    ["Offset of field: _cef_overlay_controller_t::get_bounds_in_screen"]
16412        [::std::mem::offset_of!(_cef_overlay_controller_t, get_bounds_in_screen) - 104usize];
16413    ["Offset of field: _cef_overlay_controller_t::set_size"]
16414        [::std::mem::offset_of!(_cef_overlay_controller_t, set_size) - 112usize];
16415    ["Offset of field: _cef_overlay_controller_t::get_size"]
16416        [::std::mem::offset_of!(_cef_overlay_controller_t, get_size) - 120usize];
16417    ["Offset of field: _cef_overlay_controller_t::set_position"]
16418        [::std::mem::offset_of!(_cef_overlay_controller_t, set_position) - 128usize];
16419    ["Offset of field: _cef_overlay_controller_t::get_position"]
16420        [::std::mem::offset_of!(_cef_overlay_controller_t, get_position) - 136usize];
16421    ["Offset of field: _cef_overlay_controller_t::set_insets"]
16422        [::std::mem::offset_of!(_cef_overlay_controller_t, set_insets) - 144usize];
16423    ["Offset of field: _cef_overlay_controller_t::get_insets"]
16424        [::std::mem::offset_of!(_cef_overlay_controller_t, get_insets) - 152usize];
16425    ["Offset of field: _cef_overlay_controller_t::size_to_preferred_size"]
16426        [::std::mem::offset_of!(_cef_overlay_controller_t, size_to_preferred_size) - 160usize];
16427    ["Offset of field: _cef_overlay_controller_t::set_visible"]
16428        [::std::mem::offset_of!(_cef_overlay_controller_t, set_visible) - 168usize];
16429    ["Offset of field: _cef_overlay_controller_t::is_visible"]
16430        [::std::mem::offset_of!(_cef_overlay_controller_t, is_visible) - 176usize];
16431    ["Offset of field: _cef_overlay_controller_t::is_drawn"]
16432        [::std::mem::offset_of!(_cef_overlay_controller_t, is_drawn) - 184usize];
16433};
16434#[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"]
16435pub type cef_overlay_controller_t = _cef_overlay_controller_t;
16436#[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"]
16437#[repr(C)]
16438#[derive(Debug, Copy, Clone)]
16439pub struct _cef_panel_delegate_t {
16440    #[doc = "\n Base structure.\n"]
16441    pub base: cef_view_delegate_t,
16442}
16443#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16444const _: () = {
16445    ["Size of _cef_panel_delegate_t"][::std::mem::size_of::<_cef_panel_delegate_t>() - 128usize];
16446    ["Alignment of _cef_panel_delegate_t"]
16447        [::std::mem::align_of::<_cef_panel_delegate_t>() - 8usize];
16448    ["Offset of field: _cef_panel_delegate_t::base"]
16449        [::std::mem::offset_of!(_cef_panel_delegate_t, base) - 0usize];
16450};
16451#[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"]
16452pub type cef_panel_delegate_t = _cef_panel_delegate_t;
16453#[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"]
16454#[repr(C)]
16455#[derive(Debug, Copy, Clone)]
16456pub struct _cef_panel_t {
16457    #[doc = "\n Base structure.\n"]
16458    pub base: cef_view_t,
16459    #[doc = "\n Returns this Panel as a Window or NULL if this is not a Window.\n"]
16460    pub as_window:
16461        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_window_t>,
16462    #[doc = "\n Set this Panel's Layout to FillLayout and return the FillLayout object.\n"]
16463    pub set_to_fill_layout: ::std::option::Option<
16464        unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_fill_layout_t,
16465    >,
16466    #[doc = "\n Set this Panel's Layout to BoxLayout and return the BoxLayout object.\n"]
16467    pub set_to_box_layout: ::std::option::Option<
16468        unsafe extern "C" fn(
16469            self_: *mut _cef_panel_t,
16470            settings: *const cef_box_layout_settings_t,
16471        ) -> *mut _cef_box_layout_t,
16472    >,
16473    #[doc = "\n Get the Layout.\n"]
16474    pub get_layout:
16475        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> *mut _cef_layout_t>,
16476    #[doc = "\n Lay out the child Views (set their bounds based on sizing heuristics\n specific to the current Layout).\n"]
16477    pub layout: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t)>,
16478    #[doc = "\n Add a child View.\n"]
16479    pub add_child_view: ::std::option::Option<
16480        unsafe extern "C" fn(self_: *mut _cef_panel_t, view: *mut _cef_view_t),
16481    >,
16482    #[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"]
16483    pub add_child_view_at: ::std::option::Option<
16484        unsafe extern "C" fn(
16485            self_: *mut _cef_panel_t,
16486            view: *mut _cef_view_t,
16487            index: ::std::os::raw::c_int,
16488        ),
16489    >,
16490    #[doc = "\n Move the child View to the specified |index|. A negative value for |index|\n will move the View to the end.\n"]
16491    pub reorder_child_view: ::std::option::Option<
16492        unsafe extern "C" fn(
16493            self_: *mut _cef_panel_t,
16494            view: *mut _cef_view_t,
16495            index: ::std::os::raw::c_int,
16496        ),
16497    >,
16498    #[doc = "\n Remove a child View. The View can then be added to another Panel.\n"]
16499    pub remove_child_view: ::std::option::Option<
16500        unsafe extern "C" fn(self_: *mut _cef_panel_t, view: *mut _cef_view_t),
16501    >,
16502    #[doc = "\n Remove all child Views. The removed Views will be deleted if the client\n holds no references to them.\n"]
16503    pub remove_all_child_views:
16504        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t)>,
16505    #[doc = "\n Returns the number of child Views.\n"]
16506    pub get_child_view_count:
16507        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_panel_t) -> usize>,
16508    #[doc = "\n Returns the child View at the specified |index|.\n"]
16509    pub get_child_view_at: ::std::option::Option<
16510        unsafe extern "C" fn(
16511            self_: *mut _cef_panel_t,
16512            index: ::std::os::raw::c_int,
16513        ) -> *mut _cef_view_t,
16514    >,
16515}
16516#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16517const _: () = {
16518    ["Size of _cef_panel_t"][::std::mem::size_of::<_cef_panel_t>() - 552usize];
16519    ["Alignment of _cef_panel_t"][::std::mem::align_of::<_cef_panel_t>() - 8usize];
16520    ["Offset of field: _cef_panel_t::base"][::std::mem::offset_of!(_cef_panel_t, base) - 0usize];
16521    ["Offset of field: _cef_panel_t::as_window"]
16522        [::std::mem::offset_of!(_cef_panel_t, as_window) - 456usize];
16523    ["Offset of field: _cef_panel_t::set_to_fill_layout"]
16524        [::std::mem::offset_of!(_cef_panel_t, set_to_fill_layout) - 464usize];
16525    ["Offset of field: _cef_panel_t::set_to_box_layout"]
16526        [::std::mem::offset_of!(_cef_panel_t, set_to_box_layout) - 472usize];
16527    ["Offset of field: _cef_panel_t::get_layout"]
16528        [::std::mem::offset_of!(_cef_panel_t, get_layout) - 480usize];
16529    ["Offset of field: _cef_panel_t::layout"]
16530        [::std::mem::offset_of!(_cef_panel_t, layout) - 488usize];
16531    ["Offset of field: _cef_panel_t::add_child_view"]
16532        [::std::mem::offset_of!(_cef_panel_t, add_child_view) - 496usize];
16533    ["Offset of field: _cef_panel_t::add_child_view_at"]
16534        [::std::mem::offset_of!(_cef_panel_t, add_child_view_at) - 504usize];
16535    ["Offset of field: _cef_panel_t::reorder_child_view"]
16536        [::std::mem::offset_of!(_cef_panel_t, reorder_child_view) - 512usize];
16537    ["Offset of field: _cef_panel_t::remove_child_view"]
16538        [::std::mem::offset_of!(_cef_panel_t, remove_child_view) - 520usize];
16539    ["Offset of field: _cef_panel_t::remove_all_child_views"]
16540        [::std::mem::offset_of!(_cef_panel_t, remove_all_child_views) - 528usize];
16541    ["Offset of field: _cef_panel_t::get_child_view_count"]
16542        [::std::mem::offset_of!(_cef_panel_t, get_child_view_count) - 536usize];
16543    ["Offset of field: _cef_panel_t::get_child_view_at"]
16544        [::std::mem::offset_of!(_cef_panel_t, get_child_view_at) - 544usize];
16545};
16546#[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"]
16547pub type cef_panel_t = _cef_panel_t;
16548unsafe extern "C" {
16549    #[doc = "\n Create a new Panel.\n"]
16550    pub fn cef_panel_create(delegate: *mut _cef_panel_delegate_t) -> *mut cef_panel_t;
16551}
16552#[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"]
16553#[repr(C)]
16554#[derive(Debug, Copy, Clone)]
16555pub struct _cef_scroll_view_t {
16556    #[doc = "\n Base structure.\n"]
16557    pub base: cef_view_t,
16558    #[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"]
16559    pub set_content_view: ::std::option::Option<
16560        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t, view: *mut _cef_view_t),
16561    >,
16562    #[doc = "\n Returns the content View.\n"]
16563    pub get_content_view: ::std::option::Option<
16564        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> *mut _cef_view_t,
16565    >,
16566    #[doc = "\n Returns the visible region of the content View.\n"]
16567    pub get_visible_content_rect:
16568        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> cef_rect_t>,
16569    #[doc = "\n Returns true (1) if the horizontal scrollbar is currently showing.\n"]
16570    pub has_horizontal_scrollbar: ::std::option::Option<
16571        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
16572    >,
16573    #[doc = "\n Returns the height of the horizontal scrollbar.\n"]
16574    pub get_horizontal_scrollbar_height: ::std::option::Option<
16575        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
16576    >,
16577    #[doc = "\n Returns true (1) if the vertical scrollbar is currently showing.\n"]
16578    pub has_vertical_scrollbar: ::std::option::Option<
16579        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
16580    >,
16581    #[doc = "\n Returns the width of the vertical scrollbar.\n"]
16582    pub get_vertical_scrollbar_width: ::std::option::Option<
16583        unsafe extern "C" fn(self_: *mut _cef_scroll_view_t) -> ::std::os::raw::c_int,
16584    >,
16585}
16586#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16587const _: () = {
16588    ["Size of _cef_scroll_view_t"][::std::mem::size_of::<_cef_scroll_view_t>() - 512usize];
16589    ["Alignment of _cef_scroll_view_t"][::std::mem::align_of::<_cef_scroll_view_t>() - 8usize];
16590    ["Offset of field: _cef_scroll_view_t::base"]
16591        [::std::mem::offset_of!(_cef_scroll_view_t, base) - 0usize];
16592    ["Offset of field: _cef_scroll_view_t::set_content_view"]
16593        [::std::mem::offset_of!(_cef_scroll_view_t, set_content_view) - 456usize];
16594    ["Offset of field: _cef_scroll_view_t::get_content_view"]
16595        [::std::mem::offset_of!(_cef_scroll_view_t, get_content_view) - 464usize];
16596    ["Offset of field: _cef_scroll_view_t::get_visible_content_rect"]
16597        [::std::mem::offset_of!(_cef_scroll_view_t, get_visible_content_rect) - 472usize];
16598    ["Offset of field: _cef_scroll_view_t::has_horizontal_scrollbar"]
16599        [::std::mem::offset_of!(_cef_scroll_view_t, has_horizontal_scrollbar) - 480usize];
16600    ["Offset of field: _cef_scroll_view_t::get_horizontal_scrollbar_height"]
16601        [::std::mem::offset_of!(_cef_scroll_view_t, get_horizontal_scrollbar_height) - 488usize];
16602    ["Offset of field: _cef_scroll_view_t::has_vertical_scrollbar"]
16603        [::std::mem::offset_of!(_cef_scroll_view_t, has_vertical_scrollbar) - 496usize];
16604    ["Offset of field: _cef_scroll_view_t::get_vertical_scrollbar_width"]
16605        [::std::mem::offset_of!(_cef_scroll_view_t, get_vertical_scrollbar_width) - 504usize];
16606};
16607#[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"]
16608pub type cef_scroll_view_t = _cef_scroll_view_t;
16609unsafe extern "C" {
16610    #[doc = "\n Create a new ScrollView.\n"]
16611    pub fn cef_scroll_view_create(delegate: *mut _cef_view_delegate_t) -> *mut cef_scroll_view_t;
16612}
16613#[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"]
16614#[repr(C)]
16615#[derive(Debug, Copy, Clone)]
16616pub struct _cef_textfield_delegate_t {
16617    #[doc = "\n Base structure.\n"]
16618    pub base: cef_view_delegate_t,
16619    #[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"]
16620    pub on_key_event: ::std::option::Option<
16621        unsafe extern "C" fn(
16622            self_: *mut _cef_textfield_delegate_t,
16623            textfield: *mut _cef_textfield_t,
16624            event: *const cef_key_event_t,
16625        ) -> ::std::os::raw::c_int,
16626    >,
16627    #[doc = "\n Called after performing a user action that may change |textfield|.\n"]
16628    pub on_after_user_action: ::std::option::Option<
16629        unsafe extern "C" fn(
16630            self_: *mut _cef_textfield_delegate_t,
16631            textfield: *mut _cef_textfield_t,
16632        ),
16633    >,
16634}
16635#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16636const _: () = {
16637    ["Size of _cef_textfield_delegate_t"]
16638        [::std::mem::size_of::<_cef_textfield_delegate_t>() - 144usize];
16639    ["Alignment of _cef_textfield_delegate_t"]
16640        [::std::mem::align_of::<_cef_textfield_delegate_t>() - 8usize];
16641    ["Offset of field: _cef_textfield_delegate_t::base"]
16642        [::std::mem::offset_of!(_cef_textfield_delegate_t, base) - 0usize];
16643    ["Offset of field: _cef_textfield_delegate_t::on_key_event"]
16644        [::std::mem::offset_of!(_cef_textfield_delegate_t, on_key_event) - 128usize];
16645    ["Offset of field: _cef_textfield_delegate_t::on_after_user_action"]
16646        [::std::mem::offset_of!(_cef_textfield_delegate_t, on_after_user_action) - 136usize];
16647};
16648#[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"]
16649pub type cef_textfield_delegate_t = _cef_textfield_delegate_t;
16650#[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"]
16651#[repr(C)]
16652#[derive(Debug, Copy, Clone)]
16653pub struct _cef_textfield_t {
16654    #[doc = "\n Base structure.\n"]
16655    pub base: cef_view_t,
16656    #[doc = "\n Sets whether the text will be displayed as asterisks.\n"]
16657    pub set_password_input: ::std::option::Option<
16658        unsafe extern "C" fn(self_: *mut _cef_textfield_t, password_input: ::std::os::raw::c_int),
16659    >,
16660    #[doc = "\n Returns true (1) if the text will be displayed as asterisks.\n"]
16661    pub is_password_input: ::std::option::Option<
16662        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
16663    >,
16664    #[doc = "\n Sets whether the text will read-only.\n"]
16665    pub set_read_only: ::std::option::Option<
16666        unsafe extern "C" fn(self_: *mut _cef_textfield_t, read_only: ::std::os::raw::c_int),
16667    >,
16668    #[doc = "\n Returns true (1) if the text is read-only.\n"]
16669    pub is_read_only: ::std::option::Option<
16670        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
16671    >,
16672    #[doc = "\n Returns the currently displayed text.\n"]
16673    pub get_text: ::std::option::Option<
16674        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
16675    >,
16676    #[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"]
16677    pub set_text: ::std::option::Option<
16678        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
16679    >,
16680    #[doc = "\n Appends |text| to the previously-existing text.\n"]
16681    pub append_text: ::std::option::Option<
16682        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
16683    >,
16684    #[doc = "\n Inserts |text| at the current cursor position replacing any selected text.\n"]
16685    pub insert_or_replace_text: ::std::option::Option<
16686        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
16687    >,
16688    #[doc = "\n Returns true (1) if there is any selected text.\n"]
16689    pub has_selection: ::std::option::Option<
16690        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> ::std::os::raw::c_int,
16691    >,
16692    #[doc = "\n Returns the currently selected text.\n"]
16693    pub get_selected_text: ::std::option::Option<
16694        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
16695    >,
16696    #[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"]
16697    pub select_all: ::std::option::Option<
16698        unsafe extern "C" fn(self_: *mut _cef_textfield_t, reversed: ::std::os::raw::c_int),
16699    >,
16700    #[doc = "\n Clears the text selection and sets the caret to the end.\n"]
16701    pub clear_selection: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t)>,
16702    #[doc = "\n Returns the selected logical text range.\n"]
16703    pub get_selected_range:
16704        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_range_t>,
16705    #[doc = "\n Selects the specified logical text range.\n"]
16706    pub select_range: ::std::option::Option<
16707        unsafe extern "C" fn(self_: *mut _cef_textfield_t, range: *const cef_range_t),
16708    >,
16709    #[doc = "\n Returns the current cursor position.\n"]
16710    pub get_cursor_position:
16711        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> usize>,
16712    #[doc = "\n Sets the text color.\n"]
16713    pub set_text_color: ::std::option::Option<
16714        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
16715    >,
16716    #[doc = "\n Returns the text color.\n"]
16717    pub get_text_color:
16718        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
16719    #[doc = "\n Sets the selection text color.\n"]
16720    pub set_selection_text_color: ::std::option::Option<
16721        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
16722    >,
16723    #[doc = "\n Returns the selection text color.\n"]
16724    pub get_selection_text_color:
16725        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
16726    #[doc = "\n Sets the selection background color.\n"]
16727    pub set_selection_background_color: ::std::option::Option<
16728        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
16729    >,
16730    #[doc = "\n Returns the selection background color.\n"]
16731    pub get_selection_background_color:
16732        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_color_t>,
16733    #[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"]
16734    pub set_font_list: ::std::option::Option<
16735        unsafe extern "C" fn(self_: *mut _cef_textfield_t, font_list: *const cef_string_t),
16736    >,
16737    #[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"]
16738    pub apply_text_color: ::std::option::Option<
16739        unsafe extern "C" fn(
16740            self_: *mut _cef_textfield_t,
16741            color: cef_color_t,
16742            range: *const cef_range_t,
16743        ),
16744    >,
16745    #[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"]
16746    pub apply_text_style: ::std::option::Option<
16747        unsafe extern "C" fn(
16748            self_: *mut _cef_textfield_t,
16749            style: cef_text_style_t,
16750            add: ::std::os::raw::c_int,
16751            range: *const cef_range_t,
16752        ),
16753    >,
16754    #[doc = "\n Returns true (1) if the action associated with the specified command id is\n enabled. See additional comments on execute_command().\n"]
16755    pub is_command_enabled: ::std::option::Option<
16756        unsafe extern "C" fn(
16757            self_: *mut _cef_textfield_t,
16758            command_id: cef_text_field_commands_t,
16759        ) -> ::std::os::raw::c_int,
16760    >,
16761    #[doc = "\n Performs the action associated with the specified command id.\n"]
16762    pub execute_command: ::std::option::Option<
16763        unsafe extern "C" fn(self_: *mut _cef_textfield_t, command_id: cef_text_field_commands_t),
16764    >,
16765    #[doc = "\n Clears Edit history.\n"]
16766    pub clear_edit_history:
16767        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_textfield_t)>,
16768    #[doc = "\n Sets the placeholder text that will be displayed when the Textfield is\n NULL.\n"]
16769    pub set_placeholder_text: ::std::option::Option<
16770        unsafe extern "C" fn(self_: *mut _cef_textfield_t, text: *const cef_string_t),
16771    >,
16772    #[doc = "\n Returns the placeholder text that will be displayed when the Textfield is\n NULL.\n"]
16773    pub get_placeholder_text: ::std::option::Option<
16774        unsafe extern "C" fn(self_: *mut _cef_textfield_t) -> cef_string_userfree_t,
16775    >,
16776    #[doc = "\n Sets the placeholder text color.\n"]
16777    pub set_placeholder_text_color: ::std::option::Option<
16778        unsafe extern "C" fn(self_: *mut _cef_textfield_t, color: cef_color_t),
16779    >,
16780    #[doc = "\n Set the accessible name that will be exposed to assistive technology (AT).\n"]
16781    pub set_accessible_name: ::std::option::Option<
16782        unsafe extern "C" fn(self_: *mut _cef_textfield_t, name: *const cef_string_t),
16783    >,
16784}
16785#[allow(clippy::unnecessary_operation, clippy::identity_op)]
16786const _: () = {
16787    ["Size of _cef_textfield_t"][::std::mem::size_of::<_cef_textfield_t>() - 704usize];
16788    ["Alignment of _cef_textfield_t"][::std::mem::align_of::<_cef_textfield_t>() - 8usize];
16789    ["Offset of field: _cef_textfield_t::base"]
16790        [::std::mem::offset_of!(_cef_textfield_t, base) - 0usize];
16791    ["Offset of field: _cef_textfield_t::set_password_input"]
16792        [::std::mem::offset_of!(_cef_textfield_t, set_password_input) - 456usize];
16793    ["Offset of field: _cef_textfield_t::is_password_input"]
16794        [::std::mem::offset_of!(_cef_textfield_t, is_password_input) - 464usize];
16795    ["Offset of field: _cef_textfield_t::set_read_only"]
16796        [::std::mem::offset_of!(_cef_textfield_t, set_read_only) - 472usize];
16797    ["Offset of field: _cef_textfield_t::is_read_only"]
16798        [::std::mem::offset_of!(_cef_textfield_t, is_read_only) - 480usize];
16799    ["Offset of field: _cef_textfield_t::get_text"]
16800        [::std::mem::offset_of!(_cef_textfield_t, get_text) - 488usize];
16801    ["Offset of field: _cef_textfield_t::set_text"]
16802        [::std::mem::offset_of!(_cef_textfield_t, set_text) - 496usize];
16803    ["Offset of field: _cef_textfield_t::append_text"]
16804        [::std::mem::offset_of!(_cef_textfield_t, append_text) - 504usize];
16805    ["Offset of field: _cef_textfield_t::insert_or_replace_text"]
16806        [::std::mem::offset_of!(_cef_textfield_t, insert_or_replace_text) - 512usize];
16807    ["Offset of field: _cef_textfield_t::has_selection"]
16808        [::std::mem::offset_of!(_cef_textfield_t, has_selection) - 520usize];
16809    ["Offset of field: _cef_textfield_t::get_selected_text"]
16810        [::std::mem::offset_of!(_cef_textfield_t, get_selected_text) - 528usize];
16811    ["Offset of field: _cef_textfield_t::select_all"]
16812        [::std::mem::offset_of!(_cef_textfield_t, select_all) - 536usize];
16813    ["Offset of field: _cef_textfield_t::clear_selection"]
16814        [::std::mem::offset_of!(_cef_textfield_t, clear_selection) - 544usize];
16815    ["Offset of field: _cef_textfield_t::get_selected_range"]
16816        [::std::mem::offset_of!(_cef_textfield_t, get_selected_range) - 552usize];
16817    ["Offset of field: _cef_textfield_t::select_range"]
16818        [::std::mem::offset_of!(_cef_textfield_t, select_range) - 560usize];
16819    ["Offset of field: _cef_textfield_t::get_cursor_position"]
16820        [::std::mem::offset_of!(_cef_textfield_t, get_cursor_position) - 568usize];
16821    ["Offset of field: _cef_textfield_t::set_text_color"]
16822        [::std::mem::offset_of!(_cef_textfield_t, set_text_color) - 576usize];
16823    ["Offset of field: _cef_textfield_t::get_text_color"]
16824        [::std::mem::offset_of!(_cef_textfield_t, get_text_color) - 584usize];
16825    ["Offset of field: _cef_textfield_t::set_selection_text_color"]
16826        [::std::mem::offset_of!(_cef_textfield_t, set_selection_text_color) - 592usize];
16827    ["Offset of field: _cef_textfield_t::get_selection_text_color"]
16828        [::std::mem::offset_of!(_cef_textfield_t, get_selection_text_color) - 600usize];
16829    ["Offset of field: _cef_textfield_t::set_selection_background_color"]
16830        [::std::mem::offset_of!(_cef_textfield_t, set_selection_background_color) - 608usize];
16831    ["Offset of field: _cef_textfield_t::get_selection_background_color"]
16832        [::std::mem::offset_of!(_cef_textfield_t, get_selection_background_color) - 616usize];
16833    ["Offset of field: _cef_textfield_t::set_font_list"]
16834        [::std::mem::offset_of!(_cef_textfield_t, set_font_list) - 624usize];
16835    ["Offset of field: _cef_textfield_t::apply_text_color"]
16836        [::std::mem::offset_of!(_cef_textfield_t, apply_text_color) - 632usize];
16837    ["Offset of field: _cef_textfield_t::apply_text_style"]
16838        [::std::mem::offset_of!(_cef_textfield_t, apply_text_style) - 640usize];
16839    ["Offset of field: _cef_textfield_t::is_command_enabled"]
16840        [::std::mem::offset_of!(_cef_textfield_t, is_command_enabled) - 648usize];
16841    ["Offset of field: _cef_textfield_t::execute_command"]
16842        [::std::mem::offset_of!(_cef_textfield_t, execute_command) - 656usize];
16843    ["Offset of field: _cef_textfield_t::clear_edit_history"]
16844        [::std::mem::offset_of!(_cef_textfield_t, clear_edit_history) - 664usize];
16845    ["Offset of field: _cef_textfield_t::set_placeholder_text"]
16846        [::std::mem::offset_of!(_cef_textfield_t, set_placeholder_text) - 672usize];
16847    ["Offset of field: _cef_textfield_t::get_placeholder_text"]
16848        [::std::mem::offset_of!(_cef_textfield_t, get_placeholder_text) - 680usize];
16849    ["Offset of field: _cef_textfield_t::set_placeholder_text_color"]
16850        [::std::mem::offset_of!(_cef_textfield_t, set_placeholder_text_color) - 688usize];
16851    ["Offset of field: _cef_textfield_t::set_accessible_name"]
16852        [::std::mem::offset_of!(_cef_textfield_t, set_accessible_name) - 696usize];
16853};
16854#[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"]
16855pub type cef_textfield_t = _cef_textfield_t;
16856unsafe extern "C" {
16857    #[doc = "\n Create a new Textfield.\n"]
16858    pub fn cef_textfield_create(delegate: *mut _cef_textfield_delegate_t) -> *mut cef_textfield_t;
16859}
16860#[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"]
16861#[repr(C)]
16862#[derive(Debug, Copy, Clone)]
16863pub struct _cef_window_delegate_t {
16864    #[doc = "\n Base structure.\n"]
16865    pub base: cef_panel_delegate_t,
16866    #[doc = "\n Called when |window| is created.\n"]
16867    pub on_window_created: ::std::option::Option<
16868        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
16869    >,
16870    #[doc = "\n Called when |window| is closing.\n"]
16871    pub on_window_closing: ::std::option::Option<
16872        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
16873    >,
16874    #[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"]
16875    pub on_window_destroyed: ::std::option::Option<
16876        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t, window: *mut _cef_window_t),
16877    >,
16878    #[doc = "\n Called when |window| is activated or deactivated.\n"]
16879    pub on_window_activation_changed: ::std::option::Option<
16880        unsafe extern "C" fn(
16881            self_: *mut _cef_window_delegate_t,
16882            window: *mut _cef_window_t,
16883            active: ::std::os::raw::c_int,
16884        ),
16885    >,
16886    #[doc = "\n Called when |window| bounds have changed. |new_bounds| will be in DIP\n screen coordinates.\n"]
16887    pub on_window_bounds_changed: ::std::option::Option<
16888        unsafe extern "C" fn(
16889            self_: *mut _cef_window_delegate_t,
16890            window: *mut _cef_window_t,
16891            new_bounds: *const cef_rect_t,
16892        ),
16893    >,
16894    #[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"]
16895    pub on_window_fullscreen_transition: ::std::option::Option<
16896        unsafe extern "C" fn(
16897            self_: *mut _cef_window_delegate_t,
16898            window: *mut _cef_window_t,
16899            is_completed: ::std::os::raw::c_int,
16900        ),
16901    >,
16902    #[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"]
16903    pub get_parent_window: ::std::option::Option<
16904        unsafe extern "C" fn(
16905            self_: *mut _cef_window_delegate_t,
16906            window: *mut _cef_window_t,
16907            is_menu: *mut ::std::os::raw::c_int,
16908            can_activate_menu: *mut ::std::os::raw::c_int,
16909        ) -> *mut _cef_window_t,
16910    >,
16911    #[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"]
16912    pub is_window_modal_dialog: ::std::option::Option<
16913        unsafe extern "C" fn(
16914            self_: *mut _cef_window_delegate_t,
16915            window: *mut _cef_window_t,
16916        ) -> ::std::os::raw::c_int,
16917    >,
16918    #[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"]
16919    pub get_initial_bounds: ::std::option::Option<
16920        unsafe extern "C" fn(
16921            self_: *mut _cef_window_delegate_t,
16922            window: *mut _cef_window_t,
16923        ) -> cef_rect_t,
16924    >,
16925    #[doc = "\n Return the initial show state for |window|.\n"]
16926    pub get_initial_show_state: ::std::option::Option<
16927        unsafe extern "C" fn(
16928            self_: *mut _cef_window_delegate_t,
16929            window: *mut _cef_window_t,
16930        ) -> cef_show_state_t,
16931    >,
16932    #[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"]
16933    pub is_frameless: ::std::option::Option<
16934        unsafe extern "C" fn(
16935            self_: *mut _cef_window_delegate_t,
16936            window: *mut _cef_window_t,
16937        ) -> ::std::os::raw::c_int,
16938    >,
16939    #[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"]
16940    pub with_standard_window_buttons: ::std::option::Option<
16941        unsafe extern "C" fn(
16942            self_: *mut _cef_window_delegate_t,
16943            window: *mut _cef_window_t,
16944        ) -> ::std::os::raw::c_int,
16945    >,
16946    #[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"]
16947    pub get_titlebar_height: ::std::option::Option<
16948        unsafe extern "C" fn(
16949            self_: *mut _cef_window_delegate_t,
16950            window: *mut _cef_window_t,
16951            titlebar_height: *mut f32,
16952        ) -> ::std::os::raw::c_int,
16953    >,
16954    #[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"]
16955    pub accepts_first_mouse: ::std::option::Option<
16956        unsafe extern "C" fn(
16957            self_: *mut _cef_window_delegate_t,
16958            window: *mut _cef_window_t,
16959        ) -> cef_state_t,
16960    >,
16961    #[doc = "\n Return true (1) if |window| can be resized.\n"]
16962    pub can_resize: ::std::option::Option<
16963        unsafe extern "C" fn(
16964            self_: *mut _cef_window_delegate_t,
16965            window: *mut _cef_window_t,
16966        ) -> ::std::os::raw::c_int,
16967    >,
16968    #[doc = "\n Return true (1) if |window| can be maximized.\n"]
16969    pub can_maximize: ::std::option::Option<
16970        unsafe extern "C" fn(
16971            self_: *mut _cef_window_delegate_t,
16972            window: *mut _cef_window_t,
16973        ) -> ::std::os::raw::c_int,
16974    >,
16975    #[doc = "\n Return true (1) if |window| can be minimized.\n"]
16976    pub can_minimize: ::std::option::Option<
16977        unsafe extern "C" fn(
16978            self_: *mut _cef_window_delegate_t,
16979            window: *mut _cef_window_t,
16980        ) -> ::std::os::raw::c_int,
16981    >,
16982    #[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"]
16983    pub can_close: ::std::option::Option<
16984        unsafe extern "C" fn(
16985            self_: *mut _cef_window_delegate_t,
16986            window: *mut _cef_window_t,
16987        ) -> ::std::os::raw::c_int,
16988    >,
16989    #[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"]
16990    pub on_accelerator: ::std::option::Option<
16991        unsafe extern "C" fn(
16992            self_: *mut _cef_window_delegate_t,
16993            window: *mut _cef_window_t,
16994            command_id: ::std::os::raw::c_int,
16995        ) -> ::std::os::raw::c_int,
16996    >,
16997    #[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"]
16998    pub on_key_event: ::std::option::Option<
16999        unsafe extern "C" fn(
17000            self_: *mut _cef_window_delegate_t,
17001            window: *mut _cef_window_t,
17002            event: *const cef_key_event_t,
17003        ) -> ::std::os::raw::c_int,
17004    >,
17005    #[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"]
17006    pub on_theme_colors_changed: ::std::option::Option<
17007        unsafe extern "C" fn(
17008            self_: *mut _cef_window_delegate_t,
17009            window: *mut _cef_window_t,
17010            chrome_theme: ::std::os::raw::c_int,
17011        ),
17012    >,
17013    #[doc = "\n Optionally change the runtime style for this Window. See\n cef_runtime_style_t documentation for details.\n"]
17014    pub get_window_runtime_style: ::std::option::Option<
17015        unsafe extern "C" fn(self_: *mut _cef_window_delegate_t) -> cef_runtime_style_t,
17016    >,
17017    #[doc = "\n Return Linux-specific window properties for correctly handling by window\n managers\n"]
17018    pub get_linux_window_properties: ::std::option::Option<
17019        unsafe extern "C" fn(
17020            self_: *mut _cef_window_delegate_t,
17021            window: *mut _cef_window_t,
17022            properties: *mut _cef_linux_window_properties_t,
17023        ) -> ::std::os::raw::c_int,
17024    >,
17025}
17026#[allow(clippy::unnecessary_operation, clippy::identity_op)]
17027const _: () = {
17028    ["Size of _cef_window_delegate_t"][::std::mem::size_of::<_cef_window_delegate_t>() - 312usize];
17029    ["Alignment of _cef_window_delegate_t"]
17030        [::std::mem::align_of::<_cef_window_delegate_t>() - 8usize];
17031    ["Offset of field: _cef_window_delegate_t::base"]
17032        [::std::mem::offset_of!(_cef_window_delegate_t, base) - 0usize];
17033    ["Offset of field: _cef_window_delegate_t::on_window_created"]
17034        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_created) - 128usize];
17035    ["Offset of field: _cef_window_delegate_t::on_window_closing"]
17036        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_closing) - 136usize];
17037    ["Offset of field: _cef_window_delegate_t::on_window_destroyed"]
17038        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_destroyed) - 144usize];
17039    ["Offset of field: _cef_window_delegate_t::on_window_activation_changed"]
17040        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_activation_changed) - 152usize];
17041    ["Offset of field: _cef_window_delegate_t::on_window_bounds_changed"]
17042        [::std::mem::offset_of!(_cef_window_delegate_t, on_window_bounds_changed) - 160usize];
17043    ["Offset of field: _cef_window_delegate_t::on_window_fullscreen_transition"][::std::mem::offset_of!(
17044        _cef_window_delegate_t,
17045        on_window_fullscreen_transition
17046    ) - 168usize];
17047    ["Offset of field: _cef_window_delegate_t::get_parent_window"]
17048        [::std::mem::offset_of!(_cef_window_delegate_t, get_parent_window) - 176usize];
17049    ["Offset of field: _cef_window_delegate_t::is_window_modal_dialog"]
17050        [::std::mem::offset_of!(_cef_window_delegate_t, is_window_modal_dialog) - 184usize];
17051    ["Offset of field: _cef_window_delegate_t::get_initial_bounds"]
17052        [::std::mem::offset_of!(_cef_window_delegate_t, get_initial_bounds) - 192usize];
17053    ["Offset of field: _cef_window_delegate_t::get_initial_show_state"]
17054        [::std::mem::offset_of!(_cef_window_delegate_t, get_initial_show_state) - 200usize];
17055    ["Offset of field: _cef_window_delegate_t::is_frameless"]
17056        [::std::mem::offset_of!(_cef_window_delegate_t, is_frameless) - 208usize];
17057    ["Offset of field: _cef_window_delegate_t::with_standard_window_buttons"]
17058        [::std::mem::offset_of!(_cef_window_delegate_t, with_standard_window_buttons) - 216usize];
17059    ["Offset of field: _cef_window_delegate_t::get_titlebar_height"]
17060        [::std::mem::offset_of!(_cef_window_delegate_t, get_titlebar_height) - 224usize];
17061    ["Offset of field: _cef_window_delegate_t::accepts_first_mouse"]
17062        [::std::mem::offset_of!(_cef_window_delegate_t, accepts_first_mouse) - 232usize];
17063    ["Offset of field: _cef_window_delegate_t::can_resize"]
17064        [::std::mem::offset_of!(_cef_window_delegate_t, can_resize) - 240usize];
17065    ["Offset of field: _cef_window_delegate_t::can_maximize"]
17066        [::std::mem::offset_of!(_cef_window_delegate_t, can_maximize) - 248usize];
17067    ["Offset of field: _cef_window_delegate_t::can_minimize"]
17068        [::std::mem::offset_of!(_cef_window_delegate_t, can_minimize) - 256usize];
17069    ["Offset of field: _cef_window_delegate_t::can_close"]
17070        [::std::mem::offset_of!(_cef_window_delegate_t, can_close) - 264usize];
17071    ["Offset of field: _cef_window_delegate_t::on_accelerator"]
17072        [::std::mem::offset_of!(_cef_window_delegate_t, on_accelerator) - 272usize];
17073    ["Offset of field: _cef_window_delegate_t::on_key_event"]
17074        [::std::mem::offset_of!(_cef_window_delegate_t, on_key_event) - 280usize];
17075    ["Offset of field: _cef_window_delegate_t::on_theme_colors_changed"]
17076        [::std::mem::offset_of!(_cef_window_delegate_t, on_theme_colors_changed) - 288usize];
17077    ["Offset of field: _cef_window_delegate_t::get_window_runtime_style"]
17078        [::std::mem::offset_of!(_cef_window_delegate_t, get_window_runtime_style) - 296usize];
17079    ["Offset of field: _cef_window_delegate_t::get_linux_window_properties"]
17080        [::std::mem::offset_of!(_cef_window_delegate_t, get_linux_window_properties) - 304usize];
17081};
17082#[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"]
17083pub type cef_window_delegate_t = _cef_window_delegate_t;
17084#[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"]
17085#[repr(C)]
17086#[derive(Debug, Copy, Clone)]
17087pub struct _cef_window_t {
17088    #[doc = "\n Base structure.\n"]
17089    pub base: cef_panel_t,
17090    #[doc = "\n Show the Window.\n"]
17091    pub show: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17092    #[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"]
17093    pub show_as_browser_modal_dialog: ::std::option::Option<
17094        unsafe extern "C" fn(self_: *mut _cef_window_t, browser_view: *mut _cef_browser_view_t),
17095    >,
17096    #[doc = "\n Hide the Window.\n"]
17097    pub hide: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17098    #[doc = "\n Sizes the Window to |size| and centers it in the current display.\n"]
17099    pub center_window: ::std::option::Option<
17100        unsafe extern "C" fn(self_: *mut _cef_window_t, size: *const cef_size_t),
17101    >,
17102    #[doc = "\n Close the Window.\n"]
17103    pub close: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17104    #[doc = "\n Returns true (1) if the Window has been closed.\n"]
17105    pub is_closed: ::std::option::Option<
17106        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17107    >,
17108    #[doc = "\n Activate the Window, assuming it already exists and is visible.\n"]
17109    pub activate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17110    #[doc = "\n Deactivate the Window, making the next Window in the Z order the active\n Window.\n"]
17111    pub deactivate: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17112    #[doc = "\n Returns whether the Window is the currently active Window.\n"]
17113    pub is_active: ::std::option::Option<
17114        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17115    >,
17116    #[doc = "\n Bring this Window to the top of other Windows in the Windowing system.\n"]
17117    pub bring_to_top: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17118    #[doc = "\n Set the Window to be on top of other Windows in the Windowing system.\n"]
17119    pub set_always_on_top: ::std::option::Option<
17120        unsafe extern "C" fn(self_: *mut _cef_window_t, on_top: ::std::os::raw::c_int),
17121    >,
17122    #[doc = "\n Returns whether the Window has been set to be on top of other Windows in\n the Windowing system.\n"]
17123    pub is_always_on_top: ::std::option::Option<
17124        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17125    >,
17126    #[doc = "\n Maximize the Window.\n"]
17127    pub maximize: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17128    #[doc = "\n Minimize the Window.\n"]
17129    pub minimize: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17130    #[doc = "\n Restore the Window.\n"]
17131    pub restore: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17132    #[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"]
17133    pub set_fullscreen: ::std::option::Option<
17134        unsafe extern "C" fn(self_: *mut _cef_window_t, fullscreen: ::std::os::raw::c_int),
17135    >,
17136    #[doc = "\n Returns true (1) if the Window is maximized.\n"]
17137    pub is_maximized: ::std::option::Option<
17138        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17139    >,
17140    #[doc = "\n Returns true (1) if the Window is minimized.\n"]
17141    pub is_minimized: ::std::option::Option<
17142        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17143    >,
17144    #[doc = "\n Returns true (1) if the Window is fullscreen.\n"]
17145    pub is_fullscreen: ::std::option::Option<
17146        unsafe extern "C" fn(self_: *mut _cef_window_t) -> ::std::os::raw::c_int,
17147    >,
17148    #[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"]
17149    pub get_focused_view:
17150        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_view_t>,
17151    #[doc = "\n Set the Window title.\n"]
17152    pub set_title: ::std::option::Option<
17153        unsafe extern "C" fn(self_: *mut _cef_window_t, title: *const cef_string_t),
17154    >,
17155    #[doc = "\n Get the Window title.\n"]
17156    pub get_title: ::std::option::Option<
17157        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_string_userfree_t,
17158    >,
17159    #[doc = "\n Set the Window icon. This should be a 16x16 icon suitable for use in the\n Windows's title bar.\n"]
17160    pub set_window_icon: ::std::option::Option<
17161        unsafe extern "C" fn(self_: *mut _cef_window_t, image: *mut _cef_image_t),
17162    >,
17163    #[doc = "\n Get the Window icon.\n"]
17164    pub get_window_icon:
17165        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_image_t>,
17166    #[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"]
17167    pub set_window_app_icon: ::std::option::Option<
17168        unsafe extern "C" fn(self_: *mut _cef_window_t, image: *mut _cef_image_t),
17169    >,
17170    #[doc = "\n Get the Window App icon.\n"]
17171    pub get_window_app_icon:
17172        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_image_t>,
17173    #[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"]
17174    pub add_overlay_view: ::std::option::Option<
17175        unsafe extern "C" fn(
17176            self_: *mut _cef_window_t,
17177            view: *mut _cef_view_t,
17178            docking_mode: cef_docking_mode_t,
17179            can_activate: ::std::os::raw::c_int,
17180        ) -> *mut _cef_overlay_controller_t,
17181    >,
17182    #[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"]
17183    pub show_menu: ::std::option::Option<
17184        unsafe extern "C" fn(
17185            self_: *mut _cef_window_t,
17186            menu_model: *mut _cef_menu_model_t,
17187            screen_point: *const cef_point_t,
17188            anchor_position: cef_menu_anchor_position_t,
17189        ),
17190    >,
17191    #[doc = "\n Cancel the menu that is currently showing, if any.\n"]
17192    pub cancel_menu: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17193    #[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"]
17194    pub get_display: ::std::option::Option<
17195        unsafe extern "C" fn(self_: *mut _cef_window_t) -> *mut _cef_display_t,
17196    >,
17197    #[doc = "\n Returns the bounds (size and position) of this Window's client area.\n Position is in screen coordinates.\n"]
17198    pub get_client_area_bounds_in_screen:
17199        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_rect_t>,
17200    #[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"]
17201    pub set_draggable_regions: ::std::option::Option<
17202        unsafe extern "C" fn(
17203            self_: *mut _cef_window_t,
17204            regionsCount: usize,
17205            regions: *const cef_draggable_region_t,
17206        ),
17207    >,
17208    #[doc = "\n Retrieve the platform window handle for this Window.\n"]
17209    pub get_window_handle: ::std::option::Option<
17210        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_window_handle_t,
17211    >,
17212    #[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"]
17213    pub send_key_press: ::std::option::Option<
17214        unsafe extern "C" fn(
17215            self_: *mut _cef_window_t,
17216            key_code: ::std::os::raw::c_int,
17217            event_flags: u32,
17218        ),
17219    >,
17220    #[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"]
17221    pub send_mouse_move: ::std::option::Option<
17222        unsafe extern "C" fn(
17223            self_: *mut _cef_window_t,
17224            screen_x: ::std::os::raw::c_int,
17225            screen_y: ::std::os::raw::c_int,
17226        ),
17227    >,
17228    #[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"]
17229    pub send_mouse_events: ::std::option::Option<
17230        unsafe extern "C" fn(
17231            self_: *mut _cef_window_t,
17232            button: cef_mouse_button_type_t,
17233            mouse_down: ::std::os::raw::c_int,
17234            mouse_up: ::std::os::raw::c_int,
17235        ),
17236    >,
17237    #[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"]
17238    pub set_accelerator: ::std::option::Option<
17239        unsafe extern "C" fn(
17240            self_: *mut _cef_window_t,
17241            command_id: ::std::os::raw::c_int,
17242            key_code: ::std::os::raw::c_int,
17243            shift_pressed: ::std::os::raw::c_int,
17244            ctrl_pressed: ::std::os::raw::c_int,
17245            alt_pressed: ::std::os::raw::c_int,
17246            high_priority: ::std::os::raw::c_int,
17247        ),
17248    >,
17249    #[doc = "\n Remove the keyboard accelerator for the specified |command_id|.\n"]
17250    pub remove_accelerator: ::std::option::Option<
17251        unsafe extern "C" fn(self_: *mut _cef_window_t, command_id: ::std::os::raw::c_int),
17252    >,
17253    #[doc = "\n Remove all keyboard accelerators.\n"]
17254    pub remove_all_accelerators:
17255        ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17256    #[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"]
17257    pub set_theme_color: ::std::option::Option<
17258        unsafe extern "C" fn(
17259            self_: *mut _cef_window_t,
17260            color_id: ::std::os::raw::c_int,
17261            color: cef_color_t,
17262        ),
17263    >,
17264    #[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"]
17265    pub theme_changed: ::std::option::Option<unsafe extern "C" fn(self_: *mut _cef_window_t)>,
17266    #[doc = "\n Returns the runtime style for this Window (ALLOY or CHROME). See\n cef_runtime_style_t documentation for details.\n"]
17267    pub get_runtime_style: ::std::option::Option<
17268        unsafe extern "C" fn(self_: *mut _cef_window_t) -> cef_runtime_style_t,
17269    >,
17270}
17271#[allow(clippy::unnecessary_operation, clippy::identity_op)]
17272const _: () = {
17273    ["Size of _cef_window_t"][::std::mem::size_of::<_cef_window_t>() - 888usize];
17274    ["Alignment of _cef_window_t"][::std::mem::align_of::<_cef_window_t>() - 8usize];
17275    ["Offset of field: _cef_window_t::base"][::std::mem::offset_of!(_cef_window_t, base) - 0usize];
17276    ["Offset of field: _cef_window_t::show"]
17277        [::std::mem::offset_of!(_cef_window_t, show) - 552usize];
17278    ["Offset of field: _cef_window_t::show_as_browser_modal_dialog"]
17279        [::std::mem::offset_of!(_cef_window_t, show_as_browser_modal_dialog) - 560usize];
17280    ["Offset of field: _cef_window_t::hide"]
17281        [::std::mem::offset_of!(_cef_window_t, hide) - 568usize];
17282    ["Offset of field: _cef_window_t::center_window"]
17283        [::std::mem::offset_of!(_cef_window_t, center_window) - 576usize];
17284    ["Offset of field: _cef_window_t::close"]
17285        [::std::mem::offset_of!(_cef_window_t, close) - 584usize];
17286    ["Offset of field: _cef_window_t::is_closed"]
17287        [::std::mem::offset_of!(_cef_window_t, is_closed) - 592usize];
17288    ["Offset of field: _cef_window_t::activate"]
17289        [::std::mem::offset_of!(_cef_window_t, activate) - 600usize];
17290    ["Offset of field: _cef_window_t::deactivate"]
17291        [::std::mem::offset_of!(_cef_window_t, deactivate) - 608usize];
17292    ["Offset of field: _cef_window_t::is_active"]
17293        [::std::mem::offset_of!(_cef_window_t, is_active) - 616usize];
17294    ["Offset of field: _cef_window_t::bring_to_top"]
17295        [::std::mem::offset_of!(_cef_window_t, bring_to_top) - 624usize];
17296    ["Offset of field: _cef_window_t::set_always_on_top"]
17297        [::std::mem::offset_of!(_cef_window_t, set_always_on_top) - 632usize];
17298    ["Offset of field: _cef_window_t::is_always_on_top"]
17299        [::std::mem::offset_of!(_cef_window_t, is_always_on_top) - 640usize];
17300    ["Offset of field: _cef_window_t::maximize"]
17301        [::std::mem::offset_of!(_cef_window_t, maximize) - 648usize];
17302    ["Offset of field: _cef_window_t::minimize"]
17303        [::std::mem::offset_of!(_cef_window_t, minimize) - 656usize];
17304    ["Offset of field: _cef_window_t::restore"]
17305        [::std::mem::offset_of!(_cef_window_t, restore) - 664usize];
17306    ["Offset of field: _cef_window_t::set_fullscreen"]
17307        [::std::mem::offset_of!(_cef_window_t, set_fullscreen) - 672usize];
17308    ["Offset of field: _cef_window_t::is_maximized"]
17309        [::std::mem::offset_of!(_cef_window_t, is_maximized) - 680usize];
17310    ["Offset of field: _cef_window_t::is_minimized"]
17311        [::std::mem::offset_of!(_cef_window_t, is_minimized) - 688usize];
17312    ["Offset of field: _cef_window_t::is_fullscreen"]
17313        [::std::mem::offset_of!(_cef_window_t, is_fullscreen) - 696usize];
17314    ["Offset of field: _cef_window_t::get_focused_view"]
17315        [::std::mem::offset_of!(_cef_window_t, get_focused_view) - 704usize];
17316    ["Offset of field: _cef_window_t::set_title"]
17317        [::std::mem::offset_of!(_cef_window_t, set_title) - 712usize];
17318    ["Offset of field: _cef_window_t::get_title"]
17319        [::std::mem::offset_of!(_cef_window_t, get_title) - 720usize];
17320    ["Offset of field: _cef_window_t::set_window_icon"]
17321        [::std::mem::offset_of!(_cef_window_t, set_window_icon) - 728usize];
17322    ["Offset of field: _cef_window_t::get_window_icon"]
17323        [::std::mem::offset_of!(_cef_window_t, get_window_icon) - 736usize];
17324    ["Offset of field: _cef_window_t::set_window_app_icon"]
17325        [::std::mem::offset_of!(_cef_window_t, set_window_app_icon) - 744usize];
17326    ["Offset of field: _cef_window_t::get_window_app_icon"]
17327        [::std::mem::offset_of!(_cef_window_t, get_window_app_icon) - 752usize];
17328    ["Offset of field: _cef_window_t::add_overlay_view"]
17329        [::std::mem::offset_of!(_cef_window_t, add_overlay_view) - 760usize];
17330    ["Offset of field: _cef_window_t::show_menu"]
17331        [::std::mem::offset_of!(_cef_window_t, show_menu) - 768usize];
17332    ["Offset of field: _cef_window_t::cancel_menu"]
17333        [::std::mem::offset_of!(_cef_window_t, cancel_menu) - 776usize];
17334    ["Offset of field: _cef_window_t::get_display"]
17335        [::std::mem::offset_of!(_cef_window_t, get_display) - 784usize];
17336    ["Offset of field: _cef_window_t::get_client_area_bounds_in_screen"]
17337        [::std::mem::offset_of!(_cef_window_t, get_client_area_bounds_in_screen) - 792usize];
17338    ["Offset of field: _cef_window_t::set_draggable_regions"]
17339        [::std::mem::offset_of!(_cef_window_t, set_draggable_regions) - 800usize];
17340    ["Offset of field: _cef_window_t::get_window_handle"]
17341        [::std::mem::offset_of!(_cef_window_t, get_window_handle) - 808usize];
17342    ["Offset of field: _cef_window_t::send_key_press"]
17343        [::std::mem::offset_of!(_cef_window_t, send_key_press) - 816usize];
17344    ["Offset of field: _cef_window_t::send_mouse_move"]
17345        [::std::mem::offset_of!(_cef_window_t, send_mouse_move) - 824usize];
17346    ["Offset of field: _cef_window_t::send_mouse_events"]
17347        [::std::mem::offset_of!(_cef_window_t, send_mouse_events) - 832usize];
17348    ["Offset of field: _cef_window_t::set_accelerator"]
17349        [::std::mem::offset_of!(_cef_window_t, set_accelerator) - 840usize];
17350    ["Offset of field: _cef_window_t::remove_accelerator"]
17351        [::std::mem::offset_of!(_cef_window_t, remove_accelerator) - 848usize];
17352    ["Offset of field: _cef_window_t::remove_all_accelerators"]
17353        [::std::mem::offset_of!(_cef_window_t, remove_all_accelerators) - 856usize];
17354    ["Offset of field: _cef_window_t::set_theme_color"]
17355        [::std::mem::offset_of!(_cef_window_t, set_theme_color) - 864usize];
17356    ["Offset of field: _cef_window_t::theme_changed"]
17357        [::std::mem::offset_of!(_cef_window_t, theme_changed) - 872usize];
17358    ["Offset of field: _cef_window_t::get_runtime_style"]
17359        [::std::mem::offset_of!(_cef_window_t, get_runtime_style) - 880usize];
17360};
17361#[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"]
17362pub type cef_window_t = _cef_window_t;
17363unsafe extern "C" {
17364    #[doc = "\n Create a new Window.\n"]
17365    pub fn cef_window_create_top_level(delegate: *mut _cef_window_delegate_t) -> *mut cef_window_t;
17366}
17367impl cef_color_id_t {
17368    pub const CEF_ColorRefPrimary0: cef_color_id_t = cef_color_id_t::CEF_UiColorsStart;
17369}
17370impl cef_color_id_t {
17371    pub const CEF_ComponentsColorsStart: cef_color_id_t = cef_color_id_t::CEF_UiColorsEnd;
17372}
17373impl cef_color_id_t {
17374    pub const CEF_ChromeColorsStart: cef_color_id_t = cef_color_id_t::CEF_ComponentsColorsEnd;
17375}
17376impl cef_color_id_t {
17377    pub const CEF_ColorAppMenuHighlightSeverityLow: cef_color_id_t =
17378        cef_color_id_t::CEF_ComponentsColorsEnd;
17379}
17380#[repr(u32)]
17381#[non_exhaustive]
17382#[doc = "\n All input, intermediary, and output colors known to CEF/Chromium.\n Clients can optionally extend this enum with additional values.\n Clients define enum values from CEF_ChromeColorsEnd. Values named\n beginning with \"CEF_Color\" represent the actual colors; the rest are\n markers.\n"]
17383#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
17384pub enum cef_color_id_t {
17385    CEF_UiColorsStart = 0,
17386    CEF_ColorRefPrimary10 = 1,
17387    CEF_ColorRefPrimary20 = 2,
17388    CEF_ColorRefPrimary25 = 3,
17389    CEF_ColorRefPrimary30 = 4,
17390    CEF_ColorRefPrimary40 = 5,
17391    CEF_ColorRefPrimary50 = 6,
17392    CEF_ColorRefPrimary60 = 7,
17393    CEF_ColorRefPrimary70 = 8,
17394    CEF_ColorRefPrimary80 = 9,
17395    CEF_ColorRefPrimary90 = 10,
17396    CEF_ColorRefPrimary95 = 11,
17397    CEF_ColorRefPrimary99 = 12,
17398    CEF_ColorRefPrimary100 = 13,
17399    CEF_ColorRefSecondary0 = 14,
17400    CEF_ColorRefSecondary10 = 15,
17401    CEF_ColorRefSecondary12 = 16,
17402    CEF_ColorRefSecondary15 = 17,
17403    CEF_ColorRefSecondary20 = 18,
17404    CEF_ColorRefSecondary25 = 19,
17405    CEF_ColorRefSecondary30 = 20,
17406    CEF_ColorRefSecondary35 = 21,
17407    CEF_ColorRefSecondary40 = 22,
17408    CEF_ColorRefSecondary50 = 23,
17409    CEF_ColorRefSecondary60 = 24,
17410    CEF_ColorRefSecondary70 = 25,
17411    CEF_ColorRefSecondary80 = 26,
17412    CEF_ColorRefSecondary90 = 27,
17413    CEF_ColorRefSecondary95 = 28,
17414    CEF_ColorRefSecondary99 = 29,
17415    CEF_ColorRefSecondary100 = 30,
17416    CEF_ColorRefTertiary0 = 31,
17417    CEF_ColorRefTertiary10 = 32,
17418    CEF_ColorRefTertiary20 = 33,
17419    CEF_ColorRefTertiary30 = 34,
17420    CEF_ColorRefTertiary40 = 35,
17421    CEF_ColorRefTertiary50 = 36,
17422    CEF_ColorRefTertiary60 = 37,
17423    CEF_ColorRefTertiary70 = 38,
17424    CEF_ColorRefTertiary80 = 39,
17425    CEF_ColorRefTertiary90 = 40,
17426    CEF_ColorRefTertiary95 = 41,
17427    CEF_ColorRefTertiary99 = 42,
17428    CEF_ColorRefTertiary100 = 43,
17429    CEF_ColorRefError0 = 44,
17430    CEF_ColorRefError10 = 45,
17431    CEF_ColorRefError20 = 46,
17432    CEF_ColorRefError30 = 47,
17433    CEF_ColorRefError40 = 48,
17434    CEF_ColorRefError50 = 49,
17435    CEF_ColorRefError60 = 50,
17436    CEF_ColorRefError70 = 51,
17437    CEF_ColorRefError80 = 52,
17438    CEF_ColorRefError90 = 53,
17439    CEF_ColorRefError95 = 54,
17440    CEF_ColorRefError99 = 55,
17441    CEF_ColorRefError100 = 56,
17442    CEF_ColorRefNeutral0 = 57,
17443    CEF_ColorRefNeutral4 = 58,
17444    CEF_ColorRefNeutral6 = 59,
17445    CEF_ColorRefNeutral8 = 60,
17446    CEF_ColorRefNeutral10 = 61,
17447    CEF_ColorRefNeutral12 = 62,
17448    CEF_ColorRefNeutral15 = 63,
17449    CEF_ColorRefNeutral17 = 64,
17450    CEF_ColorRefNeutral20 = 65,
17451    CEF_ColorRefNeutral22 = 66,
17452    CEF_ColorRefNeutral24 = 67,
17453    CEF_ColorRefNeutral25 = 68,
17454    CEF_ColorRefNeutral30 = 69,
17455    CEF_ColorRefNeutral40 = 70,
17456    CEF_ColorRefNeutral50 = 71,
17457    CEF_ColorRefNeutral60 = 72,
17458    CEF_ColorRefNeutral70 = 73,
17459    CEF_ColorRefNeutral80 = 74,
17460    CEF_ColorRefNeutral87 = 75,
17461    CEF_ColorRefNeutral90 = 76,
17462    CEF_ColorRefNeutral92 = 77,
17463    CEF_ColorRefNeutral94 = 78,
17464    CEF_ColorRefNeutral95 = 79,
17465    CEF_ColorRefNeutral96 = 80,
17466    CEF_ColorRefNeutral98 = 81,
17467    CEF_ColorRefNeutral99 = 82,
17468    CEF_ColorRefNeutral100 = 83,
17469    CEF_ColorRefNeutralVariant0 = 84,
17470    CEF_ColorRefNeutralVariant10 = 85,
17471    CEF_ColorRefNeutralVariant15 = 86,
17472    CEF_ColorRefNeutralVariant20 = 87,
17473    CEF_ColorRefNeutralVariant30 = 88,
17474    CEF_ColorRefNeutralVariant40 = 89,
17475    CEF_ColorRefNeutralVariant50 = 90,
17476    CEF_ColorRefNeutralVariant60 = 91,
17477    CEF_ColorRefNeutralVariant70 = 92,
17478    CEF_ColorRefNeutralVariant80 = 93,
17479    CEF_ColorRefNeutralVariant90 = 94,
17480    CEF_ColorRefNeutralVariant95 = 95,
17481    CEF_ColorRefNeutralVariant99 = 96,
17482    CEF_ColorRefNeutralVariant100 = 97,
17483    CEF_ColorSysPrimary = 98,
17484    CEF_ColorSysOnPrimary = 99,
17485    CEF_ColorSysPrimaryContainer = 100,
17486    CEF_ColorSysOnPrimaryContainer = 101,
17487    CEF_ColorSysSecondary = 102,
17488    CEF_ColorSysOnSecondary = 103,
17489    CEF_ColorSysSecondaryContainer = 104,
17490    CEF_ColorSysOnSecondaryContainer = 105,
17491    CEF_ColorSysTertiary = 106,
17492    CEF_ColorSysOnTertiary = 107,
17493    CEF_ColorSysTertiaryContainer = 108,
17494    CEF_ColorSysOnTertiaryContainer = 109,
17495    CEF_ColorSysError = 110,
17496    CEF_ColorSysOnError = 111,
17497    CEF_ColorSysErrorContainer = 112,
17498    CEF_ColorSysOnErrorContainer = 113,
17499    CEF_ColorSysOnSurface = 114,
17500    CEF_ColorSysOnSurfaceVariant = 115,
17501    CEF_ColorSysOutline = 116,
17502    CEF_ColorSysSurfaceVariant = 117,
17503    CEF_ColorSysBlack = 118,
17504    CEF_ColorSysWhite = 119,
17505    CEF_ColorSysInversePrimary = 120,
17506    CEF_ColorSysInverseOnSurface = 121,
17507    CEF_ColorSysInverseSurface = 122,
17508    CEF_ColorSysInverseSurfacePrimary = 123,
17509    CEF_ColorSysSurface = 124,
17510    CEF_ColorSysSurface1 = 125,
17511    CEF_ColorSysSurface2 = 126,
17512    CEF_ColorSysSurface3 = 127,
17513    CEF_ColorSysSurface4 = 128,
17514    CEF_ColorSysSurface5 = 129,
17515    CEF_ColorSysSurfaceNumberedForeground = 130,
17516    CEF_ColorSysOnSurfaceSecondary = 131,
17517    CEF_ColorSysOnSurfaceSubtle = 132,
17518    CEF_ColorSysOnSurfacePrimary = 133,
17519    CEF_ColorSysOnSurfacePrimaryInactive = 134,
17520    CEF_ColorSysTonalContainer = 135,
17521    CEF_ColorSysOnTonalContainer = 136,
17522    CEF_ColorSysBaseTonalContainer = 137,
17523    CEF_ColorSysOnBaseTonalContainer = 138,
17524    CEF_ColorSysTonalOutline = 139,
17525    CEF_ColorSysNeutralOutline = 140,
17526    CEF_ColorSysNeutralContainer = 141,
17527    CEF_ColorSysDivider = 142,
17528    CEF_ColorSysBase = 143,
17529    CEF_ColorSysBaseContainer = 144,
17530    CEF_ColorSysBaseContainerElevated = 145,
17531    CEF_ColorSysHeader = 146,
17532    CEF_ColorSysHeaderInactive = 147,
17533    CEF_ColorSysHeaderContainer = 148,
17534    CEF_ColorSysHeaderContainerInactive = 149,
17535    CEF_ColorSysOnHeaderDivider = 150,
17536    CEF_ColorSysOnHeaderDividerInactive = 151,
17537    CEF_ColorSysOnHeaderPrimary = 152,
17538    CEF_ColorSysOnHeaderPrimaryInactive = 153,
17539    CEF_ColorSysStateHoverOnProminent = 154,
17540    CEF_ColorSysStateHoverOnSubtle = 155,
17541    CEF_ColorSysStateRippleNeutralOnProminent = 156,
17542    CEF_ColorSysStateRippleNeutralOnSubtle = 157,
17543    CEF_ColorSysStateRipplePrimary = 158,
17544    CEF_ColorSysStateFocusRing = 159,
17545    CEF_ColorSysStateFocusRingInverse = 160,
17546    CEF_ColorSysStateTextHighlight = 161,
17547    CEF_ColorSysStateOnTextHighlight = 162,
17548    CEF_ColorSysStateFocusHighlight = 163,
17549    CEF_ColorSysStateDisabled = 164,
17550    CEF_ColorSysStateDisabledContainer = 165,
17551    CEF_ColorSysStateHoverDimBlendProtection = 166,
17552    CEF_ColorSysStateHoverBrightBlendProtection = 167,
17553    CEF_ColorSysStateInactiveRing = 168,
17554    CEF_ColorSysStateScrim = 169,
17555    CEF_ColorSysStateOnHeaderHover = 170,
17556    CEF_ColorSysStateHeaderHover = 171,
17557    CEF_ColorSysStateHeaderHoverInactive = 172,
17558    CEF_ColorSysStateHeaderSelect = 173,
17559    CEF_ColorSysShadow = 174,
17560    CEF_ColorSysGradientPrimary = 175,
17561    CEF_ColorSysGradientTertiary = 176,
17562    CEF_ColorSysIlloPrimaryMin = 177,
17563    CEF_ColorSysIlloPrimaryLow = 178,
17564    CEF_ColorSysIlloPrimaryMid = 179,
17565    CEF_ColorSysIlloPrimaryHigh = 180,
17566    CEF_ColorSysIlloPrimaryMax = 181,
17567    CEF_ColorSysIlloSecondaryMin = 182,
17568    CEF_ColorSysIlloSecondaryLow = 183,
17569    CEF_ColorSysIlloSecondaryMid = 184,
17570    CEF_ColorSysIlloSecondaryHigh = 185,
17571    CEF_ColorSysIlloSecondaryMax = 186,
17572    CEF_ColorSysIlloTertiaryMin = 187,
17573    CEF_ColorSysIlloTertiaryLow = 188,
17574    CEF_ColorSysIlloTertiaryMid = 189,
17575    CEF_ColorSysIlloTertiaryHigh = 190,
17576    CEF_ColorSysIlloTertiaryMax = 191,
17577    CEF_ColorSysIlloNeutralMin = 192,
17578    CEF_ColorSysIlloNeutralLow = 193,
17579    CEF_ColorSysIlloNeutralMid = 194,
17580    CEF_ColorSysIlloNeutralHigh = 195,
17581    CEF_ColorSysIlloNeutralMax = 196,
17582    CEF_ColorSysActorUiBorder = 197,
17583    CEF_ColorSysActorUiGradientStart = 198,
17584    CEF_ColorSysActorUiGradientMiddle = 199,
17585    CEF_ColorSysActorUiGradientEnd = 200,
17586    CEF_ColorGlicTabUnderline1 = 201,
17587    CEF_ColorGlicTabUnderline2 = 202,
17588    CEF_ColorGlicTabUnderline3 = 203,
17589    CEF_ColorSysAiIllustrationShapeSurface1 = 204,
17590    CEF_ColorSysAiIllustrationShapeSurface2 = 205,
17591    CEF_ColorSysAiIllustrationShapeSurfaceGradientStart = 206,
17592    CEF_ColorSysAiIllustrationShapeSurfaceGradientEnd = 207,
17593    CEF_ColorSysOmniboxContainer = 208,
17594    CEF_ColorSysStateHover = 209,
17595    CEF_ColorSysStateFocus = 210,
17596    CEF_ColorSysStatePressed = 211,
17597    CEF_ColorAccent = 212,
17598    CEF_ColorAccentWithGuaranteedContrastAtopPrimaryBackground = 213,
17599    CEF_ColorAlertHighSeverity = 214,
17600    CEF_ColorAlertLowSeverity = 215,
17601    CEF_ColorAlertMediumSeverityIcon = 216,
17602    CEF_ColorAlertMediumSeverityText = 217,
17603    CEF_ColorDisabledForeground = 218,
17604    CEF_ColorEndpointBackground = 219,
17605    CEF_ColorEndpointForeground = 220,
17606    CEF_ColorItemHighlight = 221,
17607    CEF_ColorItemSelectionBackground = 222,
17608    CEF_ColorMenuSelectionBackground = 223,
17609    CEF_ColorMidground = 224,
17610    CEF_ColorPrimaryBackground = 225,
17611    CEF_ColorPrimaryForeground = 226,
17612    CEF_ColorSecondaryForeground = 227,
17613    CEF_ColorSubtleAccent = 228,
17614    CEF_ColorSubtleEmphasisBackground = 229,
17615    CEF_ColorTextSelectionBackground = 230,
17616    CEF_ColorTextSelectionForeground = 231,
17617    CEF_ColorAppMenuProfileRowBackground = 232,
17618    CEF_ColorAppMenuProfileRowChipBackground = 233,
17619    CEF_ColorAppMenuProfileRowChipHovered = 234,
17620    CEF_ColorAppMenuRowBackgroundHovered = 235,
17621    CEF_ColorAppMenuUpgradeRowBackground = 236,
17622    CEF_ColorAppMenuUpgradeRowSubstringForeground = 237,
17623    CEF_ColorAvatarIconGuest = 238,
17624    CEF_ColorAvatarIconIncognito = 239,
17625    CEF_ColorBadgeBackground = 240,
17626    CEF_ColorBadgeForeground = 241,
17627    CEF_ColorBadgeInCocoaMenuBackground = 242,
17628    CEF_ColorBadgeInCocoaMenuForeground = 243,
17629    CEF_ColorBubbleBackground = 244,
17630    CEF_ColorBubbleBorder = 245,
17631    CEF_ColorBubbleBorderShadowLarge = 246,
17632    CEF_ColorBubbleBorderShadowSmall = 247,
17633    CEF_ColorBubbleFooterBackground = 248,
17634    CEF_ColorBubbleFooterBorder = 249,
17635    CEF_ColorButtonFeatureAttentionHighlight = 250,
17636    CEF_ColorButtonBackground = 251,
17637    CEF_ColorButtonBackgroundPressed = 252,
17638    CEF_ColorButtonBackgroundProminent = 253,
17639    CEF_ColorButtonBackgroundProminentDisabled = 254,
17640    CEF_ColorButtonBackgroundProminentFocused = 255,
17641    CEF_ColorButtonBackgroundTonal = 256,
17642    CEF_ColorButtonBackgroundTonalDisabled = 257,
17643    CEF_ColorButtonBackgroundTonalFocused = 258,
17644    CEF_ColorButtonBackgroundWithAttention = 259,
17645    CEF_ColorButtonBorder = 260,
17646    CEF_ColorButtonBorderDisabled = 261,
17647    CEF_ColorButtonForeground = 262,
17648    CEF_ColorButtonForegroundDisabled = 263,
17649    CEF_ColorButtonForegroundProminent = 264,
17650    CEF_ColorButtonForegroundTonal = 265,
17651    CEF_ColorButtonHoverBackgroundText = 266,
17652    CEF_ColorMultitaskMenuNudgePulse = 267,
17653    CEF_ColorCheckboxCheck = 268,
17654    CEF_ColorCheckboxCheckDisabled = 269,
17655    CEF_ColorCheckboxContainer = 270,
17656    CEF_ColorCheckboxContainerDisabled = 271,
17657    CEF_ColorCheckboxOutline = 272,
17658    CEF_ColorCheckboxOutlineDisabled = 273,
17659    CEF_ColorCheckboxForegroundChecked = 274,
17660    CEF_ColorCheckboxForegroundUnchecked = 275,
17661    CEF_ColorChipBackgroundHover = 276,
17662    CEF_ColorChipBackgroundSelected = 277,
17663    CEF_ColorChipBorder = 278,
17664    CEF_ColorChipForeground = 279,
17665    CEF_ColorChipForegroundSelected = 280,
17666    CEF_ColorChipIcon = 281,
17667    CEF_ColorChipIconSelected = 282,
17668    CEF_ColorComboboxBackground = 283,
17669    CEF_ColorComboboxBackgroundDisabled = 284,
17670    CEF_ColorComboboxContainerOutline = 285,
17671    CEF_ColorComboboxInkDropHovered = 286,
17672    CEF_ColorComboboxInkDropRipple = 287,
17673    CEF_ColorCssSystemActiveText = 288,
17674    CEF_ColorCssSystemBtnFace = 289,
17675    CEF_ColorCssSystemBtnText = 290,
17676    CEF_ColorCssSystemField = 291,
17677    CEF_ColorCssSystemFieldText = 292,
17678    CEF_ColorCssSystemGrayText = 293,
17679    CEF_ColorCssSystemHighlight = 294,
17680    CEF_ColorCssSystemHighlightText = 295,
17681    CEF_ColorCssSystemHotlight = 296,
17682    CEF_ColorCssSystemLinkText = 297,
17683    CEF_ColorCssSystemMenuHilight = 298,
17684    CEF_ColorCssSystemScrollbar = 299,
17685    CEF_ColorCssSystemVisitedText = 300,
17686    CEF_ColorCssSystemWindow = 301,
17687    CEF_ColorCssSystemWindowText = 302,
17688    CEF_ColorCustomFrameCaptionForeground = 303,
17689    CEF_ColorDebugBoundsOutline = 304,
17690    CEF_ColorDebugContentOutline = 305,
17691    CEF_ColorDialogBackground = 306,
17692    CEF_ColorDialogForeground = 307,
17693    CEF_ColorDropdownBackground = 308,
17694    CEF_ColorDropdownBackgroundSelected = 309,
17695    CEF_ColorDropdownForeground = 310,
17696    CEF_ColorDropdownForegroundSelected = 311,
17697    CEF_ColorFocusableBorderFocused = 312,
17698    CEF_ColorFocusableBorderUnfocused = 313,
17699    CEF_ColorFrameActive = 314,
17700    CEF_ColorFrameActiveUnthemed = 315,
17701    CEF_ColorFrameCaptionButtonUnfocused = 316,
17702    CEF_ColorFrameInactive = 317,
17703    CEF_ColorHelpIconActive = 318,
17704    CEF_ColorHelpIconInactive = 319,
17705    CEF_ColorHistoryClustersSidePanelDivider = 320,
17706    CEF_ColorHistoryClustersSidePanelDialogBackground = 321,
17707    CEF_ColorHistoryClustersSidePanelDialogDivider = 322,
17708    CEF_ColorHistoryClustersSidePanelDialogPrimaryForeground = 323,
17709    CEF_ColorHistoryClustersSidePanelDialogSecondaryForeground = 324,
17710    CEF_ColorHistoryClustersSidePanelCardSecondaryForeground = 325,
17711    CEF_ColorIcon = 326,
17712    CEF_ColorIconDisabled = 327,
17713    CEF_ColorIconSecondary = 328,
17714    CEF_ColorInfoBarIcon = 329,
17715    CEF_ColorLabelForeground = 330,
17716    CEF_ColorLabelForegroundDisabled = 331,
17717    CEF_ColorLabelForegroundSecondary = 332,
17718    CEF_ColorLabelSelectionBackground = 333,
17719    CEF_ColorLabelSelectionForeground = 334,
17720    CEF_ColorLinkForeground = 335,
17721    CEF_ColorLinkForegroundDefault = 336,
17722    CEF_ColorLinkForegroundDisabled = 337,
17723    CEF_ColorLinkForegroundOnBubbleFooter = 338,
17724    CEF_ColorLinkForegroundPressed = 339,
17725    CEF_ColorLinkForegroundPressedDefault = 340,
17726    CEF_ColorLinkForegroundPressedOnBubbleFooter = 341,
17727    CEF_ColorListItemFolderIconBackground = 342,
17728    CEF_ColorListItemFolderIconForeground = 343,
17729    CEF_ColorListItemUrlFaviconBackground = 344,
17730    CEF_ColorLiveCaptionBubbleBackgroundDefault = 345,
17731    CEF_ColorLiveCaptionBubbleButtonBackground = 346,
17732    CEF_ColorLiveCaptionBubbleButtonIcon = 347,
17733    CEF_ColorLiveCaptionBubbleButtonIconDisabled = 348,
17734    CEF_ColorLiveCaptionBubbleForegroundDefault = 349,
17735    CEF_ColorLiveCaptionBubbleForegroundSecondary = 350,
17736    CEF_ColorLiveCaptionBubbleCheckbox = 351,
17737    CEF_ColorLiveCaptionBubbleLink = 352,
17738    CEF_ColorLoadingGradientBorder = 353,
17739    CEF_ColorLoadingGradientEnd = 354,
17740    CEF_ColorLoadingGradientMiddle = 355,
17741    CEF_ColorLoadingGradientStart = 356,
17742    CEF_ColorMenuBackground = 357,
17743    CEF_ColorMenuBorder = 358,
17744    CEF_ColorMenuButtonBackground = 359,
17745    CEF_ColorMenuButtonBackgroundSelected = 360,
17746    CEF_ColorMenuDropmarker = 361,
17747    CEF_ColorMenuIcon = 362,
17748    CEF_ColorMenuIconDisabled = 363,
17749    CEF_ColorMenuIconOnEmphasizedBackground = 364,
17750    CEF_ColorMenuItemBackgroundAlertedInitial = 365,
17751    CEF_ColorMenuItemBackgroundAlertedTarget = 366,
17752    CEF_ColorMenuItemBackgroundHighlighted = 367,
17753    CEF_ColorMenuItemBackgroundSelected = 368,
17754    CEF_ColorMenuItemForeground = 369,
17755    CEF_ColorMenuItemForegroundDisabled = 370,
17756    CEF_ColorMenuItemForegroundHighlighted = 371,
17757    CEF_ColorMenuItemForegroundSecondary = 372,
17758    CEF_ColorMenuItemForegroundSelected = 373,
17759    CEF_ColorMenuSeparator = 374,
17760    CEF_ColorNotificationActionsBackground = 375,
17761    CEF_ColorNotificationBackgroundActive = 376,
17762    CEF_ColorNotificationBackgroundInactive = 377,
17763    CEF_ColorNotificationHeaderForeground = 378,
17764    CEF_ColorNotificationIconBackground = 379,
17765    CEF_ColorNotificationIconForeground = 380,
17766    CEF_ColorNotificationImageBackground = 381,
17767    CEF_ColorNotificationInputBackground = 382,
17768    CEF_ColorNotificationInputForeground = 383,
17769    CEF_ColorNotificationInputPlaceholderForeground = 384,
17770    CEF_ColorOverlayScrollbarFill = 385,
17771    CEF_ColorOverlayScrollbarFillHovered = 386,
17772    CEF_ColorOverlayScrollbarStroke = 387,
17773    CEF_ColorOverlayScrollbarStrokeHovered = 388,
17774    CEF_ColorProgressBar = 389,
17775    CEF_ColorProgressBarBackground = 390,
17776    CEF_ColorProgressBarPaused = 391,
17777    CEF_ColorRadioButtonForegroundUnchecked = 392,
17778    CEF_ColorRadioButtonForegroundDisabled = 393,
17779    CEF_ColorRadioButtonForegroundChecked = 394,
17780    CEF_ColorSegmentedButtonBorder = 395,
17781    CEF_ColorSegmentedButtonFocus = 396,
17782    CEF_ColorSegmentedButtonForegroundChecked = 397,
17783    CEF_ColorSegmentedButtonForegroundUnchecked = 398,
17784    CEF_ColorSegmentedButtonHover = 399,
17785    CEF_ColorSegmentedButtonRipple = 400,
17786    CEF_ColorSegmentedButtonChecked = 401,
17787    CEF_ColorSeparator = 402,
17788    CEF_ColorShadowBase = 403,
17789    CEF_ColorShadowValueAmbientShadowElevationFour = 404,
17790    CEF_ColorShadowValueAmbientShadowElevationSixteen = 405,
17791    CEF_ColorShadowValueAmbientShadowElevationThree = 406,
17792    CEF_ColorShadowValueAmbientShadowElevationTwelve = 407,
17793    CEF_ColorShadowValueAmbientShadowElevationTwentyFour = 408,
17794    CEF_ColorShadowValueKeyShadowElevationFour = 409,
17795    CEF_ColorShadowValueKeyShadowElevationSixteen = 410,
17796    CEF_ColorShadowValueKeyShadowElevationThree = 411,
17797    CEF_ColorShadowValueKeyShadowElevationTwelve = 412,
17798    CEF_ColorShadowValueKeyShadowElevationTwentyFour = 413,
17799    CEF_ColorSidePanelComboboxBorder = 414,
17800    CEF_ColorSidePanelComboboxBackground = 415,
17801    CEF_ColorSliderThumb = 416,
17802    CEF_ColorSliderThumbMinimal = 417,
17803    CEF_ColorSliderTrack = 418,
17804    CEF_ColorSliderTrackMinimal = 419,
17805    CEF_ColorSyncInfoBackground = 420,
17806    CEF_ColorSyncInfoBackgroundError = 421,
17807    CEF_ColorSyncInfoBackgroundPaused = 422,
17808    CEF_ColorTabBackgroundHighlighted = 423,
17809    CEF_ColorTabBackgroundHighlightedFocused = 424,
17810    CEF_ColorTabBorderSelected = 425,
17811    CEF_ColorTabContentSeparator = 426,
17812    CEF_ColorTabForegroundDisabled = 427,
17813    CEF_ColorTabForeground = 428,
17814    CEF_ColorTabForegroundSelected = 429,
17815    CEF_ColorTableBackground = 430,
17816    CEF_ColorTableBackgroundAlternate = 431,
17817    CEF_ColorTableBackgroundSelectedFocused = 432,
17818    CEF_ColorTableBackgroundSelectedUnfocused = 433,
17819    CEF_ColorTableForeground = 434,
17820    CEF_ColorTableForegroundSelectedFocused = 435,
17821    CEF_ColorTableForegroundSelectedUnfocused = 436,
17822    CEF_ColorTableGroupingIndicator = 437,
17823    CEF_ColorTableHeaderBackground = 438,
17824    CEF_ColorTableHeaderForeground = 439,
17825    CEF_ColorTableHeaderSeparator = 440,
17826    CEF_ColorTableIconBackground = 441,
17827    CEF_ColorTableRowHighlight = 442,
17828    CEF_ColorSuggestionChipBorder = 443,
17829    CEF_ColorSuggestionChipIcon = 444,
17830    CEF_ColorTextfieldBackground = 445,
17831    CEF_ColorTextfieldBackgroundDisabled = 446,
17832    CEF_ColorTextfieldFilledBackground = 447,
17833    CEF_ColorTextfieldFilledForegroundInvalid = 448,
17834    CEF_ColorTextfieldFilledUnderline = 449,
17835    CEF_ColorTextfieldFilledUnderlineFocused = 450,
17836    CEF_ColorTextfieldForeground = 451,
17837    CEF_ColorTextfieldForegroundDisabled = 452,
17838    CEF_ColorTextfieldForegroundIcon = 453,
17839    CEF_ColorTextfieldForegroundLabel = 454,
17840    CEF_ColorTextfieldForegroundPlaceholderInvalid = 455,
17841    CEF_ColorTextfieldForegroundPlaceholder = 456,
17842    CEF_ColorTextfieldHover = 457,
17843    CEF_ColorTextfieldSelectionBackground = 458,
17844    CEF_ColorTextfieldSelectionForeground = 459,
17845    CEF_ColorTextfieldOutline = 460,
17846    CEF_ColorTextfieldOutlineDisabled = 461,
17847    CEF_ColorTextfieldOutlineInvalid = 462,
17848    CEF_ColorThemeColorPickerCheckmarkBackground = 463,
17849    CEF_ColorThemeColorPickerCheckmarkForeground = 464,
17850    CEF_ColorThemeColorPickerCustomColorIconBackground = 465,
17851    CEF_ColorThemeColorPickerHueSliderDialogBackground = 466,
17852    CEF_ColorThemeColorPickerHueSliderDialogForeground = 467,
17853    CEF_ColorThemeColorPickerHueSliderDialogIcon = 468,
17854    CEF_ColorThemeColorPickerHueSliderHandle = 469,
17855    CEF_ColorThemeColorPickerOptionBackground = 470,
17856    CEF_ColorThrobber = 471,
17857    CEF_ColorThrobberPreconnect = 472,
17858    CEF_ColorToastBackground = 473,
17859    CEF_ColorToastBackgroundProminent = 474,
17860    CEF_ColorToastButton = 475,
17861    CEF_ColorToastForeground = 476,
17862    CEF_ColorToggleButtonHover = 477,
17863    CEF_ColorToggleButtonPressed = 478,
17864    CEF_ColorToggleButtonShadow = 479,
17865    CEF_ColorToggleButtonThumbOff = 480,
17866    CEF_ColorToggleButtonThumbOffDisabled = 481,
17867    CEF_ColorToggleButtonThumbOn = 482,
17868    CEF_ColorToggleButtonThumbOnDisabled = 483,
17869    CEF_ColorToggleButtonThumbOnHover = 484,
17870    CEF_ColorToggleButtonTrackOff = 485,
17871    CEF_ColorToggleButtonTrackOffDisabled = 486,
17872    CEF_ColorToggleButtonTrackOn = 487,
17873    CEF_ColorToggleButtonTrackOnDisabled = 488,
17874    CEF_ColorToolbarSearchFieldBackground = 489,
17875    CEF_ColorToolbarSearchFieldBackgroundHover = 490,
17876    CEF_ColorToolbarSearchFieldBackgroundPressed = 491,
17877    CEF_ColorToolbarSearchFieldForeground = 492,
17878    CEF_ColorToolbarSearchFieldForegroundPlaceholder = 493,
17879    CEF_ColorToolbarSearchFieldIcon = 494,
17880    CEF_ColorTooltipBackground = 495,
17881    CEF_ColorTooltipForeground = 496,
17882    CEF_ColorTreeBackground = 497,
17883    CEF_ColorTreeNodeBackgroundSelectedFocused = 498,
17884    CEF_ColorTreeNodeBackgroundSelectedUnfocused = 499,
17885    CEF_ColorTreeNodeForeground = 500,
17886    CEF_ColorTreeNodeForegroundSelectedFocused = 501,
17887    CEF_ColorTreeNodeForegroundSelectedUnfocused = 502,
17888    CEF_ColorWebNativeControlAccent = 503,
17889    CEF_ColorWebNativeControlAccentDisabled = 504,
17890    CEF_ColorWebNativeControlAccentHovered = 505,
17891    CEF_ColorWebNativeControlAccentPressed = 506,
17892    CEF_ColorWebNativeControlAutoCompleteBackground = 507,
17893    CEF_ColorWebNativeControlBorder = 508,
17894    CEF_ColorWebNativeControlBorderDisabled = 509,
17895    CEF_ColorWebNativeControlBorderHovered = 510,
17896    CEF_ColorWebNativeControlBorderPressed = 511,
17897    CEF_ColorWebNativeControlButtonBorder = 512,
17898    CEF_ColorWebNativeControlButtonBorderDisabled = 513,
17899    CEF_ColorWebNativeControlButtonBorderHovered = 514,
17900    CEF_ColorWebNativeControlButtonBorderPressed = 515,
17901    CEF_ColorWebNativeControlButtonFill = 516,
17902    CEF_ColorWebNativeControlButtonFillDisabled = 517,
17903    CEF_ColorWebNativeControlButtonFillHovered = 518,
17904    CEF_ColorWebNativeControlButtonFillPressed = 519,
17905    CEF_ColorWebNativeControlCheckboxBackground = 520,
17906    CEF_ColorWebNativeControlCheckboxBackgroundDisabled = 521,
17907    CEF_ColorWebNativeControlFill = 522,
17908    CEF_ColorWebNativeControlFillDisabled = 523,
17909    CEF_ColorWebNativeControlFillHovered = 524,
17910    CEF_ColorWebNativeControlFillPressed = 525,
17911    CEF_ColorWebNativeControlLightenLayer = 526,
17912    CEF_ColorWebNativeControlProgressValue = 527,
17913    CEF_ColorWebNativeControlScrollbarArrowBackgroundDisabled = 528,
17914    CEF_ColorWebNativeControlScrollbarArrowBackgroundHovered = 529,
17915    CEF_ColorWebNativeControlScrollbarArrowBackgroundPressed = 530,
17916    CEF_ColorWebNativeControlScrollbarArrowForeground = 531,
17917    CEF_ColorWebNativeControlScrollbarArrowForegroundDisabled = 532,
17918    CEF_ColorWebNativeControlScrollbarArrowForegroundPressed = 533,
17919    CEF_ColorWebNativeControlScrollbarCorner = 534,
17920    CEF_ColorWebNativeControlScrollbarThumb = 535,
17921    CEF_ColorWebNativeControlScrollbarThumbHovered = 536,
17922    CEF_ColorWebNativeControlScrollbarThumbOverlayMinimalMode = 537,
17923    CEF_ColorWebNativeControlScrollbarThumbPressed = 538,
17924    CEF_ColorWebNativeControlScrollbarTrack = 539,
17925    CEF_ColorWebNativeControlSlider = 540,
17926    CEF_ColorWebNativeControlSliderBorder = 541,
17927    CEF_ColorWebNativeControlSliderBorderHovered = 542,
17928    CEF_ColorWebNativeControlSliderBorderPressed = 543,
17929    CEF_ColorWebNativeControlSliderDisabled = 544,
17930    CEF_ColorWebNativeControlSliderHovered = 545,
17931    CEF_ColorWebNativeControlSliderPressed = 546,
17932    CEF_ColorWindowBackground = 547,
17933    CEF_ColorNativeBoxFrameBorder = 548,
17934    CEF_ColorNativeHeaderButtonBorderActive = 549,
17935    CEF_ColorNativeHeaderButtonBorderInactive = 550,
17936    CEF_ColorNativeHeaderSeparatorBorderActive = 551,
17937    CEF_ColorNativeHeaderSeparatorBorderInactive = 552,
17938    CEF_ColorNativeLabelForeground = 553,
17939    CEF_ColorNativeTabForegroundInactiveFrameActive = 554,
17940    CEF_ColorNativeTabForegroundInactiveFrameInactive = 555,
17941    CEF_ColorNativeTextfieldBorderUnfocused = 556,
17942    CEF_ColorNativeToolbarBackground = 557,
17943    CEF_UiColorsEnd = 558,
17944    kFullscreenNotificationOpaqueBackgroundColor = 559,
17945    kFullscreenNotificationTransparentBackgroundColor = 560,
17946    CEF_ColorEyedropperBoundary = 561,
17947    CEF_ColorEyedropperCentralPixelInnerRing = 562,
17948    CEF_ColorEyedropperCentralPixelOuterRing = 563,
17949    CEF_ColorEyedropperGrid = 564,
17950    CEF_ComponentsColorsEnd = 565,
17951    CEF_ColorAppMenuHighlightSeverityHigh = 566,
17952    CEF_ColorAppMenuHighlightSeverityMedium = 567,
17953    CEF_ColorAppMenuHighlightDefault = 568,
17954    CEF_ColorAppMenuHighlightPrimary = 569,
17955    CEF_ColorAppMenuExpandedForegroundDefault = 570,
17956    CEF_ColorAppMenuExpandedForegroundPrimary = 571,
17957    CEF_ColorAppMenuChipInkDropHover = 572,
17958    CEF_ColorAppMenuChipInkDropRipple = 573,
17959    CEF_ColorActorUiHandoffButtonBorder = 574,
17960    CEF_ColorActorUiOverlayBorder = 575,
17961    CEF_ColorActorUiOverlayBorderGlow = 576,
17962    CEF_ColorActorUiScrimStart = 577,
17963    CEF_ColorActorUiScrimMiddle = 578,
17964    CEF_ColorActorUiScrimEnd = 579,
17965    CEF_ColorActorUiMagicCursor = 580,
17966    CEF_ColorActivityIndicatorForeground = 581,
17967    CEF_ColorActivityIndicatorSubtitleForeground = 582,
17968    CEF_ColorAvatarButtonHighlightDefault = 583,
17969    CEF_ColorAvatarButtonHighlightGuest = 584,
17970    CEF_ColorAvatarButtonHighlightSyncError = 585,
17971    CEF_ColorAvatarButtonHighlightSyncPaused = 586,
17972    CEF_ColorAvatarButtonHighlightPasskeysLocked = 587,
17973    CEF_ColorAvatarButtonHighlightSigninPaused = 588,
17974    CEF_ColorAvatarButtonHighlightExplicitText = 589,
17975    CEF_ColorAvatarButtonHighlightIncognito = 590,
17976    CEF_ColorAvatarButtonHighlightManagement = 591,
17977    CEF_ColorAvatarButtonHighlightGuestForeground = 592,
17978    CEF_ColorAvatarButtonHighlightDefaultForeground = 593,
17979    CEF_ColorAvatarButtonHighlightSyncErrorForeground = 594,
17980    CEF_ColorAvatarButtonHighlightIncognitoForeground = 595,
17981    CEF_ColorAvatarButtonHighlightManagementForeground = 596,
17982    CEF_ColorAvatarButtonIncognitoHover = 597,
17983    CEF_ColorAvatarButtonNormalRipple = 598,
17984    CEF_ColorAvatarStroke = 599,
17985    CEF_ColorAvatarFillForContrast = 600,
17986    CEF_ColorBookmarkBarBackground = 601,
17987    CEF_ColorBookmarkBarForeground = 602,
17988    CEF_ColorBookmarkBarForegroundDisabled = 603,
17989    CEF_ColorBookmarkBarSeparator = 604,
17990    CEF_ColorBookmarkBarSeparatorChromeRefresh = 605,
17991    CEF_ColorBookmarkButtonIcon = 606,
17992    CEF_ColorBookmarkDialogTrackPriceIcon = 607,
17993    CEF_ColorBookmarkDialogProductImageBorder = 608,
17994    CEF_ColorBookmarkDragImageBackground = 609,
17995    CEF_ColorBookmarkDragImageCountBackground = 610,
17996    CEF_ColorBookmarkDragImageCountForeground = 611,
17997    CEF_ColorBookmarkDragImageForeground = 612,
17998    CEF_ColorBookmarkDragImageIconBackground = 613,
17999    CEF_ColorBookmarkFavicon = 614,
18000    CEF_ColorBookmarkFolderIcon = 615,
18001    CEF_ColorCaptionButtonBackground = 616,
18002    CEF_ColorCapturedTabContentsBorder = 617,
18003    CEF_ColorCastDialogHelpIcon = 618,
18004    CEF_ColorChromeSigninBubbleBackground = 619,
18005    CEF_ColorChromeSigninBubbleInfoBackground = 620,
18006    CEF_ColorBatchUploadBackground = 621,
18007    CEF_ColorBatchUploadDataBackground = 622,
18008    CEF_ColorBatchUploadDataSeparator = 623,
18009    CEF_ColorBnplIssuerLabelForeground = 624,
18010    CEF_ColorBnplIssuerLabelForegroundDisabled = 625,
18011    CEF_ColorBnplIssuerLinkedIneligibleBackground = 626,
18012    CEF_ColorBnplIssuerLinkedPillBackground = 627,
18013    CEF_ColorBnplIssuerLinkedPillForeground = 628,
18014    CEF_ColorComposeDialogBackground = 629,
18015    CEF_ColorComposeDialogDivider = 630,
18016    CEF_ColorComposeDialogError = 631,
18017    CEF_ColorComposeDialogForegroundSubtle = 632,
18018    CEF_ColorComposeDialogLink = 633,
18019    CEF_ColorComposeDialogLogo = 634,
18020    CEF_ColorComposeDialogResultBackground = 635,
18021    CEF_ColorComposeDialogResultForeground = 636,
18022    CEF_ColorComposeDialogResultForegroundWhileLoading = 637,
18023    CEF_ColorComposeDialogResultIcon = 638,
18024    CEF_ColorComposeDialogResultContainerScrollbarThumb = 639,
18025    CEF_ColorComposeDialogScrollbarThumb = 640,
18026    CEF_ColorComposeDialogTitle = 641,
18027    CEF_ColorComposeDialogTextarea = 642,
18028    CEF_ColorComposeDialogTextareaOutline = 643,
18029    CEF_ColorComposeDialogTextareaPlaceholder = 644,
18030    CEF_ColorComposeDialogTextareaReadonlyBackground = 645,
18031    CEF_ColorComposeDialogTextareaReadonlyForeground = 646,
18032    CEF_ColorComposeDialogTextareaIcon = 647,
18033    CEF_ColorComposeDialogSelectOptionDisabled = 648,
18034    CEF_ColorDesktopMediaPickerDescriptionLabel = 649,
18035    CEF_ColorDesktopMediaTabListBorder = 650,
18036    CEF_ColorDesktopMediaTabListPreviewBackground = 651,
18037    CEF_ColorDesktopToIOSPromoFooterSubtitleLabel = 652,
18038    CEF_ColorDownloadItemIconDangerous = 653,
18039    CEF_ColorDownloadItemTextDangerous = 654,
18040    CEF_ColorDownloadItemIconWarning = 655,
18041    CEF_ColorDownloadItemTextWarning = 656,
18042    CEF_ColorDownloadBubbleInfoBackground = 657,
18043    CEF_ColorDownloadBubbleInfoIcon = 658,
18044    CEF_ColorDownloadBubbleRowHover = 659,
18045    CEF_ColorDownloadBubbleShowAllDownloadsIcon = 660,
18046    CEF_ColorDownloadBubblePrimaryIcon = 661,
18047    CEF_ColorDownloadToolbarButtonActive = 662,
18048    CEF_ColorDownloadToolbarButtonAnimationBackground = 663,
18049    CEF_ColorDownloadToolbarButtonAnimationForeground = 664,
18050    CEF_ColorDownloadToolbarButtonInactive = 665,
18051    CEF_ColorDownloadToolbarButtonRingBackground = 666,
18052    CEF_ColorExtensionDialogBackground = 667,
18053    CEF_ColorExtensionIconBadgeBackgroundDefault = 668,
18054    CEF_ColorExtensionIconDecorationAmbientShadow = 669,
18055    CEF_ColorExtensionIconDecorationBackground = 670,
18056    CEF_ColorExtensionIconDecorationKeyShadow = 671,
18057    CEF_ColorExtensionMenuIcon = 672,
18058    CEF_ColorExtensionMenuIconDisabled = 673,
18059    CEF_ColorExtensionMenuPinButtonIcon = 674,
18060    CEF_ColorExtensionMenuPinButtonIconDisabled = 675,
18061    CEF_ColorExtensionsMenuContainerBackground = 676,
18062    CEF_ColorExtensionsMenuText = 677,
18063    CEF_ColorExtensionsMenuSecondaryText = 678,
18064    CEF_ColorFeatureFirstRunInfoContainerBackground = 679,
18065    CEF_ColorFeatureFirstRunIconColor = 680,
18066    CEF_ColorFeaturePromoBubbleBackground = 681,
18067    CEF_ColorFeaturePromoBubbleButtonBorder = 682,
18068    CEF_ColorFeaturePromoBubbleCloseButtonInkDrop = 683,
18069    CEF_ColorFeaturePromoBubbleDefaultButtonBackground = 684,
18070    CEF_ColorFeaturePromoBubbleDefaultButtonForeground = 685,
18071    CEF_ColorFeaturePromoBubbleForeground = 686,
18072    CEF_ColorFeatureLensPromoBubbleBackground = 687,
18073    CEF_ColorFeatureLensPromoBubbleForeground = 688,
18074    CEF_ColorFindBarBackground = 689,
18075    CEF_ColorFindBarButtonIcon = 690,
18076    CEF_ColorFindBarButtonIconDisabled = 691,
18077    CEF_ColorFindBarForeground = 692,
18078    CEF_ColorFindBarMatchCount = 693,
18079    CEF_ColorFlyingIndicatorBackground = 694,
18080    CEF_ColorFlyingIndicatorForeground = 695,
18081    CEF_ColorFocusHighlightDefault = 696,
18082    CEF_ColorFrameCaptionActive = 697,
18083    CEF_ColorFrameCaptionInactive = 698,
18084    CEF_ColorHistoryEmbeddingsBackground = 699,
18085    CEF_ColorHistoryEmbeddingsDivider = 700,
18086    CEF_ColorHistoryEmbeddingsForeground = 701,
18087    CEF_ColorHistoryEmbeddingsForegroundSubtle = 702,
18088    CEF_ColorHistoryEmbeddingsImageBackground = 703,
18089    CEF_ColorHistoryEmbeddingsImageBackgroundGradientEnd = 704,
18090    CEF_ColorHistoryEmbeddingsImageBackgroundGradientStart = 705,
18091    CEF_ColorInfoBarBackground = 706,
18092    CEF_ColorInfoBarButtonIcon = 707,
18093    CEF_ColorInfoBarButtonIconDisabled = 708,
18094    CEF_ColorInfoBarContentAreaSeparator = 709,
18095    CEF_ColorInfoBarForeground = 710,
18096    CEF_ColorIntentPickerItemBackgroundHovered = 711,
18097    CEF_ColorIntentPickerItemBackgroundSelected = 712,
18098    CEF_ColorGlicBackground = 713,
18099    CEF_ColorGlicModalBackground = 714,
18100    CEF_ColorGlicModalForeground = 715,
18101    CEF_ColorGlicActiveTabUnderlineGradient1 = 716,
18102    CEF_ColorGlicActiveTabUnderlineGradient2 = 717,
18103    CEF_ColorGlicActiveTabUnderlineGradient3 = 718,
18104    CEF_ColorGlicInactiveTabUnderlineGradient1 = 719,
18105    CEF_ColorGlicInactiveTabUnderlineGradient2 = 720,
18106    CEF_ColorGlicInactiveTabUnderlineGradient3 = 721,
18107    CEF_ColorHoverButtonBackgroundHovered = 722,
18108    CEF_ColorLensOverlayToastBackground = 723,
18109    CEF_ColorLensOverlayToastButtonBorder = 724,
18110    CEF_ColorLensOverlayToastForeground = 725,
18111    CEF_ColorLocationBarBackground = 726,
18112    CEF_ColorLocationBarBackgroundHovered = 727,
18113    CEF_ColorLocationBarBorder = 728,
18114    CEF_ColorLocationBarBorderOnMismatch = 729,
18115    CEF_ColorLocationBarBorderOpaque = 730,
18116    CEF_ColorLocationBarClearAllButtonIcon = 731,
18117    CEF_ColorLocationBarClearAllButtonIconDisabled = 732,
18118    CEF_ColorMediaRouterIconActive = 733,
18119    CEF_ColorMediaRouterIconWarning = 734,
18120    CEF_ColorMultiContentsViewActiveContentOutline = 735,
18121    CEF_ColorMultiContentsViewInactiveContentOutline = 736,
18122    CEF_ColorMultiContentsViewHighlightContentOutline = 737,
18123    CEF_ColorMultiContentsViewMiniToolbarForeground = 738,
18124    CEF_ColorNewTabButtonForegroundFrameActive = 739,
18125    CEF_ColorNewTabButtonForegroundFrameInactive = 740,
18126    CEF_ColorNewTabButtonBackgroundFrameActive = 741,
18127    CEF_ColorNewTabButtonBackgroundFrameInactive = 742,
18128    CEF_ColorNewTabButtonFocusRing = 743,
18129    CEF_ColorNewTabButtonInkDropFrameActive = 744,
18130    CEF_ColorNewTabButtonInkDropFrameInactive = 745,
18131    CEF_ColorTabStripComboButtonSeparator = 746,
18132    CEF_ColorTabStripControlButtonInkDrop = 747,
18133    CEF_ColorTabStripControlButtonInkDropRipple = 748,
18134    CEF_ColorNewTabButtonCRForegroundFrameActive = 749,
18135    CEF_ColorNewTabButtonCRForegroundFrameInactive = 750,
18136    CEF_ColorNewTabButtonCRBackgroundFrameActive = 751,
18137    CEF_ColorNewTabButtonCRBackgroundFrameInactive = 752,
18138    CEF_ColorNewTabPageActionButtonBackground = 753,
18139    CEF_ColorNewTabPageActionButtonBorder = 754,
18140    CEF_ColorNewTabPageActionButtonBorderHovered = 755,
18141    CEF_ColorNewTabPageActionButtonForeground = 756,
18142    CEF_ColorNewTabPageActiveBackground = 757,
18143    CEF_ColorNewTabPageAddShortcutBackground = 758,
18144    CEF_ColorNewTabPageAddShortcutForeground = 759,
18145    CEF_ColorNewTabPageAttributionForeground = 760,
18146    CEF_ColorNewTabPageBackground = 761,
18147    CEF_ColorNewTabPageBackgroundOverride = 762,
18148    CEF_ColorNewTabPageBorder = 763,
18149    CEF_ColorNewTabPageButtonBackground = 764,
18150    CEF_ColorNewTabPageButtonBackgroundHovered = 765,
18151    CEF_ColorNewTabPageButtonForeground = 766,
18152    CEF_ColorNewTabPageCartModuleDiscountChipBackground = 767,
18153    CEF_ColorNewTabPageCartModuleDiscountChipForeground = 768,
18154    CEF_ColorNewTabPageActionChipTextBody = 769,
18155    CEF_ColorNewTabPageActionChipTextTitle = 770,
18156    CEF_ColorNewTabPageActionChipDeepSearchIcon = 771,
18157    CEF_ColorNewTabPageThreadsRailBackground = 772,
18158    CEF_ColorNewTabPageThreadsRailIconButton = 773,
18159    CEF_ColorNewTabPageChipBackground = 774,
18160    CEF_ColorNewTabPageChipForeground = 775,
18161    CEF_ColorComposeboxBackground = 776,
18162    CEF_ColorComposeboxFileChipSpinner = 777,
18163    CEF_ColorComposeboxFont = 778,
18164    CEF_ColorComposeboxFontLight = 779,
18165    CEF_ColorComposeboxCancelButton = 780,
18166    CEF_ColorComposeboxCancelButtonLight = 781,
18167    CEF_ColorComposeboxErrorScrimBackground = 782,
18168    CEF_ColorComposeboxErrorScrimButtonBackground = 783,
18169    CEF_ColorComposeboxErrorScrimButtonBackgroundHover = 784,
18170    CEF_ColorComposeboxErrorScrimButtonText = 785,
18171    CEF_ColorComposeboxErrorScrimForeground = 786,
18172    CEF_ColorComposeboxHover = 787,
18173    CEF_ColorComposeboxInputIcon = 788,
18174    CEF_ColorComposeboxLensButton = 789,
18175    CEF_ColorComposeboxOutlineHcm = 790,
18176    CEF_ColorComposeboxRecentTabChipOutline = 791,
18177    CEF_ColorComposeboxScrimBackground = 792,
18178    CEF_ColorComposeboxSubmitButtonBackground = 793,
18179    CEF_ColorComposeboxSuggestionActivity = 794,
18180    CEF_ColorComposeboxTabSelectorButtonSelected = 795,
18181    CEF_ColorComposeboxTypeAhead = 796,
18182    CEF_ColorComposeboxTypeAheadChip = 797,
18183    CEF_ColorComposeboxUploadButton = 798,
18184    CEF_ColorComposeboxUploadButtonDisabled = 799,
18185    CEF_ColorComposeboxFileChipBackground = 800,
18186    CEF_ColorComposeboxFileChipFaviconBackground = 801,
18187    CEF_ColorComposeboxFileChipText = 802,
18188    CEF_ColorComposeboxPdfChipIcon = 803,
18189    CEF_ColorComposeboxFileImageOverlay = 804,
18190    CEF_ColorComposeboxFileCarouselDivider = 805,
18191    CEF_ColorComposeboxFileCarouselRemoveButton = 806,
18192    CEF_ColorComposeboxFileCarouselRemoveGradientStart = 807,
18193    CEF_ColorComposeboxFileCarouselRemoveGradientEnd = 808,
18194    CEF_ColorComposeboxFileCarouselUrl = 809,
18195    CEF_ColorComposeboxContextEntrypointTextDisabled = 810,
18196    CEF_ColorComposeboxContextEntrypointHoverBackground = 811,
18197    CEF_ColorComposeboxLink = 812,
18198    CEF_ColorNewTabPageCommonInputPlaceholder = 813,
18199    CEF_ColorNewTabPageControlBackgroundHovered = 814,
18200    CEF_ColorNewTabPageControlBackgroundSelected = 815,
18201    CEF_ColorNewTabPageFirstRunBackground = 816,
18202    CEF_ColorNewTabPageFocusRing = 817,
18203    CEF_ColorNewTabPageHeader = 818,
18204    CEF_ColorNewTabPageHistoryClustersModuleItemBackground = 819,
18205    CEF_ColorNewTabPagePromoBackground = 820,
18206    CEF_ColorNewTabPagePromoImageBackground = 821,
18207    CEF_ColorNewTabPageIconButtonBackground = 822,
18208    CEF_ColorNewTabPageIconButtonBackgroundActive = 823,
18209    CEF_ColorNewTabPageLink = 824,
18210    CEF_ColorNewTabPageLogo = 825,
18211    CEF_ColorNewTabPageLogoUnthemedDark = 826,
18212    CEF_ColorNewTabPageLogoUnthemedLight = 827,
18213    CEF_ColorNewTabPageMenuInnerShadow = 828,
18214    CEF_ColorNewTabPageMenuOuterShadow = 829,
18215    CEF_ColorNewTabPageMicBorderColor = 830,
18216    CEF_ColorNewTabPageMicIconColor = 831,
18217    CEF_ColorNewTabPageModuleControlBorder = 832,
18218    CEF_ColorNewTabPageModuleContextMenuDivider = 833,
18219    CEF_ColorNewTabPageModuleBackground = 834,
18220    CEF_ColorNewTabPageModuleCalendarEventTimeStatusBackground = 835,
18221    CEF_ColorNewTabPageModuleCalendarAttachmentScrollbarThumb = 836,
18222    CEF_ColorNewTabPageModuleCalendarDividerColor = 837,
18223    CEF_ColorNewTabPageModuleIconBackground = 838,
18224    CEF_ColorNewTabPageModuleElementDivider = 839,
18225    CEF_ColorNewTabPageModuleIconContainerBackground = 840,
18226    CEF_ColorNewTabPageModuleItemBackground = 841,
18227    CEF_ColorNewTabPageModuleItemBackgroundHovered = 842,
18228    CEF_ColorNewTabPageModuleScrollButtonBackground = 843,
18229    CEF_ColorNewTabPageModuleScrollButtonBackgroundHovered = 844,
18230    CEF_ColorNewTabPageModuleTabGroupsGrey = 845,
18231    CEF_ColorNewTabPageModuleTabGroupsBlue = 846,
18232    CEF_ColorNewTabPageModuleTabGroupsRed = 847,
18233    CEF_ColorNewTabPageModuleTabGroupsYellow = 848,
18234    CEF_ColorNewTabPageModuleTabGroupsGreen = 849,
18235    CEF_ColorNewTabPageModuleTabGroupsPink = 850,
18236    CEF_ColorNewTabPageModuleTabGroupsPurple = 851,
18237    CEF_ColorNewTabPageModuleTabGroupsCyan = 852,
18238    CEF_ColorNewTabPageModuleTabGroupsOrange = 853,
18239    CEF_ColorNewTabPageModuleTabGroupsDotGrey = 854,
18240    CEF_ColorNewTabPageModuleTabGroupsDotBlue = 855,
18241    CEF_ColorNewTabPageModuleTabGroupsDotRed = 856,
18242    CEF_ColorNewTabPageModuleTabGroupsDotYellow = 857,
18243    CEF_ColorNewTabPageModuleTabGroupsDotGreen = 858,
18244    CEF_ColorNewTabPageModuleTabGroupsDotPink = 859,
18245    CEF_ColorNewTabPageModuleTabGroupsDotPurple = 860,
18246    CEF_ColorNewTabPageModuleTabGroupsDotCyan = 861,
18247    CEF_ColorNewTabPageModuleTabGroupsDotOrange = 862,
18248    CEF_ColorNewTabPageMostVisitedForeground = 863,
18249    CEF_ColorNewTabPageMostVisitedTileBackground = 864,
18250    CEF_ColorNewTabPageMostVisitedTileBackgroundThemed = 865,
18251    CEF_ColorNewTabPageMostVisitedTileBackgroundUnthemed = 866,
18252    CEF_ColorNewTabPageOnThemeForeground = 867,
18253    CEF_ColorNewTabPageOverlayBackground = 868,
18254    CEF_ColorNewTabPageOverlayForeground = 869,
18255    CEF_ColorNewTabPageOverlaySecondaryForeground = 870,
18256    CEF_ColorNewTabPagePrimaryForeground = 871,
18257    CEF_ColorNewTabPageRealboxNextIconHover = 872,
18258    CEF_ColorNewTabPageSearchBoxBackground = 873,
18259    CEF_ColorNewTabPageSearchBoxBackgroundHovered = 874,
18260    CEF_ColorNewTabPageSearchBoxResultsTextDimmedSelected = 875,
18261    CEF_ColorNewTabPageSecondaryForeground = 876,
18262    CEF_ColorNewTabPageSectionBorder = 877,
18263    CEF_ColorNewTabPageTagBackground = 878,
18264    CEF_ColorNewTabPageText = 879,
18265    CEF_ColorNewTabPageTextUnthemed = 880,
18266    CEF_ColorNewTabPageTextLight = 881,
18267    CEF_ColorNewTabPageWallpaperSearchButtonBackground = 882,
18268    CEF_ColorNewTabPageWallpaperSearchButtonBackgroundHovered = 883,
18269    CEF_ColorNewTabPageWallpaperSearchButtonForeground = 884,
18270    CEF_ColorNewTabPageDoodleShareButtonBackground = 885,
18271    CEF_ColorNewTabPageDoodleShareButtonIcon = 886,
18272    CEF_ColorNewTabFooterBackground = 887,
18273    CEF_ColorNewTabFooterText = 888,
18274    CEF_ColorNewTabFooterLogoBackground = 889,
18275    CEF_ColorOmniboxActionIcon = 890,
18276    CEF_ColorOmniboxActionIconHover = 891,
18277    CEF_ColorOmniboxAnswerIconGM3Background = 892,
18278    CEF_ColorOmniboxAnswerIconGM3Foreground = 893,
18279    CEF_ColorOmniboxBubbleOutline = 894,
18280    CEF_ColorOmniboxChipInUseActivityIndicatorBackground = 895,
18281    CEF_ColorOmniboxChipInUseActivityIndicatorForeground = 896,
18282    CEF_ColorOmniboxChipBackground = 897,
18283    CEF_ColorOmniboxChipBlockedActivityIndicatorBackground = 898,
18284    CEF_ColorOmniboxChipBlockedActivityIndicatorForeground = 899,
18285    CEF_ColorOmniboxChipForegroundLowVisibility = 900,
18286    CEF_ColorOmniboxChipForegroundNormalVisibility = 901,
18287    CEF_ColorOmniboxChipInkDropHover = 902,
18288    CEF_ColorOmniboxChipInkDropRipple = 903,
18289    CEF_ColorOmniboxChipOnSystemBlockedActivityIndicatorBackground = 904,
18290    CEF_ColorOmniboxChipOnSystemBlockedActivityIndicatorForeground = 905,
18291    CEF_ColorOmniboxComposeboxChipBackground = 906,
18292    CEF_ColorOmniboxComposeboxDivider = 907,
18293    CEF_ColorOmniboxComposeboxFaviconBackground = 908,
18294    CEF_ColorOmniboxComposeboxFileThumbnailOverlay = 909,
18295    CEF_ColorOmniboxComposeboxFileThumbnailOverlayIcon = 910,
18296    CEF_ColorOmniboxComposeboxForegroundDisabled = 911,
18297    CEF_ColorOmniboxComposeboxPrimaryAction = 912,
18298    CEF_ColorOmniboxComposeboxSubmitButtonBackground = 913,
18299    CEF_ColorOmniboxComposeboxSubmitButtonIcon = 914,
18300    CEF_ColorOmniboxContextEntrypointHoverBackground = 915,
18301    CEF_ColorOmniboxContextEntrypointText = 916,
18302    CEF_ColorOmniboxIconBackground = 917,
18303    CEF_ColorOmniboxIconBackgroundTonal = 918,
18304    CEF_ColorOmniboxIconForeground = 919,
18305    CEF_ColorOmniboxIconForegroundTonal = 920,
18306    CEF_ColorOmniboxIconHover = 921,
18307    CEF_ColorOmniboxIconPressed = 922,
18308    CEF_ColorOmniboxIntentChipBackground = 923,
18309    CEF_ColorOmniboxIntentChipIcon = 924,
18310    CEF_ColorOmniboxKeywordSelected = 925,
18311    CEF_ColorOmniboxKeywordSeparator = 926,
18312    CEF_ColorOmniboxResultsBackground = 927,
18313    CEF_ColorOmniboxResultsBackgroundHovered = 928,
18314    CEF_ColorOmniboxResultsBackgroundSelected = 929,
18315    CEF_ColorOmniboxResultsBackgroundIph = 930,
18316    CEF_ColorOmniboxResultsButtonBorder = 931,
18317    CEF_ColorOmniboxResultsButtonIcon = 932,
18318    CEF_ColorOmniboxResultsButtonIconSelected = 933,
18319    CEF_ColorOmniboxResultsButtonInkDrop = 934,
18320    CEF_ColorOmniboxResultsButtonInkDropRowHovered = 935,
18321    CEF_ColorOmniboxResultsButtonInkDropRowSelected = 936,
18322    CEF_ColorOmniboxResultsButtonInkDropSelected = 937,
18323    CEF_ColorOmniboxResultsButtonInkDropSelectedRowHovered = 938,
18324    CEF_ColorOmniboxResultsButtonInkDropSelectedRowSelected = 939,
18325    CEF_ColorOmniboxResultsChipBackground = 940,
18326    CEF_ColorOmniboxResultsFocusIndicator = 941,
18327    CEF_ColorOmniboxResultsIcon = 942,
18328    CEF_ColorOmniboxResultsIconGM3Background = 943,
18329    CEF_ColorOmniboxResultsIconSelected = 944,
18330    CEF_ColorOmniboxResultsIconHovered = 945,
18331    CEF_ColorOmniboxResultsStarterPackIcon = 946,
18332    CEF_ColorOmniboxResultsTextAnswer = 947,
18333    CEF_ColorOmniboxResultsTextDimmed = 948,
18334    CEF_ColorOmniboxResultsTextDimmedSelected = 949,
18335    CEF_ColorOmniboxResultsTextNegative = 950,
18336    CEF_ColorOmniboxResultsTextNegativeSelected = 951,
18337    CEF_ColorOmniboxResultsTextPositive = 952,
18338    CEF_ColorOmniboxResultsTextPositiveSelected = 953,
18339    CEF_ColorOmniboxResultsTextSecondary = 954,
18340    CEF_ColorOmniboxResultsTextSecondarySelected = 955,
18341    CEF_ColorOmniboxResultsTextSelected = 956,
18342    CEF_ColorOmniboxResultsUrl = 957,
18343    CEF_ColorOmniboxResultsUrlSelected = 958,
18344    CEF_ColorOmniboxSecurityChipDangerous = 959,
18345    CEF_ColorOmniboxSecurityChipDangerousBackground = 960,
18346    CEF_ColorOmniboxSecurityChipDefault = 961,
18347    CEF_ColorOmniboxSecurityChipInkDropHover = 962,
18348    CEF_ColorOmniboxSecurityChipInkDropRipple = 963,
18349    CEF_ColorOmniboxSecurityChipSecure = 964,
18350    CEF_ColorOmniboxSecurityChipText = 965,
18351    CEF_ColorOmniboxSelectionBackground = 966,
18352    CEF_ColorOmniboxSelectionForeground = 967,
18353    CEF_ColorOmniboxText = 968,
18354    CEF_ColorOmniboxTextDimmed = 969,
18355    CEF_ColorPageInfoChosenObjectDeleteButtonIcon = 970,
18356    CEF_ColorPageInfoChosenObjectDeleteButtonIconDisabled = 971,
18357    CEF_ColorPageInfoForeground = 972,
18358    CEF_ColorPageInfoSubtitleForeground = 973,
18359    CEF_ColorPageInfoPermissionBlockedOnSystemLevelDisabled = 974,
18360    CEF_ColorPageInfoPermissionUsedIcon = 975,
18361    CEF_ColorParentAccessViewLocalWebApprovalBackground = 976,
18362    CEF_ColorPaymentsFeedbackTipBackground = 977,
18363    CEF_ColorPaymentsFeedbackTipBorder = 978,
18364    CEF_ColorPaymentsFeedbackTipForeground = 979,
18365    CEF_ColorPaymentsFeedbackTipIcon = 980,
18366    CEF_ColorPaymentsGooglePayLogo = 981,
18367    CEF_ColorPaymentsPromoCodeBackground = 982,
18368    CEF_ColorPaymentsPromoCodeForeground = 983,
18369    CEF_ColorPaymentsPromoCodeForegroundHovered = 984,
18370    CEF_ColorPaymentsPromoCodeForegroundPressed = 985,
18371    CEF_ColorPaymentsPromoCodeInkDrop = 986,
18372    CEF_ColorPaymentsRequestBackArrowButtonIcon = 987,
18373    CEF_ColorPaymentsRequestBackArrowButtonIconDisabled = 988,
18374    CEF_ColorPaymentsRequestRowBackgroundHighlighted = 989,
18375    CEF_ColorPermissionPromptRequestText = 990,
18376    CEF_ColorPerformanceInterventionButtonIconActive = 991,
18377    CEF_ColorPerformanceInterventionButtonIconInactive = 992,
18378    CEF_ColorPipWindowBackToTabButtonBackground = 993,
18379    CEF_ColorPipWindowBackground = 994,
18380    CEF_ColorPipWindowTopBarBackground = 995,
18381    CEF_ColorPipWindowForeground = 996,
18382    CEF_ColorPipWindowForegroundInactive = 997,
18383    CEF_ColorPipWindowScrimFull = 998,
18384    CEF_ColorPipWindowScrimTopGradientStart = 999,
18385    CEF_ColorPipWindowScrimTopGradientEnd = 1000,
18386    CEF_ColorPipWindowScrimBottomGradientStart = 1001,
18387    CEF_ColorPipWindowScrimBottomGradientEnd = 1002,
18388    CEF_ColorPipWindowSkipAdButtonBackground = 1003,
18389    CEF_ColorPipWindowSkipAdButtonBorder = 1004,
18390    CEF_ColorProductSpecificationsButtonBackground = 1005,
18391    CEF_ColorProductSpecificationsCitationBackground = 1006,
18392    CEF_ColorProductSpecificationsCitationPopupBackground = 1007,
18393    CEF_ColorProductSpecificationsCitationPopupText = 1008,
18394    CEF_ColorProductSpecificationsCitationPopupTitle = 1009,
18395    CEF_ColorProductSpecificationsComparisonTableListBackground = 1010,
18396    CEF_ColorProductSpecificationsDetailChipBackground = 1011,
18397    CEF_ColorProductSpecificationsDisclosureBackground = 1012,
18398    CEF_ColorProductSpecificationsDisclosureForeground = 1013,
18399    CEF_ColorProductSpecificationsDisclosureGradientEnd = 1014,
18400    CEF_ColorProductSpecificationsDisclosureGradientStart = 1015,
18401    CEF_ColorProductSpecificationsDisclosureSummaryBackground = 1016,
18402    CEF_ColorProductSpecificationsDivider = 1017,
18403    CEF_ColorProductSpecificationsGradientIcon = 1018,
18404    CEF_ColorProductSpecificationsHorizontalCarouselScrollbarThumb = 1019,
18405    CEF_ColorProductSpecificationsIcon = 1020,
18406    CEF_ColorProductSpecificationsIconButtonBackground = 1021,
18407    CEF_ColorProductSpecificationsIconButtonHoveredBackground = 1022,
18408    CEF_ColorProductSpecificationsLink = 1023,
18409    CEF_ColorProductSpecificationsPageBackground = 1024,
18410    CEF_ColorProductSpecificationsSummaryBackground = 1025,
18411    CEF_ColorProductSpecificationsSummaryBackgroundDragging = 1026,
18412    CEF_ColorProductSpecificationsTonalButtonBackground = 1027,
18413    CEF_ColorProductSpecificationsTonalButtonIcon = 1028,
18414    CEF_ColorProfileMenuBackground = 1029,
18415    CEF_ColorProfileMenuIdentityInfoBackground = 1030,
18416    CEF_ColorProfileMenuIdentityInfoTitle = 1031,
18417    CEF_ColorProfileMenuIdentityInfoSubtitle = 1032,
18418    CEF_ColorProfileMenuPromoButtonsBackground = 1033,
18419    CEF_ColorProfilesReauthDialogBorder = 1034,
18420    CEF_ColorPwaBackground = 1035,
18421    CEF_ColorPwaMenuButtonIcon = 1036,
18422    CEF_ColorPwaSecurityChipForeground = 1037,
18423    CEF_ColorPwaSecurityChipForegroundDangerous = 1038,
18424    CEF_ColorPwaSecurityChipForegroundSecure = 1039,
18425    CEF_ColorPwaTabBarBottomSeparator = 1040,
18426    CEF_ColorPwaTabBarTopSeparator = 1041,
18427    CEF_ColorPwaTheme = 1042,
18428    CEF_ColorPwaToolbarBackground = 1043,
18429    CEF_ColorPwaToolbarButtonIcon = 1044,
18430    CEF_ColorPwaToolbarButtonIconDisabled = 1045,
18431    CEF_ColorQrCodeBackground = 1046,
18432    CEF_ColorQrCodeBorder = 1047,
18433    CEF_ColorQuickAnswersReportQueryButtonBackground = 1048,
18434    CEF_ColorQuickAnswersReportQueryButtonForeground = 1049,
18435    CEF_ColorReadAnythingBackground = 1050,
18436    CEF_ColorReadAnythingBackgroundBlue = 1051,
18437    CEF_ColorReadAnythingBackgroundDark = 1052,
18438    CEF_ColorReadAnythingBackgroundLight = 1053,
18439    CEF_ColorReadAnythingBackgroundYellow = 1054,
18440    CEF_ColorReadAnythingBackgroundHighContrast = 1055,
18441    CEF_ColorReadAnythingBackgroundLowContrast = 1056,
18442    CEF_ColorReadAnythingBackgroundSepiaLight = 1057,
18443    CEF_ColorReadAnythingBackgroundSepiaDark = 1058,
18444    CEF_ColorReadAnythingCurrentReadAloudHighlight = 1059,
18445    CEF_ColorReadAnythingCurrentReadAloudHighlightBlue = 1060,
18446    CEF_ColorReadAnythingCurrentReadAloudHighlightDark = 1061,
18447    CEF_ColorReadAnythingCurrentReadAloudHighlightLight = 1062,
18448    CEF_ColorReadAnythingCurrentReadAloudHighlightYellow = 1063,
18449    CEF_ColorReadAnythingCurrentReadAloudHighlightHighContrast = 1064,
18450    CEF_ColorReadAnythingCurrentReadAloudHighlightLowContrast = 1065,
18451    CEF_ColorReadAnythingCurrentReadAloudHighlightSepiaLight = 1066,
18452    CEF_ColorReadAnythingCurrentReadAloudHighlightSepiaDark = 1067,
18453    CEF_ColorReadAnythingFocusRingBackground = 1068,
18454    CEF_ColorReadAnythingFocusRingBackgroundBlue = 1069,
18455    CEF_ColorReadAnythingFocusRingBackgroundDark = 1070,
18456    CEF_ColorReadAnythingFocusRingBackgroundLight = 1071,
18457    CEF_ColorReadAnythingFocusRingBackgroundYellow = 1072,
18458    CEF_ColorReadAnythingFocusRingBackgroundHighContrast = 1073,
18459    CEF_ColorReadAnythingFocusRingBackgroundLowContrast = 1074,
18460    CEF_ColorReadAnythingFocusRingBackgroundSepiaLight = 1075,
18461    CEF_ColorReadAnythingFocusRingBackgroundSepiaDark = 1076,
18462    CEF_ColorReadAnythingForeground = 1077,
18463    CEF_ColorReadAnythingForegroundBlue = 1078,
18464    CEF_ColorReadAnythingForegroundDark = 1079,
18465    CEF_ColorReadAnythingForegroundLight = 1080,
18466    CEF_ColorReadAnythingForegroundYellow = 1081,
18467    CEF_ColorReadAnythingForegroundHighContrast = 1082,
18468    CEF_ColorReadAnythingForegroundLowContrast = 1083,
18469    CEF_ColorReadAnythingForegroundSepiaLight = 1084,
18470    CEF_ColorReadAnythingForegroundSepiaDark = 1085,
18471    CEF_ColorReadAnythingLineFocus = 1086,
18472    CEF_ColorReadAnythingLineFocusBlue = 1087,
18473    CEF_ColorReadAnythingLineFocusDark = 1088,
18474    CEF_ColorReadAnythingLineFocusLight = 1089,
18475    CEF_ColorReadAnythingLineFocusYellow = 1090,
18476    CEF_ColorReadAnythingLineFocusHighContrast = 1091,
18477    CEF_ColorReadAnythingLineFocusLowContrast = 1092,
18478    CEF_ColorReadAnythingLineFocusSepiaLight = 1093,
18479    CEF_ColorReadAnythingLineFocusSepiaDark = 1094,
18480    CEF_ColorReadAnythingSeparator = 1095,
18481    CEF_ColorReadAnythingSeparatorBlue = 1096,
18482    CEF_ColorReadAnythingSeparatorDark = 1097,
18483    CEF_ColorReadAnythingSeparatorLight = 1098,
18484    CEF_ColorReadAnythingSeparatorYellow = 1099,
18485    CEF_ColorReadAnythingSeparatorHighContrast = 1100,
18486    CEF_ColorReadAnythingSeparatorLowContrast = 1101,
18487    CEF_ColorReadAnythingSeparatorSepiaLight = 1102,
18488    CEF_ColorReadAnythingSeparatorSepiaDark = 1103,
18489    CEF_ColorReadAnythingDropdownBackground = 1104,
18490    CEF_ColorReadAnythingDropdownBackgroundBlue = 1105,
18491    CEF_ColorReadAnythingDropdownBackgroundDark = 1106,
18492    CEF_ColorReadAnythingDropdownBackgroundLight = 1107,
18493    CEF_ColorReadAnythingDropdownBackgroundYellow = 1108,
18494    CEF_ColorReadAnythingDropdownBackgroundHighContrast = 1109,
18495    CEF_ColorReadAnythingDropdownBackgroundLowContrast = 1110,
18496    CEF_ColorReadAnythingDropdownBackgroundSepiaLight = 1111,
18497    CEF_ColorReadAnythingDropdownBackgroundSepiaDark = 1112,
18498    CEF_ColorReadAnythingDropdownSelected = 1113,
18499    CEF_ColorReadAnythingDropdownSelectedBlue = 1114,
18500    CEF_ColorReadAnythingDropdownSelectedDark = 1115,
18501    CEF_ColorReadAnythingDropdownSelectedLight = 1116,
18502    CEF_ColorReadAnythingDropdownSelectedYellow = 1117,
18503    CEF_ColorReadAnythingDropdownSelectedHighContrast = 1118,
18504    CEF_ColorReadAnythingDropdownSelectedLowContrast = 1119,
18505    CEF_ColorReadAnythingDropdownSelectedSepiaLight = 1120,
18506    CEF_ColorReadAnythingDropdownSelectedSepiaDark = 1121,
18507    CEF_ColorReadAnythingTextSelection = 1122,
18508    CEF_ColorReadAnythingTextSelectionBlue = 1123,
18509    CEF_ColorReadAnythingTextSelectionDark = 1124,
18510    CEF_ColorReadAnythingTextSelectionLight = 1125,
18511    CEF_ColorReadAnythingTextSelectionYellow = 1126,
18512    CEF_ColorReadAnythingTextSelectionHighContrast = 1127,
18513    CEF_ColorReadAnythingTextSelectionLowContrast = 1128,
18514    CEF_ColorReadAnythingTextSelectionSepiaLight = 1129,
18515    CEF_ColorReadAnythingTextSelectionSepiaDark = 1130,
18516    CEF_ColorReadAnythingLinkDefault = 1131,
18517    CEF_ColorReadAnythingLinkDefaultBlue = 1132,
18518    CEF_ColorReadAnythingLinkDefaultDark = 1133,
18519    CEF_ColorReadAnythingLinkDefaultLight = 1134,
18520    CEF_ColorReadAnythingLinkDefaultYellow = 1135,
18521    CEF_ColorReadAnythingLinkDefaultHighContrast = 1136,
18522    CEF_ColorReadAnythingLinkDefaultLowContrast = 1137,
18523    CEF_ColorReadAnythingLinkDefaultSepiaLight = 1138,
18524    CEF_ColorReadAnythingLinkDefaultSepiaDark = 1139,
18525    CEF_ColorReadAnythingLinkVisited = 1140,
18526    CEF_ColorReadAnythingLinkVisitedBlue = 1141,
18527    CEF_ColorReadAnythingLinkVisitedDark = 1142,
18528    CEF_ColorReadAnythingLinkVisitedLight = 1143,
18529    CEF_ColorReadAnythingLinkVisitedYellow = 1144,
18530    CEF_ColorReadAnythingLinkVisitedHighContrast = 1145,
18531    CEF_ColorReadAnythingLinkVisitedLowContrast = 1146,
18532    CEF_ColorReadAnythingLinkVisitedSepiaLight = 1147,
18533    CEF_ColorReadAnythingLinkVisitedSepiaDark = 1148,
18534    CEF_ColorReadAnythingPreviousReadAloudHighlight = 1149,
18535    CEF_ColorReadAnythingPreviousReadAloudHighlightBlue = 1150,
18536    CEF_ColorReadAnythingPreviousReadAloudHighlightDark = 1151,
18537    CEF_ColorReadAnythingPreviousReadAloudHighlightLight = 1152,
18538    CEF_ColorReadAnythingPreviousReadAloudHighlightYellow = 1153,
18539    CEF_ColorReadAnythingPreviousReadAloudHighlightHighContrast = 1154,
18540    CEF_ColorReadAnythingPreviousReadAloudHighlightLowContrast = 1155,
18541    CEF_ColorReadAnythingPreviousReadAloudHighlightSepiaLight = 1156,
18542    CEF_ColorReadAnythingPreviousReadAloudHighlightSepiaDark = 1157,
18543    CEF_ColorSearchboxAnswerIconBackground = 1158,
18544    CEF_ColorSearchboxAnswerIconForeground = 1159,
18545    CEF_ColorSearchboxBackground = 1160,
18546    CEF_ColorSearchboxBackgroundHovered = 1161,
18547    CEF_ColorSearchboxBorder = 1162,
18548    CEF_ColorSearchboxForeground = 1163,
18549    CEF_ColorSearchboxLensVoiceIconBackground = 1164,
18550    CEF_ColorSearchboxPlaceholder = 1165,
18551    CEF_ColorSearchboxResultsActionChip = 1166,
18552    CEF_ColorSearchboxResultsActionChipIcon = 1167,
18553    CEF_ColorSearchboxResultsActionChipFocusOutline = 1168,
18554    CEF_ColorSearchboxResultsBackground = 1169,
18555    CEF_ColorSearchboxResultsBackgroundHovered = 1170,
18556    CEF_ColorSearchboxResultsButtonHover = 1171,
18557    CEF_ColorSearchboxResultsDimSelected = 1172,
18558    CEF_ColorSearchboxResultsFocusIndicator = 1173,
18559    CEF_ColorSearchboxResultsForeground = 1174,
18560    CEF_ColorSearchboxResultsForegroundDimmed = 1175,
18561    CEF_ColorSearchboxResultsIcon = 1176,
18562    CEF_ColorSearchboxResultsIconFocusedOutline = 1177,
18563    CEF_ColorSearchboxResultsIconSelected = 1178,
18564    CEF_ColorSearchboxResultsUrl = 1179,
18565    CEF_ColorSearchboxResultsUrlSelected = 1180,
18566    CEF_ColorSearchboxSearchIconBackground = 1181,
18567    CEF_ColorSearchboxSelectionBackground = 1182,
18568    CEF_ColorSearchboxSelectionForeground = 1183,
18569    CEF_ColorSearchboxShadow = 1184,
18570    CEF_ColorNewTabPageActionChipBackground = 1185,
18571    CEF_ColorNewTabPageActionChipBackgroundHover = 1186,
18572    CEF_ColorSavedTabGroupForegroundGrey = 1187,
18573    CEF_ColorSavedTabGroupForegroundBlue = 1188,
18574    CEF_ColorSavedTabGroupForegroundRed = 1189,
18575    CEF_ColorSavedTabGroupForegroundYellow = 1190,
18576    CEF_ColorSavedTabGroupForegroundGreen = 1191,
18577    CEF_ColorSavedTabGroupForegroundPink = 1192,
18578    CEF_ColorSavedTabGroupForegroundPurple = 1193,
18579    CEF_ColorSavedTabGroupForegroundCyan = 1194,
18580    CEF_ColorSavedTabGroupForegroundOrange = 1195,
18581    CEF_ColorSavedTabGroupOutlineGrey = 1196,
18582    CEF_ColorSavedTabGroupOutlineBlue = 1197,
18583    CEF_ColorSavedTabGroupOutlineRed = 1198,
18584    CEF_ColorSavedTabGroupOutlineYellow = 1199,
18585    CEF_ColorSavedTabGroupOutlineGreen = 1200,
18586    CEF_ColorSavedTabGroupOutlinePink = 1201,
18587    CEF_ColorSavedTabGroupOutlinePurple = 1202,
18588    CEF_ColorSavedTabGroupOutlineCyan = 1203,
18589    CEF_ColorSavedTabGroupOutlineOrange = 1204,
18590    CEF_ColorScreenshotCapturedImageBackground = 1205,
18591    CEF_ColorScreenshotCapturedImageBorder = 1206,
18592    CEF_ColorShareThisTabAudioToggleBackground = 1207,
18593    CEF_ColorShareThisTabSourceViewBorder = 1208,
18594    CEF_ColorSharingRecentActivityDialogFaviconContainer = 1209,
18595    CEF_ColorSharingRecentActivityDialogActivityContainer = 1210,
18596    CEF_ColorSidePanelBackground = 1211,
18597    CEF_ColorSidePanelBadgeBackground = 1212,
18598    CEF_ColorSidePanelBadgeBackgroundUpdated = 1213,
18599    CEF_ColorSidePanelBadgeForeground = 1214,
18600    CEF_ColorSidePanelBadgeForegroundUpdated = 1215,
18601    CEF_ColorSidePanelBookmarksSelectedFolderBackground = 1216,
18602    CEF_ColorSidePanelBookmarksSelectedFolderForeground = 1217,
18603    CEF_ColorSidePanelBookmarksSelectedFolderIcon = 1218,
18604    CEF_ColorSidePanelBookmarksActiveFolderForeground = 1219,
18605    CEF_ColorSidePanelBookmarksActiveFolderBackground = 1220,
18606    CEF_ColorSidePanelCardBackground = 1221,
18607    CEF_ColorSidePanelCardPrimaryForeground = 1222,
18608    CEF_ColorSidePanelCardSecondaryForeground = 1223,
18609    CEF_ColorSidePanelCommerceGraphAxis = 1224,
18610    CEF_ColorSidePanelCommerceGraphBubbleBackground = 1225,
18611    CEF_ColorSidePanelCommerceGraphLine = 1226,
18612    CEF_ColorSidePanelContentAreaSeparator = 1227,
18613    CEF_ColorSidePanelContentBackground = 1228,
18614    CEF_ColorSidePanelCustomizeChromeClassicChromeTileBorder = 1229,
18615    CEF_ColorSidePanelCustomizeChromeCornerNtpBorder = 1230,
18616    CEF_ColorSidePanelCustomizeChromeCustomOptionBackground = 1231,
18617    CEF_ColorSidePanelCustomizeChromeCustomOptionForeground = 1232,
18618    CEF_ColorSidePanelCustomizeChromeMiniNtpActiveTab = 1233,
18619    CEF_ColorSidePanelCustomizeChromeMiniNtpArrowsAndRefreshButton = 1234,
18620    CEF_ColorSidePanelCustomizeChromeMiniNtpBackground = 1235,
18621    CEF_ColorSidePanelCustomizeChromeMiniNtpBorder = 1236,
18622    CEF_ColorSidePanelCustomizeChromeMiniNtpCaron = 1237,
18623    CEF_ColorSidePanelCustomizeChromeMiniNtpCaronContainer = 1238,
18624    CEF_ColorSidePanelCustomizeChromeMiniNtpChromeLogo = 1239,
18625    CEF_ColorSidePanelCustomizeChromeMiniNtpOmnibox = 1240,
18626    CEF_ColorSidePanelCustomizeChromeMiniNtpTabStripBackground = 1241,
18627    CEF_ColorSidePanelCustomizeChromeThemeBackground = 1242,
18628    CEF_ColorSidePanelCustomizeChromeThemeCheckmarkBackground = 1243,
18629    CEF_ColorSidePanelCustomizeChromeThemeCheckmarkForeground = 1244,
18630    CEF_ColorSidePanelCustomizeChromeThemeSnapshotBackground = 1245,
18631    CEF_ColorSidePanelCustomizeChromeWebStoreBorder = 1246,
18632    CEF_ColorSidePanelDialogBackground = 1247,
18633    CEF_ColorSidePanelDialogDivider = 1248,
18634    CEF_ColorSidePanelDialogPrimaryForeground = 1249,
18635    CEF_ColorSidePanelDialogSecondaryForeground = 1250,
18636    CEF_ColorSidePanelDivider = 1251,
18637    CEF_ColorSidePanelEditFooterBorder = 1252,
18638    CEF_ColorSidePanelComboboxEntryIcon = 1253,
18639    CEF_ColorSidePanelComboboxEntryTitle = 1254,
18640    CEF_ColorSidePanelEntryIcon = 1255,
18641    CEF_ColorSidePanelEntryDropdownIcon = 1256,
18642    CEF_ColorSidePanelEntryTitle = 1257,
18643    CEF_ColorSidePanelFilterChipBorder = 1258,
18644    CEF_ColorSidePanelFilterChipForeground = 1259,
18645    CEF_ColorSidePanelFilterChipForegroundSelected = 1260,
18646    CEF_ColorSidePanelFilterChipIcon = 1261,
18647    CEF_ColorSidePanelFilterChipIconSelected = 1262,
18648    CEF_ColorSidePanelFilterChipBackgroundHover = 1263,
18649    CEF_ColorSidePanelFilterChipBackgroundSelected = 1264,
18650    CEF_ColorSidePanelHeaderButtonIcon = 1265,
18651    CEF_ColorSidePanelHeaderButtonIconDisabled = 1266,
18652    CEF_ColorSidePanelHoverResizeAreaHandle = 1267,
18653    CEF_ColorSidePanelResizeAreaHandle = 1268,
18654    CEF_ColorSidePanelScrollbarThumb = 1269,
18655    CEF_ColorSidePanelTextfieldBorder = 1270,
18656    CEF_ColorSidePanelWallpaperSearchTileBackground = 1271,
18657    CEF_ColorSidePanelWallpaperSearchErrorButtonBackground = 1272,
18658    CEF_ColorSidePanelWallpaperSearchErrorButtonText = 1273,
18659    CEF_ColorSidePanelWallpaperSearchInspirationDescriptors = 1274,
18660    CEF_ColorSplitViewBackground = 1275,
18661    CEF_ColorStarRatingFullIcon = 1276,
18662    CEF_ColorStarRatingEmptyIcon = 1277,
18663    CEF_ColorStatusBubbleBackgroundFrameActive = 1278,
18664    CEF_ColorStatusBubbleBackgroundFrameInactive = 1279,
18665    CEF_ColorStatusBubbleForegroundFrameActive = 1280,
18666    CEF_ColorStatusBubbleForegroundFrameInactive = 1281,
18667    CEF_ColorStatusBubbleShadow = 1282,
18668    CEF_ColorTabAlertAudioPlayingActiveFrameActive = 1283,
18669    CEF_ColorTabAlertAudioPlayingActiveFrameInactive = 1284,
18670    CEF_ColorTabAlertAudioPlayingInactiveFrameActive = 1285,
18671    CEF_ColorTabAlertAudioPlayingInactiveFrameInactive = 1286,
18672    CEF_ColorTabAlertMediaRecordingActiveFrameActive = 1287,
18673    CEF_ColorTabAlertMediaRecordingActiveFrameInactive = 1288,
18674    CEF_ColorTabAlertMediaRecordingInactiveFrameActive = 1289,
18675    CEF_ColorTabAlertMediaRecordingInactiveFrameInactive = 1290,
18676    CEF_ColorTabAlertPipPlayingActiveFrameActive = 1291,
18677    CEF_ColorTabAlertPipPlayingActiveFrameInactive = 1292,
18678    CEF_ColorTabAlertPipPlayingInactiveFrameActive = 1293,
18679    CEF_ColorTabAlertPipPlayingInactiveFrameInactive = 1294,
18680    CEF_ColorHoverCardTabAlertMediaRecordingIcon = 1295,
18681    CEF_ColorHoverCardTabAlertPipPlayingIcon = 1296,
18682    CEF_ColorHoverCardTabAlertAudioPlayingIcon = 1297,
18683    CEF_ColorTabBackgroundActiveFrameActive = 1298,
18684    CEF_ColorTabBackgroundActiveFrameInactive = 1299,
18685    CEF_ColorTabBackgroundInactiveFrameActive = 1300,
18686    CEF_ColorTabBackgroundInactiveFrameInactive = 1301,
18687    CEF_ColorTabBackgroundInactiveHoverFrameActive = 1302,
18688    CEF_ColorTabBackgroundInactiveHoverFrameInactive = 1303,
18689    CEF_ColorTabBackgroundSelectedFrameActive = 1304,
18690    CEF_ColorTabBackgroundSelectedFrameInactive = 1305,
18691    CEF_ColorTabBackgroundSelectedHoverFrameActive = 1306,
18692    CEF_ColorTabBackgroundSelectedHoverFrameInactive = 1307,
18693    CEF_ColorTabCloseButtonFocusRingActive = 1308,
18694    CEF_ColorTabCloseButtonFocusRingInactive = 1309,
18695    CEF_ColorTabDiscardRingFrameActive = 1310,
18696    CEF_ColorTabDiscardRingFrameInactive = 1311,
18697    CEF_ColorTabFocusRingActive = 1312,
18698    CEF_ColorTabFocusRingInactive = 1313,
18699    CEF_ColorTabForegroundActiveFrameActive = 1314,
18700    CEF_ColorTabForegroundActiveFrameInactive = 1315,
18701    CEF_ColorTabForegroundInactiveFrameActive = 1316,
18702    CEF_ColorTabForegroundInactiveFrameInactive = 1317,
18703    CEF_ColorTabDividerFrameActive = 1318,
18704    CEF_ColorTabDividerFrameInactive = 1319,
18705    CEF_ColorTabHoverCardBackground = 1320,
18706    CEF_ColorTabHoverCardForeground = 1321,
18707    CEF_ColorTabHoverCardSecondaryText = 1322,
18708    CEF_ColorTabGroupBookmarkBarGrey = 1323,
18709    CEF_ColorTabGroupBookmarkBarBlue = 1324,
18710    CEF_ColorTabGroupBookmarkBarRed = 1325,
18711    CEF_ColorTabGroupBookmarkBarYellow = 1326,
18712    CEF_ColorTabGroupBookmarkBarGreen = 1327,
18713    CEF_ColorTabGroupBookmarkBarPink = 1328,
18714    CEF_ColorTabGroupBookmarkBarPurple = 1329,
18715    CEF_ColorTabGroupBookmarkBarCyan = 1330,
18716    CEF_ColorTabGroupBookmarkBarOrange = 1331,
18717    CEF_ColorTabGroupContextMenuBlue = 1332,
18718    CEF_ColorTabGroupContextMenuCyan = 1333,
18719    CEF_ColorTabGroupContextMenuGreen = 1334,
18720    CEF_ColorTabGroupContextMenuGrey = 1335,
18721    CEF_ColorTabGroupContextMenuOrange = 1336,
18722    CEF_ColorTabGroupContextMenuPink = 1337,
18723    CEF_ColorTabGroupContextMenuPurple = 1338,
18724    CEF_ColorTabGroupContextMenuRed = 1339,
18725    CEF_ColorTabGroupContextMenuYellow = 1340,
18726    CEF_ColorTabGroupDialogGrey = 1341,
18727    CEF_ColorTabGroupDialogBlue = 1342,
18728    CEF_ColorTabGroupDialogRed = 1343,
18729    CEF_ColorTabGroupDialogYellow = 1344,
18730    CEF_ColorTabGroupDialogGreen = 1345,
18731    CEF_ColorTabGroupDialogPink = 1346,
18732    CEF_ColorTabGroupDialogPurple = 1347,
18733    CEF_ColorTabGroupDialogCyan = 1348,
18734    CEF_ColorTabGroupDialogOrange = 1349,
18735    CEF_ColorTabGroupDialogIconEnabled = 1350,
18736    CEF_ColorTabGroupTabStripFrameActiveGrey = 1351,
18737    CEF_ColorTabGroupTabStripFrameActiveBlue = 1352,
18738    CEF_ColorTabGroupTabStripFrameActiveRed = 1353,
18739    CEF_ColorTabGroupTabStripFrameActiveYellow = 1354,
18740    CEF_ColorTabGroupTabStripFrameActiveGreen = 1355,
18741    CEF_ColorTabGroupTabStripFrameActivePink = 1356,
18742    CEF_ColorTabGroupTabStripFrameActivePurple = 1357,
18743    CEF_ColorTabGroupTabStripFrameActiveCyan = 1358,
18744    CEF_ColorTabGroupTabStripFrameActiveOrange = 1359,
18745    CEF_ColorTabGroupTabStripFrameInactiveGrey = 1360,
18746    CEF_ColorTabGroupTabStripFrameInactiveBlue = 1361,
18747    CEF_ColorTabGroupTabStripFrameInactiveRed = 1362,
18748    CEF_ColorTabGroupTabStripFrameInactiveYellow = 1363,
18749    CEF_ColorTabGroupTabStripFrameInactiveGreen = 1364,
18750    CEF_ColorTabGroupTabStripFrameInactivePink = 1365,
18751    CEF_ColorTabGroupTabStripFrameInactivePurple = 1366,
18752    CEF_ColorTabGroupTabStripFrameInactiveCyan = 1367,
18753    CEF_ColorTabGroupTabStripFrameInactiveOrange = 1368,
18754    CEF_ColorTabStrokeFrameActive = 1369,
18755    CEF_ColorTabStrokeFrameInactive = 1370,
18756    CEF_ColorTabstripLoadingProgressBackground = 1371,
18757    CEF_ColorTabstripLoadingProgressForeground = 1372,
18758    CEF_ColorTabstripScrollContainerShadow = 1373,
18759    CEF_ColorTabThrobber = 1374,
18760    CEF_ColorTabThrobberPreconnect = 1375,
18761    CEF_ColorTabSearchButtonBackground = 1376,
18762    CEF_ColorTabSearchButtonIcon = 1377,
18763    CEF_ColorTabSearchButtonIconBackground = 1378,
18764    CEF_ColorTabSearchBackground = 1379,
18765    CEF_ColorTabSearchButtonCRForegroundFrameActive = 1380,
18766    CEF_ColorTabSearchButtonCRForegroundFrameInactive = 1381,
18767    CEF_ColorTabSearchCardBackground = 1382,
18768    CEF_ColorTabSearchDisabled = 1383,
18769    CEF_ColorTabSearchDisabledContainer = 1384,
18770    CEF_ColorTabSearchDivider = 1385,
18771    CEF_ColorTabSearchFooterBackground = 1386,
18772    CEF_ColorTabSearchImageTabContentBottom = 1387,
18773    CEF_ColorTabSearchImageTabContentTop = 1388,
18774    CEF_ColorTabSearchImageTabText = 1389,
18775    CEF_ColorTabSearchImageWindowFrame = 1390,
18776    CEF_ColorTabSearchMediaIcon = 1391,
18777    CEF_ColorTabSearchMediaRecordingIcon = 1392,
18778    CEF_ColorTabSearchMediaGlicActiveIcon = 1393,
18779    CEF_ColorTabSearchPrimaryForeground = 1394,
18780    CEF_ColorTabSearchSecondaryForeground = 1395,
18781    CEF_ColorTabSearchSelected = 1396,
18782    CEF_ColorTabSearchScrollbarThumb = 1397,
18783    CEF_ColorTaskManagerBackground = 1398,
18784    CEF_ColorTaskManagerTableBackground = 1399,
18785    CEF_ColorTaskManagerTableBackgroundAlternate = 1400,
18786    CEF_ColorTaskManagerTableBackgroundSelectedFocused = 1401,
18787    CEF_ColorTaskManagerTableBackgroundSelectedUnfocused = 1402,
18788    CEF_ColorTaskManagerTableHeaderBackground = 1403,
18789    CEF_ColorTaskManagerSearchBarBackground = 1404,
18790    CEF_ColorTaskManagerSearchBarTransparent = 1405,
18791    CEF_ColorTaskManagerSearchBarPlaceholderText = 1406,
18792    CEF_ColorThumbnailTabBackground = 1407,
18793    CEF_ColorThumbnailTabForeground = 1408,
18794    CEF_ColorThumbnailTabStripBackgroundActive = 1409,
18795    CEF_ColorThumbnailTabStripBackgroundInactive = 1410,
18796    CEF_ColorThumbnailTabStripTabGroupFrameActiveGrey = 1411,
18797    CEF_ColorThumbnailTabStripTabGroupFrameActiveBlue = 1412,
18798    CEF_ColorThumbnailTabStripTabGroupFrameActiveRed = 1413,
18799    CEF_ColorThumbnailTabStripTabGroupFrameActiveYellow = 1414,
18800    CEF_ColorThumbnailTabStripTabGroupFrameActiveGreen = 1415,
18801    CEF_ColorThumbnailTabStripTabGroupFrameActivePink = 1416,
18802    CEF_ColorThumbnailTabStripTabGroupFrameActivePurple = 1417,
18803    CEF_ColorThumbnailTabStripTabGroupFrameActiveCyan = 1418,
18804    CEF_ColorThumbnailTabStripTabGroupFrameActiveOrange = 1419,
18805    CEF_ColorThumbnailTabStripTabGroupFrameInactiveGrey = 1420,
18806    CEF_ColorThumbnailTabStripTabGroupFrameInactiveBlue = 1421,
18807    CEF_ColorThumbnailTabStripTabGroupFrameInactiveRed = 1422,
18808    CEF_ColorThumbnailTabStripTabGroupFrameInactiveYellow = 1423,
18809    CEF_ColorThumbnailTabStripTabGroupFrameInactiveGreen = 1424,
18810    CEF_ColorThumbnailTabStripTabGroupFrameInactivePink = 1425,
18811    CEF_ColorThumbnailTabStripTabGroupFrameInactivePurple = 1426,
18812    CEF_ColorThumbnailTabStripTabGroupFrameInactiveCyan = 1427,
18813    CEF_ColorThumbnailTabStripTabGroupFrameInactiveOrange = 1428,
18814    CEF_ColorToolbar = 1429,
18815    CEF_ColorToolbarBackgroundSubtleEmphasis = 1430,
18816    CEF_ColorToolbarBackgroundSubtleEmphasisHovered = 1431,
18817    CEF_ColorToolbarButtonBackgroundHighlightedDefault = 1432,
18818    CEF_ColorToolbarButtonBorder = 1433,
18819    CEF_ColorToolbarButtonIcon = 1434,
18820    CEF_ColorToolbarButtonIconDefault = 1435,
18821    CEF_ColorToolbarButtonIconDisabled = 1436,
18822    CEF_ColorToolbarButtonIconHovered = 1437,
18823    CEF_ColorToolbarButtonIconInactive = 1438,
18824    CEF_ColorToolbarButtonIconPressed = 1439,
18825    CEF_ColorToolbarButtonText = 1440,
18826    CEF_ColorToolbarContentAreaSeparator = 1441,
18827    CEF_ColorToolbarExtensionSeparatorDisabled = 1442,
18828    CEF_ColorToolbarExtensionSeparatorEnabled = 1443,
18829    CEF_ColorToolbarFeaturePromoHighlight = 1444,
18830    CEF_ColorToolbarIconContainerBorder = 1445,
18831    CEF_ColorToolbarInkDrop = 1446,
18832    CEF_ColorToolbarInkDropHover = 1447,
18833    CEF_ColorToolbarInkDropRipple = 1448,
18834    CEF_ColorToolbarSeparator = 1449,
18835    CEF_ColorToolbarActionItemEngaged = 1450,
18836    CEF_ColorToolbarSeparatorDefault = 1451,
18837    CEF_ColorToolbarText = 1452,
18838    CEF_ColorToolbarTextDefault = 1453,
18839    CEF_ColorToolbarTextDisabled = 1454,
18840    CEF_ColorToolbarTextDisabledDefault = 1455,
18841    CEF_ColorToolbarTopSeparatorFrameActive = 1456,
18842    CEF_ColorToolbarTopSeparatorFrameInactive = 1457,
18843    CEF_ColorVerticalTabStripBottomButtonBackground = 1458,
18844    CEF_ColorWebAuthnHoverButtonForeground = 1459,
18845    CEF_ColorWebAuthnHoverButtonForegroundDisabled = 1460,
18846    CEF_ColorWebAuthnBackArrowButtonIcon = 1461,
18847    CEF_ColorWebAuthnBackArrowButtonIconDisabled = 1462,
18848    CEF_ColorWebAuthnIconColor = 1463,
18849    CEF_ColorWebAuthnIconColorDisabled = 1464,
18850    CEF_ColorWebAuthnPinTextfieldBottomBorder = 1465,
18851    CEF_ColorWebAuthnProgressRingBackground = 1466,
18852    CEF_ColorWebAuthnProgressRingForeground = 1467,
18853    CEF_ColorWebContentsBackground = 1468,
18854    CEF_ColorWebContentsBackgroundLetterboxing = 1469,
18855    CEF_ColorWebUiTabStripBackground = 1470,
18856    CEF_ColorWebUiTabStripFocusOutline = 1471,
18857    CEF_ColorWebUiTabStripIndicatorCapturing = 1472,
18858    CEF_ColorWebUiTabStripIndicatorPip = 1473,
18859    CEF_ColorWebUiTabStripIndicatorRecording = 1474,
18860    CEF_ColorWebUiTabStripScrollbarThumb = 1475,
18861    CEF_ColorWebUiTabStripTabActiveTitleBackground = 1476,
18862    CEF_ColorWebUiTabStripTabActiveTitleContent = 1477,
18863    CEF_ColorWebUiTabStripTabBackground = 1478,
18864    CEF_ColorWebUiTabStripTabBlocked = 1479,
18865    CEF_ColorWebUiTabStripTabLoadingSpinning = 1480,
18866    CEF_ColorWebUiTabStripTabSeparator = 1481,
18867    CEF_ColorWebUiTabStripTabText = 1482,
18868    CEF_ColorWebUiTabStripTabWaitingSpinning = 1483,
18869    CEF_ColorWindowControlButtonBackgroundActive = 1484,
18870    CEF_ColorWindowControlButtonBackgroundInactive = 1485,
18871    CEF_ChromeColorsEnd = 1486,
18872    CEF_UiColorsLast = 65535,
18873}