Skip to main content

Crate lingxia_browser_shell

Crate lingxia_browser_shell 

Source
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§

BookmarkEntry
BookmarksSnapshot
Bookmark persistence. Pin identity and order live in lingxia-shell. Entry order within the vec is the bookmark display order.
BrowserAddressInputContext
BrowserAddressInputRequest
BrowserAddressInputResponse
BrowserNavigationPolicyRequest
BrowserNavigationPolicyResponse
BrowserTabInfo

Enums§

BrowserAddressAction
BrowserAddressInputTrigger
BrowserAddressValueKind
BrowserNavigationPolicyDecision

Constants§

APP_ID

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 url bookmarked? false when 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 url from 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, or None when the store is unavailable.
update_history_title
update_tab