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
type NavigationController ¶
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 (*NavigationController) HandleBrowseCommand ¶
func (n *NavigationController) HandleBrowseCommand()
HandleBrowseCommand processes the browse command line argument
func (*NavigationController) NavigateToURL ¶
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) RegisterHandlers ¶
func (z *ZoomController) RegisterHandlers()
RegisterHandlers sets up the zoom-related event handlers