mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 09:45:41 +00:00
78741af324
Source-Repo: https://github.com/servo/servo Source-Revision: 3f9012864a2cd927cf17a8e11dfa6922add1b7df
54 lines
1.7 KiB
Rust
54 lines
1.7 KiB
Rust
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
//! Just some stubs so that you can link against this library in place of the
|
|
//! Chromium version of CEF. If you call these functions you will assuredly
|
|
//! crash.
|
|
|
|
macro_rules! stub(
|
|
($name:ident) => (
|
|
#[no_mangle]
|
|
pub extern "C" fn $name() {
|
|
println!("CEF stub function called: {}", stringify!($name));
|
|
unsafe {
|
|
::std::intrinsics::abort()
|
|
}
|
|
}
|
|
)
|
|
);
|
|
|
|
stub!(cef_add_cross_origin_whitelist_entry);
|
|
stub!(cef_add_web_plugin_directory);
|
|
stub!(cef_add_web_plugin_path);
|
|
stub!(cef_begin_tracing);
|
|
stub!(cef_clear_cross_origin_whitelist);
|
|
stub!(cef_clear_scheme_handler_factories);
|
|
stub!(cef_create_url);
|
|
stub!(cef_end_tracing);
|
|
stub!(cef_force_web_plugin_shutdown);
|
|
stub!(cef_get_current_platform_thread_handle);
|
|
stub!(cef_get_current_platform_thread_id);
|
|
stub!(cef_get_extensions_for_mime_type);
|
|
stub!(cef_get_geolocation);
|
|
stub!(cef_get_mime_type);
|
|
stub!(cef_get_path);
|
|
stub!(cef_is_web_plugin_unstable);
|
|
stub!(cef_launch_process);
|
|
stub!(cef_now_from_system_trace_time);
|
|
stub!(cef_parse_url);
|
|
stub!(cef_post_delayed_task);
|
|
stub!(cef_post_task);
|
|
stub!(cef_refresh_web_plugins);
|
|
stub!(cef_register_extension);
|
|
stub!(cef_register_scheme_handler_factory);
|
|
stub!(cef_register_web_plugin_crash);
|
|
stub!(cef_remove_cross_origin_whitelist_entry);
|
|
stub!(cef_remove_web_plugin_path);
|
|
stub!(cef_set_osmodal_loop);
|
|
stub!(cef_string_utf16_to_wide);
|
|
stub!(cef_string_wide_to_utf16);
|
|
stub!(cef_unregister_internal_web_plugin);
|
|
stub!(cef_visit_web_plugin_info);
|
|
|