Skip to main content

Module bubble_toggle

Module bubble_toggle 

Source
Expand description

Webcam-bubble visibility state machine (M-BUBBLE.0 / AUT-273).

Mirrors the super::toggle::TrayPopoverState shape — a pure-Rust Hidden ↔ Visible state machine that returns an action enum so the caller in commands.rs is responsible for the Tauri show() / hide() calls. Splitting state from I/O keeps the transition logic cross-OS-testable without a Tauri runtime (CLAUDE.md “Tauri 2 mock_builder aborts at list-time on Windows”).

Enums§

BubbleAction
The action the toggle handler should perform after observing a user click on “Show webcam bubble.” Returning an enum (rather than mutating Tauri windows directly here) keeps this module free of Tauri types so the unit tests don’t need a runtime.
BubbleVisibility
Whether the webcam-bubble window is currently shown to the user.