Documentation

Index

Constants

View Source
const (
	LOGSEVERITY_DEFAULT      = C.LOGSEVERITY_DEFAULT
	LOGSEVERITY_VERBOSE      = C.LOGSEVERITY_VERBOSE
	LOGSEVERITY_INFO         = C.LOGSEVERITY_INFO
	LOGSEVERITY_WARNING      = C.LOGSEVERITY_WARNING
	LOGSEVERITY_ERROR        = C.LOGSEVERITY_ERROR
	LOGSEVERITY_ERROR_REPORT = C.LOGSEVERITY_ERROR_REPORT
	LOGSEVERITY_DISABLE      = C.LOGSEVERITY_DISABLE
)

Variables

View Source
var Logger *log.Logger = log.New(os.Stdout, "[cef] ", log.Lshortfile)

Functions

func CreateBrowser

func CreateBrowser(hwnd unsafe.Pointer, browserSettings BrowserSettings,
	url string)

func ExecuteProcess

func ExecuteProcess(appHandle unsafe.Pointer) int

func FillMainArgs

func FillMainArgs(mainArgs *C.struct__cef_main_args_t,
	appHandle unsafe.Pointer)

func FillWindowInfo

func FillWindowInfo(windowInfo *C.cef_window_info_t, hwnd unsafe.Pointer)

func Initialize

func Initialize(settings Settings) int

func QuitMessageLoop

func QuitMessageLoop()

func RunMessageLoop

func RunMessageLoop()

func SetLogger

func SetLogger(logger *log.Logger)

func Shutdown

func Shutdown()

Types

type BrowserSettings

type BrowserSettings struct {
}

type Settings

type Settings struct {
	CachePath        string
	LogSeverity      int
	LogFile          string
	ResourcesDirPath string
	LocalesDirPath   string
}