control

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClipboardController

type ClipboardController struct {
	// contains filtered or unexported fields
}

ClipboardController handles clipboard operations

func NewClipboardController

func NewClipboardController(webView *webkit.WebView) *ClipboardController

NewClipboardController creates a new clipboard controller

func (*ClipboardController) CopyCurrentURL

func (c *ClipboardController) CopyCurrentURL()

CopyCurrentURL copies the current WebView URL to the clipboard

func (*ClipboardController) Detach added in v0.10.0

func (c *ClipboardController) Detach()

Detach releases the WebView reference when the pane is closed.

type NavigationController struct {
	// contains filtered or unexported fields
}

NavigationController manages navigation functionality

func NewNavigationController

func NewNavigationController(
	parserService *services.ParserService,
	browserService *services.BrowserService,
	webView *webkit.WebView,
	zoomController *ZoomController,
) *NavigationController

NewNavigationController creates a new navigation controller

func (n *NavigationController) Detach()

Detach releases the associated WebView to avoid calls after destruction.

func (n *NavigationController) HandleBrowseCommand()

HandleBrowseCommand processes the browse command line argument

func (n *NavigationController) NavigateToURL(input string) error

NavigateToURL parses input and navigates to the resulting URL

type WebViewInterface

type WebViewInterface interface {
	GetCurrentURL() string
	SetZoom(level float64) error
	InjectScript(script string) error
	RegisterZoomChangedHandler(handler func(float64))
	RegisterURIChangedHandler(handler func(string))
}

WebViewInterface defines the interface for WebView zoom operations

type ZoomController

type ZoomController struct {
	// contains filtered or unexported fields
}

ZoomController manages zoom functionality for the WebView

func NewZoomController

func NewZoomController(browserService *services.BrowserService, webView *webkit.WebView) *ZoomController

NewZoomController creates a new zoom controller

func (*ZoomController) ApplyInitialZoom

func (z *ZoomController) ApplyInitialZoom()

ApplyInitialZoom sets the initial zoom level for the current URL

func (*ZoomController) ApplyZoomForURL

func (z *ZoomController) ApplyZoomForURL(url string)

ApplyZoomForURL applies zoom for a specific URL (used for navigation)

func (*ZoomController) ApplyZoomForURLWithLevel added in v0.9.0

func (z *ZoomController) ApplyZoomForURLWithLevel(url string, zoomLevel float64, allowToast bool)

ApplyZoomForURLWithLevel applies a known zoom level without hitting the database again.

func (*ZoomController) DetachWebView added in v0.10.0

func (z *ZoomController) DetachWebView()

DetachWebView releases the WebView reference and stops timers.

func (*ZoomController) RegisterHandlers

func (z *ZoomController) RegisterHandlers()

RegisterHandlers sets up the zoom-related event handlers

Jump to

Keyboard shortcuts

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