windowservice

package
v0.9.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTimeout = 2 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseTabRtnType added in v0.9.0

type CloseTabRtnType struct {
	CloseWindow    bool   `json:"closewindow,omitempty"`
	NewActiveTabId string `json:"newactivetabid,omitempty"`
}

type WindowService

type WindowService struct{}

func (*WindowService) CloseTab

func (svc *WindowService) CloseTab(ctx context.Context, windowId string, tabId string, fromElectron bool) (*CloseTabRtnType, waveobj.UpdatesRtnType, error)

returns the new active tabid

func (*WindowService) CloseWindow

func (svc *WindowService) CloseWindow(ctx context.Context, windowId string, fromElectron bool) error

func (*WindowService) MoveBlockToNewWindow

func (svc *WindowService) MoveBlockToNewWindow(ctx context.Context, currentTabId string, blockId string) (waveobj.UpdatesRtnType, error)

func (*WindowService) MoveBlockToNewWindow_Meta

func (svc *WindowService) MoveBlockToNewWindow_Meta() tsgenmeta.MethodMeta

func (*WindowService) SetWindowPosAndSize

func (ws *WindowService) SetWindowPosAndSize(ctx context.Context, windowId string, pos *waveobj.Point, size *waveobj.WinSize) (waveobj.UpdatesRtnType, error)

Jump to

Keyboard shortcuts

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