// This file was generated by gir (https://github.com/gtk-rs/gir) // from gir-files (https://github.com/gtk-rs/gir-files) // from webkit-gir-files // DO NOT EDIT #![cfg(unix)] use std::env; use std::error::Error; use std::ffi::OsString; use std::mem::{align_of, size_of}; use std::path::Path; use std::process::{Command, Stdio}; use std::str; use tempfile::Builder; use webkit6_sys::*; static PACKAGES: &[&str] = &["webkitgtk-6.0"]; #[derive(Clone, Debug)] struct Compiler { pub args: Vec, } impl Compiler { pub fn new() -> Result> { let mut args = get_var("CC", "cc")?; args.push("-Wno-deprecated-declarations".to_owned()); // For _Generic args.push("-std=c11".to_owned()); // For %z support in printf when using MinGW. args.push("-D__USE_MINGW_ANSI_STDIO".to_owned()); args.extend(get_var("CFLAGS", "")?); args.extend(get_var("CPPFLAGS", "")?); args.extend(pkg_config_cflags(PACKAGES)?); Ok(Self { args }) } pub fn compile(&self, src: &Path, out: &Path) -> Result<(), Box> { let mut cmd = self.to_command(); cmd.arg(src); cmd.arg("-o"); cmd.arg(out); let status = cmd.spawn()?.wait()?; if !status.success() { return Err(format!("compilation command {cmd:?} failed, {status}").into()); } Ok(()) } fn to_command(&self) -> Command { let mut cmd = Command::new(&self.args[0]); cmd.args(&self.args[1..]); cmd } } fn get_var(name: &str, default: &str) -> Result, Box> { match env::var(name) { Ok(value) => Ok(shell_words::split(&value)?), Err(env::VarError::NotPresent) => Ok(shell_words::split(default)?), Err(err) => Err(format!("{name} {err}").into()), } } fn pkg_config_cflags(packages: &[&str]) -> Result, Box> { if packages.is_empty() { return Ok(Vec::new()); } let pkg_config = env::var_os("PKG_CONFIG").unwrap_or_else(|| OsString::from("pkg-config")); let mut cmd = Command::new(pkg_config); cmd.arg("--cflags"); cmd.args(packages); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } let stdout = str::from_utf8(&out.stdout)?; Ok(shell_words::split(stdout.trim())?) } #[derive(Copy, Clone, Debug, Eq, PartialEq)] struct Layout { size: usize, alignment: usize, } #[derive(Copy, Clone, Debug, Default, Eq, PartialEq)] struct Results { /// Number of successfully completed tests. passed: usize, /// Total number of failed tests (including those that failed to compile). failed: usize, } impl Results { fn record_passed(&mut self) { self.passed += 1; } fn record_failed(&mut self) { self.failed += 1; } fn summary(&self) -> String { format!("{} passed; {} failed", self.passed, self.failed) } fn expect_total_success(&self) { if self.failed == 0 { println!("OK: {}", self.summary()); } else { panic!("FAILED: {}", self.summary()); }; } } #[test] fn cross_validate_constants_with_c() { let mut c_constants: Vec<(String, String)> = Vec::new(); for l in get_c_output("constant").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing ';' separator"); c_constants.push((name.to_owned(), value.to_owned())); } let mut results = Results::default(); for ((rust_name, rust_value), (c_name, c_value)) in RUST_CONSTANTS.iter().zip(c_constants.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_value != c_value { results.record_failed(); eprintln!( "Constant value mismatch for {rust_name}\nRust: {rust_value:?}\nC: {c_value:?}", ); continue; } results.record_passed(); } results.expect_total_success(); } #[test] fn cross_validate_layout_with_c() { let mut c_layouts = Vec::new(); for l in get_c_output("layout").unwrap().lines() { let (name, value) = l.split_once(';').expect("Missing first ';' separator"); let (size, alignment) = value.split_once(';').expect("Missing second ';' separator"); let size = size.parse().expect("Failed to parse size"); let alignment = alignment.parse().expect("Failed to parse alignment"); c_layouts.push((name.to_owned(), Layout { size, alignment })); } let mut results = Results::default(); for ((rust_name, rust_layout), (c_name, c_layout)) in RUST_LAYOUTS.iter().zip(c_layouts.iter()) { if rust_name != c_name { results.record_failed(); eprintln!("Name mismatch:\nRust: {rust_name:?}\nC: {c_name:?}"); continue; } if rust_layout != c_layout { results.record_failed(); eprintln!("Layout mismatch for {rust_name}\nRust: {rust_layout:?}\nC: {c_layout:?}",); continue; } results.record_passed(); } results.expect_total_success(); } fn get_c_output(name: &str) -> Result> { let tmpdir = Builder::new().prefix("abi").tempdir()?; let exe = tmpdir.path().join(name); let c_file = Path::new("tests").join(name).with_extension("c"); let cc = Compiler::new().expect("configured compiler"); cc.compile(&c_file, &exe)?; let mut cmd = Command::new(exe); cmd.stderr(Stdio::inherit()); let out = cmd.output()?; if !out.status.success() { let (status, stdout) = (out.status, String::from_utf8_lossy(&out.stdout)); return Err(format!("command {cmd:?} failed, {status:?}\nstdout: {stdout}").into()); } Ok(String::from_utf8(out.stdout)?) } const RUST_LAYOUTS: &[(&str, Layout)] = &[ ( "WebKitAuthenticationRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitAuthenticationScheme", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitAutomationBrowsingContextPresentation", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitAutomationSessionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitAutoplayPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitBackForwardListClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitBackForwardListItemClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitCacheModel", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitClipboardPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitColorChooserRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitContextMenuAction", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitContextMenuClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitContextMenuItemClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitCookieAcceptPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitCookieManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitCookiePersistentStorage", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitCredentialPersistence", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitDeviceInfoPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitDownloadClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitDownloadError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitEditorStateClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitEditorTypingAttributes", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFaviconDatabaseClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFaviconDatabaseError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFeatureStatus", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFileChooserRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFindControllerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFindOptions", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitFormSubmissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitGeolocationManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitGeolocationPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitHardwareAccelerationPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitHitTestResultClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitHitTestResultContext", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitInputHints", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitInputMethodContext", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitInputMethodContextClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitInputPurpose", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitInsecureContentEvent", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitJavascriptError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitLoadEvent", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitMediaCaptureState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitMediaError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitMediaKeySystemPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNavigationPolicyDecisionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNavigationType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNetworkError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNetworkProxyMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNetworkSessionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNotificationClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitNotificationPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitOptionMenuClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPermissionRequestInterface", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPermissionState", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPointerLockPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPolicyDecision", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPolicyDecisionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPolicyDecisionType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPolicyError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPrintError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPrintOperationClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitPrintOperationResponse", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitResponsePolicyDecisionClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSaveMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitScriptDialogType", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSecurityManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSettingsClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSnapshotError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSnapshotOptions", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitSnapshotRegion", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitTLSErrorsPolicy", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitURIRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitURIResponseClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitURISchemeRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitURISchemeResponseClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserContentFilterError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserContentFilterStoreClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserContentInjectedFrames", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserContentManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserMediaPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserMessageClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserMessageError", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserScriptInjectionTime", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitUserStyleLevel", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebContextClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebExtensionMode", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebInspectorClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebProcessTerminationReason", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebResourceClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebView", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebViewBase", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebViewBaseClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebViewClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebsiteDataAccessPermissionRequestClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebsiteDataManagerClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebsiteDataTypes", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWebsitePoliciesClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ( "WebKitWindowPropertiesClass", Layout { size: size_of::(), alignment: align_of::(), }, ), ]; const RUST_CONSTANTS: &[(&str, &str)] = &[ ( "(gint) WEBKIT_AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE_PIN_REQUESTED", "9", ), ( "(gint) WEBKIT_AUTHENTICATION_SCHEME_CLIENT_CERTIFICATE_REQUESTED", "7", ), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_DEFAULT", "1"), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_HTML_FORM", "4"), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_HTTP_BASIC", "2"), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_HTTP_DIGEST", "3"), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_NEGOTIATE", "6"), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_NTLM", "5"), ( "(gint) WEBKIT_AUTHENTICATION_SCHEME_SERVER_TRUST_EVALUATION_REQUESTED", "8", ), ("(gint) WEBKIT_AUTHENTICATION_SCHEME_UNKNOWN", "100"), ( "(gint) WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_TAB", "1", ), ( "(gint) WEBKIT_AUTOMATION_BROWSING_CONTEXT_PRESENTATION_WINDOW", "0", ), ("(gint) WEBKIT_AUTOPLAY_ALLOW", "0"), ("(gint) WEBKIT_AUTOPLAY_ALLOW_WITHOUT_SOUND", "1"), ("(gint) WEBKIT_AUTOPLAY_DENY", "2"), ("(gint) WEBKIT_CACHE_MODEL_DOCUMENT_BROWSER", "2"), ("(gint) WEBKIT_CACHE_MODEL_DOCUMENT_VIEWER", "0"), ("(gint) WEBKIT_CACHE_MODEL_WEB_BROWSER", "1"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_BOLD", "27"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY", "14"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY_AUDIO_LINK_TO_CLIPBOARD", "35", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_TO_CLIPBOARD", "7", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY_IMAGE_URL_TO_CLIPBOARD", "8", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY_LINK_TO_CLIPBOARD", "4", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_COPY_VIDEO_LINK_TO_CLIPBOARD", "34", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_CUSTOM", "10000"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_CUT", "15"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_DELETE", "17"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_AUDIO_TO_DISK", "43", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_IMAGE_TO_DISK", "6", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_LINK_TO_DISK", "3", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_DOWNLOAD_VIDEO_TO_DISK", "42", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_ENTER_VIDEO_FULLSCREEN", "38", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_FONT_MENU", "26"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_GO_BACK", "10"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_GO_FORWARD", "11"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_IGNORE_GRAMMAR", "25"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_IGNORE_SPELLING", "23"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_INPUT_METHODS", "19"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_INSERT_EMOJI", "44"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_INSPECT_ELEMENT", "31"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_ITALIC", "28"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_LEARN_SPELLING", "24"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_MEDIA_MUTE", "41"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PAUSE", "40"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_MEDIA_PLAY", "39"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_NO_ACTION", "0"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_NO_GUESSES_FOUND", "22"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_AUDIO_IN_NEW_WINDOW", "33", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_FRAME_IN_NEW_WINDOW", "9", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_IMAGE_IN_NEW_WINDOW", "5", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK", "1"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_LINK_IN_NEW_WINDOW", "2", ), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_OPEN_VIDEO_IN_NEW_WINDOW", "32", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_OUTLINE", "30"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_PASTE", "16"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_PASTE_AS_PLAIN_TEXT", "45", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_RELOAD", "13"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_SELECT_ALL", "18"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_SPELLING_GUESS", "21"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_STOP", "12"), ( "(gint) WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_CONTROLS", "36", ), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_TOGGLE_MEDIA_LOOP", "37"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_UNDERLINE", "29"), ("(gint) WEBKIT_CONTEXT_MENU_ACTION_UNICODE", "20"), ("(gint) WEBKIT_COOKIE_PERSISTENT_STORAGE_SQLITE", "1"), ("(gint) WEBKIT_COOKIE_PERSISTENT_STORAGE_TEXT", "0"), ("(gint) WEBKIT_COOKIE_POLICY_ACCEPT_ALWAYS", "0"), ("(gint) WEBKIT_COOKIE_POLICY_ACCEPT_NEVER", "1"), ("(gint) WEBKIT_COOKIE_POLICY_ACCEPT_NO_THIRD_PARTY", "2"), ("(gint) WEBKIT_CREDENTIAL_PERSISTENCE_FOR_SESSION", "1"), ("(gint) WEBKIT_CREDENTIAL_PERSISTENCE_NONE", "0"), ("(gint) WEBKIT_CREDENTIAL_PERSISTENCE_PERMANENT", "2"), ("(gint) WEBKIT_DOWNLOAD_ERROR_CANCELLED_BY_USER", "400"), ("(gint) WEBKIT_DOWNLOAD_ERROR_DESTINATION", "401"), ("(gint) WEBKIT_DOWNLOAD_ERROR_NETWORK", "499"), ("WEBKIT_EDITING_COMMAND_COPY", "Copy"), ("WEBKIT_EDITING_COMMAND_CREATE_LINK", "CreateLink"), ("WEBKIT_EDITING_COMMAND_CUT", "Cut"), ("WEBKIT_EDITING_COMMAND_INSERT_IMAGE", "InsertImage"), ("WEBKIT_EDITING_COMMAND_PASTE", "Paste"), ( "WEBKIT_EDITING_COMMAND_PASTE_AS_PLAIN_TEXT", "PasteAsPlainText", ), ("WEBKIT_EDITING_COMMAND_REDO", "Redo"), ("WEBKIT_EDITING_COMMAND_SELECT_ALL", "SelectAll"), ("WEBKIT_EDITING_COMMAND_UNDO", "Undo"), ("(guint) WEBKIT_EDITOR_TYPING_ATTRIBUTE_BOLD", "4"), ("(guint) WEBKIT_EDITOR_TYPING_ATTRIBUTE_ITALIC", "8"), ("(guint) WEBKIT_EDITOR_TYPING_ATTRIBUTE_NONE", "2"), ("(guint) WEBKIT_EDITOR_TYPING_ATTRIBUTE_STRIKETHROUGH", "32"), ("(guint) WEBKIT_EDITOR_TYPING_ATTRIBUTE_UNDERLINE", "16"), ( "(gint) WEBKIT_FAVICON_DATABASE_ERROR_FAVICON_NOT_FOUND", "1", ), ("(gint) WEBKIT_FAVICON_DATABASE_ERROR_FAVICON_UNKNOWN", "2"), ("(gint) WEBKIT_FAVICON_DATABASE_ERROR_NOT_INITIALIZED", "0"), ("(gint) WEBKIT_FEATURE_STATUS_DEVELOPER", "3"), ("(gint) WEBKIT_FEATURE_STATUS_EMBEDDER", "0"), ("(gint) WEBKIT_FEATURE_STATUS_INTERNAL", "2"), ("(gint) WEBKIT_FEATURE_STATUS_MATURE", "7"), ("(gint) WEBKIT_FEATURE_STATUS_PREVIEW", "5"), ("(gint) WEBKIT_FEATURE_STATUS_STABLE", "6"), ("(gint) WEBKIT_FEATURE_STATUS_TESTABLE", "4"), ("(gint) WEBKIT_FEATURE_STATUS_UNSTABLE", "1"), ("(guint) WEBKIT_FIND_OPTIONS_AT_WORD_STARTS", "2"), ("(guint) WEBKIT_FIND_OPTIONS_BACKWARDS", "8"), ("(guint) WEBKIT_FIND_OPTIONS_CASE_INSENSITIVE", "1"), ("(guint) WEBKIT_FIND_OPTIONS_NONE", "0"), ( "(guint) WEBKIT_FIND_OPTIONS_TREAT_MEDIAL_CAPITAL_AS_WORD_START", "4", ), ("(guint) WEBKIT_FIND_OPTIONS_WRAP_AROUND", "16"), ("(gint) WEBKIT_HARDWARE_ACCELERATION_POLICY_ALWAYS", "0"), ("(gint) WEBKIT_HARDWARE_ACCELERATION_POLICY_NEVER", "1"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_DOCUMENT", "2"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_EDITABLE", "32"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_IMAGE", "8"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_LINK", "4"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_MEDIA", "16"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_SCROLLBAR", "64"), ("(guint) WEBKIT_HIT_TEST_RESULT_CONTEXT_SELECTION", "128"), ("(guint) WEBKIT_INPUT_HINT_INHIBIT_OSK", "32"), ("(guint) WEBKIT_INPUT_HINT_LOWERCASE", "2"), ("(guint) WEBKIT_INPUT_HINT_NONE", "0"), ("(guint) WEBKIT_INPUT_HINT_SPELLCHECK", "1"), ("(guint) WEBKIT_INPUT_HINT_UPPERCASE_CHARS", "4"), ("(guint) WEBKIT_INPUT_HINT_UPPERCASE_SENTENCES", "16"), ("(guint) WEBKIT_INPUT_HINT_UPPERCASE_WORDS", "8"), ("(gint) WEBKIT_INPUT_PURPOSE_DIGITS", "1"), ("(gint) WEBKIT_INPUT_PURPOSE_EMAIL", "5"), ("(gint) WEBKIT_INPUT_PURPOSE_FREE_FORM", "0"), ("(gint) WEBKIT_INPUT_PURPOSE_NUMBER", "2"), ("(gint) WEBKIT_INPUT_PURPOSE_PASSWORD", "6"), ("(gint) WEBKIT_INPUT_PURPOSE_PHONE", "3"), ("(gint) WEBKIT_INPUT_PURPOSE_URL", "4"), ("(gint) WEBKIT_INSECURE_CONTENT_DISPLAYED", "1"), ("(gint) WEBKIT_INSECURE_CONTENT_RUN", "0"), ("(gint) WEBKIT_JAVASCRIPT_ERROR_INVALID_PARAMETER", "600"), ("(gint) WEBKIT_JAVASCRIPT_ERROR_INVALID_RESULT", "601"), ("(gint) WEBKIT_JAVASCRIPT_ERROR_SCRIPT_FAILED", "699"), ("(gint) WEBKIT_LOAD_COMMITTED", "2"), ("(gint) WEBKIT_LOAD_FINISHED", "3"), ("(gint) WEBKIT_LOAD_REDIRECTED", "1"), ("(gint) WEBKIT_LOAD_STARTED", "0"), ("(gint) WEBKIT_MEDIA_CAPTURE_STATE_ACTIVE", "1"), ("(gint) WEBKIT_MEDIA_CAPTURE_STATE_MUTED", "2"), ("(gint) WEBKIT_MEDIA_CAPTURE_STATE_NONE", "0"), ("(gint) WEBKIT_MEDIA_ERROR_WILL_HANDLE_LOAD", "204"), ("(gint) WEBKIT_NAVIGATION_TYPE_BACK_FORWARD", "2"), ("(gint) WEBKIT_NAVIGATION_TYPE_FORM_RESUBMITTED", "4"), ("(gint) WEBKIT_NAVIGATION_TYPE_FORM_SUBMITTED", "1"), ("(gint) WEBKIT_NAVIGATION_TYPE_LINK_CLICKED", "0"), ("(gint) WEBKIT_NAVIGATION_TYPE_OTHER", "5"), ("(gint) WEBKIT_NAVIGATION_TYPE_RELOAD", "3"), ("(gint) WEBKIT_NETWORK_ERROR_CANCELLED", "302"), ("(gint) WEBKIT_NETWORK_ERROR_FAILED", "399"), ("(gint) WEBKIT_NETWORK_ERROR_FILE_DOES_NOT_EXIST", "303"), ("(gint) WEBKIT_NETWORK_ERROR_TRANSPORT", "300"), ("(gint) WEBKIT_NETWORK_ERROR_UNKNOWN_PROTOCOL", "301"), ("(gint) WEBKIT_NETWORK_PROXY_MODE_CUSTOM", "2"), ("(gint) WEBKIT_NETWORK_PROXY_MODE_DEFAULT", "0"), ("(gint) WEBKIT_NETWORK_PROXY_MODE_NO_PROXY", "1"), ("(gint) WEBKIT_PERMISSION_STATE_DENIED", "1"), ("(gint) WEBKIT_PERMISSION_STATE_GRANTED", "0"), ("(gint) WEBKIT_PERMISSION_STATE_PROMPT", "2"), ("(gint) WEBKIT_POLICY_DECISION_TYPE_NAVIGATION_ACTION", "0"), ("(gint) WEBKIT_POLICY_DECISION_TYPE_NEW_WINDOW_ACTION", "1"), ("(gint) WEBKIT_POLICY_DECISION_TYPE_RESPONSE", "2"), ("(gint) WEBKIT_POLICY_ERROR_CANNOT_SHOW_MIME_TYPE", "100"), ("(gint) WEBKIT_POLICY_ERROR_CANNOT_SHOW_URI", "101"), ( "(gint) WEBKIT_POLICY_ERROR_CANNOT_USE_RESTRICTED_PORT", "103", ), ("(gint) WEBKIT_POLICY_ERROR_FAILED", "199"), ( "(gint) WEBKIT_POLICY_ERROR_FRAME_LOAD_INTERRUPTED_BY_POLICY_CHANGE", "102", ), ("(gint) WEBKIT_PRINT_ERROR_GENERAL", "599"), ("(gint) WEBKIT_PRINT_ERROR_INVALID_PAGE_RANGE", "501"), ("(gint) WEBKIT_PRINT_ERROR_PRINTER_NOT_FOUND", "500"), ("(gint) WEBKIT_PRINT_OPERATION_RESPONSE_CANCEL", "1"), ("(gint) WEBKIT_PRINT_OPERATION_RESPONSE_PRINT", "0"), ("(gint) WEBKIT_SAVE_MODE_MHTML", "0"), ("(gint) WEBKIT_SCRIPT_DIALOG_ALERT", "0"), ("(gint) WEBKIT_SCRIPT_DIALOG_BEFORE_UNLOAD_CONFIRM", "3"), ("(gint) WEBKIT_SCRIPT_DIALOG_CONFIRM", "1"), ("(gint) WEBKIT_SCRIPT_DIALOG_PROMPT", "2"), ("(gint) WEBKIT_SNAPSHOT_ERROR_FAILED_TO_CREATE", "799"), ( "(guint) WEBKIT_SNAPSHOT_OPTIONS_INCLUDE_SELECTION_HIGHLIGHTING", "1", ), ("(guint) WEBKIT_SNAPSHOT_OPTIONS_NONE", "0"), ( "(guint) WEBKIT_SNAPSHOT_OPTIONS_TRANSPARENT_BACKGROUND", "2", ), ("(gint) WEBKIT_SNAPSHOT_REGION_FULL_DOCUMENT", "1"), ("(gint) WEBKIT_SNAPSHOT_REGION_VISIBLE", "0"), ("(gint) WEBKIT_TLS_ERRORS_POLICY_FAIL", "1"), ("(gint) WEBKIT_TLS_ERRORS_POLICY_IGNORE", "0"), ( "(gint) WEBKIT_USER_CONTENT_FILTER_ERROR_INVALID_SOURCE", "0", ), ("(gint) WEBKIT_USER_CONTENT_FILTER_ERROR_NOT_FOUND", "1"), ("(gint) WEBKIT_USER_CONTENT_INJECT_ALL_FRAMES", "0"), ("(gint) WEBKIT_USER_CONTENT_INJECT_TOP_FRAME", "1"), ("(gint) WEBKIT_USER_MESSAGE_UNHANDLED_MESSAGE", "0"), ("(gint) WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_END", "1"), ("(gint) WEBKIT_USER_SCRIPT_INJECT_AT_DOCUMENT_START", "0"), ("(gint) WEBKIT_USER_STYLE_LEVEL_AUTHOR", "1"), ("(gint) WEBKIT_USER_STYLE_LEVEL_USER", "0"), ("(guint) WEBKIT_WEBSITE_DATA_ALL", "4095"), ("(guint) WEBKIT_WEBSITE_DATA_COOKIES", "64"), ("(guint) WEBKIT_WEBSITE_DATA_DEVICE_ID_HASH_SALT", "128"), ("(guint) WEBKIT_WEBSITE_DATA_DISK_CACHE", "2"), ("(guint) WEBKIT_WEBSITE_DATA_DOM_CACHE", "2048"), ("(guint) WEBKIT_WEBSITE_DATA_HSTS_CACHE", "256"), ("(guint) WEBKIT_WEBSITE_DATA_INDEXEDDB_DATABASES", "32"), ("(guint) WEBKIT_WEBSITE_DATA_ITP", "512"), ("(guint) WEBKIT_WEBSITE_DATA_LOCAL_STORAGE", "16"), ("(guint) WEBKIT_WEBSITE_DATA_MEMORY_CACHE", "1"), ("(guint) WEBKIT_WEBSITE_DATA_OFFLINE_APPLICATION_CACHE", "4"), ( "(guint) WEBKIT_WEBSITE_DATA_SERVICE_WORKER_REGISTRATIONS", "1024", ), ("(guint) WEBKIT_WEBSITE_DATA_SESSION_STORAGE", "8"), ("(gint) WEBKIT_WEB_EXTENSION_MODE_MANIFESTV2", "1"), ("(gint) WEBKIT_WEB_EXTENSION_MODE_MANIFESTV3", "2"), ("(gint) WEBKIT_WEB_EXTENSION_MODE_NONE", "0"), ("(gint) WEBKIT_WEB_PROCESS_CRASHED", "0"), ("(gint) WEBKIT_WEB_PROCESS_EXCEEDED_MEMORY_LIMIT", "1"), ("(gint) WEBKIT_WEB_PROCESS_TERMINATED_BY_API", "2"), ];