Module WebviewStateDTO

Module WebviewStateDTO 

Source
Expand description

§WebviewStateDTO

§RESPONSIBILITY

  • Data transfer object for Webview panel state
  • Serializable format for gRPC/IPC transmission
  • Used by Mountain to track Webview lifecycle

§FIELDS

  • Handle: Unique Webview UUID
  • ViewType: Extension-defined view type
  • Title: Current panel title
  • ContentOptions: Web content and security settings
  • PanelOptions: Panel behavior options
  • SideCarIdentifier: Host sidecar process ID
  • ExtensionIdentifier: Owner extension ID
  • IsActive: Focus state flag
  • IsVisible: Visibility state flag

Structs§

WebviewStateDTO
A struct that holds the complete state for a single Webview panel instance. This is stored in ApplicationState to track all active Webviews managed by the host.

Constants§

MAX_EXTENSION_IDENTIFIER_LENGTH 🔒
Maximum extension identifier length
MAX_HANDLE_LENGTH 🔒
Maximum handle length (UUID string)
MAX_SIDECAR_IDENTIFIER_LENGTH 🔒
Maximum sidecar identifier length
MAX_TITLE_LENGTH 🔒
Maximum title length
MAX_VIEW_TYPE_LENGTH 🔒
Maximum view type length