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§
- Bubble
Action - 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.
- Bubble
Visibility - Whether the
webcam-bubblewindow is currently shown to the user.