Expand description
Shell product module and host registrations for LingXia.
This crate owns product-level shell behavior on top of the generic runtime crates: address-bar resolution, downloads, settings, panels, and bundled browser assets. Platform SDK crates own their native shell UI.
Structs§
- Bookmark
Entry - Bookmarks
Snapshot - Bookmark persistence. Pin identity and order live in
lingxia-shell. Entry order within the vec is the bookmark display order. - Browser
Address Input Context - Browser
Address Input Request - Browser
Address Input Response - Browser
Navigation Policy Request - Browser
Navigation Policy Response - Browser
TabInfo
Enums§
- Browser
Address Action - Browser
Address Input Trigger - Browser
Address Value Kind - Browser
Navigation Policy Decision
Constants§
Functions§
- bookmark_
favicon_ path - Absolute path to Rust’s cached favicon for
url. A missing or stale cache entry is refreshed asynchronously; native chrome is notified when ready. - bookmarks_
command_ json - One in-place management command from native chrome (sidebar menus), as
JSON:
{"op": "rename" | "move" | "createGroupAndMove" | "renameGroup" | "deleteGroup", ...}. Returns false on any error. - bookmarks_
snapshot - Typed bookmark snapshot for native shell chrome. Pin identity and order
come from
lingxia-shell, not this bookmark store. - bookmarks_
snapshot_ json - Full snapshot as JSON for native chrome (sidebar bookmarks section).
- classify_
navigation - classify_
navigation_ json - close
- download
- is_
bookmarked - Is
urlbookmarked?falsewhen the runtime is not up or the store is unreadable — the chrome star simply shows unstarred. - normalize_
bookmark_ url - Stable comparison key used by native chrome when matching a stored bookmark to an open tab.
- open
- open_
for_ app - open_
panel_ lxapp - panel_
item_ for_ id - panels_
config_ json - pin_
bookmark_ url - pin_
bookmark_ url_ with_ favicon - Pin a URL and cache its current favicon outside the bookmark JSON.
- record_
history_ visit - remove_
bookmark_ by_ url - Remove
urlfrom bookmarks (sidebar row action). True when removed. - resolve_
input - resolve_
input_ json - set_
bookmarks_ change_ listener - Register the chrome-side change callback; fires after every mutation.
- set_
display_ language_ change_ listener - should_
hide_ url - store_
bookmark_ favicon - Store favicon bytes the platform webview already resolved (page-declared icon link) into the shared cross-platform cache — the ONE favicon store pins, sidebar tab rows, and the docked browser all read — and wake native chrome so pin tiles pick it up.
- tab_
path - toggle_
bookmark - Toggle
url(chrome star / ⌘D). Returns the new bookmarked state, orNonewhen the store is unavailable. - update_
history_ title - update_
tab