diff --git a/.cargo/config.toml b/.cargo/config.toml index 4acb8e5..d86d57a 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,5 +1,2 @@ -[build] -target = "i686-pc-windows-msvc" - [target.i686-pc-windows-msvc] rustflags = ["-C", "target-feature=+crt-static"] diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a410aae..fa2a55a 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -20,10 +20,10 @@ jobs: steps: - uses: actions/checkout@v4 - - name: Install pinned nightly + i686 target + - name: Install stable + i686 target uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2022-11-06 + toolchain: stable targets: i686-unknown-linux-gnu - name: Install i386 deps @@ -77,10 +77,10 @@ jobs: apt-get update apt-get install -y build-essential curl make g++-multilib - - name: Install pinned nightly + i686 target + - name: Install stable + i686 target uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2022-11-06 + toolchain: stable targets: i686-unknown-linux-gnu - uses: actions/checkout@v4 @@ -158,10 +158,10 @@ jobs: mv libcef.lib $CEF_PATH/libcef.lib shell: bash - - name: Install pinned nightly + i686 target (MSVC) + - name: Install stable + i686 target (MSVC) uses: dtolnay/rust-toolchain@master with: - toolchain: nightly-2022-11-06 + toolchain: stable targets: i686-pc-windows-msvc - name: Cache cargo registry diff --git a/.gitignore b/.gitignore index 59eab4c..34506bc 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ .idea /linux-build deploy.cmd +/third_party +.xwin diff --git a/Cargo.lock b/Cargo.lock index 4fb28c8..b0b3136 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1,6 +1,6 @@ # This file is automatically @generated by Cargo. # It is not intended for manual editing. -version = 3 +version = 4 [[package]] name = "aho-corasick" @@ -67,6 +67,15 @@ dependencies = [ "rodio", ] +[[package]] +name = "android_system_properties" +version = "0.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311" +dependencies = [ + "libc", +] + [[package]] name = "anyhow" version = "1.0.100" @@ -82,17 +91,78 @@ dependencies = [ "num-traits", ] +[[package]] +name = "asn1-rs" +version = "0.7.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56624a96882bb8c26d61312ae18cb45868e5a9992ea73c58e45c3101e56a1e60" +dependencies = [ + "asn1-rs-derive", + "asn1-rs-impl", + "displaydoc", + "nom", + "num-traits", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] + +[[package]] +name = "asn1-rs-derive" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3109e49b1e4909e9db6515a30c633684d68cdeaa252f215214cb4fa1a5bfee2c" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", + "synstructure", +] + +[[package]] +name = "asn1-rs-impl" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", +] + [[package]] name = "autocfg" version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8" +[[package]] +name = "aws-lc-rs" +version = "1.15.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7b7b6141e96a8c160799cc2d5adecd5cbbe5054cb8c7c4af53da0f83bb7ad256" +dependencies = [ + "aws-lc-sys", + "zeroize", +] + +[[package]] +name = "aws-lc-sys" +version = "0.37.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c34dda4df7017c8db52132f0f8a2e0f8161649d15723ed63fc00c82d0f2081a" +dependencies = [ + "cc", + "cmake", + "dunce", + "fs_extra", +] + [[package]] name = "base64" -version = "0.13.1" +version = "0.22.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e1b586273c5702936fe7b7d6896644d8be71e6314cfe09d3167c95f712589e8" +checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6" [[package]] name = "bindgen" @@ -104,12 +174,12 @@ dependencies = [ "cexpr", "clang-sys", "itertools", - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "regex", "rustc-hash", "shlex", - "syn 2.0.106", + "syn 2.0.114", ] [[package]] @@ -126,9 +196,9 @@ checksum = "812e12b5285cc515a9c72a5c1d3b6d46a19dac5acfef5265968c166106e31dd3" [[package]] name = "bumpalo" -version = "3.19.0" +version = "3.19.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46c5e41b57b8bba42a04676d81cb89e9ee8e859a1a66f80a5a72e1cb76b34d43" +checksum = "5dd9dc738b7a8311c7ade152424974d8115f2cdad61e8dab8dac9f2362298510" [[package]] name = "bytemuck" @@ -150,9 +220,9 @@ checksum = "b35204fbdc0b3f4446b89fc1ac2cf84a8a68971995d0bf2e925ec7cd960f9cb3" [[package]] name = "cc" -version = "1.2.47" +version = "1.2.54" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cd405d82c84ff7f35739f175f67d8b9fb7687a0e84ccdc78bd3568839827cf07" +checksum = "6354c81bbfd62d9cfa9cb3c773c2b7b2a3a482d569de977fd0e961f6e7c00583" dependencies = [ "find-msvc-tools", "jobserver", @@ -175,7 +245,7 @@ version = "0.1.0" dependencies = [ "cef", "cef-sys", - "libloading 0.5.2", + "libloading 0.9.0", ] [[package]] @@ -184,8 +254,8 @@ version = "0.1.0" dependencies = [ "cef", "cef-api", - "client-api 0.1.0 (git+https://github.com/zottce/samp-client-api.git?branch=destroy)", - "region 2.2.0", + "client-api", + "region", ] [[package]] @@ -216,17 +286,23 @@ version = "1.0.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801" +[[package]] +name = "cfg_aliases" +version = "0.2.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724" + [[package]] name = "chrono" -version = "0.4.19" +version = "0.4.43" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73" +checksum = "fac4744fb15ae8337dc853fee7fb3f4e48c0fbaa23d0afe49c447b4fab126118" dependencies = [ - "libc", - "num-integer", + "iana-time-zone", + "js-sys", "num-traits", - "time", - "winapi", + "wasm-bindgen", + "windows-link", ] [[package]] @@ -254,18 +330,18 @@ dependencies = [ "ambisonic", "cef", "cef-sys", - "client-api 0.1.0 (git+https://github.com/zottce/samp-client-api.git?rev=f4dd483)", + "client-api", "crossbeam-channel", - "detour", "encoding_rs", - "libloading 0.7.4", + "libloading 0.9.0", "log", "messages", "nalgebra", "network", - "parking_lot 0.11.2", + "parking_lot 0.12.5", "quick-protobuf", - "region 3.0.2", + "region", + "retour", "serde", "serde_json", "simplelog", @@ -274,29 +350,19 @@ dependencies = [ [[package]] name = "client-api" -version = "0.1.0" -source = "git+https://github.com/zottce/samp-client-api.git?branch=destroy#b1c02350aac97a854bad928420c1449f4b039fb7" +version = "1.0.0" +source = "git+https://github.com/zottce/samp-client-api.git?rev=886d15e#886d15ebaa869b0dfe7896af94722fa07b50939d" dependencies = [ - "detour", - "log", - "winapi", -] - -[[package]] -name = "client-api" -version = "0.1.0" -source = "git+https://github.com/zottce/samp-client-api.git?rev=f4dd483#f4dd48387903441226396688c4a13ef5b17db4b8" -dependencies = [ - "detour", "log", + "retour", "winapi", ] [[package]] name = "cmake" -version = "0.1.54" +version = "0.1.57" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7caa3f9de89ddbe2c607f4101924c5abec803763ae9534e4f4d7d8f84aa81f0" +checksum = "75443c44cd6b379beb8c5b45d85d0773baf31cce901fe7bb252f4eff3008ef7d" dependencies = [ "cc", ] @@ -324,9 +390,9 @@ dependencies = [ [[package]] name = "core-foundation" -version = "0.9.4" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6" dependencies = [ "core-foundation-sys", "libc", @@ -366,7 +432,7 @@ dependencies = [ "alsa", "core-foundation-sys", "coreaudio-rs", - "jni", + "jni 0.19.0", "js-sys", "lazy_static 1.5.0", "libc", @@ -377,7 +443,7 @@ dependencies = [ "oboe", "parking_lot 0.11.2", "stdweb", - "thiserror", + "thiserror 1.0.69", "web-sys", "winapi", ] @@ -397,15 +463,6 @@ version = "0.8.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28" -[[package]] -name = "ct-logs" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c1a816186fa68d9e426e3cb4ae4dff1fcd8e4a2c34b781bf7a822574a0d0aac8" -dependencies = [ - "sct", -] - [[package]] name = "darling" version = "0.13.4" @@ -424,8 +481,8 @@ checksum = "859d65a907b6852c9361e3185c862aae7fafd2887876799fa55f5f99dc40d610" dependencies = [ "fnv", "ident_case", - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "strsim", "syn 1.0.109", ] @@ -437,25 +494,56 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9c972679f83bdf9c42bd905396b6c3588a843a17f0f16dfcfa3e2c5d57441835" dependencies = [ "darling_core", - "quote 1.0.41", + "quote 1.0.44", "syn 1.0.109", ] [[package]] -name = "detour" -version = "0.8.0" -source = "git+https://github.com/darfink/detour-rs?rev=3b6f17a#3b6f17a8b51ba5b37addc8c4361e5cfbe2875243" +name = "data-encoding" +version = "2.10.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7a1e2f27636f116493b8b860f5546edb47c8d8f8ea73e1d2a20be88e28d1fea" + +[[package]] +name = "der-parser" +version = "10.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "07da5016415d5a3c4dd39b11ed26f915f52fc4e0dc197d87908bc916e51bc1a6" dependencies = [ - "cfg-if", - "generic-array", - "lazy_static 1.5.0", - "libc", - "libudis86-sys", - "mmap-fixed", - "region 2.2.0", - "slice-pool", + "asn1-rs", + "displaydoc", + "nom", + "num-bigint", + "num-traits", + "rusticata-macros", +] + +[[package]] +name = "deranged" +version = "0.5.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ececcb659e7ba858fb4f10388c250a7252eb0a27373f1a72b8748afdd248e587" +dependencies = [ + "powerfmt", +] + +[[package]] +name = "displaydoc" +version = "0.2.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] +[[package]] +name = "dunce" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813" + [[package]] name = "either" version = "1.15.0" @@ -477,6 +565,28 @@ version = "1.0.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f" +[[package]] +name = "errno" +version = "0.3.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb" +dependencies = [ + "libc", + "windows-sys 0.61.2", +] + +[[package]] +name = "fastbloom" +version = "0.14.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4e7f34442dbe69c60fe8eaf58a8cafff81a1f278816d8ab4db255b3bef4ac3c4" +dependencies = [ + "getrandom 0.3.4", + "libm", + "rand 0.9.2", + "siphasher", +] + [[package]] name = "fern" version = "0.5.9" @@ -489,9 +599,9 @@ dependencies = [ [[package]] name = "find-msvc-tools" -version = "0.1.5" +version = "0.1.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a3076410a55c90011c298b04d0cfa770b00fa04e1e3c97d3f6c9de105a03844" +checksum = "8591b0bcc8a98a64310a2fae1bb3e9b8564dd10e381e6e28010fde8e8e8568db" [[package]] name = "fnv" @@ -500,35 +610,16 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] -name = "fuchsia-cprng" -version = "0.1.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" - -[[package]] -name = "futures" -version = "0.3.31" +name = "fs_extra" +version = "1.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876" -dependencies = [ - "futures-channel", - "futures-core", - "futures-executor", - "futures-io", - "futures-sink", - "futures-task", - "futures-util", -] +checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c" [[package]] -name = "futures-channel" -version = "0.3.31" +name = "fuchsia-cprng" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10" -dependencies = [ - "futures-core", - "futures-sink", -] +checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba" [[package]] name = "futures-core" @@ -536,40 +627,17 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e" -[[package]] -name = "futures-executor" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f" -dependencies = [ - "futures-core", - "futures-task", - "futures-util", -] - -[[package]] -name = "futures-io" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6" - [[package]] name = "futures-macro" version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] -[[package]] -name = "futures-sink" -version = "0.3.31" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7" - [[package]] name = "futures-task" version = "0.3.31" @@ -582,13 +650,9 @@ version = "0.3.31" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81" dependencies = [ - "futures-channel", "futures-core", - "futures-io", "futures-macro", - "futures-sink", "futures-task", - "memchr", "pin-project-lite", "pin-utils", "slab", @@ -606,13 +670,15 @@ dependencies = [ [[package]] name = "getrandom" -version = "0.2.16" +version = "0.2.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592" +checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0" dependencies = [ "cfg-if", + "js-sys", "libc", - "wasi 0.11.1+wasi-snapshot-preview1", + "wasi", + "wasm-bindgen", ] [[package]] @@ -622,11 +688,109 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd" dependencies = [ "cfg-if", + "js-sys", "libc", "r-efi", "wasip2", + "wasm-bindgen", ] +[[package]] +name = "glam" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "333928d5eb103c5d4050533cec0384302db6be8ef7d3cebd30ec6a35350353da" + +[[package]] +name = "glam" +version = "0.15.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3abb554f8ee44336b72d522e0a7fe86a29e09f839a36022fa869a7dfe941a54b" + +[[package]] +name = "glam" +version = "0.16.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4126c0479ccf7e8664c36a2d719f5f2c140fbb4f9090008098d2c291fa5b3f16" + +[[package]] +name = "glam" +version = "0.17.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e01732b97afd8508eee3333a541b9f7610f454bb818669e66e90f5f57c93a776" + +[[package]] +name = "glam" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "525a3e490ba77b8e326fb67d4b44b4bd2f920f44d4cc73ccec50adc68e3bee34" + +[[package]] +name = "glam" +version = "0.19.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2b8509e6791516e81c1a630d0bd7fbac36d2fa8712a9da8662e716b52d5051ca" + +[[package]] +name = "glam" +version = "0.20.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f43e957e744be03f5801a55472f593d43fabdebf25a4585db250f04d86b1675f" + +[[package]] +name = "glam" +version = "0.21.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "518faa5064866338b013ff9b2350dc318e14cc4fcd6cb8206d7e7c9886c98815" + +[[package]] +name = "glam" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f597d56c1bd55a811a1be189459e8fad2bbc272616375602443bdfb37fa774" + +[[package]] +name = "glam" +version = "0.23.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e4afd9ad95555081e109fe1d21f2a30c691b5f0919c67dfa690a2e1eb6bd51c" + +[[package]] +name = "glam" +version = "0.24.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b5418c17512bdf42730f9032c74e1ae39afc408745ebb2acf72fbc4691c17945" + +[[package]] +name = "glam" +version = "0.25.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "151665d9be52f9bb40fc7966565d39666f2d1e69233571b71b87791c7e0528b3" + +[[package]] +name = "glam" +version = "0.27.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e05e7e6723e3455f4818c7b26e855439f7546cf617ef669d1adedb8669e5cb9" + +[[package]] +name = "glam" +version = "0.28.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "779ae4bf7e8421cf91c0b3b64e7e8b40b862fba4d393f59150042de7c4965a94" + +[[package]] +name = "glam" +version = "0.29.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8babf46d4c1c9d92deac9f7be466f76dfc4482b6452fc5024b5e8daf6ffeb3ee" + +[[package]] +name = "glam" +version = "0.30.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "19fc433e8437a212d1b6f1e68c7824af3aed907da60afa994e7f542d18d12aa9" + [[package]] name = "glob" version = "0.3.3" @@ -651,6 +815,39 @@ version = "3.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "62adaabb884c94955b19907d60019f4e145d091c75345379e70d1ee696f7854f" +[[package]] +name = "iana-time-zone" +version = "0.1.64" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33e57f83510bb73707521ebaffa789ec8caf86f9657cad665b092b581d40e9fb" +dependencies = [ + "android_system_properties", + "core-foundation-sys", + "iana-time-zone-haiku", + "js-sys", + "log", + "wasm-bindgen", + "windows-core", +] + +[[package]] +name = "iana-time-zone-haiku" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f" +dependencies = [ + "cc", +] + +[[package]] +name = "iced-x86" +version = "1.21.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7c447cff8c7f384a7d4f741cfcff32f75f3ad02b406432e8d6c878d56b1edf6b" +dependencies = [ + "lazy_static 1.5.0", +] + [[package]] name = "ident_case" version = "1.0.1" @@ -659,9 +856,9 @@ checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39" [[package]] name = "indexmap" -version = "2.12.1" +version = "2.13.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ad4bb2b565bca0645f4d68c5c9af97fba094e9791da685bf83cb5f3ce74acf2" +checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017" dependencies = [ "equivalent", "hashbrown", @@ -684,7 +881,7 @@ checksum = "3640c1c38b8e4e43584d8df18be5fc6b0aa314ce6ebf51b53313d4306cca8e46" dependencies = [ "hermit-abi", "libc", - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -698,9 +895,9 @@ dependencies = [ [[package]] name = "itoa" -version = "1.0.15" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c" +checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2" [[package]] name = "jni" @@ -712,10 +909,26 @@ dependencies = [ "combine", "jni-sys", "log", - "thiserror", + "thiserror 1.0.69", "walkdir", ] +[[package]] +name = "jni" +version = "0.21.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1a87aa2bb7d2af34197c04845522473242e1aa17c12f4935d5856491a7fb8c97" +dependencies = [ + "cesu8", + "cfg-if", + "combine", + "jni-sys", + "log", + "thiserror 1.0.69", + "walkdir", + "windows-sys 0.45.0", +] + [[package]] name = "jni-sys" version = "0.3.0" @@ -734,9 +947,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.82" +version = "0.3.85" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b011eec8cc36da2aab2d5cff675ec18454fad408585853910a202391cf9f8e65" +checksum = "8c942ebf8e95485ca0d52d97da7c5a2c387d0e7f0ba4c35e93bfcaee045955b3" dependencies = [ "once_cell", "wasm-bindgen", @@ -767,9 +980,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.177" +version = "0.2.180" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2874a2af47a2325c2001a6e6fad9b16a53b802102b528163885171cf92b15976" +checksum = "bcc35a38544a891a5f7c865aca548a982ccb3b8650a5b06d0fd33a10283c56fc" [[package]] name = "libloading" @@ -783,19 +996,19 @@ dependencies = [ [[package]] name = "libloading" -version = "0.7.4" +version = "0.8.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b67380fd3b2fbe7527a606e18729d21c6f3951633d0500574c4dc22d2d638b9f" +checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" dependencies = [ "cfg-if", - "winapi", + "windows-link", ] [[package]] name = "libloading" -version = "0.8.9" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7c4b02199fee7c5d21a5ae7d8cfa79a6ef5bb2fc834d6e9058e89c825efdc55" +checksum = "754ca22de805bb5744484a5b151a9e1a8e837d5dc232c2d7d8c2e3492edc8b60" dependencies = [ "cfg-if", "windows-link", @@ -803,43 +1016,38 @@ dependencies = [ [[package]] name = "libm" -version = "0.2.15" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f9fbbcab51052fe104eb5e5d351cf728d30a5be1fe14d9be8a3b097481fb97de" - -[[package]] -name = "libudis86-sys" -version = "0.2.1" +version = "0.2.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "139bbf9ddb1bfc90c1ac64dd2923d9c957cd433cee7315c018125d72ab08a6b0" -dependencies = [ - "cc", - "libc", -] +checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981" [[package]] name = "loader" version = "0.1.0" dependencies = [ - "libloading 0.5.2", + "libloading 0.9.0", "winapi", ] [[package]] name = "lock_api" -version = "0.4.9" +version = "0.4.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "435011366fe56583b16cf956f9df0095b405b82d76425bc8981c0e22e60ec4df" +checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965" dependencies = [ - "autocfg", "scopeguard", ] [[package]] name = "log" -version = "0.4.28" +version = "0.4.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "34080505efa8e45a4b816c349525ebe327ceaa8559756f0356cba97ef3bf7432" +checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897" + +[[package]] +name = "lru-slab" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "112b39cec0b298b6c1999fee3e31427f74f676e4cb9879ed1a121b43661a4154" [[package]] name = "mach" @@ -911,7 +1119,7 @@ checksum = "9a3ed9d34ed1a9190336a2b165bf09ac447693dfd9a61684597aaae2ee12df53" dependencies = [ "minimp3-sys", "slice-ring-buffer", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -925,31 +1133,20 @@ dependencies = [ [[package]] name = "mio" -version = "0.7.14" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8067b404fe97c70829f082dec8bcf4f71225d7eaea1d8645349cb76fa06205cc" +checksum = "a69bcab0ad47271a0234d9422b131806bf3968021e5dc9328caf2d4cd58557fc" dependencies = [ "libc", - "log", - "miow", - "ntapi", - "winapi", -] - -[[package]] -name = "miow" -version = "0.3.7" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21" -dependencies = [ - "winapi", + "wasi", + "windows-sys 0.61.2", ] [[package]] -name = "mmap-fixed" -version = "0.1.6" +name = "mmap-fixed-fixed" +version = "0.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b701cb868ec661212780d23d04d3f70722aed2f1d12bd46e40bad16e35fd480" +checksum = "0681853891801e4763dc252e843672faf32bcfee27a0aa3b19733902af450acc" dependencies = [ "libc", "winapi", @@ -957,11 +1154,27 @@ dependencies = [ [[package]] name = "nalgebra" -version = "0.29.0" +version = "0.34.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d506eb7e08d6329505faa8a3a00a5dcc6de9f76e0c77e4b75763ae3c770831ff" +checksum = "c4d5b3eff5cd580f93da45e64715e8c20a3996342f1e466599cf7a267a0c2f5f" dependencies = [ "approx", + "glam 0.14.0", + "glam 0.15.2", + "glam 0.16.0", + "glam 0.17.3", + "glam 0.18.0", + "glam 0.19.0", + "glam 0.20.5", + "glam 0.21.3", + "glam 0.22.0", + "glam 0.23.0", + "glam 0.24.2", + "glam 0.25.0", + "glam 0.27.0", + "glam 0.28.0", + "glam 0.29.3", + "glam 0.30.10", "matrixmultiply", "nalgebra-macros", "num-complex", @@ -973,13 +1186,13 @@ dependencies = [ [[package]] name = "nalgebra-macros" -version = "0.1.0" +version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "01fcc0b8149b4632adc89ac3b7b31a12fb6099a0317a4eb2ebff574ef7de7218" +checksum = "973e7178a678cfd059ccec50887658d482ce16b0aa9da3888ddeab5cd5eb4889" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 1.0.109", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] [[package]] @@ -992,7 +1205,7 @@ dependencies = [ "jni-sys", "ndk-sys", "num_enum", - "thiserror", + "thiserror 1.0.69", ] [[package]] @@ -1024,8 +1237,8 @@ checksum = "0df7ac00c4672f9d5aece54ee3347520b7e20f158656c7db2e6de01902eb7a6c" dependencies = [ "darling", "proc-macro-crate", - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "syn 1.0.109", ] @@ -1077,12 +1290,13 @@ dependencies = [ ] [[package]] -name = "ntapi" -version = "0.3.7" +name = "num-bigint" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f" +checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9" dependencies = [ - "winapi", + "num-integer", + "num-traits", ] [[package]] @@ -1094,14 +1308,20 @@ dependencies = [ "num-traits", ] +[[package]] +name = "num-conv" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "cf97ec579c3c42f953ef76dbf8d55ac91fb219dde70e49aa4a6b7d74e9919050" + [[package]] name = "num-derive" version = "0.3.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "syn 1.0.109", ] @@ -1120,6 +1340,7 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" dependencies = [ + "num-bigint", "num-integer", "num-traits", ] @@ -1134,16 +1355,6 @@ dependencies = [ "libm", ] -[[package]] -name = "num_cpus" -version = "1.17.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "91df4bbde75afed763b708b7eee1e8e7651e02d97f6d5dd763e89367e957b23b" -dependencies = [ - "hermit-abi", - "libc", -] - [[package]] name = "num_enum" version = "0.5.11" @@ -1160,18 +1371,27 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dcbff9bc912032c62bf65ef1d5aea88983b420f4f839db1e9b0c281a25c9c799" dependencies = [ "proc-macro-crate", - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "syn 1.0.109", ] +[[package]] +name = "num_threads" +version = "0.1.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5c7398b9c8b70908f6371f47ed36737907c87c52af34c268fed0bf0ceb92ead9" +dependencies = [ + "libc", +] + [[package]] name = "oboe" version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "27f63c358b4fa0fbcfefd7c8be5cfc39c08ce2389f5325687e7762a48d30a5c1" dependencies = [ - "jni", + "jni 0.19.0", "ndk", "ndk-context", "num-derive", @@ -1197,6 +1417,15 @@ dependencies = [ "byteorder", ] +[[package]] +name = "oid-registry" +version = "0.8.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "12f40cff3dde1b6087cc5d5f5d4d65712f34016a03ed60e9c08dcc392736b5b7" +dependencies = [ + "asn1-rs", +] + [[package]] name = "once_cell" version = "1.21.3" @@ -1205,9 +1434,9 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "openssl-probe" -version = "0.1.6" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e" +checksum = "7c87def4c32ab89d880effc9e097653c8da5d6ef28e6b539d313baaacfbafcbe" [[package]] name = "owning_ref" @@ -1239,6 +1468,16 @@ dependencies = [ "parking_lot_core 0.8.6", ] +[[package]] +name = "parking_lot" +version = "0.12.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a" +dependencies = [ + "lock_api", + "parking_lot_core 0.9.12", +] + [[package]] name = "parking_lot_core" version = "0.2.14" @@ -1260,11 +1499,24 @@ dependencies = [ "cfg-if", "instant", "libc", - "redox_syscall", + "redox_syscall 0.2.16", "smallvec 1.15.1", "winapi", ] +[[package]] +name = "parking_lot_core" +version = "0.9.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1" +dependencies = [ + "cfg-if", + "libc", + "redox_syscall 0.5.18", + "smallvec 1.15.1", + "windows-link", +] + [[package]] name = "paste" version = "1.0.15" @@ -1273,11 +1525,12 @@ checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a" [[package]] name = "pem" -version = "1.1.1" +version = "3.0.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a8835c273a76a90455d7344889b0964598e3316e2a79ede8e36f16bdcf2228b8" +checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be" dependencies = [ "base64", + "serde_core", ] [[package]] @@ -1298,6 +1551,12 @@ version = "0.3.32" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c" +[[package]] +name = "powerfmt" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391" + [[package]] name = "ppv-lite86" version = "0.2.21" @@ -1328,9 +1587,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.103" +version = "1.0.106" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ee95bc4ef87b8d5ba32e8b7714ccc834865276eab0aed5c9958d00ec45f49e8" +checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934" dependencies = [ "unicode-ident", ] @@ -1346,41 +1605,59 @@ dependencies = [ [[package]] name = "quinn" -version = "0.7.2" +version = "0.11.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c82c0a393b300104f989f3db8b8637c0d11f7a32a9c214560b47849ba8f119aa" +checksum = "b9e20a958963c291dc322d98411f541009df2ced7b5a4f2bd52337638cfccf20" dependencies = [ "bytes", - "futures", - "lazy_static 1.5.0", - "libc", - "mio", + "cfg_aliases", + "pin-project-lite", "quinn-proto", + "quinn-udp", + "rustc-hash", "rustls", "socket2", - "thiserror", + "thiserror 2.0.18", "tokio", "tracing", - "webpki", + "web-time", ] [[package]] name = "quinn-proto" -version = "0.7.3" +version = "0.11.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "047aa96ec7ee6acabad7a1318dff72e9aff8994316bf2166c9b94cbec78ca54c" +checksum = "f1906b49b0c3bc04b5fe5d86a77925ae6524a19b816ae38ce1e426255f1d8a31" dependencies = [ "bytes", - "ct-logs", - "rand 0.8.5", + "fastbloom", + "getrandom 0.3.4", + "lru-slab", + "rand 0.9.2", "ring", + "rustc-hash", "rustls", - "rustls-native-certs", + "rustls-pki-types", + "rustls-platform-verifier", "slab", - "thiserror", + "thiserror 2.0.18", "tinyvec", "tracing", - "webpki", + "web-time", +] + +[[package]] +name = "quinn-udp" +version = "0.5.14" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "addec6a0dcad8a8d96a771f815f0eaf55f9d1805756410b39f5fa81332574cbd" +dependencies = [ + "cfg_aliases", + "libc", + "once_cell", + "socket2", + "tracing", + "windows-sys 0.60.2", ] [[package]] @@ -1394,11 +1671,11 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.41" +version = "1.0.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce25767e7b499d1b604768e7cde645d14cc8584231ea6b295e9c9eb22c02e1d1" +checksum = "21b2ebcf727b7760c461f091f9f0f539b77b8e87f2fd88131e7f1b433b3cece4" dependencies = [ - "proc-macro2 1.0.103", + "proc-macro2 1.0.106", ] [[package]] @@ -1427,10 +1704,20 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" dependencies = [ "libc", - "rand_chacha", + "rand_chacha 0.3.1", "rand_core 0.6.4", ] +[[package]] +name = "rand" +version = "0.9.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6db2770f06117d490610c7488547d543617b21bfa07796d7a12f6f1bd53850d1" +dependencies = [ + "rand_chacha 0.9.0", + "rand_core 0.9.5", +] + [[package]] name = "rand_chacha" version = "0.3.1" @@ -1441,6 +1728,16 @@ dependencies = [ "rand_core 0.6.4", ] +[[package]] +name = "rand_chacha" +version = "0.9.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb" +dependencies = [ + "ppv-lite86", + "rand_core 0.9.5", +] + [[package]] name = "rand_core" version = "0.3.1" @@ -1462,7 +1759,16 @@ version = "0.6.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" dependencies = [ - "getrandom 0.2.16", + "getrandom 0.2.17", +] + +[[package]] +name = "rand_core" +version = "0.9.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c" +dependencies = [ + "getrandom 0.3.4", ] [[package]] @@ -1483,13 +1789,15 @@ checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3" [[package]] name = "rcgen" -version = "0.8.14" +version = "0.14.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5911d1403f4143c9d56a702069d593e8d0f3fab880a85e103604d0893ea31ba7" +checksum = "10b99e0098aa4082912d4c649628623db6aba77335e4f4569ff5083a6448b32e" dependencies = [ - "chrono", "pem", "ring", + "rustls-pki-types", + "time", + "x509-parser", "yasna", ] @@ -1511,6 +1819,15 @@ dependencies = [ "bitflags 1.3.2", ] +[[package]] +name = "redox_syscall" +version = "0.5.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d" +dependencies = [ + "bitflags 2.10.0", +] + [[package]] name = "regex" version = "1.12.2" @@ -1540,18 +1857,6 @@ version = "0.8.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2d987857b319362043e95f5353c0535c1f58eec5336fdfcf626430af7def58" -[[package]] -name = "region" -version = "2.2.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "877e54ea2adcd70d80e9179344c97f93ef0dffd6b03e1f4529e6e83ab2fa9ae0" -dependencies = [ - "bitflags 1.3.2", - "libc", - "mach", - "winapi", -] - [[package]] name = "region" version = "3.0.2" @@ -1589,24 +1894,39 @@ version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "475e68978dc5b743f2f40d8e0a8fdc83f1c5e78cbf4b8fa5e74e73beebc340de" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "syn 1.0.109", ] +[[package]] +name = "retour" +version = "0.4.0-alpha.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ead4bc8e12d553ff70769c5f5c21f5f4f0e73c0018068a6bb5a3d7d3b9e57ec7" +dependencies = [ + "cfg-if", + "generic-array", + "iced-x86", + "libc", + "mmap-fixed-fixed", + "once_cell", + "region", + "slice-pool2", +] + [[package]] name = "ring" -version = "0.16.20" +version = "0.17.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3053cf52e236a3ed746dfc745aa9cacf1b791d846bdaf412f60a8d7d6e17c8fc" +checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7" dependencies = [ "cc", + "cfg-if", + "getrandom 0.2.17", "libc", - "once_cell", - "spin", "untrusted", - "web-sys", - "winapi", + "windows-sys 0.52.0", ] [[package]] @@ -1628,42 +1948,97 @@ version = "2.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "357703d41365b4b27c590e3ed91eabb1b663f07c4c084095e60cbed4362dff0d" +[[package]] +name = "rusticata-macros" +version = "4.1.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632" +dependencies = [ + "nom", +] + [[package]] name = "rustls" -version = "0.19.1" +version = "0.23.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35edb675feee39aec9c99fa5ff985081995a06d594114ae14cbe797ad7b7a6d7" +checksum = "c665f33d38cea657d9614f766881e4d510e0eda4239891eea56b4cadcf01801b" dependencies = [ - "base64", + "aws-lc-rs", "log", + "once_cell", "ring", - "sct", - "webpki", + "rustls-pki-types", + "rustls-webpki", + "subtle", + "zeroize", ] [[package]] name = "rustls-native-certs" -version = "0.5.0" +version = "0.8.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5a07b7c1885bd8ed3831c289b7870b13ef46fe0e856d288c30d9cc17d75a2092" +checksum = "612460d5f7bea540c490b2b6395d8e34a953e52b491accd6c86c8164c5932a63" dependencies = [ "openssl-probe", - "rustls", + "rustls-pki-types", "schannel", "security-framework", ] [[package]] -name = "rustversion" -version = "1.0.22" +name = "rustls-pki-types" +version = "1.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" +checksum = "be040f8b0a225e40375822a563fa9524378b9d63112f53e19ffff34df5d33fdd" +dependencies = [ + "web-time", + "zeroize", +] + +[[package]] +name = "rustls-platform-verifier" +version = "0.6.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1d99feebc72bae7ab76ba994bb5e121b8d83d910ca40b36e0921f53becc41784" +dependencies = [ + "core-foundation", + "core-foundation-sys", + "jni 0.21.1", + "log", + "once_cell", + "rustls", + "rustls-native-certs", + "rustls-platform-verifier-android", + "rustls-webpki", + "security-framework", + "security-framework-sys", + "webpki-root-certs", + "windows-sys 0.61.2", +] + +[[package]] +name = "rustls-platform-verifier-android" +version = "0.1.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f87165f0995f63a9fbeea62b64d10b4d9d8e78ec6d7d51fb2125fda7bb36788f" + +[[package]] +name = "rustls-webpki" +version = "0.103.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d7df23109aa6c1567d1c575b9952556388da57401e4ace1d15f79eedad0d8f53" +dependencies = [ + "aws-lc-rs", + "ring", + "rustls-pki-types", + "untrusted", +] [[package]] -name = "ryu" -version = "1.0.20" +name = "rustversion" +version = "1.0.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f" +checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d" [[package]] name = "safe_arch" @@ -1686,7 +2061,7 @@ dependencies = [ [[package]] name = "samp" version = "0.1.2" -source = "git+https://github.com/zottce/samp-rs.git?branch=potential-fix#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" +source = "git+https://github.com/zottce/samp-rs.git?rev=2e9192713bf9a77ee04e0ebbcda37d078c9c47dd#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" dependencies = [ "fern", "samp-codegen", @@ -1696,7 +2071,7 @@ dependencies = [ [[package]] name = "samp-codegen" version = "0.1.1" -source = "git+https://github.com/zottce/samp-rs.git?branch=potential-fix#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" +source = "git+https://github.com/zottce/samp-rs.git?rev=2e9192713bf9a77ee04e0ebbcda37d078c9c47dd#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" dependencies = [ "proc-macro2 0.4.30", "quote 0.6.13", @@ -1706,7 +2081,7 @@ dependencies = [ [[package]] name = "samp-sdk" version = "0.9.2" -source = "git+https://github.com/zottce/samp-rs.git?branch=potential-fix#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" +source = "git+https://github.com/zottce/samp-rs.git?rev=2e9192713bf9a77ee04e0ebbcda37d078c9c47dd#2e9192713bf9a77ee04e0ebbcda37d078c9c47dd" dependencies = [ "bitflags 1.3.2", "colored", @@ -1715,12 +2090,11 @@ dependencies = [ [[package]] name = "schannel" -version = "0.1.20" +version = "0.1.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2" +checksum = "891d81b926048e76efe18581bf793546b4c0eaf8448d72be8de2bbee5fd166e1" dependencies = [ - "lazy_static 1.5.0", - "windows-sys 0.36.1", + "windows-sys 0.61.2", ] [[package]] @@ -1729,21 +2103,11 @@ version = "1.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49" -[[package]] -name = "sct" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b362b83898e0e69f38515b82ee15aa80636befe47c3b6d3d89a911e78fc228ce" -dependencies = [ - "ring", - "untrusted", -] - [[package]] name = "security-framework" -version = "2.11.1" +version = "3.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02" +checksum = "b3297343eaf830f66ede390ea39da1d462b6b0c1b000f420d0a83f898bbbe6ef" dependencies = [ "bitflags 2.10.0", "core-foundation", @@ -1787,22 +2151,22 @@ version = "1.0.228" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] [[package]] name = "serde_json" -version = "1.0.145" +version = "1.0.149" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "402a6f66d8c709116cf22f558eab210f5a50187f702eb4d7e5ef38d9a7f1c79c" +checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86" dependencies = [ "itoa", "memchr", - "ryu", "serde", "serde_core", + "zmij", ] [[package]] @@ -1826,18 +2190,19 @@ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64" [[package]] name = "signal-hook-registry" -version = "1.4.6" +version = "1.4.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b2a4719bff48cee6b39d12c020eeb490953ad2443b7055bd0b21fca26bd8c28b" +checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b" dependencies = [ + "errno", "libc", ] [[package]] name = "simba" -version = "0.6.0" +version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0b7840f121a46d63066ee7a99fc81dcabbc6105e437cae43528cea199b5a05f" +checksum = "c99284beb21666094ba2b75bbceda012e610f5479dfcc2d6e2426f53197ffd95" dependencies = [ "approx", "num-complex", @@ -1848,15 +2213,21 @@ dependencies = [ [[package]] name = "simplelog" -version = "0.10.2" +version = "0.12.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "85d04ae642154220ef00ee82c36fb07853c10a4f2a0ca6719f9991211d2eb959" +checksum = "16257adbfaef1ee58b1363bdc0664c9b8e1e30aed86049635fb5f147d065a9c0" dependencies = [ - "chrono", "log", "termcolor", + "time", ] +[[package]] +name = "siphasher" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "56199f7ddabf13fe5074ce809e7d3f42b42ae711800501b5b16ea82ad029c39d" + [[package]] name = "slab" version = "0.4.11" @@ -1864,10 +2235,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a2ae44ef20feb57a68b23d846850f861394c2e02dc425a50098ae8c90267589" [[package]] -name = "slice-pool" -version = "0.4.1" +name = "slice-pool2" +version = "0.4.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "733fc6e5f1bd3a8136f842c9bdea4e5f17c910c2fcc98c90c3aa7604ef5e2e7a" +checksum = "7a3d689654af89bdfeba29a914ab6ac0236d382eb3b764f7454dde052f2821f8" [[package]] name = "slice-ring-buffer" @@ -1882,9 +2253,9 @@ dependencies = [ [[package]] name = "slotmap" -version = "1.0.7" +version = "1.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dbff4acf519f630b3a3ddcfaea6c06b42174d9a44bc70c620e9ed1649d58b82a" +checksum = "bdd58c3c93c3d278ca835519292445cb4b0d4dc59ccfdf7ceadaab3f8aeb4038" dependencies = [ "version_check", ] @@ -1906,21 +2277,14 @@ checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03" [[package]] name = "socket2" -version = "0.3.19" +version = "0.6.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e" +checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0" dependencies = [ - "cfg-if", "libc", - "winapi", + "windows-sys 0.60.2", ] -[[package]] -name = "spin" -version = "0.5.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" - [[package]] name = "stable_deref_trait" version = "1.2.1" @@ -1939,6 +2303,12 @@ version = "0.10.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623" +[[package]] +name = "subtle" +version = "2.6.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292" + [[package]] name = "syn" version = "0.15.44" @@ -1956,27 +2326,38 @@ version = "1.0.109" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "unicode-ident", ] [[package]] name = "syn" -version = "2.0.106" +version = "2.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ede7c438028d4436d71104916910f5bb611972c5cfd7f89b8300a8186e6fada6" +checksum = "d4d107df263a3013ef9b1879b0df87d706ff80f65a86ea879bd9c31f9b307c2a" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", + "proc-macro2 1.0.106", + "quote 1.0.44", "unicode-ident", ] +[[package]] +name = "synstructure" +version = "0.13.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", +] + [[package]] name = "termcolor" -version = "1.1.3" +version = "1.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755" +checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755" dependencies = [ "winapi-util", ] @@ -1993,7 +2374,16 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52" dependencies = [ - "thiserror-impl", + "thiserror-impl 1.0.69", +] + +[[package]] +name = "thiserror" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4" +dependencies = [ + "thiserror-impl 2.0.18", ] [[package]] @@ -2002,20 +2392,53 @@ version = "1.0.69" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", +] + +[[package]] +name = "thiserror-impl" +version = "2.0.18" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] [[package]] name = "time" -version = "0.1.45" +version = "0.3.46" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b797afad3f312d1c66a56d11d0316f916356d11bd158fbc6ca6389ff6bf805a" +checksum = "9da98b7d9b7dad93488a84b8248efc35352b0b2657397d4167e7ad67e5d535e5" dependencies = [ + "deranged", + "itoa", "libc", - "wasi 0.10.0+wasi-snapshot-preview1", - "winapi", + "num-conv", + "num_threads", + "powerfmt", + "serde_core", + "time-core", + "time-macros", +] + +[[package]] +name = "time-core" +version = "0.1.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7694e1cfe791f8d31026952abf09c69ca6f6fa4e1a1229e18988f06a04a12dca" + +[[package]] +name = "time-macros" +version = "0.2.26" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "78cc610bac2dcee56805c99642447d4c5dbde4d01f752ffea0199aee1f601dc4" +dependencies = [ + "num-conv", + "time-core", ] [[package]] @@ -2035,33 +2458,30 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.11.0" +version = "1.49.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4efe6fc2395938c8155973d7be49fe8d03a843726e285e100a8a383cc0154ce" +checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86" dependencies = [ - "autocfg", "bytes", "libc", - "memchr", "mio", - "num_cpus", - "once_cell", - "parking_lot 0.11.2", + "parking_lot 0.12.5", "pin-project-lite", "signal-hook-registry", + "socket2", "tokio-macros", - "winapi", + "windows-sys 0.61.2", ] [[package]] name = "tokio-macros" -version = "1.8.2" +version = "2.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d266c00fde287f55d3f1c3e96c500c362a2b8c695076ec180f27918820bc6df8" +checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 1.0.109", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] [[package]] @@ -2083,31 +2503,20 @@ dependencies = [ [[package]] name = "tracing" -version = "0.1.41" +version = "0.1.44" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0" +checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100" dependencies = [ + "log", "pin-project-lite", - "tracing-attributes", "tracing-core", ] -[[package]] -name = "tracing-attributes" -version = "0.1.30" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81383ab64e72a7a8b8e13130c49e3dab29def6d0c7d76a03087b3cf71c5c6903" -dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", -] - [[package]] name = "tracing-core" -version = "0.1.34" +version = "0.1.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678" +checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a" dependencies = [ "once_cell", ] @@ -2132,9 +2541,9 @@ checksum = "fc72304796d0818e357ead4e000d19c9c174ab23dc11093ac919054d20a6a7fc" [[package]] name = "untrusted" -version = "0.7.1" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a156c684c91ea7d62626509bce3cb4e1d9ed5c4d978f7b4352658f96a4c26b4a" +checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1" [[package]] name = "version_check" @@ -2152,12 +2561,6 @@ dependencies = [ "winapi-util", ] -[[package]] -name = "wasi" -version = "0.10.0+wasi-snapshot-preview1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f" - [[package]] name = "wasi" version = "0.11.1+wasi-snapshot-preview1" @@ -2166,18 +2569,18 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasip2" -version = "1.0.1+wasi-0.2.4" +version = "1.0.2+wasi-0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" +checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5" dependencies = [ "wit-bindgen", ] [[package]] name = "wasm-bindgen" -version = "0.2.105" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da95793dfc411fbbd93f5be7715b0578ec61fe87cb1a42b12eb625caa5c5ea60" +checksum = "64024a30ec1e37399cf85a7ffefebdb72205ca1c972291c51512360d90bd8566" dependencies = [ "cfg-if", "once_cell", @@ -2188,41 +2591,51 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.105" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04264334509e04a7bf8690f2384ef5265f05143a4bff3889ab7a3269adab59c2" +checksum = "008b239d9c740232e71bd39e8ef6429d27097518b6b30bdf9086833bd5b6d608" dependencies = [ - "quote 1.0.41", + "quote 1.0.44", "wasm-bindgen-macro-support", ] [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.105" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "420bc339d9f322e562942d52e115d57e950d12d88983a14c79b86859ee6c7ebc" +checksum = "5256bae2d58f54820e6490f9839c49780dff84c65aeab9e772f15d5f0e913a55" dependencies = [ "bumpalo", - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", "wasm-bindgen-shared", ] [[package]] name = "wasm-bindgen-shared" -version = "0.2.105" +version = "0.2.108" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76f218a38c84bcb33c25ec7059b07847d465ce0e0a76b995e134a45adcb6af76" +checksum = "1f01b580c9ac74c8d8f0c0e4afb04eeef2acf145458e52c03845ee9cd23e3d12" dependencies = [ "unicode-ident", ] [[package]] name = "web-sys" -version = "0.3.82" +version = "0.3.85" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "312e32e551d92129218ea9a2452120f4aabc03529ef03e4d0d82fb2780608598" +dependencies = [ + "js-sys", + "wasm-bindgen", +] + +[[package]] +name = "web-time" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a1f95c0d03a47f4ae1f7a64643a6bb97465d9b740f0fa8f90ea33915c99a9a1" +checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb" dependencies = [ "js-sys", "wasm-bindgen", @@ -2230,14 +2643,23 @@ dependencies = [ [[package]] name = "webpki" -version = "0.21.4" +version = "0.22.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b8e38c0608262c46d4a56202ebabdeb094cef7e560ca7a226c6bf055188aa4ea" +checksum = "ed63aea5ce73d0ff405984102c42de94fc55a6b75765d621c65262469b3c9b53" dependencies = [ "ring", "untrusted", ] +[[package]] +name = "webpki-root-certs" +version = "1.0.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "36a29fc0408b113f68cf32637857ab740edfafdf460c326cd2afaa2d84cc05dc" +dependencies = [ + "rustls-pki-types", +] + [[package]] name = "wide" version = "0.7.33" @@ -2250,9 +2672,9 @@ dependencies = [ [[package]] name = "widestring" -version = "0.4.3" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c168940144dd21fd8046987c16a46a33d5fc84eec29ef9dcddc2ac9e31526b7c" +checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471" [[package]] name = "winapi" @@ -2276,7 +2698,7 @@ version = "0.1.11" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22" dependencies = [ - "windows-sys 0.52.0", + "windows-sys 0.61.2", ] [[package]] @@ -2285,23 +2707,72 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows-core" +version = "0.62.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb" +dependencies = [ + "windows-implement", + "windows-interface", + "windows-link", + "windows-result", + "windows-strings", +] + +[[package]] +name = "windows-implement" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", +] + +[[package]] +name = "windows-interface" +version = "0.59.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358" +dependencies = [ + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", +] + [[package]] name = "windows-link" version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5" +[[package]] +name = "windows-result" +version = "0.4.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-strings" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091" +dependencies = [ + "windows-link", +] + [[package]] name = "windows-sys" -version = "0.36.1" +version = "0.45.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2" +checksum = "75283be5efb2831d37ea142365f009c02ec203cd29a3ebecbc093d52315b66d0" dependencies = [ - "windows_aarch64_msvc 0.36.1", - "windows_i686_gnu 0.36.1", - "windows_i686_msvc 0.36.1", - "windows_x86_64_gnu 0.36.1", - "windows_x86_64_msvc 0.36.1", + "windows-targets 0.42.2", ] [[package]] @@ -2310,7 +2781,40 @@ version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" dependencies = [ - "windows-targets", + "windows-targets 0.52.6", +] + +[[package]] +name = "windows-sys" +version = "0.60.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb" +dependencies = [ + "windows-targets 0.53.5", +] + +[[package]] +name = "windows-sys" +version = "0.61.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc" +dependencies = [ + "windows-link", +] + +[[package]] +name = "windows-targets" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8e5180c00cd44c9b1c88adb3693291f1cd93605ded80c250a75d472756b4d071" +dependencies = [ + "windows_aarch64_gnullvm 0.42.2", + "windows_aarch64_msvc 0.42.2", + "windows_i686_gnu 0.42.2", + "windows_i686_msvc 0.42.2", + "windows_x86_64_gnu 0.42.2", + "windows_x86_64_gnullvm 0.42.2", + "windows_x86_64_msvc 0.42.2", ] [[package]] @@ -2319,27 +2823,56 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973" dependencies = [ - "windows_aarch64_gnullvm", + "windows_aarch64_gnullvm 0.52.6", "windows_aarch64_msvc 0.52.6", "windows_i686_gnu 0.52.6", - "windows_i686_gnullvm", + "windows_i686_gnullvm 0.52.6", "windows_i686_msvc 0.52.6", "windows_x86_64_gnu 0.52.6", - "windows_x86_64_gnullvm", + "windows_x86_64_gnullvm 0.52.6", "windows_x86_64_msvc 0.52.6", ] +[[package]] +name = "windows-targets" +version = "0.53.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3" +dependencies = [ + "windows-link", + "windows_aarch64_gnullvm 0.53.1", + "windows_aarch64_msvc 0.53.1", + "windows_i686_gnu 0.53.1", + "windows_i686_gnullvm 0.53.1", + "windows_i686_msvc 0.53.1", + "windows_x86_64_gnu 0.53.1", + "windows_x86_64_gnullvm 0.53.1", + "windows_x86_64_msvc 0.53.1", +] + +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "597a5118570b68bc08d8d59125332c54f1ba9d9adeedeef5b99b02ba2b0698f8" + [[package]] name = "windows_aarch64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53" + [[package]] name = "windows_aarch64_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47" +checksum = "e08e8864a60f06ef0d0ff4ba04124db8b0fb3be5776a5cd47641e942e58c4d43" [[package]] name = "windows_aarch64_msvc" @@ -2347,11 +2880,17 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469" +[[package]] +name = "windows_aarch64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006" + [[package]] name = "windows_i686_gnu" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6" +checksum = "c61d927d8da41da96a81f029489353e68739737d3beca43145c8afec9a31a84f" [[package]] name = "windows_i686_gnu" @@ -2359,17 +2898,29 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b" +[[package]] +name = "windows_i686_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3" + [[package]] name = "windows_i686_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66" +[[package]] +name = "windows_i686_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c" + [[package]] name = "windows_i686_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024" +checksum = "44d840b6ec649f480a41c8d80f9c65108b92d89345dd94027bfe06ac444d1060" [[package]] name = "windows_i686_msvc" @@ -2377,11 +2928,17 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66" +[[package]] +name = "windows_i686_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2" + [[package]] name = "windows_x86_64_gnu" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1" +checksum = "8de912b8b8feb55c064867cf047dda097f92d51efad5b491dfb98f6bbb70cb36" [[package]] name = "windows_x86_64_gnu" @@ -2389,17 +2946,35 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78" +[[package]] +name = "windows_x86_64_gnu" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499" + +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.42.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "26d41b46a36d453748aedef1486d5c7a85db22e56aff34643984ea85514e94a3" + [[package]] name = "windows_x86_64_gnullvm" version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1" + [[package]] name = "windows_x86_64_msvc" -version = "0.36.1" +version = "0.42.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680" +checksum = "9aec5da331524158c6d1a4ac0ab1541149c0b9505fde06423b02f5ef0106b9f0" [[package]] name = "windows_x86_64_msvc" @@ -2407,6 +2982,12 @@ version = "0.52.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec" +[[package]] +name = "windows_x86_64_msvc" +version = "0.53.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650" + [[package]] name = "winnow" version = "0.5.40" @@ -2418,35 +2999,65 @@ dependencies = [ [[package]] name = "wit-bindgen" -version = "0.46.0" +version = "0.51.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" +checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5" + +[[package]] +name = "x509-parser" +version = "0.18.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "eb3e137310115a65136898d2079f003ce33331a6c4b0d51f1531d1be082b6425" +dependencies = [ + "asn1-rs", + "data-encoding", + "der-parser", + "lazy_static 1.5.0", + "nom", + "oid-registry", + "ring", + "rusticata-macros", + "thiserror 2.0.18", + "time", +] [[package]] name = "yasna" -version = "0.4.0" +version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e262a29d0e61ccf2b6190d7050d4b237535fc76ce4c1210d9caa316f71dffa75" +checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd" dependencies = [ - "chrono", + "time", ] [[package]] name = "zerocopy" -version = "0.8.28" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "43fa6694ed34d6e57407afbccdeecfa268c470a7d2a5b0cf49ce9fcc345afb90" +checksum = "668f5168d10b9ee831de31933dc111a459c97ec93225beb307aed970d1372dfd" dependencies = [ "zerocopy-derive", ] [[package]] name = "zerocopy-derive" -version = "0.8.28" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c640b22cd9817fae95be82f0d2f90b11f7605f6c319d16705c459b27ac2cbc26" +checksum = "2c7962b26b0a8685668b671ee4b54d007a67d4eaf05fda79ac0ecf41e32270f1" dependencies = [ - "proc-macro2 1.0.103", - "quote 1.0.41", - "syn 2.0.106", + "proc-macro2 1.0.106", + "quote 1.0.44", + "syn 2.0.114", ] + +[[package]] +name = "zeroize" +version = "1.8.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b97154e67e32c85465826e8bcc1c59429aaaf107c1e4a9e53c8d8ccd5eff88d0" + +[[package]] +name = "zmij" +version = "1.0.16" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "dfcd145825aace48cff44a8844de64bf75feec3080e0aa5cdbde72961ae51a65" diff --git a/Cargo.toml b/Cargo.toml index bc239eb..7e75529 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,18 @@ [workspace] -members = [ - "cef-sys", - "cef", - "loader", - "client", - "renderer", - "messages", - "server", - "cef-api", - "cef-interface", - "network", -] +resolver = "3" +members = [ + "cef-sys", + "cef", + "loader", + "client", + "renderer", + "messages", + "server", + "cef-api", + "cef-interface", + "network", +] + [profile.release] # lto = true diff --git a/cef-api/Cargo.toml b/cef-api/Cargo.toml index c1fb077..40648ee 100644 --- a/cef-api/Cargo.toml +++ b/cef-api/Cargo.toml @@ -2,9 +2,10 @@ name = "cef-api" version = "0.1.0" authors = ["ZOTTCE "] -edition = "2018" +edition = "2024" +rust-version = "1.93" [dependencies] cef = { path = "../cef" } cef-sys = { path = "../cef-sys" } -libloading = "0.5.2" +libloading = "0.9.0" diff --git a/cef-api/src/lib.rs b/cef-api/src/lib.rs index 6265c77..bc76520 100644 --- a/cef-api/src/lib.rs +++ b/cef-api/src/lib.rs @@ -40,9 +40,13 @@ pub struct InternalApi { pub struct CefApi; impl CefApi { + /// # Safety + /// `api` must be a valid pointer to an initialized `InternalApi`. pub unsafe fn initialize(api: *mut InternalApi) { - let boxed = Box::new((*api).clone()); - API = Box::into_raw(boxed); + let boxed = unsafe { Box::new((*api).clone()) }; + unsafe { + API = Box::into_raw(boxed); + } } pub fn uninitialize() { diff --git a/cef-interface/Cargo.toml b/cef-interface/Cargo.toml index 45f1bc1..57fa6a4 100644 --- a/cef-interface/Cargo.toml +++ b/cef-interface/Cargo.toml @@ -2,7 +2,8 @@ name = "cef-interface" version = "0.1.0" authors = ["ZOTTCE "] -edition = "2018" +edition = "2024" +rust-version = "1.93" [lib] crate-type = ["cdylib"] @@ -10,5 +11,5 @@ crate-type = ["cdylib"] [dependencies] cef = { path = "../cef" } cef-api = { path = "../cef-api" } -client-api = { git = "https://github.com/zottce/samp-client-api.git", branch = "destroy" } -region = "2.2.0" +client-api = { git = "https://github.com/zottce/samp-client-api.git", rev = "886d15e" } +region = "3.0.2" diff --git a/cef-interface/src/lib.rs b/cef-interface/src/lib.rs index f2043bb..9424a56 100644 --- a/cef-interface/src/lib.rs +++ b/cef-interface/src/lib.rs @@ -1,7 +1,8 @@ -use cef_api::{cef_list_value_t, CefApi, InternalApi, List, CEF_EVENT_BREAK}; +use cef_api::{CEF_EVENT_BREAK, CefApi, InternalApi, List, cef_list_value_t}; use std::collections::HashMap; use std::os::raw::c_char; use std::sync::mpsc::{Receiver, Sender}; +use std::sync::{Mutex, OnceLock}; use std::time::{Duration, Instant}; mod components; @@ -21,11 +22,15 @@ struct App { event_rx: Receiver, } -static mut APP: Option = None; +static APP: OnceLock>> = OnceLock::new(); -#[no_mangle] +#[unsafe(no_mangle)] +/// # Safety +/// `api` must be a valid pointer to an initialized `InternalApi`. pub unsafe extern "C" fn cef_initialize(api: *mut InternalApi) { - CefApi::initialize(api); + unsafe { + CefApi::initialize(api); + } let (event_tx, event_rx) = std::sync::mpsc::channel(); @@ -42,12 +47,19 @@ pub unsafe extern "C" fn cef_initialize(api: *mut InternalApi) { event_rx, }; - APP = Some(app); + let app_cell = APP.get_or_init(|| Mutex::new(None)); + let mut app_slot = app_cell.lock().expect("cef-interface APP lock poisoned"); + *app_slot = Some(app); } -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn cef_samp_mainloop() { - if let Some(app) = unsafe { APP.as_mut() } { + let Some(app_cell) = APP.get() else { + return; + }; + + let mut app_slot = app_cell.lock().expect("cef-interface APP lock poisoned"); + if let Some(app) = app_slot.as_mut() { while let Ok(event) = app.event_rx.try_recv() { match event { Event::SetComponentVisible(name, visible) => { @@ -108,25 +120,28 @@ fn update_visible_state(app: &mut App, is_hud_visible: bool) { CefApi::emit_event("game:hud:newVisibleState", &list); } -#[no_mangle] +#[unsafe(no_mangle)] pub extern "C" fn cef_quit() { CefApi::uninitialize(); - unsafe { - APP.take(); + if let Some(app_cell) = APP.get() { + let mut app_slot = app_cell.lock().expect("cef-interface APP lock poisoned"); + *app_slot = None; } } extern "C" fn set_component_visible(_: *const c_char, args: *mut cef_list_value_t) -> i32 { - if let Some(args) = List::try_from_raw(args) { - if args.len() == 3 { - let name = args.string(1).to_string(); - let visible = args.bool(2); - - unsafe { - APP.as_mut() - .map(|app| app.event_tx.send(Event::SetComponentVisible(name, visible))); - } + if let Some(args) = List::try_from_raw(args) + && args.len() == 3 + { + let name = args.string(1).to_string(); + let visible = args.bool(2); + + if let Some(app_cell) = APP.get() + && let Ok(mut app_slot) = app_cell.lock() + && let Some(app) = app_slot.as_mut() + { + let _ = app.event_tx.send(Event::SetComponentVisible(name, visible)); } } @@ -134,15 +149,17 @@ extern "C" fn set_component_visible(_: *const c_char, args: *mut cef_list_value_ } extern "C" fn poll_player_stats(_: *const c_char, args: *mut cef_list_value_t) -> i32 { - if let Some(args) = List::try_from_raw(args) { - if args.len() == 3 { - let poll = args.bool(1); - let interval = args.integer(2); - - unsafe { - APP.as_mut() - .map(|app| app.event_tx.send(Event::PollPlayerStats(poll, interval))); - } + if let Some(args) = List::try_from_raw(args) + && args.len() == 3 + { + let poll = args.bool(1); + let interval = args.integer(2); + + if let Some(app_cell) = APP.get() + && let Ok(mut app_slot) = app_cell.lock() + && let Some(app) = app_slot.as_mut() + { + let _ = app.event_tx.send(Event::PollPlayerStats(poll, interval)); } } @@ -214,7 +231,6 @@ fn gather_player_data() -> PlayerData { } const STAT_AIR: u32 = 8; -const STAT_HP: u32 = 10; // 8 air // 10 max hp diff --git a/cef-sys/Cargo.toml b/cef-sys/Cargo.toml index cc15eab..95fd44a 100644 --- a/cef-sys/Cargo.toml +++ b/cef-sys/Cargo.toml @@ -2,8 +2,9 @@ name = "cef-sys" version = "0.1.0" authors = ["ZOTTCE "] -edition = "2018" +edition = "2024" +rust-version = "1.93" build = "build.rs" [dependencies] -winapi = { version = "0.3.8", features = ["winuser", "windef"] } +winapi = { version = "0.3.9", features = ["winuser", "windef"] } diff --git a/cef-sys/build.rs b/cef-sys/build.rs index a30877a..4352b3c 100644 --- a/cef-sys/build.rs +++ b/cef-sys/build.rs @@ -1,4 +1,13 @@ fn main() { + println!("cargo:rerun-if-env-changed=CEF_PATH"); + println!("cargo:rerun-if-env-changed=CEF_SYS_SKIP_LINK"); + println!("cargo:rerun-if-env-changed=CARGO_CFG_MIRI"); + + if std::env::var("CEF_SYS_SKIP_LINK").is_ok() || std::env::var("CARGO_CFG_MIRI").is_ok() { + println!("cargo:warning=Skipping libcef.lib linkage (CEF_SYS_SKIP_LINK or Miri)."); + return; + } + let cef_redist = std::env::var("CEF_PATH") .expect("No CEF_PATH env variable. It should point to the libcef.lib."); diff --git a/cef-sys/src/bindings.rs b/cef-sys/src/bindings.rs new file mode 100644 index 0000000..a84fd24 --- /dev/null +++ b/cef-sys/src/bindings.rs @@ -0,0 +1,24172 @@ +/* automatically generated by rust-bindgen 0.57.0 */ + +pub type wchar_t = ::std::os::raw::c_ushort; +pub type int64 = ::std::os::raw::c_longlong; +pub type uint64 = ::std::os::raw::c_ulonglong; +pub type int32 = ::std::os::raw::c_int; +pub type uint32 = ::std::os::raw::c_uint; +pub type char16 = wchar_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_string_wide_t { + pub str_: *mut wchar_t, + pub length: usize, + pub dtor: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_string_wide_t() { + assert_eq!( + ::std::mem::size_of::<_cef_string_wide_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_string_wide_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_string_wide_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_string_wide_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).str_ as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_wide_t), + "::", + stringify!(str_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).length as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_wide_t), + "::", + stringify!(length) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).dtor as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_wide_t), + "::", + stringify!(dtor) + ) + ); +} +pub type cef_string_wide_t = _cef_string_wide_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_string_utf8_t { + pub str_: *mut ::std::os::raw::c_char, + pub length: usize, + pub dtor: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_string_utf8_t() { + assert_eq!( + ::std::mem::size_of::<_cef_string_utf8_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_string_utf8_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_string_utf8_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_string_utf8_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).str_ as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf8_t), + "::", + stringify!(str_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).length as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf8_t), + "::", + stringify!(length) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).dtor as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf8_t), + "::", + stringify!(dtor) + ) + ); +} +pub type cef_string_utf8_t = _cef_string_utf8_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_string_utf16_t { + pub str_: *mut char16, + pub length: usize, + pub dtor: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_string_utf16_t() { + assert_eq!( + ::std::mem::size_of::<_cef_string_utf16_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_string_utf16_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_string_utf16_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_string_utf16_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).str_ as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf16_t), + "::", + stringify!(str_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).length as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf16_t), + "::", + stringify!(length) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).dtor as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_utf16_t), + "::", + stringify!(dtor) + ) + ); +} +pub type cef_string_utf16_t = _cef_string_utf16_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_wide_set( + src: *const wchar_t, src_len: usize, output: *mut cef_string_wide_t, + copy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf8_set( + src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf8_t, + copy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf16_set( + src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, + copy: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_wide_clear(str_: *mut cef_string_wide_t); +} +unsafe extern "C" { + pub fn cef_string_utf8_clear(str_: *mut cef_string_utf8_t); +} +unsafe extern "C" { + pub fn cef_string_utf16_clear(str_: *mut cef_string_utf16_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_wide_cmp( + str1: *const cef_string_wide_t, str2: *const cef_string_wide_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf8_cmp( + str1: *const cef_string_utf8_t, str2: *const cef_string_utf8_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf16_cmp( + str1: *const cef_string_utf16_t, str2: *const cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_wide_to_utf8( + src: *const wchar_t, src_len: usize, output: *mut cef_string_utf8_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf8_to_wide( + src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_wide_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_wide_to_utf16( + src: *const wchar_t, src_len: usize, output: *mut cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf16_to_wide( + src: *const char16, src_len: usize, output: *mut cef_string_wide_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf8_to_utf16( + src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf16_to_utf8( + src: *const char16, src_len: usize, output: *mut cef_string_utf8_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_ascii_to_wide( + src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_wide_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_ascii_to_utf16( + src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +#[doc = ""] +pub type cef_string_userfree_wide_t = *mut cef_string_wide_t; +pub type cef_string_userfree_utf8_t = *mut cef_string_utf8_t; +pub type cef_string_userfree_utf16_t = *mut cef_string_utf16_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_userfree_wide_alloc() -> cef_string_userfree_wide_t; +} +unsafe extern "C" { + pub fn cef_string_userfree_utf8_alloc() -> cef_string_userfree_utf8_t; +} +unsafe extern "C" { + pub fn cef_string_userfree_utf16_alloc() -> cef_string_userfree_utf16_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_userfree_wide_free(str_: cef_string_userfree_wide_t); +} +unsafe extern "C" { + pub fn cef_string_userfree_utf8_free(str_: cef_string_userfree_utf8_t); +} +unsafe extern "C" { + pub fn cef_string_userfree_utf16_free(str_: cef_string_userfree_utf16_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_utf16_to_lower( + src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_string_utf16_to_upper( + src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, + ) -> ::std::os::raw::c_int; +} +pub type cef_char_t = char16; +pub type cef_string_userfree_t = cef_string_userfree_utf16_t; +pub type cef_string_t = cef_string_utf16_t; +#[doc = ""] +pub type cef_string_list_t = *mut ::std::os::raw::c_void; +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_alloc() -> cef_string_list_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_size(list: cef_string_list_t) -> usize; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_value( + list: cef_string_list_t, index: usize, value: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_append(list: cef_string_list_t, value: *const cef_string_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_clear(list: cef_string_list_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_free(list: cef_string_list_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_list_copy(list: cef_string_list_t) -> cef_string_list_t; +} +#[doc = ""] +pub type cef_string_map_t = *mut ::std::os::raw::c_void; +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_alloc() -> cef_string_map_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_size(map: cef_string_map_t) -> usize; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_find( + map: cef_string_map_t, key: *const cef_string_t, value: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_key( + map: cef_string_map_t, index: usize, key: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_value( + map: cef_string_map_t, index: usize, value: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_append( + map: cef_string_map_t, key: *const cef_string_t, value: *const cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_clear(map: cef_string_map_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_map_free(map: cef_string_map_t); +} +#[doc = ""] +pub type cef_string_multimap_t = *mut ::std::os::raw::c_void; +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_alloc() -> cef_string_multimap_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_size(map: cef_string_multimap_t) -> usize; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_find_count( + map: cef_string_multimap_t, key: *const cef_string_t, + ) -> usize; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_enumerate( + map: cef_string_multimap_t, key: *const cef_string_t, value_index: usize, + value: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_key( + map: cef_string_multimap_t, index: usize, key: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_value( + map: cef_string_multimap_t, index: usize, value: *mut cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_append( + map: cef_string_multimap_t, key: *const cef_string_t, value: *const cef_string_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_clear(map: cef_string_multimap_t); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_string_multimap_free(map: cef_string_multimap_t); +} +pub type __time64_t = ::std::os::raw::c_longlong; +pub type time_t = __time64_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_time_t { + pub year: ::std::os::raw::c_int, + pub month: ::std::os::raw::c_int, + pub day_of_week: ::std::os::raw::c_int, + pub day_of_month: ::std::os::raw::c_int, + pub hour: ::std::os::raw::c_int, + pub minute: ::std::os::raw::c_int, + pub second: ::std::os::raw::c_int, + pub millisecond: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_time_t() { + assert_eq!( + ::std::mem::size_of::<_cef_time_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_time_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_time_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_time_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).year as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(year) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).month as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(month) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).day_of_week as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(day_of_week) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).day_of_month as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(day_of_month) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).hour as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(hour) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).minute as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(minute) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).second as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(second) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_time_t>())).millisecond as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_time_t), + "::", + stringify!(millisecond) + ) + ); +} +#[doc = ""] +pub type cef_time_t = _cef_time_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_time_to_timet( + cef_time: *const cef_time_t, time: *mut time_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_time_from_timet(time: time_t, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_time_to_doublet( + cef_time: *const cef_time_t, time: *mut f64, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + pub fn cef_time_from_doublet(time: f64, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_time_now(cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_time_delta( + cef_time1: *const cef_time_t, cef_time2: *const cef_time_t, + delta: *mut ::std::os::raw::c_longlong, + ) -> ::std::os::raw::c_int; +} +pub type DWORD = ::std::os::raw::c_ulong; +pub type UINT = ::std::os::raw::c_uint; +pub type UINT_PTR = ::std::os::raw::c_uint; +pub type LONG_PTR = ::std::os::raw::c_long; +pub type LONG = ::std::os::raw::c_long; +pub type WPARAM = UINT_PTR; +pub type LPARAM = LONG_PTR; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HINSTANCE__ { + pub unused: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_HINSTANCE__() { + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(HINSTANCE__)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(HINSTANCE__)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HINSTANCE__), + "::", + stringify!(unused) + ) + ); +} +pub type HINSTANCE = *mut HINSTANCE__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HWND__ { + pub unused: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_HWND__() { + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(HWND__)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(HWND__)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HWND__), + "::", + stringify!(unused) + ) + ); +} +pub type HWND = *mut HWND__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HICON__ { + pub unused: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_HICON__() { + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(HICON__)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(HICON__)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HICON__), + "::", + stringify!(unused) + ) + ); +} +pub type HICON = *mut HICON__; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct HMENU__ { + pub unused: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout_HMENU__() { + assert_eq!( + ::std::mem::size_of::(), + 4usize, + concat!("Size of: ", stringify!(HMENU__)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(HMENU__)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(HMENU__), + "::", + stringify!(unused) + ) + ); +} +pub type HMENU = *mut HMENU__; +pub type HCURSOR = HICON; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagPOINT { + pub x: LONG, + pub y: LONG, +} +#[test] +fn bindgen_test_layout_tagPOINT() { + assert_eq!( + ::std::mem::size_of::(), + 8usize, + concat!("Size of: ", stringify!(tagPOINT)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(tagPOINT)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(tagPOINT), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(tagPOINT), + "::", + stringify!(y) + ) + ); +} +pub type POINT = tagPOINT; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct tagMSG { + pub hwnd: HWND, + pub message: UINT, + pub wParam: WPARAM, + pub lParam: LPARAM, + pub time: DWORD, + pub pt: POINT, +} +#[test] +fn bindgen_test_layout_tagMSG() { + assert_eq!( + ::std::mem::size_of::(), + 28usize, + concat!("Size of: ", stringify!(tagMSG)) + ); + assert_eq!( + ::std::mem::align_of::(), + 4usize, + concat!("Alignment of ", stringify!(tagMSG)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).hwnd as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(hwnd) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).message as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(message) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).wParam as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(wParam) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).lParam as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(lParam) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).time as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(time) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::())).pt as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(tagMSG), + "::", + stringify!(pt) + ) + ); +} +pub type MSG = tagMSG; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_main_args_t { + pub instance: HINSTANCE, +} +#[test] +fn bindgen_test_layout__cef_main_args_t() { + assert_eq!( + ::std::mem::size_of::<_cef_main_args_t>(), + 4usize, + concat!("Size of: ", stringify!(_cef_main_args_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_main_args_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_main_args_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_main_args_t>())).instance as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_main_args_t), + "::", + stringify!(instance) + ) + ); +} +#[doc = ""] +pub type cef_main_args_t = _cef_main_args_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_window_info_t { + pub ex_style: DWORD, + pub window_name: cef_string_t, + pub style: DWORD, + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub width: ::std::os::raw::c_int, + pub height: ::std::os::raw::c_int, + pub parent_window: HWND, + pub menu: HMENU, + #[doc = ""] + pub windowless_rendering_enabled: ::std::os::raw::c_int, + #[doc = ""] + pub shared_texture_enabled: ::std::os::raw::c_int, + #[doc = ""] + pub external_begin_frame_enabled: ::std::os::raw::c_int, + #[doc = ""] + pub window: HWND, +} +#[test] +fn bindgen_test_layout__cef_window_info_t() { + assert_eq!( + ::std::mem::size_of::<_cef_window_info_t>(), + 60usize, + concat!("Size of: ", stringify!(_cef_window_info_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_window_info_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_window_info_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).ex_style as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(ex_style) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).window_name as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(window_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).style as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(style) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).x as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).y as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(y) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).width as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(width) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).height as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(height) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_window_info_t>())).parent_window as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(parent_window) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).menu as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_window_info_t>())).windowless_rendering_enabled as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(windowless_rendering_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_window_info_t>())).shared_texture_enabled as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(shared_texture_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_window_info_t>())).external_begin_frame_enabled as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(external_begin_frame_enabled) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).window as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_window_info_t), + "::", + stringify!(window) + ) + ); +} +#[doc = ""] +pub type cef_window_info_t = _cef_window_info_t; +pub type cef_color_t = uint32; +pub mod cef_log_severity_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const LOGSEVERITY_DEFAULT: Type = 0; + #[doc = ""] + pub const LOGSEVERITY_VERBOSE: Type = 1; + #[doc = ""] + pub const LOGSEVERITY_DEBUG: Type = 1; + #[doc = ""] + pub const LOGSEVERITY_INFO: Type = 2; + #[doc = ""] + pub const LOGSEVERITY_WARNING: Type = 3; + #[doc = ""] + pub const LOGSEVERITY_ERROR: Type = 4; + #[doc = ""] + pub const LOGSEVERITY_FATAL: Type = 5; + #[doc = ""] + pub const LOGSEVERITY_DISABLE: Type = 99; +} +pub mod cef_state_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const STATE_DEFAULT: Type = 0; + #[doc = ""] + pub const STATE_ENABLED: Type = 1; + #[doc = ""] + pub const STATE_DISABLED: Type = 2; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_settings_t { + #[doc = ""] + pub size: usize, + #[doc = ""] + pub no_sandbox: ::std::os::raw::c_int, + #[doc = ""] + pub browser_subprocess_path: cef_string_t, + #[doc = ""] + pub framework_dir_path: cef_string_t, + #[doc = ""] + pub main_bundle_path: cef_string_t, + #[doc = ""] + pub chrome_runtime: ::std::os::raw::c_int, + #[doc = ""] + pub multi_threaded_message_loop: ::std::os::raw::c_int, + #[doc = ""] + pub external_message_pump: ::std::os::raw::c_int, + #[doc = ""] + pub windowless_rendering_enabled: ::std::os::raw::c_int, + #[doc = ""] + pub command_line_args_disabled: ::std::os::raw::c_int, + #[doc = ""] + pub cache_path: cef_string_t, + #[doc = ""] + pub root_cache_path: cef_string_t, + #[doc = ""] + pub user_data_path: cef_string_t, + #[doc = ""] + pub persist_session_cookies: ::std::os::raw::c_int, + #[doc = ""] + pub persist_user_preferences: ::std::os::raw::c_int, + #[doc = ""] + pub user_agent: cef_string_t, + #[doc = ""] + pub product_version: cef_string_t, + #[doc = ""] + pub locale: cef_string_t, + #[doc = ""] + pub log_file: cef_string_t, + #[doc = ""] + pub log_severity: cef_log_severity_t::Type, + #[doc = ""] + pub javascript_flags: cef_string_t, + #[doc = ""] + pub resources_dir_path: cef_string_t, + #[doc = ""] + pub locales_dir_path: cef_string_t, + #[doc = ""] + pub pack_loading_disabled: ::std::os::raw::c_int, + #[doc = ""] + pub remote_debugging_port: ::std::os::raw::c_int, + #[doc = ""] + pub uncaught_exception_stack_size: ::std::os::raw::c_int, + #[doc = ""] + pub ignore_certificate_errors: ::std::os::raw::c_int, + #[doc = ""] + pub background_color: cef_color_t, + #[doc = ""] + pub accept_language_list: cef_string_t, + #[doc = ""] + pub application_client_id_for_file_scanning: cef_string_t, +} +#[test] +fn bindgen_test_layout__cef_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_settings_t>(), + 240usize, + concat!("Size of: ", stringify!(_cef_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_settings_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).size as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).no_sandbox as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(no_sandbox) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).browser_subprocess_path as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(browser_subprocess_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).framework_dir_path as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(framework_dir_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).main_bundle_path as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(main_bundle_path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).chrome_runtime as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(chrome_runtime) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).multi_threaded_message_loop as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(multi_threaded_message_loop) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).external_message_pump as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(external_message_pump) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).windowless_rendering_enabled as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(windowless_rendering_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).command_line_args_disabled as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(command_line_args_disabled) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).cache_path as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(cache_path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).root_cache_path as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(root_cache_path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).user_data_path as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(user_data_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).persist_session_cookies as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(persist_session_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).persist_user_preferences as *const _ + as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(persist_user_preferences) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).user_agent as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(user_agent) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).product_version as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(product_version) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).locale as *const _ as usize }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(locale) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).log_file as *const _ as usize }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(log_file) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).log_severity as *const _ as usize }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(log_severity) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).javascript_flags as *const _ as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(javascript_flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).resources_dir_path as *const _ as usize + }, + 172usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(resources_dir_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).locales_dir_path as *const _ as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(locales_dir_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).pack_loading_disabled as *const _ as usize + }, + 196usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(pack_loading_disabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).remote_debugging_port as *const _ as usize + }, + 200usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(remote_debugging_port) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).uncaught_exception_stack_size as *const _ + as usize + }, + 204usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(uncaught_exception_stack_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).ignore_certificate_errors as *const _ + as usize + }, + 208usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(ignore_certificate_errors) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).background_color as *const _ as usize + }, + 212usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(background_color) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).accept_language_list as *const _ as usize + }, + 216usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(accept_language_list) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_settings_t>())).application_client_id_for_file_scanning + as *const _ as usize + }, + 228usize, + concat!( + "Offset of field: ", + stringify!(_cef_settings_t), + "::", + stringify!(application_client_id_for_file_scanning) + ) + ); +} +#[doc = ""] +pub type cef_settings_t = _cef_settings_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_request_context_settings_t { + #[doc = ""] + pub size: usize, + #[doc = ""] + pub cache_path: cef_string_t, + #[doc = ""] + pub persist_session_cookies: ::std::os::raw::c_int, + #[doc = ""] + pub persist_user_preferences: ::std::os::raw::c_int, + #[doc = ""] + pub ignore_certificate_errors: ::std::os::raw::c_int, + #[doc = ""] + pub accept_language_list: cef_string_t, +} +#[test] +fn bindgen_test_layout__cef_request_context_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_request_context_settings_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_request_context_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_request_context_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_request_context_settings_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).size as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).cache_path as *const _ + as usize + }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(cache_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).persist_session_cookies + as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(persist_session_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).persist_user_preferences + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(persist_user_preferences) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).ignore_certificate_errors + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(ignore_certificate_errors) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_settings_t>())).accept_language_list + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_settings_t), + "::", + stringify!(accept_language_list) + ) + ); +} +#[doc = ""] +pub type cef_request_context_settings_t = _cef_request_context_settings_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_browser_settings_t { + #[doc = ""] + pub size: usize, + #[doc = ""] + pub windowless_frame_rate: ::std::os::raw::c_int, + #[doc = ""] + pub standard_font_family: cef_string_t, + pub fixed_font_family: cef_string_t, + pub serif_font_family: cef_string_t, + pub sans_serif_font_family: cef_string_t, + pub cursive_font_family: cef_string_t, + pub fantasy_font_family: cef_string_t, + pub default_font_size: ::std::os::raw::c_int, + pub default_fixed_font_size: ::std::os::raw::c_int, + pub minimum_font_size: ::std::os::raw::c_int, + pub minimum_logical_font_size: ::std::os::raw::c_int, + #[doc = ""] + pub default_encoding: cef_string_t, + #[doc = ""] + pub remote_fonts: cef_state_t::Type, + #[doc = ""] + pub javascript: cef_state_t::Type, + #[doc = ""] + pub javascript_close_windows: cef_state_t::Type, + #[doc = ""] + pub javascript_access_clipboard: cef_state_t::Type, + #[doc = ""] + pub javascript_dom_paste: cef_state_t::Type, + #[doc = ""] + pub plugins: cef_state_t::Type, + #[doc = ""] + pub universal_access_from_file_urls: cef_state_t::Type, + #[doc = ""] + pub file_access_from_file_urls: cef_state_t::Type, + #[doc = ""] + pub web_security: cef_state_t::Type, + #[doc = ""] + pub image_loading: cef_state_t::Type, + #[doc = ""] + pub image_shrink_standalone_to_fit: cef_state_t::Type, + #[doc = ""] + pub text_area_resize: cef_state_t::Type, + #[doc = ""] + pub tab_to_links: cef_state_t::Type, + #[doc = ""] + pub local_storage: cef_state_t::Type, + #[doc = ""] + pub databases: cef_state_t::Type, + #[doc = ""] + pub application_cache: cef_state_t::Type, + #[doc = ""] + pub webgl: cef_state_t::Type, + #[doc = ""] + pub background_color: cef_color_t, + #[doc = ""] + pub accept_language_list: cef_string_t, +} +#[test] +fn bindgen_test_layout__cef_browser_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_browser_settings_t>(), + 192usize, + concat!("Size of: ", stringify!(_cef_browser_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_browser_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_browser_settings_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).size as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).windowless_frame_rate as *const _ + as usize + }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(windowless_frame_rate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).standard_font_family as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(standard_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).fixed_font_family as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(fixed_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).serif_font_family as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(serif_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).sans_serif_font_family as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(sans_serif_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).cursive_font_family as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(cursive_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).fantasy_font_family as *const _ + as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(fantasy_font_family) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_font_size as *const _ + as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(default_font_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_fixed_font_size as *const _ + as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(default_fixed_font_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).minimum_font_size as *const _ + as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(minimum_font_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).minimum_logical_font_size + as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(minimum_logical_font_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_encoding as *const _ + as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(default_encoding) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).remote_fonts as *const _ as usize + }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(remote_fonts) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(javascript) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_close_windows as *const _ + as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(javascript_close_windows) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_access_clipboard + as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(javascript_access_clipboard) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_dom_paste as *const _ + as usize + }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(javascript_dom_paste) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).plugins as *const _ as usize }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(plugins) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).universal_access_from_file_urls + as *const _ as usize + }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(universal_access_from_file_urls) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).file_access_from_file_urls + as *const _ as usize + }, + 136usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(file_access_from_file_urls) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).web_security as *const _ as usize + }, + 140usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(web_security) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).image_loading as *const _ as usize + }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(image_loading) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).image_shrink_standalone_to_fit + as *const _ as usize + }, + 148usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(image_shrink_standalone_to_fit) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).text_area_resize as *const _ + as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(text_area_resize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).tab_to_links as *const _ as usize + }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(tab_to_links) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).local_storage as *const _ as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(local_storage) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).databases as *const _ as usize + }, + 164usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(databases) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).application_cache as *const _ + as usize + }, + 168usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(application_cache) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).webgl as *const _ as usize }, + 172usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(webgl) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).background_color as *const _ + as usize + }, + 176usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(background_color) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_settings_t>())).accept_language_list as *const _ + as usize + }, + 180usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_settings_t), + "::", + stringify!(accept_language_list) + ) + ); +} +#[doc = ""] +pub type cef_browser_settings_t = _cef_browser_settings_t; +pub mod cef_return_value_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const RV_CANCEL: Type = 0; + #[doc = ""] + pub const RV_CONTINUE: Type = 1; + #[doc = ""] + pub const RV_CONTINUE_ASYNC: Type = 2; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_urlparts_t { + #[doc = ""] + pub spec: cef_string_t, + #[doc = ""] + pub scheme: cef_string_t, + #[doc = ""] + pub username: cef_string_t, + #[doc = ""] + pub password: cef_string_t, + #[doc = ""] + pub host: cef_string_t, + #[doc = ""] + pub port: cef_string_t, + #[doc = ""] + pub origin: cef_string_t, + #[doc = ""] + pub path: cef_string_t, + #[doc = ""] + pub query: cef_string_t, + #[doc = ""] + pub fragment: cef_string_t, +} +#[test] +fn bindgen_test_layout__cef_urlparts_t() { + assert_eq!( + ::std::mem::size_of::<_cef_urlparts_t>(), + 120usize, + concat!("Size of: ", stringify!(_cef_urlparts_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_urlparts_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_urlparts_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).spec as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(spec) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).scheme as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(scheme) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).username as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(username) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).password as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(password) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).host as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(host) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).port as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(port) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).origin as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(origin) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).path as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).query as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(query) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).fragment as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_urlparts_t), + "::", + stringify!(fragment) + ) + ); +} +#[doc = ""] +pub type cef_urlparts_t = _cef_urlparts_t; +pub mod cef_cookie_priority_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_COOKIE_PRIORITY_LOW: Type = -1; + pub const CEF_COOKIE_PRIORITY_MEDIUM: Type = 0; + pub const CEF_COOKIE_PRIORITY_HIGH: Type = 1; +} +pub mod cef_cookie_same_site_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_COOKIE_SAME_SITE_UNSPECIFIED: Type = 0; + pub const CEF_COOKIE_SAME_SITE_NO_RESTRICTION: Type = 1; + pub const CEF_COOKIE_SAME_SITE_LAX_MODE: Type = 2; + pub const CEF_COOKIE_SAME_SITE_STRICT_MODE: Type = 3; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_cookie_t { + #[doc = ""] + pub name: cef_string_t, + #[doc = ""] + pub value: cef_string_t, + #[doc = ""] + pub domain: cef_string_t, + #[doc = ""] + pub path: cef_string_t, + #[doc = ""] + pub secure: ::std::os::raw::c_int, + #[doc = ""] + pub httponly: ::std::os::raw::c_int, + #[doc = ""] + pub creation: cef_time_t, + #[doc = ""] + pub last_access: cef_time_t, + #[doc = ""] + pub has_expires: ::std::os::raw::c_int, + pub expires: cef_time_t, + #[doc = ""] + pub same_site: cef_cookie_same_site_t::Type, + #[doc = ""] + pub priority: cef_cookie_priority_t::Type, +} +#[test] +fn bindgen_test_layout__cef_cookie_t() { + assert_eq!( + ::std::mem::size_of::<_cef_cookie_t>(), + 164usize, + concat!("Size of: ", stringify!(_cef_cookie_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_cookie_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_cookie_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).name as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).value as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).domain as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(domain) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).path as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).secure as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(secure) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).httponly as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(httponly) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).creation as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(creation) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).last_access as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(last_access) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).has_expires as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(has_expires) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).expires as *const _ as usize }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(expires) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).same_site as *const _ as usize }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(same_site) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).priority as *const _ as usize }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_t), + "::", + stringify!(priority) + ) + ); +} +#[doc = ""] +pub type cef_cookie_t = _cef_cookie_t; +pub mod cef_termination_status_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const TS_ABNORMAL_TERMINATION: Type = 0; + #[doc = ""] + pub const TS_PROCESS_WAS_KILLED: Type = 1; + #[doc = ""] + pub const TS_PROCESS_CRASHED: Type = 2; + #[doc = ""] + pub const TS_PROCESS_OOM: Type = 3; +} +pub mod cef_path_key_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const PK_DIR_CURRENT: Type = 0; + #[doc = ""] + pub const PK_DIR_EXE: Type = 1; + #[doc = ""] + pub const PK_DIR_MODULE: Type = 2; + #[doc = ""] + pub const PK_DIR_TEMP: Type = 3; + #[doc = ""] + pub const PK_FILE_EXE: Type = 4; + #[doc = ""] + pub const PK_FILE_MODULE: Type = 5; + #[doc = ""] + pub const PK_LOCAL_APP_DATA: Type = 6; + #[doc = ""] + pub const PK_USER_DATA: Type = 7; + #[doc = ""] + pub const PK_DIR_RESOURCES: Type = 8; +} +pub mod cef_storage_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const ST_LOCALSTORAGE: Type = 0; + pub const ST_SESSIONSTORAGE: Type = 1; +} +pub mod cef_errorcode_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const ERR_NONE: Type = 0; + pub const ERR_IO_PENDING: Type = -1; + pub const ERR_FAILED: Type = -2; + pub const ERR_ABORTED: Type = -3; + pub const ERR_INVALID_ARGUMENT: Type = -4; + pub const ERR_INVALID_HANDLE: Type = -5; + pub const ERR_FILE_NOT_FOUND: Type = -6; + pub const ERR_TIMED_OUT: Type = -7; + pub const ERR_FILE_TOO_BIG: Type = -8; + pub const ERR_UNEXPECTED: Type = -9; + pub const ERR_ACCESS_DENIED: Type = -10; + pub const ERR_NOT_IMPLEMENTED: Type = -11; + pub const ERR_INSUFFICIENT_RESOURCES: Type = -12; + pub const ERR_OUT_OF_MEMORY: Type = -13; + pub const ERR_UPLOAD_FILE_CHANGED: Type = -14; + pub const ERR_SOCKET_NOT_CONNECTED: Type = -15; + pub const ERR_FILE_EXISTS: Type = -16; + pub const ERR_FILE_PATH_TOO_LONG: Type = -17; + pub const ERR_FILE_NO_SPACE: Type = -18; + pub const ERR_FILE_VIRUS_INFECTED: Type = -19; + pub const ERR_BLOCKED_BY_CLIENT: Type = -20; + pub const ERR_NETWORK_CHANGED: Type = -21; + pub const ERR_BLOCKED_BY_ADMINISTRATOR: Type = -22; + pub const ERR_SOCKET_IS_CONNECTED: Type = -23; + pub const ERR_BLOCKED_ENROLLMENT_CHECK_PENDING: Type = -24; + pub const ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED: Type = -25; + pub const ERR_CONTEXT_SHUT_DOWN: Type = -26; + pub const ERR_BLOCKED_BY_RESPONSE: Type = -27; + pub const ERR_CLEARTEXT_NOT_PERMITTED: Type = -29; + pub const ERR_BLOCKED_BY_CSP: Type = -30; + pub const ERR_H2_OR_QUIC_REQUIRED: Type = -31; + pub const ERR_CONNECTION_CLOSED: Type = -100; + pub const ERR_CONNECTION_RESET: Type = -101; + pub const ERR_CONNECTION_REFUSED: Type = -102; + pub const ERR_CONNECTION_ABORTED: Type = -103; + pub const ERR_CONNECTION_FAILED: Type = -104; + pub const ERR_NAME_NOT_RESOLVED: Type = -105; + pub const ERR_INTERNET_DISCONNECTED: Type = -106; + pub const ERR_SSL_PROTOCOL_ERROR: Type = -107; + pub const ERR_ADDRESS_INVALID: Type = -108; + pub const ERR_ADDRESS_UNREACHABLE: Type = -109; + pub const ERR_SSL_CLIENT_AUTH_CERT_NEEDED: Type = -110; + pub const ERR_TUNNEL_CONNECTION_FAILED: Type = -111; + pub const ERR_NO_SSL_VERSIONS_ENABLED: Type = -112; + pub const ERR_SSL_VERSION_OR_CIPHER_MISMATCH: Type = -113; + pub const ERR_SSL_RENEGOTIATION_REQUESTED: Type = -114; + pub const ERR_PROXY_AUTH_UNSUPPORTED: Type = -115; + pub const ERR_CERT_ERROR_IN_SSL_RENEGOTIATION: Type = -116; + pub const ERR_BAD_SSL_CLIENT_AUTH_CERT: Type = -117; + pub const ERR_CONNECTION_TIMED_OUT: Type = -118; + pub const ERR_HOST_RESOLVER_QUEUE_TOO_LARGE: Type = -119; + pub const ERR_SOCKS_CONNECTION_FAILED: Type = -120; + pub const ERR_SOCKS_CONNECTION_HOST_UNREACHABLE: Type = -121; + pub const ERR_ALPN_NEGOTIATION_FAILED: Type = -122; + pub const ERR_SSL_NO_RENEGOTIATION: Type = -123; + pub const ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES: Type = -124; + pub const ERR_SSL_DECOMPRESSION_FAILURE_ALERT: Type = -125; + pub const ERR_SSL_BAD_RECORD_MAC_ALERT: Type = -126; + pub const ERR_PROXY_AUTH_REQUESTED: Type = -127; + pub const ERR_PROXY_CONNECTION_FAILED: Type = -130; + pub const ERR_MANDATORY_PROXY_CONFIGURATION_FAILED: Type = -131; + pub const ERR_PRECONNECT_MAX_SOCKET_LIMIT: Type = -133; + pub const ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED: Type = -134; + pub const ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY: Type = -135; + pub const ERR_PROXY_CERTIFICATE_INVALID: Type = -136; + pub const ERR_NAME_RESOLUTION_FAILED: Type = -137; + pub const ERR_NETWORK_ACCESS_DENIED: Type = -138; + pub const ERR_TEMPORARILY_THROTTLED: Type = -139; + pub const ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT: Type = -140; + pub const ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED: Type = -141; + pub const ERR_MSG_TOO_BIG: Type = -142; + pub const ERR_WS_PROTOCOL_ERROR: Type = -145; + pub const ERR_ADDRESS_IN_USE: Type = -147; + pub const ERR_SSL_HANDSHAKE_NOT_COMPLETED: Type = -148; + pub const ERR_SSL_BAD_PEER_PUBLIC_KEY: Type = -149; + pub const ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN: Type = -150; + pub const ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED: Type = -151; + pub const ERR_SSL_DECRYPT_ERROR_ALERT: Type = -153; + pub const ERR_WS_THROTTLE_QUEUE_TOO_LARGE: Type = -154; + pub const ERR_SSL_SERVER_CERT_CHANGED: Type = -156; + pub const ERR_SSL_UNRECOGNIZED_NAME_ALERT: Type = -159; + pub const ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR: Type = -160; + pub const ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR: Type = -161; + pub const ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE: Type = -162; + pub const ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE: Type = -163; + pub const ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT: Type = -164; + pub const ERR_ICANN_NAME_COLLISION: Type = -166; + pub const ERR_SSL_SERVER_CERT_BAD_FORMAT: Type = -167; + pub const ERR_CT_STH_PARSING_FAILED: Type = -168; + pub const ERR_CT_STH_INCOMPLETE: Type = -169; + pub const ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH: Type = -170; + pub const ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED: Type = -171; + pub const ERR_SSL_OBSOLETE_CIPHER: Type = -172; + pub const ERR_WS_UPGRADE: Type = -173; + pub const ERR_READ_IF_READY_NOT_IMPLEMENTED: Type = -174; + pub const ERR_NO_BUFFER_SPACE: Type = -176; + pub const ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS: Type = -177; + pub const ERR_EARLY_DATA_REJECTED: Type = -178; + pub const ERR_WRONG_VERSION_ON_EARLY_DATA: Type = -179; + pub const ERR_TLS13_DOWNGRADE_DETECTED: Type = -180; + pub const ERR_SSL_KEY_USAGE_INCOMPATIBLE: Type = -181; + pub const ERR_CERT_COMMON_NAME_INVALID: Type = -200; + pub const ERR_CERT_DATE_INVALID: Type = -201; + pub const ERR_CERT_AUTHORITY_INVALID: Type = -202; + pub const ERR_CERT_CONTAINS_ERRORS: Type = -203; + pub const ERR_CERT_NO_REVOCATION_MECHANISM: Type = -204; + pub const ERR_CERT_UNABLE_TO_CHECK_REVOCATION: Type = -205; + pub const ERR_CERT_REVOKED: Type = -206; + pub const ERR_CERT_INVALID: Type = -207; + pub const ERR_CERT_WEAK_SIGNATURE_ALGORITHM: Type = -208; + pub const ERR_CERT_NON_UNIQUE_NAME: Type = -210; + pub const ERR_CERT_WEAK_KEY: Type = -211; + pub const ERR_CERT_NAME_CONSTRAINT_VIOLATION: Type = -212; + pub const ERR_CERT_VALIDITY_TOO_LONG: Type = -213; + pub const ERR_CERTIFICATE_TRANSPARENCY_REQUIRED: Type = -214; + pub const ERR_CERT_SYMANTEC_LEGACY: Type = -215; + pub const ERR_CERT_KNOWN_INTERCEPTION_BLOCKED: Type = -217; + pub const ERR_SSL_OBSOLETE_VERSION: Type = -218; + pub const ERR_CERT_END: Type = -219; + pub const ERR_INVALID_URL: Type = -300; + pub const ERR_DISALLOWED_URL_SCHEME: Type = -301; + pub const ERR_UNKNOWN_URL_SCHEME: Type = -302; + pub const ERR_INVALID_REDIRECT: Type = -303; + pub const ERR_TOO_MANY_REDIRECTS: Type = -310; + pub const ERR_UNSAFE_REDIRECT: Type = -311; + pub const ERR_UNSAFE_PORT: Type = -312; + pub const ERR_INVALID_RESPONSE: Type = -320; + pub const ERR_INVALID_CHUNKED_ENCODING: Type = -321; + pub const ERR_METHOD_NOT_SUPPORTED: Type = -322; + pub const ERR_UNEXPECTED_PROXY_AUTH: Type = -323; + pub const ERR_EMPTY_RESPONSE: Type = -324; + pub const ERR_RESPONSE_HEADERS_TOO_BIG: Type = -325; + pub const ERR_PAC_SCRIPT_FAILED: Type = -327; + pub const ERR_REQUEST_RANGE_NOT_SATISFIABLE: Type = -328; + pub const ERR_MALFORMED_IDENTITY: Type = -329; + pub const ERR_CONTENT_DECODING_FAILED: Type = -330; + pub const ERR_NETWORK_IO_SUSPENDED: Type = -331; + pub const ERR_SYN_REPLY_NOT_RECEIVED: Type = -332; + pub const ERR_ENCODING_CONVERSION_FAILED: Type = -333; + pub const ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT: Type = -334; + pub const ERR_NO_SUPPORTED_PROXIES: Type = -336; + pub const ERR_HTTP2_PROTOCOL_ERROR: Type = -337; + pub const ERR_INVALID_AUTH_CREDENTIALS: Type = -338; + pub const ERR_UNSUPPORTED_AUTH_SCHEME: Type = -339; + pub const ERR_ENCODING_DETECTION_FAILED: Type = -340; + pub const ERR_MISSING_AUTH_CREDENTIALS: Type = -341; + pub const ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS: Type = -342; + pub const ERR_MISCONFIGURED_AUTH_ENVIRONMENT: Type = -343; + pub const ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS: Type = -344; + pub const ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN: Type = -345; + pub const ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH: Type = -346; + pub const ERR_INCOMPLETE_HTTP2_HEADERS: Type = -347; + pub const ERR_PAC_NOT_IN_DHCP: Type = -348; + pub const ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION: Type = -349; + pub const ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION: Type = -350; + pub const ERR_HTTP2_SERVER_REFUSED_STREAM: Type = -351; + pub const ERR_HTTP2_PING_FAILED: Type = -352; + pub const ERR_CONTENT_LENGTH_MISMATCH: Type = -354; + pub const ERR_INCOMPLETE_CHUNKED_ENCODING: Type = -355; + pub const ERR_QUIC_PROTOCOL_ERROR: Type = -356; + pub const ERR_RESPONSE_HEADERS_TRUNCATED: Type = -357; + pub const ERR_QUIC_HANDSHAKE_FAILED: Type = -358; + pub const ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY: Type = -360; + pub const ERR_HTTP2_FLOW_CONTROL_ERROR: Type = -361; + pub const ERR_HTTP2_FRAME_SIZE_ERROR: Type = -362; + pub const ERR_HTTP2_COMPRESSION_ERROR: Type = -363; + pub const ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION: Type = -364; + pub const ERR_HTTP_1_1_REQUIRED: Type = -365; + pub const ERR_PROXY_HTTP_1_1_REQUIRED: Type = -366; + pub const ERR_PAC_SCRIPT_TERMINATED: Type = -367; + pub const ERR_INVALID_HTTP_RESPONSE: Type = -370; + pub const ERR_CONTENT_DECODING_INIT_FAILED: Type = -371; + pub const ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED: Type = -372; + pub const ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE: Type = -373; + pub const ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER: Type = -374; + pub const ERR_TOO_MANY_RETRIES: Type = -375; + pub const ERR_HTTP2_STREAM_CLOSED: Type = -376; + pub const ERR_HTTP2_CLIENT_REFUSED_STREAM: Type = -377; + pub const ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH: Type = -378; + pub const ERR_HTTP_RESPONSE_CODE_FAILURE: Type = -379; + pub const ERR_QUIC_CERT_ROOT_NOT_KNOWN: Type = -380; + pub const ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED: Type = -381; + pub const ERR_CACHE_MISS: Type = -400; + pub const ERR_CACHE_READ_FAILURE: Type = -401; + pub const ERR_CACHE_WRITE_FAILURE: Type = -402; + pub const ERR_CACHE_OPERATION_NOT_SUPPORTED: Type = -403; + pub const ERR_CACHE_OPEN_FAILURE: Type = -404; + pub const ERR_CACHE_CREATE_FAILURE: Type = -405; + pub const ERR_CACHE_RACE: Type = -406; + pub const ERR_CACHE_CHECKSUM_READ_FAILURE: Type = -407; + pub const ERR_CACHE_CHECKSUM_MISMATCH: Type = -408; + pub const ERR_CACHE_LOCK_TIMEOUT: Type = -409; + pub const ERR_CACHE_AUTH_FAILURE_AFTER_READ: Type = -410; + pub const ERR_CACHE_ENTRY_NOT_SUITABLE: Type = -411; + pub const ERR_CACHE_DOOM_FAILURE: Type = -412; + pub const ERR_CACHE_OPEN_OR_CREATE_FAILURE: Type = -413; + pub const ERR_INSECURE_RESPONSE: Type = -501; + pub const ERR_NO_PRIVATE_KEY_FOR_CERT: Type = -502; + pub const ERR_ADD_USER_CERT_FAILED: Type = -503; + pub const ERR_INVALID_SIGNED_EXCHANGE: Type = -504; + pub const ERR_INVALID_WEB_BUNDLE: Type = -505; + pub const ERR_TRUST_TOKEN_OPERATION_FAILED: Type = -506; + pub const ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST: Type = -507; + pub const ERR_FTP_FAILED: Type = -601; + pub const ERR_FTP_SERVICE_UNAVAILABLE: Type = -602; + pub const ERR_FTP_TRANSFER_ABORTED: Type = -603; + pub const ERR_FTP_FILE_BUSY: Type = -604; + pub const ERR_FTP_SYNTAX_ERROR: Type = -605; + pub const ERR_FTP_COMMAND_NOT_SUPPORTED: Type = -606; + pub const ERR_FTP_BAD_COMMAND_SEQUENCE: Type = -607; + pub const ERR_PKCS12_IMPORT_BAD_PASSWORD: Type = -701; + pub const ERR_PKCS12_IMPORT_FAILED: Type = -702; + pub const ERR_IMPORT_CA_CERT_NOT_CA: Type = -703; + pub const ERR_IMPORT_CERT_ALREADY_EXISTS: Type = -704; + pub const ERR_IMPORT_CA_CERT_FAILED: Type = -705; + pub const ERR_IMPORT_SERVER_CERT_FAILED: Type = -706; + pub const ERR_PKCS12_IMPORT_INVALID_MAC: Type = -707; + pub const ERR_PKCS12_IMPORT_INVALID_FILE: Type = -708; + pub const ERR_PKCS12_IMPORT_UNSUPPORTED: Type = -709; + pub const ERR_KEY_GENERATION_FAILED: Type = -710; + pub const ERR_PRIVATE_KEY_EXPORT_FAILED: Type = -712; + pub const ERR_SELF_SIGNED_CERT_GENERATION_FAILED: Type = -713; + pub const ERR_CERT_DATABASE_CHANGED: Type = -714; + pub const ERR_DNS_MALFORMED_RESPONSE: Type = -800; + pub const ERR_DNS_SERVER_REQUIRES_TCP: Type = -801; + pub const ERR_DNS_SERVER_FAILED: Type = -802; + pub const ERR_DNS_TIMED_OUT: Type = -803; + pub const ERR_DNS_CACHE_MISS: Type = -804; + pub const ERR_DNS_SEARCH_EMPTY: Type = -805; + pub const ERR_DNS_SORT_ERROR: Type = -806; + pub const ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED: Type = -808; +} +pub mod cef_cert_status_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CERT_STATUS_NONE: Type = 0; + pub const CERT_STATUS_COMMON_NAME_INVALID: Type = 1; + pub const CERT_STATUS_DATE_INVALID: Type = 2; + pub const CERT_STATUS_AUTHORITY_INVALID: Type = 4; + pub const CERT_STATUS_NO_REVOCATION_MECHANISM: Type = 16; + pub const CERT_STATUS_UNABLE_TO_CHECK_REVOCATION: Type = 32; + pub const CERT_STATUS_REVOKED: Type = 64; + pub const CERT_STATUS_INVALID: Type = 128; + pub const CERT_STATUS_WEAK_SIGNATURE_ALGORITHM: Type = 256; + pub const CERT_STATUS_NON_UNIQUE_NAME: Type = 1024; + pub const CERT_STATUS_WEAK_KEY: Type = 2048; + pub const CERT_STATUS_PINNED_KEY_MISSING: Type = 8192; + pub const CERT_STATUS_NAME_CONSTRAINT_VIOLATION: Type = 16384; + pub const CERT_STATUS_VALIDITY_TOO_LONG: Type = 32768; + pub const CERT_STATUS_IS_EV: Type = 65536; + pub const CERT_STATUS_REV_CHECKING_ENABLED: Type = 131072; + pub const CERT_STATUS_SHA1_SIGNATURE_PRESENT: Type = 524288; + pub const CERT_STATUS_CT_COMPLIANCE_FAILED: Type = 1048576; +} +pub mod cef_window_open_disposition_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const WOD_UNKNOWN: Type = 0; + pub const WOD_CURRENT_TAB: Type = 1; + pub const WOD_SINGLETON_TAB: Type = 2; + pub const WOD_NEW_FOREGROUND_TAB: Type = 3; + pub const WOD_NEW_BACKGROUND_TAB: Type = 4; + pub const WOD_NEW_POPUP: Type = 5; + pub const WOD_NEW_WINDOW: Type = 6; + pub const WOD_SAVE_TO_DISK: Type = 7; + pub const WOD_OFF_THE_RECORD: Type = 8; + pub const WOD_IGNORE_ACTION: Type = 9; +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_NONE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(0); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_COPY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(1); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_LINK: cef_drag_operations_mask_t = cef_drag_operations_mask_t(2); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_GENERIC: cef_drag_operations_mask_t = cef_drag_operations_mask_t(4); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_PRIVATE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(8); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_MOVE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(16); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_DELETE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(32); +} +impl cef_drag_operations_mask_t { + pub const DRAG_OPERATION_EVERY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(-1); +} +impl ::std::ops::BitOr for cef_drag_operations_mask_t { + type Output = Self; + #[inline] + fn bitor(self, other: Self) -> Self { + cef_drag_operations_mask_t(self.0 | other.0) + } +} +impl ::std::ops::BitOrAssign for cef_drag_operations_mask_t { + #[inline] + fn bitor_assign(&mut self, rhs: cef_drag_operations_mask_t) { + self.0 |= rhs.0; + } +} +impl ::std::ops::BitAnd for cef_drag_operations_mask_t { + type Output = Self; + #[inline] + fn bitand(self, other: Self) -> Self { + cef_drag_operations_mask_t(self.0 & other.0) + } +} +impl ::std::ops::BitAndAssign for cef_drag_operations_mask_t { + #[inline] + fn bitand_assign(&mut self, rhs: cef_drag_operations_mask_t) { + self.0 &= rhs.0; + } +} +#[repr(transparent)] +#[doc = ""] +#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] +pub struct cef_drag_operations_mask_t(pub ::std::os::raw::c_int); +pub mod cef_text_input_mode_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_TEXT_INPUT_MODE_DEFAULT: Type = 0; + pub const CEF_TEXT_INPUT_MODE_NONE: Type = 1; + pub const CEF_TEXT_INPUT_MODE_TEXT: Type = 2; + pub const CEF_TEXT_INPUT_MODE_TEL: Type = 3; + pub const CEF_TEXT_INPUT_MODE_URL: Type = 4; + pub const CEF_TEXT_INPUT_MODE_EMAIL: Type = 5; + pub const CEF_TEXT_INPUT_MODE_NUMERIC: Type = 6; + pub const CEF_TEXT_INPUT_MODE_DECIMAL: Type = 7; + pub const CEF_TEXT_INPUT_MODE_SEARCH: Type = 8; + pub const CEF_TEXT_INPUT_MODE_MAX: Type = 8; +} +pub mod cef_v8_accesscontrol_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const V8_ACCESS_CONTROL_DEFAULT: Type = 0; + pub const V8_ACCESS_CONTROL_ALL_CAN_READ: Type = 1; + pub const V8_ACCESS_CONTROL_ALL_CAN_WRITE: Type = 2; + pub const V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING: Type = 4; +} +pub mod cef_v8_propertyattribute_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const V8_PROPERTY_ATTRIBUTE_NONE: Type = 0; + pub const V8_PROPERTY_ATTRIBUTE_READONLY: Type = 1; + pub const V8_PROPERTY_ATTRIBUTE_DONTENUM: Type = 2; + pub const V8_PROPERTY_ATTRIBUTE_DONTDELETE: Type = 4; +} +pub mod cef_postdataelement_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const PDE_TYPE_EMPTY: Type = 0; + pub const PDE_TYPE_BYTES: Type = 1; + pub const PDE_TYPE_FILE: Type = 2; +} +pub mod cef_resource_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const RT_MAIN_FRAME: Type = 0; + #[doc = ""] + pub const RT_SUB_FRAME: Type = 1; + #[doc = ""] + pub const RT_STYLESHEET: Type = 2; + #[doc = ""] + pub const RT_SCRIPT: Type = 3; + #[doc = ""] + pub const RT_IMAGE: Type = 4; + #[doc = ""] + pub const RT_FONT_RESOURCE: Type = 5; + #[doc = ""] + pub const RT_SUB_RESOURCE: Type = 6; + #[doc = ""] + pub const RT_OBJECT: Type = 7; + #[doc = ""] + pub const RT_MEDIA: Type = 8; + #[doc = ""] + pub const RT_WORKER: Type = 9; + #[doc = ""] + pub const RT_SHARED_WORKER: Type = 10; + #[doc = ""] + pub const RT_PREFETCH: Type = 11; + #[doc = ""] + pub const RT_FAVICON: Type = 12; + #[doc = ""] + pub const RT_XHR: Type = 13; + #[doc = ""] + pub const RT_PING: Type = 14; + #[doc = ""] + pub const RT_SERVICE_WORKER: Type = 15; + #[doc = ""] + pub const RT_CSP_REPORT: Type = 16; + #[doc = ""] + pub const RT_PLUGIN_RESOURCE: Type = 17; +} +pub mod cef_transition_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const TT_LINK: Type = 0; + #[doc = ""] + pub const TT_EXPLICIT: Type = 1; + #[doc = ""] + pub const TT_AUTO_SUBFRAME: Type = 3; + #[doc = ""] + pub const TT_MANUAL_SUBFRAME: Type = 4; + #[doc = ""] + pub const TT_FORM_SUBMIT: Type = 7; + #[doc = ""] + pub const TT_RELOAD: Type = 8; + #[doc = ""] + pub const TT_SOURCE_MASK: Type = 255; + #[doc = ""] + pub const TT_BLOCKED_FLAG: Type = 8388608; + #[doc = ""] + pub const TT_FORWARD_BACK_FLAG: Type = 16777216; + #[doc = ""] + pub const TT_DIRECT_LOAD_FLAG: Type = 33554432; + #[doc = ""] + pub const TT_CHAIN_START_FLAG: Type = 268435456; + #[doc = ""] + pub const TT_CHAIN_END_FLAG: Type = 536870912; + #[doc = ""] + pub const TT_CLIENT_REDIRECT_FLAG: Type = 1073741824; + #[doc = ""] + pub const TT_SERVER_REDIRECT_FLAG: Type = -2147483648; + #[doc = ""] + pub const TT_IS_REDIRECT_MASK: Type = -1073741824; + #[doc = ""] + pub const TT_QUALIFIER_MASK: Type = -256; +} +pub mod cef_urlrequest_flags_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const UR_FLAG_NONE: Type = 0; + #[doc = ""] + pub const UR_FLAG_SKIP_CACHE: Type = 1; + #[doc = ""] + pub const UR_FLAG_ONLY_FROM_CACHE: Type = 2; + #[doc = ""] + pub const UR_FLAG_DISABLE_CACHE: Type = 4; + #[doc = ""] + pub const UR_FLAG_ALLOW_STORED_CREDENTIALS: Type = 8; + #[doc = ""] + pub const UR_FLAG_REPORT_UPLOAD_PROGRESS: Type = 16; + #[doc = ""] + pub const UR_FLAG_NO_DOWNLOAD_DATA: Type = 32; + #[doc = ""] + pub const UR_FLAG_NO_RETRY_ON_5XX: Type = 64; + #[doc = ""] + pub const UR_FLAG_STOP_ON_REDIRECT: Type = 128; +} +pub mod cef_urlrequest_status_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const UR_UNKNOWN: Type = 0; + #[doc = ""] + pub const UR_SUCCESS: Type = 1; + #[doc = ""] + pub const UR_IO_PENDING: Type = 2; + #[doc = ""] + pub const UR_CANCELED: Type = 3; + #[doc = ""] + pub const UR_FAILED: Type = 4; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_point_t { + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_point_t() { + assert_eq!( + ::std::mem::size_of::<_cef_point_t>(), + 8usize, + concat!("Size of: ", stringify!(_cef_point_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_point_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_point_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_point_t>())).x as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_point_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_point_t>())).y as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_point_t), + "::", + stringify!(y) + ) + ); +} +#[doc = ""] +pub type cef_point_t = _cef_point_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_rect_t { + pub x: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub width: ::std::os::raw::c_int, + pub height: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_rect_t() { + assert_eq!( + ::std::mem::size_of::<_cef_rect_t>(), + 16usize, + concat!("Size of: ", stringify!(_cef_rect_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_rect_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_rect_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).x as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_rect_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).y as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_rect_t), + "::", + stringify!(y) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).width as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_rect_t), + "::", + stringify!(width) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).height as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_rect_t), + "::", + stringify!(height) + ) + ); +} +#[doc = ""] +pub type cef_rect_t = _cef_rect_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_size_t { + pub width: ::std::os::raw::c_int, + pub height: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_size_t() { + assert_eq!( + ::std::mem::size_of::<_cef_size_t>(), + 8usize, + concat!("Size of: ", stringify!(_cef_size_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_size_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_size_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_size_t>())).width as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_size_t), + "::", + stringify!(width) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_size_t>())).height as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_size_t), + "::", + stringify!(height) + ) + ); +} +#[doc = ""] +pub type cef_size_t = _cef_size_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_range_t { + pub from: ::std::os::raw::c_int, + pub to: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_range_t() { + assert_eq!( + ::std::mem::size_of::<_cef_range_t>(), + 8usize, + concat!("Size of: ", stringify!(_cef_range_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_range_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_range_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_range_t>())).from as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_range_t), + "::", + stringify!(from) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_range_t>())).to as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_range_t), + "::", + stringify!(to) + ) + ); +} +#[doc = ""] +pub type cef_range_t = _cef_range_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_insets_t { + pub top: ::std::os::raw::c_int, + pub left: ::std::os::raw::c_int, + pub bottom: ::std::os::raw::c_int, + pub right: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_insets_t() { + assert_eq!( + ::std::mem::size_of::<_cef_insets_t>(), + 16usize, + concat!("Size of: ", stringify!(_cef_insets_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_insets_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_insets_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).top as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_insets_t), + "::", + stringify!(top) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).left as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_insets_t), + "::", + stringify!(left) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).bottom as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_insets_t), + "::", + stringify!(bottom) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).right as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_insets_t), + "::", + stringify!(right) + ) + ); +} +#[doc = ""] +pub type cef_insets_t = _cef_insets_t; +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_draggable_region_t { + #[doc = ""] + pub bounds: cef_rect_t, + #[doc = ""] + pub draggable: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_draggable_region_t() { + assert_eq!( + ::std::mem::size_of::<_cef_draggable_region_t>(), + 20usize, + concat!("Size of: ", stringify!(_cef_draggable_region_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_draggable_region_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_draggable_region_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_draggable_region_t>())).bounds as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_draggable_region_t), + "::", + stringify!(bounds) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_draggable_region_t>())).draggable as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_draggable_region_t), + "::", + stringify!(draggable) + ) + ); +} +#[doc = ""] +pub type cef_draggable_region_t = _cef_draggable_region_t; +pub mod cef_process_id_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const PID_BROWSER: Type = 0; + #[doc = ""] + pub const PID_RENDERER: Type = 1; +} +pub mod cef_thread_id_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const TID_UI: Type = 0; + #[doc = ""] + pub const TID_FILE_BACKGROUND: Type = 1; + #[doc = ""] + pub const TID_FILE: Type = 1; + #[doc = ""] + pub const TID_FILE_USER_VISIBLE: Type = 2; + #[doc = ""] + pub const TID_FILE_USER_BLOCKING: Type = 3; + #[doc = ""] + pub const TID_PROCESS_LAUNCHER: Type = 4; + #[doc = ""] + pub const TID_IO: Type = 5; + #[doc = ""] + pub const TID_RENDERER: Type = 6; +} +pub mod cef_thread_priority_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const TP_BACKGROUND: Type = 0; + #[doc = ""] + pub const TP_NORMAL: Type = 1; + #[doc = ""] + pub const TP_DISPLAY: Type = 2; + #[doc = ""] + pub const TP_REALTIME_AUDIO: Type = 3; +} +pub mod cef_message_loop_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const ML_TYPE_DEFAULT: Type = 0; + #[doc = ""] + pub const ML_TYPE_UI: Type = 1; + #[doc = ""] + pub const ML_TYPE_IO: Type = 2; +} +pub mod cef_com_init_mode_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const COM_INIT_MODE_NONE: Type = 0; + #[doc = ""] + pub const COM_INIT_MODE_STA: Type = 1; + #[doc = ""] + pub const COM_INIT_MODE_MTA: Type = 2; +} +pub mod cef_value_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const VTYPE_INVALID: Type = 0; + pub const VTYPE_NULL: Type = 1; + pub const VTYPE_BOOL: Type = 2; + pub const VTYPE_INT: Type = 3; + pub const VTYPE_DOUBLE: Type = 4; + pub const VTYPE_STRING: Type = 5; + pub const VTYPE_BINARY: Type = 6; + pub const VTYPE_DICTIONARY: Type = 7; + pub const VTYPE_LIST: Type = 8; +} +pub mod cef_jsdialog_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const JSDIALOGTYPE_ALERT: Type = 0; + pub const JSDIALOGTYPE_CONFIRM: Type = 1; + pub const JSDIALOGTYPE_PROMPT: Type = 2; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_screen_info_t { + #[doc = ""] + pub device_scale_factor: f32, + #[doc = ""] + pub depth: ::std::os::raw::c_int, + #[doc = ""] + pub depth_per_component: ::std::os::raw::c_int, + #[doc = ""] + pub is_monochrome: ::std::os::raw::c_int, + #[doc = ""] + pub rect: cef_rect_t, + #[doc = ""] + pub available_rect: cef_rect_t, +} +#[test] +fn bindgen_test_layout__cef_screen_info_t() { + assert_eq!( + ::std::mem::size_of::<_cef_screen_info_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_screen_info_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_screen_info_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_screen_info_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_screen_info_t>())).device_scale_factor as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(device_scale_factor) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_screen_info_t>())).depth as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(depth) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_screen_info_t>())).depth_per_component as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(depth_per_component) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_screen_info_t>())).is_monochrome as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(is_monochrome) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_screen_info_t>())).rect as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(rect) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_screen_info_t>())).available_rect as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_screen_info_t), + "::", + stringify!(available_rect) + ) + ); +} +#[doc = ""] +pub type cef_screen_info_t = _cef_screen_info_t; +pub mod cef_menu_id_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const MENU_ID_BACK: Type = 100; + pub const MENU_ID_FORWARD: Type = 101; + pub const MENU_ID_RELOAD: Type = 102; + pub const MENU_ID_RELOAD_NOCACHE: Type = 103; + pub const MENU_ID_STOPLOAD: Type = 104; + pub const MENU_ID_UNDO: Type = 110; + pub const MENU_ID_REDO: Type = 111; + pub const MENU_ID_CUT: Type = 112; + pub const MENU_ID_COPY: Type = 113; + pub const MENU_ID_PASTE: Type = 114; + pub const MENU_ID_DELETE: Type = 115; + pub const MENU_ID_SELECT_ALL: Type = 116; + pub const MENU_ID_FIND: Type = 130; + pub const MENU_ID_PRINT: Type = 131; + pub const MENU_ID_VIEW_SOURCE: Type = 132; + pub const MENU_ID_SPELLCHECK_SUGGESTION_0: Type = 200; + pub const MENU_ID_SPELLCHECK_SUGGESTION_1: Type = 201; + pub const MENU_ID_SPELLCHECK_SUGGESTION_2: Type = 202; + pub const MENU_ID_SPELLCHECK_SUGGESTION_3: Type = 203; + pub const MENU_ID_SPELLCHECK_SUGGESTION_4: Type = 204; + pub const MENU_ID_SPELLCHECK_SUGGESTION_LAST: Type = 204; + pub const MENU_ID_NO_SPELLING_SUGGESTIONS: Type = 205; + pub const MENU_ID_ADD_TO_DICTIONARY: Type = 206; + pub const MENU_ID_CUSTOM_FIRST: Type = 220; + pub const MENU_ID_CUSTOM_LAST: Type = 250; + pub const MENU_ID_USER_FIRST: Type = 26500; + pub const MENU_ID_USER_LAST: Type = 28500; +} +pub mod cef_mouse_button_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const MBT_LEFT: Type = 0; + pub const MBT_MIDDLE: Type = 1; + pub const MBT_RIGHT: Type = 2; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_mouse_event_t { + #[doc = ""] + pub x: ::std::os::raw::c_int, + #[doc = ""] + pub y: ::std::os::raw::c_int, + #[doc = ""] + pub modifiers: uint32, +} +#[test] +fn bindgen_test_layout__cef_mouse_event_t() { + assert_eq!( + ::std::mem::size_of::<_cef_mouse_event_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_mouse_event_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_mouse_event_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_mouse_event_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).x as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_mouse_event_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).y as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_mouse_event_t), + "::", + stringify!(y) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).modifiers as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_mouse_event_t), + "::", + stringify!(modifiers) + ) + ); +} +#[doc = ""] +pub type cef_mouse_event_t = _cef_mouse_event_t; +pub mod cef_touch_event_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_TET_RELEASED: Type = 0; + pub const CEF_TET_PRESSED: Type = 1; + pub const CEF_TET_MOVED: Type = 2; + pub const CEF_TET_CANCELLED: Type = 3; +} +pub mod cef_pointer_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_POINTER_TYPE_TOUCH: Type = 0; + pub const CEF_POINTER_TYPE_MOUSE: Type = 1; + pub const CEF_POINTER_TYPE_PEN: Type = 2; + pub const CEF_POINTER_TYPE_ERASER: Type = 3; + pub const CEF_POINTER_TYPE_UNKNOWN: Type = 4; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_touch_event_t { + #[doc = ""] + pub id: ::std::os::raw::c_int, + #[doc = ""] + pub x: f32, + #[doc = ""] + pub y: f32, + #[doc = ""] + pub radius_x: f32, + #[doc = ""] + pub radius_y: f32, + #[doc = ""] + pub rotation_angle: f32, + #[doc = ""] + pub pressure: f32, + #[doc = ""] + pub type_: cef_touch_event_type_t::Type, + #[doc = ""] + pub modifiers: uint32, + #[doc = ""] + pub pointer_type: cef_pointer_type_t::Type, +} +#[test] +fn bindgen_test_layout__cef_touch_event_t() { + assert_eq!( + ::std::mem::size_of::<_cef_touch_event_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_touch_event_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_touch_event_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_touch_event_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).id as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(id) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).x as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).y as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(y) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).radius_x as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(radius_x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).radius_y as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(radius_y) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_touch_event_t>())).rotation_angle as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(rotation_angle) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).pressure as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(pressure) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).type_ as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).modifiers as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(modifiers) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).pointer_type as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_touch_event_t), + "::", + stringify!(pointer_type) + ) + ); +} +#[doc = ""] +pub type cef_touch_event_t = _cef_touch_event_t; +pub mod cef_paint_element_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const PET_VIEW: Type = 0; + pub const PET_POPUP: Type = 1; +} +pub mod cef_event_flags_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const EVENTFLAG_NONE: Type = 0; + pub const EVENTFLAG_CAPS_LOCK_ON: Type = 1; + pub const EVENTFLAG_SHIFT_DOWN: Type = 2; + pub const EVENTFLAG_CONTROL_DOWN: Type = 4; + pub const EVENTFLAG_ALT_DOWN: Type = 8; + pub const EVENTFLAG_LEFT_MOUSE_BUTTON: Type = 16; + pub const EVENTFLAG_MIDDLE_MOUSE_BUTTON: Type = 32; + pub const EVENTFLAG_RIGHT_MOUSE_BUTTON: Type = 64; + pub const EVENTFLAG_COMMAND_DOWN: Type = 128; + pub const EVENTFLAG_NUM_LOCK_ON: Type = 256; + pub const EVENTFLAG_IS_KEY_PAD: Type = 512; + pub const EVENTFLAG_IS_LEFT: Type = 1024; + pub const EVENTFLAG_IS_RIGHT: Type = 2048; + pub const EVENTFLAG_ALTGR_DOWN: Type = 4096; +} +pub mod cef_menu_item_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const MENUITEMTYPE_NONE: Type = 0; + pub const MENUITEMTYPE_COMMAND: Type = 1; + pub const MENUITEMTYPE_CHECK: Type = 2; + pub const MENUITEMTYPE_RADIO: Type = 3; + pub const MENUITEMTYPE_SEPARATOR: Type = 4; + pub const MENUITEMTYPE_SUBMENU: Type = 5; +} +pub mod cef_context_menu_type_flags_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CM_TYPEFLAG_NONE: Type = 0; + #[doc = ""] + pub const CM_TYPEFLAG_PAGE: Type = 1; + #[doc = ""] + pub const CM_TYPEFLAG_FRAME: Type = 2; + #[doc = ""] + pub const CM_TYPEFLAG_LINK: Type = 4; + #[doc = ""] + pub const CM_TYPEFLAG_MEDIA: Type = 8; + #[doc = ""] + pub const CM_TYPEFLAG_SELECTION: Type = 16; + #[doc = ""] + pub const CM_TYPEFLAG_EDITABLE: Type = 32; +} +pub mod cef_context_menu_media_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CM_MEDIATYPE_NONE: Type = 0; + #[doc = ""] + pub const CM_MEDIATYPE_IMAGE: Type = 1; + #[doc = ""] + pub const CM_MEDIATYPE_VIDEO: Type = 2; + #[doc = ""] + pub const CM_MEDIATYPE_AUDIO: Type = 3; + #[doc = ""] + pub const CM_MEDIATYPE_FILE: Type = 4; + #[doc = ""] + pub const CM_MEDIATYPE_PLUGIN: Type = 5; +} +pub mod cef_context_menu_media_state_flags_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CM_MEDIAFLAG_NONE: Type = 0; + pub const CM_MEDIAFLAG_ERROR: Type = 1; + pub const CM_MEDIAFLAG_PAUSED: Type = 2; + pub const CM_MEDIAFLAG_MUTED: Type = 4; + pub const CM_MEDIAFLAG_LOOP: Type = 8; + pub const CM_MEDIAFLAG_CAN_SAVE: Type = 16; + pub const CM_MEDIAFLAG_HAS_AUDIO: Type = 32; + pub const CM_MEDIAFLAG_HAS_VIDEO: Type = 64; + pub const CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT: Type = 128; + pub const CM_MEDIAFLAG_CAN_PRINT: Type = 256; + pub const CM_MEDIAFLAG_CAN_ROTATE: Type = 512; +} +pub mod cef_context_menu_edit_state_flags_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CM_EDITFLAG_NONE: Type = 0; + pub const CM_EDITFLAG_CAN_UNDO: Type = 1; + pub const CM_EDITFLAG_CAN_REDO: Type = 2; + pub const CM_EDITFLAG_CAN_CUT: Type = 4; + pub const CM_EDITFLAG_CAN_COPY: Type = 8; + pub const CM_EDITFLAG_CAN_PASTE: Type = 16; + pub const CM_EDITFLAG_CAN_DELETE: Type = 32; + pub const CM_EDITFLAG_CAN_SELECT_ALL: Type = 64; + pub const CM_EDITFLAG_CAN_TRANSLATE: Type = 128; +} +pub mod cef_key_event_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const KEYEVENT_RAWKEYDOWN: Type = 0; + #[doc = ""] + pub const KEYEVENT_KEYDOWN: Type = 1; + #[doc = ""] + pub const KEYEVENT_KEYUP: Type = 2; + #[doc = ""] + pub const KEYEVENT_CHAR: Type = 3; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_key_event_t { + #[doc = ""] + pub type_: cef_key_event_type_t::Type, + #[doc = ""] + pub modifiers: uint32, + #[doc = ""] + pub windows_key_code: ::std::os::raw::c_int, + #[doc = ""] + pub native_key_code: ::std::os::raw::c_int, + #[doc = ""] + pub is_system_key: ::std::os::raw::c_int, + #[doc = ""] + pub character: char16, + #[doc = ""] + pub unmodified_character: char16, + #[doc = ""] + pub focus_on_editable_field: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_key_event_t() { + assert_eq!( + ::std::mem::size_of::<_cef_key_event_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_key_event_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_key_event_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_key_event_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).type_ as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(type_) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).modifiers as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(modifiers) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_key_event_t>())).windows_key_code as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(windows_key_code) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_key_event_t>())).native_key_code as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(native_key_code) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).is_system_key as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(is_system_key) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).character as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(character) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_key_event_t>())).unmodified_character as *const _ as usize + }, + 22usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(unmodified_character) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_key_event_t>())).focus_on_editable_field as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_key_event_t), + "::", + stringify!(focus_on_editable_field) + ) + ); +} +#[doc = ""] +pub type cef_key_event_t = _cef_key_event_t; +pub mod cef_focus_source_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const FOCUS_SOURCE_NAVIGATION: Type = 0; + #[doc = ""] + pub const FOCUS_SOURCE_SYSTEM: Type = 1; +} +pub mod cef_navigation_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const NAVIGATION_LINK_CLICKED: Type = 0; + pub const NAVIGATION_FORM_SUBMITTED: Type = 1; + pub const NAVIGATION_BACK_FORWARD: Type = 2; + pub const NAVIGATION_RELOAD: Type = 3; + pub const NAVIGATION_FORM_RESUBMITTED: Type = 4; + pub const NAVIGATION_OTHER: Type = 5; +} +pub mod cef_xml_encoding_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const XML_ENCODING_NONE: Type = 0; + pub const XML_ENCODING_UTF8: Type = 1; + pub const XML_ENCODING_UTF16LE: Type = 2; + pub const XML_ENCODING_UTF16BE: Type = 3; + pub const XML_ENCODING_ASCII: Type = 4; +} +pub mod cef_xml_node_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const XML_NODE_UNSUPPORTED: Type = 0; + pub const XML_NODE_PROCESSING_INSTRUCTION: Type = 1; + pub const XML_NODE_DOCUMENT_TYPE: Type = 2; + pub const XML_NODE_ELEMENT_START: Type = 3; + pub const XML_NODE_ELEMENT_END: Type = 4; + pub const XML_NODE_ATTRIBUTE: Type = 5; + pub const XML_NODE_TEXT: Type = 6; + pub const XML_NODE_CDATA: Type = 7; + pub const XML_NODE_ENTITY_REFERENCE: Type = 8; + pub const XML_NODE_WHITESPACE: Type = 9; + pub const XML_NODE_COMMENT: Type = 10; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_popup_features_t { + pub x: ::std::os::raw::c_int, + pub xSet: ::std::os::raw::c_int, + pub y: ::std::os::raw::c_int, + pub ySet: ::std::os::raw::c_int, + pub width: ::std::os::raw::c_int, + pub widthSet: ::std::os::raw::c_int, + pub height: ::std::os::raw::c_int, + pub heightSet: ::std::os::raw::c_int, + pub menuBarVisible: ::std::os::raw::c_int, + pub statusBarVisible: ::std::os::raw::c_int, + pub toolBarVisible: ::std::os::raw::c_int, + pub scrollbarsVisible: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_popup_features_t() { + assert_eq!( + ::std::mem::size_of::<_cef_popup_features_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_popup_features_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_popup_features_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_popup_features_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).x as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(x) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).xSet as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(xSet) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).y as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(y) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).ySet as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(ySet) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).width as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(width) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).widthSet as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(widthSet) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).height as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(height) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).heightSet as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(heightSet) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_popup_features_t>())).menuBarVisible as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(menuBarVisible) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_popup_features_t>())).statusBarVisible as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(statusBarVisible) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_popup_features_t>())).toolBarVisible as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(toolBarVisible) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_popup_features_t>())).scrollbarsVisible as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_popup_features_t), + "::", + stringify!(scrollbarsVisible) + ) + ); +} +#[doc = ""] +pub type cef_popup_features_t = _cef_popup_features_t; +pub mod cef_dom_document_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const DOM_DOCUMENT_TYPE_UNKNOWN: Type = 0; + pub const DOM_DOCUMENT_TYPE_HTML: Type = 1; + pub const DOM_DOCUMENT_TYPE_XHTML: Type = 2; + pub const DOM_DOCUMENT_TYPE_PLUGIN: Type = 3; +} +pub mod cef_dom_event_category_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const DOM_EVENT_CATEGORY_UNKNOWN: Type = 0; + pub const DOM_EVENT_CATEGORY_UI: Type = 1; + pub const DOM_EVENT_CATEGORY_MOUSE: Type = 2; + pub const DOM_EVENT_CATEGORY_MUTATION: Type = 4; + pub const DOM_EVENT_CATEGORY_KEYBOARD: Type = 8; + pub const DOM_EVENT_CATEGORY_TEXT: Type = 16; + pub const DOM_EVENT_CATEGORY_COMPOSITION: Type = 32; + pub const DOM_EVENT_CATEGORY_DRAG: Type = 64; + pub const DOM_EVENT_CATEGORY_CLIPBOARD: Type = 128; + pub const DOM_EVENT_CATEGORY_MESSAGE: Type = 256; + pub const DOM_EVENT_CATEGORY_WHEEL: Type = 512; + pub const DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED: Type = 1024; + pub const DOM_EVENT_CATEGORY_OVERFLOW: Type = 2048; + pub const DOM_EVENT_CATEGORY_PAGE_TRANSITION: Type = 4096; + pub const DOM_EVENT_CATEGORY_POPSTATE: Type = 8192; + pub const DOM_EVENT_CATEGORY_PROGRESS: Type = 16384; + pub const DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS: Type = 32768; +} +pub mod cef_dom_event_phase_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const DOM_EVENT_PHASE_UNKNOWN: Type = 0; + pub const DOM_EVENT_PHASE_CAPTURING: Type = 1; + pub const DOM_EVENT_PHASE_AT_TARGET: Type = 2; + pub const DOM_EVENT_PHASE_BUBBLING: Type = 3; +} +pub mod cef_dom_node_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const DOM_NODE_TYPE_UNSUPPORTED: Type = 0; + pub const DOM_NODE_TYPE_ELEMENT: Type = 1; + pub const DOM_NODE_TYPE_ATTRIBUTE: Type = 2; + pub const DOM_NODE_TYPE_TEXT: Type = 3; + pub const DOM_NODE_TYPE_CDATA_SECTION: Type = 4; + pub const DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS: Type = 5; + pub const DOM_NODE_TYPE_COMMENT: Type = 6; + pub const DOM_NODE_TYPE_DOCUMENT: Type = 7; + pub const DOM_NODE_TYPE_DOCUMENT_TYPE: Type = 8; + pub const DOM_NODE_TYPE_DOCUMENT_FRAGMENT: Type = 9; +} +pub mod cef_file_dialog_mode_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const FILE_DIALOG_OPEN: Type = 0; + #[doc = ""] + pub const FILE_DIALOG_OPEN_MULTIPLE: Type = 1; + #[doc = ""] + pub const FILE_DIALOG_OPEN_FOLDER: Type = 2; + #[doc = ""] + pub const FILE_DIALOG_SAVE: Type = 3; + #[doc = ""] + pub const FILE_DIALOG_TYPE_MASK: Type = 255; + #[doc = ""] + pub const FILE_DIALOG_OVERWRITEPROMPT_FLAG: Type = 16777216; + #[doc = ""] + pub const FILE_DIALOG_HIDEREADONLY_FLAG: Type = 33554432; +} +pub mod cef_color_model_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const COLOR_MODEL_UNKNOWN: Type = 0; + pub const COLOR_MODEL_GRAY: Type = 1; + pub const COLOR_MODEL_COLOR: Type = 2; + pub const COLOR_MODEL_CMYK: Type = 3; + pub const COLOR_MODEL_CMY: Type = 4; + pub const COLOR_MODEL_KCMY: Type = 5; + pub const COLOR_MODEL_CMY_K: Type = 6; + pub const COLOR_MODEL_BLACK: Type = 7; + pub const COLOR_MODEL_GRAYSCALE: Type = 8; + pub const COLOR_MODEL_RGB: Type = 9; + pub const COLOR_MODEL_RGB16: Type = 10; + pub const COLOR_MODEL_RGBA: Type = 11; + pub const COLOR_MODEL_COLORMODE_COLOR: Type = 12; + pub const COLOR_MODEL_COLORMODE_MONOCHROME: Type = 13; + pub const COLOR_MODEL_HP_COLOR_COLOR: Type = 14; + pub const COLOR_MODEL_HP_COLOR_BLACK: Type = 15; + pub const COLOR_MODEL_PRINTOUTMODE_NORMAL: Type = 16; + pub const COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY: Type = 17; + pub const COLOR_MODEL_PROCESSCOLORMODEL_CMYK: Type = 18; + pub const COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE: Type = 19; + pub const COLOR_MODEL_PROCESSCOLORMODEL_RGB: Type = 20; +} +pub mod cef_duplex_mode_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const DUPLEX_MODE_UNKNOWN: Type = -1; + pub const DUPLEX_MODE_SIMPLEX: Type = 0; + pub const DUPLEX_MODE_LONG_EDGE: Type = 1; + pub const DUPLEX_MODE_SHORT_EDGE: Type = 2; +} +pub mod cef_cursor_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CT_POINTER: Type = 0; + pub const CT_CROSS: Type = 1; + pub const CT_HAND: Type = 2; + pub const CT_IBEAM: Type = 3; + pub const CT_WAIT: Type = 4; + pub const CT_HELP: Type = 5; + pub const CT_EASTRESIZE: Type = 6; + pub const CT_NORTHRESIZE: Type = 7; + pub const CT_NORTHEASTRESIZE: Type = 8; + pub const CT_NORTHWESTRESIZE: Type = 9; + pub const CT_SOUTHRESIZE: Type = 10; + pub const CT_SOUTHEASTRESIZE: Type = 11; + pub const CT_SOUTHWESTRESIZE: Type = 12; + pub const CT_WESTRESIZE: Type = 13; + pub const CT_NORTHSOUTHRESIZE: Type = 14; + pub const CT_EASTWESTRESIZE: Type = 15; + pub const CT_NORTHEASTSOUTHWESTRESIZE: Type = 16; + pub const CT_NORTHWESTSOUTHEASTRESIZE: Type = 17; + pub const CT_COLUMNRESIZE: Type = 18; + pub const CT_ROWRESIZE: Type = 19; + pub const CT_MIDDLEPANNING: Type = 20; + pub const CT_EASTPANNING: Type = 21; + pub const CT_NORTHPANNING: Type = 22; + pub const CT_NORTHEASTPANNING: Type = 23; + pub const CT_NORTHWESTPANNING: Type = 24; + pub const CT_SOUTHPANNING: Type = 25; + pub const CT_SOUTHEASTPANNING: Type = 26; + pub const CT_SOUTHWESTPANNING: Type = 27; + pub const CT_WESTPANNING: Type = 28; + pub const CT_MOVE: Type = 29; + pub const CT_VERTICALTEXT: Type = 30; + pub const CT_CELL: Type = 31; + pub const CT_CONTEXTMENU: Type = 32; + pub const CT_ALIAS: Type = 33; + pub const CT_PROGRESS: Type = 34; + pub const CT_NODROP: Type = 35; + pub const CT_COPY: Type = 36; + pub const CT_NONE: Type = 37; + pub const CT_NOTALLOWED: Type = 38; + pub const CT_ZOOMIN: Type = 39; + pub const CT_ZOOMOUT: Type = 40; + pub const CT_GRAB: Type = 41; + pub const CT_GRABBING: Type = 42; + pub const CT_MIDDLE_PANNING_VERTICAL: Type = 43; + pub const CT_MIDDLE_PANNING_HORIZONTAL: Type = 44; + pub const CT_CUSTOM: Type = 45; + pub const CT_DND_NONE: Type = 46; + pub const CT_DND_MOVE: Type = 47; + pub const CT_DND_COPY: Type = 48; + pub const CT_DND_LINK: Type = 49; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_cursor_info_t { + pub hotspot: cef_point_t, + pub image_scale_factor: f32, + pub buffer: *mut ::std::os::raw::c_void, + pub size: cef_size_t, +} +#[test] +fn bindgen_test_layout__cef_cursor_info_t() { + assert_eq!( + ::std::mem::size_of::<_cef_cursor_info_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_cursor_info_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_cursor_info_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_cursor_info_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).hotspot as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_cursor_info_t), + "::", + stringify!(hotspot) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cursor_info_t>())).image_scale_factor as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_cursor_info_t), + "::", + stringify!(image_scale_factor) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).buffer as *const _ as usize }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_cursor_info_t), + "::", + stringify!(buffer) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).size as *const _ as usize }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_cursor_info_t), + "::", + stringify!(size) + ) + ); +} +#[doc = ""] +pub type cef_cursor_info_t = _cef_cursor_info_t; +pub mod cef_uri_unescape_rule_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const UU_NONE: Type = 0; + #[doc = ""] + pub const UU_NORMAL: Type = 1; + #[doc = ""] + pub const UU_SPACES: Type = 2; + #[doc = ""] + pub const UU_PATH_SEPARATORS: Type = 4; + #[doc = ""] + pub const UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS: Type = 8; + #[doc = ""] + pub const UU_REPLACE_PLUS_WITH_SPACE: Type = 16; +} +pub mod cef_json_parser_options_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const JSON_PARSER_RFC: Type = 0; + #[doc = ""] + pub const JSON_PARSER_ALLOW_TRAILING_COMMAS: Type = 1; +} +pub mod cef_json_writer_options_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const JSON_WRITER_DEFAULT: Type = 0; + #[doc = ""] + pub const JSON_WRITER_OMIT_BINARY_VALUES: Type = 1; + #[doc = ""] + pub const JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION: Type = 2; + #[doc = ""] + pub const JSON_WRITER_PRETTY_PRINT: Type = 4; +} +pub mod cef_pdf_print_margin_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const PDF_PRINT_MARGIN_DEFAULT: Type = 0; + #[doc = ""] + pub const PDF_PRINT_MARGIN_NONE: Type = 1; + #[doc = ""] + pub const PDF_PRINT_MARGIN_MINIMUM: Type = 2; + #[doc = ""] + pub const PDF_PRINT_MARGIN_CUSTOM: Type = 3; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_pdf_print_settings_t { + #[doc = ""] + pub header_footer_title: cef_string_t, + #[doc = ""] + pub header_footer_url: cef_string_t, + #[doc = ""] + pub page_width: ::std::os::raw::c_int, + pub page_height: ::std::os::raw::c_int, + #[doc = ""] + pub scale_factor: ::std::os::raw::c_int, + #[doc = ""] + pub margin_top: ::std::os::raw::c_int, + pub margin_right: ::std::os::raw::c_int, + pub margin_bottom: ::std::os::raw::c_int, + pub margin_left: ::std::os::raw::c_int, + #[doc = ""] + pub margin_type: cef_pdf_print_margin_type_t::Type, + #[doc = ""] + pub header_footer_enabled: ::std::os::raw::c_int, + #[doc = ""] + pub selection_only: ::std::os::raw::c_int, + #[doc = ""] + pub landscape: ::std::os::raw::c_int, + #[doc = ""] + pub backgrounds_enabled: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_pdf_print_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_pdf_print_settings_t>(), + 72usize, + concat!("Size of: ", stringify!(_cef_pdf_print_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_pdf_print_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_pdf_print_settings_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_title as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(header_footer_title) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_url as *const _ + as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(header_footer_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).page_width as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(page_width) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).page_height as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(page_height) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).scale_factor as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(scale_factor) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_top as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(margin_top) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_right as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(margin_right) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_bottom as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(margin_bottom) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_left as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(margin_left) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_type as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(margin_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_enabled as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(header_footer_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).selection_only as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(selection_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).landscape as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(landscape) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).backgrounds_enabled as *const _ + as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_settings_t), + "::", + stringify!(backgrounds_enabled) + ) + ); +} +#[doc = ""] +pub type cef_pdf_print_settings_t = _cef_pdf_print_settings_t; +pub mod cef_scale_factor_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const SCALE_FACTOR_NONE: Type = 0; + pub const SCALE_FACTOR_100P: Type = 1; + pub const SCALE_FACTOR_125P: Type = 2; + pub const SCALE_FACTOR_133P: Type = 3; + pub const SCALE_FACTOR_140P: Type = 4; + pub const SCALE_FACTOR_150P: Type = 5; + pub const SCALE_FACTOR_180P: Type = 6; + pub const SCALE_FACTOR_200P: Type = 7; + pub const SCALE_FACTOR_250P: Type = 8; + pub const SCALE_FACTOR_300P: Type = 9; +} +pub mod cef_plugin_policy_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const PLUGIN_POLICY_ALLOW: Type = 0; + #[doc = ""] + pub const PLUGIN_POLICY_DETECT_IMPORTANT: Type = 1; + #[doc = ""] + pub const PLUGIN_POLICY_BLOCK: Type = 2; + #[doc = ""] + pub const PLUGIN_POLICY_DISABLE: Type = 3; +} +pub mod cef_referrer_policy_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: Type = 0; + #[doc = ""] + pub const REFERRER_POLICY_DEFAULT: Type = 0; + #[doc = ""] + pub const REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN: Type = 1; + #[doc = ""] + pub const REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN: Type = 2; + #[doc = ""] + pub const REFERRER_POLICY_NEVER_CLEAR_REFERRER: Type = 3; + #[doc = ""] + pub const REFERRER_POLICY_ORIGIN: Type = 4; + #[doc = ""] + pub const REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN: Type = 5; + #[doc = ""] + pub const REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE: Type = 6; + #[doc = ""] + pub const REFERRER_POLICY_NO_REFERRER: Type = 7; + #[doc = ""] + pub const REFERRER_POLICY_LAST_VALUE: Type = 7; +} +pub mod cef_response_filter_status_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const RESPONSE_FILTER_NEED_MORE_DATA: Type = 0; + #[doc = ""] + pub const RESPONSE_FILTER_DONE: Type = 1; + #[doc = ""] + pub const RESPONSE_FILTER_ERROR: Type = 2; +} +pub mod cef_color_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_COLOR_TYPE_RGBA_8888: Type = 0; + #[doc = ""] + pub const CEF_COLOR_TYPE_BGRA_8888: Type = 1; +} +pub mod cef_alpha_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_ALPHA_TYPE_OPAQUE: Type = 0; + #[doc = ""] + pub const CEF_ALPHA_TYPE_PREMULTIPLIED: Type = 1; + #[doc = ""] + pub const CEF_ALPHA_TYPE_POSTMULTIPLIED: Type = 2; +} +pub mod cef_text_style_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_TEXT_STYLE_BOLD: Type = 0; + pub const CEF_TEXT_STYLE_ITALIC: Type = 1; + pub const CEF_TEXT_STYLE_STRIKE: Type = 2; + pub const CEF_TEXT_STYLE_DIAGONAL_STRIKE: Type = 3; + pub const CEF_TEXT_STYLE_UNDERLINE: Type = 4; +} +pub mod cef_main_axis_alignment_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_MAIN_AXIS_ALIGNMENT_START: Type = 0; + #[doc = ""] + pub const CEF_MAIN_AXIS_ALIGNMENT_CENTER: Type = 1; + #[doc = ""] + pub const CEF_MAIN_AXIS_ALIGNMENT_END: Type = 2; +} +pub mod cef_cross_axis_alignment_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_CROSS_AXIS_ALIGNMENT_STRETCH: Type = 0; + #[doc = ""] + pub const CEF_CROSS_AXIS_ALIGNMENT_START: Type = 1; + #[doc = ""] + pub const CEF_CROSS_AXIS_ALIGNMENT_CENTER: Type = 2; + #[doc = ""] + pub const CEF_CROSS_AXIS_ALIGNMENT_END: Type = 3; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_box_layout_settings_t { + #[doc = ""] + pub horizontal: ::std::os::raw::c_int, + #[doc = ""] + pub inside_border_horizontal_spacing: ::std::os::raw::c_int, + #[doc = ""] + pub inside_border_vertical_spacing: ::std::os::raw::c_int, + #[doc = ""] + pub inside_border_insets: cef_insets_t, + #[doc = ""] + pub between_child_spacing: ::std::os::raw::c_int, + #[doc = ""] + pub main_axis_alignment: cef_main_axis_alignment_t::Type, + #[doc = ""] + pub cross_axis_alignment: cef_cross_axis_alignment_t::Type, + #[doc = ""] + pub minimum_cross_axis_size: ::std::os::raw::c_int, + #[doc = ""] + pub default_flex: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_box_layout_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_box_layout_settings_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_box_layout_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_box_layout_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_box_layout_settings_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).horizontal as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(horizontal) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_horizontal_spacing + as *const _ as usize + }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(inside_border_horizontal_spacing) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_vertical_spacing + as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(inside_border_vertical_spacing) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_insets as *const _ + as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(inside_border_insets) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).between_child_spacing as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(between_child_spacing) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).main_axis_alignment as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(main_axis_alignment) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).cross_axis_alignment as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(cross_axis_alignment) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).minimum_cross_axis_size + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(minimum_cross_axis_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).default_flex as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_box_layout_settings_t), + "::", + stringify!(default_flex) + ) + ); +} +#[doc = ""] +pub type cef_box_layout_settings_t = _cef_box_layout_settings_t; +pub mod cef_button_state_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_BUTTON_STATE_NORMAL: Type = 0; + pub const CEF_BUTTON_STATE_HOVERED: Type = 1; + pub const CEF_BUTTON_STATE_PRESSED: Type = 2; + pub const CEF_BUTTON_STATE_DISABLED: Type = 3; +} +pub mod cef_horizontal_alignment_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_HORIZONTAL_ALIGNMENT_LEFT: Type = 0; + #[doc = ""] + pub const CEF_HORIZONTAL_ALIGNMENT_CENTER: Type = 1; + #[doc = ""] + pub const CEF_HORIZONTAL_ALIGNMENT_RIGHT: Type = 2; +} +pub mod cef_menu_anchor_position_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_MENU_ANCHOR_TOPLEFT: Type = 0; + pub const CEF_MENU_ANCHOR_TOPRIGHT: Type = 1; + pub const CEF_MENU_ANCHOR_BOTTOMCENTER: Type = 2; +} +pub mod cef_menu_color_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_MENU_COLOR_TEXT: Type = 0; + pub const CEF_MENU_COLOR_TEXT_HOVERED: Type = 1; + pub const CEF_MENU_COLOR_TEXT_ACCELERATOR: Type = 2; + pub const CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED: Type = 3; + pub const CEF_MENU_COLOR_BACKGROUND: Type = 4; + pub const CEF_MENU_COLOR_BACKGROUND_HOVERED: Type = 5; + pub const CEF_MENU_COLOR_COUNT: Type = 6; +} +pub mod cef_ssl_version_t { + pub type Type = ::std::os::raw::c_int; + pub const SSL_CONNECTION_VERSION_UNKNOWN: Type = 0; + pub const SSL_CONNECTION_VERSION_SSL2: Type = 1; + pub const SSL_CONNECTION_VERSION_SSL3: Type = 2; + pub const SSL_CONNECTION_VERSION_TLS1: Type = 3; + pub const SSL_CONNECTION_VERSION_TLS1_1: Type = 4; + pub const SSL_CONNECTION_VERSION_TLS1_2: Type = 5; + pub const SSL_CONNECTION_VERSION_TLS1_3: Type = 6; + pub const SSL_CONNECTION_VERSION_QUIC: Type = 7; +} +pub mod cef_ssl_content_status_t { + pub type Type = ::std::os::raw::c_int; + pub const SSL_CONTENT_NORMAL_CONTENT: Type = 0; + pub const SSL_CONTENT_DISPLAYED_INSECURE_CONTENT: Type = 1; + pub const SSL_CONTENT_RAN_INSECURE_CONTENT: Type = 2; +} +pub mod cef_scheme_options_t { + pub type Type = ::std::os::raw::c_int; + pub const CEF_SCHEME_OPTION_NONE: Type = 0; + #[doc = ""] + pub const CEF_SCHEME_OPTION_STANDARD: Type = 1; + #[doc = ""] + pub const CEF_SCHEME_OPTION_LOCAL: Type = 2; + #[doc = ""] + pub const CEF_SCHEME_OPTION_DISPLAY_ISOLATED: Type = 4; + #[doc = ""] + pub const CEF_SCHEME_OPTION_SECURE: Type = 8; + #[doc = ""] + pub const CEF_SCHEME_OPTION_CORS_ENABLED: Type = 16; + #[doc = ""] + pub const CEF_SCHEME_OPTION_CSP_BYPASSING: Type = 32; + #[doc = ""] + pub const CEF_SCHEME_OPTION_FETCH_ENABLED: Type = 64; +} +pub mod cef_cdm_registration_error_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + #[doc = ""] + pub const CEF_CDM_REGISTRATION_ERROR_NONE: Type = 0; + #[doc = ""] + pub const CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS: Type = 1; + #[doc = ""] + pub const CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE: Type = 2; + #[doc = ""] + pub const CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED: Type = 3; +} +pub mod cef_composition_underline_style_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_CUS_SOLID: Type = 0; + pub const CEF_CUS_DOT: Type = 1; + pub const CEF_CUS_DASH: Type = 2; + pub const CEF_CUS_NONE: Type = 3; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_composition_underline_t { + #[doc = ""] + pub range: cef_range_t, + #[doc = ""] + pub color: cef_color_t, + #[doc = ""] + pub background_color: cef_color_t, + #[doc = ""] + pub thick: ::std::os::raw::c_int, + #[doc = ""] + pub style: cef_composition_underline_style_t::Type, +} +#[test] +fn bindgen_test_layout__cef_composition_underline_t() { + assert_eq!( + ::std::mem::size_of::<_cef_composition_underline_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_composition_underline_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_composition_underline_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_composition_underline_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_composition_underline_t>())).range as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_composition_underline_t), + "::", + stringify!(range) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_composition_underline_t>())).color as *const _ as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_composition_underline_t), + "::", + stringify!(color) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_composition_underline_t>())).background_color as *const _ + as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_composition_underline_t), + "::", + stringify!(background_color) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_composition_underline_t>())).thick as *const _ as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_composition_underline_t), + "::", + stringify!(thick) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_composition_underline_t>())).style as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_composition_underline_t), + "::", + stringify!(style) + ) + ); +} +#[doc = ""] +pub type cef_composition_underline_t = _cef_composition_underline_t; +pub mod cef_channel_layout_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_CHANNEL_LAYOUT_NONE: Type = 0; + pub const CEF_CHANNEL_LAYOUT_UNSUPPORTED: Type = 1; + pub const CEF_CHANNEL_LAYOUT_MONO: Type = 2; + pub const CEF_CHANNEL_LAYOUT_STEREO: Type = 3; + pub const CEF_CHANNEL_LAYOUT_2_1: Type = 4; + pub const CEF_CHANNEL_LAYOUT_SURROUND: Type = 5; + pub const CEF_CHANNEL_LAYOUT_4_0: Type = 6; + pub const CEF_CHANNEL_LAYOUT_2_2: Type = 7; + pub const CEF_CHANNEL_LAYOUT_QUAD: Type = 8; + pub const CEF_CHANNEL_LAYOUT_5_0: Type = 9; + pub const CEF_CHANNEL_LAYOUT_5_1: Type = 10; + pub const CEF_CHANNEL_LAYOUT_5_0_BACK: Type = 11; + pub const CEF_CHANNEL_LAYOUT_5_1_BACK: Type = 12; + pub const CEF_CHANNEL_LAYOUT_7_0: Type = 13; + pub const CEF_CHANNEL_LAYOUT_7_1: Type = 14; + pub const CEF_CHANNEL_LAYOUT_7_1_WIDE: Type = 15; + pub const CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX: Type = 16; + pub const CEF_CHANNEL_LAYOUT_2POINT1: Type = 17; + pub const CEF_CHANNEL_LAYOUT_3_1: Type = 18; + pub const CEF_CHANNEL_LAYOUT_4_1: Type = 19; + pub const CEF_CHANNEL_LAYOUT_6_0: Type = 20; + pub const CEF_CHANNEL_LAYOUT_6_0_FRONT: Type = 21; + pub const CEF_CHANNEL_LAYOUT_HEXAGONAL: Type = 22; + pub const CEF_CHANNEL_LAYOUT_6_1: Type = 23; + pub const CEF_CHANNEL_LAYOUT_6_1_BACK: Type = 24; + pub const CEF_CHANNEL_LAYOUT_6_1_FRONT: Type = 25; + pub const CEF_CHANNEL_LAYOUT_7_0_FRONT: Type = 26; + pub const CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK: Type = 27; + pub const CEF_CHANNEL_LAYOUT_OCTAGONAL: Type = 28; + pub const CEF_CHANNEL_LAYOUT_DISCRETE: Type = 29; + pub const CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC: Type = 30; + pub const CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE: Type = 31; + pub const CEF_CHANNEL_LAYOUT_BITSTREAM: Type = 32; + pub const CEF_CHANNEL_LAYOUT_MAX: Type = 32; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_audio_parameters_t { + #[doc = ""] + pub channel_layout: cef_channel_layout_t::Type, + #[doc = ""] + pub sample_rate: ::std::os::raw::c_int, + #[doc = ""] + pub frames_per_buffer: ::std::os::raw::c_int, +} +#[test] +fn bindgen_test_layout__cef_audio_parameters_t() { + assert_eq!( + ::std::mem::size_of::<_cef_audio_parameters_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_audio_parameters_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_audio_parameters_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_audio_parameters_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_parameters_t>())).channel_layout as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_parameters_t), + "::", + stringify!(channel_layout) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_parameters_t>())).sample_rate as *const _ as usize + }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_parameters_t), + "::", + stringify!(sample_rate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_parameters_t>())).frames_per_buffer as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_parameters_t), + "::", + stringify!(frames_per_buffer) + ) + ); +} +#[doc = ""] +pub type cef_audio_parameters_t = _cef_audio_parameters_t; +pub mod cef_media_route_create_result_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_MRCR_UNKNOWN_ERROR: Type = 0; + pub const CEF_MRCR_OK: Type = 1; + pub const CEF_MRCR_TIMED_OUT: Type = 2; + pub const CEF_MRCR_ROUTE_NOT_FOUND: Type = 3; + pub const CEF_MRCR_SINK_NOT_FOUND: Type = 4; + pub const CEF_MRCR_INVALID_ORIGIN: Type = 5; + pub const CEF_MRCR_NO_SUPPORTED_PROVIDER: Type = 7; + pub const CEF_MRCR_CANCELLED: Type = 8; + pub const CEF_MRCR_ROUTE_ALREADY_EXISTS: Type = 9; + pub const CEF_MRCR_ROUTE_ALREADY_TERMINATED: Type = 11; + pub const CEF_MRCR_TOTAL_COUNT: Type = 12; +} +pub mod cef_media_route_connection_state_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_MRCS_UNKNOWN: Type = 0; + pub const CEF_MRCS_CONNECTING: Type = 1; + pub const CEF_MRCS_CONNECTED: Type = 2; + pub const CEF_MRCS_CLOSED: Type = 3; + pub const CEF_MRCS_TERMINATED: Type = 4; +} +pub mod cef_media_sink_icon_type_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_MSIT_CAST: Type = 0; + pub const CEF_MSIT_CAST_AUDIO_GROUP: Type = 1; + pub const CEF_MSIT_CAST_AUDIO: Type = 2; + pub const CEF_MSIT_MEETING: Type = 3; + pub const CEF_MSIT_HANGOUT: Type = 4; + pub const CEF_MSIT_EDUCATION: Type = 5; + pub const CEF_MSIT_WIRED_DISPLAY: Type = 6; + pub const CEF_MSIT_GENERIC: Type = 7; + pub const CEF_MSIT_TOTAL_COUNT: Type = 8; +} +#[doc = ""] +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_media_sink_device_info_t { + pub ip_address: cef_string_t, + pub port: ::std::os::raw::c_int, + pub model_name: cef_string_t, +} +#[test] +fn bindgen_test_layout__cef_media_sink_device_info_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_sink_device_info_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_media_sink_device_info_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_sink_device_info_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_sink_device_info_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).ip_address as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_device_info_t), + "::", + stringify!(ip_address) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).port as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_device_info_t), + "::", + stringify!(port) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).model_name as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_device_info_t), + "::", + stringify!(model_name) + ) + ); +} +#[doc = ""] +pub type cef_media_sink_device_info_t = _cef_media_sink_device_info_t; +pub mod cef_text_field_commands_t { + #[doc = ""] + pub type Type = ::std::os::raw::c_int; + pub const CEF_TFC_CUT: Type = 1; + pub const CEF_TFC_COPY: Type = 2; + pub const CEF_TFC_PASTE: Type = 3; + pub const CEF_TFC_UNDO: Type = 4; + pub const CEF_TFC_DELETE: Type = 5; + pub const CEF_TFC_SELECT_ALL: Type = 6; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_base_ref_counted_t { + #[doc = ""] + pub size: usize, + #[doc = ""] + pub add_ref: + ::std::option::Option, + #[doc = ""] + pub release: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_one_ref: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_at_least_one_ref: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_base_ref_counted_t() { + assert_eq!( + ::std::mem::size_of::<_cef_base_ref_counted_t>(), + 20usize, + concat!("Size of: ", stringify!(_cef_base_ref_counted_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_base_ref_counted_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_base_ref_counted_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).size as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_ref_counted_t), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).add_ref as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_ref_counted_t), + "::", + stringify!(add_ref) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).release as *const _ as usize }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_ref_counted_t), + "::", + stringify!(release) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).has_one_ref as *const _ as usize + }, + 12usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_ref_counted_t), + "::", + stringify!(has_one_ref) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).has_at_least_one_ref as *const _ + as usize + }, + 16usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_ref_counted_t), + "::", + stringify!(has_at_least_one_ref) + ) + ); +} +#[doc = ""] +pub type cef_base_ref_counted_t = _cef_base_ref_counted_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_base_scoped_t { + #[doc = ""] + pub size: usize, + #[doc = ""] + pub del: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_base_scoped_t() { + assert_eq!( + ::std::mem::size_of::<_cef_base_scoped_t>(), + 8usize, + concat!("Size of: ", stringify!(_cef_base_scoped_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_base_scoped_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_base_scoped_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_base_scoped_t>())).size as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_scoped_t), + "::", + stringify!(size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_base_scoped_t>())).del as *const _ as usize }, + 4usize, + concat!( + "Offset of field: ", + stringify!(_cef_base_scoped_t), + "::", + stringify!(del) + ) + ); +} +#[doc = ""] +pub type cef_base_scoped_t = _cef_base_scoped_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_dev_tools_message_observer_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_dev_tools_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dev_tools_message_observer_t, + browser: *mut _cef_browser_t, + message: *const ::std::os::raw::c_void, + message_size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_dev_tools_method_result: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dev_tools_message_observer_t, + browser: *mut _cef_browser_t, + message_id: ::std::os::raw::c_int, + success: ::std::os::raw::c_int, + result: *const ::std::os::raw::c_void, + result_size: usize, + ), + >, + #[doc = ""] + pub on_dev_tools_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dev_tools_message_observer_t, + browser: *mut _cef_browser_t, + method: *const cef_string_t, + params: *const ::std::os::raw::c_void, + params_size: usize, + ), + >, + #[doc = ""] + pub on_dev_tools_agent_attached: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dev_tools_message_observer_t, + browser: *mut _cef_browser_t, + ), + >, + #[doc = ""] + pub on_dev_tools_agent_detached: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dev_tools_message_observer_t, + browser: *mut _cef_browser_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_dev_tools_message_observer_t() { + assert_eq!( + ::std::mem::size_of::<_cef_dev_tools_message_observer_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_dev_tools_message_observer_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_dev_tools_message_observer_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_dev_tools_message_observer_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_message + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(on_dev_tools_message) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_method_result + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(on_dev_tools_method_result) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_event + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(on_dev_tools_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())) + .on_dev_tools_agent_attached as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(on_dev_tools_agent_attached) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())) + .on_dev_tools_agent_detached as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_dev_tools_message_observer_t), + "::", + stringify!(on_dev_tools_agent_detached) + ) + ); +} +#[doc = ""] +pub type cef_dev_tools_message_observer_t = _cef_dev_tools_message_observer_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_value_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_owned: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + that: *mut _cef_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_equal: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + that: *mut _cef_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> *mut _cef_value_t, + >, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> cef_value_type_t::Type, + >, + #[doc = ""] + pub get_bool: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_int: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_double: + ::std::option::Option f64>, + #[doc = ""] + pub get_string: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_binary: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_dictionary: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub get_list: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> *mut _cef_list_value_t, + >, + #[doc = ""] + pub set_null: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_bool: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_int: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_double: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_value_t, value: f64) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_binary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: *mut _cef_binary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_dictionary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_value_t, + value: *mut _cef_list_value_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_value_t() { + assert_eq!( + ::std::mem::size_of::<_cef_value_t>(), + 108usize, + concat!("Size of: ", stringify!(_cef_value_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_value_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_value_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_owned as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(is_owned) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_read_only as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_same as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_equal as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(is_equal) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).copy as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_type as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_bool as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_int as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_int) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_double as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_double) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_string as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_binary as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_binary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_dictionary as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_dictionary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_list as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(get_list) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_null as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_null) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_bool as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_int as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_int) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_double as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_double) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_string as *const _ as usize }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_binary as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_binary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_dictionary as *const _ as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_dictionary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_list as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_value_t), + "::", + stringify!(set_list) + ) + ); +} +#[doc = ""] +pub type cef_value_t = _cef_value_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_value_create() -> *mut cef_value_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_binary_value_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_owned: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_binary_value_t, + that: *mut _cef_binary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_equal: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_binary_value_t, + that: *mut _cef_binary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_binary_value_t) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_size: + ::std::option::Option usize>, + #[doc = ""] + pub get_data: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_binary_value_t, + buffer: *mut ::std::os::raw::c_void, + buffer_size: usize, + data_offset: usize, + ) -> usize, + >, +} +#[test] +fn bindgen_test_layout__cef_binary_value_t() { + assert_eq!( + ::std::mem::size_of::<_cef_binary_value_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_binary_value_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_binary_value_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_binary_value_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_owned as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(is_owned) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_same as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_equal as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(is_equal) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).copy as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).get_size as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(get_size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).get_data as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_binary_value_t), + "::", + stringify!(get_data) + ) + ); +} +#[doc = ""] +pub type cef_binary_value_t = _cef_binary_value_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_binary_value_create( + data: *const ::std::os::raw::c_void, data_size: usize, + ) -> *mut cef_binary_value_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_dictionary_value_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_owned: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + that: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_equal: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + that: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + exclude_empty_children: ::std::os::raw::c_int, + ) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub get_size: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_dictionary_value_t) -> usize, + >, + #[doc = ""] + pub clear: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_key: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_keys: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + keys: cef_string_list_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> cef_value_type_t::Type, + >, + #[doc = ""] + pub get_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> *mut _cef_value_t, + >, + #[doc = ""] + pub get_bool: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_int: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_double: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> f64, + >, + #[doc = ""] + pub get_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_binary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_dictionary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub get_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> *mut _cef_list_value_t, + >, + #[doc = ""] + pub set_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: *mut _cef_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_null: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_bool: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_int: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_double: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: f64, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_binary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: *mut _cef_binary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_dictionary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dictionary_value_t, + key: *const cef_string_t, + value: *mut _cef_list_value_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_dictionary_value_t() { + assert_eq!( + ::std::mem::size_of::<_cef_dictionary_value_t>(), + 136usize, + concat!("Size of: ", stringify!(_cef_dictionary_value_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_dictionary_value_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_dictionary_value_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_valid as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_owned as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(is_owned) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_read_only as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_same as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_equal as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(is_equal) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).copy as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_size as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).clear as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(clear) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).has_key as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(has_key) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_keys as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_keys) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).remove as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(remove) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_type as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_value as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_value) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_bool as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_int as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_int) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_double as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_double) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_string as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_string) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_binary as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_binary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_dictionary as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_dictionary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_list as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(get_list) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_value as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_value) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_null as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_null) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_bool as *const _ as usize + }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_int as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_int) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_double as *const _ as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_double) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_string as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_string) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_binary as *const _ as usize + }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_binary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_dictionary as *const _ as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_dictionary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_list as *const _ as usize + }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_dictionary_value_t), + "::", + stringify!(set_list) + ) + ); +} +#[doc = ""] +pub type cef_dictionary_value_t = _cef_dictionary_value_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_dictionary_value_create() -> *mut cef_dictionary_value_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_list_value_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_owned: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + that: *mut _cef_list_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_equal: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + that: *mut _cef_list_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t) -> *mut _cef_list_value_t, + >, + #[doc = ""] + pub set_size: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_size: + ::std::option::Option usize>, + #[doc = ""] + pub clear: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> cef_value_type_t::Type, + >, + #[doc = ""] + pub get_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> *mut _cef_value_t, + >, + #[doc = ""] + pub get_bool: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_int: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_double: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_list_value_t, index: usize) -> f64, + >, + #[doc = ""] + pub get_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_binary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_dictionary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub get_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> *mut _cef_list_value_t, + >, + #[doc = ""] + pub set_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: *mut _cef_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_null: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_bool: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_int: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_double: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: f64, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_binary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: *mut _cef_binary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_dictionary: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_list_value_t, + index: usize, + value: *mut _cef_list_value_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_list_value_t() { + assert_eq!( + ::std::mem::size_of::<_cef_list_value_t>(), + 132usize, + concat!("Size of: ", stringify!(_cef_list_value_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_list_value_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_list_value_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_owned as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(is_owned) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_read_only as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_same as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_equal as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(is_equal) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).copy as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_size as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_size as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).clear as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(clear) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).remove as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(remove) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_type as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_value as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_bool as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_int as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_int) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_double as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_double) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_string as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_binary as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_binary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_list_value_t>())).get_dictionary as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_dictionary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_list as *const _ as usize }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(get_list) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_value as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_null as *const _ as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_null) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_bool as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_int as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_int) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_double as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_double) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_string as *const _ as usize }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_binary as *const _ as usize }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_binary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_list_value_t>())).set_dictionary as *const _ as usize + }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_dictionary) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_list as *const _ as usize }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_list_value_t), + "::", + stringify!(set_list) + ) + ); +} +#[doc = ""] +pub type cef_list_value_t = _cef_list_value_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_list_value_create() -> *mut cef_list_value_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_image_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_empty: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_image_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + that: *mut _cef_image_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_bitmap: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + pixel_width: ::std::os::raw::c_int, + pixel_height: ::std::os::raw::c_int, + color_type: cef_color_type_t::Type, + alpha_type: cef_alpha_type_t::Type, + pixel_data: *const ::std::os::raw::c_void, + pixel_data_size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_png: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + png_data: *const ::std::os::raw::c_void, + png_data_size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_jpeg: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + jpeg_data: *const ::std::os::raw::c_void, + jpeg_data_size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_width: + ::std::option::Option usize>, + #[doc = ""] + pub get_height: + ::std::option::Option usize>, + #[doc = ""] + pub has_representation: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove_representation: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_representation_info: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + actual_scale_factor: *mut f32, + pixel_width: *mut ::std::os::raw::c_int, + pixel_height: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_as_bitmap: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + color_type: cef_color_type_t::Type, + alpha_type: cef_alpha_type_t::Type, + pixel_width: *mut ::std::os::raw::c_int, + pixel_height: *mut ::std::os::raw::c_int, + ) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_as_png: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + with_transparency: ::std::os::raw::c_int, + pixel_width: *mut ::std::os::raw::c_int, + pixel_height: *mut ::std::os::raw::c_int, + ) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_as_jpeg: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_image_t, + scale_factor: f32, + quality: ::std::os::raw::c_int, + pixel_width: *mut ::std::os::raw::c_int, + pixel_height: *mut ::std::os::raw::c_int, + ) -> *mut _cef_binary_value_t, + >, +} +#[test] +fn bindgen_test_layout__cef_image_t() { + assert_eq!( + ::std::mem::size_of::<_cef_image_t>(), + 72usize, + concat!("Size of: ", stringify!(_cef_image_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_image_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_image_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).is_empty as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(is_empty) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).is_same as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_bitmap as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(add_bitmap) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_png as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(add_png) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_jpeg as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(add_jpeg) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_width as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_width) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_height as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_height) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).has_representation as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(has_representation) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_image_t>())).remove_representation as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(remove_representation) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_image_t>())).get_representation_info as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_representation_info) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_bitmap as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_as_bitmap) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_png as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_as_png) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_jpeg as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_image_t), + "::", + stringify!(get_as_jpeg) + ) + ); +} +#[doc = ""] +pub type cef_image_t = _cef_image_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_image_create() -> *mut cef_image_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_read_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub read: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_read_handler_t, + ptr: *mut ::std::os::raw::c_void, + size: usize, + n: usize, + ) -> usize, + >, + #[doc = ""] + pub seek: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_read_handler_t, + offset: int64, + whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub tell: + ::std::option::Option int64>, + #[doc = ""] + pub eof: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub may_block: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_read_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_read_handler_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_read_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_read_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_read_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).read as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(read) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).seek as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(seek) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).tell as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(tell) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).eof as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(eof) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).may_block as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_read_handler_t), + "::", + stringify!(may_block) + ) + ); +} +#[doc = ""] +pub type cef_read_handler_t = _cef_read_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_stream_reader_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub read: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_stream_reader_t, + ptr: *mut ::std::os::raw::c_void, + size: usize, + n: usize, + ) -> usize, + >, + #[doc = ""] + pub seek: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_stream_reader_t, + offset: int64, + whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub tell: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_reader_t) -> int64, + >, + #[doc = ""] + pub eof: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub may_block: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_stream_reader_t() { + assert_eq!( + ::std::mem::size_of::<_cef_stream_reader_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_stream_reader_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_stream_reader_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_stream_reader_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).read as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(read) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).seek as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(seek) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).tell as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(tell) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).eof as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(eof) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).may_block as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_reader_t), + "::", + stringify!(may_block) + ) + ); +} +#[doc = ""] +pub type cef_stream_reader_t = _cef_stream_reader_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_stream_reader_create_for_file( + fileName: *const cef_string_t, + ) -> *mut cef_stream_reader_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_stream_reader_create_for_data( + data: *mut ::std::os::raw::c_void, size: usize, + ) -> *mut cef_stream_reader_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_stream_reader_create_for_handler( + handler: *mut cef_read_handler_t, + ) -> *mut cef_stream_reader_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_write_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub write: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_write_handler_t, + ptr: *const ::std::os::raw::c_void, + size: usize, + n: usize, + ) -> usize, + >, + #[doc = ""] + pub seek: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_write_handler_t, + offset: int64, + whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub tell: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_write_handler_t) -> int64, + >, + #[doc = ""] + pub flush: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub may_block: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_write_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_write_handler_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_write_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_write_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_write_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).write as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(write) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).seek as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(seek) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).tell as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(tell) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).flush as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(flush) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).may_block as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_write_handler_t), + "::", + stringify!(may_block) + ) + ); +} +#[doc = ""] +pub type cef_write_handler_t = _cef_write_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_stream_writer_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub write: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_stream_writer_t, + ptr: *const ::std::os::raw::c_void, + size: usize, + n: usize, + ) -> usize, + >, + #[doc = ""] + pub seek: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_stream_writer_t, + offset: int64, + whence: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub tell: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_writer_t) -> int64, + >, + #[doc = ""] + pub flush: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub may_block: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_stream_writer_t() { + assert_eq!( + ::std::mem::size_of::<_cef_stream_writer_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_stream_writer_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_stream_writer_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_stream_writer_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).write as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(write) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).seek as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(seek) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).tell as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(tell) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).flush as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(flush) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).may_block as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_stream_writer_t), + "::", + stringify!(may_block) + ) + ); +} +#[doc = ""] +pub type cef_stream_writer_t = _cef_stream_writer_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_stream_writer_create_for_file( + fileName: *const cef_string_t, + ) -> *mut cef_stream_writer_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_stream_writer_create_for_handler( + handler: *mut cef_write_handler_t, + ) -> *mut cef_stream_writer_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_drag_data_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub clone: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_drag_data_t, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_link: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_fragment: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_file: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_link_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_link_title: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_link_metadata: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_fragment_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_fragment_html: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_fragment_base_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_file_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_file_contents: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_drag_data_t, + writer: *mut _cef_stream_writer_t, + ) -> usize, + >, + #[doc = ""] + pub get_file_names: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_drag_data_t, + names: cef_string_list_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_link_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, url: *const cef_string_t), + >, + #[doc = ""] + pub set_link_title: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, title: *const cef_string_t), + >, + #[doc = ""] + pub set_link_metadata: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, data: *const cef_string_t), + >, + #[doc = ""] + pub set_fragment_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, text: *const cef_string_t), + >, + #[doc = ""] + pub set_fragment_html: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, html: *const cef_string_t), + >, + #[doc = ""] + pub set_fragment_base_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t, base_url: *const cef_string_t), + >, + #[doc = ""] + pub reset_file_contents: + ::std::option::Option, + #[doc = ""] + pub add_file: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_drag_data_t, + path: *const cef_string_t, + display_name: *const cef_string_t, + ), + >, + #[doc = ""] + pub get_image: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_image_t, + >, + #[doc = ""] + pub get_image_hotspot: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> cef_point_t, + >, + #[doc = ""] + pub has_image: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_drag_data_t() { + assert_eq!( + ::std::mem::size_of::<_cef_drag_data_t>(), + 120usize, + concat!("Size of: ", stringify!(_cef_drag_data_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_drag_data_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_drag_data_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).clone as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(clone) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_read_only as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_link as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(is_link) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_fragment as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(is_fragment) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_file as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(is_file) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_url as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_link_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_title as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_link_title) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_metadata as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_link_metadata) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_text as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_fragment_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_html as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_fragment_html) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_base_url as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_fragment_base_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_name as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_file_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_contents as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_file_contents) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_names as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_file_names) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_url as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_link_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_title as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_link_title) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_metadata as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_link_metadata) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_text as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_fragment_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_html as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_fragment_html) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_base_url as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(set_fragment_base_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).reset_file_contents as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(reset_file_contents) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).add_file as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(add_file) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_image as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_image) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_data_t>())).get_image_hotspot as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(get_image_hotspot) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).has_image as *const _ as usize }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_data_t), + "::", + stringify!(has_image) + ) + ); +} +#[doc = ""] +pub type cef_drag_data_t = _cef_drag_data_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_drag_data_create() -> *mut cef_drag_data_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_domvisitor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub visit: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domvisitor_t, + document: *mut _cef_domdocument_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_domvisitor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_domvisitor_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_domvisitor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_domvisitor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_domvisitor_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domvisitor_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_domvisitor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domvisitor_t>())).visit as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_domvisitor_t), + "::", + stringify!(visit) + ) + ); +} +#[doc = ""] +pub type cef_domvisitor_t = _cef_domvisitor_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_domdocument_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> cef_dom_document_type_t::Type, + >, + #[doc = ""] + pub get_document: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_body: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_head: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_title: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_element_by_id: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domdocument_t, + id: *const cef_string_t, + ) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_focused_node: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub has_selection: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_selection_start_offset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_selection_end_offset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_selection_as_markup: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_selection_as_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_base_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_complete_url: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domdocument_t, + partialURL: *const cef_string_t, + ) -> cef_string_userfree_t, + >, +} +#[test] +fn bindgen_test_layout__cef_domdocument_t() { + assert_eq!( + ::std::mem::size_of::<_cef_domdocument_t>(), + 76usize, + concat!("Size of: ", stringify!(_cef_domdocument_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_domdocument_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_domdocument_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_type as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_document as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_document) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_body as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_body) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_head as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_head) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_title as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_title) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_element_by_id as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_element_by_id) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_focused_node as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_focused_node) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).has_selection as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(has_selection) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_start_offset as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_selection_start_offset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_end_offset as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_selection_end_offset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_as_markup as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_selection_as_markup) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_as_text as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_selection_as_text) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_base_url as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_base_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domdocument_t>())).get_complete_url as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_domdocument_t), + "::", + stringify!(get_complete_url) + ) + ); +} +#[doc = ""] +pub type cef_domdocument_t = _cef_domdocument_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_domnode_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_dom_node_type_t::Type, + >, + #[doc = ""] + pub is_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_element: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_editable: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_form_control_element: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_form_control_element_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domnode_t, + that: *mut _cef_domnode_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_value: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domnode_t, + value: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_as_markup: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_document: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domdocument_t, + >, + #[doc = ""] + pub get_parent: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_previous_sibling: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_next_sibling: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub has_children: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_first_child: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_last_child: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, + >, + #[doc = ""] + pub get_element_tag_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub has_element_attributes: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_element_attribute: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domnode_t, + attrName: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_element_attribute: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domnode_t, + attrName: *const cef_string_t, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_element_attributes: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t, attrMap: cef_string_map_t), + >, + #[doc = ""] + pub set_element_attribute: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_domnode_t, + attrName: *const cef_string_t, + value: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_element_inner_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_element_bounds: + ::std::option::Option cef_rect_t>, +} +#[test] +fn bindgen_test_layout__cef_domnode_t() { + assert_eq!( + ::std::mem::size_of::<_cef_domnode_t>(), + 124usize, + concat!("Size of: ", stringify!(_cef_domnode_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_domnode_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_domnode_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_type as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_text as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(is_text) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_element as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(is_element) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_editable as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(is_editable) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).is_form_control_element as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(is_form_control_element) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_form_control_element_type as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_form_control_element_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_same as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_name as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_value as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).set_value as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(set_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_as_markup as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_as_markup) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_document as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_document) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_parent as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_parent) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_previous_sibling as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_previous_sibling) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_next_sibling as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_next_sibling) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).has_children as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(has_children) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_first_child as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_first_child) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_last_child as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_last_child) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_tag_name as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_element_tag_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).has_element_attributes as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(has_element_attributes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).has_element_attribute as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(has_element_attribute) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_attribute as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_element_attribute) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_attributes as *const _ as usize + }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_element_attributes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).set_element_attribute as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(set_element_attribute) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_inner_text as *const _ as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_element_inner_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_bounds as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_domnode_t), + "::", + stringify!(get_element_bounds) + ) + ); +} +#[doc = ""] +pub type cef_domnode_t = _cef_domnode_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_process_message_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_process_message_t, + ) -> *mut _cef_process_message_t, + >, + #[doc = ""] + pub get_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_process_message_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_argument_list: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_process_message_t) -> *mut _cef_list_value_t, + >, +} +#[test] +fn bindgen_test_layout__cef_process_message_t() { + assert_eq!( + ::std::mem::size_of::<_cef_process_message_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_process_message_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_process_message_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_process_message_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_process_message_t>())).is_read_only as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).copy as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).get_name as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(get_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_process_message_t>())).get_argument_list as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_process_message_t), + "::", + stringify!(get_argument_list) + ) + ); +} +#[doc = ""] +pub type cef_process_message_t = _cef_process_message_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_process_message_create(name: *const cef_string_t) -> *mut cef_process_message_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_request_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, url: *const cef_string_t), + >, + #[doc = ""] + pub get_method: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_method: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, method: *const cef_string_t), + >, + #[doc = ""] + pub set_referrer: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_t, + referrer_url: *const cef_string_t, + policy: cef_referrer_policy_t::Type, + ), + >, + #[doc = ""] + pub get_referrer_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_referrer_policy: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_referrer_policy_t::Type, + >, + #[doc = ""] + pub get_post_data: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> *mut _cef_post_data_t, + >, + #[doc = ""] + pub set_post_data: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, postData: *mut _cef_post_data_t), + >, + #[doc = ""] + pub get_header_map: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t), + >, + #[doc = ""] + pub set_header_map: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t), + >, + #[doc = ""] + pub get_header_by_name: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_t, + name: *const cef_string_t, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_header_by_name: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_t, + name: *const cef_string_t, + value: *const cef_string_t, + overwrite: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub set: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_t, + url: *const cef_string_t, + method: *const cef_string_t, + postData: *mut _cef_post_data_t, + headerMap: cef_string_multimap_t, + ), + >, + #[doc = ""] + pub get_flags: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_flags: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, flags: ::std::os::raw::c_int), + >, + #[doc = ""] + pub get_first_party_for_cookies: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_first_party_for_cookies: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t, url: *const cef_string_t), + >, + #[doc = ""] + pub get_resource_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_resource_type_t::Type, + >, + #[doc = ""] + pub get_transition_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_t) -> cef_transition_type_t::Type, + >, + #[doc = ""] + pub get_identifier: + ::std::option::Option uint64>, +} +#[test] +fn bindgen_test_layout__cef_request_t() { + assert_eq!( + ::std::mem::size_of::<_cef_request_t>(), + 108usize, + concat!("Size of: ", stringify!(_cef_request_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_request_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_request_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).is_read_only as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_url as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_url as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_method as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_method) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_method as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_method) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_referrer as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_referrer) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_referrer_url as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_referrer_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).get_referrer_policy as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_referrer_policy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_post_data as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_post_data) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_post_data as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_post_data) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_header_map as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_header_map) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_header_map as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_header_map) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).get_header_by_name as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_header_by_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).set_header_by_name as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_header_by_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_flags as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_flags) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_flags as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).get_first_party_for_cookies as *const _ + as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_first_party_for_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).set_first_party_for_cookies as *const _ + as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(set_first_party_for_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).get_resource_type as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_resource_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_t>())).get_transition_type as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_transition_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_identifier as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_t), + "::", + stringify!(get_identifier) + ) + ); +} +#[doc = ""] +pub type cef_request_t = _cef_request_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_request_create() -> *mut cef_request_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_post_data_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_excluded_elements: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_element_count: + ::std::option::Option usize>, + #[doc = ""] + pub get_elements: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_t, + elementsCount: *mut usize, + elements: *mut *mut _cef_post_data_element_t, + ), + >, + #[doc = ""] + pub remove_element: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_t, + element: *mut _cef_post_data_element_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_element: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_t, + element: *mut _cef_post_data_element_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove_elements: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_post_data_t() { + assert_eq!( + ::std::mem::size_of::<_cef_post_data_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_post_data_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_post_data_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_post_data_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).is_read_only as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_t>())).has_excluded_elements as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(has_excluded_elements) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_t>())).get_element_count as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(get_element_count) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).get_elements as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(get_elements) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).remove_element as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(remove_element) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).add_element as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(add_element) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_t>())).remove_elements as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_t), + "::", + stringify!(remove_elements) + ) + ); +} +#[doc = ""] +pub type cef_post_data_t = _cef_post_data_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_post_data_create() -> *mut cef_post_data_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_post_data_element_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_post_data_element_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_to_empty: + ::std::option::Option, + #[doc = ""] + pub set_to_file: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_element_t, + fileName: *const cef_string_t, + ), + >, + #[doc = ""] + pub set_to_bytes: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_element_t, + size: usize, + bytes: *const ::std::os::raw::c_void, + ), + >, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_element_t, + ) -> cef_postdataelement_type_t::Type, + >, + #[doc = ""] + pub get_file: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_post_data_element_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_bytes_count: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_post_data_element_t) -> usize, + >, + #[doc = ""] + pub get_bytes: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_post_data_element_t, + size: usize, + bytes: *mut ::std::os::raw::c_void, + ) -> usize, + >, +} +#[test] +fn bindgen_test_layout__cef_post_data_element_t() { + assert_eq!( + ::std::mem::size_of::<_cef_post_data_element_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_post_data_element_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_post_data_element_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_post_data_element_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_post_data_element_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).is_read_only as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_empty as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(set_to_empty) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_file as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(set_to_file) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_bytes as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(set_to_bytes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_type as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_file as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(get_file) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_bytes_count as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(get_bytes_count) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_bytes as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_post_data_element_t), + "::", + stringify!(get_bytes) + ) + ); +} +#[doc = ""] +pub type cef_post_data_element_t = _cef_post_data_element_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_post_data_element_create() -> *mut cef_post_data_element_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_string_visitor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub visit: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_string_visitor_t, string: *const cef_string_t), + >, +} +#[test] +fn bindgen_test_layout__cef_string_visitor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_string_visitor_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_string_visitor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_string_visitor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_string_visitor_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_visitor_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_visitor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_string_visitor_t>())).visit as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_string_visitor_t), + "::", + stringify!(visit) + ) + ); +} +#[doc = ""] +pub type cef_string_visitor_t = _cef_string_visitor_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_urlrequest_client_t { + _unused: [u8; 0], +} +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_urlrequest_t { + _unused: [u8; 0], +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_frame_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub undo: ::std::option::Option, + #[doc = ""] + pub redo: ::std::option::Option, + #[doc = ""] + pub cut: ::std::option::Option, + #[doc = ""] + pub copy: ::std::option::Option, + #[doc = ""] + pub paste: ::std::option::Option, + #[doc = ""] + pub del: ::std::option::Option, + #[doc = ""] + pub select_all: ::std::option::Option, + #[doc = ""] + pub view_source: ::std::option::Option, + #[doc = ""] + pub get_source: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t), + >, + #[doc = ""] + pub get_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t), + >, + #[doc = ""] + pub load_request: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t, request: *mut _cef_request_t), + >, + #[doc = ""] + pub load_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t, url: *const cef_string_t), + >, + #[doc = ""] + pub execute_java_script: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_frame_t, + code: *const cef_string_t, + script_url: *const cef_string_t, + start_line: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub is_main: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_focused: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_identifier: + ::std::option::Option int64>, + #[doc = ""] + pub get_parent: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_browser: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> *mut _cef_browser_t, + >, + #[doc = ""] + pub get_v8context: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t) -> *mut _cef_v8context_t, + >, + #[doc = ""] + pub visit_dom: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_domvisitor_t), + >, + #[doc = ""] + pub create_urlrequest: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_frame_t, + request: *mut _cef_request_t, + client: *mut _cef_urlrequest_client_t, + ) -> *mut _cef_urlrequest_t, + >, + #[doc = ""] + pub send_process_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_frame_t, + target_process: cef_process_id_t::Type, + message: *mut _cef_process_message_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_frame_t() { + assert_eq!( + ::std::mem::size_of::<_cef_frame_t>(), + 120usize, + concat!("Size of: ", stringify!(_cef_frame_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_frame_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_frame_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).undo as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(undo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).redo as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(redo) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).cut as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(cut) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).copy as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).paste as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(paste) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).del as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(del) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).select_all as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(select_all) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).view_source as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(view_source) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_source as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_source) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_text as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_text) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).load_request as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(load_request) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).load_url as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(load_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_frame_t>())).execute_java_script as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(execute_java_script) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_main as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(is_main) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_focused as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(is_focused) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_name as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_identifier as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_identifier) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_parent as *const _ as usize }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_parent) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_url as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_browser as *const _ as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_browser) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_v8context as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(get_v8context) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).visit_dom as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(visit_dom) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).create_urlrequest as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(create_urlrequest) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_frame_t>())).send_process_message as *const _ as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_frame_t), + "::", + stringify!(send_process_message) + ) + ); +} +#[doc = ""] +pub type cef_frame_t = _cef_frame_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_x509cert_principal_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_display_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_common_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_locality_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_state_or_province_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_country_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_street_addresses: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509cert_principal_t, + addresses: cef_string_list_t, + ), + >, + #[doc = ""] + pub get_organization_names: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t, names: cef_string_list_t), + >, + #[doc = ""] + pub get_organization_unit_names: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509cert_principal_t, names: cef_string_list_t), + >, + #[doc = ""] + pub get_domain_components: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509cert_principal_t, + components: cef_string_list_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_x509cert_principal_t() { + assert_eq!( + ::std::mem::size_of::<_cef_x509cert_principal_t>(), + 56usize, + concat!("Size of: ", stringify!(_cef_x509cert_principal_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_x509cert_principal_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_x509cert_principal_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_display_name as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_display_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_common_name as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_common_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_locality_name as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_locality_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_state_or_province_name + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_state_or_province_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_country_name as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_country_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_street_addresses as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_street_addresses) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_organization_names as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_organization_names) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_organization_unit_names + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_organization_unit_names) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_domain_components as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509cert_principal_t), + "::", + stringify!(get_domain_components) + ) + ); +} +#[doc = ""] +pub type cef_x509cert_principal_t = _cef_x509cert_principal_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_x509certificate_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_subject: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509certificate_t, + ) -> *mut _cef_x509cert_principal_t, + >, + #[doc = ""] + pub get_issuer: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509certificate_t, + ) -> *mut _cef_x509cert_principal_t, + >, + #[doc = ""] + pub get_serial_number: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_valid_start: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> cef_time_t, + >, + #[doc = ""] + pub get_valid_expiry: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> cef_time_t, + >, + #[doc = ""] + pub get_derencoded: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_pemencoded: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, + >, + #[doc = ""] + pub get_issuer_chain_size: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_x509certificate_t) -> usize, + >, + #[doc = ""] + pub get_derencoded_issuer_chain: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509certificate_t, + chainCount: *mut usize, + chain: *mut *mut _cef_binary_value_t, + ), + >, + #[doc = ""] + pub get_pemencoded_issuer_chain: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_x509certificate_t, + chainCount: *mut usize, + chain: *mut *mut _cef_binary_value_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_x509certificate_t() { + assert_eq!( + ::std::mem::size_of::<_cef_x509certificate_t>(), + 60usize, + concat!("Size of: ", stringify!(_cef_x509certificate_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_x509certificate_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_x509certificate_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_x509certificate_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_subject as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_subject) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_issuer as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_issuer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_serial_number as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_serial_number) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_valid_start as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_valid_start) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_valid_expiry as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_valid_expiry) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_derencoded as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_derencoded) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_pemencoded as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_pemencoded) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_issuer_chain_size as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_issuer_chain_size) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_derencoded_issuer_chain + as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_derencoded_issuer_chain) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_pemencoded_issuer_chain + as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_x509certificate_t), + "::", + stringify!(get_pemencoded_issuer_chain) + ) + ); +} +#[doc = ""] +pub type cef_x509certificate_t = _cef_x509certificate_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_sslstatus_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_secure_connection: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslstatus_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_cert_status: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslstatus_t) -> cef_cert_status_t::Type, + >, + #[doc = ""] + pub get_sslversion: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_version_t::Type, + >, + #[doc = ""] + pub get_content_status: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_content_status_t::Type, + >, + #[doc = ""] + pub get_x509certificate: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslstatus_t) -> *mut _cef_x509certificate_t, + >, +} +#[test] +fn bindgen_test_layout__cef_sslstatus_t() { + assert_eq!( + ::std::mem::size_of::<_cef_sslstatus_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_sslstatus_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_sslstatus_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_sslstatus_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_sslstatus_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_sslstatus_t>())).is_secure_connection as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(is_secure_connection) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_cert_status as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(get_cert_status) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_sslversion as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(get_sslversion) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_content_status as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(get_content_status) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_x509certificate as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslstatus_t), + "::", + stringify!(get_x509certificate) + ) + ); +} +#[doc = ""] +pub type cef_sslstatus_t = _cef_sslstatus_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_navigation_entry_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_display_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_original_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_title: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_transition_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_navigation_entry_t, + ) -> cef_transition_type_t::Type, + >, + #[doc = ""] + pub has_post_data: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_completion_time: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> cef_time_t, + >, + #[doc = ""] + pub get_http_status_code: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_sslstatus: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_navigation_entry_t) -> *mut _cef_sslstatus_t, + >, +} +#[test] +fn bindgen_test_layout__cef_navigation_entry_t() { + assert_eq!( + ::std::mem::size_of::<_cef_navigation_entry_t>(), + 60usize, + concat!("Size of: ", stringify!(_cef_navigation_entry_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_navigation_entry_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_navigation_entry_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_navigation_entry_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).is_valid as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_url as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_display_url as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_display_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_original_url as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_original_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_title as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_title) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_transition_type as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_transition_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).has_post_data as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(has_post_data) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_completion_time as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_completion_time) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_http_status_code as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_http_status_code) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_sslstatus as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_t), + "::", + stringify!(get_sslstatus) + ) + ); +} +#[doc = ""] +pub type cef_navigation_entry_t = _cef_navigation_entry_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_registration_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, +} +#[test] +fn bindgen_test_layout__cef_registration_t() { + assert_eq!( + ::std::mem::size_of::<_cef_registration_t>(), + 20usize, + concat!("Size of: ", stringify!(_cef_registration_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_registration_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_registration_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_registration_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_registration_t), + "::", + stringify!(base) + ) + ); +} +#[doc = ""] +pub type cef_registration_t = _cef_registration_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option, + #[doc = ""] + pub cancel: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).cont as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).cancel as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_callback_t = _cef_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_completion_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_complete: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_completion_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_completion_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_completion_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_completion_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_completion_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_completion_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_completion_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_completion_callback_t>())).on_complete as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_completion_callback_t), + "::", + stringify!(on_complete) + ) + ); +} +#[doc = ""] +pub type cef_completion_callback_t = _cef_completion_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_cookie_manager_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub set_supported_schemes: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + schemes: cef_string_list_t, + include_defaults: ::std::os::raw::c_int, + callback: *mut _cef_completion_callback_t, + ), + >, + #[doc = ""] + pub visit_all_cookies: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + visitor: *mut _cef_cookie_visitor_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub visit_url_cookies: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + url: *const cef_string_t, + includeHttpOnly: ::std::os::raw::c_int, + visitor: *mut _cef_cookie_visitor_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_cookie: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + url: *const cef_string_t, + cookie: *const _cef_cookie_t, + callback: *mut _cef_set_cookie_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub delete_cookies: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + url: *const cef_string_t, + cookie_name: *const cef_string_t, + callback: *mut _cef_delete_cookies_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub flush_store: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_manager_t, + callback: *mut _cef_completion_callback_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_cookie_manager_t() { + assert_eq!( + ::std::mem::size_of::<_cef_cookie_manager_t>(), + 44usize, + concat!("Size of: ", stringify!(_cef_cookie_manager_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_cookie_manager_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_cookie_manager_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_manager_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).set_supported_schemes as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(set_supported_schemes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).visit_all_cookies as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(visit_all_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).visit_url_cookies as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(visit_url_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).set_cookie as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(set_cookie) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).delete_cookies as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(delete_cookies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_manager_t>())).flush_store as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_manager_t), + "::", + stringify!(flush_store) + ) + ); +} +#[doc = ""] +pub type cef_cookie_manager_t = _cef_cookie_manager_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_cookie_manager_get_global_manager( + callback: *mut _cef_completion_callback_t, + ) -> *mut cef_cookie_manager_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_cookie_visitor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub visit: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_visitor_t, + cookie: *const _cef_cookie_t, + count: ::std::os::raw::c_int, + total: ::std::os::raw::c_int, + deleteCookie: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_cookie_visitor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_cookie_visitor_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_cookie_visitor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_cookie_visitor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_cookie_visitor_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_visitor_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_visitor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_cookie_visitor_t>())).visit as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_visitor_t), + "::", + stringify!(visit) + ) + ); +} +#[doc = ""] +pub type cef_cookie_visitor_t = _cef_cookie_visitor_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_set_cookie_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_complete: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_set_cookie_callback_t, + success: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_set_cookie_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_set_cookie_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_set_cookie_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_set_cookie_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_set_cookie_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_set_cookie_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_set_cookie_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_set_cookie_callback_t>())).on_complete as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_set_cookie_callback_t), + "::", + stringify!(on_complete) + ) + ); +} +#[doc = ""] +pub type cef_set_cookie_callback_t = _cef_set_cookie_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_delete_cookies_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_complete: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_delete_cookies_callback_t, + num_deleted: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_delete_cookies_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_delete_cookies_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_delete_cookies_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_delete_cookies_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_delete_cookies_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_delete_cookies_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_delete_cookies_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_delete_cookies_callback_t>())).on_complete as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_delete_cookies_callback_t), + "::", + stringify!(on_complete) + ) + ); +} +#[doc = ""] +pub type cef_delete_cookies_callback_t = _cef_delete_cookies_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_extension_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_identifier: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_path: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_manifest: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_t, + that: *mut _cef_extension_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> *mut _cef_extension_handler_t, + >, + #[doc = ""] + pub get_loader_context: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> *mut _cef_request_context_t, + >, + #[doc = ""] + pub is_loaded: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_extension_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub unload: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_extension_t() { + assert_eq!( + ::std::mem::size_of::<_cef_extension_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_extension_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_extension_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_extension_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_identifier as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(get_identifier) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_path as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(get_path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_manifest as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(get_manifest) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).is_same as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_handler as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(get_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_t>())).get_loader_context as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(get_loader_context) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).is_loaded as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(is_loaded) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).unload as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_t), + "::", + stringify!(unload) + ) + ); +} +#[doc = ""] +pub type cef_extension_t = _cef_extension_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_get_extension_resource_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_get_extension_resource_callback_t, + stream: *mut _cef_stream_reader_t, + ), + >, + #[doc = ""] + pub cancel: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_get_extension_resource_callback_t), + >, +} +#[test] +fn bindgen_test_layout__cef_get_extension_resource_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_get_extension_resource_callback_t>(), + 28usize, + concat!( + "Size of: ", + stringify!(_cef_get_extension_resource_callback_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_cef_get_extension_resource_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_get_extension_resource_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).base as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_get_extension_resource_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).cont as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_get_extension_resource_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).cancel as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_get_extension_resource_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_get_extension_resource_callback_t = _cef_get_extension_resource_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_extension_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_extension_load_failed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + result: cef_errorcode_t::Type, + ), + >, + #[doc = ""] + pub on_extension_loaded: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + ), + >, + #[doc = ""] + pub on_extension_unloaded: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + ), + >, + #[doc = ""] + pub on_before_background_browser: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + url: *const cef_string_t, + client: *mut *mut _cef_client_t, + settings: *mut _cef_browser_settings_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_before_browser: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + browser: *mut _cef_browser_t, + active_browser: *mut _cef_browser_t, + index: ::std::os::raw::c_int, + url: *const cef_string_t, + active: ::std::os::raw::c_int, + windowInfo: *mut _cef_window_info_t, + client: *mut *mut _cef_client_t, + settings: *mut _cef_browser_settings_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_active_browser: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + browser: *mut _cef_browser_t, + include_incognito: ::std::os::raw::c_int, + ) -> *mut _cef_browser_t, + >, + #[doc = ""] + pub can_access_browser: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + browser: *mut _cef_browser_t, + include_incognito: ::std::os::raw::c_int, + target_browser: *mut _cef_browser_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_extension_resource: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_extension_handler_t, + extension: *mut _cef_extension_t, + browser: *mut _cef_browser_t, + file: *const cef_string_t, + callback: *mut _cef_get_extension_resource_callback_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_extension_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_extension_handler_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_extension_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_extension_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_extension_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_extension_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_load_failed + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(on_extension_load_failed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_loaded as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(on_extension_loaded) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_unloaded as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(on_extension_unloaded) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_before_background_browser + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(on_before_background_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_before_browser as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(on_before_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).get_active_browser as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(get_active_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).can_access_browser as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(can_access_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_extension_handler_t>())).get_extension_resource as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_extension_handler_t), + "::", + stringify!(get_extension_resource) + ) + ); +} +#[doc = ""] +pub type cef_extension_handler_t = _cef_extension_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_router_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub add_observer: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_router_t, + observer: *mut _cef_media_observer_t, + ) -> *mut _cef_registration_t, + >, + #[doc = ""] + pub get_source: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_router_t, + urn: *const cef_string_t, + ) -> *mut _cef_media_source_t, + >, + #[doc = ""] + pub notify_current_sinks: + ::std::option::Option, + #[doc = ""] + pub create_route: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_router_t, + source: *mut _cef_media_source_t, + sink: *mut _cef_media_sink_t, + callback: *mut _cef_media_route_create_callback_t, + ), + >, + #[doc = ""] + pub notify_current_routes: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_media_router_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_router_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_media_router_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_router_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_router_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_router_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_router_t>())).add_observer as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(add_observer) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_router_t>())).get_source as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(get_source) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_router_t>())).notify_current_sinks as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(notify_current_sinks) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_router_t>())).create_route as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(create_route) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_router_t>())).notify_current_routes as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_router_t), + "::", + stringify!(notify_current_routes) + ) + ); +} +#[doc = ""] +pub type cef_media_router_t = _cef_media_router_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_media_router_get_global() -> *mut cef_media_router_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_observer_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_sinks: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_observer_t, + sinksCount: usize, + sinks: *const *mut _cef_media_sink_t, + ), + >, + #[doc = ""] + pub on_routes: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_observer_t, + routesCount: usize, + routes: *const *mut _cef_media_route_t, + ), + >, + #[doc = ""] + pub on_route_state_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_observer_t, + route: *mut _cef_media_route_t, + state: cef_media_route_connection_state_t::Type, + ), + >, + #[doc = ""] + pub on_route_message_received: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_observer_t, + route: *mut _cef_media_route_t, + message: *const ::std::os::raw::c_void, + message_size: usize, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_media_observer_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_observer_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_media_observer_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_observer_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_observer_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_observer_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).on_sinks as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_observer_t), + "::", + stringify!(on_sinks) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).on_routes as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_observer_t), + "::", + stringify!(on_routes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_observer_t>())).on_route_state_changed as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_observer_t), + "::", + stringify!(on_route_state_changed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_observer_t>())).on_route_message_received as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_observer_t), + "::", + stringify!(on_route_message_received) + ) + ); +} +#[doc = ""] +pub type cef_media_observer_t = _cef_media_observer_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_route_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_id: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_route_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_source: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_source_t, + >, + #[doc = ""] + pub get_sink: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_sink_t, + >, + #[doc = ""] + pub send_route_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_route_t, + message: *const ::std::os::raw::c_void, + message_size: usize, + ), + >, + #[doc = ""] + pub terminate: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_media_route_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_route_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_media_route_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_route_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_route_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_id as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(get_id) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_source as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(get_source) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_sink as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(get_sink) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_route_t>())).send_route_message as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(send_route_message) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).terminate as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_t), + "::", + stringify!(terminate) + ) + ); +} +#[doc = ""] +pub type cef_media_route_t = _cef_media_route_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_route_create_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_media_route_create_finished: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_route_create_callback_t, + result: cef_media_route_create_result_t::Type, + error: *const cef_string_t, + route: *mut _cef_media_route_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_media_route_create_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_route_create_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_media_route_create_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_route_create_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_media_route_create_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_route_create_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_create_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_route_create_callback_t>())) + .on_media_route_create_finished as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_route_create_callback_t), + "::", + stringify!(on_media_route_create_finished) + ) + ); +} +#[doc = ""] +pub type cef_media_route_create_callback_t = _cef_media_route_create_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_sink_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_id: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_description: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_icon_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_sink_t, + ) -> cef_media_sink_icon_type_t::Type, + >, + #[doc = ""] + pub get_device_info: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_sink_t, + callback: *mut _cef_media_sink_device_info_callback_t, + ), + >, + #[doc = ""] + pub is_cast_sink: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_dial_sink: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_compatible_with: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_sink_t, + source: *mut _cef_media_source_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_media_sink_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_sink_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_media_sink_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_sink_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_sink_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_id as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(get_id) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_name as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(get_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_t>())).get_description as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(get_description) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_icon_type as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(get_icon_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_t>())).get_device_info as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(get_device_info) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).is_cast_sink as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(is_cast_sink) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).is_dial_sink as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(is_dial_sink) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_t>())).is_compatible_with as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_t), + "::", + stringify!(is_compatible_with) + ) + ); +} +#[doc = ""] +pub type cef_media_sink_t = _cef_media_sink_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_sink_device_info_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_media_sink_device_info: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_media_sink_device_info_callback_t, + device_info: *const _cef_media_sink_device_info_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_media_sink_device_info_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_sink_device_info_callback_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_cef_media_sink_device_info_callback_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_sink_device_info_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_media_sink_device_info_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_device_info_callback_t>())).base as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_device_info_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_sink_device_info_callback_t>())) + .on_media_sink_device_info as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_sink_device_info_callback_t), + "::", + stringify!(on_media_sink_device_info) + ) + ); +} +#[doc = ""] +pub type cef_media_sink_device_info_callback_t = _cef_media_sink_device_info_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_media_source_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_id: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_source_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub is_cast_source: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_dial_source: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_media_source_t() { + assert_eq!( + ::std::mem::size_of::<_cef_media_source_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_media_source_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_media_source_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_media_source_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_source_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_source_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_media_source_t>())).get_id as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_source_t), + "::", + stringify!(get_id) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_source_t>())).is_cast_source as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_source_t), + "::", + stringify!(is_cast_source) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_media_source_t>())).is_dial_source as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_media_source_t), + "::", + stringify!(is_dial_source) + ) + ); +} +#[doc = ""] +pub type cef_media_source_t = _cef_media_source_t; +#[repr(C)] +#[derive(Debug, Copy, Clone)] +pub struct _cef_request_context_handler_t { + _unused: [u8; 0], +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resolve_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_resolve_completed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resolve_callback_t, + result: cef_errorcode_t::Type, + resolved_ips: cef_string_list_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_resolve_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resolve_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_resolve_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resolve_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resolve_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resolve_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resolve_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resolve_callback_t>())).on_resolve_completed as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resolve_callback_t), + "::", + stringify!(on_resolve_completed) + ) + ); +} +#[doc = ""] +pub type cef_resolve_callback_t = _cef_resolve_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_request_context_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + other: *mut _cef_request_context_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_sharing_with: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + other: *mut _cef_request_context_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_global: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + ) -> *mut _cef_request_context_handler_t, + >, + #[doc = ""] + pub get_cache_path: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_context_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_cookie_manager: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + callback: *mut _cef_completion_callback_t, + ) -> *mut _cef_cookie_manager_t, + >, + #[doc = ""] + pub register_scheme_handler_factory: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + scheme_name: *const cef_string_t, + domain_name: *const cef_string_t, + factory: *mut _cef_scheme_handler_factory_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub clear_scheme_handler_factories: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub purge_plugin_list_cache: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + reload_pages: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub has_preference: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + name: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_preference: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + name: *const cef_string_t, + ) -> *mut _cef_value_t, + >, + #[doc = ""] + pub get_all_preferences: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + include_defaults: ::std::os::raw::c_int, + ) -> *mut _cef_dictionary_value_t, + >, + #[doc = ""] + pub can_set_preference: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + name: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_preference: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + name: *const cef_string_t, + value: *mut _cef_value_t, + error: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub clear_certificate_exceptions: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + callback: *mut _cef_completion_callback_t, + ), + >, + #[doc = ""] + pub clear_http_auth_credentials: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + callback: *mut _cef_completion_callback_t, + ), + >, + #[doc = ""] + pub close_all_connections: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + callback: *mut _cef_completion_callback_t, + ), + >, + #[doc = ""] + pub resolve_host: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + origin: *const cef_string_t, + callback: *mut _cef_resolve_callback_t, + ), + >, + #[doc = ""] + pub load_extension: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + root_directory: *const cef_string_t, + manifest: *mut _cef_dictionary_value_t, + handler: *mut _cef_extension_handler_t, + ), + >, + #[doc = ""] + pub did_load_extension: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + extension_id: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_extension: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + extension_id: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_extensions: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + extension_ids: cef_string_list_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_extension: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_context_t, + extension_id: *const cef_string_t, + ) -> *mut _cef_extension_t, + >, + #[doc = ""] + pub get_media_router: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_request_context_t) -> *mut _cef_media_router_t, + >, +} +#[test] +fn bindgen_test_layout__cef_request_context_t() { + assert_eq!( + ::std::mem::size_of::<_cef_request_context_t>(), + 116usize, + concat!("Size of: ", stringify!(_cef_request_context_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_request_context_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_request_context_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_context_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_context_t>())).is_same as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).is_sharing_with as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(is_sharing_with) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).is_global as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(is_global) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_handler as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_cache_path as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_cache_path) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_cookie_manager as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_cookie_manager) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).register_scheme_handler_factory + as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(register_scheme_handler_factory) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).clear_scheme_handler_factories + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(clear_scheme_handler_factories) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).purge_plugin_list_cache as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(purge_plugin_list_cache) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).has_preference as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(has_preference) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_preference as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_preference) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_all_preferences as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_all_preferences) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).can_set_preference as *const _ + as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(can_set_preference) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).set_preference as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(set_preference) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).clear_certificate_exceptions + as *const _ as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(clear_certificate_exceptions) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).clear_http_auth_credentials + as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(clear_http_auth_credentials) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).close_all_connections as *const _ + as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(close_all_connections) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).resolve_host as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(resolve_host) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).load_extension as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(load_extension) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).did_load_extension as *const _ + as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(did_load_extension) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).has_extension as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(has_extension) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_extensions as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_extensions) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_extension as *const _ as usize + }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_extension) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_context_t>())).get_media_router as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_context_t), + "::", + stringify!(get_media_router) + ) + ); +} +#[doc = ""] +pub type cef_request_context_t = _cef_request_context_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_request_context_get_global_context() -> *mut cef_request_context_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_request_context_create_context( + settings: *const _cef_request_context_settings_t, + handler: *mut _cef_request_context_handler_t, + ) -> *mut cef_request_context_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_create_context_shared( + other: *mut cef_request_context_t, handler: *mut _cef_request_context_handler_t, + ) -> *mut cef_request_context_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_browser_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_host: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t, + >, + #[doc = ""] + pub can_go_back: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub go_back: ::std::option::Option, + #[doc = ""] + pub can_go_forward: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub go_forward: ::std::option::Option, + #[doc = ""] + pub is_loading: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub reload: ::std::option::Option, + #[doc = ""] + pub reload_ignore_cache: + ::std::option::Option, + #[doc = ""] + pub stop_load: ::std::option::Option, + #[doc = ""] + pub get_identifier: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_t, + that: *mut _cef_browser_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_popup: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_document: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_main_frame: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_focused_frame: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_frame_byident: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_t, + identifier: int64, + ) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_frame: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_t, + name: *const cef_string_t, + ) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_frame_count: + ::std::option::Option usize>, + #[doc = ""] + pub get_frame_identifiers: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_t, + identifiersCount: *mut usize, + identifiers: *mut int64, + ), + >, + #[doc = ""] + pub get_frame_names: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_t, names: cef_string_list_t), + >, +} +#[test] +fn bindgen_test_layout__cef_browser_t() { + assert_eq!( + ::std::mem::size_of::<_cef_browser_t>(), + 100usize, + concat!("Size of: ", stringify!(_cef_browser_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_browser_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_browser_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_host as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_host) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).can_go_back as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(can_go_back) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).go_back as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(go_back) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).can_go_forward as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(can_go_forward) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).go_forward as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(go_forward) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_loading as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(is_loading) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).reload as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(reload) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_t>())).reload_ignore_cache as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(reload_ignore_cache) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).stop_load as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(stop_load) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_identifier as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_identifier) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_same as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_popup as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(is_popup) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).has_document as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(has_document) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_main_frame as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_main_frame) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_t>())).get_focused_frame as *const _ as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_focused_frame) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_byident as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_frame_byident) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_frame) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_count as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_frame_count) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_identifiers as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_frame_identifiers) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_names as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_t), + "::", + stringify!(get_frame_names) + ) + ); +} +#[doc = ""] +pub type cef_browser_t = _cef_browser_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_run_file_dialog_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_file_dialog_dismissed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_run_file_dialog_callback_t, + selected_accept_filter: ::std::os::raw::c_int, + file_paths: cef_string_list_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_run_file_dialog_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_run_file_dialog_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_run_file_dialog_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_run_file_dialog_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_run_file_dialog_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_run_file_dialog_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_run_file_dialog_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_run_file_dialog_callback_t>())).on_file_dialog_dismissed + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_run_file_dialog_callback_t), + "::", + stringify!(on_file_dialog_dismissed) + ) + ); +} +#[doc = ""] +pub type cef_run_file_dialog_callback_t = _cef_run_file_dialog_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_navigation_entry_visitor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub visit: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_navigation_entry_visitor_t, + entry: *mut _cef_navigation_entry_t, + current: ::std::os::raw::c_int, + index: ::std::os::raw::c_int, + total: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_navigation_entry_visitor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_navigation_entry_visitor_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_navigation_entry_visitor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_navigation_entry_visitor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_navigation_entry_visitor_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_visitor_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_visitor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_navigation_entry_visitor_t>())).visit as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_navigation_entry_visitor_t), + "::", + stringify!(visit) + ) + ); +} +#[doc = ""] +pub type cef_navigation_entry_visitor_t = _cef_navigation_entry_visitor_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_pdf_print_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_pdf_print_finished: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_pdf_print_callback_t, + path: *const cef_string_t, + ok: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_pdf_print_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_pdf_print_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_pdf_print_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_pdf_print_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_pdf_print_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_pdf_print_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_pdf_print_callback_t>())).on_pdf_print_finished as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_pdf_print_callback_t), + "::", + stringify!(on_pdf_print_finished) + ) + ); +} +#[doc = ""] +pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_download_image_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_download_image_finished: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_download_image_callback_t, + image_url: *const cef_string_t, + http_status_code: ::std::os::raw::c_int, + image: *mut _cef_image_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_download_image_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_download_image_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_download_image_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_download_image_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_download_image_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_image_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_image_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_image_callback_t>())).on_download_image_finished + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_image_callback_t), + "::", + stringify!(on_download_image_finished) + ) + ); +} +#[doc = ""] +pub type cef_download_image_callback_t = _cef_download_image_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_browser_host_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_browser: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_browser_t, + >, + #[doc = ""] + pub close_browser: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + force_close: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub try_close_browser: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_focus: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, focus: ::std::os::raw::c_int), + >, + #[doc = ""] + pub get_window_handle: + ::std::option::Option HWND>, + #[doc = ""] + pub get_opener_window_handle: + ::std::option::Option HWND>, + #[doc = ""] + pub has_view: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_client: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_client_t, + >, + #[doc = ""] + pub get_request_context: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_request_context_t, + >, + #[doc = ""] + pub get_zoom_level: + ::std::option::Option f64>, + #[doc = ""] + pub set_zoom_level: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, zoomLevel: f64), + >, + #[doc = ""] + pub run_file_dialog: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + mode: cef_file_dialog_mode_t::Type, + title: *const cef_string_t, + default_file_path: *const cef_string_t, + accept_filters: cef_string_list_t, + selected_accept_filter: ::std::os::raw::c_int, + callback: *mut _cef_run_file_dialog_callback_t, + ), + >, + #[doc = ""] + pub start_download: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, url: *const cef_string_t), + >, + #[doc = ""] + pub download_image: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + image_url: *const cef_string_t, + is_favicon: ::std::os::raw::c_int, + max_image_size: uint32, + bypass_cache: ::std::os::raw::c_int, + callback: *mut _cef_download_image_callback_t, + ), + >, + #[doc = ""] + pub print: ::std::option::Option, + #[doc = ""] + pub print_to_pdf: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + path: *const cef_string_t, + settings: *const _cef_pdf_print_settings_t, + callback: *mut _cef_pdf_print_callback_t, + ), + >, + #[doc = ""] + pub find: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + identifier: ::std::os::raw::c_int, + searchText: *const cef_string_t, + forward: ::std::os::raw::c_int, + matchCase: ::std::os::raw::c_int, + findNext: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub stop_finding: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + clearSelection: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub show_dev_tools: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + windowInfo: *const _cef_window_info_t, + client: *mut _cef_client_t, + settings: *const _cef_browser_settings_t, + inspect_element_at: *const cef_point_t, + ), + >, + #[doc = ""] + pub close_dev_tools: + ::std::option::Option, + #[doc = ""] + pub has_dev_tools: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub send_dev_tools_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + message: *const ::std::os::raw::c_void, + message_size: usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub execute_dev_tools_method: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + message_id: ::std::os::raw::c_int, + method: *const cef_string_t, + params: *mut _cef_dictionary_value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_dev_tools_message_observer: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + observer: *mut _cef_dev_tools_message_observer_t, + ) -> *mut _cef_registration_t, + >, + #[doc = ""] + pub get_navigation_entries: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + visitor: *mut _cef_navigation_entry_visitor_t, + current_only: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub replace_misspelling: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t), + >, + #[doc = ""] + pub add_word_to_dictionary: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t), + >, + #[doc = ""] + pub is_window_rendering_disabled: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub was_resized: + ::std::option::Option, + #[doc = ""] + pub was_hidden: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, hidden: ::std::os::raw::c_int), + >, + #[doc = ""] + pub notify_screen_info_changed: + ::std::option::Option, + #[doc = ""] + pub invalidate: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + type_: cef_paint_element_type_t::Type, + ), + >, + #[doc = ""] + pub send_external_begin_frame: + ::std::option::Option, + #[doc = ""] + pub send_key_event: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, event: *const _cef_key_event_t), + >, + #[doc = ""] + pub send_mouse_click_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_mouse_event_t, + type_: cef_mouse_button_type_t::Type, + mouseUp: ::std::os::raw::c_int, + clickCount: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub send_mouse_move_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_mouse_event_t, + mouseLeave: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub send_mouse_wheel_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_mouse_event_t, + deltaX: ::std::os::raw::c_int, + deltaY: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub send_touch_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_touch_event_t, + ), + >, + #[doc = ""] + pub send_focus_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + setFocus: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub send_capture_lost_event: + ::std::option::Option, + #[doc = ""] + pub notify_move_or_resize_started: + ::std::option::Option, + #[doc = ""] + pub get_windowless_frame_rate: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_windowless_frame_rate: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + frame_rate: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub ime_set_composition: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + text: *const cef_string_t, + underlinesCount: usize, + underlines: *const cef_composition_underline_t, + replacement_range: *const cef_range_t, + selection_range: *const cef_range_t, + ), + >, + #[doc = ""] + pub ime_commit_text: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + text: *const cef_string_t, + replacement_range: *const cef_range_t, + relative_cursor_pos: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub ime_finish_composing_text: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + keep_selection: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub ime_cancel_composition: + ::std::option::Option, + #[doc = ""] + pub drag_target_drag_enter: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + drag_data: *mut _cef_drag_data_t, + event: *const _cef_mouse_event_t, + allowed_ops: cef_drag_operations_mask_t, + ), + >, + #[doc = ""] + pub drag_target_drag_over: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_mouse_event_t, + allowed_ops: cef_drag_operations_mask_t, + ), + >, + #[doc = ""] + pub drag_target_drag_leave: + ::std::option::Option, + #[doc = ""] + pub drag_target_drop: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + event: *const _cef_mouse_event_t, + ), + >, + #[doc = ""] + pub drag_source_ended_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + op: cef_drag_operations_mask_t, + ), + >, + #[doc = ""] + pub drag_source_system_drag_ended: + ::std::option::Option, + #[doc = ""] + pub get_visible_navigation_entry: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_navigation_entry_t, + >, + #[doc = ""] + pub set_accessibility_state: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + accessibility_state: cef_state_t::Type, + ), + >, + #[doc = ""] + pub set_auto_resize_enabled: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_host_t, + enabled: ::std::os::raw::c_int, + min_size: *const cef_size_t, + max_size: *const cef_size_t, + ), + >, + #[doc = ""] + pub get_extension: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_extension_t, + >, + #[doc = ""] + pub is_background_host: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_audio_muted: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t, mute: ::std::os::raw::c_int), + >, + #[doc = ""] + pub is_audio_muted: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_browser_host_t() { + assert_eq!( + ::std::mem::size_of::<_cef_browser_host_t>(), + 260usize, + concat!("Size of: ", stringify!(_cef_browser_host_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_browser_host_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_browser_host_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).get_browser as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).close_browser as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(close_browser) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).try_close_browser as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(try_close_browser) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).set_focus as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_focus) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_window_handle as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_window_handle) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_opener_window_handle as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_opener_window_handle) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).has_view as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(has_view) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).get_client as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_client) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_request_context as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_request_context) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_zoom_level as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_zoom_level) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).set_zoom_level as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_zoom_level) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).run_file_dialog as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(run_file_dialog) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).start_download as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(start_download) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).download_image as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(download_image) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).print as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(print) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).print_to_pdf as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(print_to_pdf) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).find as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(find) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).stop_finding as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(stop_finding) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).show_dev_tools as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(show_dev_tools) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).close_dev_tools as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(close_dev_tools) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).has_dev_tools as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(has_dev_tools) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_dev_tools_message as *const _ + as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_dev_tools_message) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).execute_dev_tools_method as *const _ + as usize + }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(execute_dev_tools_method) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).add_dev_tools_message_observer + as *const _ as usize + }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(add_dev_tools_message_observer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_navigation_entries as *const _ + as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_navigation_entries) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).replace_misspelling as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(replace_misspelling) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).add_word_to_dictionary as *const _ + as usize + }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(add_word_to_dictionary) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).is_window_rendering_disabled as *const _ + as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(is_window_rendering_disabled) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).was_resized as *const _ as usize }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(was_resized) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).was_hidden as *const _ as usize }, + 136usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(was_hidden) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).notify_screen_info_changed as *const _ + as usize + }, + 140usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(notify_screen_info_changed) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).invalidate as *const _ as usize }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(invalidate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_external_begin_frame as *const _ + as usize + }, + 148usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_external_begin_frame) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_key_event as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_key_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_click_event as *const _ + as usize + }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_mouse_click_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_move_event as *const _ + as usize + }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_mouse_move_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_wheel_event as *const _ + as usize + }, + 164usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_mouse_wheel_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_touch_event as *const _ as usize + }, + 168usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_touch_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_focus_event as *const _ as usize + }, + 172usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_focus_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).send_capture_lost_event as *const _ + as usize + }, + 176usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(send_capture_lost_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).notify_move_or_resize_started + as *const _ as usize + }, + 180usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(notify_move_or_resize_started) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_windowless_frame_rate as *const _ + as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_windowless_frame_rate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).set_windowless_frame_rate as *const _ + as usize + }, + 188usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_windowless_frame_rate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_set_composition as *const _ as usize + }, + 192usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(ime_set_composition) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_commit_text as *const _ as usize + }, + 196usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(ime_commit_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_finish_composing_text as *const _ + as usize + }, + 200usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(ime_finish_composing_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_cancel_composition as *const _ + as usize + }, + 204usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(ime_cancel_composition) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_enter as *const _ + as usize + }, + 208usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_target_drag_enter) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_over as *const _ + as usize + }, + 212usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_target_drag_over) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_leave as *const _ + as usize + }, + 216usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_target_drag_leave) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drop as *const _ as usize + }, + 220usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_target_drop) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_source_ended_at as *const _ + as usize + }, + 224usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_source_ended_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_source_system_drag_ended + as *const _ as usize + }, + 228usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(drag_source_system_drag_ended) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_visible_navigation_entry as *const _ + as usize + }, + 232usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_visible_navigation_entry) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).set_accessibility_state as *const _ + as usize + }, + 236usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_accessibility_state) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).set_auto_resize_enabled as *const _ + as usize + }, + 240usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_auto_resize_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).get_extension as *const _ as usize + }, + 244usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(get_extension) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).is_background_host as *const _ as usize + }, + 248usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(is_background_host) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).set_audio_muted as *const _ as usize + }, + 252usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(set_audio_muted) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_host_t>())).is_audio_muted as *const _ as usize + }, + 256usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_host_t), + "::", + stringify!(is_audio_muted) + ) + ); +} +#[doc = ""] +pub type cef_browser_host_t = _cef_browser_host_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_browser_host_create_browser( + windowInfo: *const cef_window_info_t, client: *mut _cef_client_t, url: *const cef_string_t, + settings: *const _cef_browser_settings_t, extra_info: *mut _cef_dictionary_value_t, + request_context: *mut _cef_request_context_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_browser_host_create_browser_sync( + windowInfo: *const cef_window_info_t, client: *mut _cef_client_t, url: *const cef_string_t, + settings: *const _cef_browser_settings_t, extra_info: *mut _cef_dictionary_value_t, + request_context: *mut _cef_request_context_t, + ) -> *mut cef_browser_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_audio_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_audio_parameters: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_audio_handler_t, + browser: *mut _cef_browser_t, + params: *mut cef_audio_parameters_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_audio_stream_started: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_audio_handler_t, + browser: *mut _cef_browser_t, + params: *const cef_audio_parameters_t, + channels: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_audio_stream_packet: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_audio_handler_t, + browser: *mut _cef_browser_t, + data: *mut *const f32, + frames: ::std::os::raw::c_int, + pts: int64, + ), + >, + #[doc = ""] + pub on_audio_stream_stopped: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_audio_handler_t, browser: *mut _cef_browser_t), + >, + #[doc = ""] + pub on_audio_stream_error: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_audio_handler_t, + browser: *mut _cef_browser_t, + message: *const cef_string_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_audio_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_audio_handler_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_audio_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_audio_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_audio_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_audio_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_handler_t>())).get_audio_parameters as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(get_audio_parameters) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_started as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(on_audio_stream_started) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_packet as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(on_audio_stream_packet) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_stopped as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(on_audio_stream_stopped) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_error as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_audio_handler_t), + "::", + stringify!(on_audio_stream_error) + ) + ); +} +#[doc = ""] +pub type cef_audio_handler_t = _cef_audio_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_menu_model_delegate_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub execute_command: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + event_flags: cef_event_flags_t::Type, + ), + >, + #[doc = ""] + pub mouse_outside_menu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + screen_point: *const cef_point_t, + ), + >, + #[doc = ""] + pub unhandled_open_submenu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + is_rtl: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub unhandled_close_submenu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + is_rtl: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub menu_will_show: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + ), + >, + #[doc = ""] + pub menu_closed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + ), + >, + #[doc = ""] + pub format_label: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_delegate_t, + menu_model: *mut _cef_menu_model_t, + label: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_menu_model_delegate_t() { + assert_eq!( + ::std::mem::size_of::<_cef_menu_model_delegate_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_menu_model_delegate_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_menu_model_delegate_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_menu_model_delegate_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).execute_command as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(execute_command) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).mouse_outside_menu as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(mouse_outside_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).unhandled_open_submenu + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(unhandled_open_submenu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).unhandled_close_submenu + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(unhandled_close_submenu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).menu_will_show as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(menu_will_show) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).menu_closed as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(menu_closed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).format_label as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_delegate_t), + "::", + stringify!(format_label) + ) + ); +} +#[doc = ""] +pub type cef_menu_model_delegate_t = _cef_menu_model_delegate_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_menu_model_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_sub_menu: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub clear: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_count: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_separator: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_item: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_check_item: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_radio_item: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + group_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub add_sub_menu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> *mut _cef_menu_model_t, + >, + #[doc = ""] + pub insert_separator_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub insert_item_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub insert_check_item_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub insert_radio_item_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + group_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub insert_sub_menu_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> *mut _cef_menu_model_t, + >, + #[doc = ""] + pub remove: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_index_of: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_command_id_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_command_id_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_label: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_label_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_label: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_label_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + label: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> cef_menu_item_type_t::Type, + >, + #[doc = ""] + pub get_type_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> cef_menu_item_type_t::Type, + >, + #[doc = ""] + pub get_group_id: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_group_id_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_group_id: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + group_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_group_id_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + group_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_sub_menu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> *mut _cef_menu_model_t, + >, + #[doc = ""] + pub get_sub_menu_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> *mut _cef_menu_model_t, + >, + #[doc = ""] + pub is_visible: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_visible_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_visible: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + visible: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_visible_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + visible: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_enabled: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_enabled_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_enabled: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + enabled: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_enabled_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + enabled: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_checked: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_checked_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_checked: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + checked: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_checked_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + checked: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_accelerator: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_accelerator_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_accelerator: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + key_code: ::std::os::raw::c_int, + shift_pressed: ::std::os::raw::c_int, + ctrl_pressed: ::std::os::raw::c_int, + alt_pressed: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_accelerator_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + key_code: ::std::os::raw::c_int, + shift_pressed: ::std::os::raw::c_int, + ctrl_pressed: ::std::os::raw::c_int, + alt_pressed: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove_accelerator: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub remove_accelerator_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_accelerator: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + key_code: *mut ::std::os::raw::c_int, + shift_pressed: *mut ::std::os::raw::c_int, + ctrl_pressed: *mut ::std::os::raw::c_int, + alt_pressed: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_accelerator_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + key_code: *mut ::std::os::raw::c_int, + shift_pressed: *mut ::std::os::raw::c_int, + ctrl_pressed: *mut ::std::os::raw::c_int, + alt_pressed: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_color: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + color_type: cef_menu_color_type_t::Type, + color: cef_color_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_color_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + color_type: cef_menu_color_type_t::Type, + color: cef_color_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_color: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + color_type: cef_menu_color_type_t::Type, + color: *mut cef_color_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_color_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + color_type: cef_menu_color_type_t::Type, + color: *mut cef_color_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_font_list: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + command_id: ::std::os::raw::c_int, + font_list: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_font_list_at: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_menu_model_t, + index: ::std::os::raw::c_int, + font_list: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_menu_model_t() { + assert_eq!( + ::std::mem::size_of::<_cef_menu_model_t>(), + 244usize, + concat!("Size of: ", stringify!(_cef_menu_model_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_menu_model_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_menu_model_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_sub_menu as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_sub_menu) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).clear as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(clear) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_count as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_count) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_separator as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(add_separator) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_item as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(add_item) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).add_check_item as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(add_check_item) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).add_radio_item as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(add_radio_item) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_sub_menu as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(add_sub_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_separator_at as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(insert_separator_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_item_at as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(insert_item_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_check_item_at as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(insert_check_item_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_radio_item_at as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(insert_radio_item_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_sub_menu_at as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(insert_sub_menu_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).remove as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(remove) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_at as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(remove_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_index_of as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_index_of) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).get_command_id_at as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_command_id_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_command_id_at as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_command_id_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_label as *const _ as usize }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_label) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_label_at as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_label_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_label as *const _ as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_label) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_label_at as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_label_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_type as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_type_at as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_type_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_group_id as *const _ as usize }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_group_id) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).get_group_id_at as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_group_id_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_group_id as *const _ as usize }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_group_id) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_group_id_at as *const _ as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_group_id_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_sub_menu as *const _ as usize }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_sub_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).get_sub_menu_at as *const _ as usize + }, + 136usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_sub_menu_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_visible as *const _ as usize }, + 140usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_visible) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_visible_at as *const _ as usize }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_visible_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_visible as *const _ as usize }, + 148usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_visible) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_visible_at as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_visible_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_enabled as *const _ as usize }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_enabled) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_enabled_at as *const _ as usize }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_enabled_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_enabled as *const _ as usize }, + 164usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_enabled_at as *const _ as usize + }, + 168usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_enabled_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_checked as *const _ as usize }, + 172usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_checked) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_checked_at as *const _ as usize }, + 176usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(is_checked_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_checked as *const _ as usize }, + 180usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_checked) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_checked_at as *const _ as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_checked_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).has_accelerator as *const _ as usize + }, + 188usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(has_accelerator) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).has_accelerator_at as *const _ as usize + }, + 192usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(has_accelerator_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_accelerator as *const _ as usize + }, + 196usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_accelerator) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_accelerator_at as *const _ as usize + }, + 200usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_accelerator_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_accelerator as *const _ as usize + }, + 204usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(remove_accelerator) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_accelerator_at as *const _ as usize + }, + 208usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(remove_accelerator_at) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).get_accelerator as *const _ as usize + }, + 212usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_accelerator) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).get_accelerator_at as *const _ as usize + }, + 216usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_accelerator_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_color as *const _ as usize }, + 220usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_color) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_color_at as *const _ as usize }, + 224usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_color_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_color as *const _ as usize }, + 228usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_color) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_color_at as *const _ as usize }, + 232usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(get_color_at) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_font_list as *const _ as usize }, + 236usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_font_list) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_menu_model_t>())).set_font_list_at as *const _ as usize + }, + 240usize, + concat!( + "Offset of field: ", + stringify!(_cef_menu_model_t), + "::", + stringify!(set_font_list_at) + ) + ); +} +#[doc = ""] +pub type cef_menu_model_t = _cef_menu_model_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_menu_model_create( + delegate: *mut _cef_menu_model_delegate_t, + ) -> *mut cef_menu_model_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_run_context_menu_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_run_context_menu_callback_t, + command_id: ::std::os::raw::c_int, + event_flags: cef_event_flags_t::Type, + ), + >, + #[doc = ""] + pub cancel: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_run_context_menu_callback_t), + >, +} +#[test] +fn bindgen_test_layout__cef_run_context_menu_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_run_context_menu_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_run_context_menu_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_run_context_menu_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_run_context_menu_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_run_context_menu_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_run_context_menu_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).cancel as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_run_context_menu_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_run_context_menu_callback_t = _cef_run_context_menu_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_context_menu_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_before_context_menu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + params: *mut _cef_context_menu_params_t, + model: *mut _cef_menu_model_t, + ), + >, + #[doc = ""] + pub run_context_menu: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + params: *mut _cef_context_menu_params_t, + model: *mut _cef_menu_model_t, + callback: *mut _cef_run_context_menu_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_context_menu_command: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + params: *mut _cef_context_menu_params_t, + command_id: ::std::os::raw::c_int, + event_flags: cef_event_flags_t::Type, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_context_menu_dismissed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_context_menu_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_context_menu_handler_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_context_menu_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_context_menu_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_context_menu_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_before_context_menu + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_handler_t), + "::", + stringify!(on_before_context_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).run_context_menu as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_handler_t), + "::", + stringify!(run_context_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_context_menu_command + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_handler_t), + "::", + stringify!(on_context_menu_command) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_context_menu_dismissed + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_handler_t), + "::", + stringify!(on_context_menu_dismissed) + ) + ); +} +#[doc = ""] +pub type cef_context_menu_handler_t = _cef_context_menu_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_context_menu_params_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_xcoord: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_ycoord: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_type_flags: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_params_t, + ) -> cef_context_menu_type_flags_t::Type, + >, + #[doc = ""] + pub get_link_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_unfiltered_link_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_source_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub has_image_contents: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_title_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_page_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_frame_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_frame_charset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_media_type: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_params_t, + ) -> cef_context_menu_media_type_t::Type, + >, + #[doc = ""] + pub get_media_state_flags: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_params_t, + ) -> cef_context_menu_media_state_flags_t::Type, + >, + #[doc = ""] + pub get_selection_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_misspelled_word: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_dictionary_suggestions: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_params_t, + suggestions: cef_string_list_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_editable: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_spell_check_enabled: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_edit_state_flags: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_context_menu_params_t, + ) -> cef_context_menu_edit_state_flags_t::Type, + >, + #[doc = ""] + pub is_custom_menu: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_pepper_menu: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_context_menu_params_t() { + assert_eq!( + ::std::mem::size_of::<_cef_context_menu_params_t>(), + 104usize, + concat!("Size of: ", stringify!(_cef_context_menu_params_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_context_menu_params_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_context_menu_params_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_context_menu_params_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_xcoord as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_xcoord) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_ycoord as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_ycoord) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_type_flags as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_type_flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_link_url as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_link_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_unfiltered_link_url + as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_unfiltered_link_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_source_url as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_source_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).has_image_contents as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(has_image_contents) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_title_text as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_title_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_page_url as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_page_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_frame_url as *const _ + as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_frame_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_frame_charset as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_frame_charset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_media_type as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_media_type) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_media_state_flags as *const _ + as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_media_state_flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_selection_text as *const _ + as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_selection_text) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_misspelled_word as *const _ + as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_misspelled_word) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_dictionary_suggestions + as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_dictionary_suggestions) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_editable as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(is_editable) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_spell_check_enabled + as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(is_spell_check_enabled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_edit_state_flags as *const _ + as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(get_edit_state_flags) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_custom_menu as *const _ + as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(is_custom_menu) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_pepper_menu as *const _ + as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_context_menu_params_t), + "::", + stringify!(is_pepper_menu) + ) + ); +} +#[doc = ""] +pub type cef_context_menu_params_t = _cef_context_menu_params_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_file_dialog_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_file_dialog_callback_t, + selected_accept_filter: ::std::os::raw::c_int, + file_paths: cef_string_list_t, + ), + >, + #[doc = ""] + pub cancel: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_file_dialog_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_file_dialog_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_file_dialog_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_file_dialog_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_file_dialog_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_file_dialog_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_file_dialog_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).cancel as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_file_dialog_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_file_dialog_callback_t = _cef_file_dialog_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_dialog_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_file_dialog: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_dialog_handler_t, + browser: *mut _cef_browser_t, + mode: cef_file_dialog_mode_t::Type, + title: *const cef_string_t, + default_file_path: *const cef_string_t, + accept_filters: cef_string_list_t, + selected_accept_filter: ::std::os::raw::c_int, + callback: *mut _cef_file_dialog_callback_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_dialog_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_dialog_handler_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_dialog_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_dialog_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_dialog_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_dialog_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_dialog_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_dialog_handler_t>())).on_file_dialog as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_dialog_handler_t), + "::", + stringify!(on_file_dialog) + ) + ); +} +#[doc = ""] +pub type cef_dialog_handler_t = _cef_dialog_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_display_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_address_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + url: *const cef_string_t, + ), + >, + #[doc = ""] + pub on_title_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + title: *const cef_string_t, + ), + >, + #[doc = ""] + pub on_favicon_urlchange: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + icon_urls: cef_string_list_t, + ), + >, + #[doc = ""] + pub on_fullscreen_mode_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + fullscreen: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_tooltip: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + text: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_status_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + value: *const cef_string_t, + ), + >, + #[doc = ""] + pub on_console_message: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + level: cef_log_severity_t::Type, + message: *const cef_string_t, + source: *const cef_string_t, + line: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_auto_resize: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + new_size: *const cef_size_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_loading_progress_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + progress: f64, + ), + >, + #[doc = ""] + pub on_cursor_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_display_handler_t, + browser: *mut _cef_browser_t, + cursor: HCURSOR, + type_: cef_cursor_type_t::Type, + custom_cursor_info: *const _cef_cursor_info_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_display_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_display_handler_t>(), + 60usize, + concat!("Size of: ", stringify!(_cef_display_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_display_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_display_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_display_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_address_change as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_address_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_title_change as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_title_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_favicon_urlchange as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_favicon_urlchange) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_fullscreen_mode_change as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_fullscreen_mode_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_tooltip as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_tooltip) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_status_message as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_status_message) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_console_message as *const _ + as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_console_message) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_auto_resize as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_auto_resize) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_loading_progress_change + as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_loading_progress_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_display_handler_t>())).on_cursor_change as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_display_handler_t), + "::", + stringify!(on_cursor_change) + ) + ); +} +#[doc = ""] +pub type cef_display_handler_t = _cef_display_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_download_item_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_in_progress: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_complete: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_canceled: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_current_speed: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> int64, + >, + #[doc = ""] + pub get_percent_complete: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_total_bytes: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> int64, + >, + #[doc = ""] + pub get_received_bytes: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> int64, + >, + #[doc = ""] + pub get_start_time: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_time_t, + >, + #[doc = ""] + pub get_end_time: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_time_t, + >, + #[doc = ""] + pub get_full_path: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_id: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> uint32, + >, + #[doc = ""] + pub get_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_original_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_suggested_file_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_content_disposition: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_mime_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, + >, +} +#[test] +fn bindgen_test_layout__cef_download_item_t() { + assert_eq!( + ::std::mem::size_of::<_cef_download_item_t>(), + 88usize, + concat!("Size of: ", stringify!(_cef_download_item_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_download_item_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_download_item_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).is_in_progress as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(is_in_progress) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).is_complete as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(is_complete) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).is_canceled as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(is_canceled) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_current_speed as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_current_speed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_percent_complete as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_percent_complete) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_total_bytes as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_total_bytes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_received_bytes as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_received_bytes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_start_time as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_start_time) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_end_time as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_end_time) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_full_path as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_full_path) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).get_id as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_id) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).get_url as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_original_url as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_original_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_suggested_file_name as *const _ + as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_suggested_file_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_content_disposition as *const _ + as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_content_disposition) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_t>())).get_mime_type as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_t), + "::", + stringify!(get_mime_type) + ) + ); +} +#[doc = ""] +pub type cef_download_item_t = _cef_download_item_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_before_download_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_before_download_callback_t, + download_path: *const cef_string_t, + show_dialog: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_before_download_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_before_download_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_before_download_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_before_download_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_before_download_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_before_download_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_before_download_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_before_download_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_before_download_callback_t), + "::", + stringify!(cont) + ) + ); +} +#[doc = ""] +pub type cef_before_download_callback_t = _cef_before_download_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_download_item_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cancel: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_callback_t), + >, + #[doc = ""] + pub pause: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_callback_t), + >, + #[doc = ""] + pub resume: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_download_item_callback_t), + >, +} +#[test] +fn bindgen_test_layout__cef_download_item_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_download_item_callback_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_download_item_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_download_item_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_download_item_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_callback_t>())).cancel as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_callback_t), + "::", + stringify!(cancel) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_callback_t>())).pause as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_callback_t), + "::", + stringify!(pause) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_item_callback_t>())).resume as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_item_callback_t), + "::", + stringify!(resume) + ) + ); +} +#[doc = ""] +pub type cef_download_item_callback_t = _cef_download_item_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_download_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_before_download: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_download_handler_t, + browser: *mut _cef_browser_t, + download_item: *mut _cef_download_item_t, + suggested_name: *const cef_string_t, + callback: *mut _cef_before_download_callback_t, + ), + >, + #[doc = ""] + pub on_download_updated: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_download_handler_t, + browser: *mut _cef_browser_t, + download_item: *mut _cef_download_item_t, + callback: *mut _cef_download_item_callback_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_download_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_download_handler_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_download_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_download_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_download_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_download_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_handler_t>())).on_before_download as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_handler_t), + "::", + stringify!(on_before_download) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_download_handler_t>())).on_download_updated as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_download_handler_t), + "::", + stringify!(on_download_updated) + ) + ); +} +#[doc = ""] +pub type cef_download_handler_t = _cef_download_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_drag_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_drag_enter: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_drag_handler_t, + browser: *mut _cef_browser_t, + dragData: *mut _cef_drag_data_t, + mask: cef_drag_operations_mask_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_draggable_regions_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_drag_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + regionsCount: usize, + regions: *const cef_draggable_region_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_drag_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_drag_handler_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_drag_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_drag_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_drag_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_drag_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_handler_t>())).on_drag_enter as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_handler_t), + "::", + stringify!(on_drag_enter) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_drag_handler_t>())).on_draggable_regions_changed as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_drag_handler_t), + "::", + stringify!(on_draggable_regions_changed) + ) + ); +} +#[doc = ""] +pub type cef_drag_handler_t = _cef_drag_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_find_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_find_result: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_find_handler_t, + browser: *mut _cef_browser_t, + identifier: ::std::os::raw::c_int, + count: ::std::os::raw::c_int, + selectionRect: *const cef_rect_t, + activeMatchOrdinal: ::std::os::raw::c_int, + finalUpdate: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_find_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_find_handler_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_find_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_find_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_find_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_find_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_find_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_find_handler_t>())).on_find_result as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_find_handler_t), + "::", + stringify!(on_find_result) + ) + ); +} +#[doc = ""] +pub type cef_find_handler_t = _cef_find_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_focus_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_take_focus: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_focus_handler_t, + browser: *mut _cef_browser_t, + next: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_set_focus: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_focus_handler_t, + browser: *mut _cef_browser_t, + source: cef_focus_source_t::Type, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_got_focus: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_focus_handler_t, browser: *mut _cef_browser_t), + >, +} +#[test] +fn bindgen_test_layout__cef_focus_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_focus_handler_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_focus_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_focus_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_focus_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_focus_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_focus_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_take_focus as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_focus_handler_t), + "::", + stringify!(on_take_focus) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_set_focus as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_focus_handler_t), + "::", + stringify!(on_set_focus) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_got_focus as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_focus_handler_t), + "::", + stringify!(on_got_focus) + ) + ); +} +#[doc = ""] +pub type cef_focus_handler_t = _cef_focus_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_jsdialog_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_jsdialog_callback_t, + success: ::std::os::raw::c_int, + user_input: *const cef_string_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_jsdialog_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_jsdialog_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_jsdialog_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_jsdialog_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_jsdialog_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_jsdialog_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_jsdialog_callback_t>())).cont as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_callback_t), + "::", + stringify!(cont) + ) + ); +} +#[doc = ""] +pub type cef_jsdialog_callback_t = _cef_jsdialog_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_jsdialog_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_jsdialog: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_jsdialog_handler_t, + browser: *mut _cef_browser_t, + origin_url: *const cef_string_t, + dialog_type: cef_jsdialog_type_t::Type, + message_text: *const cef_string_t, + default_prompt_text: *const cef_string_t, + callback: *mut _cef_jsdialog_callback_t, + suppress_message: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_before_unload_dialog: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_jsdialog_handler_t, + browser: *mut _cef_browser_t, + message_text: *const cef_string_t, + is_reload: ::std::os::raw::c_int, + callback: *mut _cef_jsdialog_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_reset_dialog_state: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_jsdialog_handler_t, + browser: *mut _cef_browser_t, + ), + >, + #[doc = ""] + pub on_dialog_closed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_jsdialog_handler_t, + browser: *mut _cef_browser_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_jsdialog_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_jsdialog_handler_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_jsdialog_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_jsdialog_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_jsdialog_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_jsdialog as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_handler_t), + "::", + stringify!(on_jsdialog) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_before_unload_dialog as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_handler_t), + "::", + stringify!(on_before_unload_dialog) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_reset_dialog_state as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_handler_t), + "::", + stringify!(on_reset_dialog_state) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_dialog_closed as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_jsdialog_handler_t), + "::", + stringify!(on_dialog_closed) + ) + ); +} +#[doc = ""] +pub type cef_jsdialog_handler_t = _cef_jsdialog_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_keyboard_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_pre_key_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_keyboard_handler_t, + browser: *mut _cef_browser_t, + event: *const _cef_key_event_t, + os_event: *mut MSG, + is_keyboard_shortcut: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_key_event: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_keyboard_handler_t, + browser: *mut _cef_browser_t, + event: *const _cef_key_event_t, + os_event: *mut MSG, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_keyboard_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_keyboard_handler_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_keyboard_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_keyboard_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_keyboard_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_keyboard_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).on_pre_key_event as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_keyboard_handler_t), + "::", + stringify!(on_pre_key_event) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).on_key_event as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_keyboard_handler_t), + "::", + stringify!(on_key_event) + ) + ); +} +#[doc = ""] +pub type cef_keyboard_handler_t = _cef_keyboard_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_life_span_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_before_popup: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_life_span_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + target_url: *const cef_string_t, + target_frame_name: *const cef_string_t, + target_disposition: cef_window_open_disposition_t::Type, + user_gesture: ::std::os::raw::c_int, + popupFeatures: *const _cef_popup_features_t, + windowInfo: *mut _cef_window_info_t, + client: *mut *mut _cef_client_t, + settings: *mut _cef_browser_settings_t, + extra_info: *mut *mut _cef_dictionary_value_t, + no_javascript_access: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_after_created: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_life_span_handler_t, + browser: *mut _cef_browser_t, + ), + >, + #[doc = ""] + pub do_close: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_life_span_handler_t, + browser: *mut _cef_browser_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_before_close: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_life_span_handler_t, + browser: *mut _cef_browser_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_life_span_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_life_span_handler_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_life_span_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_life_span_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_life_span_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_life_span_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_life_span_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_before_popup as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_life_span_handler_t), + "::", + stringify!(on_before_popup) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_after_created as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_life_span_handler_t), + "::", + stringify!(on_after_created) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_life_span_handler_t>())).do_close as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_life_span_handler_t), + "::", + stringify!(do_close) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_before_close as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_life_span_handler_t), + "::", + stringify!(on_before_close) + ) + ); +} +#[doc = ""] +pub type cef_life_span_handler_t = _cef_life_span_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_load_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_loading_state_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_load_handler_t, + browser: *mut _cef_browser_t, + isLoading: ::std::os::raw::c_int, + canGoBack: ::std::os::raw::c_int, + canGoForward: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_load_start: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_load_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + transition_type: cef_transition_type_t::Type, + ), + >, + #[doc = ""] + pub on_load_end: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_load_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + httpStatusCode: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_load_error: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_load_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + errorCode: cef_errorcode_t::Type, + errorText: *const cef_string_t, + failedUrl: *const cef_string_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_load_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_load_handler_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_load_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_load_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_load_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_load_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_load_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_load_handler_t>())).on_loading_state_change as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_load_handler_t), + "::", + stringify!(on_loading_state_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_start as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_load_handler_t), + "::", + stringify!(on_load_start) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_end as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_load_handler_t), + "::", + stringify!(on_load_end) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_error as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_load_handler_t), + "::", + stringify!(on_load_error) + ) + ); +} +#[doc = ""] +pub type cef_load_handler_t = _cef_load_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_accessibility_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_accessibility_tree_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_accessibility_handler_t, + value: *mut _cef_value_t, + ), + >, + #[doc = ""] + pub on_accessibility_location_change: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_accessibility_handler_t, + value: *mut _cef_value_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_accessibility_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_accessibility_handler_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_accessibility_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_accessibility_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_accessibility_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_accessibility_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_accessibility_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_accessibility_handler_t>())).on_accessibility_tree_change + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_accessibility_handler_t), + "::", + stringify!(on_accessibility_tree_change) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_accessibility_handler_t>())) + .on_accessibility_location_change as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_accessibility_handler_t), + "::", + stringify!(on_accessibility_location_change) + ) + ); +} +#[doc = ""] +pub type cef_accessibility_handler_t = _cef_accessibility_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_render_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_accessibility_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + ) -> *mut _cef_accessibility_handler_t, + >, + #[doc = ""] + pub get_root_screen_rect: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + rect: *mut cef_rect_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_view_rect: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + rect: *mut cef_rect_t, + ), + >, + #[doc = ""] + pub get_screen_point: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + viewX: ::std::os::raw::c_int, + viewY: ::std::os::raw::c_int, + screenX: *mut ::std::os::raw::c_int, + screenY: *mut ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_screen_info: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + screen_info: *mut _cef_screen_info_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_popup_show: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + show: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_popup_size: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + rect: *const cef_rect_t, + ), + >, + #[doc = ""] + pub on_paint: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + type_: cef_paint_element_type_t::Type, + dirtyRectsCount: usize, + dirtyRects: *const cef_rect_t, + buffer: *const ::std::os::raw::c_void, + width: ::std::os::raw::c_int, + height: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_accelerated_paint: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + type_: cef_paint_element_type_t::Type, + dirtyRectsCount: usize, + dirtyRects: *const cef_rect_t, + shared_handle: *mut ::std::os::raw::c_void, + ), + >, + #[doc = ""] + pub start_dragging: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + drag_data: *mut _cef_drag_data_t, + allowed_ops: cef_drag_operations_mask_t, + x: ::std::os::raw::c_int, + y: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub update_drag_cursor: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + operation: cef_drag_operations_mask_t, + ), + >, + #[doc = ""] + pub on_scroll_offset_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + x: f64, + y: f64, + ), + >, + #[doc = ""] + pub on_ime_composition_range_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + selected_range: *const cef_range_t, + character_boundsCount: usize, + character_bounds: *const cef_rect_t, + ), + >, + #[doc = ""] + pub on_text_selection_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + selected_text: *const cef_string_t, + selected_range: *const cef_range_t, + ), + >, + #[doc = ""] + pub on_virtual_keyboard_requested: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_handler_t, + browser: *mut _cef_browser_t, + input_mode: cef_text_input_mode_t::Type, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_render_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_render_handler_t>(), + 80usize, + concat!("Size of: ", stringify!(_cef_render_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_render_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_render_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_render_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).get_accessibility_handler as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(get_accessibility_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).get_root_screen_rect as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(get_root_screen_rect) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).get_view_rect as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(get_view_rect) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).get_screen_point as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(get_screen_point) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).get_screen_info as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(get_screen_info) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_popup_show as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_popup_show) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_popup_size as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_popup_size) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_render_handler_t>())).on_paint as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_paint) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_accelerated_paint as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_accelerated_paint) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).start_dragging as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(start_dragging) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).update_drag_cursor as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(update_drag_cursor) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_scroll_offset_changed as *const _ + as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_scroll_offset_changed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_ime_composition_range_changed + as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_ime_composition_range_changed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_text_selection_changed as *const _ + as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_text_selection_changed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_handler_t>())).on_virtual_keyboard_requested + as *const _ as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_handler_t), + "::", + stringify!(on_virtual_keyboard_requested) + ) + ); +} +#[doc = ""] +pub type cef_render_handler_t = _cef_render_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_auth_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_auth_callback_t, + username: *const cef_string_t, + password: *const cef_string_t, + ), + >, + #[doc = ""] + pub cancel: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_auth_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_auth_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_auth_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_auth_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_auth_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_auth_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).cont as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_auth_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).cancel as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_auth_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_auth_callback_t = _cef_auth_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_request_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_callback_t, + allow: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub cancel: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_request_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_request_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_request_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_request_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_request_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).cont as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).cancel as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_request_callback_t = _cef_request_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_response_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_error: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> cef_errorcode_t::Type, + >, + #[doc = ""] + pub set_error: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, error: cef_errorcode_t::Type), + >, + #[doc = ""] + pub get_status: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_status: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, status: ::std::os::raw::c_int), + >, + #[doc = ""] + pub get_status_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_status_text: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, statusText: *const cef_string_t), + >, + #[doc = ""] + pub get_mime_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_mime_type: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, mimeType: *const cef_string_t), + >, + #[doc = ""] + pub get_charset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_charset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, charset: *const cef_string_t), + >, + #[doc = ""] + pub get_header_by_name: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_response_t, + name: *const cef_string_t, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_header_by_name: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_response_t, + name: *const cef_string_t, + value: *const cef_string_t, + overwrite: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub get_header_map: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t), + >, + #[doc = ""] + pub set_header_map: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t), + >, + #[doc = ""] + pub get_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_t, url: *const cef_string_t), + >, +} +#[test] +fn bindgen_test_layout__cef_response_t() { + assert_eq!( + ::std::mem::size_of::<_cef_response_t>(), + 88usize, + concat!("Size of: ", stringify!(_cef_response_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_response_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_response_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).is_read_only as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_error as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_error) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_error as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_error) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_status as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_status) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_status as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_status) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_status_text as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_status_text) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_status_text as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_status_text) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_mime_type as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_mime_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_mime_type as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_mime_type) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_charset as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_charset) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_charset as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_charset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_response_t>())).get_header_by_name as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_header_by_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_response_t>())).set_header_by_name as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_header_by_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_header_map as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_header_map) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_header_map as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_header_map) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_url as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(get_url) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_url as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_t), + "::", + stringify!(set_url) + ) + ); +} +#[doc = ""] +pub type cef_response_t = _cef_response_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_response_create() -> *mut cef_response_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resource_skip_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_resource_skip_callback_t, bytes_skipped: int64), + >, +} +#[test] +fn bindgen_test_layout__cef_resource_skip_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resource_skip_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_resource_skip_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resource_skip_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resource_skip_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_skip_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_skip_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_skip_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_skip_callback_t), + "::", + stringify!(cont) + ) + ); +} +#[doc = ""] +pub type cef_resource_skip_callback_t = _cef_resource_skip_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resource_read_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_read_callback_t, + bytes_read: ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_resource_read_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resource_read_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_resource_read_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resource_read_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resource_read_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_read_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_read_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_read_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_read_callback_t), + "::", + stringify!(cont) + ) + ); +} +#[doc = ""] +pub type cef_resource_read_callback_t = _cef_resource_read_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resource_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub open: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + request: *mut _cef_request_t, + handle_request: *mut ::std::os::raw::c_int, + callback: *mut _cef_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub process_request: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + request: *mut _cef_request_t, + callback: *mut _cef_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_response_headers: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + response: *mut _cef_response_t, + response_length: *mut int64, + redirectUrl: *mut cef_string_t, + ), + >, + #[doc = ""] + pub skip: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + bytes_to_skip: int64, + bytes_skipped: *mut int64, + callback: *mut _cef_resource_skip_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub read: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + data_out: *mut ::std::os::raw::c_void, + bytes_to_read: ::std::os::raw::c_int, + bytes_read: *mut ::std::os::raw::c_int, + callback: *mut _cef_resource_read_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub read_response: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_handler_t, + data_out: *mut ::std::os::raw::c_void, + bytes_to_read: ::std::os::raw::c_int, + bytes_read: *mut ::std::os::raw::c_int, + callback: *mut _cef_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub cancel: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_resource_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resource_handler_t>(), + 48usize, + concat!("Size of: ", stringify!(_cef_resource_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resource_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resource_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).open as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(open) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_handler_t>())).process_request as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(process_request) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_handler_t>())).get_response_headers as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(get_response_headers) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).skip as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(skip) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).read as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(read) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_handler_t>())).read_response as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(read_response) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).cancel as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_handler_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_resource_handler_t = _cef_resource_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_response_filter_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub init_filter: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_response_filter_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub filter: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_response_filter_t, + data_in: *mut ::std::os::raw::c_void, + data_in_size: usize, + data_in_read: *mut usize, + data_out: *mut ::std::os::raw::c_void, + data_out_size: usize, + data_out_written: *mut usize, + ) -> cef_response_filter_status_t::Type, + >, +} +#[test] +fn bindgen_test_layout__cef_response_filter_t() { + assert_eq!( + ::std::mem::size_of::<_cef_response_filter_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_response_filter_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_response_filter_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_response_filter_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_filter_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_filter_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_response_filter_t>())).init_filter as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_filter_t), + "::", + stringify!(init_filter) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_response_filter_t>())).filter as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_response_filter_t), + "::", + stringify!(filter) + ) + ); +} +#[doc = ""] +pub type cef_response_filter_t = _cef_response_filter_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resource_request_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_cookie_access_filter: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + ) -> *mut _cef_cookie_access_filter_t, + >, + #[doc = ""] + pub on_before_resource_load: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + callback: *mut _cef_request_callback_t, + ) -> cef_return_value_t::Type, + >, + #[doc = ""] + pub get_resource_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + ) -> *mut _cef_resource_handler_t, + >, + #[doc = ""] + pub on_resource_redirect: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + response: *mut _cef_response_t, + new_url: *mut cef_string_t, + ), + >, + #[doc = ""] + pub on_resource_response: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + response: *mut _cef_response_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_resource_response_filter: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + response: *mut _cef_response_t, + ) -> *mut _cef_response_filter_t, + >, + #[doc = ""] + pub on_resource_load_complete: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + response: *mut _cef_response_t, + status: cef_urlrequest_status_t::Type, + received_content_length: int64, + ), + >, + #[doc = ""] + pub on_protocol_execution: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + allow_os_execution: *mut ::std::os::raw::c_int, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_resource_request_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resource_request_handler_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_resource_request_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resource_request_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resource_request_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_cookie_access_filter + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(get_cookie_access_filter) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_before_resource_load + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(on_before_resource_load) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_resource_handler + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(get_resource_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_redirect + as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(on_resource_redirect) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_response + as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(on_resource_response) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_resource_response_filter + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(get_resource_response_filter) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_load_complete + as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(on_resource_load_complete) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_protocol_execution + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_request_handler_t), + "::", + stringify!(on_protocol_execution) + ) + ); +} +#[doc = ""] +pub type cef_resource_request_handler_t = _cef_resource_request_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_cookie_access_filter_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub can_send_cookie: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_access_filter_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + cookie: *const _cef_cookie_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub can_save_cookie: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_cookie_access_filter_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + response: *mut _cef_response_t, + cookie: *const _cef_cookie_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_cookie_access_filter_t() { + assert_eq!( + ::std::mem::size_of::<_cef_cookie_access_filter_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_cookie_access_filter_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_cookie_access_filter_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_cookie_access_filter_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_access_filter_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).can_send_cookie as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_access_filter_t), + "::", + stringify!(can_send_cookie) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).can_save_cookie as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_cookie_access_filter_t), + "::", + stringify!(can_save_cookie) + ) + ); +} +#[doc = ""] +pub type cef_cookie_access_filter_t = _cef_cookie_access_filter_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_sslinfo_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_cert_status: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslinfo_t) -> cef_cert_status_t::Type, + >, + #[doc = ""] + pub get_x509certificate: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_sslinfo_t) -> *mut _cef_x509certificate_t, + >, +} +#[test] +fn bindgen_test_layout__cef_sslinfo_t() { + assert_eq!( + ::std::mem::size_of::<_cef_sslinfo_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_sslinfo_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_sslinfo_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_sslinfo_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_sslinfo_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslinfo_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_sslinfo_t>())).get_cert_status as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslinfo_t), + "::", + stringify!(get_cert_status) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_sslinfo_t>())).get_x509certificate as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_sslinfo_t), + "::", + stringify!(get_x509certificate) + ) + ); +} +#[doc = ""] +pub type cef_sslinfo_t = _cef_sslinfo_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_is_cert_status_error(status: cef_cert_status_t::Type) -> ::std::os::raw::c_int; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_select_client_certificate_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub select: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_select_client_certificate_callback_t, + cert: *mut _cef_x509certificate_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_select_client_certificate_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_select_client_certificate_callback_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_cef_select_client_certificate_callback_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_cef_select_client_certificate_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_select_client_certificate_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_select_client_certificate_callback_t>())).base as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_select_client_certificate_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_select_client_certificate_callback_t>())).select as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_select_client_certificate_callback_t), + "::", + stringify!(select) + ) + ); +} +#[doc = ""] +pub type cef_select_client_certificate_callback_t = _cef_select_client_certificate_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_request_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_before_browse: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + user_gesture: ::std::os::raw::c_int, + is_redirect: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_open_urlfrom_tab: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + target_url: *const cef_string_t, + target_disposition: cef_window_open_disposition_t::Type, + user_gesture: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_resource_request_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + request: *mut _cef_request_t, + is_navigation: ::std::os::raw::c_int, + is_download: ::std::os::raw::c_int, + request_initiator: *const cef_string_t, + disable_default_handling: *mut ::std::os::raw::c_int, + ) -> *mut _cef_resource_request_handler_t, + >, + #[doc = ""] + pub get_auth_credentials: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + origin_url: *const cef_string_t, + isProxy: ::std::os::raw::c_int, + host: *const cef_string_t, + port: ::std::os::raw::c_int, + realm: *const cef_string_t, + scheme: *const cef_string_t, + callback: *mut _cef_auth_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_quota_request: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + origin_url: *const cef_string_t, + new_size: int64, + callback: *mut _cef_request_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_certificate_error: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + cert_error: cef_errorcode_t::Type, + request_url: *const cef_string_t, + ssl_info: *mut _cef_sslinfo_t, + callback: *mut _cef_request_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_select_client_certificate: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + isProxy: ::std::os::raw::c_int, + host: *const cef_string_t, + port: ::std::os::raw::c_int, + certificatesCount: usize, + certificates: *const *mut _cef_x509certificate_t, + callback: *mut _cef_select_client_certificate_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_plugin_crashed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + plugin_path: *const cef_string_t, + ), + >, + #[doc = ""] + pub on_render_view_ready: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + ), + >, + #[doc = ""] + pub on_render_process_terminated: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + status: cef_termination_status_t::Type, + ), + >, + #[doc = ""] + pub on_document_available_in_main_frame: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_request_handler_t, + browser: *mut _cef_browser_t, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_request_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_request_handler_t>(), + 64usize, + concat!("Size of: ", stringify!(_cef_request_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_request_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_request_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_request_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_before_browse as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_before_browse) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_open_urlfrom_tab as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_open_urlfrom_tab) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).get_resource_request_handler + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(get_resource_request_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).get_auth_credentials as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(get_auth_credentials) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_quota_request as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_quota_request) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_certificate_error as *const _ + as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_certificate_error) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_select_client_certificate + as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_select_client_certificate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_plugin_crashed as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_plugin_crashed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_render_view_ready as *const _ + as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_render_view_ready) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_render_process_terminated + as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_render_process_terminated) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_request_handler_t>())).on_document_available_in_main_frame + as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_request_handler_t), + "::", + stringify!(on_document_available_in_main_frame) + ) + ); +} +#[doc = ""] +pub type cef_request_handler_t = _cef_request_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_client_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_audio_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t, + >, + #[doc = ""] + pub get_context_menu_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t, + >, + #[doc = ""] + pub get_dialog_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t, + >, + #[doc = ""] + pub get_display_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t, + >, + #[doc = ""] + pub get_download_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t, + >, + #[doc = ""] + pub get_drag_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t, + >, + #[doc = ""] + pub get_find_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t, + >, + #[doc = ""] + pub get_focus_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t, + >, + #[doc = ""] + pub get_jsdialog_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t, + >, + #[doc = ""] + pub get_keyboard_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t, + >, + #[doc = ""] + pub get_life_span_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t, + >, + #[doc = ""] + pub get_load_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t, + >, + #[doc = ""] + pub get_render_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t, + >, + #[doc = ""] + pub get_request_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t, + >, + #[doc = ""] + pub on_process_message_received: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_client_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + source_process: cef_process_id_t::Type, + message: *mut _cef_process_message_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_client_t() { + assert_eq!( + ::std::mem::size_of::<_cef_client_t>(), + 80usize, + concat!("Size of: ", stringify!(_cef_client_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_client_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_client_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_audio_handler as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_audio_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_context_menu_handler as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_context_menu_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_dialog_handler as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_dialog_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_display_handler as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_display_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_download_handler as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_download_handler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_drag_handler as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_drag_handler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_find_handler as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_find_handler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_focus_handler as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_focus_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_jsdialog_handler as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_jsdialog_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_keyboard_handler as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_keyboard_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_life_span_handler as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_life_span_handler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_load_handler as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_load_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_render_handler as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_render_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).get_request_handler as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(get_request_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_client_t>())).on_process_message_received as *const _ + as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_client_t), + "::", + stringify!(on_process_message_received) + ) + ); +} +#[doc = ""] +pub type cef_client_t = _cef_client_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_command_line_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub copy: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> *mut _cef_command_line_t, + >, + #[doc = ""] + pub init_from_argv: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_command_line_t, + argc: ::std::os::raw::c_int, + argv: *const *const ::std::os::raw::c_char, + ), + >, + #[doc = ""] + pub init_from_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_command_line_t, + command_line: *const cef_string_t, + ), + >, + #[doc = ""] + pub reset: ::std::option::Option, + #[doc = ""] + pub get_argv: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, argv: cef_string_list_t), + >, + #[doc = ""] + pub get_command_line_string: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_program: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_program: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, program: *const cef_string_t), + >, + #[doc = ""] + pub has_switches: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_switch: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_command_line_t, + name: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_switch_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_command_line_t, + name: *const cef_string_t, + ) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_switches: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, switches: cef_string_map_t), + >, + #[doc = ""] + pub append_switch: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, name: *const cef_string_t), + >, + #[doc = ""] + pub append_switch_with_value: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_command_line_t, + name: *const cef_string_t, + value: *const cef_string_t, + ), + >, + #[doc = ""] + pub has_arguments: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_arguments: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, arguments: cef_string_list_t), + >, + #[doc = ""] + pub append_argument: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, argument: *const cef_string_t), + >, + #[doc = ""] + pub prepend_wrapper: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_command_line_t, wrapper: *const cef_string_t), + >, +} +#[test] +fn bindgen_test_layout__cef_command_line_t() { + assert_eq!( + ::std::mem::size_of::<_cef_command_line_t>(), + 100usize, + concat!("Size of: ", stringify!(_cef_command_line_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_command_line_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_command_line_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).is_read_only as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).copy as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(copy) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).init_from_argv as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(init_from_argv) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).init_from_string as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(init_from_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).reset as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(reset) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).get_argv as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_argv) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).get_command_line_string as *const _ + as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_command_line_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).get_program as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_program) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).set_program as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(set_program) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).has_switches as *const _ as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(has_switches) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).has_switch as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(has_switch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).get_switch_value as *const _ as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_switch_value) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).get_switches as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_switches) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).append_switch as *const _ as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(append_switch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).append_switch_with_value as *const _ + as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(append_switch_with_value) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).has_arguments as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(has_arguments) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).get_arguments as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(get_arguments) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).append_argument as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(append_argument) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_command_line_t>())).prepend_wrapper as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_command_line_t), + "::", + stringify!(prepend_wrapper) + ) + ); +} +#[doc = ""] +pub type cef_command_line_t = _cef_command_line_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_command_line_create() -> *mut cef_command_line_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_command_line_get_global() -> *mut cef_command_line_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_print_settings_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_read_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_orientation: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + landscape: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub is_landscape: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_printer_printable_area: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + physical_size_device_units: *const cef_size_t, + printable_area_device_units: *const cef_rect_t, + landscape_needs_flip: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub set_device_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t), + >, + #[doc = ""] + pub get_device_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub set_dpi: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t, dpi: ::std::os::raw::c_int), + >, + #[doc = ""] + pub get_dpi: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_page_ranges: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + rangesCount: usize, + ranges: *const cef_range_t, + ), + >, + #[doc = ""] + pub get_page_ranges_count: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> usize, + >, + #[doc = ""] + pub get_page_ranges: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + rangesCount: *mut usize, + ranges: *mut cef_range_t, + ), + >, + #[doc = ""] + pub set_selection_only: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + selection_only: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub is_selection_only: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_collate: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + collate: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub will_collate: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_color_model: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + model: cef_color_model_t::Type, + ), + >, + #[doc = ""] + pub get_color_model: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t::Type, + >, + #[doc = ""] + pub set_copies: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + copies: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub get_copies: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_duplex_mode: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_settings_t, + mode: cef_duplex_mode_t::Type, + ), + >, + #[doc = ""] + pub get_duplex_mode: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t::Type, + >, +} +#[test] +fn bindgen_test_layout__cef_print_settings_t() { + assert_eq!( + ::std::mem::size_of::<_cef_print_settings_t>(), + 108usize, + concat!("Size of: ", stringify!(_cef_print_settings_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_print_settings_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_print_settings_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).is_read_only as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(is_read_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_orientation as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_orientation) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).is_landscape as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(is_landscape) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_printer_printable_area as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_printer_printable_area) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_device_name as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_device_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_device_name as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_device_name) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).set_dpi as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_dpi) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).get_dpi as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_dpi) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_page_ranges as *const _ as usize + }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_page_ranges) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_page_ranges_count as *const _ + as usize + }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_page_ranges_count) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_page_ranges as *const _ as usize + }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_page_ranges) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_selection_only as *const _ + as usize + }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_selection_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).is_selection_only as *const _ as usize + }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(is_selection_only) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_collate as *const _ as usize + }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_collate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).will_collate as *const _ as usize + }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(will_collate) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_color_model as *const _ as usize + }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_color_model) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_color_model as *const _ as usize + }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_color_model) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_copies as *const _ as usize + }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_copies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_copies as *const _ as usize + }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_copies) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).set_duplex_mode as *const _ as usize + }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(set_duplex_mode) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_settings_t>())).get_duplex_mode as *const _ as usize + }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_settings_t), + "::", + stringify!(get_duplex_mode) + ) + ); +} +#[doc = ""] +pub type cef_print_settings_t = _cef_print_settings_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_print_settings_create() -> *mut cef_print_settings_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_print_dialog_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_dialog_callback_t, + settings: *mut _cef_print_settings_t, + ), + >, + #[doc = ""] + pub cancel: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_print_dialog_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_print_dialog_callback_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_print_dialog_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_print_dialog_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_print_dialog_callback_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_dialog_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).cont as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_dialog_callback_t), + "::", + stringify!(cont) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).cancel as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_dialog_callback_t), + "::", + stringify!(cancel) + ) + ); +} +#[doc = ""] +pub type cef_print_dialog_callback_t = _cef_print_dialog_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_print_job_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub cont: + ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_print_job_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_print_job_callback_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_print_job_callback_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_print_job_callback_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_print_job_callback_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_job_callback_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_job_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_job_callback_t>())).cont as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_job_callback_t), + "::", + stringify!(cont) + ) + ); +} +#[doc = ""] +pub type cef_print_job_callback_t = _cef_print_job_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_print_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_print_start: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t), + >, + #[doc = ""] + pub on_print_settings: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_handler_t, + browser: *mut _cef_browser_t, + settings: *mut _cef_print_settings_t, + get_defaults: ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_print_dialog: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_handler_t, + browser: *mut _cef_browser_t, + has_selection: ::std::os::raw::c_int, + callback: *mut _cef_print_dialog_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_print_job: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_handler_t, + browser: *mut _cef_browser_t, + document_name: *const cef_string_t, + pdf_file_path: *const cef_string_t, + callback: *mut _cef_print_job_callback_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub on_print_reset: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t), + >, + #[doc = ""] + pub get_pdf_paper_size: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_print_handler_t, + device_units_per_inch: ::std::os::raw::c_int, + ) -> cef_size_t, + >, +} +#[test] +fn bindgen_test_layout__cef_print_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_print_handler_t>(), + 44usize, + concat!("Size of: ", stringify!(_cef_print_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_print_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_print_handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_print_handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_start as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(on_print_start) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_settings as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(on_print_settings) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_dialog as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(on_print_dialog) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_job as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(on_print_job) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_reset as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(on_print_reset) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_print_handler_t>())).get_pdf_paper_size as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_print_handler_t), + "::", + stringify!(get_pdf_paper_size) + ) + ); +} +#[doc = ""] +pub type cef_print_handler_t = _cef_print_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_browser_process_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_cookieable_schemes: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_process_handler_t, + schemes: cef_string_list_t, + include_defaults: *mut ::std::os::raw::c_int, + ), + >, + #[doc = ""] + pub on_context_initialized: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_process_handler_t), + >, + #[doc = ""] + pub on_before_child_process_launch: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_process_handler_t, + command_line: *mut _cef_command_line_t, + ), + >, + #[doc = ""] + pub get_print_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_process_handler_t, + ) -> *mut _cef_print_handler_t, + >, + #[doc = ""] + pub on_schedule_message_pump_work: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_browser_process_handler_t, delay_ms: int64), + >, + #[doc = ""] + pub get_default_client: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_browser_process_handler_t, + ) -> *mut _cef_client_t, + >, +} +#[test] +fn bindgen_test_layout__cef_browser_process_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_browser_process_handler_t>(), + 44usize, + concat!("Size of: ", stringify!(_cef_browser_process_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_browser_process_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_browser_process_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_cookieable_schemes + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(get_cookieable_schemes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).on_context_initialized + as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(on_context_initialized) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())) + .on_before_child_process_launch as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(on_before_child_process_launch) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_print_handler as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(get_print_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).on_schedule_message_pump_work + as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(on_schedule_message_pump_work) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_default_client + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_browser_process_handler_t), + "::", + stringify!(get_default_client) + ) + ); +} +#[doc = ""] +pub type cef_browser_process_handler_t = _cef_browser_process_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_task_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub execute: ::std::option::Option, +} +#[test] +fn bindgen_test_layout__cef_task_t() { + assert_eq!( + ::std::mem::size_of::<_cef_task_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_task_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_task_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_task_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_task_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_task_t>())).execute as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_t), + "::", + stringify!(execute) + ) + ); +} +#[doc = ""] +pub type cef_task_t = _cef_task_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_task_runner_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_task_runner_t, + that: *mut _cef_task_runner_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub belongs_to_current_thread: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_task_runner_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub belongs_to_thread: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_task_runner_t, + threadId: cef_thread_id_t::Type, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub post_task: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_task_runner_t, + task: *mut _cef_task_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub post_delayed_task: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_task_runner_t, + task: *mut _cef_task_t, + delay_ms: int64, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_task_runner_t() { + assert_eq!( + ::std::mem::size_of::<_cef_task_runner_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_task_runner_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_task_runner_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_task_runner_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).is_same as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_task_runner_t>())).belongs_to_current_thread as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(belongs_to_current_thread) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_task_runner_t>())).belongs_to_thread as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(belongs_to_thread) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).post_task as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(post_task) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_task_runner_t>())).post_delayed_task as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_task_runner_t), + "::", + stringify!(post_delayed_task) + ) + ); +} +#[doc = ""] +pub type cef_task_runner_t = _cef_task_runner_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_task_runner_get_for_current_thread() -> *mut cef_task_runner_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_task_runner_get_for_thread( + threadId: cef_thread_id_t::Type, + ) -> *mut cef_task_runner_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_currently_on(threadId: cef_thread_id_t::Type) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_post_task( + threadId: cef_thread_id_t::Type, task: *mut cef_task_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_post_delayed_task( + threadId: cef_thread_id_t::Type, task: *mut cef_task_t, delay_ms: int64, + ) -> ::std::os::raw::c_int; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8context_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_task_runner: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> *mut _cef_task_runner_t, + >, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_browser: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> *mut _cef_browser_t, + >, + #[doc = ""] + pub get_frame: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> *mut _cef_frame_t, + >, + #[doc = ""] + pub get_global: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> *mut _cef_v8value_t, + >, + #[doc = ""] + pub enter: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub exit: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8context_t, + that: *mut _cef_v8context_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub eval: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8context_t, + code: *const cef_string_t, + script_url: *const cef_string_t, + start_line: ::std::os::raw::c_int, + retval: *mut *mut _cef_v8value_t, + exception: *mut *mut _cef_v8exception_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8context_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8context_t>(), + 56usize, + concat!("Size of: ", stringify!(_cef_v8context_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8context_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8context_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8context_t>())).get_task_runner as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(get_task_runner) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).is_valid as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_browser as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(get_browser) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_frame as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(get_frame) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_global as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(get_global) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).enter as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(enter) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).exit as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(exit) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).is_same as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).eval as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8context_t), + "::", + stringify!(eval) + ) + ); +} +#[doc = ""] +pub type cef_v8context_t = _cef_v8context_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8context_get_current_context() -> *mut cef_v8context_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8context_get_entered_context() -> *mut cef_v8context_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8context_in_context() -> ::std::os::raw::c_int; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub execute: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8handler_t, + name: *const cef_string_t, + object: *mut _cef_v8value_t, + argumentsCount: usize, + arguments: *const *mut _cef_v8value_t, + retval: *mut *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8handler_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_v8handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8handler_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8handler_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8handler_t>())).execute as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8handler_t), + "::", + stringify!(execute) + ) + ); +} +#[doc = ""] +pub type cef_v8handler_t = _cef_v8handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8accessor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8accessor_t, + name: *const cef_string_t, + object: *mut _cef_v8value_t, + retval: *mut *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8accessor_t, + name: *const cef_string_t, + object: *mut _cef_v8value_t, + value: *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8accessor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8accessor_t>(), + 28usize, + concat!("Size of: ", stringify!(_cef_v8accessor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8accessor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8accessor_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8accessor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).get as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8accessor_t), + "::", + stringify!(get) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).set as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8accessor_t), + "::", + stringify!(set) + ) + ); +} +#[doc = ""] +pub type cef_v8accessor_t = _cef_v8accessor_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8interceptor_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_byname: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8interceptor_t, + name: *const cef_string_t, + object: *mut _cef_v8value_t, + retval: *mut *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8interceptor_t, + index: ::std::os::raw::c_int, + object: *mut _cef_v8value_t, + retval: *mut *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_byname: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8interceptor_t, + name: *const cef_string_t, + object: *mut _cef_v8value_t, + value: *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8interceptor_t, + index: ::std::os::raw::c_int, + object: *mut _cef_v8value_t, + value: *mut _cef_v8value_t, + exception: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8interceptor_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8interceptor_t>(), + 36usize, + concat!("Size of: ", stringify!(_cef_v8interceptor_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8interceptor_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8interceptor_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8interceptor_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).get_byname as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8interceptor_t), + "::", + stringify!(get_byname) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8interceptor_t>())).get_byindex as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8interceptor_t), + "::", + stringify!(get_byindex) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).set_byname as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8interceptor_t), + "::", + stringify!(set_byname) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8interceptor_t>())).set_byindex as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8interceptor_t), + "::", + stringify!(set_byindex) + ) + ); +} +#[doc = ""] +pub type cef_v8interceptor_t = _cef_v8interceptor_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8exception_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_message: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_source_line: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_script_resource_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_line_number: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_start_position: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_end_position: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_start_column: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_end_column: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8exception_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8exception_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_v8exception_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8exception_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8exception_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8exception_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8exception_t>())).get_message as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_message) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_source_line as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_source_line) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_script_resource_name as *const _ + as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_script_resource_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_line_number as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_line_number) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_start_position as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_start_position) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_end_position as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_end_position) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_start_column as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_start_column) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8exception_t>())).get_end_column as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8exception_t), + "::", + stringify!(get_end_column) + ) + ); +} +#[doc = ""] +pub type cef_v8exception_t = _cef_v8exception_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8array_buffer_release_callback_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub release_buffer: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8array_buffer_release_callback_t, + buffer: *mut ::std::os::raw::c_void, + ), + >, +} +#[test] +fn bindgen_test_layout__cef_v8array_buffer_release_callback_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8array_buffer_release_callback_t>(), + 24usize, + concat!( + "Size of: ", + stringify!(_cef_v8array_buffer_release_callback_t) + ) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8array_buffer_release_callback_t>(), + 4usize, + concat!( + "Alignment of ", + stringify!(_cef_v8array_buffer_release_callback_t) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8array_buffer_release_callback_t>())).base as *const _ + as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8array_buffer_release_callback_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8array_buffer_release_callback_t>())).release_buffer + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8array_buffer_release_callback_t), + "::", + stringify!(release_buffer) + ) + ); +} +#[doc = ""] +pub type cef_v8array_buffer_release_callback_t = _cef_v8array_buffer_release_callback_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8value_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_undefined: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_null: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_bool: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_int: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_uint: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_double: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_date: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_string: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_object: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_array: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_array_buffer: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_function: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_same: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + that: *mut _cef_v8value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_bool_value: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_int_value: + ::std::option::Option int32>, + #[doc = ""] + pub get_uint_value: + ::std::option::Option uint32>, + #[doc = ""] + pub get_double_value: + ::std::option::Option f64>, + #[doc = ""] + pub get_date_value: + ::std::option::Option cef_time_t>, + #[doc = ""] + pub get_string_value: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub is_user_created: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_exception: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_exception: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> *mut _cef_v8exception_t, + >, + #[doc = ""] + pub clear_exception: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub will_rethrow_exceptions: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_rethrow_exceptions: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + rethrow: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_value_bykey: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub has_value_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub delete_value_bykey: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + key: *const cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub delete_value_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + index: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_value_bykey: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + key: *const cef_string_t, + ) -> *mut _cef_v8value_t, + >, + #[doc = ""] + pub get_value_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + index: ::std::os::raw::c_int, + ) -> *mut _cef_v8value_t, + >, + #[doc = ""] + pub set_value_bykey: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + key: *const cef_string_t, + value: *mut _cef_v8value_t, + attribute: cef_v8_propertyattribute_t::Type, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_value_byindex: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + index: ::std::os::raw::c_int, + value: *mut _cef_v8value_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_value_byaccessor: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + key: *const cef_string_t, + settings: cef_v8_accesscontrol_t::Type, + attribute: cef_v8_propertyattribute_t::Type, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_keys: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + keys: cef_string_list_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub set_user_data: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + user_data: *mut _cef_base_ref_counted_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_user_data: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> *mut _cef_base_ref_counted_t, + >, + #[doc = ""] + pub get_externally_allocated_memory: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub adjust_externally_allocated_memory: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + change_in_bytes: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_array_length: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_array_buffer_release_callback: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + ) -> *mut _cef_v8array_buffer_release_callback_t, + >, + #[doc = ""] + pub neuter_array_buffer: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_function_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_function_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8value_t) -> *mut _cef_v8handler_t, + >, + #[doc = ""] + pub execute_function: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + object: *mut _cef_v8value_t, + argumentsCount: usize, + arguments: *const *mut _cef_v8value_t, + ) -> *mut _cef_v8value_t, + >, + #[doc = ""] + pub execute_function_with_context: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8value_t, + context: *mut _cef_v8context_t, + object: *mut _cef_v8value_t, + argumentsCount: usize, + arguments: *const *mut _cef_v8value_t, + ) -> *mut _cef_v8value_t, + >, +} +#[test] +fn bindgen_test_layout__cef_v8value_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8value_t>(), + 208usize, + concat!("Size of: ", stringify!(_cef_v8value_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8value_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8value_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_undefined as *const _ as usize }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_undefined) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_null as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_null) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_bool as *const _ as usize }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_bool) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_int as *const _ as usize }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_int) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_uint as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_uint) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_double as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_double) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_date as *const _ as usize }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_date) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_string as *const _ as usize }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_string) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_object as *const _ as usize }, + 56usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_object) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_array as *const _ as usize }, + 60usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_array) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_array_buffer as *const _ as usize }, + 64usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_array_buffer) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_function as *const _ as usize }, + 68usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_function) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_same as *const _ as usize }, + 72usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_same) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_bool_value as *const _ as usize }, + 76usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_bool_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_int_value as *const _ as usize }, + 80usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_int_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_uint_value as *const _ as usize }, + 84usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_uint_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_double_value as *const _ as usize }, + 88usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_double_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_date_value as *const _ as usize }, + 92usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_date_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_string_value as *const _ as usize }, + 96usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_string_value) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_user_created as *const _ as usize }, + 100usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(is_user_created) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).has_exception as *const _ as usize }, + 104usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(has_exception) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_exception as *const _ as usize }, + 108usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_exception) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).clear_exception as *const _ as usize }, + 112usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(clear_exception) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).will_rethrow_exceptions as *const _ as usize + }, + 116usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(will_rethrow_exceptions) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).set_rethrow_exceptions as *const _ as usize + }, + 120usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(set_rethrow_exceptions) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).has_value_bykey as *const _ as usize }, + 124usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(has_value_bykey) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).has_value_byindex as *const _ as usize + }, + 128usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(has_value_byindex) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).delete_value_bykey as *const _ as usize + }, + 132usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(delete_value_bykey) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).delete_value_byindex as *const _ as usize + }, + 136usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(delete_value_byindex) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_value_bykey as *const _ as usize }, + 140usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_value_bykey) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).get_value_byindex as *const _ as usize + }, + 144usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_value_byindex) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_bykey as *const _ as usize }, + 148usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(set_value_bykey) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_byindex as *const _ as usize + }, + 152usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(set_value_byindex) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_byaccessor as *const _ as usize + }, + 156usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(set_value_byaccessor) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_keys as *const _ as usize }, + 160usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_keys) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).set_user_data as *const _ as usize }, + 164usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(set_user_data) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_user_data as *const _ as usize }, + 168usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_user_data) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).get_externally_allocated_memory as *const _ + as usize + }, + 172usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_externally_allocated_memory) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).adjust_externally_allocated_memory + as *const _ as usize + }, + 176usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(adjust_externally_allocated_memory) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_array_length as *const _ as usize }, + 180usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_array_length) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).get_array_buffer_release_callback as *const _ + as usize + }, + 184usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_array_buffer_release_callback) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).neuter_array_buffer as *const _ as usize + }, + 188usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(neuter_array_buffer) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).get_function_name as *const _ as usize + }, + 192usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_function_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).get_function_handler as *const _ as usize + }, + 196usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(get_function_handler) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).execute_function as *const _ as usize }, + 200usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(execute_function) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8value_t>())).execute_function_with_context as *const _ + as usize + }, + 204usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8value_t), + "::", + stringify!(execute_function_with_context) + ) + ); +} +#[doc = ""] +pub type cef_v8value_t = _cef_v8value_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_undefined() -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_null() -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_bool(value: ::std::os::raw::c_int) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_int(value: int32) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_uint(value: uint32) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_double(value: f64) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_date(date: *const cef_time_t) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_string(value: *const cef_string_t) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_object( + accessor: *mut cef_v8accessor_t, interceptor: *mut cef_v8interceptor_t, + ) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_array(length: ::std::os::raw::c_int) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_array_buffer( + buffer: *mut ::std::os::raw::c_void, length: usize, + release_callback: *mut cef_v8array_buffer_release_callback_t, + ) -> *mut cef_v8value_t; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8value_create_function( + name: *const cef_string_t, handler: *mut cef_v8handler_t, + ) -> *mut cef_v8value_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8stack_trace_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_trace_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_frame_count: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_trace_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_frame: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_v8stack_trace_t, + index: ::std::os::raw::c_int, + ) -> *mut _cef_v8stack_frame_t, + >, +} +#[test] +fn bindgen_test_layout__cef_v8stack_trace_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8stack_trace_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_v8stack_trace_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8stack_trace_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8stack_trace_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_trace_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_trace_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).get_frame_count as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_trace_t), + "::", + stringify!(get_frame_count) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).get_frame as *const _ as usize }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_trace_t), + "::", + stringify!(get_frame) + ) + ); +} +#[doc = ""] +pub type cef_v8stack_trace_t = _cef_v8stack_trace_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_v8stack_trace_get_current( + frame_limit: ::std::os::raw::c_int, + ) -> *mut cef_v8stack_trace_t; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_v8stack_frame_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub is_valid: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_script_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_script_name_or_source_url: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_function_name: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, + >, + #[doc = ""] + pub get_line_number: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_column: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_eval: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub is_constructor: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_v8stack_frame_t() { + assert_eq!( + ::std::mem::size_of::<_cef_v8stack_frame_t>(), + 52usize, + concat!("Size of: ", stringify!(_cef_v8stack_frame_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_v8stack_frame_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_v8stack_frame_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_valid as *const _ as usize }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(is_valid) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_script_name as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(get_script_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_script_name_or_source_url + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(get_script_name_or_source_url) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_function_name as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(get_function_name) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_line_number as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(get_line_number) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_column as *const _ as usize }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(get_column) + ) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_eval as *const _ as usize }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(is_eval) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_constructor as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_v8stack_frame_t), + "::", + stringify!(is_constructor) + ) + ); +} +#[doc = ""] +pub type cef_v8stack_frame_t = _cef_v8stack_frame_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_register_extension( + extension_name: *const cef_string_t, javascript_code: *const cef_string_t, + handler: *mut cef_v8handler_t, + ) -> ::std::os::raw::c_int; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_render_process_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_web_kit_initialized: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_render_process_handler_t), + >, + #[doc = ""] + pub on_browser_created: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + extra_info: *mut _cef_dictionary_value_t, + ), + >, + #[doc = ""] + pub on_browser_destroyed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + ), + >, + #[doc = ""] + pub get_load_handler: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + ) -> *mut _cef_load_handler_t, + >, + #[doc = ""] + pub on_context_created: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + context: *mut _cef_v8context_t, + ), + >, + #[doc = ""] + pub on_context_released: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + context: *mut _cef_v8context_t, + ), + >, + #[doc = ""] + pub on_uncaught_exception: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + context: *mut _cef_v8context_t, + exception: *mut _cef_v8exception_t, + stackTrace: *mut _cef_v8stack_trace_t, + ), + >, + #[doc = ""] + pub on_focused_node_changed: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + node: *mut _cef_domnode_t, + ), + >, + #[doc = ""] + pub on_process_message_received: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_render_process_handler_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + source_process: cef_process_id_t::Type, + message: *mut _cef_process_message_t, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_render_process_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_render_process_handler_t>(), + 56usize, + concat!("Size of: ", stringify!(_cef_render_process_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_render_process_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_render_process_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_web_kit_initialized + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_web_kit_initialized) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_browser_created as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_browser_created) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_browser_destroyed + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_browser_destroyed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).get_load_handler as *const _ + as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(get_load_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_context_created as *const _ + as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_context_created) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_context_released + as *const _ as usize + }, + 40usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_context_released) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_uncaught_exception + as *const _ as usize + }, + 44usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_uncaught_exception) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_focused_node_changed + as *const _ as usize + }, + 48usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_focused_node_changed) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_process_message_received + as *const _ as usize + }, + 52usize, + concat!( + "Offset of field: ", + stringify!(_cef_render_process_handler_t), + "::", + stringify!(on_process_message_received) + ) + ); +} +#[doc = ""] +pub type cef_render_process_handler_t = _cef_render_process_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_resource_bundle_handler_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub get_localized_string: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_bundle_handler_t, + string_id: ::std::os::raw::c_int, + string: *mut cef_string_t, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_data_resource: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_bundle_handler_t, + resource_id: ::std::os::raw::c_int, + data: *mut *mut ::std::os::raw::c_void, + data_size: *mut usize, + ) -> ::std::os::raw::c_int, + >, + #[doc = ""] + pub get_data_resource_for_scale: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_resource_bundle_handler_t, + resource_id: ::std::os::raw::c_int, + scale_factor: cef_scale_factor_t::Type, + data: *mut *mut ::std::os::raw::c_void, + data_size: *mut usize, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_resource_bundle_handler_t() { + assert_eq!( + ::std::mem::size_of::<_cef_resource_bundle_handler_t>(), + 32usize, + concat!("Size of: ", stringify!(_cef_resource_bundle_handler_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_resource_bundle_handler_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_resource_bundle_handler_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_bundle_handler_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_localized_string + as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_bundle_handler_t), + "::", + stringify!(get_localized_string) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_data_resource as *const _ + as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_bundle_handler_t), + "::", + stringify!(get_data_resource) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_data_resource_for_scale + as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_resource_bundle_handler_t), + "::", + stringify!(get_data_resource_for_scale) + ) + ); +} +#[doc = ""] +pub type cef_resource_bundle_handler_t = _cef_resource_bundle_handler_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_scheme_registrar_t { + #[doc = ""] + pub base: cef_base_scoped_t, + #[doc = ""] + pub add_custom_scheme: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_scheme_registrar_t, + scheme_name: *const cef_string_t, + options: ::std::os::raw::c_int, + ) -> ::std::os::raw::c_int, + >, +} +#[test] +fn bindgen_test_layout__cef_scheme_registrar_t() { + assert_eq!( + ::std::mem::size_of::<_cef_scheme_registrar_t>(), + 12usize, + concat!("Size of: ", stringify!(_cef_scheme_registrar_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_scheme_registrar_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_scheme_registrar_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_scheme_registrar_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_scheme_registrar_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_scheme_registrar_t>())).add_custom_scheme as *const _ + as usize + }, + 8usize, + concat!( + "Offset of field: ", + stringify!(_cef_scheme_registrar_t), + "::", + stringify!(add_custom_scheme) + ) + ); +} +#[doc = ""] +pub type cef_scheme_registrar_t = _cef_scheme_registrar_t; +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_scheme_handler_factory_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub create: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_scheme_handler_factory_t, + browser: *mut _cef_browser_t, + frame: *mut _cef_frame_t, + scheme_name: *const cef_string_t, + request: *mut _cef_request_t, + ) -> *mut _cef_resource_handler_t, + >, +} +#[test] +fn bindgen_test_layout__cef_scheme_handler_factory_t() { + assert_eq!( + ::std::mem::size_of::<_cef_scheme_handler_factory_t>(), + 24usize, + concat!("Size of: ", stringify!(_cef_scheme_handler_factory_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_scheme_handler_factory_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_scheme_handler_factory_t)) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_scheme_handler_factory_t>())).base as *const _ as usize + }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_scheme_handler_factory_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_scheme_handler_factory_t>())).create as *const _ as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_scheme_handler_factory_t), + "::", + stringify!(create) + ) + ); +} +#[doc = ""] +pub type cef_scheme_handler_factory_t = _cef_scheme_handler_factory_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_register_scheme_handler_factory( + scheme_name: *const cef_string_t, domain_name: *const cef_string_t, + factory: *mut cef_scheme_handler_factory_t, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_clear_scheme_handler_factories() -> ::std::os::raw::c_int; +} +#[doc = ""] +#[repr(C)] +#[derive(Copy, Clone)] +pub struct _cef_app_t { + #[doc = ""] + pub base: cef_base_ref_counted_t, + #[doc = ""] + pub on_before_command_line_processing: ::std::option::Option< + unsafe extern "system" fn( + self_: *mut _cef_app_t, + process_type: *const cef_string_t, + command_line: *mut _cef_command_line_t, + ), + >, + #[doc = ""] + pub on_register_custom_schemes: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t), + >, + #[doc = ""] + pub get_resource_bundle_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t, + >, + #[doc = ""] + pub get_browser_process_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t, + >, + #[doc = ""] + pub get_render_process_handler: ::std::option::Option< + unsafe extern "system" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t, + >, +} +#[test] +fn bindgen_test_layout__cef_app_t() { + assert_eq!( + ::std::mem::size_of::<_cef_app_t>(), + 40usize, + concat!("Size of: ", stringify!(_cef_app_t)) + ); + assert_eq!( + ::std::mem::align_of::<_cef_app_t>(), + 4usize, + concat!("Alignment of ", stringify!(_cef_app_t)) + ); + assert_eq!( + unsafe { &(*(::std::ptr::null::<_cef_app_t>())).base as *const _ as usize }, + 0usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(base) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_app_t>())).on_before_command_line_processing as *const _ + as usize + }, + 20usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(on_before_command_line_processing) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_app_t>())).on_register_custom_schemes as *const _ as usize + }, + 24usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(on_register_custom_schemes) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_app_t>())).get_resource_bundle_handler as *const _ as usize + }, + 28usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(get_resource_bundle_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_app_t>())).get_browser_process_handler as *const _ as usize + }, + 32usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(get_browser_process_handler) + ) + ); + assert_eq!( + unsafe { + &(*(::std::ptr::null::<_cef_app_t>())).get_render_process_handler as *const _ as usize + }, + 36usize, + concat!( + "Offset of field: ", + stringify!(_cef_app_t), + "::", + stringify!(get_render_process_handler) + ) + ); +} +#[doc = ""] +pub type cef_app_t = _cef_app_t; +unsafe extern "C" { + #[doc = ""] + pub fn cef_execute_process( + args: *const _cef_main_args_t, application: *mut cef_app_t, + windows_sandbox_info: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_initialize( + args: *const _cef_main_args_t, settings: *const _cef_settings_t, + application: *mut cef_app_t, windows_sandbox_info: *mut ::std::os::raw::c_void, + ) -> ::std::os::raw::c_int; +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_shutdown(); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_do_message_loop_work(); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_run_message_loop(); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_quit_message_loop(); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_set_osmodal_loop(osModalLoop: ::std::os::raw::c_int); +} +unsafe extern "C" { + #[doc = ""] + pub fn cef_enable_highdpi_support(); +} diff --git a/cef-sys/src/lib.rs b/cef-sys/src/lib.rs index 5186ae0..07f67be 100644 --- a/cef-sys/src/lib.rs +++ b/cef-sys/src/lib.rs @@ -1,24172 +1,9 @@ -/* automatically generated by rust-bindgen 0.57.0 */ +#![allow( + non_camel_case_types, + non_snake_case, + non_upper_case_globals, + clippy::empty_docs, + clippy::type_complexity +)] -pub type wchar_t = ::std::os::raw::c_ushort; -pub type int64 = ::std::os::raw::c_longlong; -pub type uint64 = ::std::os::raw::c_ulonglong; -pub type int32 = ::std::os::raw::c_int; -pub type uint32 = ::std::os::raw::c_uint; -pub type char16 = wchar_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_string_wide_t { - pub str_: *mut wchar_t, - pub length: usize, - pub dtor: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_string_wide_t() { - assert_eq!( - ::std::mem::size_of::<_cef_string_wide_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_string_wide_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_string_wide_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_string_wide_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).str_ as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_wide_t), - "::", - stringify!(str_) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).length as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_wide_t), - "::", - stringify!(length) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_wide_t>())).dtor as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_wide_t), - "::", - stringify!(dtor) - ) - ); -} -pub type cef_string_wide_t = _cef_string_wide_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_string_utf8_t { - pub str_: *mut ::std::os::raw::c_char, - pub length: usize, - pub dtor: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_string_utf8_t() { - assert_eq!( - ::std::mem::size_of::<_cef_string_utf8_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_string_utf8_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_string_utf8_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_string_utf8_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).str_ as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf8_t), - "::", - stringify!(str_) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).length as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf8_t), - "::", - stringify!(length) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf8_t>())).dtor as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf8_t), - "::", - stringify!(dtor) - ) - ); -} -pub type cef_string_utf8_t = _cef_string_utf8_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_string_utf16_t { - pub str_: *mut char16, - pub length: usize, - pub dtor: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_string_utf16_t() { - assert_eq!( - ::std::mem::size_of::<_cef_string_utf16_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_string_utf16_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_string_utf16_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_string_utf16_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).str_ as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf16_t), - "::", - stringify!(str_) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).length as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf16_t), - "::", - stringify!(length) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_utf16_t>())).dtor as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_utf16_t), - "::", - stringify!(dtor) - ) - ); -} -pub type cef_string_utf16_t = _cef_string_utf16_t; -extern "C" { - #[doc = ""] - pub fn cef_string_wide_set( - src: *const wchar_t, src_len: usize, output: *mut cef_string_wide_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_set( - src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf8_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_set( - src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, - copy: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_wide_clear(str_: *mut cef_string_wide_t); -} -extern "C" { - pub fn cef_string_utf8_clear(str_: *mut cef_string_utf8_t); -} -extern "C" { - pub fn cef_string_utf16_clear(str_: *mut cef_string_utf16_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_wide_cmp( - str1: *const cef_string_wide_t, str2: *const cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_cmp( - str1: *const cef_string_utf8_t, str2: *const cef_string_utf8_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_cmp( - str1: *const cef_string_utf16_t, str2: *const cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_wide_to_utf8( - src: *const wchar_t, src_len: usize, output: *mut cef_string_utf8_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_to_wide( - src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_wide_to_utf16( - src: *const wchar_t, src_len: usize, output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_wide( - src: *const char16, src_len: usize, output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf8_to_utf16( - src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_utf8( - src: *const char16, src_len: usize, output: *mut cef_string_utf8_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_ascii_to_wide( - src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_wide_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_ascii_to_utf16( - src: *const ::std::os::raw::c_char, src_len: usize, output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -#[doc = ""] -pub type cef_string_userfree_wide_t = *mut cef_string_wide_t; -pub type cef_string_userfree_utf8_t = *mut cef_string_utf8_t; -pub type cef_string_userfree_utf16_t = *mut cef_string_utf16_t; -extern "C" { - #[doc = ""] - pub fn cef_string_userfree_wide_alloc() -> cef_string_userfree_wide_t; -} -extern "C" { - pub fn cef_string_userfree_utf8_alloc() -> cef_string_userfree_utf8_t; -} -extern "C" { - pub fn cef_string_userfree_utf16_alloc() -> cef_string_userfree_utf16_t; -} -extern "C" { - #[doc = ""] - pub fn cef_string_userfree_wide_free(str_: cef_string_userfree_wide_t); -} -extern "C" { - pub fn cef_string_userfree_utf8_free(str_: cef_string_userfree_utf8_t); -} -extern "C" { - pub fn cef_string_userfree_utf16_free(str_: cef_string_userfree_utf16_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_utf16_to_lower( - src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_string_utf16_to_upper( - src: *const char16, src_len: usize, output: *mut cef_string_utf16_t, - ) -> ::std::os::raw::c_int; -} -pub type cef_char_t = char16; -pub type cef_string_userfree_t = cef_string_userfree_utf16_t; -pub type cef_string_t = cef_string_utf16_t; -#[doc = ""] -pub type cef_string_list_t = *mut ::std::os::raw::c_void; -extern "C" { - #[doc = ""] - pub fn cef_string_list_alloc() -> cef_string_list_t; -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_size(list: cef_string_list_t) -> usize; -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_value( - list: cef_string_list_t, index: usize, value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_append(list: cef_string_list_t, value: *const cef_string_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_clear(list: cef_string_list_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_free(list: cef_string_list_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_list_copy(list: cef_string_list_t) -> cef_string_list_t; -} -#[doc = ""] -pub type cef_string_map_t = *mut ::std::os::raw::c_void; -extern "C" { - #[doc = ""] - pub fn cef_string_map_alloc() -> cef_string_map_t; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_size(map: cef_string_map_t) -> usize; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_find( - map: cef_string_map_t, key: *const cef_string_t, value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_key( - map: cef_string_map_t, index: usize, key: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_value( - map: cef_string_map_t, index: usize, value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_append( - map: cef_string_map_t, key: *const cef_string_t, value: *const cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_clear(map: cef_string_map_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_map_free(map: cef_string_map_t); -} -#[doc = ""] -pub type cef_string_multimap_t = *mut ::std::os::raw::c_void; -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_alloc() -> cef_string_multimap_t; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_size(map: cef_string_multimap_t) -> usize; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_find_count( - map: cef_string_multimap_t, key: *const cef_string_t, - ) -> usize; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_enumerate( - map: cef_string_multimap_t, key: *const cef_string_t, value_index: usize, - value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_key( - map: cef_string_multimap_t, index: usize, key: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_value( - map: cef_string_multimap_t, index: usize, value: *mut cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_append( - map: cef_string_multimap_t, key: *const cef_string_t, value: *const cef_string_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_clear(map: cef_string_multimap_t); -} -extern "C" { - #[doc = ""] - pub fn cef_string_multimap_free(map: cef_string_multimap_t); -} -pub type __time64_t = ::std::os::raw::c_longlong; -pub type time_t = __time64_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_time_t { - pub year: ::std::os::raw::c_int, - pub month: ::std::os::raw::c_int, - pub day_of_week: ::std::os::raw::c_int, - pub day_of_month: ::std::os::raw::c_int, - pub hour: ::std::os::raw::c_int, - pub minute: ::std::os::raw::c_int, - pub second: ::std::os::raw::c_int, - pub millisecond: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_time_t() { - assert_eq!( - ::std::mem::size_of::<_cef_time_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_time_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_time_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_time_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).year as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(year) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).month as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(month) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).day_of_week as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(day_of_week) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).day_of_month as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(day_of_month) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).hour as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(hour) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).minute as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(minute) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).second as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(second) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_time_t>())).millisecond as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_time_t), - "::", - stringify!(millisecond) - ) - ); -} -#[doc = ""] -pub type cef_time_t = _cef_time_t; -extern "C" { - #[doc = ""] - pub fn cef_time_to_timet( - cef_time: *const cef_time_t, time: *mut time_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_from_timet(time: time_t, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_time_to_doublet( - cef_time: *const cef_time_t, time: *mut f64, - ) -> ::std::os::raw::c_int; -} -extern "C" { - pub fn cef_time_from_doublet(time: f64, cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_time_now(cef_time: *mut cef_time_t) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_time_delta( - cef_time1: *const cef_time_t, cef_time2: *const cef_time_t, - delta: *mut ::std::os::raw::c_longlong, - ) -> ::std::os::raw::c_int; -} -pub type DWORD = ::std::os::raw::c_ulong; -pub type UINT = ::std::os::raw::c_uint; -pub type UINT_PTR = ::std::os::raw::c_uint; -pub type LONG_PTR = ::std::os::raw::c_long; -pub type LONG = ::std::os::raw::c_long; -pub type WPARAM = UINT_PTR; -pub type LPARAM = LONG_PTR; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HINSTANCE__ { - pub unused: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_HINSTANCE__() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(HINSTANCE__)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(HINSTANCE__)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HINSTANCE__), - "::", - stringify!(unused) - ) - ); -} -pub type HINSTANCE = *mut HINSTANCE__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HWND__ { - pub unused: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_HWND__() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(HWND__)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(HWND__)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HWND__), - "::", - stringify!(unused) - ) - ); -} -pub type HWND = *mut HWND__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HICON__ { - pub unused: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_HICON__() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(HICON__)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(HICON__)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HICON__), - "::", - stringify!(unused) - ) - ); -} -pub type HICON = *mut HICON__; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct HMENU__ { - pub unused: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout_HMENU__() { - assert_eq!( - ::std::mem::size_of::(), - 4usize, - concat!("Size of: ", stringify!(HMENU__)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(HMENU__)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).unused as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(HMENU__), - "::", - stringify!(unused) - ) - ); -} -pub type HMENU = *mut HMENU__; -pub type HCURSOR = HICON; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagPOINT { - pub x: LONG, - pub y: LONG, -} -#[test] -fn bindgen_test_layout_tagPOINT() { - assert_eq!( - ::std::mem::size_of::(), - 8usize, - concat!("Size of: ", stringify!(tagPOINT)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(tagPOINT)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(tagPOINT), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).y as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(tagPOINT), - "::", - stringify!(y) - ) - ); -} -pub type POINT = tagPOINT; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct tagMSG { - pub hwnd: HWND, - pub message: UINT, - pub wParam: WPARAM, - pub lParam: LPARAM, - pub time: DWORD, - pub pt: POINT, -} -#[test] -fn bindgen_test_layout_tagMSG() { - assert_eq!( - ::std::mem::size_of::(), - 28usize, - concat!("Size of: ", stringify!(tagMSG)) - ); - assert_eq!( - ::std::mem::align_of::(), - 4usize, - concat!("Alignment of ", stringify!(tagMSG)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).hwnd as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(hwnd) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).message as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(message) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).wParam as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(wParam) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).lParam as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(lParam) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).time as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(time) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::())).pt as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(tagMSG), - "::", - stringify!(pt) - ) - ); -} -pub type MSG = tagMSG; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_main_args_t { - pub instance: HINSTANCE, -} -#[test] -fn bindgen_test_layout__cef_main_args_t() { - assert_eq!( - ::std::mem::size_of::<_cef_main_args_t>(), - 4usize, - concat!("Size of: ", stringify!(_cef_main_args_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_main_args_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_main_args_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_main_args_t>())).instance as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_main_args_t), - "::", - stringify!(instance) - ) - ); -} -#[doc = ""] -pub type cef_main_args_t = _cef_main_args_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_window_info_t { - pub ex_style: DWORD, - pub window_name: cef_string_t, - pub style: DWORD, - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub width: ::std::os::raw::c_int, - pub height: ::std::os::raw::c_int, - pub parent_window: HWND, - pub menu: HMENU, - #[doc = ""] - pub windowless_rendering_enabled: ::std::os::raw::c_int, - #[doc = ""] - pub shared_texture_enabled: ::std::os::raw::c_int, - #[doc = ""] - pub external_begin_frame_enabled: ::std::os::raw::c_int, - #[doc = ""] - pub window: HWND, -} -#[test] -fn bindgen_test_layout__cef_window_info_t() { - assert_eq!( - ::std::mem::size_of::<_cef_window_info_t>(), - 60usize, - concat!("Size of: ", stringify!(_cef_window_info_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_window_info_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_window_info_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).ex_style as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(ex_style) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).window_name as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(window_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).style as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(style) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).x as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).y as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(y) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).width as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(width) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).height as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(height) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_window_info_t>())).parent_window as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(parent_window) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).menu as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_window_info_t>())).windowless_rendering_enabled as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(windowless_rendering_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_window_info_t>())).shared_texture_enabled as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(shared_texture_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_window_info_t>())).external_begin_frame_enabled as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(external_begin_frame_enabled) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_window_info_t>())).window as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_window_info_t), - "::", - stringify!(window) - ) - ); -} -#[doc = ""] -pub type cef_window_info_t = _cef_window_info_t; -pub type cef_color_t = uint32; -pub mod cef_log_severity_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const LOGSEVERITY_DEFAULT: Type = 0; - #[doc = ""] - pub const LOGSEVERITY_VERBOSE: Type = 1; - #[doc = ""] - pub const LOGSEVERITY_DEBUG: Type = 1; - #[doc = ""] - pub const LOGSEVERITY_INFO: Type = 2; - #[doc = ""] - pub const LOGSEVERITY_WARNING: Type = 3; - #[doc = ""] - pub const LOGSEVERITY_ERROR: Type = 4; - #[doc = ""] - pub const LOGSEVERITY_FATAL: Type = 5; - #[doc = ""] - pub const LOGSEVERITY_DISABLE: Type = 99; -} -pub mod cef_state_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const STATE_DEFAULT: Type = 0; - #[doc = ""] - pub const STATE_ENABLED: Type = 1; - #[doc = ""] - pub const STATE_DISABLED: Type = 2; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_settings_t { - #[doc = ""] - pub size: usize, - #[doc = ""] - pub no_sandbox: ::std::os::raw::c_int, - #[doc = ""] - pub browser_subprocess_path: cef_string_t, - #[doc = ""] - pub framework_dir_path: cef_string_t, - #[doc = ""] - pub main_bundle_path: cef_string_t, - #[doc = ""] - pub chrome_runtime: ::std::os::raw::c_int, - #[doc = ""] - pub multi_threaded_message_loop: ::std::os::raw::c_int, - #[doc = ""] - pub external_message_pump: ::std::os::raw::c_int, - #[doc = ""] - pub windowless_rendering_enabled: ::std::os::raw::c_int, - #[doc = ""] - pub command_line_args_disabled: ::std::os::raw::c_int, - #[doc = ""] - pub cache_path: cef_string_t, - #[doc = ""] - pub root_cache_path: cef_string_t, - #[doc = ""] - pub user_data_path: cef_string_t, - #[doc = ""] - pub persist_session_cookies: ::std::os::raw::c_int, - #[doc = ""] - pub persist_user_preferences: ::std::os::raw::c_int, - #[doc = ""] - pub user_agent: cef_string_t, - #[doc = ""] - pub product_version: cef_string_t, - #[doc = ""] - pub locale: cef_string_t, - #[doc = ""] - pub log_file: cef_string_t, - #[doc = ""] - pub log_severity: cef_log_severity_t::Type, - #[doc = ""] - pub javascript_flags: cef_string_t, - #[doc = ""] - pub resources_dir_path: cef_string_t, - #[doc = ""] - pub locales_dir_path: cef_string_t, - #[doc = ""] - pub pack_loading_disabled: ::std::os::raw::c_int, - #[doc = ""] - pub remote_debugging_port: ::std::os::raw::c_int, - #[doc = ""] - pub uncaught_exception_stack_size: ::std::os::raw::c_int, - #[doc = ""] - pub ignore_certificate_errors: ::std::os::raw::c_int, - #[doc = ""] - pub background_color: cef_color_t, - #[doc = ""] - pub accept_language_list: cef_string_t, - #[doc = ""] - pub application_client_id_for_file_scanning: cef_string_t, -} -#[test] -fn bindgen_test_layout__cef_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_settings_t>(), - 240usize, - concat!("Size of: ", stringify!(_cef_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_settings_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).no_sandbox as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(no_sandbox) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).browser_subprocess_path as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(browser_subprocess_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).framework_dir_path as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(framework_dir_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).main_bundle_path as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(main_bundle_path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).chrome_runtime as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(chrome_runtime) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).multi_threaded_message_loop as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(multi_threaded_message_loop) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).external_message_pump as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(external_message_pump) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).windowless_rendering_enabled as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(windowless_rendering_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).command_line_args_disabled as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(command_line_args_disabled) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).cache_path as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(cache_path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).root_cache_path as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(root_cache_path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).user_data_path as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(user_data_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).persist_session_cookies as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(persist_session_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).persist_user_preferences as *const _ - as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(persist_user_preferences) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).user_agent as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(user_agent) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).product_version as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(product_version) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).locale as *const _ as usize }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(locale) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).log_file as *const _ as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(log_file) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_settings_t>())).log_severity as *const _ as usize }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(log_severity) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).javascript_flags as *const _ as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(javascript_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).resources_dir_path as *const _ as usize - }, - 172usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(resources_dir_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).locales_dir_path as *const _ as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(locales_dir_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).pack_loading_disabled as *const _ as usize - }, - 196usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(pack_loading_disabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).remote_debugging_port as *const _ as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(remote_debugging_port) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).uncaught_exception_stack_size as *const _ - as usize - }, - 204usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(uncaught_exception_stack_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).ignore_certificate_errors as *const _ - as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(ignore_certificate_errors) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).background_color as *const _ as usize - }, - 212usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(background_color) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).accept_language_list as *const _ as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(accept_language_list) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_settings_t>())).application_client_id_for_file_scanning - as *const _ as usize - }, - 228usize, - concat!( - "Offset of field: ", - stringify!(_cef_settings_t), - "::", - stringify!(application_client_id_for_file_scanning) - ) - ); -} -#[doc = ""] -pub type cef_settings_t = _cef_settings_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_request_context_settings_t { - #[doc = ""] - pub size: usize, - #[doc = ""] - pub cache_path: cef_string_t, - #[doc = ""] - pub persist_session_cookies: ::std::os::raw::c_int, - #[doc = ""] - pub persist_user_preferences: ::std::os::raw::c_int, - #[doc = ""] - pub ignore_certificate_errors: ::std::os::raw::c_int, - #[doc = ""] - pub accept_language_list: cef_string_t, -} -#[test] -fn bindgen_test_layout__cef_request_context_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_request_context_settings_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_request_context_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_request_context_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_request_context_settings_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).size as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).cache_path as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(cache_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).persist_session_cookies - as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(persist_session_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).persist_user_preferences - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(persist_user_preferences) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).ignore_certificate_errors - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(ignore_certificate_errors) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_settings_t>())).accept_language_list - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_settings_t), - "::", - stringify!(accept_language_list) - ) - ); -} -#[doc = ""] -pub type cef_request_context_settings_t = _cef_request_context_settings_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_browser_settings_t { - #[doc = ""] - pub size: usize, - #[doc = ""] - pub windowless_frame_rate: ::std::os::raw::c_int, - #[doc = ""] - pub standard_font_family: cef_string_t, - pub fixed_font_family: cef_string_t, - pub serif_font_family: cef_string_t, - pub sans_serif_font_family: cef_string_t, - pub cursive_font_family: cef_string_t, - pub fantasy_font_family: cef_string_t, - pub default_font_size: ::std::os::raw::c_int, - pub default_fixed_font_size: ::std::os::raw::c_int, - pub minimum_font_size: ::std::os::raw::c_int, - pub minimum_logical_font_size: ::std::os::raw::c_int, - #[doc = ""] - pub default_encoding: cef_string_t, - #[doc = ""] - pub remote_fonts: cef_state_t::Type, - #[doc = ""] - pub javascript: cef_state_t::Type, - #[doc = ""] - pub javascript_close_windows: cef_state_t::Type, - #[doc = ""] - pub javascript_access_clipboard: cef_state_t::Type, - #[doc = ""] - pub javascript_dom_paste: cef_state_t::Type, - #[doc = ""] - pub plugins: cef_state_t::Type, - #[doc = ""] - pub universal_access_from_file_urls: cef_state_t::Type, - #[doc = ""] - pub file_access_from_file_urls: cef_state_t::Type, - #[doc = ""] - pub web_security: cef_state_t::Type, - #[doc = ""] - pub image_loading: cef_state_t::Type, - #[doc = ""] - pub image_shrink_standalone_to_fit: cef_state_t::Type, - #[doc = ""] - pub text_area_resize: cef_state_t::Type, - #[doc = ""] - pub tab_to_links: cef_state_t::Type, - #[doc = ""] - pub local_storage: cef_state_t::Type, - #[doc = ""] - pub databases: cef_state_t::Type, - #[doc = ""] - pub application_cache: cef_state_t::Type, - #[doc = ""] - pub webgl: cef_state_t::Type, - #[doc = ""] - pub background_color: cef_color_t, - #[doc = ""] - pub accept_language_list: cef_string_t, -} -#[test] -fn bindgen_test_layout__cef_browser_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_browser_settings_t>(), - 192usize, - concat!("Size of: ", stringify!(_cef_browser_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_browser_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_browser_settings_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).windowless_frame_rate as *const _ - as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(windowless_frame_rate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).standard_font_family as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(standard_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).fixed_font_family as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(fixed_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).serif_font_family as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(serif_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).sans_serif_font_family as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(sans_serif_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).cursive_font_family as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(cursive_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).fantasy_font_family as *const _ - as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(fantasy_font_family) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_font_size as *const _ - as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(default_font_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_fixed_font_size as *const _ - as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(default_fixed_font_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).minimum_font_size as *const _ - as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(minimum_font_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).minimum_logical_font_size - as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(minimum_logical_font_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).default_encoding as *const _ - as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(default_encoding) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).remote_fonts as *const _ as usize - }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(remote_fonts) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(javascript) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_close_windows as *const _ - as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(javascript_close_windows) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_access_clipboard - as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(javascript_access_clipboard) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).javascript_dom_paste as *const _ - as usize - }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(javascript_dom_paste) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).plugins as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(plugins) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).universal_access_from_file_urls - as *const _ as usize - }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(universal_access_from_file_urls) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).file_access_from_file_urls - as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(file_access_from_file_urls) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).web_security as *const _ as usize - }, - 140usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(web_security) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).image_loading as *const _ as usize - }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(image_loading) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).image_shrink_standalone_to_fit - as *const _ as usize - }, - 148usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(image_shrink_standalone_to_fit) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).text_area_resize as *const _ - as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(text_area_resize) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).tab_to_links as *const _ as usize - }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(tab_to_links) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).local_storage as *const _ as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(local_storage) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).databases as *const _ as usize - }, - 164usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(databases) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).application_cache as *const _ - as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(application_cache) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_settings_t>())).webgl as *const _ as usize }, - 172usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(webgl) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).background_color as *const _ - as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(background_color) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_settings_t>())).accept_language_list as *const _ - as usize - }, - 180usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_settings_t), - "::", - stringify!(accept_language_list) - ) - ); -} -#[doc = ""] -pub type cef_browser_settings_t = _cef_browser_settings_t; -pub mod cef_return_value_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const RV_CANCEL: Type = 0; - #[doc = ""] - pub const RV_CONTINUE: Type = 1; - #[doc = ""] - pub const RV_CONTINUE_ASYNC: Type = 2; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_urlparts_t { - #[doc = ""] - pub spec: cef_string_t, - #[doc = ""] - pub scheme: cef_string_t, - #[doc = ""] - pub username: cef_string_t, - #[doc = ""] - pub password: cef_string_t, - #[doc = ""] - pub host: cef_string_t, - #[doc = ""] - pub port: cef_string_t, - #[doc = ""] - pub origin: cef_string_t, - #[doc = ""] - pub path: cef_string_t, - #[doc = ""] - pub query: cef_string_t, - #[doc = ""] - pub fragment: cef_string_t, -} -#[test] -fn bindgen_test_layout__cef_urlparts_t() { - assert_eq!( - ::std::mem::size_of::<_cef_urlparts_t>(), - 120usize, - concat!("Size of: ", stringify!(_cef_urlparts_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_urlparts_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_urlparts_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).spec as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(spec) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).scheme as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(scheme) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).username as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(username) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).password as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(password) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).host as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(host) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).port as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(port) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).origin as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(origin) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).path as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).query as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(query) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_urlparts_t>())).fragment as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_urlparts_t), - "::", - stringify!(fragment) - ) - ); -} -#[doc = ""] -pub type cef_urlparts_t = _cef_urlparts_t; -pub mod cef_cookie_priority_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_COOKIE_PRIORITY_LOW: Type = -1; - pub const CEF_COOKIE_PRIORITY_MEDIUM: Type = 0; - pub const CEF_COOKIE_PRIORITY_HIGH: Type = 1; -} -pub mod cef_cookie_same_site_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_COOKIE_SAME_SITE_UNSPECIFIED: Type = 0; - pub const CEF_COOKIE_SAME_SITE_NO_RESTRICTION: Type = 1; - pub const CEF_COOKIE_SAME_SITE_LAX_MODE: Type = 2; - pub const CEF_COOKIE_SAME_SITE_STRICT_MODE: Type = 3; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_cookie_t { - #[doc = ""] - pub name: cef_string_t, - #[doc = ""] - pub value: cef_string_t, - #[doc = ""] - pub domain: cef_string_t, - #[doc = ""] - pub path: cef_string_t, - #[doc = ""] - pub secure: ::std::os::raw::c_int, - #[doc = ""] - pub httponly: ::std::os::raw::c_int, - #[doc = ""] - pub creation: cef_time_t, - #[doc = ""] - pub last_access: cef_time_t, - #[doc = ""] - pub has_expires: ::std::os::raw::c_int, - pub expires: cef_time_t, - #[doc = ""] - pub same_site: cef_cookie_same_site_t::Type, - #[doc = ""] - pub priority: cef_cookie_priority_t::Type, -} -#[test] -fn bindgen_test_layout__cef_cookie_t() { - assert_eq!( - ::std::mem::size_of::<_cef_cookie_t>(), - 164usize, - concat!("Size of: ", stringify!(_cef_cookie_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_cookie_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_cookie_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).name as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).value as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).domain as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(domain) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).path as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).secure as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(secure) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).httponly as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(httponly) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).creation as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(creation) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).last_access as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(last_access) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).has_expires as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(has_expires) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).expires as *const _ as usize }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(expires) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).same_site as *const _ as usize }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(same_site) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_t>())).priority as *const _ as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_t), - "::", - stringify!(priority) - ) - ); -} -#[doc = ""] -pub type cef_cookie_t = _cef_cookie_t; -pub mod cef_termination_status_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const TS_ABNORMAL_TERMINATION: Type = 0; - #[doc = ""] - pub const TS_PROCESS_WAS_KILLED: Type = 1; - #[doc = ""] - pub const TS_PROCESS_CRASHED: Type = 2; - #[doc = ""] - pub const TS_PROCESS_OOM: Type = 3; -} -pub mod cef_path_key_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const PK_DIR_CURRENT: Type = 0; - #[doc = ""] - pub const PK_DIR_EXE: Type = 1; - #[doc = ""] - pub const PK_DIR_MODULE: Type = 2; - #[doc = ""] - pub const PK_DIR_TEMP: Type = 3; - #[doc = ""] - pub const PK_FILE_EXE: Type = 4; - #[doc = ""] - pub const PK_FILE_MODULE: Type = 5; - #[doc = ""] - pub const PK_LOCAL_APP_DATA: Type = 6; - #[doc = ""] - pub const PK_USER_DATA: Type = 7; - #[doc = ""] - pub const PK_DIR_RESOURCES: Type = 8; -} -pub mod cef_storage_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const ST_LOCALSTORAGE: Type = 0; - pub const ST_SESSIONSTORAGE: Type = 1; -} -pub mod cef_errorcode_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const ERR_NONE: Type = 0; - pub const ERR_IO_PENDING: Type = -1; - pub const ERR_FAILED: Type = -2; - pub const ERR_ABORTED: Type = -3; - pub const ERR_INVALID_ARGUMENT: Type = -4; - pub const ERR_INVALID_HANDLE: Type = -5; - pub const ERR_FILE_NOT_FOUND: Type = -6; - pub const ERR_TIMED_OUT: Type = -7; - pub const ERR_FILE_TOO_BIG: Type = -8; - pub const ERR_UNEXPECTED: Type = -9; - pub const ERR_ACCESS_DENIED: Type = -10; - pub const ERR_NOT_IMPLEMENTED: Type = -11; - pub const ERR_INSUFFICIENT_RESOURCES: Type = -12; - pub const ERR_OUT_OF_MEMORY: Type = -13; - pub const ERR_UPLOAD_FILE_CHANGED: Type = -14; - pub const ERR_SOCKET_NOT_CONNECTED: Type = -15; - pub const ERR_FILE_EXISTS: Type = -16; - pub const ERR_FILE_PATH_TOO_LONG: Type = -17; - pub const ERR_FILE_NO_SPACE: Type = -18; - pub const ERR_FILE_VIRUS_INFECTED: Type = -19; - pub const ERR_BLOCKED_BY_CLIENT: Type = -20; - pub const ERR_NETWORK_CHANGED: Type = -21; - pub const ERR_BLOCKED_BY_ADMINISTRATOR: Type = -22; - pub const ERR_SOCKET_IS_CONNECTED: Type = -23; - pub const ERR_BLOCKED_ENROLLMENT_CHECK_PENDING: Type = -24; - pub const ERR_UPLOAD_STREAM_REWIND_NOT_SUPPORTED: Type = -25; - pub const ERR_CONTEXT_SHUT_DOWN: Type = -26; - pub const ERR_BLOCKED_BY_RESPONSE: Type = -27; - pub const ERR_CLEARTEXT_NOT_PERMITTED: Type = -29; - pub const ERR_BLOCKED_BY_CSP: Type = -30; - pub const ERR_H2_OR_QUIC_REQUIRED: Type = -31; - pub const ERR_CONNECTION_CLOSED: Type = -100; - pub const ERR_CONNECTION_RESET: Type = -101; - pub const ERR_CONNECTION_REFUSED: Type = -102; - pub const ERR_CONNECTION_ABORTED: Type = -103; - pub const ERR_CONNECTION_FAILED: Type = -104; - pub const ERR_NAME_NOT_RESOLVED: Type = -105; - pub const ERR_INTERNET_DISCONNECTED: Type = -106; - pub const ERR_SSL_PROTOCOL_ERROR: Type = -107; - pub const ERR_ADDRESS_INVALID: Type = -108; - pub const ERR_ADDRESS_UNREACHABLE: Type = -109; - pub const ERR_SSL_CLIENT_AUTH_CERT_NEEDED: Type = -110; - pub const ERR_TUNNEL_CONNECTION_FAILED: Type = -111; - pub const ERR_NO_SSL_VERSIONS_ENABLED: Type = -112; - pub const ERR_SSL_VERSION_OR_CIPHER_MISMATCH: Type = -113; - pub const ERR_SSL_RENEGOTIATION_REQUESTED: Type = -114; - pub const ERR_PROXY_AUTH_UNSUPPORTED: Type = -115; - pub const ERR_CERT_ERROR_IN_SSL_RENEGOTIATION: Type = -116; - pub const ERR_BAD_SSL_CLIENT_AUTH_CERT: Type = -117; - pub const ERR_CONNECTION_TIMED_OUT: Type = -118; - pub const ERR_HOST_RESOLVER_QUEUE_TOO_LARGE: Type = -119; - pub const ERR_SOCKS_CONNECTION_FAILED: Type = -120; - pub const ERR_SOCKS_CONNECTION_HOST_UNREACHABLE: Type = -121; - pub const ERR_ALPN_NEGOTIATION_FAILED: Type = -122; - pub const ERR_SSL_NO_RENEGOTIATION: Type = -123; - pub const ERR_WINSOCK_UNEXPECTED_WRITTEN_BYTES: Type = -124; - pub const ERR_SSL_DECOMPRESSION_FAILURE_ALERT: Type = -125; - pub const ERR_SSL_BAD_RECORD_MAC_ALERT: Type = -126; - pub const ERR_PROXY_AUTH_REQUESTED: Type = -127; - pub const ERR_PROXY_CONNECTION_FAILED: Type = -130; - pub const ERR_MANDATORY_PROXY_CONFIGURATION_FAILED: Type = -131; - pub const ERR_PRECONNECT_MAX_SOCKET_LIMIT: Type = -133; - pub const ERR_SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED: Type = -134; - pub const ERR_SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY: Type = -135; - pub const ERR_PROXY_CERTIFICATE_INVALID: Type = -136; - pub const ERR_NAME_RESOLUTION_FAILED: Type = -137; - pub const ERR_NETWORK_ACCESS_DENIED: Type = -138; - pub const ERR_TEMPORARILY_THROTTLED: Type = -139; - pub const ERR_HTTPS_PROXY_TUNNEL_RESPONSE_REDIRECT: Type = -140; - pub const ERR_SSL_CLIENT_AUTH_SIGNATURE_FAILED: Type = -141; - pub const ERR_MSG_TOO_BIG: Type = -142; - pub const ERR_WS_PROTOCOL_ERROR: Type = -145; - pub const ERR_ADDRESS_IN_USE: Type = -147; - pub const ERR_SSL_HANDSHAKE_NOT_COMPLETED: Type = -148; - pub const ERR_SSL_BAD_PEER_PUBLIC_KEY: Type = -149; - pub const ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN: Type = -150; - pub const ERR_CLIENT_AUTH_CERT_TYPE_UNSUPPORTED: Type = -151; - pub const ERR_SSL_DECRYPT_ERROR_ALERT: Type = -153; - pub const ERR_WS_THROTTLE_QUEUE_TOO_LARGE: Type = -154; - pub const ERR_SSL_SERVER_CERT_CHANGED: Type = -156; - pub const ERR_SSL_UNRECOGNIZED_NAME_ALERT: Type = -159; - pub const ERR_SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR: Type = -160; - pub const ERR_SOCKET_SET_SEND_BUFFER_SIZE_ERROR: Type = -161; - pub const ERR_SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE: Type = -162; - pub const ERR_SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE: Type = -163; - pub const ERR_SSL_CLIENT_AUTH_CERT_BAD_FORMAT: Type = -164; - pub const ERR_ICANN_NAME_COLLISION: Type = -166; - pub const ERR_SSL_SERVER_CERT_BAD_FORMAT: Type = -167; - pub const ERR_CT_STH_PARSING_FAILED: Type = -168; - pub const ERR_CT_STH_INCOMPLETE: Type = -169; - pub const ERR_UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH: Type = -170; - pub const ERR_CT_CONSISTENCY_PROOF_PARSING_FAILED: Type = -171; - pub const ERR_SSL_OBSOLETE_CIPHER: Type = -172; - pub const ERR_WS_UPGRADE: Type = -173; - pub const ERR_READ_IF_READY_NOT_IMPLEMENTED: Type = -174; - pub const ERR_NO_BUFFER_SPACE: Type = -176; - pub const ERR_SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS: Type = -177; - pub const ERR_EARLY_DATA_REJECTED: Type = -178; - pub const ERR_WRONG_VERSION_ON_EARLY_DATA: Type = -179; - pub const ERR_TLS13_DOWNGRADE_DETECTED: Type = -180; - pub const ERR_SSL_KEY_USAGE_INCOMPATIBLE: Type = -181; - pub const ERR_CERT_COMMON_NAME_INVALID: Type = -200; - pub const ERR_CERT_DATE_INVALID: Type = -201; - pub const ERR_CERT_AUTHORITY_INVALID: Type = -202; - pub const ERR_CERT_CONTAINS_ERRORS: Type = -203; - pub const ERR_CERT_NO_REVOCATION_MECHANISM: Type = -204; - pub const ERR_CERT_UNABLE_TO_CHECK_REVOCATION: Type = -205; - pub const ERR_CERT_REVOKED: Type = -206; - pub const ERR_CERT_INVALID: Type = -207; - pub const ERR_CERT_WEAK_SIGNATURE_ALGORITHM: Type = -208; - pub const ERR_CERT_NON_UNIQUE_NAME: Type = -210; - pub const ERR_CERT_WEAK_KEY: Type = -211; - pub const ERR_CERT_NAME_CONSTRAINT_VIOLATION: Type = -212; - pub const ERR_CERT_VALIDITY_TOO_LONG: Type = -213; - pub const ERR_CERTIFICATE_TRANSPARENCY_REQUIRED: Type = -214; - pub const ERR_CERT_SYMANTEC_LEGACY: Type = -215; - pub const ERR_CERT_KNOWN_INTERCEPTION_BLOCKED: Type = -217; - pub const ERR_SSL_OBSOLETE_VERSION: Type = -218; - pub const ERR_CERT_END: Type = -219; - pub const ERR_INVALID_URL: Type = -300; - pub const ERR_DISALLOWED_URL_SCHEME: Type = -301; - pub const ERR_UNKNOWN_URL_SCHEME: Type = -302; - pub const ERR_INVALID_REDIRECT: Type = -303; - pub const ERR_TOO_MANY_REDIRECTS: Type = -310; - pub const ERR_UNSAFE_REDIRECT: Type = -311; - pub const ERR_UNSAFE_PORT: Type = -312; - pub const ERR_INVALID_RESPONSE: Type = -320; - pub const ERR_INVALID_CHUNKED_ENCODING: Type = -321; - pub const ERR_METHOD_NOT_SUPPORTED: Type = -322; - pub const ERR_UNEXPECTED_PROXY_AUTH: Type = -323; - pub const ERR_EMPTY_RESPONSE: Type = -324; - pub const ERR_RESPONSE_HEADERS_TOO_BIG: Type = -325; - pub const ERR_PAC_SCRIPT_FAILED: Type = -327; - pub const ERR_REQUEST_RANGE_NOT_SATISFIABLE: Type = -328; - pub const ERR_MALFORMED_IDENTITY: Type = -329; - pub const ERR_CONTENT_DECODING_FAILED: Type = -330; - pub const ERR_NETWORK_IO_SUSPENDED: Type = -331; - pub const ERR_SYN_REPLY_NOT_RECEIVED: Type = -332; - pub const ERR_ENCODING_CONVERSION_FAILED: Type = -333; - pub const ERR_UNRECOGNIZED_FTP_DIRECTORY_LISTING_FORMAT: Type = -334; - pub const ERR_NO_SUPPORTED_PROXIES: Type = -336; - pub const ERR_HTTP2_PROTOCOL_ERROR: Type = -337; - pub const ERR_INVALID_AUTH_CREDENTIALS: Type = -338; - pub const ERR_UNSUPPORTED_AUTH_SCHEME: Type = -339; - pub const ERR_ENCODING_DETECTION_FAILED: Type = -340; - pub const ERR_MISSING_AUTH_CREDENTIALS: Type = -341; - pub const ERR_UNEXPECTED_SECURITY_LIBRARY_STATUS: Type = -342; - pub const ERR_MISCONFIGURED_AUTH_ENVIRONMENT: Type = -343; - pub const ERR_UNDOCUMENTED_SECURITY_LIBRARY_STATUS: Type = -344; - pub const ERR_RESPONSE_BODY_TOO_BIG_TO_DRAIN: Type = -345; - pub const ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH: Type = -346; - pub const ERR_INCOMPLETE_HTTP2_HEADERS: Type = -347; - pub const ERR_PAC_NOT_IN_DHCP: Type = -348; - pub const ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION: Type = -349; - pub const ERR_RESPONSE_HEADERS_MULTIPLE_LOCATION: Type = -350; - pub const ERR_HTTP2_SERVER_REFUSED_STREAM: Type = -351; - pub const ERR_HTTP2_PING_FAILED: Type = -352; - pub const ERR_CONTENT_LENGTH_MISMATCH: Type = -354; - pub const ERR_INCOMPLETE_CHUNKED_ENCODING: Type = -355; - pub const ERR_QUIC_PROTOCOL_ERROR: Type = -356; - pub const ERR_RESPONSE_HEADERS_TRUNCATED: Type = -357; - pub const ERR_QUIC_HANDSHAKE_FAILED: Type = -358; - pub const ERR_HTTP2_INADEQUATE_TRANSPORT_SECURITY: Type = -360; - pub const ERR_HTTP2_FLOW_CONTROL_ERROR: Type = -361; - pub const ERR_HTTP2_FRAME_SIZE_ERROR: Type = -362; - pub const ERR_HTTP2_COMPRESSION_ERROR: Type = -363; - pub const ERR_PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION: Type = -364; - pub const ERR_HTTP_1_1_REQUIRED: Type = -365; - pub const ERR_PROXY_HTTP_1_1_REQUIRED: Type = -366; - pub const ERR_PAC_SCRIPT_TERMINATED: Type = -367; - pub const ERR_INVALID_HTTP_RESPONSE: Type = -370; - pub const ERR_CONTENT_DECODING_INIT_FAILED: Type = -371; - pub const ERR_HTTP2_RST_STREAM_NO_ERROR_RECEIVED: Type = -372; - pub const ERR_HTTP2_PUSHED_STREAM_NOT_AVAILABLE: Type = -373; - pub const ERR_HTTP2_CLAIMED_PUSHED_STREAM_RESET_BY_SERVER: Type = -374; - pub const ERR_TOO_MANY_RETRIES: Type = -375; - pub const ERR_HTTP2_STREAM_CLOSED: Type = -376; - pub const ERR_HTTP2_CLIENT_REFUSED_STREAM: Type = -377; - pub const ERR_HTTP2_PUSHED_RESPONSE_DOES_NOT_MATCH: Type = -378; - pub const ERR_HTTP_RESPONSE_CODE_FAILURE: Type = -379; - pub const ERR_QUIC_CERT_ROOT_NOT_KNOWN: Type = -380; - pub const ERR_QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED: Type = -381; - pub const ERR_CACHE_MISS: Type = -400; - pub const ERR_CACHE_READ_FAILURE: Type = -401; - pub const ERR_CACHE_WRITE_FAILURE: Type = -402; - pub const ERR_CACHE_OPERATION_NOT_SUPPORTED: Type = -403; - pub const ERR_CACHE_OPEN_FAILURE: Type = -404; - pub const ERR_CACHE_CREATE_FAILURE: Type = -405; - pub const ERR_CACHE_RACE: Type = -406; - pub const ERR_CACHE_CHECKSUM_READ_FAILURE: Type = -407; - pub const ERR_CACHE_CHECKSUM_MISMATCH: Type = -408; - pub const ERR_CACHE_LOCK_TIMEOUT: Type = -409; - pub const ERR_CACHE_AUTH_FAILURE_AFTER_READ: Type = -410; - pub const ERR_CACHE_ENTRY_NOT_SUITABLE: Type = -411; - pub const ERR_CACHE_DOOM_FAILURE: Type = -412; - pub const ERR_CACHE_OPEN_OR_CREATE_FAILURE: Type = -413; - pub const ERR_INSECURE_RESPONSE: Type = -501; - pub const ERR_NO_PRIVATE_KEY_FOR_CERT: Type = -502; - pub const ERR_ADD_USER_CERT_FAILED: Type = -503; - pub const ERR_INVALID_SIGNED_EXCHANGE: Type = -504; - pub const ERR_INVALID_WEB_BUNDLE: Type = -505; - pub const ERR_TRUST_TOKEN_OPERATION_FAILED: Type = -506; - pub const ERR_TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST: Type = -507; - pub const ERR_FTP_FAILED: Type = -601; - pub const ERR_FTP_SERVICE_UNAVAILABLE: Type = -602; - pub const ERR_FTP_TRANSFER_ABORTED: Type = -603; - pub const ERR_FTP_FILE_BUSY: Type = -604; - pub const ERR_FTP_SYNTAX_ERROR: Type = -605; - pub const ERR_FTP_COMMAND_NOT_SUPPORTED: Type = -606; - pub const ERR_FTP_BAD_COMMAND_SEQUENCE: Type = -607; - pub const ERR_PKCS12_IMPORT_BAD_PASSWORD: Type = -701; - pub const ERR_PKCS12_IMPORT_FAILED: Type = -702; - pub const ERR_IMPORT_CA_CERT_NOT_CA: Type = -703; - pub const ERR_IMPORT_CERT_ALREADY_EXISTS: Type = -704; - pub const ERR_IMPORT_CA_CERT_FAILED: Type = -705; - pub const ERR_IMPORT_SERVER_CERT_FAILED: Type = -706; - pub const ERR_PKCS12_IMPORT_INVALID_MAC: Type = -707; - pub const ERR_PKCS12_IMPORT_INVALID_FILE: Type = -708; - pub const ERR_PKCS12_IMPORT_UNSUPPORTED: Type = -709; - pub const ERR_KEY_GENERATION_FAILED: Type = -710; - pub const ERR_PRIVATE_KEY_EXPORT_FAILED: Type = -712; - pub const ERR_SELF_SIGNED_CERT_GENERATION_FAILED: Type = -713; - pub const ERR_CERT_DATABASE_CHANGED: Type = -714; - pub const ERR_DNS_MALFORMED_RESPONSE: Type = -800; - pub const ERR_DNS_SERVER_REQUIRES_TCP: Type = -801; - pub const ERR_DNS_SERVER_FAILED: Type = -802; - pub const ERR_DNS_TIMED_OUT: Type = -803; - pub const ERR_DNS_CACHE_MISS: Type = -804; - pub const ERR_DNS_SEARCH_EMPTY: Type = -805; - pub const ERR_DNS_SORT_ERROR: Type = -806; - pub const ERR_DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED: Type = -808; -} -pub mod cef_cert_status_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CERT_STATUS_NONE: Type = 0; - pub const CERT_STATUS_COMMON_NAME_INVALID: Type = 1; - pub const CERT_STATUS_DATE_INVALID: Type = 2; - pub const CERT_STATUS_AUTHORITY_INVALID: Type = 4; - pub const CERT_STATUS_NO_REVOCATION_MECHANISM: Type = 16; - pub const CERT_STATUS_UNABLE_TO_CHECK_REVOCATION: Type = 32; - pub const CERT_STATUS_REVOKED: Type = 64; - pub const CERT_STATUS_INVALID: Type = 128; - pub const CERT_STATUS_WEAK_SIGNATURE_ALGORITHM: Type = 256; - pub const CERT_STATUS_NON_UNIQUE_NAME: Type = 1024; - pub const CERT_STATUS_WEAK_KEY: Type = 2048; - pub const CERT_STATUS_PINNED_KEY_MISSING: Type = 8192; - pub const CERT_STATUS_NAME_CONSTRAINT_VIOLATION: Type = 16384; - pub const CERT_STATUS_VALIDITY_TOO_LONG: Type = 32768; - pub const CERT_STATUS_IS_EV: Type = 65536; - pub const CERT_STATUS_REV_CHECKING_ENABLED: Type = 131072; - pub const CERT_STATUS_SHA1_SIGNATURE_PRESENT: Type = 524288; - pub const CERT_STATUS_CT_COMPLIANCE_FAILED: Type = 1048576; -} -pub mod cef_window_open_disposition_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const WOD_UNKNOWN: Type = 0; - pub const WOD_CURRENT_TAB: Type = 1; - pub const WOD_SINGLETON_TAB: Type = 2; - pub const WOD_NEW_FOREGROUND_TAB: Type = 3; - pub const WOD_NEW_BACKGROUND_TAB: Type = 4; - pub const WOD_NEW_POPUP: Type = 5; - pub const WOD_NEW_WINDOW: Type = 6; - pub const WOD_SAVE_TO_DISK: Type = 7; - pub const WOD_OFF_THE_RECORD: Type = 8; - pub const WOD_IGNORE_ACTION: Type = 9; -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_NONE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(0); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_COPY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(1); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_LINK: cef_drag_operations_mask_t = cef_drag_operations_mask_t(2); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_GENERIC: cef_drag_operations_mask_t = cef_drag_operations_mask_t(4); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_PRIVATE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(8); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_MOVE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(16); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_DELETE: cef_drag_operations_mask_t = cef_drag_operations_mask_t(32); -} -impl cef_drag_operations_mask_t { - pub const DRAG_OPERATION_EVERY: cef_drag_operations_mask_t = cef_drag_operations_mask_t(-1); -} -impl ::std::ops::BitOr for cef_drag_operations_mask_t { - type Output = Self; - #[inline] - fn bitor(self, other: Self) -> Self { - cef_drag_operations_mask_t(self.0 | other.0) - } -} -impl ::std::ops::BitOrAssign for cef_drag_operations_mask_t { - #[inline] - fn bitor_assign(&mut self, rhs: cef_drag_operations_mask_t) { - self.0 |= rhs.0; - } -} -impl ::std::ops::BitAnd for cef_drag_operations_mask_t { - type Output = Self; - #[inline] - fn bitand(self, other: Self) -> Self { - cef_drag_operations_mask_t(self.0 & other.0) - } -} -impl ::std::ops::BitAndAssign for cef_drag_operations_mask_t { - #[inline] - fn bitand_assign(&mut self, rhs: cef_drag_operations_mask_t) { - self.0 &= rhs.0; - } -} -#[repr(transparent)] -#[doc = ""] -#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)] -pub struct cef_drag_operations_mask_t(pub ::std::os::raw::c_int); -pub mod cef_text_input_mode_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_TEXT_INPUT_MODE_DEFAULT: Type = 0; - pub const CEF_TEXT_INPUT_MODE_NONE: Type = 1; - pub const CEF_TEXT_INPUT_MODE_TEXT: Type = 2; - pub const CEF_TEXT_INPUT_MODE_TEL: Type = 3; - pub const CEF_TEXT_INPUT_MODE_URL: Type = 4; - pub const CEF_TEXT_INPUT_MODE_EMAIL: Type = 5; - pub const CEF_TEXT_INPUT_MODE_NUMERIC: Type = 6; - pub const CEF_TEXT_INPUT_MODE_DECIMAL: Type = 7; - pub const CEF_TEXT_INPUT_MODE_SEARCH: Type = 8; - pub const CEF_TEXT_INPUT_MODE_MAX: Type = 8; -} -pub mod cef_v8_accesscontrol_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const V8_ACCESS_CONTROL_DEFAULT: Type = 0; - pub const V8_ACCESS_CONTROL_ALL_CAN_READ: Type = 1; - pub const V8_ACCESS_CONTROL_ALL_CAN_WRITE: Type = 2; - pub const V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING: Type = 4; -} -pub mod cef_v8_propertyattribute_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const V8_PROPERTY_ATTRIBUTE_NONE: Type = 0; - pub const V8_PROPERTY_ATTRIBUTE_READONLY: Type = 1; - pub const V8_PROPERTY_ATTRIBUTE_DONTENUM: Type = 2; - pub const V8_PROPERTY_ATTRIBUTE_DONTDELETE: Type = 4; -} -pub mod cef_postdataelement_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const PDE_TYPE_EMPTY: Type = 0; - pub const PDE_TYPE_BYTES: Type = 1; - pub const PDE_TYPE_FILE: Type = 2; -} -pub mod cef_resource_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const RT_MAIN_FRAME: Type = 0; - #[doc = ""] - pub const RT_SUB_FRAME: Type = 1; - #[doc = ""] - pub const RT_STYLESHEET: Type = 2; - #[doc = ""] - pub const RT_SCRIPT: Type = 3; - #[doc = ""] - pub const RT_IMAGE: Type = 4; - #[doc = ""] - pub const RT_FONT_RESOURCE: Type = 5; - #[doc = ""] - pub const RT_SUB_RESOURCE: Type = 6; - #[doc = ""] - pub const RT_OBJECT: Type = 7; - #[doc = ""] - pub const RT_MEDIA: Type = 8; - #[doc = ""] - pub const RT_WORKER: Type = 9; - #[doc = ""] - pub const RT_SHARED_WORKER: Type = 10; - #[doc = ""] - pub const RT_PREFETCH: Type = 11; - #[doc = ""] - pub const RT_FAVICON: Type = 12; - #[doc = ""] - pub const RT_XHR: Type = 13; - #[doc = ""] - pub const RT_PING: Type = 14; - #[doc = ""] - pub const RT_SERVICE_WORKER: Type = 15; - #[doc = ""] - pub const RT_CSP_REPORT: Type = 16; - #[doc = ""] - pub const RT_PLUGIN_RESOURCE: Type = 17; -} -pub mod cef_transition_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const TT_LINK: Type = 0; - #[doc = ""] - pub const TT_EXPLICIT: Type = 1; - #[doc = ""] - pub const TT_AUTO_SUBFRAME: Type = 3; - #[doc = ""] - pub const TT_MANUAL_SUBFRAME: Type = 4; - #[doc = ""] - pub const TT_FORM_SUBMIT: Type = 7; - #[doc = ""] - pub const TT_RELOAD: Type = 8; - #[doc = ""] - pub const TT_SOURCE_MASK: Type = 255; - #[doc = ""] - pub const TT_BLOCKED_FLAG: Type = 8388608; - #[doc = ""] - pub const TT_FORWARD_BACK_FLAG: Type = 16777216; - #[doc = ""] - pub const TT_DIRECT_LOAD_FLAG: Type = 33554432; - #[doc = ""] - pub const TT_CHAIN_START_FLAG: Type = 268435456; - #[doc = ""] - pub const TT_CHAIN_END_FLAG: Type = 536870912; - #[doc = ""] - pub const TT_CLIENT_REDIRECT_FLAG: Type = 1073741824; - #[doc = ""] - pub const TT_SERVER_REDIRECT_FLAG: Type = -2147483648; - #[doc = ""] - pub const TT_IS_REDIRECT_MASK: Type = -1073741824; - #[doc = ""] - pub const TT_QUALIFIER_MASK: Type = -256; -} -pub mod cef_urlrequest_flags_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const UR_FLAG_NONE: Type = 0; - #[doc = ""] - pub const UR_FLAG_SKIP_CACHE: Type = 1; - #[doc = ""] - pub const UR_FLAG_ONLY_FROM_CACHE: Type = 2; - #[doc = ""] - pub const UR_FLAG_DISABLE_CACHE: Type = 4; - #[doc = ""] - pub const UR_FLAG_ALLOW_STORED_CREDENTIALS: Type = 8; - #[doc = ""] - pub const UR_FLAG_REPORT_UPLOAD_PROGRESS: Type = 16; - #[doc = ""] - pub const UR_FLAG_NO_DOWNLOAD_DATA: Type = 32; - #[doc = ""] - pub const UR_FLAG_NO_RETRY_ON_5XX: Type = 64; - #[doc = ""] - pub const UR_FLAG_STOP_ON_REDIRECT: Type = 128; -} -pub mod cef_urlrequest_status_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const UR_UNKNOWN: Type = 0; - #[doc = ""] - pub const UR_SUCCESS: Type = 1; - #[doc = ""] - pub const UR_IO_PENDING: Type = 2; - #[doc = ""] - pub const UR_CANCELED: Type = 3; - #[doc = ""] - pub const UR_FAILED: Type = 4; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_point_t { - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_point_t() { - assert_eq!( - ::std::mem::size_of::<_cef_point_t>(), - 8usize, - concat!("Size of: ", stringify!(_cef_point_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_point_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_point_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_point_t>())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_point_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_point_t>())).y as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_point_t), - "::", - stringify!(y) - ) - ); -} -#[doc = ""] -pub type cef_point_t = _cef_point_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_rect_t { - pub x: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub width: ::std::os::raw::c_int, - pub height: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_rect_t() { - assert_eq!( - ::std::mem::size_of::<_cef_rect_t>(), - 16usize, - concat!("Size of: ", stringify!(_cef_rect_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_rect_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_rect_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_rect_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).y as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_rect_t), - "::", - stringify!(y) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).width as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_rect_t), - "::", - stringify!(width) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_rect_t>())).height as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_rect_t), - "::", - stringify!(height) - ) - ); -} -#[doc = ""] -pub type cef_rect_t = _cef_rect_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_size_t { - pub width: ::std::os::raw::c_int, - pub height: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_size_t() { - assert_eq!( - ::std::mem::size_of::<_cef_size_t>(), - 8usize, - concat!("Size of: ", stringify!(_cef_size_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_size_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_size_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_size_t>())).width as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_size_t), - "::", - stringify!(width) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_size_t>())).height as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_size_t), - "::", - stringify!(height) - ) - ); -} -#[doc = ""] -pub type cef_size_t = _cef_size_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_range_t { - pub from: ::std::os::raw::c_int, - pub to: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_range_t() { - assert_eq!( - ::std::mem::size_of::<_cef_range_t>(), - 8usize, - concat!("Size of: ", stringify!(_cef_range_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_range_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_range_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_range_t>())).from as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_range_t), - "::", - stringify!(from) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_range_t>())).to as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_range_t), - "::", - stringify!(to) - ) - ); -} -#[doc = ""] -pub type cef_range_t = _cef_range_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_insets_t { - pub top: ::std::os::raw::c_int, - pub left: ::std::os::raw::c_int, - pub bottom: ::std::os::raw::c_int, - pub right: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_insets_t() { - assert_eq!( - ::std::mem::size_of::<_cef_insets_t>(), - 16usize, - concat!("Size of: ", stringify!(_cef_insets_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_insets_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_insets_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).top as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_insets_t), - "::", - stringify!(top) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).left as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_insets_t), - "::", - stringify!(left) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).bottom as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_insets_t), - "::", - stringify!(bottom) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_insets_t>())).right as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_insets_t), - "::", - stringify!(right) - ) - ); -} -#[doc = ""] -pub type cef_insets_t = _cef_insets_t; -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_draggable_region_t { - #[doc = ""] - pub bounds: cef_rect_t, - #[doc = ""] - pub draggable: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_draggable_region_t() { - assert_eq!( - ::std::mem::size_of::<_cef_draggable_region_t>(), - 20usize, - concat!("Size of: ", stringify!(_cef_draggable_region_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_draggable_region_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_draggable_region_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_draggable_region_t>())).bounds as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_draggable_region_t), - "::", - stringify!(bounds) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_draggable_region_t>())).draggable as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_draggable_region_t), - "::", - stringify!(draggable) - ) - ); -} -#[doc = ""] -pub type cef_draggable_region_t = _cef_draggable_region_t; -pub mod cef_process_id_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const PID_BROWSER: Type = 0; - #[doc = ""] - pub const PID_RENDERER: Type = 1; -} -pub mod cef_thread_id_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const TID_UI: Type = 0; - #[doc = ""] - pub const TID_FILE_BACKGROUND: Type = 1; - #[doc = ""] - pub const TID_FILE: Type = 1; - #[doc = ""] - pub const TID_FILE_USER_VISIBLE: Type = 2; - #[doc = ""] - pub const TID_FILE_USER_BLOCKING: Type = 3; - #[doc = ""] - pub const TID_PROCESS_LAUNCHER: Type = 4; - #[doc = ""] - pub const TID_IO: Type = 5; - #[doc = ""] - pub const TID_RENDERER: Type = 6; -} -pub mod cef_thread_priority_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const TP_BACKGROUND: Type = 0; - #[doc = ""] - pub const TP_NORMAL: Type = 1; - #[doc = ""] - pub const TP_DISPLAY: Type = 2; - #[doc = ""] - pub const TP_REALTIME_AUDIO: Type = 3; -} -pub mod cef_message_loop_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const ML_TYPE_DEFAULT: Type = 0; - #[doc = ""] - pub const ML_TYPE_UI: Type = 1; - #[doc = ""] - pub const ML_TYPE_IO: Type = 2; -} -pub mod cef_com_init_mode_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const COM_INIT_MODE_NONE: Type = 0; - #[doc = ""] - pub const COM_INIT_MODE_STA: Type = 1; - #[doc = ""] - pub const COM_INIT_MODE_MTA: Type = 2; -} -pub mod cef_value_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const VTYPE_INVALID: Type = 0; - pub const VTYPE_NULL: Type = 1; - pub const VTYPE_BOOL: Type = 2; - pub const VTYPE_INT: Type = 3; - pub const VTYPE_DOUBLE: Type = 4; - pub const VTYPE_STRING: Type = 5; - pub const VTYPE_BINARY: Type = 6; - pub const VTYPE_DICTIONARY: Type = 7; - pub const VTYPE_LIST: Type = 8; -} -pub mod cef_jsdialog_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const JSDIALOGTYPE_ALERT: Type = 0; - pub const JSDIALOGTYPE_CONFIRM: Type = 1; - pub const JSDIALOGTYPE_PROMPT: Type = 2; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_screen_info_t { - #[doc = ""] - pub device_scale_factor: f32, - #[doc = ""] - pub depth: ::std::os::raw::c_int, - #[doc = ""] - pub depth_per_component: ::std::os::raw::c_int, - #[doc = ""] - pub is_monochrome: ::std::os::raw::c_int, - #[doc = ""] - pub rect: cef_rect_t, - #[doc = ""] - pub available_rect: cef_rect_t, -} -#[test] -fn bindgen_test_layout__cef_screen_info_t() { - assert_eq!( - ::std::mem::size_of::<_cef_screen_info_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_screen_info_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_screen_info_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_screen_info_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_screen_info_t>())).device_scale_factor as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(device_scale_factor) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_screen_info_t>())).depth as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(depth) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_screen_info_t>())).depth_per_component as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(depth_per_component) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_screen_info_t>())).is_monochrome as *const _ as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(is_monochrome) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_screen_info_t>())).rect as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(rect) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_screen_info_t>())).available_rect as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_screen_info_t), - "::", - stringify!(available_rect) - ) - ); -} -#[doc = ""] -pub type cef_screen_info_t = _cef_screen_info_t; -pub mod cef_menu_id_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const MENU_ID_BACK: Type = 100; - pub const MENU_ID_FORWARD: Type = 101; - pub const MENU_ID_RELOAD: Type = 102; - pub const MENU_ID_RELOAD_NOCACHE: Type = 103; - pub const MENU_ID_STOPLOAD: Type = 104; - pub const MENU_ID_UNDO: Type = 110; - pub const MENU_ID_REDO: Type = 111; - pub const MENU_ID_CUT: Type = 112; - pub const MENU_ID_COPY: Type = 113; - pub const MENU_ID_PASTE: Type = 114; - pub const MENU_ID_DELETE: Type = 115; - pub const MENU_ID_SELECT_ALL: Type = 116; - pub const MENU_ID_FIND: Type = 130; - pub const MENU_ID_PRINT: Type = 131; - pub const MENU_ID_VIEW_SOURCE: Type = 132; - pub const MENU_ID_SPELLCHECK_SUGGESTION_0: Type = 200; - pub const MENU_ID_SPELLCHECK_SUGGESTION_1: Type = 201; - pub const MENU_ID_SPELLCHECK_SUGGESTION_2: Type = 202; - pub const MENU_ID_SPELLCHECK_SUGGESTION_3: Type = 203; - pub const MENU_ID_SPELLCHECK_SUGGESTION_4: Type = 204; - pub const MENU_ID_SPELLCHECK_SUGGESTION_LAST: Type = 204; - pub const MENU_ID_NO_SPELLING_SUGGESTIONS: Type = 205; - pub const MENU_ID_ADD_TO_DICTIONARY: Type = 206; - pub const MENU_ID_CUSTOM_FIRST: Type = 220; - pub const MENU_ID_CUSTOM_LAST: Type = 250; - pub const MENU_ID_USER_FIRST: Type = 26500; - pub const MENU_ID_USER_LAST: Type = 28500; -} -pub mod cef_mouse_button_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const MBT_LEFT: Type = 0; - pub const MBT_MIDDLE: Type = 1; - pub const MBT_RIGHT: Type = 2; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_mouse_event_t { - #[doc = ""] - pub x: ::std::os::raw::c_int, - #[doc = ""] - pub y: ::std::os::raw::c_int, - #[doc = ""] - pub modifiers: uint32, -} -#[test] -fn bindgen_test_layout__cef_mouse_event_t() { - assert_eq!( - ::std::mem::size_of::<_cef_mouse_event_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_mouse_event_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_mouse_event_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_mouse_event_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_mouse_event_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).y as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_mouse_event_t), - "::", - stringify!(y) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_mouse_event_t>())).modifiers as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_mouse_event_t), - "::", - stringify!(modifiers) - ) - ); -} -#[doc = ""] -pub type cef_mouse_event_t = _cef_mouse_event_t; -pub mod cef_touch_event_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_TET_RELEASED: Type = 0; - pub const CEF_TET_PRESSED: Type = 1; - pub const CEF_TET_MOVED: Type = 2; - pub const CEF_TET_CANCELLED: Type = 3; -} -pub mod cef_pointer_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_POINTER_TYPE_TOUCH: Type = 0; - pub const CEF_POINTER_TYPE_MOUSE: Type = 1; - pub const CEF_POINTER_TYPE_PEN: Type = 2; - pub const CEF_POINTER_TYPE_ERASER: Type = 3; - pub const CEF_POINTER_TYPE_UNKNOWN: Type = 4; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_touch_event_t { - #[doc = ""] - pub id: ::std::os::raw::c_int, - #[doc = ""] - pub x: f32, - #[doc = ""] - pub y: f32, - #[doc = ""] - pub radius_x: f32, - #[doc = ""] - pub radius_y: f32, - #[doc = ""] - pub rotation_angle: f32, - #[doc = ""] - pub pressure: f32, - #[doc = ""] - pub type_: cef_touch_event_type_t::Type, - #[doc = ""] - pub modifiers: uint32, - #[doc = ""] - pub pointer_type: cef_pointer_type_t::Type, -} -#[test] -fn bindgen_test_layout__cef_touch_event_t() { - assert_eq!( - ::std::mem::size_of::<_cef_touch_event_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_touch_event_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_touch_event_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_touch_event_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).id as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(id) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).x as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).y as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(y) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).radius_x as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(radius_x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).radius_y as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(radius_y) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_touch_event_t>())).rotation_angle as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(rotation_angle) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).pressure as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(pressure) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).type_ as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).modifiers as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(modifiers) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_touch_event_t>())).pointer_type as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_touch_event_t), - "::", - stringify!(pointer_type) - ) - ); -} -#[doc = ""] -pub type cef_touch_event_t = _cef_touch_event_t; -pub mod cef_paint_element_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const PET_VIEW: Type = 0; - pub const PET_POPUP: Type = 1; -} -pub mod cef_event_flags_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const EVENTFLAG_NONE: Type = 0; - pub const EVENTFLAG_CAPS_LOCK_ON: Type = 1; - pub const EVENTFLAG_SHIFT_DOWN: Type = 2; - pub const EVENTFLAG_CONTROL_DOWN: Type = 4; - pub const EVENTFLAG_ALT_DOWN: Type = 8; - pub const EVENTFLAG_LEFT_MOUSE_BUTTON: Type = 16; - pub const EVENTFLAG_MIDDLE_MOUSE_BUTTON: Type = 32; - pub const EVENTFLAG_RIGHT_MOUSE_BUTTON: Type = 64; - pub const EVENTFLAG_COMMAND_DOWN: Type = 128; - pub const EVENTFLAG_NUM_LOCK_ON: Type = 256; - pub const EVENTFLAG_IS_KEY_PAD: Type = 512; - pub const EVENTFLAG_IS_LEFT: Type = 1024; - pub const EVENTFLAG_IS_RIGHT: Type = 2048; - pub const EVENTFLAG_ALTGR_DOWN: Type = 4096; -} -pub mod cef_menu_item_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const MENUITEMTYPE_NONE: Type = 0; - pub const MENUITEMTYPE_COMMAND: Type = 1; - pub const MENUITEMTYPE_CHECK: Type = 2; - pub const MENUITEMTYPE_RADIO: Type = 3; - pub const MENUITEMTYPE_SEPARATOR: Type = 4; - pub const MENUITEMTYPE_SUBMENU: Type = 5; -} -pub mod cef_context_menu_type_flags_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CM_TYPEFLAG_NONE: Type = 0; - #[doc = ""] - pub const CM_TYPEFLAG_PAGE: Type = 1; - #[doc = ""] - pub const CM_TYPEFLAG_FRAME: Type = 2; - #[doc = ""] - pub const CM_TYPEFLAG_LINK: Type = 4; - #[doc = ""] - pub const CM_TYPEFLAG_MEDIA: Type = 8; - #[doc = ""] - pub const CM_TYPEFLAG_SELECTION: Type = 16; - #[doc = ""] - pub const CM_TYPEFLAG_EDITABLE: Type = 32; -} -pub mod cef_context_menu_media_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CM_MEDIATYPE_NONE: Type = 0; - #[doc = ""] - pub const CM_MEDIATYPE_IMAGE: Type = 1; - #[doc = ""] - pub const CM_MEDIATYPE_VIDEO: Type = 2; - #[doc = ""] - pub const CM_MEDIATYPE_AUDIO: Type = 3; - #[doc = ""] - pub const CM_MEDIATYPE_FILE: Type = 4; - #[doc = ""] - pub const CM_MEDIATYPE_PLUGIN: Type = 5; -} -pub mod cef_context_menu_media_state_flags_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CM_MEDIAFLAG_NONE: Type = 0; - pub const CM_MEDIAFLAG_ERROR: Type = 1; - pub const CM_MEDIAFLAG_PAUSED: Type = 2; - pub const CM_MEDIAFLAG_MUTED: Type = 4; - pub const CM_MEDIAFLAG_LOOP: Type = 8; - pub const CM_MEDIAFLAG_CAN_SAVE: Type = 16; - pub const CM_MEDIAFLAG_HAS_AUDIO: Type = 32; - pub const CM_MEDIAFLAG_HAS_VIDEO: Type = 64; - pub const CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT: Type = 128; - pub const CM_MEDIAFLAG_CAN_PRINT: Type = 256; - pub const CM_MEDIAFLAG_CAN_ROTATE: Type = 512; -} -pub mod cef_context_menu_edit_state_flags_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CM_EDITFLAG_NONE: Type = 0; - pub const CM_EDITFLAG_CAN_UNDO: Type = 1; - pub const CM_EDITFLAG_CAN_REDO: Type = 2; - pub const CM_EDITFLAG_CAN_CUT: Type = 4; - pub const CM_EDITFLAG_CAN_COPY: Type = 8; - pub const CM_EDITFLAG_CAN_PASTE: Type = 16; - pub const CM_EDITFLAG_CAN_DELETE: Type = 32; - pub const CM_EDITFLAG_CAN_SELECT_ALL: Type = 64; - pub const CM_EDITFLAG_CAN_TRANSLATE: Type = 128; -} -pub mod cef_key_event_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const KEYEVENT_RAWKEYDOWN: Type = 0; - #[doc = ""] - pub const KEYEVENT_KEYDOWN: Type = 1; - #[doc = ""] - pub const KEYEVENT_KEYUP: Type = 2; - #[doc = ""] - pub const KEYEVENT_CHAR: Type = 3; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_key_event_t { - #[doc = ""] - pub type_: cef_key_event_type_t::Type, - #[doc = ""] - pub modifiers: uint32, - #[doc = ""] - pub windows_key_code: ::std::os::raw::c_int, - #[doc = ""] - pub native_key_code: ::std::os::raw::c_int, - #[doc = ""] - pub is_system_key: ::std::os::raw::c_int, - #[doc = ""] - pub character: char16, - #[doc = ""] - pub unmodified_character: char16, - #[doc = ""] - pub focus_on_editable_field: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_key_event_t() { - assert_eq!( - ::std::mem::size_of::<_cef_key_event_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_key_event_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_key_event_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_key_event_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).type_ as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(type_) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).modifiers as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(modifiers) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_key_event_t>())).windows_key_code as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(windows_key_code) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_key_event_t>())).native_key_code as *const _ as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(native_key_code) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).is_system_key as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(is_system_key) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_key_event_t>())).character as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(character) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_key_event_t>())).unmodified_character as *const _ as usize - }, - 22usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(unmodified_character) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_key_event_t>())).focus_on_editable_field as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_key_event_t), - "::", - stringify!(focus_on_editable_field) - ) - ); -} -#[doc = ""] -pub type cef_key_event_t = _cef_key_event_t; -pub mod cef_focus_source_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const FOCUS_SOURCE_NAVIGATION: Type = 0; - #[doc = ""] - pub const FOCUS_SOURCE_SYSTEM: Type = 1; -} -pub mod cef_navigation_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const NAVIGATION_LINK_CLICKED: Type = 0; - pub const NAVIGATION_FORM_SUBMITTED: Type = 1; - pub const NAVIGATION_BACK_FORWARD: Type = 2; - pub const NAVIGATION_RELOAD: Type = 3; - pub const NAVIGATION_FORM_RESUBMITTED: Type = 4; - pub const NAVIGATION_OTHER: Type = 5; -} -pub mod cef_xml_encoding_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const XML_ENCODING_NONE: Type = 0; - pub const XML_ENCODING_UTF8: Type = 1; - pub const XML_ENCODING_UTF16LE: Type = 2; - pub const XML_ENCODING_UTF16BE: Type = 3; - pub const XML_ENCODING_ASCII: Type = 4; -} -pub mod cef_xml_node_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const XML_NODE_UNSUPPORTED: Type = 0; - pub const XML_NODE_PROCESSING_INSTRUCTION: Type = 1; - pub const XML_NODE_DOCUMENT_TYPE: Type = 2; - pub const XML_NODE_ELEMENT_START: Type = 3; - pub const XML_NODE_ELEMENT_END: Type = 4; - pub const XML_NODE_ATTRIBUTE: Type = 5; - pub const XML_NODE_TEXT: Type = 6; - pub const XML_NODE_CDATA: Type = 7; - pub const XML_NODE_ENTITY_REFERENCE: Type = 8; - pub const XML_NODE_WHITESPACE: Type = 9; - pub const XML_NODE_COMMENT: Type = 10; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_popup_features_t { - pub x: ::std::os::raw::c_int, - pub xSet: ::std::os::raw::c_int, - pub y: ::std::os::raw::c_int, - pub ySet: ::std::os::raw::c_int, - pub width: ::std::os::raw::c_int, - pub widthSet: ::std::os::raw::c_int, - pub height: ::std::os::raw::c_int, - pub heightSet: ::std::os::raw::c_int, - pub menuBarVisible: ::std::os::raw::c_int, - pub statusBarVisible: ::std::os::raw::c_int, - pub toolBarVisible: ::std::os::raw::c_int, - pub scrollbarsVisible: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_popup_features_t() { - assert_eq!( - ::std::mem::size_of::<_cef_popup_features_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_popup_features_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_popup_features_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_popup_features_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).x as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(x) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).xSet as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(xSet) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).y as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(y) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).ySet as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(ySet) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).width as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(width) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).widthSet as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(widthSet) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).height as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(height) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_popup_features_t>())).heightSet as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(heightSet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_popup_features_t>())).menuBarVisible as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(menuBarVisible) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_popup_features_t>())).statusBarVisible as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(statusBarVisible) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_popup_features_t>())).toolBarVisible as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(toolBarVisible) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_popup_features_t>())).scrollbarsVisible as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_popup_features_t), - "::", - stringify!(scrollbarsVisible) - ) - ); -} -#[doc = ""] -pub type cef_popup_features_t = _cef_popup_features_t; -pub mod cef_dom_document_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const DOM_DOCUMENT_TYPE_UNKNOWN: Type = 0; - pub const DOM_DOCUMENT_TYPE_HTML: Type = 1; - pub const DOM_DOCUMENT_TYPE_XHTML: Type = 2; - pub const DOM_DOCUMENT_TYPE_PLUGIN: Type = 3; -} -pub mod cef_dom_event_category_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const DOM_EVENT_CATEGORY_UNKNOWN: Type = 0; - pub const DOM_EVENT_CATEGORY_UI: Type = 1; - pub const DOM_EVENT_CATEGORY_MOUSE: Type = 2; - pub const DOM_EVENT_CATEGORY_MUTATION: Type = 4; - pub const DOM_EVENT_CATEGORY_KEYBOARD: Type = 8; - pub const DOM_EVENT_CATEGORY_TEXT: Type = 16; - pub const DOM_EVENT_CATEGORY_COMPOSITION: Type = 32; - pub const DOM_EVENT_CATEGORY_DRAG: Type = 64; - pub const DOM_EVENT_CATEGORY_CLIPBOARD: Type = 128; - pub const DOM_EVENT_CATEGORY_MESSAGE: Type = 256; - pub const DOM_EVENT_CATEGORY_WHEEL: Type = 512; - pub const DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED: Type = 1024; - pub const DOM_EVENT_CATEGORY_OVERFLOW: Type = 2048; - pub const DOM_EVENT_CATEGORY_PAGE_TRANSITION: Type = 4096; - pub const DOM_EVENT_CATEGORY_POPSTATE: Type = 8192; - pub const DOM_EVENT_CATEGORY_PROGRESS: Type = 16384; - pub const DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS: Type = 32768; -} -pub mod cef_dom_event_phase_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const DOM_EVENT_PHASE_UNKNOWN: Type = 0; - pub const DOM_EVENT_PHASE_CAPTURING: Type = 1; - pub const DOM_EVENT_PHASE_AT_TARGET: Type = 2; - pub const DOM_EVENT_PHASE_BUBBLING: Type = 3; -} -pub mod cef_dom_node_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const DOM_NODE_TYPE_UNSUPPORTED: Type = 0; - pub const DOM_NODE_TYPE_ELEMENT: Type = 1; - pub const DOM_NODE_TYPE_ATTRIBUTE: Type = 2; - pub const DOM_NODE_TYPE_TEXT: Type = 3; - pub const DOM_NODE_TYPE_CDATA_SECTION: Type = 4; - pub const DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS: Type = 5; - pub const DOM_NODE_TYPE_COMMENT: Type = 6; - pub const DOM_NODE_TYPE_DOCUMENT: Type = 7; - pub const DOM_NODE_TYPE_DOCUMENT_TYPE: Type = 8; - pub const DOM_NODE_TYPE_DOCUMENT_FRAGMENT: Type = 9; -} -pub mod cef_file_dialog_mode_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const FILE_DIALOG_OPEN: Type = 0; - #[doc = ""] - pub const FILE_DIALOG_OPEN_MULTIPLE: Type = 1; - #[doc = ""] - pub const FILE_DIALOG_OPEN_FOLDER: Type = 2; - #[doc = ""] - pub const FILE_DIALOG_SAVE: Type = 3; - #[doc = ""] - pub const FILE_DIALOG_TYPE_MASK: Type = 255; - #[doc = ""] - pub const FILE_DIALOG_OVERWRITEPROMPT_FLAG: Type = 16777216; - #[doc = ""] - pub const FILE_DIALOG_HIDEREADONLY_FLAG: Type = 33554432; -} -pub mod cef_color_model_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const COLOR_MODEL_UNKNOWN: Type = 0; - pub const COLOR_MODEL_GRAY: Type = 1; - pub const COLOR_MODEL_COLOR: Type = 2; - pub const COLOR_MODEL_CMYK: Type = 3; - pub const COLOR_MODEL_CMY: Type = 4; - pub const COLOR_MODEL_KCMY: Type = 5; - pub const COLOR_MODEL_CMY_K: Type = 6; - pub const COLOR_MODEL_BLACK: Type = 7; - pub const COLOR_MODEL_GRAYSCALE: Type = 8; - pub const COLOR_MODEL_RGB: Type = 9; - pub const COLOR_MODEL_RGB16: Type = 10; - pub const COLOR_MODEL_RGBA: Type = 11; - pub const COLOR_MODEL_COLORMODE_COLOR: Type = 12; - pub const COLOR_MODEL_COLORMODE_MONOCHROME: Type = 13; - pub const COLOR_MODEL_HP_COLOR_COLOR: Type = 14; - pub const COLOR_MODEL_HP_COLOR_BLACK: Type = 15; - pub const COLOR_MODEL_PRINTOUTMODE_NORMAL: Type = 16; - pub const COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY: Type = 17; - pub const COLOR_MODEL_PROCESSCOLORMODEL_CMYK: Type = 18; - pub const COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE: Type = 19; - pub const COLOR_MODEL_PROCESSCOLORMODEL_RGB: Type = 20; -} -pub mod cef_duplex_mode_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const DUPLEX_MODE_UNKNOWN: Type = -1; - pub const DUPLEX_MODE_SIMPLEX: Type = 0; - pub const DUPLEX_MODE_LONG_EDGE: Type = 1; - pub const DUPLEX_MODE_SHORT_EDGE: Type = 2; -} -pub mod cef_cursor_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CT_POINTER: Type = 0; - pub const CT_CROSS: Type = 1; - pub const CT_HAND: Type = 2; - pub const CT_IBEAM: Type = 3; - pub const CT_WAIT: Type = 4; - pub const CT_HELP: Type = 5; - pub const CT_EASTRESIZE: Type = 6; - pub const CT_NORTHRESIZE: Type = 7; - pub const CT_NORTHEASTRESIZE: Type = 8; - pub const CT_NORTHWESTRESIZE: Type = 9; - pub const CT_SOUTHRESIZE: Type = 10; - pub const CT_SOUTHEASTRESIZE: Type = 11; - pub const CT_SOUTHWESTRESIZE: Type = 12; - pub const CT_WESTRESIZE: Type = 13; - pub const CT_NORTHSOUTHRESIZE: Type = 14; - pub const CT_EASTWESTRESIZE: Type = 15; - pub const CT_NORTHEASTSOUTHWESTRESIZE: Type = 16; - pub const CT_NORTHWESTSOUTHEASTRESIZE: Type = 17; - pub const CT_COLUMNRESIZE: Type = 18; - pub const CT_ROWRESIZE: Type = 19; - pub const CT_MIDDLEPANNING: Type = 20; - pub const CT_EASTPANNING: Type = 21; - pub const CT_NORTHPANNING: Type = 22; - pub const CT_NORTHEASTPANNING: Type = 23; - pub const CT_NORTHWESTPANNING: Type = 24; - pub const CT_SOUTHPANNING: Type = 25; - pub const CT_SOUTHEASTPANNING: Type = 26; - pub const CT_SOUTHWESTPANNING: Type = 27; - pub const CT_WESTPANNING: Type = 28; - pub const CT_MOVE: Type = 29; - pub const CT_VERTICALTEXT: Type = 30; - pub const CT_CELL: Type = 31; - pub const CT_CONTEXTMENU: Type = 32; - pub const CT_ALIAS: Type = 33; - pub const CT_PROGRESS: Type = 34; - pub const CT_NODROP: Type = 35; - pub const CT_COPY: Type = 36; - pub const CT_NONE: Type = 37; - pub const CT_NOTALLOWED: Type = 38; - pub const CT_ZOOMIN: Type = 39; - pub const CT_ZOOMOUT: Type = 40; - pub const CT_GRAB: Type = 41; - pub const CT_GRABBING: Type = 42; - pub const CT_MIDDLE_PANNING_VERTICAL: Type = 43; - pub const CT_MIDDLE_PANNING_HORIZONTAL: Type = 44; - pub const CT_CUSTOM: Type = 45; - pub const CT_DND_NONE: Type = 46; - pub const CT_DND_MOVE: Type = 47; - pub const CT_DND_COPY: Type = 48; - pub const CT_DND_LINK: Type = 49; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_cursor_info_t { - pub hotspot: cef_point_t, - pub image_scale_factor: f32, - pub buffer: *mut ::std::os::raw::c_void, - pub size: cef_size_t, -} -#[test] -fn bindgen_test_layout__cef_cursor_info_t() { - assert_eq!( - ::std::mem::size_of::<_cef_cursor_info_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_cursor_info_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_cursor_info_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_cursor_info_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).hotspot as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_cursor_info_t), - "::", - stringify!(hotspot) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cursor_info_t>())).image_scale_factor as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_cursor_info_t), - "::", - stringify!(image_scale_factor) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).buffer as *const _ as usize }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_cursor_info_t), - "::", - stringify!(buffer) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cursor_info_t>())).size as *const _ as usize }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_cursor_info_t), - "::", - stringify!(size) - ) - ); -} -#[doc = ""] -pub type cef_cursor_info_t = _cef_cursor_info_t; -pub mod cef_uri_unescape_rule_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const UU_NONE: Type = 0; - #[doc = ""] - pub const UU_NORMAL: Type = 1; - #[doc = ""] - pub const UU_SPACES: Type = 2; - #[doc = ""] - pub const UU_PATH_SEPARATORS: Type = 4; - #[doc = ""] - pub const UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS: Type = 8; - #[doc = ""] - pub const UU_REPLACE_PLUS_WITH_SPACE: Type = 16; -} -pub mod cef_json_parser_options_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const JSON_PARSER_RFC: Type = 0; - #[doc = ""] - pub const JSON_PARSER_ALLOW_TRAILING_COMMAS: Type = 1; -} -pub mod cef_json_writer_options_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const JSON_WRITER_DEFAULT: Type = 0; - #[doc = ""] - pub const JSON_WRITER_OMIT_BINARY_VALUES: Type = 1; - #[doc = ""] - pub const JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION: Type = 2; - #[doc = ""] - pub const JSON_WRITER_PRETTY_PRINT: Type = 4; -} -pub mod cef_pdf_print_margin_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const PDF_PRINT_MARGIN_DEFAULT: Type = 0; - #[doc = ""] - pub const PDF_PRINT_MARGIN_NONE: Type = 1; - #[doc = ""] - pub const PDF_PRINT_MARGIN_MINIMUM: Type = 2; - #[doc = ""] - pub const PDF_PRINT_MARGIN_CUSTOM: Type = 3; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_pdf_print_settings_t { - #[doc = ""] - pub header_footer_title: cef_string_t, - #[doc = ""] - pub header_footer_url: cef_string_t, - #[doc = ""] - pub page_width: ::std::os::raw::c_int, - pub page_height: ::std::os::raw::c_int, - #[doc = ""] - pub scale_factor: ::std::os::raw::c_int, - #[doc = ""] - pub margin_top: ::std::os::raw::c_int, - pub margin_right: ::std::os::raw::c_int, - pub margin_bottom: ::std::os::raw::c_int, - pub margin_left: ::std::os::raw::c_int, - #[doc = ""] - pub margin_type: cef_pdf_print_margin_type_t::Type, - #[doc = ""] - pub header_footer_enabled: ::std::os::raw::c_int, - #[doc = ""] - pub selection_only: ::std::os::raw::c_int, - #[doc = ""] - pub landscape: ::std::os::raw::c_int, - #[doc = ""] - pub backgrounds_enabled: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_pdf_print_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_pdf_print_settings_t>(), - 72usize, - concat!("Size of: ", stringify!(_cef_pdf_print_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_pdf_print_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_pdf_print_settings_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_title as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(header_footer_title) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_url as *const _ - as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(header_footer_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).page_width as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(page_width) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).page_height as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(page_height) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).scale_factor as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(scale_factor) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_top as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(margin_top) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_right as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(margin_right) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_bottom as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(margin_bottom) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_left as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(margin_left) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).margin_type as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(margin_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).header_footer_enabled as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(header_footer_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).selection_only as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(selection_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).landscape as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(landscape) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_settings_t>())).backgrounds_enabled as *const _ - as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_settings_t), - "::", - stringify!(backgrounds_enabled) - ) - ); -} -#[doc = ""] -pub type cef_pdf_print_settings_t = _cef_pdf_print_settings_t; -pub mod cef_scale_factor_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const SCALE_FACTOR_NONE: Type = 0; - pub const SCALE_FACTOR_100P: Type = 1; - pub const SCALE_FACTOR_125P: Type = 2; - pub const SCALE_FACTOR_133P: Type = 3; - pub const SCALE_FACTOR_140P: Type = 4; - pub const SCALE_FACTOR_150P: Type = 5; - pub const SCALE_FACTOR_180P: Type = 6; - pub const SCALE_FACTOR_200P: Type = 7; - pub const SCALE_FACTOR_250P: Type = 8; - pub const SCALE_FACTOR_300P: Type = 9; -} -pub mod cef_plugin_policy_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const PLUGIN_POLICY_ALLOW: Type = 0; - #[doc = ""] - pub const PLUGIN_POLICY_DETECT_IMPORTANT: Type = 1; - #[doc = ""] - pub const PLUGIN_POLICY_BLOCK: Type = 2; - #[doc = ""] - pub const PLUGIN_POLICY_DISABLE: Type = 3; -} -pub mod cef_referrer_policy_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: Type = 0; - #[doc = ""] - pub const REFERRER_POLICY_DEFAULT: Type = 0; - #[doc = ""] - pub const REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN: Type = 1; - #[doc = ""] - pub const REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN: Type = 2; - #[doc = ""] - pub const REFERRER_POLICY_NEVER_CLEAR_REFERRER: Type = 3; - #[doc = ""] - pub const REFERRER_POLICY_ORIGIN: Type = 4; - #[doc = ""] - pub const REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN: Type = 5; - #[doc = ""] - pub const REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE: Type = 6; - #[doc = ""] - pub const REFERRER_POLICY_NO_REFERRER: Type = 7; - #[doc = ""] - pub const REFERRER_POLICY_LAST_VALUE: Type = 7; -} -pub mod cef_response_filter_status_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const RESPONSE_FILTER_NEED_MORE_DATA: Type = 0; - #[doc = ""] - pub const RESPONSE_FILTER_DONE: Type = 1; - #[doc = ""] - pub const RESPONSE_FILTER_ERROR: Type = 2; -} -pub mod cef_color_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_COLOR_TYPE_RGBA_8888: Type = 0; - #[doc = ""] - pub const CEF_COLOR_TYPE_BGRA_8888: Type = 1; -} -pub mod cef_alpha_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_ALPHA_TYPE_OPAQUE: Type = 0; - #[doc = ""] - pub const CEF_ALPHA_TYPE_PREMULTIPLIED: Type = 1; - #[doc = ""] - pub const CEF_ALPHA_TYPE_POSTMULTIPLIED: Type = 2; -} -pub mod cef_text_style_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_TEXT_STYLE_BOLD: Type = 0; - pub const CEF_TEXT_STYLE_ITALIC: Type = 1; - pub const CEF_TEXT_STYLE_STRIKE: Type = 2; - pub const CEF_TEXT_STYLE_DIAGONAL_STRIKE: Type = 3; - pub const CEF_TEXT_STYLE_UNDERLINE: Type = 4; -} -pub mod cef_main_axis_alignment_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_MAIN_AXIS_ALIGNMENT_START: Type = 0; - #[doc = ""] - pub const CEF_MAIN_AXIS_ALIGNMENT_CENTER: Type = 1; - #[doc = ""] - pub const CEF_MAIN_AXIS_ALIGNMENT_END: Type = 2; -} -pub mod cef_cross_axis_alignment_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_CROSS_AXIS_ALIGNMENT_STRETCH: Type = 0; - #[doc = ""] - pub const CEF_CROSS_AXIS_ALIGNMENT_START: Type = 1; - #[doc = ""] - pub const CEF_CROSS_AXIS_ALIGNMENT_CENTER: Type = 2; - #[doc = ""] - pub const CEF_CROSS_AXIS_ALIGNMENT_END: Type = 3; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_box_layout_settings_t { - #[doc = ""] - pub horizontal: ::std::os::raw::c_int, - #[doc = ""] - pub inside_border_horizontal_spacing: ::std::os::raw::c_int, - #[doc = ""] - pub inside_border_vertical_spacing: ::std::os::raw::c_int, - #[doc = ""] - pub inside_border_insets: cef_insets_t, - #[doc = ""] - pub between_child_spacing: ::std::os::raw::c_int, - #[doc = ""] - pub main_axis_alignment: cef_main_axis_alignment_t::Type, - #[doc = ""] - pub cross_axis_alignment: cef_cross_axis_alignment_t::Type, - #[doc = ""] - pub minimum_cross_axis_size: ::std::os::raw::c_int, - #[doc = ""] - pub default_flex: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_box_layout_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_box_layout_settings_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_box_layout_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_box_layout_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_box_layout_settings_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).horizontal as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(horizontal) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_horizontal_spacing - as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(inside_border_horizontal_spacing) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_vertical_spacing - as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(inside_border_vertical_spacing) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).inside_border_insets as *const _ - as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(inside_border_insets) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).between_child_spacing as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(between_child_spacing) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).main_axis_alignment as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(main_axis_alignment) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).cross_axis_alignment as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(cross_axis_alignment) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).minimum_cross_axis_size - as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(minimum_cross_axis_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_box_layout_settings_t>())).default_flex as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_box_layout_settings_t), - "::", - stringify!(default_flex) - ) - ); -} -#[doc = ""] -pub type cef_box_layout_settings_t = _cef_box_layout_settings_t; -pub mod cef_button_state_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_BUTTON_STATE_NORMAL: Type = 0; - pub const CEF_BUTTON_STATE_HOVERED: Type = 1; - pub const CEF_BUTTON_STATE_PRESSED: Type = 2; - pub const CEF_BUTTON_STATE_DISABLED: Type = 3; -} -pub mod cef_horizontal_alignment_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_HORIZONTAL_ALIGNMENT_LEFT: Type = 0; - #[doc = ""] - pub const CEF_HORIZONTAL_ALIGNMENT_CENTER: Type = 1; - #[doc = ""] - pub const CEF_HORIZONTAL_ALIGNMENT_RIGHT: Type = 2; -} -pub mod cef_menu_anchor_position_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_MENU_ANCHOR_TOPLEFT: Type = 0; - pub const CEF_MENU_ANCHOR_TOPRIGHT: Type = 1; - pub const CEF_MENU_ANCHOR_BOTTOMCENTER: Type = 2; -} -pub mod cef_menu_color_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_MENU_COLOR_TEXT: Type = 0; - pub const CEF_MENU_COLOR_TEXT_HOVERED: Type = 1; - pub const CEF_MENU_COLOR_TEXT_ACCELERATOR: Type = 2; - pub const CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED: Type = 3; - pub const CEF_MENU_COLOR_BACKGROUND: Type = 4; - pub const CEF_MENU_COLOR_BACKGROUND_HOVERED: Type = 5; - pub const CEF_MENU_COLOR_COUNT: Type = 6; -} -pub mod cef_ssl_version_t { - pub type Type = ::std::os::raw::c_int; - pub const SSL_CONNECTION_VERSION_UNKNOWN: Type = 0; - pub const SSL_CONNECTION_VERSION_SSL2: Type = 1; - pub const SSL_CONNECTION_VERSION_SSL3: Type = 2; - pub const SSL_CONNECTION_VERSION_TLS1: Type = 3; - pub const SSL_CONNECTION_VERSION_TLS1_1: Type = 4; - pub const SSL_CONNECTION_VERSION_TLS1_2: Type = 5; - pub const SSL_CONNECTION_VERSION_TLS1_3: Type = 6; - pub const SSL_CONNECTION_VERSION_QUIC: Type = 7; -} -pub mod cef_ssl_content_status_t { - pub type Type = ::std::os::raw::c_int; - pub const SSL_CONTENT_NORMAL_CONTENT: Type = 0; - pub const SSL_CONTENT_DISPLAYED_INSECURE_CONTENT: Type = 1; - pub const SSL_CONTENT_RAN_INSECURE_CONTENT: Type = 2; -} -pub mod cef_scheme_options_t { - pub type Type = ::std::os::raw::c_int; - pub const CEF_SCHEME_OPTION_NONE: Type = 0; - #[doc = ""] - pub const CEF_SCHEME_OPTION_STANDARD: Type = 1; - #[doc = ""] - pub const CEF_SCHEME_OPTION_LOCAL: Type = 2; - #[doc = ""] - pub const CEF_SCHEME_OPTION_DISPLAY_ISOLATED: Type = 4; - #[doc = ""] - pub const CEF_SCHEME_OPTION_SECURE: Type = 8; - #[doc = ""] - pub const CEF_SCHEME_OPTION_CORS_ENABLED: Type = 16; - #[doc = ""] - pub const CEF_SCHEME_OPTION_CSP_BYPASSING: Type = 32; - #[doc = ""] - pub const CEF_SCHEME_OPTION_FETCH_ENABLED: Type = 64; -} -pub mod cef_cdm_registration_error_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - #[doc = ""] - pub const CEF_CDM_REGISTRATION_ERROR_NONE: Type = 0; - #[doc = ""] - pub const CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS: Type = 1; - #[doc = ""] - pub const CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE: Type = 2; - #[doc = ""] - pub const CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED: Type = 3; -} -pub mod cef_composition_underline_style_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_CUS_SOLID: Type = 0; - pub const CEF_CUS_DOT: Type = 1; - pub const CEF_CUS_DASH: Type = 2; - pub const CEF_CUS_NONE: Type = 3; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_composition_underline_t { - #[doc = ""] - pub range: cef_range_t, - #[doc = ""] - pub color: cef_color_t, - #[doc = ""] - pub background_color: cef_color_t, - #[doc = ""] - pub thick: ::std::os::raw::c_int, - #[doc = ""] - pub style: cef_composition_underline_style_t::Type, -} -#[test] -fn bindgen_test_layout__cef_composition_underline_t() { - assert_eq!( - ::std::mem::size_of::<_cef_composition_underline_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_composition_underline_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_composition_underline_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_composition_underline_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_composition_underline_t>())).range as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_composition_underline_t), - "::", - stringify!(range) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_composition_underline_t>())).color as *const _ as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_composition_underline_t), - "::", - stringify!(color) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_composition_underline_t>())).background_color as *const _ - as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_composition_underline_t), - "::", - stringify!(background_color) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_composition_underline_t>())).thick as *const _ as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_composition_underline_t), - "::", - stringify!(thick) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_composition_underline_t>())).style as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_composition_underline_t), - "::", - stringify!(style) - ) - ); -} -#[doc = ""] -pub type cef_composition_underline_t = _cef_composition_underline_t; -pub mod cef_channel_layout_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_CHANNEL_LAYOUT_NONE: Type = 0; - pub const CEF_CHANNEL_LAYOUT_UNSUPPORTED: Type = 1; - pub const CEF_CHANNEL_LAYOUT_MONO: Type = 2; - pub const CEF_CHANNEL_LAYOUT_STEREO: Type = 3; - pub const CEF_CHANNEL_LAYOUT_2_1: Type = 4; - pub const CEF_CHANNEL_LAYOUT_SURROUND: Type = 5; - pub const CEF_CHANNEL_LAYOUT_4_0: Type = 6; - pub const CEF_CHANNEL_LAYOUT_2_2: Type = 7; - pub const CEF_CHANNEL_LAYOUT_QUAD: Type = 8; - pub const CEF_CHANNEL_LAYOUT_5_0: Type = 9; - pub const CEF_CHANNEL_LAYOUT_5_1: Type = 10; - pub const CEF_CHANNEL_LAYOUT_5_0_BACK: Type = 11; - pub const CEF_CHANNEL_LAYOUT_5_1_BACK: Type = 12; - pub const CEF_CHANNEL_LAYOUT_7_0: Type = 13; - pub const CEF_CHANNEL_LAYOUT_7_1: Type = 14; - pub const CEF_CHANNEL_LAYOUT_7_1_WIDE: Type = 15; - pub const CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX: Type = 16; - pub const CEF_CHANNEL_LAYOUT_2POINT1: Type = 17; - pub const CEF_CHANNEL_LAYOUT_3_1: Type = 18; - pub const CEF_CHANNEL_LAYOUT_4_1: Type = 19; - pub const CEF_CHANNEL_LAYOUT_6_0: Type = 20; - pub const CEF_CHANNEL_LAYOUT_6_0_FRONT: Type = 21; - pub const CEF_CHANNEL_LAYOUT_HEXAGONAL: Type = 22; - pub const CEF_CHANNEL_LAYOUT_6_1: Type = 23; - pub const CEF_CHANNEL_LAYOUT_6_1_BACK: Type = 24; - pub const CEF_CHANNEL_LAYOUT_6_1_FRONT: Type = 25; - pub const CEF_CHANNEL_LAYOUT_7_0_FRONT: Type = 26; - pub const CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK: Type = 27; - pub const CEF_CHANNEL_LAYOUT_OCTAGONAL: Type = 28; - pub const CEF_CHANNEL_LAYOUT_DISCRETE: Type = 29; - pub const CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC: Type = 30; - pub const CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE: Type = 31; - pub const CEF_CHANNEL_LAYOUT_BITSTREAM: Type = 32; - pub const CEF_CHANNEL_LAYOUT_MAX: Type = 32; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_audio_parameters_t { - #[doc = ""] - pub channel_layout: cef_channel_layout_t::Type, - #[doc = ""] - pub sample_rate: ::std::os::raw::c_int, - #[doc = ""] - pub frames_per_buffer: ::std::os::raw::c_int, -} -#[test] -fn bindgen_test_layout__cef_audio_parameters_t() { - assert_eq!( - ::std::mem::size_of::<_cef_audio_parameters_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_audio_parameters_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_audio_parameters_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_audio_parameters_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_parameters_t>())).channel_layout as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_parameters_t), - "::", - stringify!(channel_layout) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_parameters_t>())).sample_rate as *const _ as usize - }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_parameters_t), - "::", - stringify!(sample_rate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_parameters_t>())).frames_per_buffer as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_parameters_t), - "::", - stringify!(frames_per_buffer) - ) - ); -} -#[doc = ""] -pub type cef_audio_parameters_t = _cef_audio_parameters_t; -pub mod cef_media_route_create_result_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_MRCR_UNKNOWN_ERROR: Type = 0; - pub const CEF_MRCR_OK: Type = 1; - pub const CEF_MRCR_TIMED_OUT: Type = 2; - pub const CEF_MRCR_ROUTE_NOT_FOUND: Type = 3; - pub const CEF_MRCR_SINK_NOT_FOUND: Type = 4; - pub const CEF_MRCR_INVALID_ORIGIN: Type = 5; - pub const CEF_MRCR_NO_SUPPORTED_PROVIDER: Type = 7; - pub const CEF_MRCR_CANCELLED: Type = 8; - pub const CEF_MRCR_ROUTE_ALREADY_EXISTS: Type = 9; - pub const CEF_MRCR_ROUTE_ALREADY_TERMINATED: Type = 11; - pub const CEF_MRCR_TOTAL_COUNT: Type = 12; -} -pub mod cef_media_route_connection_state_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_MRCS_UNKNOWN: Type = 0; - pub const CEF_MRCS_CONNECTING: Type = 1; - pub const CEF_MRCS_CONNECTED: Type = 2; - pub const CEF_MRCS_CLOSED: Type = 3; - pub const CEF_MRCS_TERMINATED: Type = 4; -} -pub mod cef_media_sink_icon_type_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_MSIT_CAST: Type = 0; - pub const CEF_MSIT_CAST_AUDIO_GROUP: Type = 1; - pub const CEF_MSIT_CAST_AUDIO: Type = 2; - pub const CEF_MSIT_MEETING: Type = 3; - pub const CEF_MSIT_HANGOUT: Type = 4; - pub const CEF_MSIT_EDUCATION: Type = 5; - pub const CEF_MSIT_WIRED_DISPLAY: Type = 6; - pub const CEF_MSIT_GENERIC: Type = 7; - pub const CEF_MSIT_TOTAL_COUNT: Type = 8; -} -#[doc = ""] -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_media_sink_device_info_t { - pub ip_address: cef_string_t, - pub port: ::std::os::raw::c_int, - pub model_name: cef_string_t, -} -#[test] -fn bindgen_test_layout__cef_media_sink_device_info_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_sink_device_info_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_media_sink_device_info_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_sink_device_info_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_sink_device_info_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).ip_address as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_device_info_t), - "::", - stringify!(ip_address) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).port as *const _ as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_device_info_t), - "::", - stringify!(port) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_device_info_t>())).model_name as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_device_info_t), - "::", - stringify!(model_name) - ) - ); -} -#[doc = ""] -pub type cef_media_sink_device_info_t = _cef_media_sink_device_info_t; -pub mod cef_text_field_commands_t { - #[doc = ""] - pub type Type = ::std::os::raw::c_int; - pub const CEF_TFC_CUT: Type = 1; - pub const CEF_TFC_COPY: Type = 2; - pub const CEF_TFC_PASTE: Type = 3; - pub const CEF_TFC_UNDO: Type = 4; - pub const CEF_TFC_DELETE: Type = 5; - pub const CEF_TFC_SELECT_ALL: Type = 6; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_base_ref_counted_t { - #[doc = ""] - pub size: usize, - #[doc = ""] - pub add_ref: - ::std::option::Option, - #[doc = ""] - pub release: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_one_ref: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_at_least_one_ref: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_base_ref_counted_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_base_ref_counted_t() { - assert_eq!( - ::std::mem::size_of::<_cef_base_ref_counted_t>(), - 20usize, - concat!("Size of: ", stringify!(_cef_base_ref_counted_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_base_ref_counted_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_base_ref_counted_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_ref_counted_t), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).add_ref as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_ref_counted_t), - "::", - stringify!(add_ref) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).release as *const _ as usize }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_ref_counted_t), - "::", - stringify!(release) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).has_one_ref as *const _ as usize - }, - 12usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_ref_counted_t), - "::", - stringify!(has_one_ref) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_base_ref_counted_t>())).has_at_least_one_ref as *const _ - as usize - }, - 16usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_ref_counted_t), - "::", - stringify!(has_at_least_one_ref) - ) - ); -} -#[doc = ""] -pub type cef_base_ref_counted_t = _cef_base_ref_counted_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_base_scoped_t { - #[doc = ""] - pub size: usize, - #[doc = ""] - pub del: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_base_scoped_t() { - assert_eq!( - ::std::mem::size_of::<_cef_base_scoped_t>(), - 8usize, - concat!("Size of: ", stringify!(_cef_base_scoped_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_base_scoped_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_base_scoped_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_base_scoped_t>())).size as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_scoped_t), - "::", - stringify!(size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_base_scoped_t>())).del as *const _ as usize }, - 4usize, - concat!( - "Offset of field: ", - stringify!(_cef_base_scoped_t), - "::", - stringify!(del) - ) - ); -} -#[doc = ""] -pub type cef_base_scoped_t = _cef_base_scoped_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_dev_tools_message_observer_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_dev_tools_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dev_tools_message_observer_t, - browser: *mut _cef_browser_t, - message: *const ::std::os::raw::c_void, - message_size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_dev_tools_method_result: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dev_tools_message_observer_t, - browser: *mut _cef_browser_t, - message_id: ::std::os::raw::c_int, - success: ::std::os::raw::c_int, - result: *const ::std::os::raw::c_void, - result_size: usize, - ), - >, - #[doc = ""] - pub on_dev_tools_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dev_tools_message_observer_t, - browser: *mut _cef_browser_t, - method: *const cef_string_t, - params: *const ::std::os::raw::c_void, - params_size: usize, - ), - >, - #[doc = ""] - pub on_dev_tools_agent_attached: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dev_tools_message_observer_t, - browser: *mut _cef_browser_t, - ), - >, - #[doc = ""] - pub on_dev_tools_agent_detached: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dev_tools_message_observer_t, - browser: *mut _cef_browser_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_dev_tools_message_observer_t() { - assert_eq!( - ::std::mem::size_of::<_cef_dev_tools_message_observer_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_dev_tools_message_observer_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_dev_tools_message_observer_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_dev_tools_message_observer_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_message - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(on_dev_tools_message) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_method_result - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(on_dev_tools_method_result) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())).on_dev_tools_event - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(on_dev_tools_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())) - .on_dev_tools_agent_attached as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(on_dev_tools_agent_attached) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dev_tools_message_observer_t>())) - .on_dev_tools_agent_detached as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_dev_tools_message_observer_t), - "::", - stringify!(on_dev_tools_agent_detached) - ) - ); -} -#[doc = ""] -pub type cef_dev_tools_message_observer_t = _cef_dev_tools_message_observer_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_value_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_owned: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - that: *mut _cef_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_equal: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - that: *mut _cef_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> *mut _cef_value_t, - >, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> cef_value_type_t::Type, - >, - #[doc = ""] - pub get_bool: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_int: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_double: - ::std::option::Option f64>, - #[doc = ""] - pub get_string: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_binary: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub get_list: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> *mut _cef_list_value_t, - >, - #[doc = ""] - pub set_null: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_bool: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_int: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_double: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_value_t, value: f64) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_binary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: *mut _cef_binary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_value_t, - value: *mut _cef_list_value_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_value_t() { - assert_eq!( - ::std::mem::size_of::<_cef_value_t>(), - 108usize, - concat!("Size of: ", stringify!(_cef_value_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_value_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_value_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_owned as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(is_owned) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_read_only as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_same as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).is_equal as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(is_equal) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).copy as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_type as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_bool as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_int as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_int) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_double as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_double) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_string as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_binary as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_binary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_dictionary as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_dictionary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).get_list as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(get_list) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_null as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_null) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_bool as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_int as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_int) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_double as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_double) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_string as *const _ as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_binary as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_binary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_dictionary as *const _ as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_dictionary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_value_t>())).set_list as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_value_t), - "::", - stringify!(set_list) - ) - ); -} -#[doc = ""] -pub type cef_value_t = _cef_value_t; -extern "C" { - #[doc = ""] - pub fn cef_value_create() -> *mut cef_value_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_binary_value_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_owned: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_binary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_binary_value_t, - that: *mut _cef_binary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_equal: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_binary_value_t, - that: *mut _cef_binary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_binary_value_t) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_size: - ::std::option::Option usize>, - #[doc = ""] - pub get_data: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_binary_value_t, - buffer: *mut ::std::os::raw::c_void, - buffer_size: usize, - data_offset: usize, - ) -> usize, - >, -} -#[test] -fn bindgen_test_layout__cef_binary_value_t() { - assert_eq!( - ::std::mem::size_of::<_cef_binary_value_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_binary_value_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_binary_value_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_binary_value_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_owned as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(is_owned) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_same as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).is_equal as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(is_equal) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).copy as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).get_size as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(get_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_binary_value_t>())).get_data as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_binary_value_t), - "::", - stringify!(get_data) - ) - ); -} -#[doc = ""] -pub type cef_binary_value_t = _cef_binary_value_t; -extern "C" { - #[doc = ""] - pub fn cef_binary_value_create( - data: *const ::std::os::raw::c_void, data_size: usize, - ) -> *mut cef_binary_value_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_dictionary_value_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_owned: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - that: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_equal: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - that: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - exclude_empty_children: ::std::os::raw::c_int, - ) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub get_size: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_dictionary_value_t) -> usize, - >, - #[doc = ""] - pub clear: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_dictionary_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_key: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_keys: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - keys: cef_string_list_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> cef_value_type_t::Type, - >, - #[doc = ""] - pub get_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> *mut _cef_value_t, - >, - #[doc = ""] - pub get_bool: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_int: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_double: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> f64, - >, - #[doc = ""] - pub get_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_binary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub get_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> *mut _cef_list_value_t, - >, - #[doc = ""] - pub set_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: *mut _cef_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_null: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_bool: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_int: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_double: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: f64, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_binary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: *mut _cef_binary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dictionary_value_t, - key: *const cef_string_t, - value: *mut _cef_list_value_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_dictionary_value_t() { - assert_eq!( - ::std::mem::size_of::<_cef_dictionary_value_t>(), - 136usize, - concat!("Size of: ", stringify!(_cef_dictionary_value_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_dictionary_value_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_dictionary_value_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_valid as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_owned as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(is_owned) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_read_only as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_same as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).is_equal as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(is_equal) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).copy as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_size as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).clear as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(clear) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).has_key as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(has_key) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_keys as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_keys) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).remove as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(remove) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_type as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_value as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_value) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_bool as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_int as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_int) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_double as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_double) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_string as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_string) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_binary as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_binary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_dictionary as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_dictionary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).get_list as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(get_list) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_value as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_value) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_null as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_null) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_bool as *const _ as usize - }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_int as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_int) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_double as *const _ as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_double) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_string as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_string) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_binary as *const _ as usize - }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_binary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_dictionary as *const _ as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_dictionary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dictionary_value_t>())).set_list as *const _ as usize - }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_dictionary_value_t), - "::", - stringify!(set_list) - ) - ); -} -#[doc = ""] -pub type cef_dictionary_value_t = _cef_dictionary_value_t; -extern "C" { - #[doc = ""] - pub fn cef_dictionary_value_create() -> *mut cef_dictionary_value_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_list_value_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_owned: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - that: *mut _cef_list_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_equal: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - that: *mut _cef_list_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t) -> *mut _cef_list_value_t, - >, - #[doc = ""] - pub set_size: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_size: - ::std::option::Option usize>, - #[doc = ""] - pub clear: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> cef_value_type_t::Type, - >, - #[doc = ""] - pub get_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> *mut _cef_value_t, - >, - #[doc = ""] - pub get_bool: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_int: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_double: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_list_value_t, index: usize) -> f64, - >, - #[doc = ""] - pub get_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_binary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub get_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> *mut _cef_list_value_t, - >, - #[doc = ""] - pub set_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: *mut _cef_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_null: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_bool: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_int: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_double: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: f64, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_binary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: *mut _cef_binary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_list_value_t, - index: usize, - value: *mut _cef_list_value_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_list_value_t() { - assert_eq!( - ::std::mem::size_of::<_cef_list_value_t>(), - 132usize, - concat!("Size of: ", stringify!(_cef_list_value_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_list_value_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_list_value_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_owned as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(is_owned) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_read_only as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_same as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).is_equal as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(is_equal) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).copy as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_size as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_size as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).clear as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(clear) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).remove as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(remove) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_type as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_value as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_bool as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_int as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_int) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_double as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_double) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_string as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_binary as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_binary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_list_value_t>())).get_dictionary as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_dictionary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).get_list as *const _ as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(get_list) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_value as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_null as *const _ as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_null) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_bool as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_int as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_int) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_double as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_double) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_string as *const _ as usize }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_binary as *const _ as usize }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_binary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_list_value_t>())).set_dictionary as *const _ as usize - }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_dictionary) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_list_value_t>())).set_list as *const _ as usize }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_list_value_t), - "::", - stringify!(set_list) - ) - ); -} -#[doc = ""] -pub type cef_list_value_t = _cef_list_value_t; -extern "C" { - #[doc = ""] - pub fn cef_list_value_create() -> *mut cef_list_value_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_image_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_empty: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_image_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - that: *mut _cef_image_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_bitmap: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - pixel_width: ::std::os::raw::c_int, - pixel_height: ::std::os::raw::c_int, - color_type: cef_color_type_t::Type, - alpha_type: cef_alpha_type_t::Type, - pixel_data: *const ::std::os::raw::c_void, - pixel_data_size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_png: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - png_data: *const ::std::os::raw::c_void, - png_data_size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_jpeg: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - jpeg_data: *const ::std::os::raw::c_void, - jpeg_data_size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_width: - ::std::option::Option usize>, - #[doc = ""] - pub get_height: - ::std::option::Option usize>, - #[doc = ""] - pub has_representation: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove_representation: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_representation_info: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - actual_scale_factor: *mut f32, - pixel_width: *mut ::std::os::raw::c_int, - pixel_height: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_as_bitmap: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - color_type: cef_color_type_t::Type, - alpha_type: cef_alpha_type_t::Type, - pixel_width: *mut ::std::os::raw::c_int, - pixel_height: *mut ::std::os::raw::c_int, - ) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_as_png: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - with_transparency: ::std::os::raw::c_int, - pixel_width: *mut ::std::os::raw::c_int, - pixel_height: *mut ::std::os::raw::c_int, - ) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_as_jpeg: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_image_t, - scale_factor: f32, - quality: ::std::os::raw::c_int, - pixel_width: *mut ::std::os::raw::c_int, - pixel_height: *mut ::std::os::raw::c_int, - ) -> *mut _cef_binary_value_t, - >, -} -#[test] -fn bindgen_test_layout__cef_image_t() { - assert_eq!( - ::std::mem::size_of::<_cef_image_t>(), - 72usize, - concat!("Size of: ", stringify!(_cef_image_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_image_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_image_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).is_empty as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(is_empty) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).is_same as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_bitmap as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(add_bitmap) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_png as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(add_png) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).add_jpeg as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(add_jpeg) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_width as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_width) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_height as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_height) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).has_representation as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(has_representation) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_image_t>())).remove_representation as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(remove_representation) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_image_t>())).get_representation_info as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_representation_info) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_bitmap as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_as_bitmap) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_png as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_as_png) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_image_t>())).get_as_jpeg as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_image_t), - "::", - stringify!(get_as_jpeg) - ) - ); -} -#[doc = ""] -pub type cef_image_t = _cef_image_t; -extern "C" { - #[doc = ""] - pub fn cef_image_create() -> *mut cef_image_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_read_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub read: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_read_handler_t, - ptr: *mut ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - #[doc = ""] - pub seek: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_read_handler_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub tell: - ::std::option::Option int64>, - #[doc = ""] - pub eof: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub may_block: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_read_handler_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_read_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_read_handler_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_read_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_read_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_read_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).read as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(read) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).seek as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(seek) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).tell as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(tell) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).eof as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(eof) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_read_handler_t>())).may_block as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_read_handler_t), - "::", - stringify!(may_block) - ) - ); -} -#[doc = ""] -pub type cef_read_handler_t = _cef_read_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_stream_reader_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub read: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_stream_reader_t, - ptr: *mut ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - #[doc = ""] - pub seek: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_stream_reader_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub tell: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_reader_t) -> int64, - >, - #[doc = ""] - pub eof: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub may_block: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_reader_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_stream_reader_t() { - assert_eq!( - ::std::mem::size_of::<_cef_stream_reader_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_stream_reader_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_stream_reader_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_stream_reader_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).read as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(read) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).seek as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(seek) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).tell as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(tell) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).eof as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(eof) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_reader_t>())).may_block as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_reader_t), - "::", - stringify!(may_block) - ) - ); -} -#[doc = ""] -pub type cef_stream_reader_t = _cef_stream_reader_t; -extern "C" { - #[doc = ""] - pub fn cef_stream_reader_create_for_file( - fileName: *const cef_string_t, - ) -> *mut cef_stream_reader_t; -} -extern "C" { - #[doc = ""] - pub fn cef_stream_reader_create_for_data( - data: *mut ::std::os::raw::c_void, size: usize, - ) -> *mut cef_stream_reader_t; -} -extern "C" { - #[doc = ""] - pub fn cef_stream_reader_create_for_handler( - handler: *mut cef_read_handler_t, - ) -> *mut cef_stream_reader_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_write_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub write: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_write_handler_t, - ptr: *const ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - #[doc = ""] - pub seek: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_write_handler_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub tell: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_write_handler_t) -> int64, - >, - #[doc = ""] - pub flush: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub may_block: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_write_handler_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_write_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_write_handler_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_write_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_write_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_write_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).write as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(write) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).seek as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(seek) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).tell as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(tell) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).flush as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(flush) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_write_handler_t>())).may_block as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_write_handler_t), - "::", - stringify!(may_block) - ) - ); -} -#[doc = ""] -pub type cef_write_handler_t = _cef_write_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_stream_writer_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub write: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_stream_writer_t, - ptr: *const ::std::os::raw::c_void, - size: usize, - n: usize, - ) -> usize, - >, - #[doc = ""] - pub seek: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_stream_writer_t, - offset: int64, - whence: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub tell: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_writer_t) -> int64, - >, - #[doc = ""] - pub flush: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub may_block: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_stream_writer_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_stream_writer_t() { - assert_eq!( - ::std::mem::size_of::<_cef_stream_writer_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_stream_writer_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_stream_writer_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_stream_writer_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).write as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(write) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).seek as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(seek) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).tell as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(tell) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).flush as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(flush) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_stream_writer_t>())).may_block as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_stream_writer_t), - "::", - stringify!(may_block) - ) - ); -} -#[doc = ""] -pub type cef_stream_writer_t = _cef_stream_writer_t; -extern "C" { - #[doc = ""] - pub fn cef_stream_writer_create_for_file( - fileName: *const cef_string_t, - ) -> *mut cef_stream_writer_t; -} -extern "C" { - #[doc = ""] - pub fn cef_stream_writer_create_for_handler( - handler: *mut cef_write_handler_t, - ) -> *mut cef_stream_writer_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_drag_data_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub clone: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_drag_data_t, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_link: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_fragment: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_file: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_link_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_link_title: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_link_metadata: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_fragment_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_fragment_html: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_fragment_base_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_file_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_file_contents: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_drag_data_t, - writer: *mut _cef_stream_writer_t, - ) -> usize, - >, - #[doc = ""] - pub get_file_names: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_drag_data_t, - names: cef_string_list_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_link_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, url: *const cef_string_t), - >, - #[doc = ""] - pub set_link_title: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, title: *const cef_string_t), - >, - #[doc = ""] - pub set_link_metadata: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, data: *const cef_string_t), - >, - #[doc = ""] - pub set_fragment_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, text: *const cef_string_t), - >, - #[doc = ""] - pub set_fragment_html: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, html: *const cef_string_t), - >, - #[doc = ""] - pub set_fragment_base_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t, base_url: *const cef_string_t), - >, - #[doc = ""] - pub reset_file_contents: - ::std::option::Option, - #[doc = ""] - pub add_file: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_drag_data_t, - path: *const cef_string_t, - display_name: *const cef_string_t, - ), - >, - #[doc = ""] - pub get_image: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> *mut _cef_image_t, - >, - #[doc = ""] - pub get_image_hotspot: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> cef_point_t, - >, - #[doc = ""] - pub has_image: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_drag_data_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_drag_data_t() { - assert_eq!( - ::std::mem::size_of::<_cef_drag_data_t>(), - 120usize, - concat!("Size of: ", stringify!(_cef_drag_data_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_drag_data_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_drag_data_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).clone as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(clone) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_read_only as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_link as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(is_link) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_fragment as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(is_fragment) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).is_file as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(is_file) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_url as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_link_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_title as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_link_title) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_link_metadata as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_link_metadata) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_text as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_fragment_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_html as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_fragment_html) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_fragment_base_url as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_fragment_base_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_name as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_file_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_contents as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_file_contents) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_file_names as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_file_names) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_url as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_link_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_title as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_link_title) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).set_link_metadata as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_link_metadata) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_text as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_fragment_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_html as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_fragment_html) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).set_fragment_base_url as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(set_fragment_base_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).reset_file_contents as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(reset_file_contents) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).add_file as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(add_file) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).get_image as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_image) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_data_t>())).get_image_hotspot as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(get_image_hotspot) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_data_t>())).has_image as *const _ as usize }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_data_t), - "::", - stringify!(has_image) - ) - ); -} -#[doc = ""] -pub type cef_drag_data_t = _cef_drag_data_t; -extern "C" { - #[doc = ""] - pub fn cef_drag_data_create() -> *mut cef_drag_data_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_domvisitor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub visit: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domvisitor_t, - document: *mut _cef_domdocument_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_domvisitor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_domvisitor_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_domvisitor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_domvisitor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_domvisitor_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domvisitor_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_domvisitor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domvisitor_t>())).visit as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_domvisitor_t), - "::", - stringify!(visit) - ) - ); -} -#[doc = ""] -pub type cef_domvisitor_t = _cef_domvisitor_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_domdocument_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> cef_dom_document_type_t::Type, - >, - #[doc = ""] - pub get_document: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_body: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_head: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_title: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_element_by_id: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domdocument_t, - id: *const cef_string_t, - ) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_focused_node: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub has_selection: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_selection_start_offset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_selection_end_offset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_selection_as_markup: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_selection_as_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_base_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domdocument_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_complete_url: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domdocument_t, - partialURL: *const cef_string_t, - ) -> cef_string_userfree_t, - >, -} -#[test] -fn bindgen_test_layout__cef_domdocument_t() { - assert_eq!( - ::std::mem::size_of::<_cef_domdocument_t>(), - 76usize, - concat!("Size of: ", stringify!(_cef_domdocument_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_domdocument_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_domdocument_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_type as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_document as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_document) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_body as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_body) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_head as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_head) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_title as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_title) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_element_by_id as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_element_by_id) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_focused_node as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_focused_node) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).has_selection as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(has_selection) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_start_offset as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_selection_start_offset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_end_offset as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_selection_end_offset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_as_markup as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_selection_as_markup) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_selection_as_text as *const _ - as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_selection_as_text) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domdocument_t>())).get_base_url as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_base_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domdocument_t>())).get_complete_url as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_domdocument_t), - "::", - stringify!(get_complete_url) - ) - ); -} -#[doc = ""] -pub type cef_domdocument_t = _cef_domdocument_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_domnode_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_dom_node_type_t::Type, - >, - #[doc = ""] - pub is_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_element: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_editable: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_form_control_element: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_form_control_element_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domnode_t, - that: *mut _cef_domnode_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_value: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domnode_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_as_markup: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_document: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domdocument_t, - >, - #[doc = ""] - pub get_parent: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_previous_sibling: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_next_sibling: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub has_children: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_first_child: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_last_child: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> *mut _cef_domnode_t, - >, - #[doc = ""] - pub get_element_tag_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub has_element_attributes: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_element_attribute: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domnode_t, - attrName: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_element_attribute: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domnode_t, - attrName: *const cef_string_t, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_element_attributes: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t, attrMap: cef_string_map_t), - >, - #[doc = ""] - pub set_element_attribute: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_domnode_t, - attrName: *const cef_string_t, - value: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_element_inner_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_domnode_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_element_bounds: - ::std::option::Option cef_rect_t>, -} -#[test] -fn bindgen_test_layout__cef_domnode_t() { - assert_eq!( - ::std::mem::size_of::<_cef_domnode_t>(), - 124usize, - concat!("Size of: ", stringify!(_cef_domnode_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_domnode_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_domnode_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_type as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_text as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(is_text) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_element as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(is_element) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_editable as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(is_editable) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).is_form_control_element as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(is_form_control_element) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_form_control_element_type as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_form_control_element_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).is_same as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_name as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_value as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).set_value as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(set_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_as_markup as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_as_markup) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_document as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_document) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_parent as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_parent) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_previous_sibling as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_previous_sibling) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_next_sibling as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_next_sibling) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).has_children as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(has_children) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_first_child as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_first_child) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_domnode_t>())).get_last_child as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_last_child) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_tag_name as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_element_tag_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).has_element_attributes as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(has_element_attributes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).has_element_attribute as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(has_element_attribute) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_attribute as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_element_attribute) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_attributes as *const _ as usize - }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_element_attributes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).set_element_attribute as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(set_element_attribute) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_inner_text as *const _ as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_element_inner_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_domnode_t>())).get_element_bounds as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_domnode_t), - "::", - stringify!(get_element_bounds) - ) - ); -} -#[doc = ""] -pub type cef_domnode_t = _cef_domnode_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_process_message_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_process_message_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_process_message_t, - ) -> *mut _cef_process_message_t, - >, - #[doc = ""] - pub get_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_process_message_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_argument_list: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_process_message_t) -> *mut _cef_list_value_t, - >, -} -#[test] -fn bindgen_test_layout__cef_process_message_t() { - assert_eq!( - ::std::mem::size_of::<_cef_process_message_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_process_message_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_process_message_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_process_message_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_process_message_t>())).is_read_only as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).copy as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_process_message_t>())).get_name as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(get_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_process_message_t>())).get_argument_list as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_process_message_t), - "::", - stringify!(get_argument_list) - ) - ); -} -#[doc = ""] -pub type cef_process_message_t = _cef_process_message_t; -extern "C" { - #[doc = ""] - pub fn cef_process_message_create(name: *const cef_string_t) -> *mut cef_process_message_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_request_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, url: *const cef_string_t), - >, - #[doc = ""] - pub get_method: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_method: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, method: *const cef_string_t), - >, - #[doc = ""] - pub set_referrer: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_t, - referrer_url: *const cef_string_t, - policy: cef_referrer_policy_t::Type, - ), - >, - #[doc = ""] - pub get_referrer_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_referrer_policy: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_referrer_policy_t::Type, - >, - #[doc = ""] - pub get_post_data: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> *mut _cef_post_data_t, - >, - #[doc = ""] - pub set_post_data: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, postData: *mut _cef_post_data_t), - >, - #[doc = ""] - pub get_header_map: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t), - >, - #[doc = ""] - pub set_header_map: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, headerMap: cef_string_multimap_t), - >, - #[doc = ""] - pub get_header_by_name: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_t, - name: *const cef_string_t, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_header_by_name: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_t, - name: *const cef_string_t, - value: *const cef_string_t, - overwrite: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub set: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_t, - url: *const cef_string_t, - method: *const cef_string_t, - postData: *mut _cef_post_data_t, - headerMap: cef_string_multimap_t, - ), - >, - #[doc = ""] - pub get_flags: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_flags: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, flags: ::std::os::raw::c_int), - >, - #[doc = ""] - pub get_first_party_for_cookies: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_first_party_for_cookies: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t, url: *const cef_string_t), - >, - #[doc = ""] - pub get_resource_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_resource_type_t::Type, - >, - #[doc = ""] - pub get_transition_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_t) -> cef_transition_type_t::Type, - >, - #[doc = ""] - pub get_identifier: - ::std::option::Option uint64>, -} -#[test] -fn bindgen_test_layout__cef_request_t() { - assert_eq!( - ::std::mem::size_of::<_cef_request_t>(), - 108usize, - concat!("Size of: ", stringify!(_cef_request_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_request_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_request_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).is_read_only as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_url as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_url as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_method as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_method) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_method as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_method) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_referrer as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_referrer) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_referrer_url as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_referrer_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).get_referrer_policy as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_referrer_policy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_post_data as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_post_data) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_post_data as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_post_data) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_header_map as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_header_map) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_header_map as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_header_map) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).get_header_by_name as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_header_by_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).set_header_by_name as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_header_by_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_flags as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_flags) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).set_flags as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).get_first_party_for_cookies as *const _ - as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_first_party_for_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).set_first_party_for_cookies as *const _ - as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(set_first_party_for_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).get_resource_type as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_resource_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_t>())).get_transition_type as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_transition_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_t>())).get_identifier as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_t), - "::", - stringify!(get_identifier) - ) - ); -} -#[doc = ""] -pub type cef_request_t = _cef_request_t; -extern "C" { - #[doc = ""] - pub fn cef_request_create() -> *mut cef_request_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_post_data_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_excluded_elements: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_post_data_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_element_count: - ::std::option::Option usize>, - #[doc = ""] - pub get_elements: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_t, - elementsCount: *mut usize, - elements: *mut *mut _cef_post_data_element_t, - ), - >, - #[doc = ""] - pub remove_element: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_t, - element: *mut _cef_post_data_element_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_element: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_t, - element: *mut _cef_post_data_element_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove_elements: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_post_data_t() { - assert_eq!( - ::std::mem::size_of::<_cef_post_data_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_post_data_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_post_data_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_post_data_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).is_read_only as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_t>())).has_excluded_elements as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(has_excluded_elements) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_t>())).get_element_count as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(get_element_count) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).get_elements as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(get_elements) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).remove_element as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(remove_element) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_t>())).add_element as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(add_element) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_t>())).remove_elements as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_t), - "::", - stringify!(remove_elements) - ) - ); -} -#[doc = ""] -pub type cef_post_data_t = _cef_post_data_t; -extern "C" { - #[doc = ""] - pub fn cef_post_data_create() -> *mut cef_post_data_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_post_data_element_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_post_data_element_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_to_empty: - ::std::option::Option, - #[doc = ""] - pub set_to_file: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_element_t, - fileName: *const cef_string_t, - ), - >, - #[doc = ""] - pub set_to_bytes: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_element_t, - size: usize, - bytes: *const ::std::os::raw::c_void, - ), - >, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_element_t, - ) -> cef_postdataelement_type_t::Type, - >, - #[doc = ""] - pub get_file: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_post_data_element_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_bytes_count: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_post_data_element_t) -> usize, - >, - #[doc = ""] - pub get_bytes: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_post_data_element_t, - size: usize, - bytes: *mut ::std::os::raw::c_void, - ) -> usize, - >, -} -#[test] -fn bindgen_test_layout__cef_post_data_element_t() { - assert_eq!( - ::std::mem::size_of::<_cef_post_data_element_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_post_data_element_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_post_data_element_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_post_data_element_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_post_data_element_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).is_read_only as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_empty as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(set_to_empty) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_file as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(set_to_file) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).set_to_bytes as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(set_to_bytes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_type as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_file as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(get_file) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_bytes_count as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(get_bytes_count) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_post_data_element_t>())).get_bytes as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_post_data_element_t), - "::", - stringify!(get_bytes) - ) - ); -} -#[doc = ""] -pub type cef_post_data_element_t = _cef_post_data_element_t; -extern "C" { - #[doc = ""] - pub fn cef_post_data_element_create() -> *mut cef_post_data_element_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_string_visitor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub visit: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_string_visitor_t, string: *const cef_string_t), - >, -} -#[test] -fn bindgen_test_layout__cef_string_visitor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_string_visitor_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_string_visitor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_string_visitor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_string_visitor_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_visitor_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_visitor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_string_visitor_t>())).visit as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_string_visitor_t), - "::", - stringify!(visit) - ) - ); -} -#[doc = ""] -pub type cef_string_visitor_t = _cef_string_visitor_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_urlrequest_client_t { - _unused: [u8; 0], -} -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_urlrequest_t { - _unused: [u8; 0], -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_frame_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub undo: ::std::option::Option, - #[doc = ""] - pub redo: ::std::option::Option, - #[doc = ""] - pub cut: ::std::option::Option, - #[doc = ""] - pub copy: ::std::option::Option, - #[doc = ""] - pub paste: ::std::option::Option, - #[doc = ""] - pub del: ::std::option::Option, - #[doc = ""] - pub select_all: ::std::option::Option, - #[doc = ""] - pub view_source: ::std::option::Option, - #[doc = ""] - pub get_source: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t), - >, - #[doc = ""] - pub get_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_string_visitor_t), - >, - #[doc = ""] - pub load_request: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t, request: *mut _cef_request_t), - >, - #[doc = ""] - pub load_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t, url: *const cef_string_t), - >, - #[doc = ""] - pub execute_java_script: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_frame_t, - code: *const cef_string_t, - script_url: *const cef_string_t, - start_line: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub is_main: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_focused: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_identifier: - ::std::option::Option int64>, - #[doc = ""] - pub get_parent: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_browser: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> *mut _cef_browser_t, - >, - #[doc = ""] - pub get_v8context: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t) -> *mut _cef_v8context_t, - >, - #[doc = ""] - pub visit_dom: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_frame_t, visitor: *mut _cef_domvisitor_t), - >, - #[doc = ""] - pub create_urlrequest: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_frame_t, - request: *mut _cef_request_t, - client: *mut _cef_urlrequest_client_t, - ) -> *mut _cef_urlrequest_t, - >, - #[doc = ""] - pub send_process_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_frame_t, - target_process: cef_process_id_t::Type, - message: *mut _cef_process_message_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_frame_t() { - assert_eq!( - ::std::mem::size_of::<_cef_frame_t>(), - 120usize, - concat!("Size of: ", stringify!(_cef_frame_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_frame_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_frame_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).undo as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(undo) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).redo as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(redo) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).cut as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(cut) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).copy as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).paste as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(paste) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).del as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(del) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).select_all as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(select_all) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).view_source as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(view_source) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_source as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_source) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_text as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_text) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).load_request as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(load_request) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).load_url as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(load_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_frame_t>())).execute_java_script as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(execute_java_script) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_main as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(is_main) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).is_focused as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(is_focused) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_name as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_identifier as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_identifier) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_parent as *const _ as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_parent) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_url as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_browser as *const _ as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_browser) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).get_v8context as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(get_v8context) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).visit_dom as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(visit_dom) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_frame_t>())).create_urlrequest as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(create_urlrequest) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_frame_t>())).send_process_message as *const _ as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_frame_t), - "::", - stringify!(send_process_message) - ) - ); -} -#[doc = ""] -pub type cef_frame_t = _cef_frame_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_x509cert_principal_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_display_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_common_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_locality_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_state_or_province_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_country_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_street_addresses: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509cert_principal_t, - addresses: cef_string_list_t, - ), - >, - #[doc = ""] - pub get_organization_names: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t, names: cef_string_list_t), - >, - #[doc = ""] - pub get_organization_unit_names: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509cert_principal_t, names: cef_string_list_t), - >, - #[doc = ""] - pub get_domain_components: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509cert_principal_t, - components: cef_string_list_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_x509cert_principal_t() { - assert_eq!( - ::std::mem::size_of::<_cef_x509cert_principal_t>(), - 56usize, - concat!("Size of: ", stringify!(_cef_x509cert_principal_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_x509cert_principal_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_x509cert_principal_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_display_name as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_display_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_common_name as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_common_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_locality_name as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_locality_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_state_or_province_name - as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_state_or_province_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_country_name as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_country_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_street_addresses as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_street_addresses) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_organization_names as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_organization_names) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_organization_unit_names - as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_organization_unit_names) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509cert_principal_t>())).get_domain_components as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509cert_principal_t), - "::", - stringify!(get_domain_components) - ) - ); -} -#[doc = ""] -pub type cef_x509cert_principal_t = _cef_x509cert_principal_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_x509certificate_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_subject: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509certificate_t, - ) -> *mut _cef_x509cert_principal_t, - >, - #[doc = ""] - pub get_issuer: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509certificate_t, - ) -> *mut _cef_x509cert_principal_t, - >, - #[doc = ""] - pub get_serial_number: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_valid_start: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> cef_time_t, - >, - #[doc = ""] - pub get_valid_expiry: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> cef_time_t, - >, - #[doc = ""] - pub get_derencoded: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_pemencoded: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> *mut _cef_binary_value_t, - >, - #[doc = ""] - pub get_issuer_chain_size: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_x509certificate_t) -> usize, - >, - #[doc = ""] - pub get_derencoded_issuer_chain: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509certificate_t, - chainCount: *mut usize, - chain: *mut *mut _cef_binary_value_t, - ), - >, - #[doc = ""] - pub get_pemencoded_issuer_chain: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_x509certificate_t, - chainCount: *mut usize, - chain: *mut *mut _cef_binary_value_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_x509certificate_t() { - assert_eq!( - ::std::mem::size_of::<_cef_x509certificate_t>(), - 60usize, - concat!("Size of: ", stringify!(_cef_x509certificate_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_x509certificate_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_x509certificate_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_x509certificate_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_subject as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_subject) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_issuer as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_issuer) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_serial_number as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_serial_number) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_valid_start as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_valid_start) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_valid_expiry as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_valid_expiry) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_derencoded as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_derencoded) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_pemencoded as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_pemencoded) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_issuer_chain_size as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_issuer_chain_size) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_derencoded_issuer_chain - as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_derencoded_issuer_chain) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_x509certificate_t>())).get_pemencoded_issuer_chain - as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_x509certificate_t), - "::", - stringify!(get_pemencoded_issuer_chain) - ) - ); -} -#[doc = ""] -pub type cef_x509certificate_t = _cef_x509certificate_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_sslstatus_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_secure_connection: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslstatus_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_cert_status: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslstatus_t) -> cef_cert_status_t::Type, - >, - #[doc = ""] - pub get_sslversion: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_version_t::Type, - >, - #[doc = ""] - pub get_content_status: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslstatus_t) -> cef_ssl_content_status_t::Type, - >, - #[doc = ""] - pub get_x509certificate: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslstatus_t) -> *mut _cef_x509certificate_t, - >, -} -#[test] -fn bindgen_test_layout__cef_sslstatus_t() { - assert_eq!( - ::std::mem::size_of::<_cef_sslstatus_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_sslstatus_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_sslstatus_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_sslstatus_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_sslstatus_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_sslstatus_t>())).is_secure_connection as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(is_secure_connection) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_cert_status as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(get_cert_status) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_sslversion as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(get_sslversion) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_content_status as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(get_content_status) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_sslstatus_t>())).get_x509certificate as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslstatus_t), - "::", - stringify!(get_x509certificate) - ) - ); -} -#[doc = ""] -pub type cef_sslstatus_t = _cef_sslstatus_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_navigation_entry_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_display_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_original_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_title: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_transition_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_navigation_entry_t, - ) -> cef_transition_type_t::Type, - >, - #[doc = ""] - pub has_post_data: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_completion_time: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> cef_time_t, - >, - #[doc = ""] - pub get_http_status_code: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_sslstatus: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_navigation_entry_t) -> *mut _cef_sslstatus_t, - >, -} -#[test] -fn bindgen_test_layout__cef_navigation_entry_t() { - assert_eq!( - ::std::mem::size_of::<_cef_navigation_entry_t>(), - 60usize, - concat!("Size of: ", stringify!(_cef_navigation_entry_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_navigation_entry_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_navigation_entry_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_navigation_entry_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).is_valid as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_url as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_display_url as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_display_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_original_url as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_original_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_title as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_title) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_transition_type as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_transition_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).has_post_data as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(has_post_data) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_completion_time as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_completion_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_http_status_code as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_http_status_code) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_t>())).get_sslstatus as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_t), - "::", - stringify!(get_sslstatus) - ) - ); -} -#[doc = ""] -pub type cef_navigation_entry_t = _cef_navigation_entry_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_registration_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, -} -#[test] -fn bindgen_test_layout__cef_registration_t() { - assert_eq!( - ::std::mem::size_of::<_cef_registration_t>(), - 20usize, - concat!("Size of: ", stringify!(_cef_registration_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_registration_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_registration_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_registration_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_registration_t), - "::", - stringify!(base) - ) - ); -} -#[doc = ""] -pub type cef_registration_t = _cef_registration_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option, - #[doc = ""] - pub cancel: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).cont as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_callback_t>())).cancel as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_callback_t = _cef_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_completion_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_complete: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_completion_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_completion_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_completion_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_completion_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_completion_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_completion_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_completion_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_completion_callback_t>())).on_complete as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_completion_callback_t), - "::", - stringify!(on_complete) - ) - ); -} -#[doc = ""] -pub type cef_completion_callback_t = _cef_completion_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_cookie_manager_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub set_supported_schemes: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - schemes: cef_string_list_t, - include_defaults: ::std::os::raw::c_int, - callback: *mut _cef_completion_callback_t, - ), - >, - #[doc = ""] - pub visit_all_cookies: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - visitor: *mut _cef_cookie_visitor_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub visit_url_cookies: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - url: *const cef_string_t, - includeHttpOnly: ::std::os::raw::c_int, - visitor: *mut _cef_cookie_visitor_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_cookie: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - url: *const cef_string_t, - cookie: *const _cef_cookie_t, - callback: *mut _cef_set_cookie_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub delete_cookies: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - url: *const cef_string_t, - cookie_name: *const cef_string_t, - callback: *mut _cef_delete_cookies_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub flush_store: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_manager_t, - callback: *mut _cef_completion_callback_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_cookie_manager_t() { - assert_eq!( - ::std::mem::size_of::<_cef_cookie_manager_t>(), - 44usize, - concat!("Size of: ", stringify!(_cef_cookie_manager_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_cookie_manager_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_cookie_manager_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_manager_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).set_supported_schemes as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(set_supported_schemes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).visit_all_cookies as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(visit_all_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).visit_url_cookies as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(visit_url_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).set_cookie as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(set_cookie) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).delete_cookies as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(delete_cookies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_manager_t>())).flush_store as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_manager_t), - "::", - stringify!(flush_store) - ) - ); -} -#[doc = ""] -pub type cef_cookie_manager_t = _cef_cookie_manager_t; -extern "C" { - #[doc = ""] - pub fn cef_cookie_manager_get_global_manager( - callback: *mut _cef_completion_callback_t, - ) -> *mut cef_cookie_manager_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_cookie_visitor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub visit: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_visitor_t, - cookie: *const _cef_cookie_t, - count: ::std::os::raw::c_int, - total: ::std::os::raw::c_int, - deleteCookie: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_cookie_visitor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_cookie_visitor_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_cookie_visitor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_cookie_visitor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_cookie_visitor_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_visitor_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_visitor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_cookie_visitor_t>())).visit as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_visitor_t), - "::", - stringify!(visit) - ) - ); -} -#[doc = ""] -pub type cef_cookie_visitor_t = _cef_cookie_visitor_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_set_cookie_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_complete: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_set_cookie_callback_t, - success: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_set_cookie_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_set_cookie_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_set_cookie_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_set_cookie_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_set_cookie_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_set_cookie_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_set_cookie_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_set_cookie_callback_t>())).on_complete as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_set_cookie_callback_t), - "::", - stringify!(on_complete) - ) - ); -} -#[doc = ""] -pub type cef_set_cookie_callback_t = _cef_set_cookie_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_delete_cookies_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_complete: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_delete_cookies_callback_t, - num_deleted: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_delete_cookies_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_delete_cookies_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_delete_cookies_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_delete_cookies_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_delete_cookies_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_delete_cookies_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_delete_cookies_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_delete_cookies_callback_t>())).on_complete as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_delete_cookies_callback_t), - "::", - stringify!(on_complete) - ) - ); -} -#[doc = ""] -pub type cef_delete_cookies_callback_t = _cef_delete_cookies_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_extension_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_identifier: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_path: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_manifest: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_t, - that: *mut _cef_extension_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> *mut _cef_extension_handler_t, - >, - #[doc = ""] - pub get_loader_context: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> *mut _cef_request_context_t, - >, - #[doc = ""] - pub is_loaded: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_extension_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub unload: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_extension_t() { - assert_eq!( - ::std::mem::size_of::<_cef_extension_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_extension_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_extension_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_extension_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_identifier as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(get_identifier) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_path as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(get_path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_manifest as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(get_manifest) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).is_same as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).get_handler as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(get_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_t>())).get_loader_context as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(get_loader_context) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).is_loaded as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(is_loaded) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_t>())).unload as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_t), - "::", - stringify!(unload) - ) - ); -} -#[doc = ""] -pub type cef_extension_t = _cef_extension_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_get_extension_resource_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_get_extension_resource_callback_t, - stream: *mut _cef_stream_reader_t, - ), - >, - #[doc = ""] - pub cancel: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_get_extension_resource_callback_t), - >, -} -#[test] -fn bindgen_test_layout__cef_get_extension_resource_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_get_extension_resource_callback_t>(), - 28usize, - concat!( - "Size of: ", - stringify!(_cef_get_extension_resource_callback_t) - ) - ); - assert_eq!( - ::std::mem::align_of::<_cef_get_extension_resource_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_get_extension_resource_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).base as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_get_extension_resource_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).cont as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_get_extension_resource_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_get_extension_resource_callback_t>())).cancel as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_get_extension_resource_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_get_extension_resource_callback_t = _cef_get_extension_resource_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_extension_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_extension_load_failed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - result: cef_errorcode_t::Type, - ), - >, - #[doc = ""] - pub on_extension_loaded: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - ), - >, - #[doc = ""] - pub on_extension_unloaded: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - ), - >, - #[doc = ""] - pub on_before_background_browser: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - url: *const cef_string_t, - client: *mut *mut _cef_client_t, - settings: *mut _cef_browser_settings_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_before_browser: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - browser: *mut _cef_browser_t, - active_browser: *mut _cef_browser_t, - index: ::std::os::raw::c_int, - url: *const cef_string_t, - active: ::std::os::raw::c_int, - windowInfo: *mut _cef_window_info_t, - client: *mut *mut _cef_client_t, - settings: *mut _cef_browser_settings_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_active_browser: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - browser: *mut _cef_browser_t, - include_incognito: ::std::os::raw::c_int, - ) -> *mut _cef_browser_t, - >, - #[doc = ""] - pub can_access_browser: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - browser: *mut _cef_browser_t, - include_incognito: ::std::os::raw::c_int, - target_browser: *mut _cef_browser_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_extension_resource: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_extension_handler_t, - extension: *mut _cef_extension_t, - browser: *mut _cef_browser_t, - file: *const cef_string_t, - callback: *mut _cef_get_extension_resource_callback_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_extension_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_extension_handler_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_extension_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_extension_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_extension_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_extension_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_load_failed - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(on_extension_load_failed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_loaded as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(on_extension_loaded) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_extension_unloaded as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(on_extension_unloaded) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_before_background_browser - as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(on_before_background_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).on_before_browser as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(on_before_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).get_active_browser as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(get_active_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).can_access_browser as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(can_access_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_extension_handler_t>())).get_extension_resource as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_extension_handler_t), - "::", - stringify!(get_extension_resource) - ) - ); -} -#[doc = ""] -pub type cef_extension_handler_t = _cef_extension_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_router_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub add_observer: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_router_t, - observer: *mut _cef_media_observer_t, - ) -> *mut _cef_registration_t, - >, - #[doc = ""] - pub get_source: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_router_t, - urn: *const cef_string_t, - ) -> *mut _cef_media_source_t, - >, - #[doc = ""] - pub notify_current_sinks: - ::std::option::Option, - #[doc = ""] - pub create_route: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_router_t, - source: *mut _cef_media_source_t, - sink: *mut _cef_media_sink_t, - callback: *mut _cef_media_route_create_callback_t, - ), - >, - #[doc = ""] - pub notify_current_routes: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_media_router_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_router_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_media_router_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_router_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_router_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_router_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_router_t>())).add_observer as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(add_observer) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_router_t>())).get_source as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(get_source) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_router_t>())).notify_current_sinks as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(notify_current_sinks) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_router_t>())).create_route as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(create_route) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_router_t>())).notify_current_routes as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_router_t), - "::", - stringify!(notify_current_routes) - ) - ); -} -#[doc = ""] -pub type cef_media_router_t = _cef_media_router_t; -extern "C" { - #[doc = ""] - pub fn cef_media_router_get_global() -> *mut cef_media_router_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_observer_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_sinks: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_observer_t, - sinksCount: usize, - sinks: *const *mut _cef_media_sink_t, - ), - >, - #[doc = ""] - pub on_routes: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_observer_t, - routesCount: usize, - routes: *const *mut _cef_media_route_t, - ), - >, - #[doc = ""] - pub on_route_state_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_observer_t, - route: *mut _cef_media_route_t, - state: cef_media_route_connection_state_t::Type, - ), - >, - #[doc = ""] - pub on_route_message_received: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_observer_t, - route: *mut _cef_media_route_t, - message: *const ::std::os::raw::c_void, - message_size: usize, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_media_observer_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_observer_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_media_observer_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_observer_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_observer_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_observer_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).on_sinks as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_observer_t), - "::", - stringify!(on_sinks) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_observer_t>())).on_routes as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_observer_t), - "::", - stringify!(on_routes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_observer_t>())).on_route_state_changed as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_observer_t), - "::", - stringify!(on_route_state_changed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_observer_t>())).on_route_message_received as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_observer_t), - "::", - stringify!(on_route_message_received) - ) - ); -} -#[doc = ""] -pub type cef_media_observer_t = _cef_media_observer_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_route_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_id: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_route_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_source: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_source_t, - >, - #[doc = ""] - pub get_sink: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_route_t) -> *mut _cef_media_sink_t, - >, - #[doc = ""] - pub send_route_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_route_t, - message: *const ::std::os::raw::c_void, - message_size: usize, - ), - >, - #[doc = ""] - pub terminate: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_media_route_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_route_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_media_route_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_route_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_route_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_id as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(get_id) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_source as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(get_source) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).get_sink as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(get_sink) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_route_t>())).send_route_message as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(send_route_message) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_route_t>())).terminate as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_t), - "::", - stringify!(terminate) - ) - ); -} -#[doc = ""] -pub type cef_media_route_t = _cef_media_route_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_route_create_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_media_route_create_finished: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_route_create_callback_t, - result: cef_media_route_create_result_t::Type, - error: *const cef_string_t, - route: *mut _cef_media_route_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_media_route_create_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_route_create_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_media_route_create_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_route_create_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_media_route_create_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_route_create_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_create_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_route_create_callback_t>())) - .on_media_route_create_finished as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_route_create_callback_t), - "::", - stringify!(on_media_route_create_finished) - ) - ); -} -#[doc = ""] -pub type cef_media_route_create_callback_t = _cef_media_route_create_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_sink_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_id: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_description: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_sink_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_icon_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_sink_t, - ) -> cef_media_sink_icon_type_t::Type, - >, - #[doc = ""] - pub get_device_info: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_sink_t, - callback: *mut _cef_media_sink_device_info_callback_t, - ), - >, - #[doc = ""] - pub is_cast_sink: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_dial_sink: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_sink_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_compatible_with: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_sink_t, - source: *mut _cef_media_source_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_media_sink_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_sink_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_media_sink_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_sink_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_sink_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_id as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(get_id) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_name as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(get_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_t>())).get_description as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(get_description) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).get_icon_type as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(get_icon_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_t>())).get_device_info as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(get_device_info) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).is_cast_sink as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(is_cast_sink) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_sink_t>())).is_dial_sink as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(is_dial_sink) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_t>())).is_compatible_with as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_t), - "::", - stringify!(is_compatible_with) - ) - ); -} -#[doc = ""] -pub type cef_media_sink_t = _cef_media_sink_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_sink_device_info_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_media_sink_device_info: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_media_sink_device_info_callback_t, - device_info: *const _cef_media_sink_device_info_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_media_sink_device_info_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_sink_device_info_callback_t>(), - 24usize, - concat!( - "Size of: ", - stringify!(_cef_media_sink_device_info_callback_t) - ) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_sink_device_info_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_media_sink_device_info_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_device_info_callback_t>())).base as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_device_info_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_sink_device_info_callback_t>())) - .on_media_sink_device_info as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_sink_device_info_callback_t), - "::", - stringify!(on_media_sink_device_info) - ) - ); -} -#[doc = ""] -pub type cef_media_sink_device_info_callback_t = _cef_media_sink_device_info_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_media_source_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_id: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_source_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub is_cast_source: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_dial_source: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_media_source_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_media_source_t() { - assert_eq!( - ::std::mem::size_of::<_cef_media_source_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_media_source_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_media_source_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_media_source_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_source_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_source_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_media_source_t>())).get_id as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_source_t), - "::", - stringify!(get_id) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_source_t>())).is_cast_source as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_source_t), - "::", - stringify!(is_cast_source) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_media_source_t>())).is_dial_source as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_media_source_t), - "::", - stringify!(is_dial_source) - ) - ); -} -#[doc = ""] -pub type cef_media_source_t = _cef_media_source_t; -#[repr(C)] -#[derive(Debug, Copy, Clone)] -pub struct _cef_request_context_handler_t { - _unused: [u8; 0], -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resolve_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_resolve_completed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resolve_callback_t, - result: cef_errorcode_t::Type, - resolved_ips: cef_string_list_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_resolve_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resolve_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_resolve_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resolve_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resolve_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resolve_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resolve_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resolve_callback_t>())).on_resolve_completed as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resolve_callback_t), - "::", - stringify!(on_resolve_completed) - ) - ); -} -#[doc = ""] -pub type cef_resolve_callback_t = _cef_resolve_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_request_context_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - other: *mut _cef_request_context_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_sharing_with: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - other: *mut _cef_request_context_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_global: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - ) -> *mut _cef_request_context_handler_t, - >, - #[doc = ""] - pub get_cache_path: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_context_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_cookie_manager: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - callback: *mut _cef_completion_callback_t, - ) -> *mut _cef_cookie_manager_t, - >, - #[doc = ""] - pub register_scheme_handler_factory: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - scheme_name: *const cef_string_t, - domain_name: *const cef_string_t, - factory: *mut _cef_scheme_handler_factory_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub clear_scheme_handler_factories: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_context_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub purge_plugin_list_cache: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - reload_pages: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub has_preference: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - name: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_preference: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - name: *const cef_string_t, - ) -> *mut _cef_value_t, - >, - #[doc = ""] - pub get_all_preferences: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - include_defaults: ::std::os::raw::c_int, - ) -> *mut _cef_dictionary_value_t, - >, - #[doc = ""] - pub can_set_preference: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - name: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_preference: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - name: *const cef_string_t, - value: *mut _cef_value_t, - error: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub clear_certificate_exceptions: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - callback: *mut _cef_completion_callback_t, - ), - >, - #[doc = ""] - pub clear_http_auth_credentials: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - callback: *mut _cef_completion_callback_t, - ), - >, - #[doc = ""] - pub close_all_connections: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - callback: *mut _cef_completion_callback_t, - ), - >, - #[doc = ""] - pub resolve_host: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - origin: *const cef_string_t, - callback: *mut _cef_resolve_callback_t, - ), - >, - #[doc = ""] - pub load_extension: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - root_directory: *const cef_string_t, - manifest: *mut _cef_dictionary_value_t, - handler: *mut _cef_extension_handler_t, - ), - >, - #[doc = ""] - pub did_load_extension: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - extension_id: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_extension: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - extension_id: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_extensions: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - extension_ids: cef_string_list_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_extension: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_context_t, - extension_id: *const cef_string_t, - ) -> *mut _cef_extension_t, - >, - #[doc = ""] - pub get_media_router: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_request_context_t) -> *mut _cef_media_router_t, - >, -} -#[test] -fn bindgen_test_layout__cef_request_context_t() { - assert_eq!( - ::std::mem::size_of::<_cef_request_context_t>(), - 116usize, - concat!("Size of: ", stringify!(_cef_request_context_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_request_context_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_request_context_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_context_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_context_t>())).is_same as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).is_sharing_with as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(is_sharing_with) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).is_global as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(is_global) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_handler as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_cache_path as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_cache_path) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_cookie_manager as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_cookie_manager) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).register_scheme_handler_factory - as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(register_scheme_handler_factory) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).clear_scheme_handler_factories - as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(clear_scheme_handler_factories) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).purge_plugin_list_cache as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(purge_plugin_list_cache) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).has_preference as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(has_preference) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_preference as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_preference) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_all_preferences as *const _ - as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_all_preferences) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).can_set_preference as *const _ - as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(can_set_preference) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).set_preference as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(set_preference) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).clear_certificate_exceptions - as *const _ as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(clear_certificate_exceptions) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).clear_http_auth_credentials - as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(clear_http_auth_credentials) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).close_all_connections as *const _ - as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(close_all_connections) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).resolve_host as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(resolve_host) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).load_extension as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(load_extension) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).did_load_extension as *const _ - as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(did_load_extension) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).has_extension as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(has_extension) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_extensions as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_extensions) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_extension as *const _ as usize - }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_extension) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_context_t>())).get_media_router as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_context_t), - "::", - stringify!(get_media_router) - ) - ); -} -#[doc = ""] -pub type cef_request_context_t = _cef_request_context_t; -extern "C" { - #[doc = ""] - pub fn cef_request_context_get_global_context() -> *mut cef_request_context_t; -} -extern "C" { - #[doc = ""] - pub fn cef_request_context_create_context( - settings: *const _cef_request_context_settings_t, - handler: *mut _cef_request_context_handler_t, - ) -> *mut cef_request_context_t; -} -extern "C" { - #[doc = ""] - pub fn cef_create_context_shared( - other: *mut cef_request_context_t, handler: *mut _cef_request_context_handler_t, - ) -> *mut cef_request_context_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_browser_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_host: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> *mut _cef_browser_host_t, - >, - #[doc = ""] - pub can_go_back: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub go_back: ::std::option::Option, - #[doc = ""] - pub can_go_forward: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub go_forward: ::std::option::Option, - #[doc = ""] - pub is_loading: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub reload: ::std::option::Option, - #[doc = ""] - pub reload_ignore_cache: - ::std::option::Option, - #[doc = ""] - pub stop_load: ::std::option::Option, - #[doc = ""] - pub get_identifier: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_t, - that: *mut _cef_browser_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_popup: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_document: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_main_frame: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_focused_frame: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_frame_byident: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_t, - identifier: int64, - ) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_frame: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_t, - name: *const cef_string_t, - ) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_frame_count: - ::std::option::Option usize>, - #[doc = ""] - pub get_frame_identifiers: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_t, - identifiersCount: *mut usize, - identifiers: *mut int64, - ), - >, - #[doc = ""] - pub get_frame_names: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_t, names: cef_string_list_t), - >, -} -#[test] -fn bindgen_test_layout__cef_browser_t() { - assert_eq!( - ::std::mem::size_of::<_cef_browser_t>(), - 100usize, - concat!("Size of: ", stringify!(_cef_browser_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_browser_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_browser_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_host as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_host) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).can_go_back as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(can_go_back) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).go_back as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(go_back) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).can_go_forward as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(can_go_forward) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).go_forward as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(go_forward) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_loading as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(is_loading) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).reload as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(reload) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_t>())).reload_ignore_cache as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(reload_ignore_cache) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).stop_load as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(stop_load) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_identifier as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_identifier) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_same as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).is_popup as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(is_popup) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).has_document as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(has_document) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_main_frame as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_main_frame) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_t>())).get_focused_frame as *const _ as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_focused_frame) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_byident as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_frame_byident) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_frame) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_count as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_frame_count) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_identifiers as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_frame_identifiers) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_t>())).get_frame_names as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_t), - "::", - stringify!(get_frame_names) - ) - ); -} -#[doc = ""] -pub type cef_browser_t = _cef_browser_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_run_file_dialog_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_file_dialog_dismissed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_run_file_dialog_callback_t, - selected_accept_filter: ::std::os::raw::c_int, - file_paths: cef_string_list_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_run_file_dialog_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_run_file_dialog_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_run_file_dialog_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_run_file_dialog_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_run_file_dialog_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_run_file_dialog_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_run_file_dialog_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_run_file_dialog_callback_t>())).on_file_dialog_dismissed - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_run_file_dialog_callback_t), - "::", - stringify!(on_file_dialog_dismissed) - ) - ); -} -#[doc = ""] -pub type cef_run_file_dialog_callback_t = _cef_run_file_dialog_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_navigation_entry_visitor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub visit: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_navigation_entry_visitor_t, - entry: *mut _cef_navigation_entry_t, - current: ::std::os::raw::c_int, - index: ::std::os::raw::c_int, - total: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_navigation_entry_visitor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_navigation_entry_visitor_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_navigation_entry_visitor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_navigation_entry_visitor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_navigation_entry_visitor_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_visitor_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_visitor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_navigation_entry_visitor_t>())).visit as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_navigation_entry_visitor_t), - "::", - stringify!(visit) - ) - ); -} -#[doc = ""] -pub type cef_navigation_entry_visitor_t = _cef_navigation_entry_visitor_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_pdf_print_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_pdf_print_finished: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_pdf_print_callback_t, - path: *const cef_string_t, - ok: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_pdf_print_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_pdf_print_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_pdf_print_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_pdf_print_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_pdf_print_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_pdf_print_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_pdf_print_callback_t>())).on_pdf_print_finished as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_pdf_print_callback_t), - "::", - stringify!(on_pdf_print_finished) - ) - ); -} -#[doc = ""] -pub type cef_pdf_print_callback_t = _cef_pdf_print_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_download_image_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_download_image_finished: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_download_image_callback_t, - image_url: *const cef_string_t, - http_status_code: ::std::os::raw::c_int, - image: *mut _cef_image_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_download_image_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_download_image_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_download_image_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_download_image_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_download_image_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_image_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_image_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_image_callback_t>())).on_download_image_finished - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_image_callback_t), - "::", - stringify!(on_download_image_finished) - ) - ); -} -#[doc = ""] -pub type cef_download_image_callback_t = _cef_download_image_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_browser_host_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_browser: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_browser_t, - >, - #[doc = ""] - pub close_browser: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - force_close: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub try_close_browser: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_focus: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, focus: ::std::os::raw::c_int), - >, - #[doc = ""] - pub get_window_handle: - ::std::option::Option HWND>, - #[doc = ""] - pub get_opener_window_handle: - ::std::option::Option HWND>, - #[doc = ""] - pub has_view: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_client: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_client_t, - >, - #[doc = ""] - pub get_request_context: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_request_context_t, - >, - #[doc = ""] - pub get_zoom_level: - ::std::option::Option f64>, - #[doc = ""] - pub set_zoom_level: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, zoomLevel: f64), - >, - #[doc = ""] - pub run_file_dialog: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - mode: cef_file_dialog_mode_t::Type, - title: *const cef_string_t, - default_file_path: *const cef_string_t, - accept_filters: cef_string_list_t, - selected_accept_filter: ::std::os::raw::c_int, - callback: *mut _cef_run_file_dialog_callback_t, - ), - >, - #[doc = ""] - pub start_download: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, url: *const cef_string_t), - >, - #[doc = ""] - pub download_image: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - image_url: *const cef_string_t, - is_favicon: ::std::os::raw::c_int, - max_image_size: uint32, - bypass_cache: ::std::os::raw::c_int, - callback: *mut _cef_download_image_callback_t, - ), - >, - #[doc = ""] - pub print: ::std::option::Option, - #[doc = ""] - pub print_to_pdf: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - path: *const cef_string_t, - settings: *const _cef_pdf_print_settings_t, - callback: *mut _cef_pdf_print_callback_t, - ), - >, - #[doc = ""] - pub find: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - identifier: ::std::os::raw::c_int, - searchText: *const cef_string_t, - forward: ::std::os::raw::c_int, - matchCase: ::std::os::raw::c_int, - findNext: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub stop_finding: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - clearSelection: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub show_dev_tools: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - windowInfo: *const _cef_window_info_t, - client: *mut _cef_client_t, - settings: *const _cef_browser_settings_t, - inspect_element_at: *const cef_point_t, - ), - >, - #[doc = ""] - pub close_dev_tools: - ::std::option::Option, - #[doc = ""] - pub has_dev_tools: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub send_dev_tools_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - message: *const ::std::os::raw::c_void, - message_size: usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub execute_dev_tools_method: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - message_id: ::std::os::raw::c_int, - method: *const cef_string_t, - params: *mut _cef_dictionary_value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_dev_tools_message_observer: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - observer: *mut _cef_dev_tools_message_observer_t, - ) -> *mut _cef_registration_t, - >, - #[doc = ""] - pub get_navigation_entries: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - visitor: *mut _cef_navigation_entry_visitor_t, - current_only: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub replace_misspelling: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t), - >, - #[doc = ""] - pub add_word_to_dictionary: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, word: *const cef_string_t), - >, - #[doc = ""] - pub is_window_rendering_disabled: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub was_resized: - ::std::option::Option, - #[doc = ""] - pub was_hidden: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, hidden: ::std::os::raw::c_int), - >, - #[doc = ""] - pub notify_screen_info_changed: - ::std::option::Option, - #[doc = ""] - pub invalidate: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - type_: cef_paint_element_type_t::Type, - ), - >, - #[doc = ""] - pub send_external_begin_frame: - ::std::option::Option, - #[doc = ""] - pub send_key_event: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, event: *const _cef_key_event_t), - >, - #[doc = ""] - pub send_mouse_click_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_mouse_event_t, - type_: cef_mouse_button_type_t::Type, - mouseUp: ::std::os::raw::c_int, - clickCount: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub send_mouse_move_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_mouse_event_t, - mouseLeave: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub send_mouse_wheel_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_mouse_event_t, - deltaX: ::std::os::raw::c_int, - deltaY: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub send_touch_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_touch_event_t, - ), - >, - #[doc = ""] - pub send_focus_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - setFocus: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub send_capture_lost_event: - ::std::option::Option, - #[doc = ""] - pub notify_move_or_resize_started: - ::std::option::Option, - #[doc = ""] - pub get_windowless_frame_rate: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_windowless_frame_rate: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - frame_rate: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub ime_set_composition: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - text: *const cef_string_t, - underlinesCount: usize, - underlines: *const cef_composition_underline_t, - replacement_range: *const cef_range_t, - selection_range: *const cef_range_t, - ), - >, - #[doc = ""] - pub ime_commit_text: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - text: *const cef_string_t, - replacement_range: *const cef_range_t, - relative_cursor_pos: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub ime_finish_composing_text: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - keep_selection: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub ime_cancel_composition: - ::std::option::Option, - #[doc = ""] - pub drag_target_drag_enter: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - drag_data: *mut _cef_drag_data_t, - event: *const _cef_mouse_event_t, - allowed_ops: cef_drag_operations_mask_t, - ), - >, - #[doc = ""] - pub drag_target_drag_over: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_mouse_event_t, - allowed_ops: cef_drag_operations_mask_t, - ), - >, - #[doc = ""] - pub drag_target_drag_leave: - ::std::option::Option, - #[doc = ""] - pub drag_target_drop: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - event: *const _cef_mouse_event_t, - ), - >, - #[doc = ""] - pub drag_source_ended_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - op: cef_drag_operations_mask_t, - ), - >, - #[doc = ""] - pub drag_source_system_drag_ended: - ::std::option::Option, - #[doc = ""] - pub get_visible_navigation_entry: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_navigation_entry_t, - >, - #[doc = ""] - pub set_accessibility_state: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - accessibility_state: cef_state_t::Type, - ), - >, - #[doc = ""] - pub set_auto_resize_enabled: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_host_t, - enabled: ::std::os::raw::c_int, - min_size: *const cef_size_t, - max_size: *const cef_size_t, - ), - >, - #[doc = ""] - pub get_extension: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> *mut _cef_extension_t, - >, - #[doc = ""] - pub is_background_host: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_audio_muted: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t, mute: ::std::os::raw::c_int), - >, - #[doc = ""] - pub is_audio_muted: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_host_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_browser_host_t() { - assert_eq!( - ::std::mem::size_of::<_cef_browser_host_t>(), - 260usize, - concat!("Size of: ", stringify!(_cef_browser_host_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_browser_host_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_browser_host_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).get_browser as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).close_browser as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(close_browser) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).try_close_browser as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(try_close_browser) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).set_focus as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_focus) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_window_handle as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_window_handle) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_opener_window_handle as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_opener_window_handle) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).has_view as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(has_view) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).get_client as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_client) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_request_context as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_request_context) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_zoom_level as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_zoom_level) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).set_zoom_level as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_zoom_level) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).run_file_dialog as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(run_file_dialog) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).start_download as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(start_download) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).download_image as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(download_image) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).print as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(print) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).print_to_pdf as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(print_to_pdf) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).find as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(find) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).stop_finding as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(stop_finding) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).show_dev_tools as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(show_dev_tools) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).close_dev_tools as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(close_dev_tools) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).has_dev_tools as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(has_dev_tools) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_dev_tools_message as *const _ - as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_dev_tools_message) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).execute_dev_tools_method as *const _ - as usize - }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(execute_dev_tools_method) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).add_dev_tools_message_observer - as *const _ as usize - }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(add_dev_tools_message_observer) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_navigation_entries as *const _ - as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_navigation_entries) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).replace_misspelling as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(replace_misspelling) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).add_word_to_dictionary as *const _ - as usize - }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(add_word_to_dictionary) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).is_window_rendering_disabled as *const _ - as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(is_window_rendering_disabled) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).was_resized as *const _ as usize }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(was_resized) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).was_hidden as *const _ as usize }, - 136usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(was_hidden) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).notify_screen_info_changed as *const _ - as usize - }, - 140usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(notify_screen_info_changed) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_browser_host_t>())).invalidate as *const _ as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(invalidate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_external_begin_frame as *const _ - as usize - }, - 148usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_external_begin_frame) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_key_event as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_key_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_click_event as *const _ - as usize - }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_mouse_click_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_move_event as *const _ - as usize - }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_mouse_move_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_mouse_wheel_event as *const _ - as usize - }, - 164usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_mouse_wheel_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_touch_event as *const _ as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_touch_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_focus_event as *const _ as usize - }, - 172usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_focus_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).send_capture_lost_event as *const _ - as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(send_capture_lost_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).notify_move_or_resize_started - as *const _ as usize - }, - 180usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(notify_move_or_resize_started) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_windowless_frame_rate as *const _ - as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_windowless_frame_rate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).set_windowless_frame_rate as *const _ - as usize - }, - 188usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_windowless_frame_rate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_set_composition as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(ime_set_composition) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_commit_text as *const _ as usize - }, - 196usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(ime_commit_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_finish_composing_text as *const _ - as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(ime_finish_composing_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).ime_cancel_composition as *const _ - as usize - }, - 204usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(ime_cancel_composition) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_enter as *const _ - as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_target_drag_enter) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_over as *const _ - as usize - }, - 212usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_target_drag_over) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drag_leave as *const _ - as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_target_drag_leave) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_target_drop as *const _ as usize - }, - 220usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_target_drop) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_source_ended_at as *const _ - as usize - }, - 224usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_source_ended_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).drag_source_system_drag_ended - as *const _ as usize - }, - 228usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(drag_source_system_drag_ended) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_visible_navigation_entry as *const _ - as usize - }, - 232usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_visible_navigation_entry) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).set_accessibility_state as *const _ - as usize - }, - 236usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_accessibility_state) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).set_auto_resize_enabled as *const _ - as usize - }, - 240usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_auto_resize_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).get_extension as *const _ as usize - }, - 244usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(get_extension) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).is_background_host as *const _ as usize - }, - 248usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(is_background_host) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).set_audio_muted as *const _ as usize - }, - 252usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(set_audio_muted) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_host_t>())).is_audio_muted as *const _ as usize - }, - 256usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_host_t), - "::", - stringify!(is_audio_muted) - ) - ); -} -#[doc = ""] -pub type cef_browser_host_t = _cef_browser_host_t; -extern "C" { - #[doc = ""] - pub fn cef_browser_host_create_browser( - windowInfo: *const cef_window_info_t, client: *mut _cef_client_t, url: *const cef_string_t, - settings: *const _cef_browser_settings_t, extra_info: *mut _cef_dictionary_value_t, - request_context: *mut _cef_request_context_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_browser_host_create_browser_sync( - windowInfo: *const cef_window_info_t, client: *mut _cef_client_t, url: *const cef_string_t, - settings: *const _cef_browser_settings_t, extra_info: *mut _cef_dictionary_value_t, - request_context: *mut _cef_request_context_t, - ) -> *mut cef_browser_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_audio_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_audio_parameters: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_audio_handler_t, - browser: *mut _cef_browser_t, - params: *mut cef_audio_parameters_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_audio_stream_started: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_audio_handler_t, - browser: *mut _cef_browser_t, - params: *const cef_audio_parameters_t, - channels: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_audio_stream_packet: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_audio_handler_t, - browser: *mut _cef_browser_t, - data: *mut *const f32, - frames: ::std::os::raw::c_int, - pts: int64, - ), - >, - #[doc = ""] - pub on_audio_stream_stopped: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_audio_handler_t, browser: *mut _cef_browser_t), - >, - #[doc = ""] - pub on_audio_stream_error: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_audio_handler_t, - browser: *mut _cef_browser_t, - message: *const cef_string_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_audio_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_audio_handler_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_audio_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_audio_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_audio_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_audio_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_handler_t>())).get_audio_parameters as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(get_audio_parameters) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_started as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(on_audio_stream_started) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_packet as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(on_audio_stream_packet) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_stopped as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(on_audio_stream_stopped) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_audio_handler_t>())).on_audio_stream_error as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_audio_handler_t), - "::", - stringify!(on_audio_stream_error) - ) - ); -} -#[doc = ""] -pub type cef_audio_handler_t = _cef_audio_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_menu_model_delegate_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub execute_command: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - event_flags: cef_event_flags_t::Type, - ), - >, - #[doc = ""] - pub mouse_outside_menu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - screen_point: *const cef_point_t, - ), - >, - #[doc = ""] - pub unhandled_open_submenu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - is_rtl: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub unhandled_close_submenu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - is_rtl: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub menu_will_show: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - ), - >, - #[doc = ""] - pub menu_closed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - ), - >, - #[doc = ""] - pub format_label: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_delegate_t, - menu_model: *mut _cef_menu_model_t, - label: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_menu_model_delegate_t() { - assert_eq!( - ::std::mem::size_of::<_cef_menu_model_delegate_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_menu_model_delegate_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_menu_model_delegate_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_menu_model_delegate_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).execute_command as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(execute_command) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).mouse_outside_menu as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(mouse_outside_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).unhandled_open_submenu - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(unhandled_open_submenu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).unhandled_close_submenu - as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(unhandled_close_submenu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).menu_will_show as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(menu_will_show) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).menu_closed as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(menu_closed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_delegate_t>())).format_label as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_delegate_t), - "::", - stringify!(format_label) - ) - ); -} -#[doc = ""] -pub type cef_menu_model_delegate_t = _cef_menu_model_delegate_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_menu_model_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_sub_menu: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub clear: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_count: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_separator: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_menu_model_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_item: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_check_item: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_radio_item: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - group_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub add_sub_menu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> *mut _cef_menu_model_t, - >, - #[doc = ""] - pub insert_separator_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub insert_item_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub insert_check_item_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub insert_radio_item_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - group_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub insert_sub_menu_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> *mut _cef_menu_model_t, - >, - #[doc = ""] - pub remove: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_index_of: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_command_id_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_command_id_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_label: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_label_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_label: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_label_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - label: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> cef_menu_item_type_t::Type, - >, - #[doc = ""] - pub get_type_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> cef_menu_item_type_t::Type, - >, - #[doc = ""] - pub get_group_id: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_group_id_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_group_id: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - group_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_group_id_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - group_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_sub_menu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> *mut _cef_menu_model_t, - >, - #[doc = ""] - pub get_sub_menu_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> *mut _cef_menu_model_t, - >, - #[doc = ""] - pub is_visible: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_visible_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_visible: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - visible: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_visible_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - visible: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_enabled: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_enabled_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_enabled: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - enabled: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_enabled_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - enabled: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_checked: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_checked_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_checked: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - checked: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_checked_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - checked: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_accelerator: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_accelerator_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_accelerator: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - key_code: ::std::os::raw::c_int, - shift_pressed: ::std::os::raw::c_int, - ctrl_pressed: ::std::os::raw::c_int, - alt_pressed: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_accelerator_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - key_code: ::std::os::raw::c_int, - shift_pressed: ::std::os::raw::c_int, - ctrl_pressed: ::std::os::raw::c_int, - alt_pressed: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove_accelerator: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub remove_accelerator_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_accelerator: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - key_code: *mut ::std::os::raw::c_int, - shift_pressed: *mut ::std::os::raw::c_int, - ctrl_pressed: *mut ::std::os::raw::c_int, - alt_pressed: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_accelerator_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - key_code: *mut ::std::os::raw::c_int, - shift_pressed: *mut ::std::os::raw::c_int, - ctrl_pressed: *mut ::std::os::raw::c_int, - alt_pressed: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_color: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - color_type: cef_menu_color_type_t::Type, - color: cef_color_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_color_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - color_type: cef_menu_color_type_t::Type, - color: cef_color_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_color: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - color_type: cef_menu_color_type_t::Type, - color: *mut cef_color_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_color_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - color_type: cef_menu_color_type_t::Type, - color: *mut cef_color_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_font_list: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - command_id: ::std::os::raw::c_int, - font_list: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_font_list_at: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_menu_model_t, - index: ::std::os::raw::c_int, - font_list: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_menu_model_t() { - assert_eq!( - ::std::mem::size_of::<_cef_menu_model_t>(), - 244usize, - concat!("Size of: ", stringify!(_cef_menu_model_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_menu_model_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_menu_model_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_sub_menu as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_sub_menu) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).clear as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(clear) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_count as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_count) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_separator as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(add_separator) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_item as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(add_item) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).add_check_item as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(add_check_item) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).add_radio_item as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(add_radio_item) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).add_sub_menu as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(add_sub_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_separator_at as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(insert_separator_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_item_at as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(insert_item_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_check_item_at as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(insert_check_item_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_radio_item_at as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(insert_radio_item_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).insert_sub_menu_at as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(insert_sub_menu_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).remove as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(remove) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_at as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(remove_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_index_of as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_index_of) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).get_command_id_at as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_command_id_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_command_id_at as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_command_id_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_label as *const _ as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_label) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_label_at as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_label_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_label as *const _ as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_label) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_label_at as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_label_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_type as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_type_at as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_type_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_group_id as *const _ as usize }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_group_id) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).get_group_id_at as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_group_id_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_group_id as *const _ as usize }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_group_id) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_group_id_at as *const _ as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_group_id_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_sub_menu as *const _ as usize }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_sub_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).get_sub_menu_at as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_sub_menu_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_visible as *const _ as usize }, - 140usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_visible) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_visible_at as *const _ as usize }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_visible_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_visible as *const _ as usize }, - 148usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_visible) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_visible_at as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_visible_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_enabled as *const _ as usize }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_enabled) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_enabled_at as *const _ as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_enabled_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_enabled as *const _ as usize }, - 164usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_enabled_at as *const _ as usize - }, - 168usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_enabled_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_checked as *const _ as usize }, - 172usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_checked) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).is_checked_at as *const _ as usize }, - 176usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(is_checked_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_checked as *const _ as usize }, - 180usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_checked) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_checked_at as *const _ as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_checked_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).has_accelerator as *const _ as usize - }, - 188usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(has_accelerator) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).has_accelerator_at as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(has_accelerator_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_accelerator as *const _ as usize - }, - 196usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_accelerator) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_accelerator_at as *const _ as usize - }, - 200usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_accelerator_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_accelerator as *const _ as usize - }, - 204usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(remove_accelerator) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).remove_accelerator_at as *const _ as usize - }, - 208usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(remove_accelerator_at) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).get_accelerator as *const _ as usize - }, - 212usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_accelerator) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).get_accelerator_at as *const _ as usize - }, - 216usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_accelerator_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_color as *const _ as usize }, - 220usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_color) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_color_at as *const _ as usize }, - 224usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_color_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_color as *const _ as usize }, - 228usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_color) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).get_color_at as *const _ as usize }, - 232usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(get_color_at) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_menu_model_t>())).set_font_list as *const _ as usize }, - 236usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_font_list) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_menu_model_t>())).set_font_list_at as *const _ as usize - }, - 240usize, - concat!( - "Offset of field: ", - stringify!(_cef_menu_model_t), - "::", - stringify!(set_font_list_at) - ) - ); -} -#[doc = ""] -pub type cef_menu_model_t = _cef_menu_model_t; -extern "C" { - #[doc = ""] - pub fn cef_menu_model_create( - delegate: *mut _cef_menu_model_delegate_t, - ) -> *mut cef_menu_model_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_run_context_menu_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_run_context_menu_callback_t, - command_id: ::std::os::raw::c_int, - event_flags: cef_event_flags_t::Type, - ), - >, - #[doc = ""] - pub cancel: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_run_context_menu_callback_t), - >, -} -#[test] -fn bindgen_test_layout__cef_run_context_menu_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_run_context_menu_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_run_context_menu_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_run_context_menu_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_run_context_menu_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_run_context_menu_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_run_context_menu_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_run_context_menu_callback_t>())).cancel as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_run_context_menu_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_run_context_menu_callback_t = _cef_run_context_menu_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_context_menu_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_before_context_menu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - params: *mut _cef_context_menu_params_t, - model: *mut _cef_menu_model_t, - ), - >, - #[doc = ""] - pub run_context_menu: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - params: *mut _cef_context_menu_params_t, - model: *mut _cef_menu_model_t, - callback: *mut _cef_run_context_menu_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_context_menu_command: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - params: *mut _cef_context_menu_params_t, - command_id: ::std::os::raw::c_int, - event_flags: cef_event_flags_t::Type, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_context_menu_dismissed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_context_menu_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_context_menu_handler_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_context_menu_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_context_menu_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_context_menu_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_before_context_menu - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_handler_t), - "::", - stringify!(on_before_context_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).run_context_menu as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_handler_t), - "::", - stringify!(run_context_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_context_menu_command - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_handler_t), - "::", - stringify!(on_context_menu_command) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_handler_t>())).on_context_menu_dismissed - as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_handler_t), - "::", - stringify!(on_context_menu_dismissed) - ) - ); -} -#[doc = ""] -pub type cef_context_menu_handler_t = _cef_context_menu_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_context_menu_params_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_xcoord: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_ycoord: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_type_flags: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_params_t, - ) -> cef_context_menu_type_flags_t::Type, - >, - #[doc = ""] - pub get_link_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_unfiltered_link_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_source_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub has_image_contents: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_title_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_page_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_frame_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_frame_charset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_media_type: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_params_t, - ) -> cef_context_menu_media_type_t::Type, - >, - #[doc = ""] - pub get_media_state_flags: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_params_t, - ) -> cef_context_menu_media_state_flags_t::Type, - >, - #[doc = ""] - pub get_selection_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_misspelled_word: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_dictionary_suggestions: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_params_t, - suggestions: cef_string_list_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_editable: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_spell_check_enabled: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_edit_state_flags: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_context_menu_params_t, - ) -> cef_context_menu_edit_state_flags_t::Type, - >, - #[doc = ""] - pub is_custom_menu: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_pepper_menu: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_context_menu_params_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_context_menu_params_t() { - assert_eq!( - ::std::mem::size_of::<_cef_context_menu_params_t>(), - 104usize, - concat!("Size of: ", stringify!(_cef_context_menu_params_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_context_menu_params_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_context_menu_params_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_context_menu_params_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_xcoord as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_xcoord) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_ycoord as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_ycoord) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_type_flags as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_type_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_link_url as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_link_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_unfiltered_link_url - as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_unfiltered_link_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_source_url as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_source_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).has_image_contents as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(has_image_contents) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_title_text as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_title_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_page_url as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_page_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_frame_url as *const _ - as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_frame_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_frame_charset as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_frame_charset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_media_type as *const _ - as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_media_type) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_media_state_flags as *const _ - as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_media_state_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_selection_text as *const _ - as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_selection_text) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_misspelled_word as *const _ - as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_misspelled_word) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_dictionary_suggestions - as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_dictionary_suggestions) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_editable as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(is_editable) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_spell_check_enabled - as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(is_spell_check_enabled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).get_edit_state_flags as *const _ - as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(get_edit_state_flags) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_custom_menu as *const _ - as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(is_custom_menu) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_context_menu_params_t>())).is_pepper_menu as *const _ - as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_context_menu_params_t), - "::", - stringify!(is_pepper_menu) - ) - ); -} -#[doc = ""] -pub type cef_context_menu_params_t = _cef_context_menu_params_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_file_dialog_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_file_dialog_callback_t, - selected_accept_filter: ::std::os::raw::c_int, - file_paths: cef_string_list_t, - ), - >, - #[doc = ""] - pub cancel: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_file_dialog_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_file_dialog_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_file_dialog_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_file_dialog_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_file_dialog_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_file_dialog_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_file_dialog_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_file_dialog_callback_t>())).cancel as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_file_dialog_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_file_dialog_callback_t = _cef_file_dialog_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_dialog_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_file_dialog: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_dialog_handler_t, - browser: *mut _cef_browser_t, - mode: cef_file_dialog_mode_t::Type, - title: *const cef_string_t, - default_file_path: *const cef_string_t, - accept_filters: cef_string_list_t, - selected_accept_filter: ::std::os::raw::c_int, - callback: *mut _cef_file_dialog_callback_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_dialog_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_dialog_handler_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_dialog_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_dialog_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_dialog_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_dialog_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_dialog_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_dialog_handler_t>())).on_file_dialog as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_dialog_handler_t), - "::", - stringify!(on_file_dialog) - ) - ); -} -#[doc = ""] -pub type cef_dialog_handler_t = _cef_dialog_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_display_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_address_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - url: *const cef_string_t, - ), - >, - #[doc = ""] - pub on_title_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - title: *const cef_string_t, - ), - >, - #[doc = ""] - pub on_favicon_urlchange: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - icon_urls: cef_string_list_t, - ), - >, - #[doc = ""] - pub on_fullscreen_mode_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - fullscreen: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_tooltip: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - text: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_status_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - value: *const cef_string_t, - ), - >, - #[doc = ""] - pub on_console_message: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - level: cef_log_severity_t::Type, - message: *const cef_string_t, - source: *const cef_string_t, - line: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_auto_resize: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - new_size: *const cef_size_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_loading_progress_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - progress: f64, - ), - >, - #[doc = ""] - pub on_cursor_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_display_handler_t, - browser: *mut _cef_browser_t, - cursor: HCURSOR, - type_: cef_cursor_type_t::Type, - custom_cursor_info: *const _cef_cursor_info_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_display_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_display_handler_t>(), - 60usize, - concat!("Size of: ", stringify!(_cef_display_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_display_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_display_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_display_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_address_change as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_address_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_title_change as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_title_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_favicon_urlchange as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_favicon_urlchange) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_fullscreen_mode_change as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_fullscreen_mode_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_tooltip as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_tooltip) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_status_message as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_status_message) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_console_message as *const _ - as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_console_message) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_auto_resize as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_auto_resize) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_loading_progress_change - as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_loading_progress_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_display_handler_t>())).on_cursor_change as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_display_handler_t), - "::", - stringify!(on_cursor_change) - ) - ); -} -#[doc = ""] -pub type cef_display_handler_t = _cef_display_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_download_item_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_in_progress: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_complete: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_canceled: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_current_speed: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> int64, - >, - #[doc = ""] - pub get_percent_complete: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_total_bytes: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> int64, - >, - #[doc = ""] - pub get_received_bytes: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> int64, - >, - #[doc = ""] - pub get_start_time: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_time_t, - >, - #[doc = ""] - pub get_end_time: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_time_t, - >, - #[doc = ""] - pub get_full_path: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_id: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> uint32, - >, - #[doc = ""] - pub get_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_original_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_suggested_file_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_content_disposition: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_mime_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_t) -> cef_string_userfree_t, - >, -} -#[test] -fn bindgen_test_layout__cef_download_item_t() { - assert_eq!( - ::std::mem::size_of::<_cef_download_item_t>(), - 88usize, - concat!("Size of: ", stringify!(_cef_download_item_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_download_item_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_download_item_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).is_in_progress as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(is_in_progress) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).is_complete as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(is_complete) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).is_canceled as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(is_canceled) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_current_speed as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_current_speed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_percent_complete as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_percent_complete) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_total_bytes as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_total_bytes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_received_bytes as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_received_bytes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_start_time as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_start_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_end_time as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_end_time) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_full_path as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_full_path) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).get_id as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_id) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_download_item_t>())).get_url as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_original_url as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_original_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_suggested_file_name as *const _ - as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_suggested_file_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_content_disposition as *const _ - as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_content_disposition) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_t>())).get_mime_type as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_t), - "::", - stringify!(get_mime_type) - ) - ); -} -#[doc = ""] -pub type cef_download_item_t = _cef_download_item_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_before_download_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_before_download_callback_t, - download_path: *const cef_string_t, - show_dialog: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_before_download_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_before_download_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_before_download_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_before_download_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_before_download_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_before_download_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_before_download_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_before_download_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_before_download_callback_t), - "::", - stringify!(cont) - ) - ); -} -#[doc = ""] -pub type cef_before_download_callback_t = _cef_before_download_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_download_item_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cancel: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_callback_t), - >, - #[doc = ""] - pub pause: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_callback_t), - >, - #[doc = ""] - pub resume: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_download_item_callback_t), - >, -} -#[test] -fn bindgen_test_layout__cef_download_item_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_download_item_callback_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_download_item_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_download_item_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_download_item_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_callback_t>())).cancel as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_callback_t), - "::", - stringify!(cancel) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_callback_t>())).pause as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_callback_t), - "::", - stringify!(pause) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_item_callback_t>())).resume as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_item_callback_t), - "::", - stringify!(resume) - ) - ); -} -#[doc = ""] -pub type cef_download_item_callback_t = _cef_download_item_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_download_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_before_download: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_download_handler_t, - browser: *mut _cef_browser_t, - download_item: *mut _cef_download_item_t, - suggested_name: *const cef_string_t, - callback: *mut _cef_before_download_callback_t, - ), - >, - #[doc = ""] - pub on_download_updated: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_download_handler_t, - browser: *mut _cef_browser_t, - download_item: *mut _cef_download_item_t, - callback: *mut _cef_download_item_callback_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_download_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_download_handler_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_download_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_download_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_download_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_download_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_handler_t>())).on_before_download as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_handler_t), - "::", - stringify!(on_before_download) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_download_handler_t>())).on_download_updated as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_download_handler_t), - "::", - stringify!(on_download_updated) - ) - ); -} -#[doc = ""] -pub type cef_download_handler_t = _cef_download_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_drag_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_drag_enter: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_drag_handler_t, - browser: *mut _cef_browser_t, - dragData: *mut _cef_drag_data_t, - mask: cef_drag_operations_mask_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_draggable_regions_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_drag_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - regionsCount: usize, - regions: *const cef_draggable_region_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_drag_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_drag_handler_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_drag_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_drag_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_drag_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_drag_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_handler_t>())).on_drag_enter as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_handler_t), - "::", - stringify!(on_drag_enter) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_drag_handler_t>())).on_draggable_regions_changed as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_drag_handler_t), - "::", - stringify!(on_draggable_regions_changed) - ) - ); -} -#[doc = ""] -pub type cef_drag_handler_t = _cef_drag_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_find_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_find_result: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_find_handler_t, - browser: *mut _cef_browser_t, - identifier: ::std::os::raw::c_int, - count: ::std::os::raw::c_int, - selectionRect: *const cef_rect_t, - activeMatchOrdinal: ::std::os::raw::c_int, - finalUpdate: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_find_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_find_handler_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_find_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_find_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_find_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_find_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_find_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_find_handler_t>())).on_find_result as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_find_handler_t), - "::", - stringify!(on_find_result) - ) - ); -} -#[doc = ""] -pub type cef_find_handler_t = _cef_find_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_focus_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_take_focus: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_focus_handler_t, - browser: *mut _cef_browser_t, - next: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_set_focus: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_focus_handler_t, - browser: *mut _cef_browser_t, - source: cef_focus_source_t::Type, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_got_focus: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_focus_handler_t, browser: *mut _cef_browser_t), - >, -} -#[test] -fn bindgen_test_layout__cef_focus_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_focus_handler_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_focus_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_focus_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_focus_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_focus_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_focus_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_take_focus as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_focus_handler_t), - "::", - stringify!(on_take_focus) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_set_focus as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_focus_handler_t), - "::", - stringify!(on_set_focus) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_focus_handler_t>())).on_got_focus as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_focus_handler_t), - "::", - stringify!(on_got_focus) - ) - ); -} -#[doc = ""] -pub type cef_focus_handler_t = _cef_focus_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_jsdialog_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_jsdialog_callback_t, - success: ::std::os::raw::c_int, - user_input: *const cef_string_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_jsdialog_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_jsdialog_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_jsdialog_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_jsdialog_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_jsdialog_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_jsdialog_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_jsdialog_callback_t>())).cont as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_callback_t), - "::", - stringify!(cont) - ) - ); -} -#[doc = ""] -pub type cef_jsdialog_callback_t = _cef_jsdialog_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_jsdialog_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_jsdialog: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_jsdialog_handler_t, - browser: *mut _cef_browser_t, - origin_url: *const cef_string_t, - dialog_type: cef_jsdialog_type_t::Type, - message_text: *const cef_string_t, - default_prompt_text: *const cef_string_t, - callback: *mut _cef_jsdialog_callback_t, - suppress_message: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_before_unload_dialog: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_jsdialog_handler_t, - browser: *mut _cef_browser_t, - message_text: *const cef_string_t, - is_reload: ::std::os::raw::c_int, - callback: *mut _cef_jsdialog_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_reset_dialog_state: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_jsdialog_handler_t, - browser: *mut _cef_browser_t, - ), - >, - #[doc = ""] - pub on_dialog_closed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_jsdialog_handler_t, - browser: *mut _cef_browser_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_jsdialog_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_jsdialog_handler_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_jsdialog_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_jsdialog_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_jsdialog_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_jsdialog as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_handler_t), - "::", - stringify!(on_jsdialog) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_before_unload_dialog as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_handler_t), - "::", - stringify!(on_before_unload_dialog) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_reset_dialog_state as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_handler_t), - "::", - stringify!(on_reset_dialog_state) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_jsdialog_handler_t>())).on_dialog_closed as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_jsdialog_handler_t), - "::", - stringify!(on_dialog_closed) - ) - ); -} -#[doc = ""] -pub type cef_jsdialog_handler_t = _cef_jsdialog_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_keyboard_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_pre_key_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_keyboard_handler_t, - browser: *mut _cef_browser_t, - event: *const _cef_key_event_t, - os_event: *mut MSG, - is_keyboard_shortcut: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_key_event: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_keyboard_handler_t, - browser: *mut _cef_browser_t, - event: *const _cef_key_event_t, - os_event: *mut MSG, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_keyboard_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_keyboard_handler_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_keyboard_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_keyboard_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_keyboard_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_keyboard_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).on_pre_key_event as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_keyboard_handler_t), - "::", - stringify!(on_pre_key_event) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_keyboard_handler_t>())).on_key_event as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_keyboard_handler_t), - "::", - stringify!(on_key_event) - ) - ); -} -#[doc = ""] -pub type cef_keyboard_handler_t = _cef_keyboard_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_life_span_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_before_popup: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_life_span_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - target_url: *const cef_string_t, - target_frame_name: *const cef_string_t, - target_disposition: cef_window_open_disposition_t::Type, - user_gesture: ::std::os::raw::c_int, - popupFeatures: *const _cef_popup_features_t, - windowInfo: *mut _cef_window_info_t, - client: *mut *mut _cef_client_t, - settings: *mut _cef_browser_settings_t, - extra_info: *mut *mut _cef_dictionary_value_t, - no_javascript_access: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_after_created: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_life_span_handler_t, - browser: *mut _cef_browser_t, - ), - >, - #[doc = ""] - pub do_close: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_life_span_handler_t, - browser: *mut _cef_browser_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_before_close: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_life_span_handler_t, - browser: *mut _cef_browser_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_life_span_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_life_span_handler_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_life_span_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_life_span_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_life_span_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_life_span_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_life_span_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_before_popup as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_life_span_handler_t), - "::", - stringify!(on_before_popup) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_after_created as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_life_span_handler_t), - "::", - stringify!(on_after_created) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_life_span_handler_t>())).do_close as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_life_span_handler_t), - "::", - stringify!(do_close) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_life_span_handler_t>())).on_before_close as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_life_span_handler_t), - "::", - stringify!(on_before_close) - ) - ); -} -#[doc = ""] -pub type cef_life_span_handler_t = _cef_life_span_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_load_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_loading_state_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_load_handler_t, - browser: *mut _cef_browser_t, - isLoading: ::std::os::raw::c_int, - canGoBack: ::std::os::raw::c_int, - canGoForward: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_load_start: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_load_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - transition_type: cef_transition_type_t::Type, - ), - >, - #[doc = ""] - pub on_load_end: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_load_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - httpStatusCode: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_load_error: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_load_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - errorCode: cef_errorcode_t::Type, - errorText: *const cef_string_t, - failedUrl: *const cef_string_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_load_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_load_handler_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_load_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_load_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_load_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_load_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_load_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_load_handler_t>())).on_loading_state_change as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_load_handler_t), - "::", - stringify!(on_loading_state_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_start as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_load_handler_t), - "::", - stringify!(on_load_start) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_end as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_load_handler_t), - "::", - stringify!(on_load_end) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_load_handler_t>())).on_load_error as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_load_handler_t), - "::", - stringify!(on_load_error) - ) - ); -} -#[doc = ""] -pub type cef_load_handler_t = _cef_load_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_accessibility_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_accessibility_tree_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_accessibility_handler_t, - value: *mut _cef_value_t, - ), - >, - #[doc = ""] - pub on_accessibility_location_change: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_accessibility_handler_t, - value: *mut _cef_value_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_accessibility_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_accessibility_handler_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_accessibility_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_accessibility_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_accessibility_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_accessibility_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_accessibility_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_accessibility_handler_t>())).on_accessibility_tree_change - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_accessibility_handler_t), - "::", - stringify!(on_accessibility_tree_change) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_accessibility_handler_t>())) - .on_accessibility_location_change as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_accessibility_handler_t), - "::", - stringify!(on_accessibility_location_change) - ) - ); -} -#[doc = ""] -pub type cef_accessibility_handler_t = _cef_accessibility_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_render_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_accessibility_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - ) -> *mut _cef_accessibility_handler_t, - >, - #[doc = ""] - pub get_root_screen_rect: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - rect: *mut cef_rect_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_view_rect: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - rect: *mut cef_rect_t, - ), - >, - #[doc = ""] - pub get_screen_point: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - viewX: ::std::os::raw::c_int, - viewY: ::std::os::raw::c_int, - screenX: *mut ::std::os::raw::c_int, - screenY: *mut ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_screen_info: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - screen_info: *mut _cef_screen_info_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_popup_show: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - show: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_popup_size: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - rect: *const cef_rect_t, - ), - >, - #[doc = ""] - pub on_paint: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - type_: cef_paint_element_type_t::Type, - dirtyRectsCount: usize, - dirtyRects: *const cef_rect_t, - buffer: *const ::std::os::raw::c_void, - width: ::std::os::raw::c_int, - height: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_accelerated_paint: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - type_: cef_paint_element_type_t::Type, - dirtyRectsCount: usize, - dirtyRects: *const cef_rect_t, - shared_handle: *mut ::std::os::raw::c_void, - ), - >, - #[doc = ""] - pub start_dragging: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - drag_data: *mut _cef_drag_data_t, - allowed_ops: cef_drag_operations_mask_t, - x: ::std::os::raw::c_int, - y: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub update_drag_cursor: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - operation: cef_drag_operations_mask_t, - ), - >, - #[doc = ""] - pub on_scroll_offset_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - x: f64, - y: f64, - ), - >, - #[doc = ""] - pub on_ime_composition_range_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - selected_range: *const cef_range_t, - character_boundsCount: usize, - character_bounds: *const cef_rect_t, - ), - >, - #[doc = ""] - pub on_text_selection_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - selected_text: *const cef_string_t, - selected_range: *const cef_range_t, - ), - >, - #[doc = ""] - pub on_virtual_keyboard_requested: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_handler_t, - browser: *mut _cef_browser_t, - input_mode: cef_text_input_mode_t::Type, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_render_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_render_handler_t>(), - 80usize, - concat!("Size of: ", stringify!(_cef_render_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_render_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_render_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_render_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).get_accessibility_handler as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(get_accessibility_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).get_root_screen_rect as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(get_root_screen_rect) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).get_view_rect as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(get_view_rect) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).get_screen_point as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(get_screen_point) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).get_screen_info as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(get_screen_info) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_popup_show as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_popup_show) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_popup_size as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_popup_size) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_render_handler_t>())).on_paint as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_paint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_accelerated_paint as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_accelerated_paint) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).start_dragging as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(start_dragging) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).update_drag_cursor as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(update_drag_cursor) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_scroll_offset_changed as *const _ - as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_scroll_offset_changed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_ime_composition_range_changed - as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_ime_composition_range_changed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_text_selection_changed as *const _ - as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_text_selection_changed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_handler_t>())).on_virtual_keyboard_requested - as *const _ as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_handler_t), - "::", - stringify!(on_virtual_keyboard_requested) - ) - ); -} -#[doc = ""] -pub type cef_render_handler_t = _cef_render_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_auth_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_auth_callback_t, - username: *const cef_string_t, - password: *const cef_string_t, - ), - >, - #[doc = ""] - pub cancel: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_auth_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_auth_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_auth_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_auth_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_auth_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_auth_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).cont as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_auth_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_auth_callback_t>())).cancel as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_auth_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_auth_callback_t = _cef_auth_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_request_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_callback_t, - allow: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub cancel: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_request_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_request_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_request_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_request_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_request_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).cont as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_callback_t>())).cancel as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_request_callback_t = _cef_request_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_response_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_error: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> cef_errorcode_t::Type, - >, - #[doc = ""] - pub set_error: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, error: cef_errorcode_t::Type), - >, - #[doc = ""] - pub get_status: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_status: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, status: ::std::os::raw::c_int), - >, - #[doc = ""] - pub get_status_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_status_text: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, statusText: *const cef_string_t), - >, - #[doc = ""] - pub get_mime_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_mime_type: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, mimeType: *const cef_string_t), - >, - #[doc = ""] - pub get_charset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_charset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, charset: *const cef_string_t), - >, - #[doc = ""] - pub get_header_by_name: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_response_t, - name: *const cef_string_t, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_header_by_name: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_response_t, - name: *const cef_string_t, - value: *const cef_string_t, - overwrite: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub get_header_map: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t), - >, - #[doc = ""] - pub set_header_map: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, headerMap: cef_string_multimap_t), - >, - #[doc = ""] - pub get_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_t, url: *const cef_string_t), - >, -} -#[test] -fn bindgen_test_layout__cef_response_t() { - assert_eq!( - ::std::mem::size_of::<_cef_response_t>(), - 88usize, - concat!("Size of: ", stringify!(_cef_response_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_response_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_response_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).is_read_only as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_error as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_error) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_error as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_error) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_status as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_status) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_status as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_status) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_status_text as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_status_text) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_status_text as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_status_text) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_mime_type as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_mime_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_mime_type as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_mime_type) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_charset as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_charset) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_charset as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_charset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_response_t>())).get_header_by_name as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_header_by_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_response_t>())).set_header_by_name as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_header_by_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_header_map as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_header_map) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_header_map as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_header_map) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).get_url as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(get_url) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_t>())).set_url as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_t), - "::", - stringify!(set_url) - ) - ); -} -#[doc = ""] -pub type cef_response_t = _cef_response_t; -extern "C" { - #[doc = ""] - pub fn cef_response_create() -> *mut cef_response_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resource_skip_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_resource_skip_callback_t, bytes_skipped: int64), - >, -} -#[test] -fn bindgen_test_layout__cef_resource_skip_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resource_skip_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_resource_skip_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resource_skip_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resource_skip_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_skip_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_skip_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_skip_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_skip_callback_t), - "::", - stringify!(cont) - ) - ); -} -#[doc = ""] -pub type cef_resource_skip_callback_t = _cef_resource_skip_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resource_read_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_read_callback_t, - bytes_read: ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_resource_read_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resource_read_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_resource_read_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resource_read_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resource_read_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_read_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_read_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_read_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_read_callback_t), - "::", - stringify!(cont) - ) - ); -} -#[doc = ""] -pub type cef_resource_read_callback_t = _cef_resource_read_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resource_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub open: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - request: *mut _cef_request_t, - handle_request: *mut ::std::os::raw::c_int, - callback: *mut _cef_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub process_request: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - request: *mut _cef_request_t, - callback: *mut _cef_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_response_headers: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - response: *mut _cef_response_t, - response_length: *mut int64, - redirectUrl: *mut cef_string_t, - ), - >, - #[doc = ""] - pub skip: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - bytes_to_skip: int64, - bytes_skipped: *mut int64, - callback: *mut _cef_resource_skip_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub read: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - data_out: *mut ::std::os::raw::c_void, - bytes_to_read: ::std::os::raw::c_int, - bytes_read: *mut ::std::os::raw::c_int, - callback: *mut _cef_resource_read_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub read_response: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_handler_t, - data_out: *mut ::std::os::raw::c_void, - bytes_to_read: ::std::os::raw::c_int, - bytes_read: *mut ::std::os::raw::c_int, - callback: *mut _cef_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub cancel: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_resource_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resource_handler_t>(), - 48usize, - concat!("Size of: ", stringify!(_cef_resource_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resource_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resource_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).open as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(open) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_handler_t>())).process_request as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(process_request) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_handler_t>())).get_response_headers as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(get_response_headers) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).skip as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(skip) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).read as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(read) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_handler_t>())).read_response as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(read_response) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_resource_handler_t>())).cancel as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_handler_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_resource_handler_t = _cef_resource_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_response_filter_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub init_filter: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_response_filter_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub filter: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_response_filter_t, - data_in: *mut ::std::os::raw::c_void, - data_in_size: usize, - data_in_read: *mut usize, - data_out: *mut ::std::os::raw::c_void, - data_out_size: usize, - data_out_written: *mut usize, - ) -> cef_response_filter_status_t::Type, - >, -} -#[test] -fn bindgen_test_layout__cef_response_filter_t() { - assert_eq!( - ::std::mem::size_of::<_cef_response_filter_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_response_filter_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_response_filter_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_response_filter_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_filter_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_filter_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_response_filter_t>())).init_filter as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_filter_t), - "::", - stringify!(init_filter) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_response_filter_t>())).filter as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_response_filter_t), - "::", - stringify!(filter) - ) - ); -} -#[doc = ""] -pub type cef_response_filter_t = _cef_response_filter_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resource_request_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_cookie_access_filter: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - ) -> *mut _cef_cookie_access_filter_t, - >, - #[doc = ""] - pub on_before_resource_load: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - callback: *mut _cef_request_callback_t, - ) -> cef_return_value_t::Type, - >, - #[doc = ""] - pub get_resource_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - ) -> *mut _cef_resource_handler_t, - >, - #[doc = ""] - pub on_resource_redirect: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - response: *mut _cef_response_t, - new_url: *mut cef_string_t, - ), - >, - #[doc = ""] - pub on_resource_response: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - response: *mut _cef_response_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_resource_response_filter: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - response: *mut _cef_response_t, - ) -> *mut _cef_response_filter_t, - >, - #[doc = ""] - pub on_resource_load_complete: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - response: *mut _cef_response_t, - status: cef_urlrequest_status_t::Type, - received_content_length: int64, - ), - >, - #[doc = ""] - pub on_protocol_execution: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - allow_os_execution: *mut ::std::os::raw::c_int, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_resource_request_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resource_request_handler_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_resource_request_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resource_request_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resource_request_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_cookie_access_filter - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(get_cookie_access_filter) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_before_resource_load - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(on_before_resource_load) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_resource_handler - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(get_resource_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_redirect - as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(on_resource_redirect) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_response - as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(on_resource_response) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).get_resource_response_filter - as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(get_resource_response_filter) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_resource_load_complete - as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(on_resource_load_complete) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_request_handler_t>())).on_protocol_execution - as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_request_handler_t), - "::", - stringify!(on_protocol_execution) - ) - ); -} -#[doc = ""] -pub type cef_resource_request_handler_t = _cef_resource_request_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_cookie_access_filter_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub can_send_cookie: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_access_filter_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - cookie: *const _cef_cookie_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub can_save_cookie: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_cookie_access_filter_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - response: *mut _cef_response_t, - cookie: *const _cef_cookie_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_cookie_access_filter_t() { - assert_eq!( - ::std::mem::size_of::<_cef_cookie_access_filter_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_cookie_access_filter_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_cookie_access_filter_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_cookie_access_filter_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_access_filter_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).can_send_cookie as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_access_filter_t), - "::", - stringify!(can_send_cookie) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_cookie_access_filter_t>())).can_save_cookie as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_cookie_access_filter_t), - "::", - stringify!(can_save_cookie) - ) - ); -} -#[doc = ""] -pub type cef_cookie_access_filter_t = _cef_cookie_access_filter_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_sslinfo_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_cert_status: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslinfo_t) -> cef_cert_status_t::Type, - >, - #[doc = ""] - pub get_x509certificate: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_sslinfo_t) -> *mut _cef_x509certificate_t, - >, -} -#[test] -fn bindgen_test_layout__cef_sslinfo_t() { - assert_eq!( - ::std::mem::size_of::<_cef_sslinfo_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_sslinfo_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_sslinfo_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_sslinfo_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_sslinfo_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslinfo_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_sslinfo_t>())).get_cert_status as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslinfo_t), - "::", - stringify!(get_cert_status) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_sslinfo_t>())).get_x509certificate as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_sslinfo_t), - "::", - stringify!(get_x509certificate) - ) - ); -} -#[doc = ""] -pub type cef_sslinfo_t = _cef_sslinfo_t; -extern "C" { - #[doc = ""] - pub fn cef_is_cert_status_error(status: cef_cert_status_t::Type) -> ::std::os::raw::c_int; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_select_client_certificate_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub select: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_select_client_certificate_callback_t, - cert: *mut _cef_x509certificate_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_select_client_certificate_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_select_client_certificate_callback_t>(), - 24usize, - concat!( - "Size of: ", - stringify!(_cef_select_client_certificate_callback_t) - ) - ); - assert_eq!( - ::std::mem::align_of::<_cef_select_client_certificate_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_select_client_certificate_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_select_client_certificate_callback_t>())).base as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_select_client_certificate_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_select_client_certificate_callback_t>())).select as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_select_client_certificate_callback_t), - "::", - stringify!(select) - ) - ); -} -#[doc = ""] -pub type cef_select_client_certificate_callback_t = _cef_select_client_certificate_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_request_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_before_browse: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - user_gesture: ::std::os::raw::c_int, - is_redirect: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_open_urlfrom_tab: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - target_url: *const cef_string_t, - target_disposition: cef_window_open_disposition_t::Type, - user_gesture: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_resource_request_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - request: *mut _cef_request_t, - is_navigation: ::std::os::raw::c_int, - is_download: ::std::os::raw::c_int, - request_initiator: *const cef_string_t, - disable_default_handling: *mut ::std::os::raw::c_int, - ) -> *mut _cef_resource_request_handler_t, - >, - #[doc = ""] - pub get_auth_credentials: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - origin_url: *const cef_string_t, - isProxy: ::std::os::raw::c_int, - host: *const cef_string_t, - port: ::std::os::raw::c_int, - realm: *const cef_string_t, - scheme: *const cef_string_t, - callback: *mut _cef_auth_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_quota_request: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - origin_url: *const cef_string_t, - new_size: int64, - callback: *mut _cef_request_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_certificate_error: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - cert_error: cef_errorcode_t::Type, - request_url: *const cef_string_t, - ssl_info: *mut _cef_sslinfo_t, - callback: *mut _cef_request_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_select_client_certificate: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - isProxy: ::std::os::raw::c_int, - host: *const cef_string_t, - port: ::std::os::raw::c_int, - certificatesCount: usize, - certificates: *const *mut _cef_x509certificate_t, - callback: *mut _cef_select_client_certificate_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_plugin_crashed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - plugin_path: *const cef_string_t, - ), - >, - #[doc = ""] - pub on_render_view_ready: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - ), - >, - #[doc = ""] - pub on_render_process_terminated: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - status: cef_termination_status_t::Type, - ), - >, - #[doc = ""] - pub on_document_available_in_main_frame: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_request_handler_t, - browser: *mut _cef_browser_t, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_request_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_request_handler_t>(), - 64usize, - concat!("Size of: ", stringify!(_cef_request_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_request_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_request_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_request_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_before_browse as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_before_browse) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_open_urlfrom_tab as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_open_urlfrom_tab) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).get_resource_request_handler - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(get_resource_request_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).get_auth_credentials as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(get_auth_credentials) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_quota_request as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_quota_request) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_certificate_error as *const _ - as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_certificate_error) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_select_client_certificate - as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_select_client_certificate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_plugin_crashed as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_plugin_crashed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_render_view_ready as *const _ - as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_render_view_ready) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_render_process_terminated - as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_render_process_terminated) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_request_handler_t>())).on_document_available_in_main_frame - as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_request_handler_t), - "::", - stringify!(on_document_available_in_main_frame) - ) - ); -} -#[doc = ""] -pub type cef_request_handler_t = _cef_request_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_client_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_audio_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_audio_handler_t, - >, - #[doc = ""] - pub get_context_menu_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_context_menu_handler_t, - >, - #[doc = ""] - pub get_dialog_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_dialog_handler_t, - >, - #[doc = ""] - pub get_display_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_display_handler_t, - >, - #[doc = ""] - pub get_download_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_download_handler_t, - >, - #[doc = ""] - pub get_drag_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_drag_handler_t, - >, - #[doc = ""] - pub get_find_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_find_handler_t, - >, - #[doc = ""] - pub get_focus_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_focus_handler_t, - >, - #[doc = ""] - pub get_jsdialog_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_jsdialog_handler_t, - >, - #[doc = ""] - pub get_keyboard_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_keyboard_handler_t, - >, - #[doc = ""] - pub get_life_span_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_life_span_handler_t, - >, - #[doc = ""] - pub get_load_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_load_handler_t, - >, - #[doc = ""] - pub get_render_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_render_handler_t, - >, - #[doc = ""] - pub get_request_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_client_t) -> *mut _cef_request_handler_t, - >, - #[doc = ""] - pub on_process_message_received: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_client_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - source_process: cef_process_id_t::Type, - message: *mut _cef_process_message_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_client_t() { - assert_eq!( - ::std::mem::size_of::<_cef_client_t>(), - 80usize, - concat!("Size of: ", stringify!(_cef_client_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_client_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_client_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_audio_handler as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_audio_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_context_menu_handler as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_context_menu_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_dialog_handler as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_dialog_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_display_handler as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_display_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_download_handler as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_download_handler) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_drag_handler as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_drag_handler) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_find_handler as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_find_handler) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_focus_handler as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_focus_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_jsdialog_handler as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_jsdialog_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_keyboard_handler as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_keyboard_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_life_span_handler as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_life_span_handler) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_client_t>())).get_load_handler as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_load_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_render_handler as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_render_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).get_request_handler as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(get_request_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_client_t>())).on_process_message_received as *const _ - as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_client_t), - "::", - stringify!(on_process_message_received) - ) - ); -} -#[doc = ""] -pub type cef_client_t = _cef_client_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_command_line_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub copy: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> *mut _cef_command_line_t, - >, - #[doc = ""] - pub init_from_argv: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_command_line_t, - argc: ::std::os::raw::c_int, - argv: *const *const ::std::os::raw::c_char, - ), - >, - #[doc = ""] - pub init_from_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_command_line_t, - command_line: *const cef_string_t, - ), - >, - #[doc = ""] - pub reset: ::std::option::Option, - #[doc = ""] - pub get_argv: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, argv: cef_string_list_t), - >, - #[doc = ""] - pub get_command_line_string: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_program: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_program: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, program: *const cef_string_t), - >, - #[doc = ""] - pub has_switches: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_switch: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_command_line_t, - name: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_switch_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_command_line_t, - name: *const cef_string_t, - ) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_switches: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, switches: cef_string_map_t), - >, - #[doc = ""] - pub append_switch: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, name: *const cef_string_t), - >, - #[doc = ""] - pub append_switch_with_value: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_command_line_t, - name: *const cef_string_t, - value: *const cef_string_t, - ), - >, - #[doc = ""] - pub has_arguments: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_arguments: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, arguments: cef_string_list_t), - >, - #[doc = ""] - pub append_argument: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, argument: *const cef_string_t), - >, - #[doc = ""] - pub prepend_wrapper: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_command_line_t, wrapper: *const cef_string_t), - >, -} -#[test] -fn bindgen_test_layout__cef_command_line_t() { - assert_eq!( - ::std::mem::size_of::<_cef_command_line_t>(), - 100usize, - concat!("Size of: ", stringify!(_cef_command_line_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_command_line_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_command_line_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).is_read_only as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).copy as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(copy) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).init_from_argv as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(init_from_argv) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).init_from_string as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(init_from_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).reset as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(reset) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).get_argv as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_argv) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).get_command_line_string as *const _ - as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_command_line_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).get_program as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_program) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).set_program as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(set_program) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).has_switches as *const _ as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(has_switches) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_command_line_t>())).has_switch as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(has_switch) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).get_switch_value as *const _ as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_switch_value) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).get_switches as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_switches) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).append_switch as *const _ as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(append_switch) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).append_switch_with_value as *const _ - as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(append_switch_with_value) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).has_arguments as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(has_arguments) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).get_arguments as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(get_arguments) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).append_argument as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(append_argument) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_command_line_t>())).prepend_wrapper as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_command_line_t), - "::", - stringify!(prepend_wrapper) - ) - ); -} -#[doc = ""] -pub type cef_command_line_t = _cef_command_line_t; -extern "C" { - #[doc = ""] - pub fn cef_command_line_create() -> *mut cef_command_line_t; -} -extern "C" { - #[doc = ""] - pub fn cef_command_line_get_global() -> *mut cef_command_line_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_print_settings_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_read_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_orientation: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - landscape: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub is_landscape: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_printer_printable_area: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - physical_size_device_units: *const cef_size_t, - printable_area_device_units: *const cef_rect_t, - landscape_needs_flip: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub set_device_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t, name: *const cef_string_t), - >, - #[doc = ""] - pub get_device_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub set_dpi: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t, dpi: ::std::os::raw::c_int), - >, - #[doc = ""] - pub get_dpi: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_page_ranges: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - rangesCount: usize, - ranges: *const cef_range_t, - ), - >, - #[doc = ""] - pub get_page_ranges_count: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> usize, - >, - #[doc = ""] - pub get_page_ranges: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - rangesCount: *mut usize, - ranges: *mut cef_range_t, - ), - >, - #[doc = ""] - pub set_selection_only: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - selection_only: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub is_selection_only: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_collate: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - collate: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub will_collate: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_color_model: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - model: cef_color_model_t::Type, - ), - >, - #[doc = ""] - pub get_color_model: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> cef_color_model_t::Type, - >, - #[doc = ""] - pub set_copies: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - copies: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub get_copies: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_duplex_mode: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_settings_t, - mode: cef_duplex_mode_t::Type, - ), - >, - #[doc = ""] - pub get_duplex_mode: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_settings_t) -> cef_duplex_mode_t::Type, - >, -} -#[test] -fn bindgen_test_layout__cef_print_settings_t() { - assert_eq!( - ::std::mem::size_of::<_cef_print_settings_t>(), - 108usize, - concat!("Size of: ", stringify!(_cef_print_settings_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_print_settings_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_print_settings_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).is_read_only as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(is_read_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_orientation as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_orientation) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).is_landscape as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(is_landscape) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_printer_printable_area as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_printer_printable_area) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_device_name as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_device_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_device_name as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_device_name) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).set_dpi as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_dpi) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_settings_t>())).get_dpi as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_dpi) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_page_ranges as *const _ as usize - }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_page_ranges) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_page_ranges_count as *const _ - as usize - }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_page_ranges_count) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_page_ranges as *const _ as usize - }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_page_ranges) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_selection_only as *const _ - as usize - }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_selection_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).is_selection_only as *const _ as usize - }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(is_selection_only) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_collate as *const _ as usize - }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_collate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).will_collate as *const _ as usize - }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(will_collate) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_color_model as *const _ as usize - }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_color_model) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_color_model as *const _ as usize - }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_color_model) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_copies as *const _ as usize - }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_copies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_copies as *const _ as usize - }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_copies) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).set_duplex_mode as *const _ as usize - }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(set_duplex_mode) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_settings_t>())).get_duplex_mode as *const _ as usize - }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_settings_t), - "::", - stringify!(get_duplex_mode) - ) - ); -} -#[doc = ""] -pub type cef_print_settings_t = _cef_print_settings_t; -extern "C" { - #[doc = ""] - pub fn cef_print_settings_create() -> *mut cef_print_settings_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_print_dialog_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_dialog_callback_t, - settings: *mut _cef_print_settings_t, - ), - >, - #[doc = ""] - pub cancel: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_print_dialog_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_print_dialog_callback_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_print_dialog_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_print_dialog_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_print_dialog_callback_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_dialog_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).cont as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_dialog_callback_t), - "::", - stringify!(cont) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_dialog_callback_t>())).cancel as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_dialog_callback_t), - "::", - stringify!(cancel) - ) - ); -} -#[doc = ""] -pub type cef_print_dialog_callback_t = _cef_print_dialog_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_print_job_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub cont: - ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_print_job_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_print_job_callback_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_print_job_callback_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_print_job_callback_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_print_job_callback_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_job_callback_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_job_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_job_callback_t>())).cont as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_job_callback_t), - "::", - stringify!(cont) - ) - ); -} -#[doc = ""] -pub type cef_print_job_callback_t = _cef_print_job_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_print_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_print_start: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t), - >, - #[doc = ""] - pub on_print_settings: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_handler_t, - browser: *mut _cef_browser_t, - settings: *mut _cef_print_settings_t, - get_defaults: ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_print_dialog: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_handler_t, - browser: *mut _cef_browser_t, - has_selection: ::std::os::raw::c_int, - callback: *mut _cef_print_dialog_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_print_job: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_handler_t, - browser: *mut _cef_browser_t, - document_name: *const cef_string_t, - pdf_file_path: *const cef_string_t, - callback: *mut _cef_print_job_callback_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub on_print_reset: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_print_handler_t, browser: *mut _cef_browser_t), - >, - #[doc = ""] - pub get_pdf_paper_size: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_print_handler_t, - device_units_per_inch: ::std::os::raw::c_int, - ) -> cef_size_t, - >, -} -#[test] -fn bindgen_test_layout__cef_print_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_print_handler_t>(), - 44usize, - concat!("Size of: ", stringify!(_cef_print_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_print_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_print_handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_print_handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_start as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(on_print_start) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_settings as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(on_print_settings) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_dialog as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(on_print_dialog) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_job as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(on_print_job) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).on_print_reset as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(on_print_reset) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_print_handler_t>())).get_pdf_paper_size as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_print_handler_t), - "::", - stringify!(get_pdf_paper_size) - ) - ); -} -#[doc = ""] -pub type cef_print_handler_t = _cef_print_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_browser_process_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_cookieable_schemes: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_process_handler_t, - schemes: cef_string_list_t, - include_defaults: *mut ::std::os::raw::c_int, - ), - >, - #[doc = ""] - pub on_context_initialized: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_process_handler_t), - >, - #[doc = ""] - pub on_before_child_process_launch: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_process_handler_t, - command_line: *mut _cef_command_line_t, - ), - >, - #[doc = ""] - pub get_print_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_process_handler_t, - ) -> *mut _cef_print_handler_t, - >, - #[doc = ""] - pub on_schedule_message_pump_work: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_browser_process_handler_t, delay_ms: int64), - >, - #[doc = ""] - pub get_default_client: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_browser_process_handler_t, - ) -> *mut _cef_client_t, - >, -} -#[test] -fn bindgen_test_layout__cef_browser_process_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_browser_process_handler_t>(), - 44usize, - concat!("Size of: ", stringify!(_cef_browser_process_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_browser_process_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_browser_process_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_cookieable_schemes - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(get_cookieable_schemes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).on_context_initialized - as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(on_context_initialized) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())) - .on_before_child_process_launch as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(on_before_child_process_launch) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_print_handler as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(get_print_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).on_schedule_message_pump_work - as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(on_schedule_message_pump_work) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_browser_process_handler_t>())).get_default_client - as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_browser_process_handler_t), - "::", - stringify!(get_default_client) - ) - ); -} -#[doc = ""] -pub type cef_browser_process_handler_t = _cef_browser_process_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_task_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub execute: ::std::option::Option, -} -#[test] -fn bindgen_test_layout__cef_task_t() { - assert_eq!( - ::std::mem::size_of::<_cef_task_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_task_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_task_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_task_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_task_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_task_t>())).execute as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_t), - "::", - stringify!(execute) - ) - ); -} -#[doc = ""] -pub type cef_task_t = _cef_task_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_task_runner_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_task_runner_t, - that: *mut _cef_task_runner_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub belongs_to_current_thread: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_task_runner_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub belongs_to_thread: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_task_runner_t, - threadId: cef_thread_id_t::Type, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub post_task: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_task_runner_t, - task: *mut _cef_task_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub post_delayed_task: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_task_runner_t, - task: *mut _cef_task_t, - delay_ms: int64, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_task_runner_t() { - assert_eq!( - ::std::mem::size_of::<_cef_task_runner_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_task_runner_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_task_runner_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_task_runner_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).is_same as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_task_runner_t>())).belongs_to_current_thread as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(belongs_to_current_thread) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_task_runner_t>())).belongs_to_thread as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(belongs_to_thread) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_task_runner_t>())).post_task as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(post_task) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_task_runner_t>())).post_delayed_task as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_task_runner_t), - "::", - stringify!(post_delayed_task) - ) - ); -} -#[doc = ""] -pub type cef_task_runner_t = _cef_task_runner_t; -extern "C" { - #[doc = ""] - pub fn cef_task_runner_get_for_current_thread() -> *mut cef_task_runner_t; -} -extern "C" { - #[doc = ""] - pub fn cef_task_runner_get_for_thread( - threadId: cef_thread_id_t::Type, - ) -> *mut cef_task_runner_t; -} -extern "C" { - #[doc = ""] - pub fn cef_currently_on(threadId: cef_thread_id_t::Type) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_post_task( - threadId: cef_thread_id_t::Type, task: *mut cef_task_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_post_delayed_task( - threadId: cef_thread_id_t::Type, task: *mut cef_task_t, delay_ms: int64, - ) -> ::std::os::raw::c_int; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8context_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_task_runner: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> *mut _cef_task_runner_t, - >, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_browser: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> *mut _cef_browser_t, - >, - #[doc = ""] - pub get_frame: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> *mut _cef_frame_t, - >, - #[doc = ""] - pub get_global: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> *mut _cef_v8value_t, - >, - #[doc = ""] - pub enter: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub exit: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8context_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8context_t, - that: *mut _cef_v8context_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub eval: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8context_t, - code: *const cef_string_t, - script_url: *const cef_string_t, - start_line: ::std::os::raw::c_int, - retval: *mut *mut _cef_v8value_t, - exception: *mut *mut _cef_v8exception_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8context_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8context_t>(), - 56usize, - concat!("Size of: ", stringify!(_cef_v8context_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8context_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8context_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8context_t>())).get_task_runner as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(get_task_runner) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).is_valid as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_browser as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(get_browser) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_frame as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(get_frame) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).get_global as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(get_global) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).enter as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(enter) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).exit as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(exit) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).is_same as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8context_t>())).eval as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8context_t), - "::", - stringify!(eval) - ) - ); -} -#[doc = ""] -pub type cef_v8context_t = _cef_v8context_t; -extern "C" { - #[doc = ""] - pub fn cef_v8context_get_current_context() -> *mut cef_v8context_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8context_get_entered_context() -> *mut cef_v8context_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8context_in_context() -> ::std::os::raw::c_int; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub execute: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8handler_t, - name: *const cef_string_t, - object: *mut _cef_v8value_t, - argumentsCount: usize, - arguments: *const *mut _cef_v8value_t, - retval: *mut *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8handler_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_v8handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8handler_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8handler_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8handler_t>())).execute as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8handler_t), - "::", - stringify!(execute) - ) - ); -} -#[doc = ""] -pub type cef_v8handler_t = _cef_v8handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8accessor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8accessor_t, - name: *const cef_string_t, - object: *mut _cef_v8value_t, - retval: *mut *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8accessor_t, - name: *const cef_string_t, - object: *mut _cef_v8value_t, - value: *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8accessor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8accessor_t>(), - 28usize, - concat!("Size of: ", stringify!(_cef_v8accessor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8accessor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8accessor_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8accessor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).get as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8accessor_t), - "::", - stringify!(get) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8accessor_t>())).set as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8accessor_t), - "::", - stringify!(set) - ) - ); -} -#[doc = ""] -pub type cef_v8accessor_t = _cef_v8accessor_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8interceptor_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_byname: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8interceptor_t, - name: *const cef_string_t, - object: *mut _cef_v8value_t, - retval: *mut *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8interceptor_t, - index: ::std::os::raw::c_int, - object: *mut _cef_v8value_t, - retval: *mut *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_byname: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8interceptor_t, - name: *const cef_string_t, - object: *mut _cef_v8value_t, - value: *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8interceptor_t, - index: ::std::os::raw::c_int, - object: *mut _cef_v8value_t, - value: *mut _cef_v8value_t, - exception: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8interceptor_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8interceptor_t>(), - 36usize, - concat!("Size of: ", stringify!(_cef_v8interceptor_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8interceptor_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8interceptor_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8interceptor_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).get_byname as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8interceptor_t), - "::", - stringify!(get_byname) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8interceptor_t>())).get_byindex as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8interceptor_t), - "::", - stringify!(get_byindex) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8interceptor_t>())).set_byname as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8interceptor_t), - "::", - stringify!(set_byname) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8interceptor_t>())).set_byindex as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8interceptor_t), - "::", - stringify!(set_byindex) - ) - ); -} -#[doc = ""] -pub type cef_v8interceptor_t = _cef_v8interceptor_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8exception_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_message: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_source_line: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_script_resource_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_line_number: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_start_position: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_end_position: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_start_column: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_end_column: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8exception_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8exception_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8exception_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_v8exception_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8exception_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8exception_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8exception_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8exception_t>())).get_message as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_message) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_source_line as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_source_line) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_script_resource_name as *const _ - as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_script_resource_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_line_number as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_line_number) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_start_position as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_start_position) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_end_position as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_end_position) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_start_column as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_start_column) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8exception_t>())).get_end_column as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8exception_t), - "::", - stringify!(get_end_column) - ) - ); -} -#[doc = ""] -pub type cef_v8exception_t = _cef_v8exception_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8array_buffer_release_callback_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub release_buffer: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8array_buffer_release_callback_t, - buffer: *mut ::std::os::raw::c_void, - ), - >, -} -#[test] -fn bindgen_test_layout__cef_v8array_buffer_release_callback_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8array_buffer_release_callback_t>(), - 24usize, - concat!( - "Size of: ", - stringify!(_cef_v8array_buffer_release_callback_t) - ) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8array_buffer_release_callback_t>(), - 4usize, - concat!( - "Alignment of ", - stringify!(_cef_v8array_buffer_release_callback_t) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8array_buffer_release_callback_t>())).base as *const _ - as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8array_buffer_release_callback_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8array_buffer_release_callback_t>())).release_buffer - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8array_buffer_release_callback_t), - "::", - stringify!(release_buffer) - ) - ); -} -#[doc = ""] -pub type cef_v8array_buffer_release_callback_t = _cef_v8array_buffer_release_callback_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8value_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_undefined: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_null: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_bool: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_int: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_uint: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_double: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_date: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_string: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_object: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_array: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_array_buffer: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_function: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_same: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - that: *mut _cef_v8value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_bool_value: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_int_value: - ::std::option::Option int32>, - #[doc = ""] - pub get_uint_value: - ::std::option::Option uint32>, - #[doc = ""] - pub get_double_value: - ::std::option::Option f64>, - #[doc = ""] - pub get_date_value: - ::std::option::Option cef_time_t>, - #[doc = ""] - pub get_string_value: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub is_user_created: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_exception: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_exception: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> *mut _cef_v8exception_t, - >, - #[doc = ""] - pub clear_exception: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub will_rethrow_exceptions: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_rethrow_exceptions: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - rethrow: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_value_bykey: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub has_value_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub delete_value_bykey: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - key: *const cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub delete_value_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - index: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_value_bykey: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - key: *const cef_string_t, - ) -> *mut _cef_v8value_t, - >, - #[doc = ""] - pub get_value_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - index: ::std::os::raw::c_int, - ) -> *mut _cef_v8value_t, - >, - #[doc = ""] - pub set_value_bykey: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - key: *const cef_string_t, - value: *mut _cef_v8value_t, - attribute: cef_v8_propertyattribute_t::Type, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_value_byindex: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - index: ::std::os::raw::c_int, - value: *mut _cef_v8value_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_value_byaccessor: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - key: *const cef_string_t, - settings: cef_v8_accesscontrol_t::Type, - attribute: cef_v8_propertyattribute_t::Type, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_keys: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - keys: cef_string_list_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub set_user_data: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - user_data: *mut _cef_base_ref_counted_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_user_data: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> *mut _cef_base_ref_counted_t, - >, - #[doc = ""] - pub get_externally_allocated_memory: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub adjust_externally_allocated_memory: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - change_in_bytes: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_array_length: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_array_buffer_release_callback: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - ) -> *mut _cef_v8array_buffer_release_callback_t, - >, - #[doc = ""] - pub neuter_array_buffer: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_function_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_function_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8value_t) -> *mut _cef_v8handler_t, - >, - #[doc = ""] - pub execute_function: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - object: *mut _cef_v8value_t, - argumentsCount: usize, - arguments: *const *mut _cef_v8value_t, - ) -> *mut _cef_v8value_t, - >, - #[doc = ""] - pub execute_function_with_context: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8value_t, - context: *mut _cef_v8context_t, - object: *mut _cef_v8value_t, - argumentsCount: usize, - arguments: *const *mut _cef_v8value_t, - ) -> *mut _cef_v8value_t, - >, -} -#[test] -fn bindgen_test_layout__cef_v8value_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8value_t>(), - 208usize, - concat!("Size of: ", stringify!(_cef_v8value_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8value_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8value_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_undefined as *const _ as usize }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_undefined) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_null as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_null) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_bool as *const _ as usize }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_bool) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_int as *const _ as usize }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_int) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_uint as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_uint) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_double as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_double) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_date as *const _ as usize }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_date) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_string as *const _ as usize }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_string) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_object as *const _ as usize }, - 56usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_object) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_array as *const _ as usize }, - 60usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_array) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_array_buffer as *const _ as usize }, - 64usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_array_buffer) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_function as *const _ as usize }, - 68usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_function) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_same as *const _ as usize }, - 72usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_same) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_bool_value as *const _ as usize }, - 76usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_bool_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_int_value as *const _ as usize }, - 80usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_int_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_uint_value as *const _ as usize }, - 84usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_uint_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_double_value as *const _ as usize }, - 88usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_double_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_date_value as *const _ as usize }, - 92usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_date_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_string_value as *const _ as usize }, - 96usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_string_value) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).is_user_created as *const _ as usize }, - 100usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(is_user_created) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).has_exception as *const _ as usize }, - 104usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(has_exception) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_exception as *const _ as usize }, - 108usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_exception) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).clear_exception as *const _ as usize }, - 112usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(clear_exception) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).will_rethrow_exceptions as *const _ as usize - }, - 116usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(will_rethrow_exceptions) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).set_rethrow_exceptions as *const _ as usize - }, - 120usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(set_rethrow_exceptions) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).has_value_bykey as *const _ as usize }, - 124usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(has_value_bykey) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).has_value_byindex as *const _ as usize - }, - 128usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(has_value_byindex) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).delete_value_bykey as *const _ as usize - }, - 132usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(delete_value_bykey) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).delete_value_byindex as *const _ as usize - }, - 136usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(delete_value_byindex) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_value_bykey as *const _ as usize }, - 140usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_value_bykey) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).get_value_byindex as *const _ as usize - }, - 144usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_value_byindex) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_bykey as *const _ as usize }, - 148usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(set_value_bykey) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_byindex as *const _ as usize - }, - 152usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(set_value_byindex) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).set_value_byaccessor as *const _ as usize - }, - 156usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(set_value_byaccessor) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_keys as *const _ as usize }, - 160usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_keys) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).set_user_data as *const _ as usize }, - 164usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(set_user_data) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_user_data as *const _ as usize }, - 168usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_user_data) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).get_externally_allocated_memory as *const _ - as usize - }, - 172usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_externally_allocated_memory) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).adjust_externally_allocated_memory - as *const _ as usize - }, - 176usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(adjust_externally_allocated_memory) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).get_array_length as *const _ as usize }, - 180usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_array_length) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).get_array_buffer_release_callback as *const _ - as usize - }, - 184usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_array_buffer_release_callback) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).neuter_array_buffer as *const _ as usize - }, - 188usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(neuter_array_buffer) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).get_function_name as *const _ as usize - }, - 192usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_function_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).get_function_handler as *const _ as usize - }, - 196usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(get_function_handler) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8value_t>())).execute_function as *const _ as usize }, - 200usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(execute_function) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8value_t>())).execute_function_with_context as *const _ - as usize - }, - 204usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8value_t), - "::", - stringify!(execute_function_with_context) - ) - ); -} -#[doc = ""] -pub type cef_v8value_t = _cef_v8value_t; -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_undefined() -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_null() -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_bool(value: ::std::os::raw::c_int) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_int(value: int32) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_uint(value: uint32) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_double(value: f64) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_date(date: *const cef_time_t) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_string(value: *const cef_string_t) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_object( - accessor: *mut cef_v8accessor_t, interceptor: *mut cef_v8interceptor_t, - ) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_array(length: ::std::os::raw::c_int) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_array_buffer( - buffer: *mut ::std::os::raw::c_void, length: usize, - release_callback: *mut cef_v8array_buffer_release_callback_t, - ) -> *mut cef_v8value_t; -} -extern "C" { - #[doc = ""] - pub fn cef_v8value_create_function( - name: *const cef_string_t, handler: *mut cef_v8handler_t, - ) -> *mut cef_v8value_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8stack_trace_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_trace_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_frame_count: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_trace_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_frame: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_v8stack_trace_t, - index: ::std::os::raw::c_int, - ) -> *mut _cef_v8stack_frame_t, - >, -} -#[test] -fn bindgen_test_layout__cef_v8stack_trace_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8stack_trace_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_v8stack_trace_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8stack_trace_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8stack_trace_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_trace_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_trace_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).get_frame_count as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_trace_t), - "::", - stringify!(get_frame_count) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_trace_t>())).get_frame as *const _ as usize }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_trace_t), - "::", - stringify!(get_frame) - ) - ); -} -#[doc = ""] -pub type cef_v8stack_trace_t = _cef_v8stack_trace_t; -extern "C" { - #[doc = ""] - pub fn cef_v8stack_trace_get_current( - frame_limit: ::std::os::raw::c_int, - ) -> *mut cef_v8stack_trace_t; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_v8stack_frame_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub is_valid: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_script_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_script_name_or_source_url: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_function_name: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> cef_string_userfree_t, - >, - #[doc = ""] - pub get_line_number: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_column: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_eval: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub is_constructor: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_v8stack_frame_t) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_v8stack_frame_t() { - assert_eq!( - ::std::mem::size_of::<_cef_v8stack_frame_t>(), - 52usize, - concat!("Size of: ", stringify!(_cef_v8stack_frame_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_v8stack_frame_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_v8stack_frame_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_valid as *const _ as usize }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(is_valid) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_script_name as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(get_script_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_script_name_or_source_url - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(get_script_name_or_source_url) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_function_name as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(get_function_name) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_line_number as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(get_line_number) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).get_column as *const _ as usize }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(get_column) - ) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_eval as *const _ as usize }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(is_eval) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_v8stack_frame_t>())).is_constructor as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_v8stack_frame_t), - "::", - stringify!(is_constructor) - ) - ); -} -#[doc = ""] -pub type cef_v8stack_frame_t = _cef_v8stack_frame_t; -extern "C" { - #[doc = ""] - pub fn cef_register_extension( - extension_name: *const cef_string_t, javascript_code: *const cef_string_t, - handler: *mut cef_v8handler_t, - ) -> ::std::os::raw::c_int; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_render_process_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_web_kit_initialized: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_render_process_handler_t), - >, - #[doc = ""] - pub on_browser_created: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - extra_info: *mut _cef_dictionary_value_t, - ), - >, - #[doc = ""] - pub on_browser_destroyed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - ), - >, - #[doc = ""] - pub get_load_handler: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - ) -> *mut _cef_load_handler_t, - >, - #[doc = ""] - pub on_context_created: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - context: *mut _cef_v8context_t, - ), - >, - #[doc = ""] - pub on_context_released: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - context: *mut _cef_v8context_t, - ), - >, - #[doc = ""] - pub on_uncaught_exception: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - context: *mut _cef_v8context_t, - exception: *mut _cef_v8exception_t, - stackTrace: *mut _cef_v8stack_trace_t, - ), - >, - #[doc = ""] - pub on_focused_node_changed: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - node: *mut _cef_domnode_t, - ), - >, - #[doc = ""] - pub on_process_message_received: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_render_process_handler_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - source_process: cef_process_id_t::Type, - message: *mut _cef_process_message_t, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_render_process_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_render_process_handler_t>(), - 56usize, - concat!("Size of: ", stringify!(_cef_render_process_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_render_process_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_render_process_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_web_kit_initialized - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_web_kit_initialized) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_browser_created as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_browser_created) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_browser_destroyed - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_browser_destroyed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).get_load_handler as *const _ - as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(get_load_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_context_created as *const _ - as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_context_created) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_context_released - as *const _ as usize - }, - 40usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_context_released) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_uncaught_exception - as *const _ as usize - }, - 44usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_uncaught_exception) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_focused_node_changed - as *const _ as usize - }, - 48usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_focused_node_changed) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_render_process_handler_t>())).on_process_message_received - as *const _ as usize - }, - 52usize, - concat!( - "Offset of field: ", - stringify!(_cef_render_process_handler_t), - "::", - stringify!(on_process_message_received) - ) - ); -} -#[doc = ""] -pub type cef_render_process_handler_t = _cef_render_process_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_resource_bundle_handler_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub get_localized_string: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_bundle_handler_t, - string_id: ::std::os::raw::c_int, - string: *mut cef_string_t, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_data_resource: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_bundle_handler_t, - resource_id: ::std::os::raw::c_int, - data: *mut *mut ::std::os::raw::c_void, - data_size: *mut usize, - ) -> ::std::os::raw::c_int, - >, - #[doc = ""] - pub get_data_resource_for_scale: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_resource_bundle_handler_t, - resource_id: ::std::os::raw::c_int, - scale_factor: cef_scale_factor_t::Type, - data: *mut *mut ::std::os::raw::c_void, - data_size: *mut usize, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_resource_bundle_handler_t() { - assert_eq!( - ::std::mem::size_of::<_cef_resource_bundle_handler_t>(), - 32usize, - concat!("Size of: ", stringify!(_cef_resource_bundle_handler_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_resource_bundle_handler_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_resource_bundle_handler_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_bundle_handler_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_localized_string - as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_bundle_handler_t), - "::", - stringify!(get_localized_string) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_data_resource as *const _ - as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_bundle_handler_t), - "::", - stringify!(get_data_resource) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_resource_bundle_handler_t>())).get_data_resource_for_scale - as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_resource_bundle_handler_t), - "::", - stringify!(get_data_resource_for_scale) - ) - ); -} -#[doc = ""] -pub type cef_resource_bundle_handler_t = _cef_resource_bundle_handler_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_scheme_registrar_t { - #[doc = ""] - pub base: cef_base_scoped_t, - #[doc = ""] - pub add_custom_scheme: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_scheme_registrar_t, - scheme_name: *const cef_string_t, - options: ::std::os::raw::c_int, - ) -> ::std::os::raw::c_int, - >, -} -#[test] -fn bindgen_test_layout__cef_scheme_registrar_t() { - assert_eq!( - ::std::mem::size_of::<_cef_scheme_registrar_t>(), - 12usize, - concat!("Size of: ", stringify!(_cef_scheme_registrar_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_scheme_registrar_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_scheme_registrar_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_scheme_registrar_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_scheme_registrar_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_scheme_registrar_t>())).add_custom_scheme as *const _ - as usize - }, - 8usize, - concat!( - "Offset of field: ", - stringify!(_cef_scheme_registrar_t), - "::", - stringify!(add_custom_scheme) - ) - ); -} -#[doc = ""] -pub type cef_scheme_registrar_t = _cef_scheme_registrar_t; -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_scheme_handler_factory_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub create: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_scheme_handler_factory_t, - browser: *mut _cef_browser_t, - frame: *mut _cef_frame_t, - scheme_name: *const cef_string_t, - request: *mut _cef_request_t, - ) -> *mut _cef_resource_handler_t, - >, -} -#[test] -fn bindgen_test_layout__cef_scheme_handler_factory_t() { - assert_eq!( - ::std::mem::size_of::<_cef_scheme_handler_factory_t>(), - 24usize, - concat!("Size of: ", stringify!(_cef_scheme_handler_factory_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_scheme_handler_factory_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_scheme_handler_factory_t)) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_scheme_handler_factory_t>())).base as *const _ as usize - }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_scheme_handler_factory_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_scheme_handler_factory_t>())).create as *const _ as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_scheme_handler_factory_t), - "::", - stringify!(create) - ) - ); -} -#[doc = ""] -pub type cef_scheme_handler_factory_t = _cef_scheme_handler_factory_t; -extern "C" { - #[doc = ""] - pub fn cef_register_scheme_handler_factory( - scheme_name: *const cef_string_t, domain_name: *const cef_string_t, - factory: *mut cef_scheme_handler_factory_t, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_clear_scheme_handler_factories() -> ::std::os::raw::c_int; -} -#[doc = ""] -#[repr(C)] -#[derive(Copy, Clone)] -pub struct _cef_app_t { - #[doc = ""] - pub base: cef_base_ref_counted_t, - #[doc = ""] - pub on_before_command_line_processing: ::std::option::Option< - unsafe extern "stdcall" fn( - self_: *mut _cef_app_t, - process_type: *const cef_string_t, - command_line: *mut _cef_command_line_t, - ), - >, - #[doc = ""] - pub on_register_custom_schemes: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_app_t, registrar: *mut _cef_scheme_registrar_t), - >, - #[doc = ""] - pub get_resource_bundle_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_app_t) -> *mut _cef_resource_bundle_handler_t, - >, - #[doc = ""] - pub get_browser_process_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_app_t) -> *mut _cef_browser_process_handler_t, - >, - #[doc = ""] - pub get_render_process_handler: ::std::option::Option< - unsafe extern "stdcall" fn(self_: *mut _cef_app_t) -> *mut _cef_render_process_handler_t, - >, -} -#[test] -fn bindgen_test_layout__cef_app_t() { - assert_eq!( - ::std::mem::size_of::<_cef_app_t>(), - 40usize, - concat!("Size of: ", stringify!(_cef_app_t)) - ); - assert_eq!( - ::std::mem::align_of::<_cef_app_t>(), - 4usize, - concat!("Alignment of ", stringify!(_cef_app_t)) - ); - assert_eq!( - unsafe { &(*(::std::ptr::null::<_cef_app_t>())).base as *const _ as usize }, - 0usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(base) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_app_t>())).on_before_command_line_processing as *const _ - as usize - }, - 20usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(on_before_command_line_processing) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_app_t>())).on_register_custom_schemes as *const _ as usize - }, - 24usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(on_register_custom_schemes) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_app_t>())).get_resource_bundle_handler as *const _ as usize - }, - 28usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(get_resource_bundle_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_app_t>())).get_browser_process_handler as *const _ as usize - }, - 32usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(get_browser_process_handler) - ) - ); - assert_eq!( - unsafe { - &(*(::std::ptr::null::<_cef_app_t>())).get_render_process_handler as *const _ as usize - }, - 36usize, - concat!( - "Offset of field: ", - stringify!(_cef_app_t), - "::", - stringify!(get_render_process_handler) - ) - ); -} -#[doc = ""] -pub type cef_app_t = _cef_app_t; -extern "C" { - #[doc = ""] - pub fn cef_execute_process( - args: *const _cef_main_args_t, application: *mut cef_app_t, - windows_sandbox_info: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_initialize( - args: *const _cef_main_args_t, settings: *const _cef_settings_t, - application: *mut cef_app_t, windows_sandbox_info: *mut ::std::os::raw::c_void, - ) -> ::std::os::raw::c_int; -} -extern "C" { - #[doc = ""] - pub fn cef_shutdown(); -} -extern "C" { - #[doc = ""] - pub fn cef_do_message_loop_work(); -} -extern "C" { - #[doc = ""] - pub fn cef_run_message_loop(); -} -extern "C" { - #[doc = ""] - pub fn cef_quit_message_loop(); -} -extern "C" { - #[doc = ""] - pub fn cef_set_osmodal_loop(osModalLoop: ::std::os::raw::c_int); -} -extern "C" { - #[doc = ""] - pub fn cef_enable_highdpi_support(); -} +include!("bindings.rs"); diff --git a/cef/Cargo.toml b/cef/Cargo.toml index 317bb97..2427c17 100644 --- a/cef/Cargo.toml +++ b/cef/Cargo.toml @@ -2,11 +2,12 @@ name = "cef" version = "0.1.0" authors = ["ZOTTCE "] -edition = "2018" +edition = "2024" +rust-version = "1.93" [dependencies] cef-sys = { path = "../cef-sys" } -widestring = "0.4.3" +widestring = "1.2.1" [dev-dependencies] testdrop = "0.1.2" diff --git a/cef/src/app.rs b/cef/src/app.rs index f9f65b2..8a9e573 100644 --- a/cef/src/app.rs +++ b/cef/src/app.rs @@ -1,25 +1,21 @@ -use crate::browser::Browser; use crate::handlers::browser_process::BrowserProcessHandler; use crate::handlers::render_process::RenderProcessHandler; -use crate::v8::V8Context; use crate::command_line::CommandLine; use crate::types::string::CefString; -use std::sync::Arc; - pub trait App { type RenderProcessHandler: RenderProcessHandler; type BrowserProcessHandler: BrowserProcessHandler; - fn render_process_handler(self: &Arc) -> Option> { + fn render_process_handler(&self) -> Option { None } - fn browser_process_handler(self: &Arc) -> Option> { + fn browser_process_handler(&self) -> Option { None } fn on_before_command_line_processing( - self: &Arc, process_type: CefString, command_line: CommandLine, + &self, _process_type: CefString, _command_line: CommandLine, ) { } } diff --git a/cef/src/browser.rs b/cef/src/browser.rs index c0ad0c0..814e124 100644 --- a/cef/src/browser.rs +++ b/cef/src/browser.rs @@ -4,14 +4,13 @@ use cef_sys::{ cef_window_info_t, }; +use crate::ProcessId; use crate::client::Client; use crate::handlers::render::PaintElement; use crate::process_message::ProcessMessage; use crate::ref_counted::RefGuard; use crate::types::string::CefString; use crate::v8::V8Context; -use crate::ProcessId; -use std::sync::Arc; pub struct Browser { inner: RefGuard, @@ -81,7 +80,7 @@ impl BrowserHost { } pub fn create_browser( - wnd_info: &cef_window_info_t, client: Option>, url: &CefString, + wnd_info: &cef_window_info_t, client: Option, url: &CefString, settings: &cef_browser_settings_t, ) -> i32 { let client_ptr = client @@ -268,6 +267,7 @@ impl Frame { } } +#[allow(dead_code)] #[derive(Clone)] pub struct ContextMenuParams { inner: RefGuard, diff --git a/cef/src/client.rs b/cef/src/client.rs index 385f44c..f831f2f 100644 --- a/cef/src/client.rs +++ b/cef/src/client.rs @@ -4,11 +4,9 @@ use crate::handlers::lifespan::LifespanHandler; use crate::handlers::load::LoadHandler; use crate::handlers::render::RenderHandler; +use crate::ProcessId; use crate::browser::{Browser, Frame}; use crate::process_message::ProcessMessage; -use crate::ProcessId; - -use std::sync::Arc; pub trait Client { type LifespanHandler: LifespanHandler; @@ -17,29 +15,28 @@ pub trait Client { type LoadHandler: LoadHandler; type AudioHandler: AudioHandler; - fn lifespan_handler(self: &Arc) -> Option> { + fn lifespan_handler(&self) -> Option { None } - fn render_handler(self: &Arc) -> Option> { + fn render_handler(&self) -> Option { None } - fn context_menu_handler(self: &Arc) -> Option> { + fn context_menu_handler(&self) -> Option { None } - fn load_handler(self: &Arc) -> Option> { + fn load_handler(&self) -> Option { None } - fn audio_handler(self: &Arc) -> Option> { + fn audio_handler(&self) -> Option { None } fn on_process_message( - self: &Arc, browser: Browser, frame: Frame, source: ProcessId, - message: ProcessMessage, + &self, _browser: Browser, _frame: Frame, _source: ProcessId, _message: ProcessMessage, ) -> bool { false } diff --git a/cef/src/handlers/audio.rs b/cef/src/handlers/audio.rs index 1182814..eb6798f 100644 --- a/cef/src/handlers/audio.rs +++ b/cef/src/handlers/audio.rs @@ -1,27 +1,25 @@ use crate::browser::Browser; use cef_sys::cef_audio_parameters_t; -use std::sync::Arc; pub trait AudioHandler { fn get_audio_parameters( - self: &Arc, browser: Browser, params: &mut cef_audio_parameters_t, + &self, _browser: Browser, _params: &mut cef_audio_parameters_t, ) -> bool { true } fn on_audio_stream_packet( - self: &Arc, browser: Browser, stream_id: i32, data: *mut *const f32, frames: i32, - pts: i64, + &self, _browser: Browser, _stream_id: i32, _data: *mut *const f32, _frames: i32, _pts: i64, ) { } fn on_audio_stream_started( - self: &Arc, browser: Browser, stream_id: i32, channels: i32, channel_layout: i32, - sample_rate: i32, frames_per_buffer: i32, + &self, _browser: Browser, _stream_id: i32, _channels: i32, _channel_layout: i32, + _sample_rate: i32, _frames_per_buffer: i32, ) { } - fn on_audio_stream_stopped(self: &Arc, browser: Browser, stream_id: i32) {} + fn on_audio_stream_stopped(&self, _browser: Browser, _stream_id: i32) {} - fn on_audio_stream_error(self: &Arc, browser: Browser, error: String) {} + fn on_audio_stream_error(&self, _browser: Browser, _error: String) {} } diff --git a/cef/src/handlers/browser_process.rs b/cef/src/handlers/browser_process.rs index 8d7bdb6..deb5995 100644 --- a/cef/src/handlers/browser_process.rs +++ b/cef/src/handlers/browser_process.rs @@ -1,5 +1,3 @@ -use std::sync::Arc; - pub trait BrowserProcessHandler { - fn on_context_initialized(self: &Arc) {} + fn on_context_initialized(&self) {} } diff --git a/cef/src/handlers/context_menu.rs b/cef/src/handlers/context_menu.rs index 1b13df0..5128327 100644 --- a/cef/src/handlers/context_menu.rs +++ b/cef/src/handlers/context_menu.rs @@ -1,9 +1,7 @@ use crate::browser::{Browser, ContextMenuParams, Frame, MenuModel}; -use std::sync::Arc; pub trait ContextMenuHandler { fn on_before_context_menu( - self: &Arc, browser: Browser, frame: Frame, params: ContextMenuParams, - model: MenuModel, + &self, browser: Browser, frame: Frame, params: ContextMenuParams, model: MenuModel, ); } diff --git a/cef/src/handlers/lifespan.rs b/cef/src/handlers/lifespan.rs index 28e837d..7d8a963 100644 --- a/cef/src/handlers/lifespan.rs +++ b/cef/src/handlers/lifespan.rs @@ -1,7 +1,6 @@ use crate::browser::Browser; -use std::sync::Arc; pub trait LifespanHandler { - fn on_after_created(self: &Arc, browser: Browser); - fn on_before_close(self: &Arc, browser: Browser); + fn on_after_created(&self, browser: Browser); + fn on_before_close(&self, browser: Browser); } diff --git a/cef/src/handlers/load.rs b/cef/src/handlers/load.rs index f736046..1fa05c2 100644 --- a/cef/src/handlers/load.rs +++ b/cef/src/handlers/load.rs @@ -1,12 +1,10 @@ use crate::browser::{Browser, Frame}; -use std::sync::Arc; pub trait LoadHandler { - fn on_load_end(self: &Arc, browser: Browser, frame: Frame, status_code: i32) {} + fn on_load_end(&self, _browser: Browser, _frame: Frame, _status_code: i32) {} fn on_loading_state_change( - self: &Arc, browser: Browser, is_loading: bool, can_go_back: bool, - can_go_forward: bool, + &self, _browser: Browser, _is_loading: bool, _can_go_back: bool, _can_go_forward: bool, ) { } } diff --git a/cef/src/handlers/render.rs b/cef/src/handlers/render.rs index cda6671..7fb3517 100644 --- a/cef/src/handlers/render.rs +++ b/cef/src/handlers/render.rs @@ -1,8 +1,6 @@ use crate::browser::Browser; use cef_sys::{cef_paint_element_type_t, cef_rect_t}; -use std::sync::Arc; - #[derive(Debug)] pub struct DirtyRects { pub count: usize, @@ -30,9 +28,9 @@ impl From for PaintElement { } } -impl Into for PaintElement { - fn into(self) -> cef_paint_element_type_t::Type { - match self { +impl From for cef_paint_element_type_t::Type { + fn from(value: PaintElement) -> cef_paint_element_type_t::Type { + match value { PaintElement::View => cef_paint_element_type_t::PET_VIEW, PaintElement::Popup => cef_paint_element_type_t::PET_POPUP, } @@ -40,12 +38,12 @@ impl Into for PaintElement { } pub trait RenderHandler { - fn view_rect(self: &Arc, browser: Browser, rect: &mut cef_rect_t); - fn on_popup_show(self: &Arc, browser: Browser, show: bool); - fn on_popup_size(self: &Arc, browser: Browser, rect: &cef_rect_t); + fn view_rect(&self, browser: Browser, rect: &mut cef_rect_t); + fn on_popup_show(&self, browser: Browser, show: bool); + fn on_popup_size(&self, browser: Browser, rect: &cef_rect_t); fn on_paint( - self: &Arc, browser: Browser, paint_type: PaintElement, dirty_rects: DirtyRects, - buffer: &[u8], width: usize, height: usize, + &self, browser: Browser, paint_type: PaintElement, dirty_rects: DirtyRects, buffer: &[u8], + width: usize, height: usize, ); } diff --git a/cef/src/handlers/render_process.rs b/cef/src/handlers/render_process.rs index 5f08b86..28769c1 100644 --- a/cef/src/handlers/render_process.rs +++ b/cef/src/handlers/render_process.rs @@ -1,17 +1,14 @@ +use crate::ProcessId; use crate::browser::{Browser, Frame}; use crate::process_message::ProcessMessage; use crate::v8::V8Context; -use crate::ProcessId; - -use std::sync::Arc; pub trait RenderProcessHandler { - fn on_context_created(self: &Arc, browser: Browser, frame: Frame, context: V8Context) {} - fn on_context_released(self: &Arc, browser: Browser, frame: Frame, context: V8Context) {} - fn on_webkit_initialized(self: &Arc) {} + fn on_context_created(&self, _browser: Browser, _frame: Frame, _context: V8Context) {} + fn on_context_released(&self, _browser: Browser, _frame: Frame, _context: V8Context) {} + fn on_webkit_initialized(&self) {} fn on_process_message( - self: &Arc, browser: Browser, frame: Frame, source: ProcessId, - message: ProcessMessage, + &self, _browser: Browser, _frame: Frame, _source: ProcessId, _message: ProcessMessage, ) -> bool { false } diff --git a/cef/src/handlers/v8handler.rs b/cef/src/handlers/v8handler.rs index 76e92f6..790e99f 100644 --- a/cef/src/handlers/v8handler.rs +++ b/cef/src/handlers/v8handler.rs @@ -1,7 +1,6 @@ use crate::types::string::CefString; use crate::v8::V8Value; -use std::sync::Arc; pub trait V8Handler { - fn execute(self: &Arc, name: CefString, args: Vec) -> bool; + fn execute(&self, name: CefString, args: Vec) -> bool; } diff --git a/cef/src/lib.rs b/cef/src/lib.rs index fd691b5..7c3d3e8 100644 --- a/cef/src/lib.rs +++ b/cef/src/lib.rs @@ -1,8 +1,4 @@ -#![feature(arbitrary_self_types)] -#![feature(core_intrinsics)] - use cef_sys::{cef_main_args_t, cef_settings_t}; -use std::sync::Arc; pub mod app; pub mod browser; @@ -20,7 +16,7 @@ mod rust_to_c; use crate::app::App; -pub fn execute_process(args: &cef_main_args_t, app: Option>) -> i32 { +pub fn execute_process(args: &cef_main_args_t, app: Option) -> i32 { let app_ptr = app .map(|app| self::rust_to_c::app::wrap(app)) .unwrap_or(std::ptr::null_mut()); @@ -29,7 +25,7 @@ pub fn execute_process(args: &cef_main_args_t, app: Option>) -> i } pub fn initialize( - args: Option<&cef_main_args_t>, settings: &cef_settings_t, app: Option>, + args: Option<&cef_main_args_t>, settings: &cef_settings_t, app: Option, ) -> i32 { let args = args .map(|args| args as *const _) @@ -73,9 +69,9 @@ pub enum ProcessId { Renderer, } -impl Into for ProcessId { - fn into(self) -> cef_sys::cef_process_id_t::Type { - match self { +impl From for cef_sys::cef_process_id_t::Type { + fn from(value: ProcessId) -> cef_sys::cef_process_id_t::Type { + match value { ProcessId::None => 0, ProcessId::Browser => 0, ProcessId::Renderer => 1, diff --git a/cef/src/process_message.rs b/cef/src/process_message.rs index de64050..05fa72d 100644 --- a/cef/src/process_message.rs +++ b/cef/src/process_message.rs @@ -29,8 +29,8 @@ impl ProcessMessage { self.inner .get_name .map(|name| unsafe { name(self.inner.get_mut()) }) - .map(|raw| CefString::from(raw)) - .unwrap_or_else(|| CefString::new_null()) + .map(CefString::from) + .unwrap_or_else(CefString::new_null) } pub fn is_valid(&self) -> bool { diff --git a/cef/src/ref_counted.rs b/cef/src/ref_counted.rs index fd2b1c3..1802af0 100644 --- a/cef/src/ref_counted.rs +++ b/cef/src/ref_counted.rs @@ -27,6 +27,7 @@ impl RefGuard { } } + #[allow(dead_code)] pub(crate) fn from_raw_add_ref(ptr: *mut T) -> RefGuard { let guard = RefGuard { object: ptr, @@ -45,6 +46,8 @@ impl RefGuard { ptr } + /// # Safety + /// Caller must ensure the pointer is valid and uniquely borrowed for mutation. pub unsafe fn get_mut(&self) -> *mut T { self.object } @@ -159,3 +162,125 @@ impl_rc!(cef_task_runner_t); impl_rc!(cef_context_menu_params_t); impl_rc!(cef_menu_model_t); impl_rc!(cef_command_line_t); + +#[cfg(test)] +mod tests { + use super::*; + use std::cell::Cell; + + struct TestState { + add_ref: Cell, + release: Cell, + freed: Cell, + } + + impl TestState { + fn new() -> Self { + TestState { + add_ref: Cell::new(0), + release: Cell::new(0), + freed: Cell::new(0), + } + } + } + + struct Dummy { + base: cef_base_ref_counted_t, + refct: Cell, + state: *const TestState, + } + + impl Dummy { + fn new(state: &TestState) -> *mut Dummy { + Box::into_raw(Box::new(Dummy { + base: unsafe { std::mem::zeroed() }, + refct: Cell::new(1), + state, + })) + } + } + + impl RefCounted for Dummy { + fn add_ref(&self) { + let state = unsafe { &*self.state }; + state.add_ref.set(state.add_ref.get() + 1); + self.refct.set(self.refct.get() + 1); + } + + fn has_one_ref(&self) -> bool { + self.refct.get() == 1 + } + + fn has_at_least_one_ref(&self) -> bool { + self.refct.get() > 0 + } + + fn release(&self) -> bool { + let state = unsafe { &*self.state }; + state.release.set(state.release.get() + 1); + let next = self.refct.get().saturating_sub(1); + self.refct.set(next); + if next == 0 { + state.freed.set(state.freed.get() + 1); + return true; + } + false + } + + fn as_base(&self) -> &cef_base_ref_counted_t { + &self.base + } + } + + #[test] + fn ref_guard_drop_releases_once() { + let state = TestState::new(); + let raw = Dummy::new(&state); + let guard = RefGuard::from_raw(raw); + drop(guard); + + assert_eq!(state.add_ref.get(), 0); + assert_eq!(state.release.get(), 1); + assert_eq!(state.freed.get(), 1); + unsafe { + drop(Box::from_raw(raw)); + } + } + + #[test] + fn ref_guard_clone_adds_ref_and_drops_once() { + let state = TestState::new(); + let raw = Dummy::new(&state); + let guard = RefGuard::from_raw(raw); + let clone = guard.clone(); + drop(guard); + drop(clone); + + assert_eq!(state.add_ref.get(), 1); + assert_eq!(state.release.get(), 2); + assert_eq!(state.freed.get(), 1); + unsafe { + drop(Box::from_raw(raw)); + } + } + + #[test] + fn into_cef_forgets_guard() { + let state = TestState::new(); + let raw = Dummy::new(&state); + let guard = RefGuard::from_raw(raw); + let ptr = guard.into_cef(); + + assert_eq!(state.add_ref.get(), 0); + assert_eq!(state.release.get(), 0); + assert_eq!(state.freed.get(), 0); + + let released = unsafe { (&*ptr).release() }; + assert!(released); + assert_eq!(state.release.get(), 1); + assert_eq!(state.freed.get(), 1); + unsafe { + drop(Box::from_raw(ptr)); + } + } +} diff --git a/cef/src/rust_to_c.rs b/cef/src/rust_to_c.rs index f2ec671..d9fa2d5 100644 --- a/cef/src/rust_to_c.rs +++ b/cef/src/rust_to_c.rs @@ -2,7 +2,6 @@ use cef_sys::cef_base_ref_counted_t; use std::marker::PhantomData; use std::sync::atomic::{self, AtomicUsize, Ordering}; -use std::sync::Arc; pub mod app; pub mod audio_handler; @@ -19,13 +18,13 @@ pub mod v8handler; #[repr(C)] pub(crate) struct Wrapper { cef_object: T, - interface: Arc, + interface: I, ref_count: AtomicUsize, marker: PhantomData, } impl Wrapper { - pub fn new(mut cef_object: T, interface: Arc) -> Wrapper { + pub fn new(mut cef_object: T, interface: I) -> Wrapper { let base = unsafe { &mut *(&mut cef_object as *mut T as *mut cef_base_ref_counted_t) }; base.size = std::mem::size_of::(); @@ -50,14 +49,14 @@ impl Wrapper { } #[inline(never)] -extern "stdcall" fn add_ref(this: *mut cef_base_ref_counted_t) { +extern "system" fn add_ref(this: *mut cef_base_ref_counted_t) { let obj: &mut Wrapper = Wrapper::::unwrap(this as *mut T); obj.ref_count.fetch_add(1, Ordering::Relaxed); } #[inline(never)] -extern "stdcall" fn has_one_ref(this: *mut cef_base_ref_counted_t) -> i32 { +extern "system" fn has_one_ref(this: *mut cef_base_ref_counted_t) -> i32 { let obj: &mut Wrapper = Wrapper::unwrap(this as *mut T); if obj.ref_count.load(Ordering::Relaxed) == 1 { @@ -68,7 +67,7 @@ extern "stdcall" fn has_one_ref(this: *mut cef_base_ref_counted_t) -> i32 } #[inline(never)] -extern "stdcall" fn has_at_least_one_ref(this: *mut cef_base_ref_counted_t) -> i32 { +extern "system" fn has_at_least_one_ref(this: *mut cef_base_ref_counted_t) -> i32 { let obj: &mut Wrapper = Wrapper::unwrap(this as *mut T); if obj.ref_count.load(Ordering::Relaxed) >= 1 { @@ -79,7 +78,7 @@ extern "stdcall" fn has_at_least_one_ref(this: *mut cef_base_ref_counted_t } #[inline(never)] -pub extern "stdcall" fn release(this: *mut cef_base_ref_counted_t) -> i32 { +pub extern "system" fn release(this: *mut cef_base_ref_counted_t) -> i32 { let obj: &mut Wrapper = Wrapper::unwrap(this as *mut T); if obj.ref_count.fetch_sub(1, Ordering::Release) != 1 { @@ -92,3 +91,331 @@ pub extern "stdcall" fn release(this: *mut cef_base_ref_counted_t) -> i32 1 } } + +#[cfg(test)] +mod tests { + use super::*; + use std::cell::Cell; + + use crate::app::App; + use crate::client::Client; + use crate::handlers::audio::AudioHandler; + use crate::handlers::browser_process::BrowserProcessHandler; + use crate::handlers::context_menu::ContextMenuHandler; + use crate::handlers::lifespan::LifespanHandler; + use crate::handlers::load::LoadHandler; + use crate::handlers::render::{DirtyRects, PaintElement, RenderHandler}; + use crate::handlers::render_process::RenderProcessHandler; + use crate::handlers::v8handler::V8Handler; + use crate::task::Task; + use crate::types::string::CefString; + use crate::v8::V8Value; + use cef_sys::{ + cef_app_t, cef_audio_handler_t, cef_browser_process_handler_t, cef_client_t, + cef_context_menu_handler_t, cef_life_span_handler_t, cef_load_handler_t, cef_rect_t, + cef_render_handler_t, cef_render_process_handler_t, cef_task_t, cef_v8handler_t, + }; + + struct DropTracker { + drops: Cell, + } + + struct Dummy { + base: cef_base_ref_counted_t, + state: *const DropTracker, + } + + impl Drop for Dummy { + fn drop(&mut self) { + let state = unsafe { &*self.state }; + state.drops.set(state.drops.get() + 1); + } + } + + fn new_wrapper(state: &DropTracker) -> (*mut Wrapper, *mut cef_base_ref_counted_t) { + let cef_object = Dummy { + base: unsafe { std::mem::zeroed() }, + state, + }; + let wrapper = Box::new(Wrapper::new(cef_object, ())); + let wrapper_ptr = Box::into_raw(wrapper); + let base_ptr = unsafe { + std::ptr::addr_of_mut!((*wrapper_ptr).cef_object) as *mut cef_base_ref_counted_t + }; + (wrapper_ptr, base_ptr) + } + + unsafe fn read_cef_object(ptr: *mut T) -> T { + let wrapper_ptr = ptr as *mut Wrapper; + std::ptr::read(std::ptr::addr_of!((*wrapper_ptr).cef_object)) + } + + unsafe fn drop_wrapper(ptr: *mut T) { + drop(Box::from_raw(ptr as *mut Wrapper)); + } + + struct DummyRenderProcessHandler; + impl RenderProcessHandler for DummyRenderProcessHandler {} + + struct DummyBrowserProcessHandler; + impl BrowserProcessHandler for DummyBrowserProcessHandler {} + + struct DummyApp; + impl App for DummyApp { + type RenderProcessHandler = DummyRenderProcessHandler; + type BrowserProcessHandler = DummyBrowserProcessHandler; + } + + struct DummyV8Handler; + impl V8Handler for DummyV8Handler { + fn execute(&self, _name: CefString, _args: Vec) -> bool { + false + } + } + + struct DummyRenderHandler; + impl RenderHandler for DummyRenderHandler { + fn view_rect(&self, _browser: crate::browser::Browser, _rect: &mut cef_rect_t) {} + fn on_popup_show(&self, _browser: crate::browser::Browser, _show: bool) {} + fn on_popup_size(&self, _browser: crate::browser::Browser, _rect: &cef_rect_t) {} + fn on_paint( + &self, _browser: crate::browser::Browser, _paint_type: PaintElement, + _dirty_rects: DirtyRects, _buffer: &[u8], _width: usize, _height: usize, + ) { + } + } + + struct DummyContextMenuHandler; + impl ContextMenuHandler for DummyContextMenuHandler { + fn on_before_context_menu( + &self, _browser: crate::browser::Browser, _frame: crate::browser::Frame, + _params: crate::browser::ContextMenuParams, _model: crate::browser::MenuModel, + ) { + } + } + + struct DummyLifespanHandler; + impl LifespanHandler for DummyLifespanHandler { + fn on_after_created(&self, _browser: crate::browser::Browser) {} + fn on_before_close(&self, _browser: crate::browser::Browser) {} + } + + struct DummyLoadHandler; + impl LoadHandler for DummyLoadHandler {} + + struct DummyAudioHandler; + impl AudioHandler for DummyAudioHandler {} + + struct DummyClient; + impl Client for DummyClient { + type LifespanHandler = DummyLifespanHandler; + type RenderHandler = DummyRenderHandler; + type ContextMenuHandler = DummyContextMenuHandler; + type LoadHandler = DummyLoadHandler; + type AudioHandler = DummyAudioHandler; + } + + struct DummyTask; + impl Task for DummyTask { + fn execute(&self) {} + } + + #[test] + fn wrapper_initializes_base() { + let state = DropTracker { + drops: Cell::new(0), + }; + let (wrapper_ptr, base_ptr) = new_wrapper(&state); + + unsafe { + let base = std::ptr::read(base_ptr); + assert_eq!(base.size, std::mem::size_of::()); + assert!(base.add_ref.is_some()); + assert!(base.has_one_ref.is_some()); + assert!(base.has_at_least_one_ref.is_some()); + assert!(base.release.is_some()); + + let _ = Box::from_raw(wrapper_ptr); + } + } + + #[test] + fn ref_counting_via_base_callbacks() { + let state = DropTracker { + drops: Cell::new(0), + }; + let (wrapper_ptr, base_ptr) = new_wrapper(&state); + + unsafe { + let base = std::ptr::read(base_ptr); + base.add_ref.unwrap()(base_ptr); + assert_eq!((*wrapper_ptr).ref_count.load(Ordering::Relaxed), 2); + assert_eq!(base.has_one_ref.unwrap()(base_ptr), 0); + assert_eq!(base.has_at_least_one_ref.unwrap()(base_ptr), 1); + + assert_eq!(base.release.unwrap()(base_ptr), 0); + assert_eq!((*wrapper_ptr).ref_count.load(Ordering::Relaxed), 1); + assert_eq!(state.drops.get(), 0); + + assert_eq!(base.release.unwrap()(base_ptr), 1); + } + + assert_eq!(state.drops.get(), 1); + } + + #[test] + fn wrap_app_sets_callbacks() { + let ptr = super::app::wrap(DummyApp); + unsafe { + let cef: cef_app_t = read_cef_object::(ptr); + assert!(cef.get_render_process_handler.is_some()); + assert!(cef.get_browser_process_handler.is_some()); + assert!(cef.on_before_command_line_processing.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_browser_process_handler_sets_callbacks() { + let ptr = super::browser_process_handler::wrap(DummyBrowserProcessHandler); + unsafe { + let cef: cef_browser_process_handler_t = + read_cef_object::(ptr); + assert!(cef.on_context_initialized.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_v8handler_sets_callbacks() { + let ptr = super::v8handler::wrap(DummyV8Handler); + unsafe { + let cef: cef_v8handler_t = read_cef_object::(ptr); + assert!(cef.execute.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_render_process_handler_sets_callbacks() { + let ptr = super::render_process_handler::wrap(DummyRenderProcessHandler); + unsafe { + let cef: cef_render_process_handler_t = + read_cef_object::(ptr); + assert!(cef.on_context_created.is_some()); + assert!(cef.on_context_released.is_some()); + assert!(cef.on_web_kit_initialized.is_some()); + assert!(cef.on_process_message_received.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_render_handler_sets_callbacks() { + let ptr = super::render_handler::wrap(DummyRenderHandler); + unsafe { + let cef: cef_render_handler_t = + read_cef_object::(ptr); + assert!(cef.get_accessibility_handler.is_some()); + assert!(cef.get_root_screen_rect.is_some()); + assert!(cef.get_view_rect.is_some()); + assert!(cef.get_screen_point.is_some()); + assert!(cef.get_screen_info.is_some()); + assert!(cef.on_popup_show.is_some()); + assert!(cef.on_popup_size.is_some()); + assert!(cef.on_paint.is_some()); + assert!(cef.on_accelerated_paint.is_some()); + assert!(cef.start_dragging.is_some()); + assert!(cef.update_drag_cursor.is_some()); + assert!(cef.on_scroll_offset_changed.is_some()); + assert!(cef.on_ime_composition_range_changed.is_some()); + assert!(cef.on_text_selection_changed.is_some()); + assert!(cef.on_virtual_keyboard_requested.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_context_menu_handler_sets_callbacks() { + let ptr = super::context_menu_handler::wrap(DummyContextMenuHandler); + unsafe { + let cef: cef_context_menu_handler_t = + read_cef_object::(ptr); + assert!(cef.on_before_context_menu.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_lifespan_handler_sets_callbacks() { + let ptr = super::lifespan_handler::wrap(DummyLifespanHandler); + unsafe { + let cef: cef_life_span_handler_t = + read_cef_object::(ptr); + assert!(cef.on_before_close.is_some()); + assert!(cef.on_after_created.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_load_handler_sets_callbacks() { + let ptr = super::load_handler::wrap(DummyLoadHandler); + unsafe { + let cef: cef_load_handler_t = + read_cef_object::(ptr); + assert!(cef.on_loading_state_change.is_some()); + assert!(cef.on_load_end.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_audio_handler_sets_callbacks() { + let ptr = super::audio_handler::wrap(DummyAudioHandler); + unsafe { + let cef: cef_audio_handler_t = + read_cef_object::(ptr); + assert!(cef.get_audio_parameters.is_some()); + assert!(cef.on_audio_stream_packet.is_some()); + assert!(cef.on_audio_stream_started.is_some()); + assert!(cef.on_audio_stream_stopped.is_some()); + assert!(cef.on_audio_stream_error.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_client_sets_callbacks() { + let ptr = super::client::wrap(DummyClient); + unsafe { + let cef: cef_client_t = read_cef_object::(ptr); + assert!(cef.get_life_span_handler.is_some()); + assert!(cef.on_process_message_received.is_some()); + assert!(cef.get_request_handler.is_some()); + assert!(cef.get_render_handler.is_some()); + assert!(cef.get_load_handler.is_some()); + assert!(cef.get_keyboard_handler.is_some()); + assert!(cef.get_jsdialog_handler.is_some()); + assert!(cef.get_focus_handler.is_some()); + assert!(cef.get_find_handler.is_some()); + assert!(cef.get_drag_handler.is_some()); + assert!(cef.get_download_handler.is_some()); + assert!(cef.get_display_handler.is_some()); + assert!(cef.get_dialog_handler.is_some()); + assert!(cef.get_context_menu_handler.is_some()); + assert!(cef.get_audio_handler.is_some()); + drop_wrapper::(ptr); + } + } + + #[test] + fn wrap_task_sets_callbacks() { + let ptr = super::task::wrap(DummyTask); + unsafe { + let cef: cef_task_t = read_cef_object::(ptr); + assert!(cef.execute.is_some()); + drop_wrapper::(ptr); + } + } +} diff --git a/cef/src/rust_to_c/app.rs b/cef/src/rust_to_c/app.rs index 48bd229..0c1c06e 100644 --- a/cef/src/rust_to_c/app.rs +++ b/cef/src/rust_to_c/app.rs @@ -8,9 +8,7 @@ use cef_sys::{ cef_string_t, }; -use std::sync::Arc; - -extern "stdcall" fn get_render_process_handler( +extern "system" fn get_render_process_handler( this: *mut cef_app_t, ) -> *mut cef_render_process_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -22,7 +20,7 @@ extern "stdcall" fn get_render_process_handler( } } -extern "stdcall" fn get_browser_process_handler( +extern "system" fn get_browser_process_handler( this: *mut cef_app_t, ) -> *mut cef_browser_process_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -34,19 +32,18 @@ extern "stdcall" fn get_browser_process_handler( } } -extern "stdcall" fn on_before_command_line_processing( +extern "system" fn on_before_command_line_processing( this: *mut cef_app_t, process_type: *const cef_string_t, command_line: *mut cef_command_line_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - // let process_type = CefString::from(process_type); - let process_type = CefString::new("testique"); + let process_type = CefString::from(process_type); let cmd = CommandLine::from_raw(command_line); obj.interface .on_before_command_line_processing(process_type, cmd); } -pub fn wrap(app: Arc) -> *mut cef_app_t { +pub fn wrap(app: T) -> *mut cef_app_t { let mut object: cef_app_t = unsafe { std::mem::zeroed() }; object.get_render_process_handler = Some(get_render_process_handler::); diff --git a/cef/src/rust_to_c/audio_handler.rs b/cef/src/rust_to_c/audio_handler.rs index eff65e5..37096f8 100644 --- a/cef/src/rust_to_c/audio_handler.rs +++ b/cef/src/rust_to_c/audio_handler.rs @@ -3,23 +3,23 @@ use crate::rust_to_c::Wrapper; use crate::browser::Browser; use cef_sys::{cef_audio_handler_t, cef_audio_parameters_t, cef_browser_t, cef_string_t}; -use std::sync::Arc; -unsafe extern "stdcall" fn get_audio_parameters( +unsafe extern "system" fn get_audio_parameters( this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, params: *mut cef_audio_parameters_t, ) -> i32 { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - if obj.interface.get_audio_parameters(browser, &mut *params) { + let params = unsafe { &mut *params }; + if obj.interface.get_audio_parameters(browser, params) { 1 } else { 0 } } -unsafe extern "stdcall" fn on_audio_stream_packet( +unsafe extern "system" fn on_audio_stream_packet( this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, data: *mut *const f32, frames: i32, pts: i64, ) { @@ -31,18 +31,18 @@ unsafe extern "stdcall" fn on_audio_stream_packet( .on_audio_stream_packet(browser, audio_stream_id, data, frames, pts); } -// unsafe extern "stdcall" fn on_audio_stream_started( +// unsafe extern "system" fn on_audio_stream_started( // this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, audio_stream_id: i32, // channels: i32, channel_layout: i32, sample_rate: i32, frames_per_buffer: i32, // ) { -unsafe extern "stdcall" fn on_audio_stream_started( +unsafe extern "system" fn on_audio_stream_started( this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, params: *const cef_audio_parameters_t, channels: i32, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - let params = &*params; + let params = unsafe { &*params }; let audio_stream_id = 0; // COMP obj.interface.on_audio_stream_started( @@ -55,7 +55,7 @@ unsafe extern "stdcall" fn on_audio_stream_started( ); } -unsafe extern "stdcall" fn on_audio_stream_stopped( +unsafe extern "system" fn on_audio_stream_stopped( this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -66,20 +66,22 @@ unsafe extern "stdcall" fn on_audio_stream_stopped( .on_audio_stream_stopped(browser, audio_stream_id); } -unsafe extern "stdcall" fn on_audio_stream_error( +unsafe extern "system" fn on_audio_stream_error( this: *mut cef_audio_handler_t, browser: *mut cef_browser_t, error: *const cef_string_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - let error = widestring::U16CString::from_ptr((*error).str_, (*error).length) - .map(|wide| wide.to_string_lossy()) - .unwrap_or_else(|_| String::from("some really baaad error")); + let error = unsafe { + widestring::U16CString::from_ptr((*error).str_, (*error).length) + .map(|wide| wide.to_string_lossy()) + .unwrap_or_else(|_| String::from("some really baaad error")) + }; obj.interface.on_audio_stream_error(browser, error); } -pub fn wrap(audio: Arc) -> *mut cef_audio_handler_t { +pub fn wrap(audio: T) -> *mut cef_audio_handler_t { let mut object: cef_audio_handler_t = unsafe { std::mem::zeroed() }; object.get_audio_parameters = Some(get_audio_parameters::); diff --git a/cef/src/rust_to_c/browser_process_handler.rs b/cef/src/rust_to_c/browser_process_handler.rs index 9a54e5f..6f3f2b5 100644 --- a/cef/src/rust_to_c/browser_process_handler.rs +++ b/cef/src/rust_to_c/browser_process_handler.rs @@ -1,18 +1,16 @@ use crate::handlers::browser_process::BrowserProcessHandler; use crate::rust_to_c::Wrapper; -use std::sync::Arc; - use cef_sys::cef_browser_process_handler_t; -extern "stdcall" fn on_context_initialized( +extern "system" fn on_context_initialized( this: *mut cef_browser_process_handler_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); obj.interface.on_context_initialized(); } -pub fn wrap(handler: Arc) -> *mut cef_browser_process_handler_t { +pub fn wrap(handler: T) -> *mut cef_browser_process_handler_t { let mut object: cef_browser_process_handler_t = unsafe { std::mem::zeroed() }; object.on_context_initialized = Some(on_context_initialized::); diff --git a/cef/src/rust_to_c/client.rs b/cef/src/rust_to_c/client.rs index 2b8b515..a49a0fe 100644 --- a/cef/src/rust_to_c/client.rs +++ b/cef/src/rust_to_c/client.rs @@ -2,11 +2,10 @@ use super::Wrapper; use crate::client::Client; use std::ptr::null_mut; -use std::sync::Arc; +use crate::ProcessId; use crate::browser::{Browser, Frame}; use crate::process_message::ProcessMessage; -use crate::ProcessId; use cef_sys::{ cef_audio_handler_t, cef_browser_t, cef_client_t, cef_context_menu_handler_t, cef_dialog_handler_t, cef_display_handler_t, cef_download_handler_t, cef_drag_handler_t, @@ -17,7 +16,7 @@ use cef_sys::{ // audio -extern "stdcall" fn audio(this: *mut cef_client_t) -> *mut cef_audio_handler_t { +extern "system" fn audio(this: *mut cef_client_t) -> *mut cef_audio_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); if let Some(handler) = obj.interface.audio_handler() { @@ -30,7 +29,7 @@ extern "stdcall" fn audio(this: *mut cef_client_t) -> *mut cef_audio_ // context menu #[inline(never)] -extern "stdcall" fn context_menu( +extern "system" fn context_menu( this: *mut cef_client_t, ) -> *mut cef_context_menu_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -44,63 +43,63 @@ extern "stdcall" fn context_menu( // dialog -extern "stdcall" fn dialog(this: *mut cef_client_t) -> *mut cef_dialog_handler_t { +extern "system" fn dialog(_this: *mut cef_client_t) -> *mut cef_dialog_handler_t { println!("dialog"); null_mut() } // display -extern "stdcall" fn display(this: *mut cef_client_t) -> *mut cef_display_handler_t { +extern "system" fn display(_this: *mut cef_client_t) -> *mut cef_display_handler_t { println!("display"); null_mut() } // download -extern "stdcall" fn download(this: *mut cef_client_t) -> *mut cef_download_handler_t { +extern "system" fn download(_this: *mut cef_client_t) -> *mut cef_download_handler_t { println!("download"); null_mut() } // drag -extern "stdcall" fn drag(this: *mut cef_client_t) -> *mut cef_drag_handler_t { +extern "system" fn drag(_this: *mut cef_client_t) -> *mut cef_drag_handler_t { println!("drag"); null_mut() } // find -extern "stdcall" fn find(this: *mut cef_client_t) -> *mut cef_find_handler_t { +extern "system" fn find(_this: *mut cef_client_t) -> *mut cef_find_handler_t { println!("find"); null_mut() } // focus -extern "stdcall" fn focus(this: *mut cef_client_t) -> *mut cef_focus_handler_t { +extern "system" fn focus(_this: *mut cef_client_t) -> *mut cef_focus_handler_t { println!("focus"); null_mut() } // jsdialog -extern "stdcall" fn jsdialog(this: *mut cef_client_t) -> *mut cef_jsdialog_handler_t { +extern "system" fn jsdialog(_this: *mut cef_client_t) -> *mut cef_jsdialog_handler_t { println!("jsdialog"); null_mut() } // keyboard -extern "stdcall" fn keyboard(this: *mut cef_client_t) -> *mut cef_keyboard_handler_t { +extern "system" fn keyboard(_this: *mut cef_client_t) -> *mut cef_keyboard_handler_t { println!("keyboard"); null_mut() } // load -extern "stdcall" fn load(this: *mut cef_client_t) -> *mut cef_load_handler_t { +extern "system" fn load(this: *mut cef_client_t) -> *mut cef_load_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); if let Some(handler) = obj.interface.load_handler() { @@ -112,7 +111,7 @@ extern "stdcall" fn load(this: *mut cef_client_t) -> *mut cef_load_ha // render -extern "stdcall" fn render(this: *mut cef_client_t) -> *mut cef_render_handler_t { +extern "system" fn render(this: *mut cef_client_t) -> *mut cef_render_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); if let Some(handler) = obj.interface.render_handler() { @@ -124,14 +123,14 @@ extern "stdcall" fn render(this: *mut cef_client_t) -> *mut cef_rende // request -extern "stdcall" fn request(this: *mut cef_client_t) -> *mut cef_request_handler_t { +extern "system" fn request(_this: *mut cef_client_t) -> *mut cef_request_handler_t { println!("request"); null_mut() } // message received -extern "stdcall" fn on_process_message( +extern "system" fn on_process_message( this: *mut cef_client_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, source_process: cef_sys::cef_process_id_t::Type, message: *mut cef_process_message_t, ) -> i32 { @@ -146,16 +145,12 @@ extern "stdcall" fn on_process_message( .interface .on_process_message(browser, frame, process_id, message); - if result { - 1 - } else { - 0 - } + if result { 1 } else { 0 } } // lifespan handler -extern "stdcall" fn lifespan(this: *mut cef_client_t) -> *mut cef_life_span_handler_t { +extern "system" fn lifespan(this: *mut cef_client_t) -> *mut cef_life_span_handler_t { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); if let Some(handler) = obj.interface.lifespan_handler() { @@ -165,22 +160,22 @@ extern "stdcall" fn lifespan(this: *mut cef_client_t) -> *mut cef_lif } } -pub fn wrap(client: Arc) -> *mut cef_client_t { +pub fn wrap(client: T) -> *mut cef_client_t { let mut object: cef_client_t = unsafe { std::mem::zeroed() }; object.get_life_span_handler = Some(lifespan::); object.on_process_message_received = Some(on_process_message::); - object.get_request_handler = Some(request::); + object.get_request_handler = Some(request); object.get_render_handler = Some(render::); object.get_load_handler = Some(load::); - object.get_keyboard_handler = Some(keyboard::); - object.get_jsdialog_handler = Some(jsdialog::); - object.get_focus_handler = Some(focus::); - object.get_find_handler = Some(find::); - object.get_drag_handler = Some(drag::); - object.get_download_handler = Some(download::); - object.get_display_handler = Some(display::); - object.get_dialog_handler = Some(dialog::); + object.get_keyboard_handler = Some(keyboard); + object.get_jsdialog_handler = Some(jsdialog); + object.get_focus_handler = Some(focus); + object.get_find_handler = Some(find); + object.get_drag_handler = Some(drag); + object.get_download_handler = Some(download); + object.get_display_handler = Some(display); + object.get_dialog_handler = Some(dialog); object.get_context_menu_handler = Some(context_menu::); object.get_audio_handler = Some(audio::); diff --git a/cef/src/rust_to_c/context_menu_handler.rs b/cef/src/rust_to_c/context_menu_handler.rs index 3a96fdb..0a78e38 100644 --- a/cef/src/rust_to_c/context_menu_handler.rs +++ b/cef/src/rust_to_c/context_menu_handler.rs @@ -7,9 +7,7 @@ use cef_sys::{ cef_menu_model_t, }; -use std::sync::Arc; - -unsafe extern "stdcall" fn on_before_context_menu( +unsafe extern "system" fn on_before_context_menu( this: *mut cef_context_menu_handler_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, params: *mut cef_context_menu_params_t, model: *mut cef_menu_model_t, ) { @@ -24,7 +22,7 @@ unsafe extern "stdcall" fn on_before_context_menu( .on_before_context_menu(browser, frame, params, model); } -pub fn wrap(context_menu: Arc) -> *mut cef_context_menu_handler_t { +pub fn wrap(context_menu: T) -> *mut cef_context_menu_handler_t { let mut object: cef_context_menu_handler_t = unsafe { std::mem::zeroed() }; object.on_before_context_menu = Some(on_before_context_menu::); diff --git a/cef/src/rust_to_c/lifespan_handler.rs b/cef/src/rust_to_c/lifespan_handler.rs index a6101f7..79fcee7 100644 --- a/cef/src/rust_to_c/lifespan_handler.rs +++ b/cef/src/rust_to_c/lifespan_handler.rs @@ -2,11 +2,9 @@ use super::Wrapper; use crate::handlers::lifespan::LifespanHandler; use crate::browser::Browser; -use crate::ref_counted::RefGuard; use cef_sys::{cef_browser_t, cef_life_span_handler_t}; -use std::sync::Arc; -extern "stdcall" fn on_after_created( +extern "system" fn on_after_created( this: *mut cef_life_span_handler_t, browser: *mut cef_browser_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -16,7 +14,7 @@ extern "stdcall" fn on_after_created( obj.interface.on_after_created(browser); } -extern "stdcall" fn on_before_close( +extern "system" fn on_before_close( this: *mut cef_life_span_handler_t, browser: *mut cef_browser_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -26,7 +24,7 @@ extern "stdcall" fn on_before_close( obj.interface.on_before_close(browser); } -pub fn wrap(lifespan: Arc) -> *mut cef_life_span_handler_t { +pub fn wrap(lifespan: T) -> *mut cef_life_span_handler_t { let mut object: cef_life_span_handler_t = unsafe { std::mem::zeroed() }; object.on_before_close = Some(on_before_close::); object.on_after_created = Some(on_after_created::); diff --git a/cef/src/rust_to_c/load_handler.rs b/cef/src/rust_to_c/load_handler.rs index f868d30..1bff8e3 100644 --- a/cef/src/rust_to_c/load_handler.rs +++ b/cef/src/rust_to_c/load_handler.rs @@ -5,9 +5,8 @@ use crate::rust_to_c::Wrapper; use cef_sys::{cef_browser_t, cef_frame_t, cef_load_handler_t}; use std::os::raw::c_int; -use std::sync::Arc; -unsafe extern "stdcall" fn on_loading_state_change( +unsafe extern "system" fn on_loading_state_change( this: *mut cef_load_handler_t, browser: *mut cef_browser_t, is_loading: c_int, can_go_back: c_int, can_go_forward: c_int, ) { @@ -22,7 +21,7 @@ unsafe extern "stdcall" fn on_loading_state_change( .on_loading_state_change(browser, is_loading, can_go_back, can_go_forward); } -unsafe extern "stdcall" fn on_load_end( +unsafe extern "system" fn on_load_end( this: *mut cef_load_handler_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, status_code: c_int, ) { @@ -34,7 +33,7 @@ unsafe extern "stdcall" fn on_load_end( obj.interface.on_load_end(browser, frame, status_code); } -pub fn wrap(load: Arc) -> *mut cef_load_handler_t { +pub fn wrap(load: T) -> *mut cef_load_handler_t { let mut object: cef_load_handler_t = unsafe { std::mem::zeroed() }; object.on_loading_state_change = Some(on_loading_state_change::); diff --git a/cef/src/rust_to_c/render_handler.rs b/cef/src/rust_to_c/render_handler.rs index 5d7e81c..c8f6b9d 100644 --- a/cef/src/rust_to_c/render_handler.rs +++ b/cef/src/rust_to_c/render_handler.rs @@ -3,68 +3,70 @@ use crate::browser::Browser; use crate::handlers::render::{DirtyRects, PaintElement, RenderHandler}; use cef_sys::{ - cef_accessibility_handler_t, cef_browser_t, cef_cursor_info_t, cef_cursor_type_t, + HCURSOR, cef_accessibility_handler_t, cef_browser_t, cef_cursor_info_t, cef_cursor_type_t, cef_drag_data_t, cef_drag_operations_mask_t, cef_paint_element_type_t, cef_range_t, cef_rect_t, - cef_render_handler_t, cef_screen_info_t, cef_string_t, cef_text_input_mode_t, HCURSOR, + cef_render_handler_t, cef_screen_info_t, cef_string_t, cef_text_input_mode_t, }; -use std::sync::Arc; - -unsafe extern "stdcall" fn get_accessibility_handler( - this: *mut cef_render_handler_t, +unsafe extern "system" fn get_accessibility_handler( + _this: *mut cef_render_handler_t, ) -> *mut cef_accessibility_handler_t { // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); // let _ = obj.interface.accessibility_handler(); - return 0 as _; + std::ptr::null_mut() } -unsafe extern "stdcall" fn get_root_screen_rect( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, rect: *mut cef_rect_t, +unsafe extern "system" fn get_root_screen_rect( + this: *mut cef_render_handler_t, browser: *mut cef_browser_t, _rect: *mut cef_rect_t, ) -> ::std::os::raw::c_int { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - if obj.ref_count.load(std::sync::atomic::Ordering::Relaxed) > 0 { - () - } + let _ = obj.ref_count.load(std::sync::atomic::Ordering::Relaxed); - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let _ = obj.interface.root_screen_rect(); - return 0 as _; + 0 } -unsafe extern "stdcall" fn get_view_rect( +unsafe extern "system" fn get_view_rect( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, rect: *mut cef_rect_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - let rect = &mut *rect; + let rect = unsafe { &mut *rect }; obj.interface.view_rect(browser, rect); } -unsafe extern "stdcall" fn get_screen_point( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, viewX: ::std::os::raw::c_int, - viewY: ::std::os::raw::c_int, screenX: *mut ::std::os::raw::c_int, - screenY: *mut ::std::os::raw::c_int, +unsafe extern "system" fn get_screen_point( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, _view_x: ::std::os::raw::c_int, + _view_y: ::std::os::raw::c_int, _screen_x: *mut ::std::os::raw::c_int, + _screen_y: *mut ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let _ = obj.interface.screen_point(); - return 0 as _; + 0 } -unsafe extern "stdcall" fn get_screen_info( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, - screen_info: *mut cef_screen_info_t, +unsafe extern "system" fn get_screen_info( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, + _screen_info: *mut cef_screen_info_t, ) -> ::std::os::raw::c_int { // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let _ = obj.interface.screen_info(); - return 0 as _; + 0 } -unsafe extern "stdcall" fn on_popup_show( +unsafe extern "system" fn on_popup_show( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, show: ::std::os::raw::c_int, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); @@ -73,31 +75,32 @@ unsafe extern "stdcall" fn on_popup_show( obj.interface.on_popup_show(browser, show); } -unsafe extern "stdcall" fn on_popup_size( +unsafe extern "system" fn on_popup_size( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, rect: *const cef_rect_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - obj.interface.on_popup_size(browser, &*rect); + obj.interface.on_popup_size(browser, unsafe { &*rect }); } -unsafe extern "stdcall" fn on_paint( +unsafe extern "system" fn on_paint( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, - type_: cef_paint_element_type_t::Type, dirtyRectsCount: usize, dirtyRects: *const cef_rect_t, - buffer: *const ::std::os::raw::c_void, width: ::std::os::raw::c_int, - height: ::std::os::raw::c_int, + type_: cef_paint_element_type_t::Type, dirty_rects_count: usize, + dirty_rects: *const cef_rect_t, buffer: *const ::std::os::raw::c_void, + width: ::std::os::raw::c_int, height: ::std::os::raw::c_int, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let browser = Browser::from_raw(browser); - let rects = std::slice::from_raw_parts(dirtyRects, dirtyRectsCount); + let rects = unsafe { std::slice::from_raw_parts(dirty_rects, dirty_rects_count) }; let rects = DirtyRects { - count: dirtyRectsCount, + count: dirty_rects_count, rects: Vec::from(rects), }; - let buffer = std::slice::from_raw_parts(buffer as *const u8, (width * height * 4) as usize); + let buffer = + unsafe { std::slice::from_raw_parts(buffer as *const u8, (width * height * 4) as usize) }; obj.interface.on_paint( browser, @@ -109,101 +112,116 @@ unsafe extern "stdcall" fn on_paint( ); } -unsafe extern "stdcall" fn on_accelerated_paint( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, - type_: cef_paint_element_type_t::Type, dirtyRectsCount: usize, dirtyRects: *const cef_rect_t, - shared_handle: *mut ::std::os::raw::c_void, +unsafe extern "system" fn on_accelerated_paint( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, + _type_: cef_paint_element_type_t::Type, _dirty_rects_count: usize, + _dirty_rects: *const cef_rect_t, _shared_handle: *mut ::std::os::raw::c_void, ) { // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } println!("accelerated"); // let _ = obj.interface.on_accelerated_paint(); } -unsafe extern "stdcall" fn on_cursor_change( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, cursor: HCURSOR, - type_: cef_cursor_type_t::Type, custom_cursor_info: *const cef_cursor_info_t, +#[allow(dead_code)] +unsafe extern "system" fn on_cursor_change( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, _cursor: HCURSOR, + _type_: cef_cursor_type_t::Type, _custom_cursor_info: *const cef_cursor_info_t, ) { - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); // let _ = obj.interface.on_cursor_change(); } -unsafe extern "stdcall" fn start_dragging( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, drag_data: *mut cef_drag_data_t, - allowed_ops: cef_drag_operations_mask_t, x: ::std::os::raw::c_int, y: ::std::os::raw::c_int, +unsafe extern "system" fn start_dragging( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, drag_data: *mut cef_drag_data_t, + _allowed_ops: cef_drag_operations_mask_t, _x: ::std::os::raw::c_int, _y: ::std::os::raw::c_int, ) -> ::std::os::raw::c_int { - (*browser).base.release.unwrap()(&mut (*browser).base); - (*drag_data).base.release.unwrap()(&mut (*drag_data).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + (*drag_data).base.release.unwrap()(&mut (*drag_data).base); + } // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); // let _ = obj.interface.start_dragging(); - return 0 as _; + 0 } -unsafe extern "stdcall" fn update_drag_cursor( +unsafe extern "system" fn update_drag_cursor( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, operation: cef_drag_operations_mask_t, ) { - let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - (*browser).base.release.unwrap()(&mut (*browser).base); - let _a = operation.0 * 4; + let _obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } + let _ = operation; // let _ = obj.interface.update_drag_cursor(); } -unsafe extern "stdcall" fn on_scroll_offset_changed( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, x: f64, y: f64, +unsafe extern "system" fn on_scroll_offset_changed( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, _x: f64, _y: f64, ) { - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); // let _ = obj.interface.on_scroll_offset_changed(); } -unsafe extern "stdcall" fn oicrc( +unsafe extern "system" fn oicrc( this: *mut cef_render_handler_t, browser: *mut cef_browser_t, - selected_range: *const cef_range_t, character_boundsCount: usize, - character_bounds: *const cef_rect_t, + _selected_range: *const cef_range_t, _character_bounds_count: usize, + _character_bounds: *const cef_rect_t, ) { - let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); - (*browser).base.release.unwrap()(&mut (*browser).base); + let _obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let _ = obj.interface.on_ime_composition_range_changed(); } -unsafe extern "stdcall" fn on_text_selection_changed( - this: *mut cef_render_handler_t, browser: *mut cef_browser_t, - selected_text: *const cef_string_t, selected_range: *const cef_range_t, +unsafe extern "system" fn on_text_selection_changed( + _this: *mut cef_render_handler_t, browser: *mut cef_browser_t, + _selected_text: *const cef_string_t, _selected_range: *const cef_range_t, ) { - (*browser).base.release.unwrap()(&mut (*browser).base); + unsafe { + (*browser).base.release.unwrap()(&mut (*browser).base); + } // let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); // let _ = obj.interface.on_text_selection_changed(); } -unsafe extern "stdcall" fn ovkr( +unsafe extern "system" fn ovkr( _this: *mut cef_render_handler_t, _browser: *mut cef_browser_t, _input_mode: cef_text_input_mode_t::Type, ) { - let obj: &mut Wrapper<_, I> = Wrapper::unwrap(_this); - let _a = Browser::from_raw(_browser); + let _obj: &mut Wrapper<_, I> = Wrapper::unwrap(_this); + let _ = Browser::from_raw(_browser); // let _b = _input_mode * 4; } -pub fn wrap(object: Arc) -> *mut cef_render_handler_t { +pub fn wrap(object: T) -> *mut cef_render_handler_t { let mut cef_object: cef_render_handler_t = unsafe { std::mem::zeroed() }; - cef_object.get_accessibility_handler = Some(get_accessibility_handler::); + cef_object.get_accessibility_handler = Some(get_accessibility_handler); cef_object.get_root_screen_rect = Some(get_root_screen_rect::); cef_object.get_view_rect = Some(get_view_rect::); - cef_object.get_screen_point = Some(get_screen_point::); - cef_object.get_screen_info = Some(get_screen_info::); + cef_object.get_screen_point = Some(get_screen_point); + cef_object.get_screen_info = Some(get_screen_info); cef_object.on_popup_show = Some(on_popup_show::); cef_object.on_popup_size = Some(on_popup_size::); cef_object.on_paint = Some(on_paint::); - cef_object.on_accelerated_paint = Some(on_accelerated_paint::); + cef_object.on_accelerated_paint = Some(on_accelerated_paint); // cef_object.on_cursor_change = Some(on_cursor_change::); - cef_object.start_dragging = Some(start_dragging::); + cef_object.start_dragging = Some(start_dragging); cef_object.update_drag_cursor = Some(update_drag_cursor::); - cef_object.on_scroll_offset_changed = Some(on_scroll_offset_changed::); + cef_object.on_scroll_offset_changed = Some(on_scroll_offset_changed); cef_object.on_ime_composition_range_changed = Some(oicrc::); - cef_object.on_text_selection_changed = Some(on_text_selection_changed::); + cef_object.on_text_selection_changed = Some(on_text_selection_changed); cef_object.on_virtual_keyboard_requested = Some(ovkr::); let wrapper = Wrapper::new(cef_object, object); diff --git a/cef/src/rust_to_c/render_process_handler.rs b/cef/src/rust_to_c/render_process_handler.rs index 0eb3c4c..3cdcce9 100644 --- a/cef/src/rust_to_c/render_process_handler.rs +++ b/cef/src/rust_to_c/render_process_handler.rs @@ -1,17 +1,16 @@ use super::Wrapper; use crate::handlers::render_process::RenderProcessHandler; -use std::sync::Arc; +use crate::ProcessId; use crate::browser::{Browser, Frame}; use crate::process_message::ProcessMessage; use crate::v8::V8Context; -use crate::ProcessId; use cef_sys::{ cef_browser_t, cef_frame_t, cef_process_message_t, cef_render_process_handler_t, cef_v8context_t, }; -extern "stdcall" fn on_context_created( +extern "system" fn on_context_created( this: *mut cef_render_process_handler_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, context: *mut cef_v8context_t, ) { @@ -23,7 +22,7 @@ extern "stdcall" fn on_context_created( obj.interface.on_context_created(browser, frame, context); } -extern "stdcall" fn on_context_released( +extern "system" fn on_context_released( this: *mut cef_render_process_handler_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, context: *mut cef_v8context_t, ) { @@ -35,14 +34,14 @@ extern "stdcall" fn on_context_released( obj.interface.on_context_released(browser, frame, context); } -extern "stdcall" fn on_webkit_initialized( +extern "system" fn on_webkit_initialized( this: *mut cef_render_process_handler_t, ) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); obj.interface.on_webkit_initialized(); } -extern "stdcall" fn on_process_message( +extern "system" fn on_process_message( this: *mut cef_render_process_handler_t, browser: *mut cef_browser_t, frame: *mut cef_frame_t, source_process: cef_sys::cef_process_id_t::Type, message: *mut cef_process_message_t, ) -> i32 { @@ -57,14 +56,10 @@ extern "stdcall" fn on_process_message( .interface .on_process_message(browser, frame, process_id, message); - if result { - 1 - } else { - 0 - } + if result { 1 } else { 0 } } -pub fn wrap(handler: Arc) -> *mut cef_render_process_handler_t { +pub fn wrap(handler: T) -> *mut cef_render_process_handler_t { let mut object: cef_render_process_handler_t = unsafe { std::mem::zeroed() }; object.on_context_created = Some(on_context_created::); diff --git a/cef/src/rust_to_c/task.rs b/cef/src/rust_to_c/task.rs index 0644a06..f1f8222 100644 --- a/cef/src/rust_to_c/task.rs +++ b/cef/src/rust_to_c/task.rs @@ -1,14 +1,13 @@ use crate::rust_to_c::Wrapper; use crate::task::Task; use cef_sys::cef_task_t; -use std::sync::Arc; -extern "stdcall" fn execute(this: *mut cef_task_t) { +extern "system" fn execute(this: *mut cef_task_t) { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); obj.interface.execute(); } -pub fn wrap(app: Arc) -> *mut cef_task_t { +pub fn wrap(app: T) -> *mut cef_task_t { let mut object: cef_task_t = unsafe { std::mem::zeroed() }; object.execute = Some(execute::); diff --git a/cef/src/rust_to_c/v8handler.rs b/cef/src/rust_to_c/v8handler.rs index 305e4d4..1dd9966 100644 --- a/cef/src/rust_to_c/v8handler.rs +++ b/cef/src/rust_to_c/v8handler.rs @@ -3,35 +3,29 @@ use crate::rust_to_c::Wrapper; use crate::types::string::CefString; use crate::v8::V8Value; -use std::sync::Arc; - use cef_sys::{cef_string_t, cef_v8handler_t, cef_v8value_t}; -unsafe extern "stdcall" fn execute( +unsafe extern "system" fn execute( this: *mut cef_v8handler_t, name: *const cef_string_t, object: *mut cef_v8value_t, - argumentsCount: usize, arguments: *const *mut cef_v8value_t, retval: *mut *mut cef_v8value_t, - exception: *mut cef_string_t, + arguments_count: usize, arguments: *const *mut cef_v8value_t, _retval: *mut *mut cef_v8value_t, + _exception: *mut cef_string_t, ) -> std::os::raw::c_int { let obj: &mut Wrapper<_, I> = Wrapper::unwrap(this); let name = CefString::from(name); - let object = V8Value::from_raw(object); + let _object = V8Value::from_raw(object); - let args: Vec = std::slice::from_raw_parts(arguments, argumentsCount) + let args: Vec = unsafe { std::slice::from_raw_parts(arguments, arguments_count) } .iter() .map(|val| V8Value::from_raw(*val)) .collect(); let ret = obj.interface.execute(name, args); - if ret { - 1 - } else { - 0 - } + if ret { 1 } else { 0 } } -pub fn wrap(app: Arc) -> *mut cef_v8handler_t { +pub fn wrap(app: T) -> *mut cef_v8handler_t { let mut object: cef_v8handler_t = unsafe { std::mem::zeroed() }; object.execute = Some(execute::); diff --git a/cef/src/task.rs b/cef/src/task.rs index a22bbfd..c91d5d9 100644 --- a/cef/src/task.rs +++ b/cef/src/task.rs @@ -1,9 +1,7 @@ use crate::ref_counted::RefGuard; use cef_sys::cef_task_runner_t; -use std::sync::Arc; - pub trait Task { - fn execute(self: &Arc); + fn execute(&self); } struct ClosureTask { @@ -11,7 +9,7 @@ struct ClosureTask { } impl Task for ClosureTask { - fn execute(self: &Arc) { + fn execute(&self) { (self.closure)(); } } @@ -22,6 +20,7 @@ pub struct TaskRunner { } impl TaskRunner { + #[allow(dead_code)] pub(crate) fn from_raw(raw: *mut cef_task_runner_t) -> TaskRunner { TaskRunner { inner: RefGuard::from_raw(raw), @@ -33,7 +32,7 @@ impl TaskRunner { F: Fn() + 'static + Send + Sync, { let func = Box::new(func); - let task = Arc::new(ClosureTask { closure: func }); + let task = ClosureTask { closure: func }; let task = crate::rust_to_c::task::wrap(task); let post_task = self.inner.post_task.unwrap(); diff --git a/cef/src/types/list.rs b/cef/src/types/list.rs index 631b6cf..b8ea533 100644 --- a/cef/src/types/list.rs +++ b/cef/src/types/list.rs @@ -32,6 +32,10 @@ impl List { unsafe { len(self.inner.get_mut()) } } + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + pub fn get_type(&self, index: usize) -> ValueType { let ty = self.inner.get_type.unwrap(); let ty = unsafe { ty(self.inner.get_mut(), index) }; @@ -44,8 +48,8 @@ impl List { .get_string .map(|get| unsafe { get(self.inner.get_mut(), index) }) .filter(|ptr| !ptr.is_null()) - .map(|raw| CefString::from(raw)) - .unwrap_or_else(|| CefString::new_empty()) + .map(CefString::from) + .unwrap_or_else(CefString::new_empty) } pub fn set_string(&self, index: usize, string: &CefString) { @@ -106,7 +110,7 @@ impl List { self.inner .get_list .map(|get| unsafe { get(self.inner.get_mut(), index) }) - .and_then(|list_raw| List::try_from_raw(list_raw)) + .and_then(List::try_from_raw) } pub fn set_list(&self, index: usize, list: List) { @@ -126,6 +130,12 @@ impl List { } } +impl Default for List { + fn default() -> Self { + Self::new() + } +} + impl Clone for List { fn clone(&self) -> List { let copy = self.inner.copy.unwrap(); @@ -151,8 +161,8 @@ use cef_sys::cef_value_type_t as cvtype; impl From for ValueType { fn from(value: cvtype::Type) -> ValueType { - use cvtype::*; use ValueType::*; + use cvtype::*; match value { VTYPE_NULL => Null, diff --git a/cef/src/types/string.rs b/cef/src/types/string.rs index b22efa5..ae52f48 100644 --- a/cef/src/types/string.rs +++ b/cef/src/types/string.rs @@ -1,7 +1,8 @@ use cef_sys::{_cef_string_utf16_t, cef_string_userfree_t}; pub use cef_sys::{ - cef_string_t, cef_string_utf16_clear, cef_string_utf16_to_utf8, cef_string_utf8_to_utf16, + cef_string_t, cef_string_utf8_to_utf16, cef_string_utf16_clear, cef_string_utf16_to_utf8, }; +use std::fmt; #[repr(C)] pub struct CefString { @@ -11,7 +12,7 @@ pub struct CefString { impl CefString { pub fn new(text: &str) -> CefString { - let mut string = Self::new_null(); + let string = Self::new_null(); unsafe { cef_string_utf8_to_utf16(text.as_ptr() as *const _, text.len(), string.inner); @@ -45,12 +46,19 @@ impl CefString { pub fn as_cef_string(&self) -> &cef_string_t { unsafe { &*self.inner } } +} - pub fn to_string(&self) -> String { +impl fmt::Display for CefString { + fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { unsafe { let utf16 = &*self.inner; + if utf16.str_.is_null() || utf16.length == 0 { + return Ok(()); + } + let bytes = std::slice::from_raw_parts(utf16.str_, utf16.length); - String::from_utf16_lossy(bytes) + let string = String::from_utf16_lossy(bytes); + f.write_str(&string) } } } @@ -78,9 +86,10 @@ impl From<*const cef_string_t> for CefString { } } +#[allow(clippy::not_unsafe_ptr_arg_deref)] impl From for CefString { fn from(string: cef_string_userfree_t) -> CefString { - let mut cefstr = Self::new_null(); + let cefstr = Self::new_null(); unsafe { let src = &mut *string; @@ -106,7 +115,7 @@ pub fn into_cef_string(string: &str) -> cef_string_t { } unsafe { - widestring::U16CString::from_raw(ptr); + let _ = widestring::U16CString::from_raw(ptr); } } diff --git a/cef/src/v8.rs b/cef/src/v8.rs index 01e6aac..a0aaf8e 100644 --- a/cef/src/v8.rs +++ b/cef/src/v8.rs @@ -2,7 +2,6 @@ use crate::handlers::v8handler::V8Handler; use crate::ref_counted::RefGuard; use crate::types::string::CefString; use cef_sys::{cef_v8context_t, cef_v8value_t}; -use std::sync::Arc; #[derive(Clone)] pub struct V8Context { @@ -20,6 +19,7 @@ impl V8Context { } } + #[allow(dead_code)] pub(crate) fn from_raw_add_ref(raw: *mut cef_v8context_t) -> V8Context { if raw.is_null() { panic!("V8Context::from_raw_add_ref null pointer"); @@ -99,7 +99,7 @@ impl V8Value { V8Value::from_raw(raw) } - pub fn new_function(name: &str, handler: Option>) -> V8Value { + pub fn new_function(name: &str, handler: Option) -> V8Value { let name = CefString::new(name); let handler = handler .map(|handler| crate::rust_to_c::v8handler::wrap(handler)) @@ -204,6 +204,10 @@ impl V8Value { .unwrap_or(0) } + pub fn is_empty(&self) -> bool { + self.len() == 0 + } + pub fn bool(&self) -> bool { self.inner .get_bool_value @@ -225,8 +229,8 @@ impl V8Value { .get_string_value .map(|get_str| unsafe { get_str(self.inner.get_mut()) }) .filter(|ptr| !ptr.is_null()) - .map(|string| CefString::from(string)) - .unwrap_or_else(|| CefString::new_empty()) + .map(CefString::from) + .unwrap_or_else(CefString::new_empty) } pub fn integer(&self) -> i32 { @@ -304,32 +308,36 @@ impl V8Value { } pub fn set_value_by_key(&self, key: &CefString, value: &V8Value) { - self.inner.set_value_bykey.map(|set_val| unsafe { - set_val( - self.inner.get_mut(), - key.as_cef_string(), - value.clone().inner.into_cef(), - cef_sys::cef_v8_propertyattribute_t::V8_PROPERTY_ATTRIBUTE_NONE, - ); - }); + if let Some(set_val) = self.inner.set_value_bykey { + unsafe { + set_val( + self.inner.get_mut(), + key.as_cef_string(), + value.clone().inner.into_cef(), + cef_sys::cef_v8_propertyattribute_t::V8_PROPERTY_ATTRIBUTE_NONE, + ); + } + } } pub fn set_value_by_index(&self, index: usize, value: &V8Value) { - self.inner.set_value_byindex.map(|set_val| unsafe { - set_val( - self.inner.get_mut(), - index as _, - value.clone().inner.into_cef(), - ); - }); + if let Some(set_val) = self.inner.set_value_byindex { + unsafe { + set_val( + self.inner.get_mut(), + index as _, + value.clone().inner.into_cef(), + ); + } + } } pub fn value_by_index(&self, index: usize) -> V8Value { self.inner .get_value_byindex .map(|get_val| unsafe { get_val(self.inner.get_mut(), index as _) }) - .map(|raw| V8Value::from_raw(raw)) - .unwrap_or_else(|| V8Value::new_undefined()) + .map(V8Value::from_raw) + .unwrap_or_else(V8Value::new_undefined) } pub fn is_same(&self, other: &V8Value) -> bool { @@ -340,7 +348,7 @@ impl V8Value { } pub fn register_extension( - extension_name: CefString, javascript_code: CefString, handler: Option>, + extension_name: CefString, javascript_code: CefString, handler: Option, ) { let ptr = handler .map(|handler| crate::rust_to_c::v8handler::wrap(handler)) diff --git a/client/Cargo.toml b/client/Cargo.toml index 5f290e1..0cf6121 100644 --- a/client/Cargo.toml +++ b/client/Cargo.toml @@ -2,7 +2,8 @@ name = "client" version = "0.1.0" authors = ["ZOTTCE "] -edition = "2018" +edition = "2024" +rust-version = "1.93" [lib] crate-type = ["cdylib"] @@ -13,23 +14,23 @@ rodio_audio = [] crash_logger = ["winapi/processthreadsapi", "winapi/psapi", "winapi/excpt"] [dependencies] -encoding_rs = "0.8.20" -client-api = { git = "https://github.com/zottce/samp-client-api.git", rev = "f4dd483" } +encoding_rs = "0.8.35" +client-api = { git = "https://github.com/zottce/samp-client-api.git", rev = "886d15e" } cef = { path = "../cef" } cef-sys = { path = "../cef-sys" } -crossbeam-channel = "0.5.1" -winapi = { version = "0.3.8", features = ["d3d9", "winuser", "libloaderapi", "winver", "consoleapi", "memoryapi", "shlobj"] } +crossbeam-channel = "0.5.15" +winapi = { version = "0.3.9", features = ["d3d9", "winuser", "libloaderapi", "winver", "consoleapi", "memoryapi", "shlobj"] } messages = { path = "../messages" } -quick-protobuf = "0.8.0" -detour = { git = "https://github.com/darfink/detour-rs", rev = "3b6f17a" } -libloading = "0.7.0" +quick-protobuf = "0.8.1" +retour = { version = "0.4.0-alpha.4", features = ["thiscall-abi"] } +libloading = "0.9.0" alto = "3.0.4" -log = "0.4.14" -simplelog = "0.10.0" +log = "0.4.29" +simplelog = "0.12.2" ambisonic = "0.4.1" -nalgebra = "0.29.0" -parking_lot = "0.11.1" -serde = { version = "1.0.124", features = ["derive"] } -serde_json = "1.0.64" +nalgebra = "0.34.1" +parking_lot = "0.12.5" +serde = { version = "1.0.228", features = ["derive"] } +serde_json = "1.0.149" net = { path = "../network", package = "network" } -region = "3.0.0" +region = "3.0.2" diff --git a/client/src/app.rs b/client/src/app.rs index 51ed259..bed38a7 100644 --- a/client/src/app.rs +++ b/client/src/app.rs @@ -14,6 +14,7 @@ use crate::audio::Audio; use crate::browser::manager::{Manager, MouseKey}; use crate::external::CallbackList; use crate::network::NetworkClient; +use crate::static_cell::StaticCell; use client_api::gta::camera::CCamera; use client_api::gta::menu_manager::CMenuManager; @@ -26,12 +27,14 @@ use client_api::wndproc; use crossbeam_channel::{Receiver, Sender}; -use detour::GenericDetour; +use retour::GenericDetour; const CEF_SERVER_PORT_OFFSET: u16 = 2; pub const CEF_PLUGIN_VERSION: i32 = 0x00_01_00; +const CONNECT_BACKOFF_BASE: Duration = Duration::from_secs(1); +const CONNECT_BACKOFF_MAX: Duration = Duration::from_secs(10); -static mut APP: Option = None; +static APP: StaticCell = StaticCell::new(); pub enum Event { Connect(SocketAddr), @@ -80,6 +83,9 @@ pub struct App { window_focused: bool, cef_ready: bool, samp_ready: bool, + bad_version_notified: bool, + connect_backoff: Duration, + next_connect_attempt: Instant, manager: Arc>, audio: Arc