browsertabs

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BrowserTabsRouteId = "browsertabs"
)

Constants

Variables

This section is empty.

Functions

func GetBrowserTabs

func GetBrowserTabs() map[string]BrowserTabInfo

GetBrowserTabs returns a copy of the current browser tabs map

func GetBrowserTabsForAppName

func GetBrowserTabsForAppName(appName string) []string

GetBrowserTabsForAppName returns a list of browser tabs for a specific app name

func HandleRouteDown

func HandleRouteDown(routeId string)

HandleRouteDown handles route down events to clean up browser tabs

func Initialize

func Initialize()

Initialize sets up the browser tabs tracking system

func RemoveBrowserTab

func RemoveBrowserTab(routeId string)

RemoveBrowserTab removes a browser tab from the tracking map

func UpdateBrowserTab

func UpdateBrowserTab(routeId string, data rpctypes.BrowserTabUrlData)

UpdateBrowserTab updates or adds a browser tab in the tracking map

func UpdateBrowserTabUrl

func UpdateBrowserTabUrl(routeId string, data rpctypes.BrowserTabUrlData) error

UpdateBrowserTabUrl updates the URL for a browser tab

Types

type BrowserTabInfo

type BrowserTabInfo struct {
	AppRunId   string `json:"apprunid"`
	Url        string `json:"url"`
	Focused    bool   `json:"focused"`
	AutoFollow bool   `json:"autofollow"`
}

BrowserTabInfo stores information about a browser tab

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL