Skip to main content

tauri_runtime_cef/
lib.rs

1// Copyright 2019-2024 Tauri Programme within The Commons Conservancy
2// SPDX-License-Identifier: Apache-2.0
3// SPDX-License-Identifier: MIT
4
5#![allow(clippy::arc_with_non_send_sync)]
6#![allow(clippy::too_many_arguments)]
7
8mod cef_impl;
9mod devtools;
10mod dialog;
11/// The `Last Version` breadcrumb in the root cache path, and what a rollback to an older CEF
12/// does with the profile a newer one left there.
13mod downgrade;
14/// The diagnostic environment variables Chromium and CEF read, and the policy over them.
15mod environment;
16mod external_message_pump;
17mod frame;
18pub use dialog::{
19  NativeDialogKind, NativeDialogObservation, NativeDialogSnapshot, NativeDialogToken,
20};
21pub use environment::DebugEnvironment;
22mod frame_navigation;
23/// The languages the user asked their operating system for.
24mod locale;
25mod macros;
26mod offscreen;
27pub use offscreen::{CursorHandler, Offscreen, OffscreenView};
28mod platform;
29mod popup;
30mod runtime;
31// `SandboxPolicy` itself is public API and lives in `runtime`; this module holds the
32// decision behind it.
33mod sandbox;
34/// Helpers for the Chromium command line the runtime hands to CEF.
35mod switches;
36mod tauri_ext;
37mod webview;
38pub use devtools::{DevToolsMessageIdExhausted, allocate_devtools_message_id};
39pub use frame::{FrameEvent, FrameEventHandler, FrameEventKind};
40pub use frame_navigation::{FrameNavigationState, NativeDocumentToken};
41mod window;
42mod window_builder;
43mod window_handle;
44
45pub use cef::sys::CEF_API_VERSION_LAST;
46#[cfg(target_os = "macos")]
47pub use platform::macos::setup_application as prepare_macos_application;
48pub use runtime::*;
49pub use tauri_ext::*;
50/// Marks the application entry point so non-browser CEF processes (renderer, GPU, ...) are handled.
51pub use tauri_macros::cef_entry_point;
52pub use webview::*;
53pub use window::{CefWindowDispatcher, NativeWindowToken};
54pub use window_builder::WindowBuilderWrapper;