chrome

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Rendered for js/wasm

Index

Constants

View Source
const CurrentWindow = WindowID(0)

Variables

This section is empty.

Functions

This section is empty.

Types

type AllBookmarks

type AllBookmarks interface {
	GetTree() []BookmarkNode
}

func Bookmarks

func Bookmarks() AllBookmarks

type AllTabs

type AllTabs interface {
	js.JSRef
	GetCurrent() Tab
	GetSelected(window WindowID) Tab
	GetAllInWindow(window WindowID) []Tab
}

func Tabs

func Tabs() AllTabs

type BookmarkNode

type BookmarkNode interface {
	js.JSRef
	ID() string
	ParentID() string
	Index() int
	URL() string
	Title() string
	Children() []BookmarkNode
}

type Tab

type Tab interface {
	js.JSRef
	ID() int
	Active() bool
	Incognito() bool
	Highlighted() bool
	Pinned() bool
	Selected() bool
	Index() int
	WindowID() int
	URL() string
	Title() string
	Size() (w, h int)
}

type WindowID

type WindowID int

Directories

Path Synopsis
Package native provides an API for Native Messaging for Chrome extensions.
Package native provides an API for Native Messaging for Chrome extensions.

Jump to

Keyboard shortcuts

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