Documentation ¶
Overview ¶
Code generated by "gen-cefingo.go" DO NOT EDIT.
Code generated by "gen-cefingo.go" DO NOT EDIT.
Code generated by "gen-cefingo.go" DO NOT EDIT.
Index ¶
- Variables
- func BaseAddRef(rc refCounted)
- func BaseHasAtLeastOneRef(rc refCounted) bool
- func BaseHasOneRef(rc refCounted) bool
- func BaseRelease(rc refCounted) (b bool)
- func BrowserHostCreateBrowser(window_name, url_string string, client *CClientT)
- func ClearSchemeHandlerFactories() bool
- func CurrentlyOn(threadId CThreadIdT) bool
- func DoMessageLoopWork()
- func EnableHighdpiSupport()
- func ExecuteProcess(app *CAppT)
- func Initialize(s Settings, app *CAppT)
- func IsCertStatusError(status CCertStatusT) bool
- func IsCertStatusMinorError(status CCertStatusT) bool
- func IsWebPluginUnstable(path string, callback *CWebPluginUnstableCallbackT)
- func Logf(message string, v ...interface{})
- func Panicf(message string, v ...interface{})
- func PostDelayedTask(threadId CThreadIdT, task *CTaskT, delay_ms int64) bool
- func PostTask(threadId CThreadIdT, task *CTaskT) bool
- func QuitMessageLoop()
- func RefCountLogOutput(enable bool)
- func RefCountLogTrace(on bool)
- func RefreshWebPlugins()
- func RegisterExtension(extension_name string, javascript_code string, handler *CV8handlerT) bool
- func RegisterSchemeHandlerFactory(scheme_name string, domain_name string, factory *CSchemeHandlerFactoryT) bool
- func RegisterWebPluginCrash(path string)
- func RegisterWidevineCdm(path string, callback *CRegisterCdmCallbackT)
- func RunMessageLoop()
- func SetOsmodalLoop(osModalLoop int)
- func Shutdown()
- func StringListAppend(list CStringListT, value string)
- func StringListClear(list CStringListT)
- func StringListFree(list CStringListT)
- func StringListSize(list CStringListT) int64
- func StringListValue(list CStringListT, index int) (s string, err error)
- func StringMapAppend(cmap CStringMapT, key string, value string) bool
- func StringMapClear(cmap CStringMapT)
- func StringMapFind(smap CStringMapT, key string) (value string, err error)
- func StringMapFree(cmap CStringMapT)
- func StringMapKey(cmap CStringMapT, index int) (key string, err error)
- func StringMapSize(cmap CStringMapT) int64
- func StringMapValue(cmap CStringMapT, index int) (value string, err error)
- func StringMultimapAppend(cmap CStringMultimapT, key string, value string) bool
- func StringMultimapClear(cmap CStringMultimapT)
- func StringMultimapEnumerate(cmap CStringMultimapT, key string, value_index int) (value string, err error)
- func StringMultimapFindCount(cmap CStringMultimapT, key string) int64
- func StringMultimapFree(cmap CStringMultimapT)
- func StringMultimapKey(cmap CStringMultimapT, index int) (key string, err error)
- func StringMultimapSize(cmap CStringMultimapT) int64
- func StringMultimapValue(cmap CStringMultimapT, index int) (value string, err error)
- func TimeDelta(cef_time1 *CTimeT, cef_time2 *CTimeT, delta *int64) bool
- func TimeFromDoublet(ctime float64, cef_time *CTimeT) bool
- func TimeFromTimet(ctime time.Time, cef_time *CTimeT) bool
- func TimeNow(cef_time *CTimeT) bool
- func TimeToDoublet(cef_time *CTimeT, ctime *float64) bool
- func TimeToTimet(cef_time *CTimeT, ctime *time.Time) bool
- func Tracef(p unsafe.Pointer, message string, v ...interface{})
- func UnregisterInternalWebPlugin(path string)
- func V8contextInContext() bool
- func VisitWebPluginInfo(visitor *CWebPluginInfoVisitorT)
- type CAccessibilityHandlerT
- type CAccessibilityHandlerTAccessor
- type CAlphaTypeT
- type CAppT
- func (app *CAppT) AssocBrowserProcessHandlerT(handler *CBrowserProcessHandlerT)
- func (app *CAppT) AssocRenderProcessHandlerT(handler *CRenderProcessHandlerT)
- func (app *CAppT) AssocResourceBundleHandlerT(handler *CResourceBundleHandlerT)
- func (app *CAppT) Bind(a interface{}) *CAppT
- func (app *CAppT) HasOneRef() bool
- type CAppTAccessor
- type CAudioHandlerT
- type CAudioHandlerTAccessor
- type CAuthCallbackT
- type CAuthCallbackTAccessor
- type CBeforeDownloadCallbackT
- type CBeforeDownloadCallbackTAccessor
- type CBinaryValueT
- func (self *CBinaryValueT) Copy() *CBinaryValueT
- func (self *CBinaryValueT) GetData(buffer unsafe.Pointer, buffer_size int64, data_offset int64) int64
- func (self *CBinaryValueT) GetSize() int64
- func (binary_value *CBinaryValueT) HasOneRef() bool
- func (self *CBinaryValueT) IsEqual(that *CBinaryValueT) bool
- func (self *CBinaryValueT) IsOwned() bool
- func (self *CBinaryValueT) IsSame(that *CBinaryValueT) bool
- func (self *CBinaryValueT) IsValid() bool
- type CBinaryValueTAccessor
- type CBoxLayoutSettingsT
- type CBrowserHostT
- func (self *CBrowserHostT) AddWordToDictionary(word string)
- func (self *CBrowserHostT) CloseBrowser(force_close int)
- func (self *CBrowserHostT) CloseDevTools()
- func (self *CBrowserHostT) DownloadImage(image_url string, is_favicon int, max_image_size uint32, bypass_cache int, ...)
- func (self *CBrowserHostT) DragSourceEndedAt(x int, y int, op CDragOperationsMaskT)
- func (self *CBrowserHostT) DragSourceSystemDragEnded()
- func (self *CBrowserHostT) DragTargetDragEnter(drag_data *CDragDataT, event *CMouseEventT, allowed_ops CDragOperationsMaskT)
- func (self *CBrowserHostT) DragTargetDragLeave()
- func (self *CBrowserHostT) DragTargetDragOver(event *CMouseEventT, allowed_ops CDragOperationsMaskT)
- func (self *CBrowserHostT) DragTargetDrop(event *CMouseEventT)
- func (self *CBrowserHostT) Find(identifier int, searchText string, forward int, matchCase int, findNext int)
- func (self *CBrowserHostT) GetBrowser() *CBrowserT
- func (self *CBrowserHostT) GetClient() *CClientT
- func (self *CBrowserHostT) GetExtension() *CExtensionT
- func (self *CBrowserHostT) GetNavigationEntries(visitor *CNavigationEntryVisitorT, current_only int)
- func (self *CBrowserHostT) GetOpenerWindowHandle() CWindowHandleT
- func (self *CBrowserHostT) GetRequestContext() *CRequestContextT
- func (self *CBrowserHostT) GetVisibleNavigationEntry() *CNavigationEntryT
- func (self *CBrowserHostT) GetWindowHandle() CWindowHandleT
- func (self *CBrowserHostT) GetWindowlessFrameRate() bool
- func (self *CBrowserHostT) GetZoomLevel() float64
- func (self *CBrowserHostT) HasDevTools() bool
- func (browser_host *CBrowserHostT) HasOneRef() bool
- func (self *CBrowserHostT) HasView() bool
- func (self *CBrowserHostT) ImeCancelComposition()
- func (self *CBrowserHostT) ImeCommitText(text string, replacement_range *CRangeT, relative_cursor_pos int)
- func (self *CBrowserHostT) ImeFinishComposingText(keep_selection int)
- func (self *CBrowserHostT) ImeSetComposition(text string, underlinesCount int64, underlines *CCompositionUnderlineT, ...)
- func (self *CBrowserHostT) Invalidate(ctype CPaintElementTypeT)
- func (self *CBrowserHostT) IsAudioMuted() bool
- func (self *CBrowserHostT) IsBackgroundHost() bool
- func (self *CBrowserHostT) IsMouseCursorChangeDisabled() bool
- func (self *CBrowserHostT) IsWindowRenderingDisabled() bool
- func (self *CBrowserHostT) NotifyMoveOrResizeStarted()
- func (self *CBrowserHostT) NotifyScreenInfoChanged()
- func (self *CBrowserHostT) Print()
- func (self *CBrowserHostT) PrintToPdf(path string, settings *CPdfPrintSettingsT, callback *CPdfPrintCallbackT)
- func (self *CBrowserHostT) ReplaceMisspelling(word string)
- func (self *CBrowserHostT) RunFileDialog(mode CFileDialogModeT, title string, default_file_path string, ...)
- func (self *CBrowserHostT) SendCaptureLostEvent()
- func (self *CBrowserHostT) SendExternalBeginFrame()
- func (self *CBrowserHostT) SendFocusEvent(setFocus int)
- func (self *CBrowserHostT) SendKeyEvent(event *CKeyEventT)
- func (self *CBrowserHostT) SendMouseClickEvent(event *CMouseEventT, ctype CMouseButtonTypeT, mouseUp int, clickCount int)
- func (self *CBrowserHostT) SendMouseMoveEvent(event *CMouseEventT, mouseLeave int)
- func (self *CBrowserHostT) SendMouseWheelEvent(event *CMouseEventT, deltaX int, deltaY int)
- func (self *CBrowserHostT) SendTouchEvent(event *CTouchEventT)
- func (self *CBrowserHostT) SetAccessibilityState(accessibility_state CStateT)
- func (self *CBrowserHostT) SetAudioMuted(mute int)
- func (self *CBrowserHostT) SetAutoResizeEnabled(enabled int, min_size *CSizeT, max_size *CSizeT)
- func (self *CBrowserHostT) SetFocus(focus int)
- func (self *CBrowserHostT) SetMouseCursorChangeDisabled(disabled int)
- func (self *CBrowserHostT) SetWindowlessFrameRate(frame_rate int)
- func (self *CBrowserHostT) SetZoomLevel(zoomLevel float64)
- func (self *CBrowserHostT) ShowDevTools(windowInfo *CWindowInfoT, client *CClientT, settings *CBrowserSettingsT, ...)
- func (self *CBrowserHostT) StartDownload(url string)
- func (self *CBrowserHostT) StopFinding(clearSelection int)
- func (self *CBrowserHostT) TryCloseBrowser() bool
- func (self *CBrowserHostT) WasHidden(hidden int)
- func (self *CBrowserHostT) WasResized()
- type CBrowserHostTAccessor
- type CBrowserProcessHandlerT
- type CBrowserProcessHandlerTAccessor
- type CBrowserSettingsT
- type CBrowserT
- func (self *CBrowserT) CanGoBack() bool
- func (self *CBrowserT) CanGoForward() bool
- func (self *CBrowserT) GetFocusedFrame() *CFrameT
- func (self *CBrowserT) GetFrame(name string) *CFrameT
- func (self *CBrowserT) GetFrameByident(identifier int64) *CFrameT
- func (self *CBrowserT) GetFrameCount() int64
- func (self *CBrowserT) GetFrameNames(names CStringListT)
- func (self *CBrowserT) GetHost() *CBrowserHostT
- func (self *CBrowserT) GetIdentifier() bool
- func (self *CBrowserT) GetMainFrame() *CFrameT
- func (self *CBrowserT) GoBack()
- func (self *CBrowserT) GoForward()
- func (self *CBrowserT) HasDocument() bool
- func (browser *CBrowserT) HasOneRef() bool
- func (self *CBrowserT) IsLoading() bool
- func (self *CBrowserT) IsPopup() bool
- func (self *CBrowserT) IsSame(that *CBrowserT) bool
- func (self *CBrowserT) Reload()
- func (self *CBrowserT) ReloadIgnoreCache()
- func (self *CBrowserT) SendProcessMessage(target_process CProcessIdT, message *CProcessMessageT) bool
- func (self *CBrowserT) StopLoad()
- type CBrowserTAccessor
- type CButtonStateT
- type CCallbackT
- type CCallbackTAccessor
- type CCdmRegistrationErrorT
- type CCertStatusT
- type CChannelLayoutT
- type CClientT
- func (client *CClientT) AssocAudioHandlerT(handler *CAudioHandlerT)
- func (client *CClientT) AssocContextMenuHandlerT(handler *CContextMenuHandlerT)
- func (client *CClientT) AssocDialogHandlerT(handler *CDialogHandlerT)
- func (client *CClientT) AssocDisplayHandlerT(handler *CDisplayHandlerT)
- func (client *CClientT) AssocDownloadHandlerT(handler *CDownloadHandlerT)
- func (client *CClientT) AssocDragHandlerT(handler *CDragHandlerT)
- func (client *CClientT) AssocFindHandlerT(handler *CFindHandlerT)
- func (client *CClientT) AssocFocusHandlerT(handler *CFocusHandlerT)
- func (client *CClientT) AssocJsdialogHandlerT(handler *CJsdialogHandlerT)
- func (client *CClientT) AssocKeyboardHandlerT(handler *CKeyboardHandlerT)
- func (client *CClientT) AssocLifeSpanHandlerT(handler *CLifeSpanHandlerT)
- func (client *CClientT) AssocLoadHandlerT(handler *CLoadHandlerT)
- func (client *CClientT) AssocRenderHandlerT(handler *CRenderHandlerT)
- func (client *CClientT) AssocRequestHandlerT(handler *CRequestHandlerT)
- func (client *CClientT) Bind(a interface{}) *CClientT
- func (client *CClientT) HasOneRef() bool
- type CClientTAccessor
- type CClientTOnProcessMessageReceivedHandler
- type CColorModelT
- type CColorT
- type CColorTypeT
- type CComInitModeT
- type CCommandLineT
- func (self *CCommandLineT) AppendArgument(argument string)
- func (self *CCommandLineT) AppendSwitch(name string)
- func (self *CCommandLineT) AppendSwitchWithValue(name string, value string)
- func (self *CCommandLineT) Copy() *CCommandLineT
- func (self *CCommandLineT) GetArguments(arguments CStringListT)
- func (self *CCommandLineT) GetArgv(argv CStringListT)
- func (self *CCommandLineT) GetCommandLineString() string
- func (self *CCommandLineT) GetProgram() string
- func (self *CCommandLineT) GetSwitchValue(name string) string
- func (self *CCommandLineT) GetSwitches(switches CStringMapT)
- func (self *CCommandLineT) HasArguments() bool
- func (command_line *CCommandLineT) HasOneRef() bool
- func (self *CCommandLineT) HasSwitch(name string) bool
- func (self *CCommandLineT) HasSwitches() bool
- func (self *CCommandLineT) InitFromString(command_line string)
- func (self *CCommandLineT) IsReadOnly() bool
- func (self *CCommandLineT) IsValid() bool
- func (self *CCommandLineT) PrependWrapper(wrapper string)
- func (self *CCommandLineT) Reset()
- func (self *CCommandLineT) SetProgram(program string)
- type CCommandLineTAccessor
- type CCompletionCallbackT
- type CCompletionCallbackTAccessor
- type CCompositionUnderlineT
- type CContextMenuEditStateFlagsT
- type CContextMenuHandlerT
- type CContextMenuHandlerTAccessor
- type CContextMenuMediaStateFlagsT
- type CContextMenuMediaTypeT
- type CContextMenuParamsT
- func (self *CContextMenuParamsT) GetDictionarySuggestions(suggestions CStringListT) bool
- func (self *CContextMenuParamsT) GetEditStateFlags() CContextMenuEditStateFlagsT
- func (self *CContextMenuParamsT) GetFrameCharset() string
- func (self *CContextMenuParamsT) GetFrameUrl() string
- func (self *CContextMenuParamsT) GetLinkUrl() string
- func (self *CContextMenuParamsT) GetMediaStateFlags() CContextMenuMediaStateFlagsT
- func (self *CContextMenuParamsT) GetMediaType() CContextMenuMediaTypeT
- func (self *CContextMenuParamsT) GetMisspelledWord() string
- func (self *CContextMenuParamsT) GetPageUrl() string
- func (self *CContextMenuParamsT) GetSelectionText() string
- func (self *CContextMenuParamsT) GetSourceUrl() string
- func (self *CContextMenuParamsT) GetTitleText() string
- func (self *CContextMenuParamsT) GetTypeFlags() CContextMenuTypeFlagsT
- func (self *CContextMenuParamsT) GetUnfilteredLinkUrl() string
- func (self *CContextMenuParamsT) GetXcoord() bool
- func (self *CContextMenuParamsT) GetYcoord() bool
- func (self *CContextMenuParamsT) HasImageContents() bool
- func (context_menu_params *CContextMenuParamsT) HasOneRef() bool
- func (self *CContextMenuParamsT) IsCustomMenu() bool
- func (self *CContextMenuParamsT) IsEditable() bool
- func (self *CContextMenuParamsT) IsPepperMenu() bool
- func (self *CContextMenuParamsT) IsSpellCheckEnabled() bool
- type CContextMenuParamsTAccessor
- type CContextMenuTypeFlagsT
- type CCookieManagerT
- func (self *CCookieManagerT) DeleteCookies(url string, cookie_name string, callback *CDeleteCookiesCallbackT) bool
- func (self *CCookieManagerT) FlushStore(callback *CCompletionCallbackT) bool
- func (cookie_manager *CCookieManagerT) HasOneRef() bool
- func (self *CCookieManagerT) SetCookie(url string, cookie *CCookieT, callback *CSetCookieCallbackT) bool
- func (self *CCookieManagerT) SetStoragePath(path string, persist_session_cookies int, callback *CCompletionCallbackT) bool
- func (self *CCookieManagerT) SetSupportedSchemes(schemes CStringListT, callback *CCompletionCallbackT)
- func (self *CCookieManagerT) VisitAllCookies(visitor *CCookieVisitorT) bool
- func (self *CCookieManagerT) VisitUrlCookies(url string, includeHttpOnly int, visitor *CCookieVisitorT) bool
- type CCookieManagerTAccessor
- type CCookieT
- type CCookieVisitorT
- type CCookieVisitorTAccessor
- type CCrossAxisAlignmentT
- type CCursorHandleT
- type CCursorInfoT
- type CCursorTypeT
- type CDeleteCookiesCallbackT
- type CDeleteCookiesCallbackTAccessor
- type CDialogHandlerT
- type CDialogHandlerTAccessor
- type CDictionaryValueT
- func (self *CDictionaryValueT) Clear() bool
- func (self *CDictionaryValueT) Copy(exclude_empty_children int) *CDictionaryValueT
- func (self *CDictionaryValueT) GetBinary(key string) *CBinaryValueT
- func (self *CDictionaryValueT) GetBool(key string) bool
- func (self *CDictionaryValueT) GetDictionary(key string) *CDictionaryValueT
- func (self *CDictionaryValueT) GetDouble(key string) float64
- func (self *CDictionaryValueT) GetInt(key string) bool
- func (self *CDictionaryValueT) GetKeys(keys CStringListT) bool
- func (self *CDictionaryValueT) GetList(key string) *CListValueT
- func (self *CDictionaryValueT) GetSize() int64
- func (self *CDictionaryValueT) GetString(key string) string
- func (self *CDictionaryValueT) GetType(key string) CValueTypeT
- func (self *CDictionaryValueT) GetValue(key string) *CValueT
- func (self *CDictionaryValueT) HasKey(key string) bool
- func (dictionary_value *CDictionaryValueT) HasOneRef() bool
- func (self *CDictionaryValueT) IsEqual(that *CDictionaryValueT) bool
- func (self *CDictionaryValueT) IsOwned() bool
- func (self *CDictionaryValueT) IsReadOnly() bool
- func (self *CDictionaryValueT) IsSame(that *CDictionaryValueT) bool
- func (self *CDictionaryValueT) IsValid() bool
- func (self *CDictionaryValueT) Remove(key string) bool
- func (self *CDictionaryValueT) SetBinary(key string, value *CBinaryValueT) bool
- func (self *CDictionaryValueT) SetBool(key string, value bool) bool
- func (self *CDictionaryValueT) SetDictionary(key string, value *CDictionaryValueT) bool
- func (self *CDictionaryValueT) SetDouble(key string, value float64) bool
- func (self *CDictionaryValueT) SetInt(key string, value int) bool
- func (self *CDictionaryValueT) SetList(key string, value *CListValueT) bool
- func (self *CDictionaryValueT) SetNull(key string) bool
- func (self *CDictionaryValueT) SetString(key string, value string) bool
- func (self *CDictionaryValueT) SetValue(key string, value *CValueT) bool
- type CDictionaryValueTAccessor
- type CDisplayHandlerT
- type CDisplayHandlerTAccessor
- type CDomDocumentTypeT
- type CDomEventCategoryT
- type CDomEventPhaseT
- type CDomNodeTypeT
- type CDomdocumentT
- func (self *CDomdocumentT) GetBaseUrl() string
- func (self *CDomdocumentT) GetBody() *CDomnodeT
- func (self *CDomdocumentT) GetCompleteUrl(partialURL string) string
- func (self *CDomdocumentT) GetDocument() *CDomnodeT
- func (self *CDomdocumentT) GetElementById(id string) *CDomnodeT
- func (self *CDomdocumentT) GetFocusedNode() *CDomnodeT
- func (self *CDomdocumentT) GetHead() *CDomnodeT
- func (self *CDomdocumentT) GetSelectionAsMarkup() string
- func (self *CDomdocumentT) GetSelectionAsText() string
- func (self *CDomdocumentT) GetSelectionEndOffset() bool
- func (self *CDomdocumentT) GetSelectionStartOffset() bool
- func (self *CDomdocumentT) GetTitle() string
- func (self *CDomdocumentT) GetType() CDomDocumentTypeT
- func (domdocument *CDomdocumentT) HasOneRef() bool
- func (self *CDomdocumentT) HasSelection() bool
- type CDomdocumentTAccessor
- type CDomnodeT
- func (self *CDomnodeT) GetAsMarkup() string
- func (self *CDomnodeT) GetDocument() *CDomdocumentT
- func (self *CDomnodeT) GetElementAttribute(attrName string) string
- func (self *CDomnodeT) GetElementAttributes(attrMap CStringMapT)
- func (self *CDomnodeT) GetElementBounds() CRectT
- func (self *CDomnodeT) GetElementInnerText() string
- func (self *CDomnodeT) GetElementTagName() string
- func (self *CDomnodeT) GetFirstChild() *CDomnodeT
- func (self *CDomnodeT) GetFormControlElementType() string
- func (self *CDomnodeT) GetLastChild() *CDomnodeT
- func (self *CDomnodeT) GetName() string
- func (self *CDomnodeT) GetNextSibling() *CDomnodeT
- func (self *CDomnodeT) GetParent() *CDomnodeT
- func (self *CDomnodeT) GetPreviousSibling() *CDomnodeT
- func (self *CDomnodeT) GetType() CDomNodeTypeT
- func (self *CDomnodeT) GetValue() string
- func (self *CDomnodeT) HasChildren() bool
- func (self *CDomnodeT) HasElementAttribute(attrName string) bool
- func (self *CDomnodeT) HasElementAttributes() bool
- func (domnode *CDomnodeT) HasOneRef() bool
- func (self *CDomnodeT) IsEditable() bool
- func (self *CDomnodeT) IsElement() bool
- func (self *CDomnodeT) IsFormControlElement() bool
- func (self *CDomnodeT) IsSame(that *CDomnodeT) bool
- func (self *CDomnodeT) IsText() bool
- func (self *CDomnodeT) SetElementAttribute(attrName string, value string) bool
- func (self *CDomnodeT) SetValue(value string) bool
- type CDomnodeTAccessor
- type CDomvisitorT
- type CDomvisitorTAccessor
- type CDownloadHandlerT
- type CDownloadHandlerTAccessor
- type CDownloadImageCallbackT
- type CDownloadImageCallbackTAccessor
- type CDownloadItemCallbackT
- type CDownloadItemCallbackTAccessor
- type CDownloadItemT
- func (self *CDownloadItemT) GetContentDisposition() string
- func (self *CDownloadItemT) GetCurrentSpeed() int64
- func (self *CDownloadItemT) GetEndTime() CTimeT
- func (self *CDownloadItemT) GetFullPath() string
- func (self *CDownloadItemT) GetId() uint32
- func (self *CDownloadItemT) GetMimeType() string
- func (self *CDownloadItemT) GetOriginalUrl() string
- func (self *CDownloadItemT) GetPercentComplete() bool
- func (self *CDownloadItemT) GetReceivedBytes() int64
- func (self *CDownloadItemT) GetStartTime() CTimeT
- func (self *CDownloadItemT) GetSuggestedFileName() string
- func (self *CDownloadItemT) GetTotalBytes() int64
- func (self *CDownloadItemT) GetUrl() string
- func (download_item *CDownloadItemT) HasOneRef() bool
- func (self *CDownloadItemT) IsCanceled() bool
- func (self *CDownloadItemT) IsComplete() bool
- func (self *CDownloadItemT) IsInProgress() bool
- func (self *CDownloadItemT) IsValid() bool
- type CDownloadItemTAccessor
- type CDragDataT
- func (self *CDragDataT) AddFile(path string, display_name string)
- func (self *CDragDataT) Clone() *CDragDataT
- func (self *CDragDataT) GetFileContents(writer *CStreamWriterT) int64
- func (self *CDragDataT) GetFileName() string
- func (self *CDragDataT) GetFileNames(names CStringListT) bool
- func (self *CDragDataT) GetFragmentBaseUrl() string
- func (self *CDragDataT) GetFragmentHtml() string
- func (self *CDragDataT) GetFragmentText() string
- func (self *CDragDataT) GetImage() *CImageT
- func (self *CDragDataT) GetImageHotspot() CPointT
- func (self *CDragDataT) GetLinkMetadata() string
- func (self *CDragDataT) GetLinkTitle() string
- func (self *CDragDataT) GetLinkUrl() string
- func (self *CDragDataT) HasImage() bool
- func (drag_data *CDragDataT) HasOneRef() bool
- func (self *CDragDataT) IsFile() bool
- func (self *CDragDataT) IsFragment() bool
- func (self *CDragDataT) IsLink() bool
- func (self *CDragDataT) IsReadOnly() bool
- func (self *CDragDataT) ResetFileContents()
- func (self *CDragDataT) SetFragmentBaseUrl(base_url string)
- func (self *CDragDataT) SetFragmentHtml(html string)
- func (self *CDragDataT) SetFragmentText(text string)
- func (self *CDragDataT) SetLinkMetadata(data string)
- func (self *CDragDataT) SetLinkTitle(title string)
- func (self *CDragDataT) SetLinkUrl(url string)
- type CDragDataTAccessor
- type CDragHandlerT
- type CDragHandlerTAccessor
- type CDragOperationsMaskT
- type CDraggableRegionT
- type CDuplexModeT
- type CErrorcodeT
- type CEventFlagsT
- type CEventHandleT
- type CExtensionHandlerT
- type CExtensionHandlerTAccessor
- type CExtensionT
- func (self *CExtensionT) GetHandler() *CExtensionHandlerT
- func (self *CExtensionT) GetIdentifier() string
- func (self *CExtensionT) GetLoaderContext() *CRequestContextT
- func (self *CExtensionT) GetManifest() *CDictionaryValueT
- func (self *CExtensionT) GetPath() string
- func (extension *CExtensionT) HasOneRef() bool
- func (self *CExtensionT) IsLoaded() bool
- func (self *CExtensionT) IsSame(that *CExtensionT) bool
- func (self *CExtensionT) Unload()
- type CExtensionTAccessor
- type CFileDialogCallbackT
- type CFileDialogCallbackTAccessor
- type CFileDialogModeT
- type CFindHandlerT
- type CFindHandlerTAccessor
- type CFocusHandlerT
- type CFocusHandlerTAccessor
- type CFocusSourceT
- type CFrameT
- func (self *CFrameT) Copy()
- func (self *CFrameT) Cut()
- func (self *CFrameT) Del()
- func (self *CFrameT) ExecuteJavaScript(code string, script_url string, start_line int)
- func (self *CFrameT) GetBrowser() *CBrowserT
- func (self *CFrameT) GetIdentifier() int64
- func (self *CFrameT) GetName() string
- func (self *CFrameT) GetParent() *CFrameT
- func (self *CFrameT) GetSource(visitor *CStringVisitorT)
- func (self *CFrameT) GetText(visitor *CStringVisitorT)
- func (self *CFrameT) GetUrl() string
- func (self *CFrameT) GetV8context() *CV8contextT
- func (frame *CFrameT) HasOneRef() bool
- func (self *CFrameT) IsFocused() bool
- func (self *CFrameT) IsMain() bool
- func (self *CFrameT) IsValid() bool
- func (self *CFrameT) LoadRequest(request *CRequestT)
- func (self *CFrameT) LoadString(string_val string, url string)
- func (self *CFrameT) LoadUrl(url string)
- func (self *CFrameT) Paste()
- func (self *CFrameT) Redo()
- func (self *CFrameT) SelectAll()
- func (self *CFrameT) Undo()
- func (self *CFrameT) ViewSource()
- func (self *CFrameT) VisitDom(visitor *CDomvisitorT)
- type CFrameTAccessor
- type CGetExtensionResourceCallbackT
- type CGetExtensionResourceCallbackTAccessor
- type CHorizontalAlignmentT
- type CImageT
- func (self *CImageT) AddBitmap(scale_factor float32, pixel_width int, pixel_height int, ...) bool
- func (self *CImageT) AddJpeg(scale_factor float32, jpeg_data unsafe.Pointer, jpeg_data_size int64) bool
- func (self *CImageT) AddPng(scale_factor float32, png_data unsafe.Pointer, png_data_size int64) bool
- func (self *CImageT) GetAsBitmap(scale_factor float32, color_type CColorTypeT, alpha_type CAlphaTypeT, ...) *CBinaryValueT
- func (self *CImageT) GetAsJpeg(scale_factor float32, quality int, pixel_width *int, pixel_height *int) *CBinaryValueT
- func (self *CImageT) GetAsPng(scale_factor float32, with_transparency int, pixel_width *int, ...) *CBinaryValueT
- func (self *CImageT) GetHeight() int64
- func (self *CImageT) GetRepresentationInfo(scale_factor float32, actual_scale_factor *float32, pixel_width *int, ...) bool
- func (self *CImageT) GetWidth() int64
- func (image *CImageT) HasOneRef() bool
- func (self *CImageT) HasRepresentation(scale_factor float32) bool
- func (self *CImageT) IsEmpty() bool
- func (self *CImageT) IsSame(that *CImageT) bool
- func (self *CImageT) RemoveRepresentation(scale_factor float32) bool
- type CImageTAccessor
- type CInsetsT
- type CJsdialogCallbackT
- type CJsdialogCallbackTAccessor
- type CJsdialogHandlerT
- type CJsdialogHandlerTAccessor
- type CJsdialogTypeT
- type CJsonParserErrorT
- type CJsonParserOptionsT
- type CJsonWriterOptionsT
- type CKeyEventT
- type CKeyEventTypeT
- type CKeyboardHandlerT
- type CKeyboardHandlerTAccessor
- type CLangSizeT
- type CLifeSpanHandlerT
- type CLifeSpanHandlerTAccessor
- type CListValueT
- func (self *CListValueT) Clear() bool
- func (self *CListValueT) Copy() *CListValueT
- func (self *CListValueT) GetBinary(index int64) *CBinaryValueT
- func (self *CListValueT) GetBool(index int64) bool
- func (self *CListValueT) GetDictionary(index int64) *CDictionaryValueT
- func (self *CListValueT) GetDouble(index int64) float64
- func (self *CListValueT) GetInt(index int64) int
- func (self *CListValueT) GetList(index int64) *CListValueT
- func (self *CListValueT) GetSize() int64
- func (self *CListValueT) GetString(index int64) string
- func (self *CListValueT) GetType(index int64) CValueTypeT
- func (self *CListValueT) GetValue(index int64) *CValueT
- func (list_value *CListValueT) HasOneRef() bool
- func (self *CListValueT) IsEqual(that *CListValueT) bool
- func (self *CListValueT) IsOwned() bool
- func (self *CListValueT) IsReadOnly() bool
- func (self *CListValueT) IsSame(that *CListValueT) bool
- func (self *CListValueT) IsValid() bool
- func (self *CListValueT) Remove(index int64) bool
- func (self *CListValueT) SetBinary(index int64, value *CBinaryValueT) bool
- func (self *CListValueT) SetBool(index int64, value bool) bool
- func (self *CListValueT) SetDictionary(index int64, value *CDictionaryValueT) bool
- func (self *CListValueT) SetDouble(index int64, value float64) bool
- func (self *CListValueT) SetInt(index int64, value int) bool
- func (self *CListValueT) SetList(index int64, value *CListValueT) bool
- func (self *CListValueT) SetNull(index int64) bool
- func (self *CListValueT) SetSize(size int64) bool
- func (self *CListValueT) SetString(index int64, value string) bool
- func (self *CListValueT) SetValue(index int64, value *CValueT) bool
- type CListValueTAccessor
- type CLoadHandlerT
- type CLoadHandlerTAccessor
- type CLogSeverityT
- type CMainAxisAlignmentT
- type CMenuAnchorPositionT
- type CMenuColorTypeT
- type CMenuIdT
- type CMenuItemTypeT
- type CMenuModelDelegateT
- type CMenuModelDelegateTAccessor
- type CMenuModelT
- func (self *CMenuModelT) AddCheckItem(command_id int, label string) bool
- func (self *CMenuModelT) AddItem(command_id int, label string) bool
- func (self *CMenuModelT) AddRadioItem(command_id int, label string, group_id int) bool
- func (self *CMenuModelT) AddSeparator() bool
- func (self *CMenuModelT) AddSubMenu(command_id int, label string) *CMenuModelT
- func (self *CMenuModelT) Clear() bool
- func (self *CMenuModelT) GetAccelerator(command_id int, key_code *int, shift_pressed *int, ctrl_pressed *int, ...) bool
- func (self *CMenuModelT) GetAcceleratorAt(index int, key_code *int, shift_pressed *int, ctrl_pressed *int, ...) bool
- func (self *CMenuModelT) GetColor(command_id int, color_type CMenuColorTypeT, color *CColorT) bool
- func (self *CMenuModelT) GetColorAt(index int, color_type CMenuColorTypeT, color *CColorT) bool
- func (self *CMenuModelT) GetCommandIdAt(index int) bool
- func (self *CMenuModelT) GetCount() bool
- func (self *CMenuModelT) GetGroupId(command_id int) bool
- func (self *CMenuModelT) GetGroupIdAt(index int) bool
- func (self *CMenuModelT) GetIndexOf(command_id int) bool
- func (self *CMenuModelT) GetLabel(command_id int) string
- func (self *CMenuModelT) GetLabelAt(index int) string
- func (self *CMenuModelT) GetSubMenu(command_id int) *CMenuModelT
- func (self *CMenuModelT) GetSubMenuAt(index int) *CMenuModelT
- func (self *CMenuModelT) GetType(command_id int) CMenuItemTypeT
- func (self *CMenuModelT) GetTypeAt(index int) CMenuItemTypeT
- func (self *CMenuModelT) HasAccelerator(command_id int) bool
- func (self *CMenuModelT) HasAcceleratorAt(index int) bool
- func (menu_model *CMenuModelT) HasOneRef() bool
- func (self *CMenuModelT) InsertCheckItemAt(index int, command_id int, label string) bool
- func (self *CMenuModelT) InsertItemAt(index int, command_id int, label string) bool
- func (self *CMenuModelT) InsertRadioItemAt(index int, command_id int, label string, group_id int) bool
- func (self *CMenuModelT) InsertSeparatorAt(index int) bool
- func (self *CMenuModelT) InsertSubMenuAt(index int, command_id int, label string) *CMenuModelT
- func (self *CMenuModelT) IsChecked(command_id int) bool
- func (self *CMenuModelT) IsCheckedAt(index int) bool
- func (self *CMenuModelT) IsEnabled(command_id int) bool
- func (self *CMenuModelT) IsEnabledAt(index int) bool
- func (self *CMenuModelT) IsSubMenu() bool
- func (self *CMenuModelT) IsVisible(command_id int) bool
- func (self *CMenuModelT) IsVisibleAt(index int) bool
- func (self *CMenuModelT) Remove(command_id int) bool
- func (self *CMenuModelT) RemoveAccelerator(command_id int) bool
- func (self *CMenuModelT) RemoveAcceleratorAt(index int) bool
- func (self *CMenuModelT) RemoveAt(index int) bool
- func (self *CMenuModelT) SetAccelerator(command_id int, key_code int, shift_pressed int, ctrl_pressed int, ...) bool
- func (self *CMenuModelT) SetAcceleratorAt(index int, key_code int, shift_pressed int, ctrl_pressed int, alt_pressed int) bool
- func (self *CMenuModelT) SetChecked(command_id int, checked int) bool
- func (self *CMenuModelT) SetCheckedAt(index int, checked int) bool
- func (self *CMenuModelT) SetColor(command_id int, color_type CMenuColorTypeT, color CColorT) bool
- func (self *CMenuModelT) SetColorAt(index int, color_type CMenuColorTypeT, color CColorT) bool
- func (self *CMenuModelT) SetCommandIdAt(index int, command_id int) bool
- func (self *CMenuModelT) SetEnabled(command_id int, enabled int) bool
- func (self *CMenuModelT) SetEnabledAt(index int, enabled int) bool
- func (self *CMenuModelT) SetFontList(command_id int, font_list string) bool
- func (self *CMenuModelT) SetFontListAt(index int, font_list string) bool
- func (self *CMenuModelT) SetGroupId(command_id int, group_id int) bool
- func (self *CMenuModelT) SetGroupIdAt(index int, group_id int) bool
- func (self *CMenuModelT) SetLabel(command_id int, label string) bool
- func (self *CMenuModelT) SetLabelAt(index int, label string) bool
- func (self *CMenuModelT) SetVisible(command_id int, visible int) bool
- func (self *CMenuModelT) SetVisibleAt(index int, visible int) bool
- type CMenuModelTAccessor
- type CMessageLoopTypeT
- type CMouseButtonTypeT
- type CMouseEventT
- type CNavigationEntryT
- func (self *CNavigationEntryT) GetCompletionTime() CTimeT
- func (self *CNavigationEntryT) GetDisplayUrl() string
- func (self *CNavigationEntryT) GetHttpStatusCode() bool
- func (self *CNavigationEntryT) GetOriginalUrl() string
- func (self *CNavigationEntryT) GetSslstatus() *CSslstatusT
- func (self *CNavigationEntryT) GetTitle() string
- func (self *CNavigationEntryT) GetTransitionType() CTransitionTypeT
- func (self *CNavigationEntryT) GetUrl() string
- func (navigation_entry *CNavigationEntryT) HasOneRef() bool
- func (self *CNavigationEntryT) HasPostData() bool
- func (self *CNavigationEntryT) IsValid() bool
- type CNavigationEntryTAccessor
- type CNavigationEntryVisitorT
- type CNavigationEntryVisitorTAccessor
- type CNavigationTypeT
- type CPaintElementTypeT
- type CPathKeyT
- type CPdfPrintCallbackT
- type CPdfPrintCallbackTAccessor
- type CPdfPrintMarginTypeT
- type CPdfPrintSettingsT
- type CPluginPolicyT
- type CPointT
- type CPointerTypeT
- type CPopupFeaturesT
- type CPostDataElementT
- func (self *CPostDataElementT) GetBytes(size int64, bytes unsafe.Pointer) int64
- func (self *CPostDataElementT) GetBytesCount() int64
- func (self *CPostDataElementT) GetFile() string
- func (self *CPostDataElementT) GetType() CPostdataelementTypeT
- func (post_data_element *CPostDataElementT) HasOneRef() bool
- func (self *CPostDataElementT) IsReadOnly() bool
- func (self *CPostDataElementT) SetToBytes(size int64, bytes unsafe.Pointer)
- func (self *CPostDataElementT) SetToEmpty()
- func (self *CPostDataElementT) SetToFile(fileName string)
- type CPostDataElementTAccessor
- type CPostDataT
- func (self *CPostDataT) AddElement(element *CPostDataElementT) bool
- func (self *CPostDataT) GetElementCount() int64
- func (self *CPostDataT) HasExcludedElements() bool
- func (post_data *CPostDataT) HasOneRef() bool
- func (self *CPostDataT) IsReadOnly() bool
- func (self *CPostDataT) RemoveElement(element *CPostDataElementT) bool
- func (self *CPostDataT) RemoveElements()
- type CPostDataTAccessor
- type CPostdataelementTypeT
- type CPrintDialogCallbackT
- type CPrintDialogCallbackTAccessor
- type CPrintHandlerT
- func (self *CPrintHandlerT) GetPdfPaperSize(device_units_per_inch int) CSizeT
- func (print_handler *CPrintHandlerT) HasOneRef() bool
- func (self *CPrintHandlerT) OnPrintDialog(browser *CBrowserT, has_selection int, callback *CPrintDialogCallbackT) bool
- func (self *CPrintHandlerT) OnPrintJob(browser *CBrowserT, document_name string, pdf_file_path string, ...) bool
- func (self *CPrintHandlerT) OnPrintReset(browser *CBrowserT)
- func (self *CPrintHandlerT) OnPrintSettings(browser *CBrowserT, settings *CPrintSettingsT, get_defaults int)
- func (self *CPrintHandlerT) OnPrintStart(browser *CBrowserT)
- type CPrintHandlerTAccessor
- type CPrintJobCallbackT
- type CPrintJobCallbackTAccessor
- type CPrintSettingsT
- func (self *CPrintSettingsT) Copy() *CPrintSettingsT
- func (self *CPrintSettingsT) GetColorModel() CColorModelT
- func (self *CPrintSettingsT) GetCopies() bool
- func (self *CPrintSettingsT) GetDeviceName() string
- func (self *CPrintSettingsT) GetDpi() bool
- func (self *CPrintSettingsT) GetDuplexMode() CDuplexModeT
- func (self *CPrintSettingsT) GetPageRangesCount() int64
- func (print_settings *CPrintSettingsT) HasOneRef() bool
- func (self *CPrintSettingsT) IsLandscape() bool
- func (self *CPrintSettingsT) IsReadOnly() bool
- func (self *CPrintSettingsT) IsSelectionOnly() bool
- func (self *CPrintSettingsT) IsValid() bool
- func (self *CPrintSettingsT) SetCollate(collate int)
- func (self *CPrintSettingsT) SetColorModel(model CColorModelT)
- func (self *CPrintSettingsT) SetCopies(copies int)
- func (self *CPrintSettingsT) SetDeviceName(name string)
- func (self *CPrintSettingsT) SetDpi(dpi int)
- func (self *CPrintSettingsT) SetDuplexMode(mode CDuplexModeT)
- func (self *CPrintSettingsT) SetOrientation(landscape int)
- func (self *CPrintSettingsT) SetPageRanges(rangesCount int64, ranges *CRangeT)
- func (self *CPrintSettingsT) SetPrinterPrintableArea(physical_size_device_units *CSizeT, printable_area_device_units *CRectT, ...)
- func (self *CPrintSettingsT) SetSelectionOnly(selection_only int)
- func (self *CPrintSettingsT) WillCollate() bool
- type CPrintSettingsTAccessor
- type CProcessIdT
- type CProcessMessageT
- func (self *CProcessMessageT) Copy() *CProcessMessageT
- func (self *CProcessMessageT) GetArgumentList() *CListValueT
- func (self *CProcessMessageT) GetName() string
- func (process_message *CProcessMessageT) HasOneRef() bool
- func (self *CProcessMessageT) IsReadOnly() bool
- func (self *CProcessMessageT) IsValid() bool
- type CProcessMessageTAccessor
- type CRangeT
- type CReadHandlerT
- func (self *CReadHandlerT) Eof() bool
- func (read_handler *CReadHandlerT) HasOneRef() bool
- func (self *CReadHandlerT) MayBlock() bool
- func (self *CReadHandlerT) Read(ptr unsafe.Pointer, size int64, n int64) int64
- func (self *CReadHandlerT) Seek(offset int64, whence int) bool
- func (self *CReadHandlerT) Tell() int64
- type CReadHandlerTAccessor
- type CRectT
- type CReferrerPolicyT
- type CRegisterCdmCallbackT
- type CRegisterCdmCallbackTAccessor
- type CRenderHandlerT
- type CRenderHandlerTAccessor
- type CRenderProcessHandlerT
- type CRenderProcessHandlerTAccessor
- type CRenderProcessHandlerTOnProcessMessageReceivedHandler
- type CRequestCallbackT
- type CRequestCallbackTAccessor
- type CRequestContextHandlerT
- type CRequestContextHandlerTAccessor
- type CRequestContextSettingsT
- type CRequestContextT
- func (self *CRequestContextT) CanSetPreference(name string) bool
- func (self *CRequestContextT) ClearCertificateExceptions(callback *CCompletionCallbackT)
- func (self *CRequestContextT) ClearSchemeHandlerFactories() bool
- func (self *CRequestContextT) CloseAllConnections(callback *CCompletionCallbackT)
- func (self *CRequestContextT) DidLoadExtension(extension_id string) bool
- func (self *CRequestContextT) GetAllPreferences(include_defaults int) *CDictionaryValueT
- func (self *CRequestContextT) GetCachePath() string
- func (self *CRequestContextT) GetDefaultCookieManager(callback *CCompletionCallbackT) *CCookieManagerT
- func (self *CRequestContextT) GetExtension(extension_id string) *CExtensionT
- func (self *CRequestContextT) GetExtensions(extension_ids CStringListT) bool
- func (self *CRequestContextT) GetHandler() *CRequestContextHandlerT
- func (self *CRequestContextT) GetPreference(name string) *CValueT
- func (self *CRequestContextT) HasExtension(extension_id string) bool
- func (request_context *CRequestContextT) HasOneRef() bool
- func (self *CRequestContextT) HasPreference(name string) bool
- func (self *CRequestContextT) IsGlobal() bool
- func (self *CRequestContextT) IsSame(other *CRequestContextT) bool
- func (self *CRequestContextT) IsSharingWith(other *CRequestContextT) bool
- func (self *CRequestContextT) LoadExtension(root_directory string, manifest *CDictionaryValueT, ...)
- func (self *CRequestContextT) PurgePluginListCache(reload_pages int)
- func (self *CRequestContextT) RegisterSchemeHandlerFactory(scheme_name string, domain_name string, factory *CSchemeHandlerFactoryT) bool
- func (self *CRequestContextT) ResolveHost(origin string, callback *CResolveCallbackT)
- func (self *CRequestContextT) SetPreference(name string, value *CValueT, error *string) bool
- type CRequestContextTAccessor
- type CRequestHandlerT
- type CRequestHandlerTAccessor
- type CRequestHandlerTCanSetCookieHandler
- type CRequestT
- func (self *CRequestT) GetFirstPartyForCookies() string
- func (self *CRequestT) GetFlags() bool
- func (self *CRequestT) GetHeaderMap(headerMap CStringMultimapT)
- func (self *CRequestT) GetIdentifier() uint64
- func (self *CRequestT) GetMethod() string
- func (self *CRequestT) GetPostData() *CPostDataT
- func (self *CRequestT) GetReferrerPolicy() CReferrerPolicyT
- func (self *CRequestT) GetReferrerUrl() string
- func (self *CRequestT) GetResourceType() CResourceTypeT
- func (self *CRequestT) GetTransitionType() CTransitionTypeT
- func (self *CRequestT) GetUrl() string
- func (request *CRequestT) HasOneRef() bool
- func (self *CRequestT) IsReadOnly() bool
- func (self *CRequestT) Set(url string, method string, postData *CPostDataT, headerMap CStringMultimapT)
- func (self *CRequestT) SetFirstPartyForCookies(url string)
- func (self *CRequestT) SetFlags(flags int)
- func (self *CRequestT) SetHeaderMap(headerMap CStringMultimapT)
- func (self *CRequestT) SetMethod(method string)
- func (self *CRequestT) SetPostData(postData *CPostDataT)
- func (self *CRequestT) SetReferrer(referrer_url string, policy CReferrerPolicyT)
- func (self *CRequestT) SetUrl(url string)
- type CRequestTAccessor
- type CResolveCallbackT
- type CResolveCallbackTAccessor
- type CResourceBundleHandlerT
- type CResourceBundleHandlerTAccessor
- type CResourceHandlerT
- type CResourceHandlerTAccessor
- type CResourceHandlerTCanSetCookieHandler
- type CResourceTypeT
- type CResponseFilterStatusT
- type CResponseFilterT
- type CResponseFilterTAccessor
- type CResponseT
- func (self *CResponseT) DumpHeaders()
- func (self *CResponseT) GetError() CErrorcodeT
- func (self *CResponseT) GetHeader(name string) string
- func (self *CResponseT) GetHeaderMap(headerMap CStringMultimapT)
- func (self *CResponseT) GetMimeType() string
- func (self *CResponseT) GetStatus() bool
- func (self *CResponseT) GetStatusText() string
- func (self *CResponseT) GetUrl() string
- func (response *CResponseT) HasOneRef() bool
- func (self *CResponseT) IsReadOnly() bool
- func (self *CResponseT) SetError(error CErrorcodeT)
- func (self *CResponseT) SetHeaderMap(headerMap CStringMultimapT)
- func (self *CResponseT) SetMimeType(mimeType string)
- func (self *CResponseT) SetStatus(status int)
- func (self *CResponseT) SetStatusText(statusText string)
- func (self *CResponseT) SetUrl(url string)
- type CResponseTAccessor
- type CReturnValueT
- type CRunContextMenuCallbackT
- type CRunContextMenuCallbackTAccessor
- type CRunFileDialogCallbackT
- type CRunFileDialogCallbackTAccessor
- type CScaleFactorT
- type CSchemeHandlerFactoryT
- type CSchemeHandlerFactoryTAccessor
- type CSchemeOptionsT
- type CSchemeRegistrarT
- type CSchemeRegistrarTAccessor
- type CScreenInfoT
- type CSelectClientCertificateCallbackT
- type CSelectClientCertificateCallbackTAccessor
- type CSetCookieCallbackT
- type CSetCookieCallbackTAccessor
- type CSettingsT
- type CSizeT
- type CSslContentStatusT
- type CSslVersionT
- type CSslinfoT
- type CSslinfoTAccessor
- type CSslstatusT
- func (self *CSslstatusT) GetCertStatus() CCertStatusT
- func (self *CSslstatusT) GetContentStatus() CSslContentStatusT
- func (self *CSslstatusT) GetSslversion() CSslVersionT
- func (self *CSslstatusT) GetX509certificate() *CX509certificateT
- func (sslstatus *CSslstatusT) HasOneRef() bool
- func (self *CSslstatusT) IsSecureConnection() bool
- type CSslstatusTAccessor
- type CStateT
- type CStorageTypeT
- type CStreamReaderT
- func (self *CStreamReaderT) Eof() bool
- func (stream_reader *CStreamReaderT) HasOneRef() bool
- func (self *CStreamReaderT) MayBlock() bool
- func (self *CStreamReaderT) Read(ptr unsafe.Pointer, size int64, n int64) int64
- func (self *CStreamReaderT) Seek(offset int64, whence int) bool
- func (self *CStreamReaderT) Tell() int64
- type CStreamReaderTAccessor
- type CStreamWriterT
- func (self *CStreamWriterT) Flush() bool
- func (stream_writer *CStreamWriterT) HasOneRef() bool
- func (self *CStreamWriterT) MayBlock() bool
- func (self *CStreamWriterT) Seek(offset int64, whence int) bool
- func (self *CStreamWriterT) Tell() int64
- func (self *CStreamWriterT) Write(ptr unsafe.Pointer, size int64, n int64) int64
- type CStreamWriterTAccessor
- type CStringListT
- type CStringMapT
- type CStringMultimapT
- type CStringVisitorT
- type CStringVisitorTAccessor
- type CTaskRunnerT
- func (self *CTaskRunnerT) BelongsToCurrentThread() bool
- func (self *CTaskRunnerT) BelongsToThread(threadId CThreadIdT) bool
- func (task_runner *CTaskRunnerT) HasOneRef() bool
- func (self *CTaskRunnerT) IsSame(that *CTaskRunnerT) bool
- func (self *CTaskRunnerT) PostDelayedTask(task *CTaskT, delay_ms int64) bool
- func (self *CTaskRunnerT) PostTask(task *CTaskT) bool
- type CTaskRunnerTAccessor
- type CTaskT
- type CTaskTAccessor
- type CTerminationStatusT
- type CTextInputModeT
- type CTextStyleT
- type CThreadIdT
- type CThreadPriorityT
- type CTimeT
- type CTouchEventT
- type CTouchEventTypeT
- type CTransitionTypeT
- type CUriUnescapeRuleT
- type CUrlpartsT
- type CUrlrequestFlagsT
- type CUrlrequestStatusT
- type CV8AccesscontrolT
- type CV8PropertyattributeT
- type CV8accessorT
- type CV8accessorTAccessor
- type CV8arrayBufferReleaseCallbackT
- type CV8arrayBufferReleaseCallbackTAccessor
- type CV8contextT
- func (self *CV8contextT) Enter() bool
- func (self *CV8contextT) Eval(code string, script_url string, start_line int, retval **CV8valueT, ...) bool
- func (self *CV8contextT) Exit() bool
- func (self *CV8contextT) GetBrowser() *CBrowserT
- func (self *CV8contextT) GetFrame() *CFrameT
- func (self *CV8contextT) GetGlobal() *CV8valueT
- func (self *CV8contextT) GetTaskRunner() *CTaskRunnerT
- func (v8context *CV8contextT) HasOneRef() bool
- func (self *CV8contextT) IsSame(that *CV8contextT) bool
- func (self *CV8contextT) IsValid() bool
- type CV8contextTAccessor
- type CV8exceptionT
- func (self *CV8exceptionT) GetEndColumn() bool
- func (self *CV8exceptionT) GetEndPosition() bool
- func (self *CV8exceptionT) GetLineNumber() bool
- func (self *CV8exceptionT) GetMessage() string
- func (self *CV8exceptionT) GetScriptResourceName() string
- func (self *CV8exceptionT) GetSourceLine() string
- func (self *CV8exceptionT) GetStartColumn() bool
- func (self *CV8exceptionT) GetStartPosition() bool
- func (v8exception *CV8exceptionT) HasOneRef() bool
- type CV8exceptionTAccessor
- type CV8handlerT
- type CV8handlerTAccessor
- type CV8interceptorT
- func (self *CV8interceptorT) GetByindex(index int, object *CV8valueT, retval **CV8valueT, exception *string) bool
- func (self *CV8interceptorT) GetByname(name string, object *CV8valueT, retval **CV8valueT, exception *string) bool
- func (v8interceptor *CV8interceptorT) HasOneRef() bool
- func (self *CV8interceptorT) SetByindex(index int, object *CV8valueT, value *CV8valueT, exception *string) bool
- func (self *CV8interceptorT) SetByname(name string, object *CV8valueT, value *CV8valueT, exception *string) bool
- type CV8interceptorTAccessor
- type CV8stackFrameT
- func (self *CV8stackFrameT) GetColumn() bool
- func (self *CV8stackFrameT) GetFunctionName() string
- func (self *CV8stackFrameT) GetLineNumber() bool
- func (self *CV8stackFrameT) GetScriptName() string
- func (self *CV8stackFrameT) GetScriptNameOrSourceUrl() string
- func (v8stack_frame *CV8stackFrameT) HasOneRef() bool
- func (self *CV8stackFrameT) IsConstructor() bool
- func (self *CV8stackFrameT) IsEval() bool
- func (self *CV8stackFrameT) IsValid() bool
- type CV8stackFrameTAccessor
- type CV8stackTraceT
- type CV8stackTraceTAccessor
- type CV8valueT
- func CreateArrayBuffer(buffer []byte) *CV8valueT
- func V8valueCreateArray(length int) *CV8valueT
- func V8valueCreateArrayBuffer(buffer unsafe.Pointer, length int64, ...) *CV8valueT
- func V8valueCreateBool(value int) *CV8valueT
- func V8valueCreateDate(date *CTimeT) *CV8valueT
- func V8valueCreateDouble(value float64) *CV8valueT
- func V8valueCreateFunction(name string, handler *CV8handlerT) *CV8valueT
- func V8valueCreateInt(value int32) *CV8valueT
- func V8valueCreateNull() *CV8valueT
- func V8valueCreateObject(accessor *CV8accessorT, interceptor *CV8interceptorT) *CV8valueT
- func V8valueCreateString(value string) *CV8valueT
- func V8valueCreateStringFromByteArray(b []byte) (val *CV8valueT)
- func V8valueCreateUint(value uint32) *CV8valueT
- func V8valueCreateUndefined() *CV8valueT
- func (self *CV8valueT) AdjustExternallyAllocatedMemory(change_in_bytes int) bool
- func (self *CV8valueT) ClearException() bool
- func (self *CV8valueT) DeleteValueByindex(index int) bool
- func (self *CV8valueT) DeleteValueBykey(key string) bool
- func (self *CV8valueT) ExecuteFunction(object *CV8valueT, arguments []*CV8valueT) *CV8valueT
- func (self *CV8valueT) ExecuteFunctionWithContext(context *CV8contextT, object *CV8valueT, arguments []*CV8valueT) *CV8valueT
- func (self *CV8valueT) GetArrayBufferReleaseCallback() *CV8arrayBufferReleaseCallbackT
- func (self *CV8valueT) GetArrayLength() bool
- func (self *CV8valueT) GetBoolValue() bool
- func (self *CV8valueT) GetDateValue() CTimeT
- func (self *CV8valueT) GetDoubleValue() float64
- func (self *CV8valueT) GetException() *CV8exceptionT
- func (self *CV8valueT) GetExternallyAllocatedMemory() bool
- func (self *CV8valueT) GetFunctionHandler() *CV8handlerT
- func (self *CV8valueT) GetFunctionName() string
- func (self *CV8valueT) GetIntValue() int32
- func (self *CV8valueT) GetKeys(keys CStringListT) bool
- func (self *CV8valueT) GetStringValue() string
- func (self *CV8valueT) GetUintValue() uint32
- func (self *CV8valueT) GetValueByindex(index int) *CV8valueT
- func (self *CV8valueT) GetValueBykey(key string) *CV8valueT
- func (self *CV8valueT) HasException() bool
- func (v8value *CV8valueT) HasOneRef() bool
- func (self *CV8valueT) HasValueByindex(index int) bool
- func (self *CV8valueT) HasValueBykey(key string) bool
- func (self *CV8valueT) IsArray() bool
- func (self *CV8valueT) IsArrayBuffer() bool
- func (self *CV8valueT) IsBool() bool
- func (self *CV8valueT) IsDate() bool
- func (self *CV8valueT) IsDouble() bool
- func (self *CV8valueT) IsFunction() bool
- func (self *CV8valueT) IsInt() bool
- func (self *CV8valueT) IsNull() bool
- func (self *CV8valueT) IsObject() bool
- func (self *CV8valueT) IsSame(that *CV8valueT) bool
- func (self *CV8valueT) IsString() bool
- func (self *CV8valueT) IsUint() bool
- func (self *CV8valueT) IsUndefined() bool
- func (self *CV8valueT) IsUserCreated() bool
- func (self *CV8valueT) IsValid() bool
- func (self *CV8valueT) NeuterArrayBuffer() bool
- func (self *CV8valueT) SetRethrowExceptions(rethrow int) bool
- func (self *CV8valueT) SetValueByaccessor(key string, settings CV8AccesscontrolT, attribute CV8PropertyattributeT) bool
- func (self *CV8valueT) SetValueByindex(index int, value *CV8valueT) bool
- func (self *CV8valueT) SetValueBykey(key string, value *CV8valueT, attribute CV8PropertyattributeT) bool
- func (self *CV8valueT) WillRethrowExceptions() bool
- type CV8valueTAccessor
- type CValueT
- func (self *CValueT) Copy() *CValueT
- func (self *CValueT) GetBinary() *CBinaryValueT
- func (self *CValueT) GetBool() bool
- func (self *CValueT) GetDictionary() *CDictionaryValueT
- func (self *CValueT) GetDouble() float64
- func (self *CValueT) GetInt() bool
- func (self *CValueT) GetList() *CListValueT
- func (self *CValueT) GetString() string
- func (self *CValueT) GetType() CValueTypeT
- func (value *CValueT) HasOneRef() bool
- func (self *CValueT) IsEqual(that *CValueT) bool
- func (self *CValueT) IsOwned() bool
- func (self *CValueT) IsReadOnly() bool
- func (self *CValueT) IsSame(that *CValueT) bool
- func (self *CValueT) IsValid() bool
- func (self *CValueT) SetBinary(value *CBinaryValueT) bool
- func (self *CValueT) SetBool(value bool) bool
- func (self *CValueT) SetDictionary(value *CDictionaryValueT) bool
- func (self *CValueT) SetDouble(value float64) bool
- func (self *CValueT) SetInt(value int) bool
- func (self *CValueT) SetList(value *CListValueT) bool
- func (self *CValueT) SetNull() bool
- func (self *CValueT) SetString(value string) bool
- type CValueTAccessor
- type CValueTypeT
- type CWebPluginInfoT
- type CWebPluginInfoTAccessor
- type CWebPluginInfoVisitorT
- type CWebPluginInfoVisitorTAccessor
- type CWebPluginUnstableCallbackT
- type CWebPluginUnstableCallbackTAccessor
- type CWindowHandleT
- type CWindowInfoT
- type CWindowOpenDispositionT
- type CWriteHandlerT
- func (self *CWriteHandlerT) Flush() bool
- func (write_handler *CWriteHandlerT) HasOneRef() bool
- func (self *CWriteHandlerT) MayBlock() bool
- func (self *CWriteHandlerT) Seek(offset int64, whence int) bool
- func (self *CWriteHandlerT) Tell() int64
- func (self *CWriteHandlerT) Write(ptr unsafe.Pointer, size int64, n int64) int64
- type CWriteHandlerTAccessor
- type CX509certPrincipalT
- func (self *CX509certPrincipalT) GetCommonName() string
- func (self *CX509certPrincipalT) GetCountryName() string
- func (self *CX509certPrincipalT) GetDisplayName() string
- func (self *CX509certPrincipalT) GetDomainComponents(components CStringListT)
- func (self *CX509certPrincipalT) GetLocalityName() string
- func (self *CX509certPrincipalT) GetOrganizationNames(names CStringListT)
- func (self *CX509certPrincipalT) GetOrganizationUnitNames(names CStringListT)
- func (self *CX509certPrincipalT) GetStateOrProvinceName() string
- func (self *CX509certPrincipalT) GetStreetAddresses(addresses CStringListT)
- func (x509cert_principal *CX509certPrincipalT) HasOneRef() bool
- type CX509certPrincipalTAccessor
- type CX509certificateT
- func (self *CX509certificateT) GetDerencoded() *CBinaryValueT
- func (self *CX509certificateT) GetIssuer() *CX509certPrincipalT
- func (self *CX509certificateT) GetIssuerChainSize() int64
- func (self *CX509certificateT) GetPemencoded() *CBinaryValueT
- func (self *CX509certificateT) GetSerialNumber() *CBinaryValueT
- func (self *CX509certificateT) GetSubject() *CX509certPrincipalT
- func (self *CX509certificateT) GetValidExpiry() CTimeT
- func (self *CX509certificateT) GetValidStart() CTimeT
- func (x509certificate *CX509certificateT) HasOneRef() bool
- type CX509certificateTAccessor
- type CXmlEncodingTypeT
- type CXmlNodeTypeT
- type CanAccessBrowserHandler
- type CanGetCookieHandler
- type CanGetCookiesHandler
- type CancelHandler
- type CreateHandler
- type DeassocFunc
- type Deassocer
- type DoCloseHandler
- type ExecuteCommandHandler
- type ExecuteHandler
- type FormatLabelHandler
- type GetActiveBrowserHandler
- type GetAuthCredentialsHandler
- type GetExtensionResourceHandler
- type GetLocalizedStringHandler
- type GetResourceHandlerHandler
- type GetResourceResponseFilterHandler
- type GetResponseHeadersHandler
- type GetRootScreenRectHandler
- type GetScreenInfoHandler
- type GetScreenPointHandler
- type GetViewRectHandler
- type MenuClosedHandler
- type MenuWillShowHandler
- type MouseOutsideMenuHandler
- type OnAcceleratedPaintHandler
- type OnAccessibilityLocationChangeHandler
- type OnAccessibilityTreeChangeHandler
- type OnAddressChangeHandler
- type OnAfterCreatedHandler
- type OnAudioStreamStartedHandler
- type OnAudioStreamStoppedHandler
- type OnAutoResizeHandler
- type OnBeforeBackgroundBrowserHandler
- type OnBeforeBrowseHandler
- type OnBeforeBrowserHandler
- type OnBeforeChildProcessLaunchHandler
- type OnBeforeCloseHandler
- type OnBeforeCommandLineProcessingHandler
- type OnBeforeContextMenuHandler
- type OnBeforeDownloadHandler
- type OnBeforePluginLoadHandler
- type OnBeforePopupHandler
- type OnBeforeResourceLoadHandler
- type OnBeforeUnloadDialogHandler
- type OnBrowserCreatedHandler
- type OnBrowserDestroyedHandler
- type OnCertificateErrorHandler
- type OnConsoleMessageHandler
- type OnContextCreatedHandler
- type OnContextInitializedHandler
- type OnContextMenuCommandHandler
- type OnContextMenuDismissedHandler
- type OnContextReleasedHandler
- type OnCursorChangeHandler
- type OnDialogClosedHandler
- type OnDownloadUpdatedHandler
- type OnDragEnterHandler
- type OnDraggableRegionsChangedHandler
- type OnExtensionLoadFailedHandler
- type OnExtensionLoadedHandler
- type OnExtensionUnloadedHandler
- type OnFaviconUrlchangeHandler
- type OnFileDialogDismissedHandler
- type OnFileDialogHandler
- type OnFindResultHandler
- type OnFocusedNodeChangedHandler
- type OnFullscreenModeChangeHandler
- type OnGotFocusHandler
- type OnImeCompositionRangeChangedHandler
- type OnJsdialogHandler
- type OnKeyEventHandler
- type OnLoadEndHandler
- type OnLoadErrorHandler
- type OnLoadStartHandler
- type OnLoadingProgressChangeHandler
- type OnLoadingStateChangeHandler
- type OnOpenUrlfromTabHandler
- type OnPaintHandler
- type OnPluginCrashedHandler
- type OnPopupShowHandler
- type OnPopupSizeHandler
- type OnPreKeyEventHandler
- type OnProtocolExecutionHandler
- type OnQuotaRequestHandler
- type OnRegisterCustomSchemesHandler
- type OnRenderProcessTerminatedHandler
- type OnRenderProcessThreadCreatedHandler
- type OnRenderThreadCreatedHandler
- type OnRenderViewReadyHandler
- type OnRequestContextInitializedHandler
- type OnResetDialogStateHandler
- type OnResourceLoadCompleteHandler
- type OnResourceRedirectHandler
- type OnResourceResponseHandler
- type OnScheduleMessagePumpWorkHandler
- type OnScrollOffsetChangedHandler
- type OnSelectClientCertificateHandler
- type OnSetFocusHandler
- type OnStatusMessageHandler
- type OnTakeFocusHandler
- type OnTextSelectionChangedHandler
- type OnTitleChangeHandler
- type OnTooltipHandler
- type OnUncaughtExceptionHandler
- type OnVirtualKeyboardRequestedHandler
- type OnWebKitInitializedHandler
- type ProcessRequestHandler
- type ReadResponseHandler
- type RefToCAccessibilityHandlerT
- type RefToCAppT
- type RefToCAudioHandlerT
- type RefToCAuthCallbackT
- type RefToCBeforeDownloadCallbackT
- type RefToCBinaryValueT
- type RefToCBrowserHostT
- type RefToCBrowserProcessHandlerT
- type RefToCBrowserT
- type RefToCCallbackT
- type RefToCClientT
- type RefToCCommandLineT
- type RefToCCompletionCallbackT
- type RefToCContextMenuHandlerT
- type RefToCContextMenuParamsT
- type RefToCCookieManagerT
- type RefToCCookieVisitorT
- type RefToCDeleteCookiesCallbackT
- type RefToCDialogHandlerT
- type RefToCDictionaryValueT
- type RefToCDisplayHandlerT
- type RefToCDomdocumentT
- type RefToCDomnodeT
- type RefToCDomvisitorT
- type RefToCDownloadHandlerT
- type RefToCDownloadImageCallbackT
- type RefToCDownloadItemCallbackT
- type RefToCDownloadItemT
- type RefToCDragDataT
- type RefToCDragHandlerT
- type RefToCExtensionHandlerT
- type RefToCExtensionT
- type RefToCFileDialogCallbackT
- type RefToCFindHandlerT
- type RefToCFocusHandlerT
- type RefToCFrameT
- type RefToCGetExtensionResourceCallbackT
- type RefToCImageT
- type RefToCJsdialogCallbackT
- type RefToCJsdialogHandlerT
- type RefToCKeyboardHandlerT
- type RefToCLifeSpanHandlerT
- type RefToCListValueT
- type RefToCLoadHandlerT
- type RefToCMenuModelDelegateT
- type RefToCMenuModelT
- type RefToCNavigationEntryT
- type RefToCNavigationEntryVisitorT
- type RefToCPdfPrintCallbackT
- type RefToCPostDataElementT
- type RefToCPostDataT
- type RefToCPrintDialogCallbackT
- type RefToCPrintHandlerT
- type RefToCPrintJobCallbackT
- type RefToCPrintSettingsT
- type RefToCProcessMessageT
- type RefToCReadHandlerT
- type RefToCRegisterCdmCallbackT
- type RefToCRenderHandlerT
- type RefToCRenderProcessHandlerT
- type RefToCRequestCallbackT
- type RefToCRequestContextHandlerT
- type RefToCRequestContextT
- type RefToCRequestHandlerT
- type RefToCRequestT
- type RefToCResolveCallbackT
- type RefToCResourceBundleHandlerT
- type RefToCResourceHandlerT
- type RefToCResponseFilterT
- type RefToCResponseT
- type RefToCRunContextMenuCallbackT
- type RefToCRunFileDialogCallbackT
- type RefToCSchemeHandlerFactoryT
- type RefToCSchemeRegistrarT
- type RefToCSelectClientCertificateCallbackT
- type RefToCSetCookieCallbackT
- type RefToCSslinfoT
- type RefToCSslstatusT
- type RefToCStreamReaderT
- type RefToCStreamWriterT
- type RefToCStringVisitorT
- type RefToCTaskRunnerT
- type RefToCTaskT
- type RefToCV8accessorT
- type RefToCV8arrayBufferReleaseCallbackT
- type RefToCV8contextT
- type RefToCV8exceptionT
- type RefToCV8handlerT
- type RefToCV8interceptorT
- type RefToCV8stackFrameT
- type RefToCV8stackTraceT
- type RefToCV8valueT
- type RefToCValueT
- type RefToCWebPluginInfoT
- type RefToCWebPluginInfoVisitorT
- type RefToCWebPluginUnstableCallbackT
- type RefToCWriteHandlerT
- type RefToCX509certPrincipalT
- type RefToCX509certificateT
- type ReleaseBufferHandler
- type RunContextMenuHandler
- type Settings
- type StartDraggingHandler
- type UnhandledCloseSubmenuHandler
- type UnhandledOpenSubmenuHandler
- type UpdateDragCursorHandler
Constants ¶
This section is empty.
Variables ¶
var Logger *log.Logger
Functions ¶
func BaseAddRef ¶
func BaseAddRef(rc refCounted)
func BaseHasAtLeastOneRef ¶ added in v0.1.2
func BaseHasAtLeastOneRef(rc refCounted) bool
func BaseHasOneRef ¶
func BaseHasOneRef(rc refCounted) bool
func BaseRelease ¶
func BaseRelease(rc refCounted) (b bool)
/ Called to decrement the reference count for the object. If the reference count falls to 0 the object should self-delete. Returns true (1) if the resulting reference count is 0. /
func ClearSchemeHandlerFactories ¶ added in v0.1.5
func ClearSchemeHandlerFactories() bool
/ Clear all scheme handler factories registered with the global request context. Returns false (0) on error. This function may be called on any thread in the browser process. Using this function is equivalent to calling c ef_request_tContext::cef_request_context_get_global_context()->clear_scheme_h andler_factories(). /
func CurrentlyOn ¶ added in v0.1.5
func CurrentlyOn( threadId CThreadIdT, ) bool
/ Returns true (1) if called on the specified thread. Equivalent to using cef_task_tRunner::GetForThread(threadId)->belongs_to_current_thread(). /
func DoMessageLoopWork ¶ added in v0.1.5
func DoMessageLoopWork()
/ Perform a single iteration of CEF message loop processing. This function is provided for cases where the CEF message loop must be integrated into an existing application message loop. Use of this function is not recommended for most users; use either the cef_run_message_loop() function or CefSettings.multi_threaded_message_loop if possible. When using this function care must be taken to balance performance against excessive CPU usage. It is recommended to enable the CefSettings.external_message_pump option when using this function so that cef_browser_process_handler_t::on_schedule_message_pump_work() callbacks can facilitate the scheduling process. This function should only be called on the main application thread and only if cef_initialize() is called with a CefSettings.multi_threaded_message_loop value of false (0). This function will not block. /
func EnableHighdpiSupport ¶ added in v0.1.5
func EnableHighdpiSupport()
/ Call during process startup to enable High-DPI support on Windows 7 or newer. Older versions of Windows should be left DPI-unaware because they do not support DirectWrite and GDI fonts are kerned very badly. /
func ExecuteProcess ¶
func ExecuteProcess(app *CAppT)
func Initialize ¶
func IsCertStatusError ¶ added in v0.1.5
func IsCertStatusError( status CCertStatusT, ) bool
/ Returns true (1) if the certificate status has any error, major or minor. /
func IsCertStatusMinorError ¶ added in v0.1.5
func IsCertStatusMinorError( status CCertStatusT, ) bool
/ Returns true (1) if the certificate status represents only minor errors (e.g. failure to verify certificate revocation). /
func IsWebPluginUnstable ¶ added in v0.1.5
func IsWebPluginUnstable( path string, callback *CWebPluginUnstableCallbackT, )
/ Query if a plugin is unstable. Can be called on any thread in the browser process. /
func PostDelayedTask ¶ added in v0.1.5
func PostDelayedTask( threadId CThreadIdT, task *CTaskT, delay_ms int64, ) bool
/ Post a task for delayed execution on the specified thread. Equivalent to using cef_task_tRunner::GetForThread(threadId)->PostDelayedTask(task, delay_ms). /
func PostTask ¶ added in v0.1.5
func PostTask( threadId CThreadIdT, task *CTaskT, ) bool
/ Post a task for execution on the specified thread. Equivalent to using cef_task_tRunner::GetForThread(threadId)->PostTask(task). /
func QuitMessageLoop ¶
func QuitMessageLoop()
/ Quit the CEF message loop that was started by calling cef_run_message_loop(). This function should only be called on the main application thread and only if cef_run_message_loop() was used. /
func RefCountLogOutput ¶
func RefCountLogOutput(enable bool)
func RefCountLogTrace ¶
func RefCountLogTrace(on bool)
func RefreshWebPlugins ¶ added in v0.1.5
func RefreshWebPlugins()
/ Cause the plugin list to refresh the next time it is accessed regardless of whether it has already been loaded. Can be called on any thread in the browser process. /
func RegisterExtension ¶ added in v0.1.5
func RegisterExtension( extension_name string, javascript_code string, handler *CV8handlerT, ) bool
/ Register a new V8 extension with the specified JavaScript extension code and handler. Functions implemented by the handler are prototyped using the keyword 'native'. The calling of a native function is restricted to the scope in which the prototype of the native function is defined. This function may only be called on the render process main thread.
Example JavaScript extension code: <pre>
// create the 'example' global object if it doesn't already exist. if (!example) example = {}; // create the 'example.test' global object if it doesn't already exist. if (!example.test) example.test = {}; (function() { // Define the function 'example.test.myfunction'. example.test.myfunction = function() { // Call CefV8Handler::Execute() with the function name 'MyFunction' // and no arguments. native function MyFunction(); return MyFunction(); }; // Define the getter function for parameter 'example.test.myparam'. example.test.__defineGetter__('myparam', function() { // Call CefV8Handler::Execute() with the function name 'GetMyParam' // and no arguments. native function GetMyParam(); return GetMyParam(); }); // Define the setter function for parameter 'example.test.myparam'. example.test.__defineSetter__('myparam', function(b) { // Call CefV8Handler::Execute() with the function name 'SetMyParam' // and a single argument. native function SetMyParam(); if(b) SetMyParam(b); }); // Extension definitions can also contain normal JavaScript variables // and functions. var myint = 0; example.test.increment = function() { myint += 1; return myint; }; })();
</pre> Example usage in the page: <pre>
// Call the function. example.test.myfunction(); // Set the parameter. example.test.myparam = value; // Get the parameter. value = example.test.myparam; // Call another function. example.test.increment();
</pre> /
func RegisterSchemeHandlerFactory ¶
func RegisterSchemeHandlerFactory( scheme_name string, domain_name string, factory *CSchemeHandlerFactoryT, ) bool
/ Register a scheme handler factory with the global request context. An NULL |domain_name| value for a standard scheme will cause the factory to match all domain names. The |domain_name| value will be ignored for non-standard schemes. If |scheme_name| is a built-in scheme and no handler is returned by |factory| then the built-in scheme handler factory will be called. If |scheme_name| is a custom scheme then you must also implement the cef_app_t::on_register_custom_schemes() function in all processes. This function may be called multiple times to change or remove the factory that matches the specified |scheme_name| and optional |domain_name|. Returns false (0) if an error occurs. This function may be called on any thread in the browser process. Using this function is equivalent to calling cef_request_tCo ntext::cef_request_context_get_global_context()->register_scheme_handler_fact ory(). /
func RegisterWebPluginCrash ¶ added in v0.1.5
func RegisterWebPluginCrash( path string, )
/ Register a plugin crash. Can be called on any thread in the browser process but will be executed on the IO thread. /
func RegisterWidevineCdm ¶ added in v0.1.5
func RegisterWidevineCdm( path string, callback *CRegisterCdmCallbackT, )
/ Register the Widevine CDM plugin.
The client application is responsible for downloading an appropriate platform-specific CDM binary distribution from Google, extracting the contents, and building the required directory structure on the local machine. The cef_browser_host_t::StartDownload function and CefZipArchive structure can be used to implement this functionality in CEF. Contact Google via https://www.widevine.com/contact.html for details on CDM download.
|path| is a directory that must contain the following files:
- manifest.json file from the CDM binary distribution (see below).
- widevinecdm file from the CDM binary distribution (e.g. widevinecdm.dll on on Windows, libwidevinecdm.dylib on OS X, libwidevinecdm.so on Linux).
If any of these files are missing or if the manifest file has incorrect contents the registration will fail and |callback| will receive a |result| value of CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS.
The manifest.json file must contain the following keys:
A. "os": Supported OS (e.g. "mac", "win" or "linux"). B. "arch": Supported architecture (e.g. "ia32" or "x64"). C. "x-cdm-module-versions": Module API version (e.g. "4"). D. "x-cdm-interface-versions": Interface API version (e.g. "8"). E. "x-cdm-host-versions": Host API version (e.g. "8"). F. "version": CDM version (e.g. "1.4.8.903"). G. "x-cdm-codecs": List of supported codecs (e.g. "vp8,vp9.0,avc1").
A through E are used to verify compatibility with the current Chromium version. If the CDM is not compatible the registration will fail and |callback| will receive a |result| value of CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE.
|callback| will be executed asynchronously once registration is complete.
On Linux this function must be called before cef_initialize() and the registration cannot be changed during runtime. If registration is not supported at the time that cef_register_widevine_cdm() is called then |callback| will receive a |result| value of CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED. /
func RunMessageLoop ¶
func RunMessageLoop()
/ Run the CEF message loop. Use this function instead of an application- provided message loop to get the best balance between performance and CPU usage. This function should only be called on the main application thread and only if cef_initialize() is called with a CefSettings.multi_threaded_message_loop value of false (0). This function will block until a quit message is received by the system. /
func SetOsmodalLoop ¶ added in v0.1.5
func SetOsmodalLoop( osModalLoop int, )
/ Set to true (1) before calling Windows APIs like TrackPopupMenu that enter a modal message loop. Set to false (0) after exiting the modal message loop. /
func Shutdown ¶
func Shutdown()
/ This function should be called on the main application thread to shut down the CEF browser process before the application exits. /
func StringListAppend ¶
func StringListAppend( list CStringListT, value string, )
/ Append a new value at the end of the string list. /
func StringListSize ¶
func StringListSize( list CStringListT, ) int64
/ Return the number of elements in the string list. /
func StringListValue ¶
func StringListValue(list CStringListT, index int) (s string, err error)
/ Retrieve the value at the specified zero-based string list index. Returns true (1) if the value was successfully retrieved. /
func StringMapAppend ¶ added in v0.1.5
func StringMapAppend( cmap CStringMapT, key string, value string, ) bool
/ Append a new key/value pair at the end of the string map. /
func StringMapClear ¶ added in v0.1.5
func StringMapClear( cmap CStringMapT, )
/ Clear the string map. /
func StringMapFind ¶ added in v0.1.5
func StringMapFind(smap CStringMapT, key string) (value string, err error)
/ Return the value assigned to the specified key. /
func StringMapFree ¶ added in v0.1.5
func StringMapFree( cmap CStringMapT, )
/ Free the string map. /
func StringMapKey ¶ added in v0.1.5
func StringMapKey( cmap CStringMapT, index int, ) (key string, err error)
/ Return the key at the specified zero-based string map index. /
func StringMapSize ¶ added in v0.1.5
func StringMapSize( cmap CStringMapT, ) int64
/ Return the number of elements in the string map. /
func StringMapValue ¶ added in v0.1.5
func StringMapValue( cmap CStringMapT, index int, ) (value string, err error)
/ Return the value at the specified zero-based string map index. /
func StringMultimapAppend ¶ added in v0.1.5
func StringMultimapAppend( cmap CStringMultimapT, key string, value string, ) bool
/ Append a new key/value pair at the end of the string multimap. /
func StringMultimapClear ¶ added in v0.1.5
func StringMultimapClear( cmap CStringMultimapT, )
/ Clear the string multimap. /
func StringMultimapEnumerate ¶ added in v0.1.5
func StringMultimapEnumerate( cmap CStringMultimapT, key string, value_index int, ) (value string, err error)
/ Return the value_index-th value with the specified key. /
func StringMultimapFindCount ¶ added in v0.1.5
func StringMultimapFindCount( cmap CStringMultimapT, key string, ) int64
/ Return the number of values with the specified key. /
func StringMultimapFree ¶ added in v0.1.5
func StringMultimapFree( cmap CStringMultimapT, )
/ Free the string multimap. /
func StringMultimapKey ¶ added in v0.1.5
func StringMultimapKey( cmap CStringMultimapT, index int, ) (key string, err error)
/ Return the key at the specified zero-based string multimap index. /
func StringMultimapSize ¶ added in v0.1.5
func StringMultimapSize( cmap CStringMultimapT, ) int64
/ Return the number of elements in the string multimap. /
func StringMultimapValue ¶ added in v0.1.5
func StringMultimapValue( cmap CStringMultimapT, index int, ) (value string, err error)
/ Return the value at the specified zero-based string multimap index. /
func TimeFromDoublet ¶ added in v0.1.5
func TimeToDoublet ¶ added in v0.1.5
/ Converts cef_time_t to/from a double which is the number of seconds since epoch (Jan 1, 1970). Webkit uses this format to represent time. A value of 0 means "not initialized". Returns true (1) on success and false (0) on failure. /
func TimeToTimet ¶ added in v0.1.5
/ Converts cef_time_t to/from time_t. Returns true (1) on success and false (0) on failure. /
func UnregisterInternalWebPlugin ¶ added in v0.1.5
func UnregisterInternalWebPlugin( path string, )
/ Unregister an internal plugin. This may be undone the next time cef_refresh_web_plugins() is called. Can be called on any thread in the browser process. /
func V8contextInContext ¶
func V8contextInContext() bool
/ Returns true (1) if V8 is currently inside a context. /
func VisitWebPluginInfo ¶ added in v0.1.5
func VisitWebPluginInfo( visitor *CWebPluginInfoVisitorT, )
/ Visit web plugin information. Can be called on any thread in the browser process. /
Types ¶
type CAccessibilityHandlerT ¶ added in v0.1.5
type CAccessibilityHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_accessibility_handler_t
func AllocCAccessibilityHandlerT ¶ added in v0.1.5
func AllocCAccessibilityHandlerT() *CAccessibilityHandlerT
AllocCAccessibilityHandlerT allocates CAccessibilityHandlerT and construct it
func (*CAccessibilityHandlerT) Bind ¶ added in v0.1.5
func (accessibility_handler *CAccessibilityHandlerT) Bind(a interface{}) *CAccessibilityHandlerT
func (*CAccessibilityHandlerT) HasOneRef ¶ added in v0.1.5
func (accessibility_handler *CAccessibilityHandlerT) HasOneRef() bool
type CAccessibilityHandlerTAccessor ¶ added in v0.1.5
type CAccessibilityHandlerTAccessor interface { GetCAccessibilityHandlerT() *CAccessibilityHandlerT SetCAccessibilityHandlerT(*CAccessibilityHandlerT) }
type CAlphaTypeT ¶ added in v0.1.5
type CAlphaTypeT C.cef_alpha_type_t
/ Describes how to interpret the alpha component of a pixel. /
const ( /// // No transparency. The alpha component is ignored. /// CefAlphaTypeOpaque CAlphaTypeT = C.CEF_ALPHA_TYPE_OPAQUE /// // Transparency with pre-multiplied alpha component. /// CefAlphaTypePremultiplied CAlphaTypeT = C.CEF_ALPHA_TYPE_PREMULTIPLIED /// // Transparency with post-multiplied alpha component. /// CefAlphaTypePostmultiplied CAlphaTypeT = C.CEF_ALPHA_TYPE_POSTMULTIPLIED )
type CAppT ¶
type CAppT struct {
// contains filtered or unexported fields
}
Go type for cef_app_t
func (*CAppT) AssocBrowserProcessHandlerT ¶ added in v0.1.5
func (app *CAppT) AssocBrowserProcessHandlerT(handler *CBrowserProcessHandlerT)
func (*CAppT) AssocRenderProcessHandlerT ¶ added in v0.1.5
func (app *CAppT) AssocRenderProcessHandlerT(handler *CRenderProcessHandlerT)
func (*CAppT) AssocResourceBundleHandlerT ¶ added in v0.1.5
func (app *CAppT) AssocResourceBundleHandlerT(handler *CResourceBundleHandlerT)
type CAppTAccessor ¶
type CAudioHandlerT ¶ added in v0.1.5
type CAudioHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_audio_handler_t
func AllocCAudioHandlerT ¶ added in v0.1.5
func AllocCAudioHandlerT() *CAudioHandlerT
AllocCAudioHandlerT allocates CAudioHandlerT and construct it
func (*CAudioHandlerT) Bind ¶ added in v0.1.5
func (audio_handler *CAudioHandlerT) Bind(a interface{}) *CAudioHandlerT
func (*CAudioHandlerT) HasOneRef ¶ added in v0.1.5
func (audio_handler *CAudioHandlerT) HasOneRef() bool
type CAudioHandlerTAccessor ¶ added in v0.1.5
type CAudioHandlerTAccessor interface { GetCAudioHandlerT() *CAudioHandlerT SetCAudioHandlerT(*CAudioHandlerT) }
type CAuthCallbackT ¶ added in v0.1.5
type CAuthCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_auth_callback_t
func (*CAuthCallbackT) Cancel ¶ added in v0.1.5
func (self *CAuthCallbackT) Cancel()
/ Cancel the authentication request. /
func (*CAuthCallbackT) Cont ¶ added in v0.1.5
func (self *CAuthCallbackT) Cont( username string, password string, )
/ Continue the authentication request. /
func (*CAuthCallbackT) HasOneRef ¶ added in v0.1.5
func (auth_callback *CAuthCallbackT) HasOneRef() bool
type CAuthCallbackTAccessor ¶ added in v0.1.5
type CAuthCallbackTAccessor interface { GetCAuthCallbackT() *CAuthCallbackT SetCAuthCallbackT(*CAuthCallbackT) }
type CBeforeDownloadCallbackT ¶ added in v0.1.5
type CBeforeDownloadCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_before_download_callback_t
func (*CBeforeDownloadCallbackT) Cont ¶ added in v0.1.5
func (self *CBeforeDownloadCallbackT) Cont( download_path string, show_dialog int, )
/ Call to continue the download. Set |download_path| to the full file path for the download including the file name or leave blank to use the suggested name and the default temp directory. Set |show_dialog| to true (1) if you do wish to show the default "Save As" dialog. /
func (*CBeforeDownloadCallbackT) HasOneRef ¶ added in v0.1.5
func (before_download_callback *CBeforeDownloadCallbackT) HasOneRef() bool
type CBeforeDownloadCallbackTAccessor ¶ added in v0.1.5
type CBeforeDownloadCallbackTAccessor interface { GetCBeforeDownloadCallbackT() *CBeforeDownloadCallbackT SetCBeforeDownloadCallbackT(*CBeforeDownloadCallbackT) }
type CBinaryValueT ¶
type CBinaryValueT struct {
// contains filtered or unexported fields
}
Go type for cef_binary_value_t
func BinaryValueCreate ¶
func BinaryValueCreate( data []byte, ) *CBinaryValueT
/ Creates a new object that is not owned by any other object. The specified |data| will be copied. /
func (*CBinaryValueT) Copy ¶ added in v0.1.5
func (self *CBinaryValueT) Copy() *CBinaryValueT
/ Returns a copy of this object. The data in this object will also be copied. /
func (*CBinaryValueT) GetData ¶ added in v0.1.5
func (self *CBinaryValueT) GetData( buffer unsafe.Pointer, buffer_size int64, data_offset int64, ) int64
/ Read up to |buffer_size| number of bytes into |buffer|. Reading begins at the specified byte |data_offset|. Returns the number of bytes read. /
func (*CBinaryValueT) GetSize ¶ added in v0.1.5
func (self *CBinaryValueT) GetSize() int64
/ Returns the data size. /
func (*CBinaryValueT) HasOneRef ¶ added in v0.1.5
func (binary_value *CBinaryValueT) HasOneRef() bool
func (*CBinaryValueT) IsEqual ¶ added in v0.1.5
func (self *CBinaryValueT) IsEqual( that *CBinaryValueT, ) bool
/ Returns true (1) if this object and |that| object have an equivalent underlying value but are not necessarily the same object. /
func (*CBinaryValueT) IsOwned ¶ added in v0.1.5
func (self *CBinaryValueT) IsOwned() bool
/ Returns true (1) if this object is currently owned by another object. /
func (*CBinaryValueT) IsSame ¶ added in v0.1.5
func (self *CBinaryValueT) IsSame( that *CBinaryValueT, ) bool
/ Returns true (1) if this object and |that| object have the same underlying data. /
func (*CBinaryValueT) IsValid ¶ added in v0.1.5
func (self *CBinaryValueT) IsValid() bool
/ Returns true (1) if this object is valid. This object may become invalid if the underlying data is owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. Do not call any other functions if this function returns false (0). /
type CBinaryValueTAccessor ¶
type CBinaryValueTAccessor interface { GetCBinaryValueT() *CBinaryValueT SetCBinaryValueT(*CBinaryValueT) }
type CBoxLayoutSettingsT ¶ added in v0.1.5
type CBoxLayoutSettingsT C.cef_box_layout_settings_t
/ Settings used when initializing a CefBoxLayout. /
type CBrowserHostT ¶
type CBrowserHostT struct {
// contains filtered or unexported fields
}
Go type for cef_browser_host_t
func (*CBrowserHostT) AddWordToDictionary ¶ added in v0.1.5
func (self *CBrowserHostT) AddWordToDictionary( word string, )
/ Add the specified |word| to the spelling dictionary. /
func (*CBrowserHostT) CloseBrowser ¶ added in v0.1.5
func (self *CBrowserHostT) CloseBrowser( force_close int, )
/ Request that the browser close. The JavaScript 'onbeforeunload' event will be fired. If |force_close| is false (0) the event handler, if any, will be allowed to prompt the user and the user can optionally cancel the close. If |force_close| is true (1) the prompt will not be displayed and the close will proceed. Results in a call to cef_life_span_handler_t::do_close() if the event handler allows the close or if |force_close| is true (1). See cef_life_span_handler_t::do_close() documentation for additional usage information. /
func (*CBrowserHostT) CloseDevTools ¶ added in v0.1.5
func (self *CBrowserHostT) CloseDevTools()
/ Explicitly close the associated DevTools browser, if any. /
func (*CBrowserHostT) DownloadImage ¶ added in v0.1.5
func (self *CBrowserHostT) DownloadImage( image_url string, is_favicon int, max_image_size uint32, bypass_cache int, callback *CDownloadImageCallbackT, )
/ Download |image_url| and execute |callback| on completion with the images received from the renderer. If |is_favicon| is true (1) then cookies are not sent and not accepted during download. Images with density independent pixel (DIP) sizes larger than |max_image_size| are filtered out from the image results. Versions of the image at different scale factors may be downloaded up to the maximum scale factor supported by the system. If there are no image results <= |max_image_size| then the smallest image is resized to |max_image_size| and is the only result. A |max_image_size| of 0 means unlimited. If |bypass_cache| is true (1) then |image_url| is requested from the server even if it is present in the browser cache. /
func (*CBrowserHostT) DragSourceEndedAt ¶ added in v0.1.5
func (self *CBrowserHostT) DragSourceEndedAt( x int, y int, op CDragOperationsMaskT, )
/ Call this function when the drag operation started by a cef_render_handler_t::StartDragging call has ended either in a drop or by being cancelled. |x| and |y| are mouse coordinates relative to the upper- left corner of the view. If the web view is both the drag source and the drag target then all DragTarget* functions should be called before DragSource* mthods. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) DragSourceSystemDragEnded ¶ added in v0.1.5
func (self *CBrowserHostT) DragSourceSystemDragEnded()
/ Call this function when the drag operation started by a cef_render_handler_t::StartDragging call has completed. This function may be called immediately without first calling DragSourceEndedAt to cancel a drag operation. If the web view is both the drag source and the drag target then all DragTarget* functions should be called before DragSource* mthods. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) DragTargetDragEnter ¶ added in v0.1.5
func (self *CBrowserHostT) DragTargetDragEnter( drag_data *CDragDataT, event *CMouseEventT, allowed_ops CDragOperationsMaskT, )
/ Call this function when the user drags the mouse into the web view (before calling DragTargetDragOver/DragTargetLeave/DragTargetDrop). |drag_data| should not contain file contents as this type of data is not allowed to be dragged into the web view. File contents can be removed using cef_drag_data_t::ResetFileContents (for example, if |drag_data| comes from cef_render_handler_t::StartDragging). This function is only used when window rendering is disabled. /
func (*CBrowserHostT) DragTargetDragLeave ¶ added in v0.1.5
func (self *CBrowserHostT) DragTargetDragLeave()
/ Call this function when the user drags the mouse out of the web view (after calling DragTargetDragEnter). This function is only used when window rendering is disabled. /
func (*CBrowserHostT) DragTargetDragOver ¶ added in v0.1.5
func (self *CBrowserHostT) DragTargetDragOver( event *CMouseEventT, allowed_ops CDragOperationsMaskT, )
/ Call this function each time the mouse is moved across the web view during a drag operation (after calling DragTargetDragEnter and before calling DragTargetDragLeave/DragTargetDrop). This function is only used when window rendering is disabled. /
func (*CBrowserHostT) DragTargetDrop ¶ added in v0.1.5
func (self *CBrowserHostT) DragTargetDrop( event *CMouseEventT, )
/ Call this function when the user completes the drag operation by dropping the object onto the web view (after calling DragTargetDragEnter). The object being dropped is |drag_data|, given as an argument to the previous DragTargetDragEnter call. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) Find ¶ added in v0.1.5
func (self *CBrowserHostT) Find( identifier int, searchText string, forward int, matchCase int, findNext int, )
/ Search for |searchText|. |identifier| must be a unique ID and these IDs must strictly increase so that newer requests always have greater IDs than older requests. If |identifier| is zero or less than the previous ID value then it will be automatically assigned a new valid ID. |forward| indicates whether to search forward or backward within the page. |matchCase| indicates whether the search should be case-sensitive. |findNext| indicates whether this is the first request or a follow-up. The cef_find_handler_t instance, if any, returned via cef_client_t::GetFindHandler will be called to report find results. /
func (*CBrowserHostT) GetBrowser ¶ added in v0.1.5
func (self *CBrowserHostT) GetBrowser() *CBrowserT
/ Returns the hosted browser object. /
func (*CBrowserHostT) GetClient ¶ added in v0.1.5
func (self *CBrowserHostT) GetClient() *CClientT
/ Returns the client for this browser. /
func (*CBrowserHostT) GetExtension ¶ added in v0.1.5
func (self *CBrowserHostT) GetExtension() *CExtensionT
/ Returns the extension hosted in this browser or NULL if no extension is hosted. See cef_request_tContext::LoadExtension for details. /
func (*CBrowserHostT) GetNavigationEntries ¶ added in v0.1.5
func (self *CBrowserHostT) GetNavigationEntries( visitor *CNavigationEntryVisitorT, current_only int, )
/ Retrieve a snapshot of current navigation entries as values sent to the specified visitor. If |current_only| is true (1) only the current navigation entry will be sent, otherwise all navigation entries will be sent. /
func (*CBrowserHostT) GetOpenerWindowHandle ¶ added in v0.1.5
func (self *CBrowserHostT) GetOpenerWindowHandle() CWindowHandleT
/ Retrieve the window handle of the browser that opened this browser. Will return NULL for non-popup windows or if this browser is wrapped in a cef_browser_view_t. This function can be used in combination with custom handling of modal windows. /
func (*CBrowserHostT) GetRequestContext ¶ added in v0.1.5
func (self *CBrowserHostT) GetRequestContext() *CRequestContextT
/ Returns the request context for this browser. /
func (*CBrowserHostT) GetVisibleNavigationEntry ¶ added in v0.1.5
func (self *CBrowserHostT) GetVisibleNavigationEntry() *CNavigationEntryT
/ Returns the current visible navigation entry for this browser. This function can only be called on the UI thread. /
func (*CBrowserHostT) GetWindowHandle ¶ added in v0.1.5
func (self *CBrowserHostT) GetWindowHandle() CWindowHandleT
/ Retrieve the window handle for this browser. If this browser is wrapped in a cef_browser_view_t this function should be called on the browser process UI thread and it will return the handle for the top-level native window. /
func (*CBrowserHostT) GetWindowlessFrameRate ¶ added in v0.1.5
func (self *CBrowserHostT) GetWindowlessFrameRate() bool
/ Returns the maximum rate in frames per second (fps) that cef_render_handler_t:: OnPaint will be called for a windowless browser. The actual fps may be lower if the browser cannot generate frames at the requested rate. The minimum value is 1 and the maximum value is 60 (default 30). This function can only be called on the UI thread. /
func (*CBrowserHostT) GetZoomLevel ¶ added in v0.1.5
func (self *CBrowserHostT) GetZoomLevel() float64
/ Get the current zoom level. The default zoom level is 0.0. This function can only be called on the UI thread. /
func (*CBrowserHostT) HasDevTools ¶ added in v0.1.5
func (self *CBrowserHostT) HasDevTools() bool
/ Returns true (1) if this browser currently has an associated DevTools browser. Must be called on the browser process UI thread. /
func (*CBrowserHostT) HasOneRef ¶ added in v0.1.5
func (browser_host *CBrowserHostT) HasOneRef() bool
func (*CBrowserHostT) HasView ¶ added in v0.1.5
func (self *CBrowserHostT) HasView() bool
/ Returns true (1) if this browser is wrapped in a cef_browser_view_t. /
func (*CBrowserHostT) ImeCancelComposition ¶ added in v0.1.5
func (self *CBrowserHostT) ImeCancelComposition()
/ Cancels the existing composition and discards the composition node contents without applying them. See comments on ImeSetComposition for usage. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) ImeCommitText ¶ added in v0.1.5
func (self *CBrowserHostT) ImeCommitText( text string, replacement_range *CRangeT, relative_cursor_pos int, )
/ Completes the existing composition by optionally inserting the specified |text| into the composition node. |replacement_range| is an optional range of the existing text that will be replaced. |relative_cursor_pos| is where the cursor will be positioned relative to the current cursor position. See comments on ImeSetComposition for usage. The |replacement_range| and |relative_cursor_pos| values are only used on OS X. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) ImeFinishComposingText ¶ added in v0.1.5
func (self *CBrowserHostT) ImeFinishComposingText( keep_selection int, )
/ Completes the existing composition by applying the current composition node contents. If |keep_selection| is false (0) the current selection, if any, will be discarded. See comments on ImeSetComposition for usage. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) ImeSetComposition ¶ added in v0.1.5
func (self *CBrowserHostT) ImeSetComposition( text string, underlinesCount int64, underlines *CCompositionUnderlineT, replacement_range *CRangeT, selection_range *CRangeT, )
/ Begins a new composition or updates the existing composition. Blink has a special node (a composition node) that allows the input function to change text without affecting other DOM nodes. |text| is the optional text that will be inserted into the composition node. |underlines| is an optional set of ranges that will be underlined in the resulting text. |replacement_range| is an optional range of the existing text that will be replaced. |selection_range| is an optional range of the resulting text that will be selected after insertion or replacement. The |replacement_range| value is only used on OS X.
This function may be called multiple times as the composition changes. When the client is done making changes the composition should either be canceled or completed. To cancel the composition call ImeCancelComposition. To complete the composition call either ImeCommitText or ImeFinishComposingText. Completion is usually signaled when:
A. The client receives a WM_IME_COMPOSITION message with a GCS_RESULTSTR flag (on Windows), or; B. The client receives a "commit" signal of GtkIMContext (on Linux), or; C. insertText of NSTextInput is called (on Mac).
This function is only used when window rendering is disabled. /
func (*CBrowserHostT) Invalidate ¶ added in v0.1.5
func (self *CBrowserHostT) Invalidate( ctype CPaintElementTypeT, )
/ Invalidate the view. The browser will call cef_render_handler_t::OnPaint asynchronously. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) IsAudioMuted ¶ added in v0.1.5
func (self *CBrowserHostT) IsAudioMuted() bool
/ Returns true (1) if the browser's audio is muted. This function can only be called on the UI thread. /
func (*CBrowserHostT) IsBackgroundHost ¶ added in v0.1.5
func (self *CBrowserHostT) IsBackgroundHost() bool
/ Returns true (1) if this browser is hosting an extension background script. Background hosts do not have a window and are not displayable. See cef_request_tContext::LoadExtension for details. /
func (*CBrowserHostT) IsMouseCursorChangeDisabled ¶ added in v0.1.5
func (self *CBrowserHostT) IsMouseCursorChangeDisabled() bool
/ Returns true (1) if mouse cursor change is disabled. /
func (*CBrowserHostT) IsWindowRenderingDisabled ¶ added in v0.1.5
func (self *CBrowserHostT) IsWindowRenderingDisabled() bool
/ Returns true (1) if window rendering is disabled. /
func (*CBrowserHostT) NotifyMoveOrResizeStarted ¶ added in v0.1.5
func (self *CBrowserHostT) NotifyMoveOrResizeStarted()
/ Notify the browser that the window hosting it is about to be moved or resized. This function is only used on Windows and Linux. /
func (*CBrowserHostT) NotifyScreenInfoChanged ¶ added in v0.1.5
func (self *CBrowserHostT) NotifyScreenInfoChanged()
/ Send a notification to the browser that the screen info has changed. The browser will then call cef_render_handler_t::GetScreenInfo to update the screen information with the new values. This simulates moving the webview window from one display to another, or changing the properties of the current display. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) Print ¶ added in v0.1.5
func (self *CBrowserHostT) Print()
/ Print the current browser contents. /
func (*CBrowserHostT) PrintToPdf ¶ added in v0.1.5
func (self *CBrowserHostT) PrintToPdf( path string, settings *CPdfPrintSettingsT, callback *CPdfPrintCallbackT, )
/ Print the current browser contents to the PDF file specified by |path| and execute |callback| on completion. The caller is responsible for deleting |path| when done. For PDF printing to work on Linux you must implement the cef_print_handler_t::GetPdfPaperSize function. /
func (*CBrowserHostT) ReplaceMisspelling ¶ added in v0.1.5
func (self *CBrowserHostT) ReplaceMisspelling( word string, )
/ If a misspelled word is currently selected in an editable node calling this function will replace it with the specified |word|. /
func (*CBrowserHostT) RunFileDialog ¶
func (self *CBrowserHostT) RunFileDialog( mode CFileDialogModeT, title string, default_file_path string, accept_filters CStringListT, selected_accept_filter int, callback *CRunFileDialogCallbackT, )
/ Call to run a file chooser dialog. Only a single file chooser dialog may be pending at any given time. |mode| represents the type of dialog to display. |title| to the title to be used for the dialog and may be NULL to show the default title ("Open" or "Save" depending on the mode). |default_file_path| is the path with optional directory and/or file name component that will be initially selected in the dialog. |accept_filters| are used to restrict the selectable file types and may any combination of (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). |selected_accept_filter| is the 0-based index of the filter that will be selected by default. |callback| will be executed after the dialog is dismissed or immediately if another dialog is already pending. The dialog will be initiated asynchronously on the UI thread. /
func (*CBrowserHostT) SendCaptureLostEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendCaptureLostEvent()
/ Send a capture lost event to the browser. /
func (*CBrowserHostT) SendExternalBeginFrame ¶ added in v0.1.5
func (self *CBrowserHostT) SendExternalBeginFrame()
/ Issue a BeginFrame request to Chromium. Only valid when cef_window_tInfo::external_begin_frame_enabled is set to true (1). /
func (*CBrowserHostT) SendFocusEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendFocusEvent( setFocus int, )
/ Send a focus event to the browser. /
func (*CBrowserHostT) SendKeyEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendKeyEvent( event *CKeyEventT, )
/ Send a key event to the browser. /
func (*CBrowserHostT) SendMouseClickEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendMouseClickEvent( event *CMouseEventT, ctype CMouseButtonTypeT, mouseUp int, clickCount int, )
/ Send a mouse click event to the browser. The |x| and |y| coordinates are relative to the upper-left corner of the view. /
func (*CBrowserHostT) SendMouseMoveEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendMouseMoveEvent( event *CMouseEventT, mouseLeave int, )
/ Send a mouse move event to the browser. The |x| and |y| coordinates are relative to the upper-left corner of the view. /
func (*CBrowserHostT) SendMouseWheelEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendMouseWheelEvent( event *CMouseEventT, deltaX int, deltaY int, )
/ Send a mouse wheel event to the browser. The |x| and |y| coordinates are relative to the upper-left corner of the view. The |deltaX| and |deltaY| values represent the movement delta in the X and Y directions respectively. In order to scroll inside select popups with window rendering disabled cef_render_handler_t::GetScreenPoint should be implemented properly. /
func (*CBrowserHostT) SendTouchEvent ¶ added in v0.1.5
func (self *CBrowserHostT) SendTouchEvent( event *CTouchEventT, )
/ Send a touch event to the browser for a windowless browser. /
func (*CBrowserHostT) SetAccessibilityState ¶ added in v0.1.5
func (self *CBrowserHostT) SetAccessibilityState( accessibility_state CStateT, )
/ Set accessibility state for all frames. |accessibility_state| may be default, enabled or disabled. If |accessibility_state| is STATE_DEFAULT then accessibility will be disabled by default and the state may be further controlled with the "force-renderer-accessibility" and "disable-renderer- accessibility" command-line switches. If |accessibility_state| is STATE_ENABLED then accessibility will be enabled. If |accessibility_state| is STATE_DISABLED then accessibility will be completely disabled.
For windowed browsers accessibility will be enabled in Complete mode (which corresponds to kAccessibilityModeComplete in Chromium). In this mode all platform accessibility objects will be created and managed by Chromium's internal implementation. The client needs only to detect the screen reader and call this function appropriately. For example, on macOS the client can handle the @"AXEnhancedUserStructure" accessibility attribute to detect VoiceOver state changes and on Windows the client can handle WM_GETOBJECT with OBJID_CLIENT to detect accessibility readers.
For windowless browsers accessibility will be enabled in TreeOnly mode (which corresponds to kAccessibilityModeWebContentsOnly in Chromium). In this mode renderer accessibility is enabled, the full tree is computed, and events are passed to CefAccessibiltyHandler, but platform accessibility objects are not created. The client may implement platform accessibility objects using CefAccessibiltyHandler callbacks if desired. /
func (*CBrowserHostT) SetAudioMuted ¶ added in v0.1.5
func (self *CBrowserHostT) SetAudioMuted( mute int, )
/
Set whether the browser's audio is muted.
/
func (*CBrowserHostT) SetAutoResizeEnabled ¶ added in v0.1.5
func (self *CBrowserHostT) SetAutoResizeEnabled( enabled int, min_size *CSizeT, max_size *CSizeT, )
/ Enable notifications of auto resize via cef_display_handler_t::OnAutoResize. Notifications are disabled by default. |min_size| and |max_size| define the range of allowed sizes. /
func (*CBrowserHostT) SetFocus ¶ added in v0.1.5
func (self *CBrowserHostT) SetFocus( focus int, )
/ Set whether the browser is focused. /
func (*CBrowserHostT) SetMouseCursorChangeDisabled ¶ added in v0.1.5
func (self *CBrowserHostT) SetMouseCursorChangeDisabled( disabled int, )
/ Set whether mouse cursor change is disabled. /
func (*CBrowserHostT) SetWindowlessFrameRate ¶ added in v0.1.5
func (self *CBrowserHostT) SetWindowlessFrameRate( frame_rate int, )
/ Set the maximum rate in frames per second (fps) that cef_render_handler_t:: OnPaint will be called for a windowless browser. The actual fps may be lower if the browser cannot generate frames at the requested rate. The minimum value is 1 and the maximum value is 60 (default 30). Can also be set at browser creation via cef_browser_tSettings.windowless_frame_rate. /
func (*CBrowserHostT) SetZoomLevel ¶ added in v0.1.5
func (self *CBrowserHostT) SetZoomLevel( zoomLevel float64, )
/ Change the zoom level to the specified value. Specify 0.0 to reset the zoom level. If called on the UI thread the change will be applied immediately. Otherwise, the change will be applied asynchronously on the UI thread. /
func (*CBrowserHostT) ShowDevTools ¶ added in v0.1.5
func (self *CBrowserHostT) ShowDevTools( windowInfo *CWindowInfoT, client *CClientT, settings *CBrowserSettingsT, inspect_element_at *CPointT, )
/ Open developer tools (DevTools) in its own browser. The DevTools browser will remain associated with this browser. If the DevTools browser is already open then it will be focused, in which case the |windowInfo|, |client| and |settings| parameters will be ignored. If |inspect_element_at| is non-NULL then the element at the specified (x,y) location will be inspected. The |windowInfo| parameter will be ignored if this browser is wrapped in a cef_browser_view_t. /
func (*CBrowserHostT) StartDownload ¶ added in v0.1.5
func (self *CBrowserHostT) StartDownload( url string, )
/ Download the file at |url| using cef_download_handler_t. /
func (*CBrowserHostT) StopFinding ¶ added in v0.1.5
func (self *CBrowserHostT) StopFinding( clearSelection int, )
/ Cancel all searches that are currently going on. /
func (*CBrowserHostT) TryCloseBrowser ¶ added in v0.1.5
func (self *CBrowserHostT) TryCloseBrowser() bool
/ Helper for closing a browser. Call this function from the top-level window close handler. Internally this calls CloseBrowser(false (0)) if the close has not yet been initiated. This function returns false (0) while the close is pending and true (1) after the close has completed. See close_browser() and cef_life_span_handler_t::do_close() documentation for additional usage information. This function must be called on the browser process UI thread. /
func (*CBrowserHostT) WasHidden ¶ added in v0.1.5
func (self *CBrowserHostT) WasHidden( hidden int, )
/ Notify the browser that it has been hidden or shown. Layouting and cef_render_handler_t::OnPaint notification will stop when the browser is hidden. This function is only used when window rendering is disabled. /
func (*CBrowserHostT) WasResized ¶ added in v0.1.5
func (self *CBrowserHostT) WasResized()
/ Notify the browser that the widget has been resized. The browser will first call cef_render_handler_t::GetViewRect to get the new size and then call cef_render_handler_t::OnPaint asynchronously with the updated regions. This function is only used when window rendering is disabled. /
type CBrowserHostTAccessor ¶
type CBrowserHostTAccessor interface { GetCBrowserHostT() *CBrowserHostT SetCBrowserHostT(*CBrowserHostT) }
type CBrowserProcessHandlerT ¶
type CBrowserProcessHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_browser_process_handler_t
func AllocCBrowserProcessHandlerT ¶
func AllocCBrowserProcessHandlerT() *CBrowserProcessHandlerT
AllocCBrowserProcessHandlerT allocates CBrowserProcessHandlerT and construct it
func (*CBrowserProcessHandlerT) AssocPrintHandlerT ¶ added in v0.1.5
func (browser_process_handler *CBrowserProcessHandlerT) AssocPrintHandlerT(handler *CPrintHandlerT)
func (*CBrowserProcessHandlerT) Bind ¶
func (browser_process_handler *CBrowserProcessHandlerT) Bind(a interface{}) *CBrowserProcessHandlerT
func (*CBrowserProcessHandlerT) HasOneRef ¶ added in v0.1.5
func (browser_process_handler *CBrowserProcessHandlerT) HasOneRef() bool
type CBrowserProcessHandlerTAccessor ¶
type CBrowserProcessHandlerTAccessor interface { GetCBrowserProcessHandlerT() *CBrowserProcessHandlerT SetCBrowserProcessHandlerT(*CBrowserProcessHandlerT) }
type CBrowserSettingsT ¶ added in v0.1.5
type CBrowserSettingsT C.cef_browser_settings_t
/ Browser initialization settings. Specify NULL or 0 to get the recommended default values. The consequences of using custom values may not be well tested. Many of these and other settings can also configured using command- line switches. /
type CBrowserT ¶
type CBrowserT struct {
// contains filtered or unexported fields
}
Go type for cef_browser_t
func (*CBrowserT) CanGoBack ¶ added in v0.1.5
/ Returns true (1) if the browser can navigate backwards. /
func (*CBrowserT) CanGoForward ¶ added in v0.1.5
/ Returns true (1) if the browser can navigate forwards. /
func (*CBrowserT) GetFocusedFrame ¶
/ Returns the focused frame for the browser window. /
func (*CBrowserT) GetFrame ¶ added in v0.1.5
/ Returns the frame with the specified name, or NULL if not found. /
func (*CBrowserT) GetFrameByident ¶ added in v0.1.5
/ Returns the frame with the specified identifier, or NULL if not found. /
func (*CBrowserT) GetFrameCount ¶ added in v0.1.5
/ Returns the number of frames that currently exist. /
func (*CBrowserT) GetFrameNames ¶ added in v0.1.5
func (self *CBrowserT) GetFrameNames( names CStringListT, )
/ Returns the names of all existing frames. /
func (*CBrowserT) GetHost ¶
func (self *CBrowserT) GetHost() *CBrowserHostT
/ Returns the browser host object. This function can only be called in the browser process. /
func (*CBrowserT) GetIdentifier ¶ added in v0.1.5
/ Returns the globally unique identifier for this browser. This value is also used as the tabId for extension APIs. /
func (*CBrowserT) GetMainFrame ¶ added in v0.1.5
/ Returns the main (top-level) frame for the browser window. /
func (*CBrowserT) GoForward ¶ added in v0.1.5
func (self *CBrowserT) GoForward()
/ Navigate forwards. /
func (*CBrowserT) HasDocument ¶ added in v0.1.5
/ Returns true (1) if a document has been loaded in the browser. /
func (*CBrowserT) IsLoading ¶ added in v0.1.5
/ Returns true (1) if the browser is currently loading. /
func (*CBrowserT) IsSame ¶ added in v0.1.5
/ Returns true (1) if this object is pointing to the same handle as |that| object. /
func (*CBrowserT) Reload ¶ added in v0.1.5
func (self *CBrowserT) Reload()
/ Reload the current page. /
func (*CBrowserT) ReloadIgnoreCache ¶ added in v0.1.5
func (self *CBrowserT) ReloadIgnoreCache()
/ Reload the current page ignoring any cached data. /
func (*CBrowserT) SendProcessMessage ¶
func (self *CBrowserT) SendProcessMessage( target_process CProcessIdT, message *CProcessMessageT, ) bool
/ Send a message to the specified |target_process|. Returns true (1) if the message was sent successfully. /
type CBrowserTAccessor ¶
type CButtonStateT ¶ added in v0.1.5
type CButtonStateT C.cef_button_state_t
/ Specifies the button display state. /
const ( CefButtonStateNormal CButtonStateT = C.CEF_BUTTON_STATE_NORMAL CefButtonStateHovered CButtonStateT = C.CEF_BUTTON_STATE_HOVERED CefButtonStatePressed CButtonStateT = C.CEF_BUTTON_STATE_PRESSED CefButtonStateDisabled CButtonStateT = C.CEF_BUTTON_STATE_DISABLED )
type CCallbackT ¶
type CCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_callback_t
func (*CCallbackT) HasOneRef ¶ added in v0.1.5
func (callback *CCallbackT) HasOneRef() bool
type CCallbackTAccessor ¶
type CCallbackTAccessor interface { GetCCallbackT() *CCallbackT SetCCallbackT(*CCallbackT) }
type CCdmRegistrationErrorT ¶ added in v0.1.5
type CCdmRegistrationErrorT C.cef_cdm_registration_error_t
/ Error codes for CDM registration. See cef_web_plugin.h for details. /
const ( /// // No error. Registration completed successfully. /// CefCdmRegistrationErrorNone CCdmRegistrationErrorT = C.CEF_CDM_REGISTRATION_ERROR_NONE /// // Required files or manifest contents are missing. /// CefCdmRegistrationErrorIncorrectContents CCdmRegistrationErrorT = C.CEF_CDM_REGISTRATION_ERROR_INCORRECT_CONTENTS /// // The CDM is incompatible with the current Chromium version. /// CefCdmRegistrationErrorIncompatible CCdmRegistrationErrorT = C.CEF_CDM_REGISTRATION_ERROR_INCOMPATIBLE /// // CDM registration is not supported at this time. /// CefCdmRegistrationErrorNotSupported CCdmRegistrationErrorT = C.CEF_CDM_REGISTRATION_ERROR_NOT_SUPPORTED )
type CCertStatusT ¶ added in v0.1.5
type CCertStatusT C.cef_cert_status_t
/ Supported certificate status code values. See net\cert\cert_status_flags.h for more information. CERT_STATUS_NONE is new in CEF because we use an enum while cert_status_flags.h uses a typedef and static const variables. /
const ( CertStatusNone CCertStatusT = C.CERT_STATUS_NONE CertStatusCommonNameInvalid CCertStatusT = C.CERT_STATUS_COMMON_NAME_INVALID CertStatusDateInvalid CCertStatusT = C.CERT_STATUS_DATE_INVALID CertStatusAuthorityInvalid CCertStatusT = C.CERT_STATUS_AUTHORITY_INVALID // 1 << 3 is reserved for ERR_CERT_CONTAINS_ERRORS (not useful with WinHTTP). CertStatusNoRevocationMechanism CCertStatusT = C.CERT_STATUS_NO_REVOCATION_MECHANISM CertStatusUnableToCheckRevocation CCertStatusT = C.CERT_STATUS_UNABLE_TO_CHECK_REVOCATION CertStatusRevoked CCertStatusT = C.CERT_STATUS_REVOKED CertStatusInvalid CCertStatusT = C.CERT_STATUS_INVALID CertStatusWeakSignatureAlgorithm CCertStatusT = C.CERT_STATUS_WEAK_SIGNATURE_ALGORITHM // 1 << 9 was used for CERT_STATUS_NOT_IN_DNS CertStatusNonUniqueName CCertStatusT = C.CERT_STATUS_NON_UNIQUE_NAME CertStatusWeakKey CCertStatusT = C.CERT_STATUS_WEAK_KEY // 1 << 12 was used for CERT_STATUS_WEAK_DH_KEY CertStatusPinnedKeyMissing CCertStatusT = C.CERT_STATUS_PINNED_KEY_MISSING CertStatusNameConstraintViolation CCertStatusT = C.CERT_STATUS_NAME_CONSTRAINT_VIOLATION CertStatusValidityTooLong CCertStatusT = C.CERT_STATUS_VALIDITY_TOO_LONG // Bits 16 to 31 are for non-error statuses. CertStatusIsEv CCertStatusT = C.CERT_STATUS_IS_EV CertStatusRevCheckingEnabled CCertStatusT = C.CERT_STATUS_REV_CHECKING_ENABLED // Bit 18 was CERT_STATUS_IS_DNSSEC CertStatusSha1SignaturePresent CCertStatusT = C.CERT_STATUS_SHA1_SIGNATURE_PRESENT CertStatusCtComplianceFailed CCertStatusT = C.CERT_STATUS_CT_COMPLIANCE_FAILED )
type CChannelLayoutT ¶ added in v0.1.5
type CChannelLayoutT C.cef_channel_layout_t
/ Enumerates the various representations of the ordering of audio channels. Logged to UMA, so never reuse a value, always add new/greater ones! See media\base\channel_layout.h /
const ( CefChannelLayoutNone CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_NONE CefChannelLayoutUnsupported CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_UNSUPPORTED // Front C CefChannelLayoutMono CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_MONO // Front L, Front R CefChannelLayoutStereo CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_STEREO // Front L, Front R, Back C CefChannelLayout21 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_2_1 // Front L, Front R, Front C CefChannelLayoutSurround CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_SURROUND // Front L, Front R, Front C, Back C CefChannelLayout40 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_4_0 // Front L, Front R, Side L, Side R CefChannelLayout22 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_2_2 // Front L, Front R, Back L, Back R CefChannelLayoutQuad CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_QUAD // Front L, Front R, Front C, Side L, Side R CefChannelLayout50 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_5_0 // Front L, Front R, Front C, LFE, Side L, Side R CefChannelLayout51 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_5_1 // Front L, Front R, Front C, Back L, Back R CefChannelLayout50Back CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_5_0_BACK // Front L, Front R, Front C, LFE, Back L, Back R CefChannelLayout51Back CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_5_1_BACK // Front L, Front R, Front C, Side L, Side R, Back L, Back R CefChannelLayout70 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_7_0 // Front L, Front R, Front C, LFE, Side L, Side R, Back L, Back R CefChannelLayout71 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_7_1 // Front L, Front R, Front C, LFE, Side L, Side R, Front LofC, Front RofC CefChannelLayout71Wide CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_7_1_WIDE // Stereo L, Stereo R CefChannelLayoutStereoDownmix CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_STEREO_DOWNMIX // Stereo L, Stereo R, LFE CefChannelLayout2point1 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_2POINT1 // Stereo L, Stereo R, Front C, LFE CefChannelLayout31 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_3_1 // Stereo L, Stereo R, Front C, Rear C, LFE CefChannelLayout41 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_4_1 // Stereo L, Stereo R, Front C, Side L, Side R, Back C CefChannelLayout60 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_6_0 // Stereo L, Stereo R, Side L, Side R, Front LofC, Front RofC CefChannelLayout60Front CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_6_0_FRONT // Stereo L, Stereo R, Front C, Rear L, Rear R, Rear C CefChannelLayoutHexagonal CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_HEXAGONAL // Stereo L, Stereo R, Front C, LFE, Side L, Side R, Rear Center CefChannelLayout61 CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_6_1 // Stereo L, Stereo R, Front C, LFE, Back L, Back R, Rear Center CefChannelLayout61Back CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_6_1_BACK // Stereo L, Stereo R, Side L, Side R, Front LofC, Front RofC, LFE CefChannelLayout61Front CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_6_1_FRONT // Front L, Front R, Front C, Side L, Side R, Front LofC, Front RofC CefChannelLayout70Front CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_7_0_FRONT // Front L, Front R, Front C, LFE, Back L, Back R, Front LofC, Front RofC CefChannelLayout71WideBack CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_7_1_WIDE_BACK // Front L, Front R, Front C, Side L, Side R, Rear L, Back R, Back C. CefChannelLayoutOctagonal CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_OCTAGONAL // Channels are not explicitly mapped to speakers. CefChannelLayoutDiscrete CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_DISCRETE // Front L, Front R, Front C. Front C contains the keyboard mic audio. This // layout is only intended for input for WebRTC. The Front C channel // is stripped away in the WebRTC audio input pipeline and never seen outside // of that. CefChannelLayoutStereoAndKeyboardMic CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_STEREO_AND_KEYBOARD_MIC // Front L, Front R, Side L, Side R, LFE CefChannelLayout41QuadSide CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_4_1_QUAD_SIDE // Actual channel layout is specified in the bitstream and the actual channel // count is unknown at Chromium media pipeline level (useful for audio // pass-through mode). CefChannelLayoutBitstream CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_BITSTREAM // Max value, must always equal the largest entry ever logged. CefChannelLayoutMax CChannelLayoutT = C.CEF_CHANNEL_LAYOUT_MAX )
type CClientT ¶
type CClientT struct {
// contains filtered or unexported fields
}
Go type for cef_client_t
func AllocCClientT ¶ added in v0.1.5
func AllocCClientT() *CClientT
AllocCClientT allocates CClientT and construct it
func (*CClientT) AssocAudioHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocAudioHandlerT(handler *CAudioHandlerT)
func (*CClientT) AssocContextMenuHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocContextMenuHandlerT(handler *CContextMenuHandlerT)
func (*CClientT) AssocDialogHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocDialogHandlerT(handler *CDialogHandlerT)
func (*CClientT) AssocDisplayHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocDisplayHandlerT(handler *CDisplayHandlerT)
func (*CClientT) AssocDownloadHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocDownloadHandlerT(handler *CDownloadHandlerT)
func (*CClientT) AssocDragHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocDragHandlerT(handler *CDragHandlerT)
func (*CClientT) AssocFindHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocFindHandlerT(handler *CFindHandlerT)
func (*CClientT) AssocFocusHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocFocusHandlerT(handler *CFocusHandlerT)
func (*CClientT) AssocJsdialogHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocJsdialogHandlerT(handler *CJsdialogHandlerT)
func (*CClientT) AssocKeyboardHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocKeyboardHandlerT(handler *CKeyboardHandlerT)
func (*CClientT) AssocLifeSpanHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocLifeSpanHandlerT(handler *CLifeSpanHandlerT)
func (*CClientT) AssocLoadHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocLoadHandlerT(handler *CLoadHandlerT)
func (*CClientT) AssocRenderHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocRenderHandlerT(handler *CRenderHandlerT)
func (*CClientT) AssocRequestHandlerT ¶ added in v0.1.5
func (client *CClientT) AssocRequestHandlerT(handler *CRequestHandlerT)
type CClientTAccessor ¶
type CClientTOnProcessMessageReceivedHandler ¶ added in v0.1.5
type CClientTOnProcessMessageReceivedHandler interface { OnProcessMessageReceived( self *CClientT, browser *CBrowserT, source_process CProcessIdT, message *CProcessMessageT, ) bool }
/ Called when a new message is received from a different process. Return true (1) if the message was handled or false (0) otherwise. Do not keep a reference to or attempt to access the message outside of this callback. /
type CColorModelT ¶ added in v0.1.5
type CColorModelT C.cef_color_model_t
/ Print job color mode values. /
const ( ColorModelUnknown CColorModelT = C.COLOR_MODEL_UNKNOWN ColorModelGray CColorModelT = C.COLOR_MODEL_GRAY ColorModelColor CColorModelT = C.COLOR_MODEL_COLOR ColorModelCmyk CColorModelT = C.COLOR_MODEL_CMYK ColorModelCmy CColorModelT = C.COLOR_MODEL_CMY ColorModelKcmy CColorModelT = C.COLOR_MODEL_KCMY ColorModelCmyK CColorModelT = C.COLOR_MODEL_CMY_K ColorModelBlack CColorModelT = C.COLOR_MODEL_BLACK ColorModelGrayscale CColorModelT = C.COLOR_MODEL_GRAYSCALE ColorModelRgb CColorModelT = C.COLOR_MODEL_RGB ColorModelRgb16 CColorModelT = C.COLOR_MODEL_RGB16 ColorModelRgba CColorModelT = C.COLOR_MODEL_RGBA ColorModelColormodeColor CColorModelT = C.COLOR_MODEL_COLORMODE_COLOR ColorModelColormodeMonochrome CColorModelT = C.COLOR_MODEL_COLORMODE_MONOCHROME ColorModelHpColorColor CColorModelT = C.COLOR_MODEL_HP_COLOR_COLOR ColorModelHpColorBlack CColorModelT = C.COLOR_MODEL_HP_COLOR_BLACK ColorModelPrintoutmodeNormal CColorModelT = C.COLOR_MODEL_PRINTOUTMODE_NORMAL ColorModelPrintoutmodeNormalGray CColorModelT = C.COLOR_MODEL_PRINTOUTMODE_NORMAL_GRAY ColorModelProcesscolormodelCmyk CColorModelT = C.COLOR_MODEL_PROCESSCOLORMODEL_CMYK ColorModelProcesscolormodelGreyscale CColorModelT = C.COLOR_MODEL_PROCESSCOLORMODEL_GREYSCALE ColorModelProcesscolormodelRgb CColorModelT = C.COLOR_MODEL_PROCESSCOLORMODEL_RGB )
type CColorT ¶ added in v0.1.5
type CColorT C.cef_color_t
32-bit ARGB color value, not premultiplied. The color components are always in a known order. Equivalent to the SkColor type.
type CColorTypeT ¶ added in v0.1.5
type CColorTypeT C.cef_color_type_t
/ Describes how to interpret the components of a pixel. /
const ( /// // RGBA with 8 bits per pixel (32bits total). /// CefColorTypeRgba8888 CColorTypeT = C.CEF_COLOR_TYPE_RGBA_8888 /// // BGRA with 8 bits per pixel (32bits total). /// CefColorTypeBgra8888 CColorTypeT = C.CEF_COLOR_TYPE_BGRA_8888 )
type CComInitModeT ¶ added in v0.1.5
type CComInitModeT C.cef_com_init_mode_t
/ Windows COM initialization mode. Specifies how COM will be initialized for a new thread. /
const ( /// // No COM initialization. /// ComInitModeNone CComInitModeT = C.COM_INIT_MODE_NONE /// // Initialize COM using single-threaded apartments. /// ComInitModeSta CComInitModeT = C.COM_INIT_MODE_STA /// // Initialize COM using multi-threaded apartments. /// ComInitModeMta CComInitModeT = C.COM_INIT_MODE_MTA )
type CCommandLineT ¶
type CCommandLineT struct {
// contains filtered or unexported fields
}
Go type for cef_command_line_t
func CommandLineCreate ¶ added in v0.1.5
func CommandLineCreate() *CCommandLineT
/ Create a new cef_command_line_t instance. /
func CommandLineGetGlobal ¶ added in v0.1.5
func CommandLineGetGlobal() *CCommandLineT
/ Returns the singleton global cef_command_line_t object. The returned object will be read-only. /
func (*CCommandLineT) AppendArgument ¶ added in v0.1.5
func (self *CCommandLineT) AppendArgument( argument string, )
/ Add an argument to the end of the command line. /
func (*CCommandLineT) AppendSwitch ¶ added in v0.1.5
func (self *CCommandLineT) AppendSwitch( name string, )
/ Add a switch to the end of the command line. If the switch has no value pass an NULL value string. /
func (*CCommandLineT) AppendSwitchWithValue ¶ added in v0.1.5
func (self *CCommandLineT) AppendSwitchWithValue( name string, value string, )
/ Add a switch with the specified value to the end of the command line. /
func (*CCommandLineT) Copy ¶ added in v0.1.5
func (self *CCommandLineT) Copy() *CCommandLineT
/ Returns a writable copy of this object. /
func (*CCommandLineT) GetArguments ¶ added in v0.1.5
func (self *CCommandLineT) GetArguments( arguments CStringListT, )
/ Get the remaining command line arguments. /
func (*CCommandLineT) GetArgv ¶ added in v0.1.5
func (self *CCommandLineT) GetArgv( argv CStringListT, )
/ Retrieve the original command line string as a vector of strings. The argv array: { program, [(--|-|/)switch[=value]]*, [--], [argument]* } /
func (*CCommandLineT) GetCommandLineString ¶ added in v0.1.5
func (self *CCommandLineT) GetCommandLineString() string
/ Constructs and returns the represented command line string. Use this function cautiously because quoting behavior is unclear. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CCommandLineT) GetProgram ¶ added in v0.1.5
func (self *CCommandLineT) GetProgram() string
/ Get the program part of the command line string (the first item). / The resulting string must be freed by calling cef_string_userfree_free().
func (*CCommandLineT) GetSwitchValue ¶ added in v0.1.5
func (self *CCommandLineT) GetSwitchValue( name string, ) string
/ Returns the value associated with the given switch. If the switch has no value or isn't present this function returns the NULL string. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CCommandLineT) GetSwitches ¶ added in v0.1.5
func (self *CCommandLineT) GetSwitches( switches CStringMapT, )
/ Returns the map of switch names and values. If a switch has no value an NULL string is returned. /
func (*CCommandLineT) HasArguments ¶ added in v0.1.5
func (self *CCommandLineT) HasArguments() bool
/ True if there are remaining command line arguments. /
func (*CCommandLineT) HasOneRef ¶ added in v0.1.5
func (command_line *CCommandLineT) HasOneRef() bool
func (*CCommandLineT) HasSwitch ¶ added in v0.1.5
func (self *CCommandLineT) HasSwitch( name string, ) bool
/ Returns true (1) if the command line contains the given switch. /
func (*CCommandLineT) HasSwitches ¶ added in v0.1.5
func (self *CCommandLineT) HasSwitches() bool
/ Returns true (1) if the command line has switches. /
func (*CCommandLineT) InitFromString ¶ added in v0.1.5
func (self *CCommandLineT) InitFromString( command_line string, )
/ Initialize the command line with the string returned by calling GetCommandLineW(). This function is only supported on Windows. /
func (*CCommandLineT) IsReadOnly ¶ added in v0.1.5
func (self *CCommandLineT) IsReadOnly() bool
/ Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects. /
func (*CCommandLineT) IsValid ¶ added in v0.1.5
func (self *CCommandLineT) IsValid() bool
/ Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). /
func (*CCommandLineT) PrependWrapper ¶ added in v0.1.5
func (self *CCommandLineT) PrependWrapper( wrapper string, )
/ Insert a command before the current command. Common for debuggers, like "valgrind" or "gdb --args". /
func (*CCommandLineT) Reset ¶ added in v0.1.5
func (self *CCommandLineT) Reset()
/ Reset the command-line switches and arguments but leave the program component unchanged. /
func (*CCommandLineT) SetProgram ¶ added in v0.1.5
func (self *CCommandLineT) SetProgram( program string, )
/ Set the program part of the command line string (the first item). /
type CCommandLineTAccessor ¶ added in v0.1.5
type CCommandLineTAccessor interface { GetCCommandLineT() *CCommandLineT SetCCommandLineT(*CCommandLineT) }
type CCompletionCallbackT ¶ added in v0.1.5
type CCompletionCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_completion_callback_t
func (*CCompletionCallbackT) HasOneRef ¶ added in v0.1.5
func (completion_callback *CCompletionCallbackT) HasOneRef() bool
func (*CCompletionCallbackT) OnComplete ¶ added in v0.1.5
func (self *CCompletionCallbackT) OnComplete()
/ Method that will be called once the task is complete. /
type CCompletionCallbackTAccessor ¶ added in v0.1.5
type CCompletionCallbackTAccessor interface { GetCCompletionCallbackT() *CCompletionCallbackT SetCCompletionCallbackT(*CCompletionCallbackT) }
type CCompositionUnderlineT ¶ added in v0.1.5
type CCompositionUnderlineT C.cef_composition_underline_t
/ Structure representing IME composition underline information. This is a thin wrapper around Blink's WebCompositionUnderline class and should be kept in sync with that. /
type CContextMenuEditStateFlagsT ¶ added in v0.1.5
type CContextMenuEditStateFlagsT C.cef_context_menu_edit_state_flags_t
/ Supported context menu edit state bit flags. /
const ( CmEditflagNone CContextMenuEditStateFlagsT = C.CM_EDITFLAG_NONE CmEditflagCanUndo CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_UNDO CmEditflagCanRedo CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_REDO CmEditflagCanCut CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_CUT CmEditflagCanCopy CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_COPY CmEditflagCanPaste CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_PASTE CmEditflagCanDelete CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_DELETE CmEditflagCanSelectAll CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_SELECT_ALL CmEditflagCanTranslate CContextMenuEditStateFlagsT = C.CM_EDITFLAG_CAN_TRANSLATE )
type CContextMenuHandlerT ¶
type CContextMenuHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_context_menu_handler_t
func AllocCContextMenuHandlerT ¶ added in v0.1.5
func AllocCContextMenuHandlerT() *CContextMenuHandlerT
AllocCContextMenuHandlerT allocates CContextMenuHandlerT and construct it
func (*CContextMenuHandlerT) Bind ¶ added in v0.1.5
func (context_menu_handler *CContextMenuHandlerT) Bind(a interface{}) *CContextMenuHandlerT
func (*CContextMenuHandlerT) HasOneRef ¶ added in v0.1.5
func (context_menu_handler *CContextMenuHandlerT) HasOneRef() bool
type CContextMenuHandlerTAccessor ¶ added in v0.1.5
type CContextMenuHandlerTAccessor interface { GetCContextMenuHandlerT() *CContextMenuHandlerT SetCContextMenuHandlerT(*CContextMenuHandlerT) }
type CContextMenuMediaStateFlagsT ¶ added in v0.1.5
type CContextMenuMediaStateFlagsT C.cef_context_menu_media_state_flags_t
/ Supported context menu media state bit flags. /
const ( CmMediaflagNone CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_NONE CmMediaflagError CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_ERROR CmMediaflagPaused CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_PAUSED CmMediaflagMuted CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_MUTED CmMediaflagLoop CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_LOOP CmMediaflagCanSave CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_CAN_SAVE CmMediaflagHasAudio CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_HAS_AUDIO CmMediaflagHasVideo CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_HAS_VIDEO CmMediaflagControlRootElement CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_CONTROL_ROOT_ELEMENT CmMediaflagCanPrint CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_CAN_PRINT CmMediaflagCanRotate CContextMenuMediaStateFlagsT = C.CM_MEDIAFLAG_CAN_ROTATE )
type CContextMenuMediaTypeT ¶ added in v0.1.5
type CContextMenuMediaTypeT C.cef_context_menu_media_type_t
/ Supported context menu media types. /
const ( /// // No special node is in context. /// CmMediatypeNone CContextMenuMediaTypeT = C.CM_MEDIATYPE_NONE /// // An image node is selected. /// CmMediatypeImage CContextMenuMediaTypeT = C.CM_MEDIATYPE_IMAGE /// // A video node is selected. /// CmMediatypeVideo CContextMenuMediaTypeT = C.CM_MEDIATYPE_VIDEO /// // An audio node is selected. /// CmMediatypeAudio CContextMenuMediaTypeT = C.CM_MEDIATYPE_AUDIO /// // A file node is selected. /// CmMediatypeFile CContextMenuMediaTypeT = C.CM_MEDIATYPE_FILE /// // A plugin node is selected. /// CmMediatypePlugin CContextMenuMediaTypeT = C.CM_MEDIATYPE_PLUGIN )
type CContextMenuParamsT ¶ added in v0.1.5
type CContextMenuParamsT struct {
// contains filtered or unexported fields
}
Go type for cef_context_menu_params_t
func (*CContextMenuParamsT) GetDictionarySuggestions ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetDictionarySuggestions( suggestions CStringListT, ) bool
/ Returns true (1) if suggestions exist, false (0) otherwise. Fills in |suggestions| from the spell check service for the misspelled word if there is one. /
func (*CContextMenuParamsT) GetEditStateFlags ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetEditStateFlags() CContextMenuEditStateFlagsT
/ Returns flags representing the actions supported by the editable node, if any, that the context menu was invoked on. /
func (*CContextMenuParamsT) GetFrameCharset ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetFrameCharset() string
/ Returns the character encoding of the subframe that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetFrameUrl ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetFrameUrl() string
/ Returns the URL of the subframe that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetLinkUrl ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetLinkUrl() string
/ Returns the URL of the link, if any, that encloses the node that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetMediaStateFlags ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetMediaStateFlags() CContextMenuMediaStateFlagsT
/ Returns flags representing the actions supported by the media element, if any, that the context menu was invoked on. /
func (*CContextMenuParamsT) GetMediaType ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetMediaType() CContextMenuMediaTypeT
/ Returns the type of context node that the context menu was invoked on. /
func (*CContextMenuParamsT) GetMisspelledWord ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetMisspelledWord() string
/ Returns the text of the misspelled word, if any, that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetPageUrl ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetPageUrl() string
/ Returns the URL of the top level page that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetSelectionText ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetSelectionText() string
/ Returns the text of the selection, if any, that the context menu was invoked on. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetSourceUrl ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetSourceUrl() string
/ Returns the source URL, if any, for the element that the context menu was invoked on. Example of elements with source URLs are img, audio, and video. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetTitleText ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetTitleText() string
/ Returns the title text or the alt text if the context menu was invoked on an image. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetTypeFlags ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetTypeFlags() CContextMenuTypeFlagsT
/ Returns flags representing the type of node that the context menu was invoked on. /
func (*CContextMenuParamsT) GetUnfilteredLinkUrl ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetUnfilteredLinkUrl() string
/ Returns the link URL, if any, to be used ONLY for "copy link address". We don't validate this field in the frontend process. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CContextMenuParamsT) GetXcoord ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetXcoord() bool
/ Returns the X coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin. /
func (*CContextMenuParamsT) GetYcoord ¶ added in v0.1.5
func (self *CContextMenuParamsT) GetYcoord() bool
/ Returns the Y coordinate of the mouse where the context menu was invoked. Coords are relative to the associated RenderView's origin. /
func (*CContextMenuParamsT) HasImageContents ¶ added in v0.1.5
func (self *CContextMenuParamsT) HasImageContents() bool
/ Returns true (1) if the context menu was invoked on an image which has non- NULL contents. /
func (*CContextMenuParamsT) HasOneRef ¶ added in v0.1.5
func (context_menu_params *CContextMenuParamsT) HasOneRef() bool
func (*CContextMenuParamsT) IsCustomMenu ¶ added in v0.1.5
func (self *CContextMenuParamsT) IsCustomMenu() bool
/ Returns true (1) if the context menu contains items specified by the renderer process (for example, plugin placeholder or pepper plugin menu items). /
func (*CContextMenuParamsT) IsEditable ¶ added in v0.1.5
func (self *CContextMenuParamsT) IsEditable() bool
/ Returns true (1) if the context menu was invoked on an editable node. /
func (*CContextMenuParamsT) IsPepperMenu ¶ added in v0.1.5
func (self *CContextMenuParamsT) IsPepperMenu() bool
/ Returns true (1) if the context menu was invoked from a pepper plugin. /
func (*CContextMenuParamsT) IsSpellCheckEnabled ¶ added in v0.1.5
func (self *CContextMenuParamsT) IsSpellCheckEnabled() bool
/ Returns true (1) if the context menu was invoked on an editable node where spell-check is enabled. /
type CContextMenuParamsTAccessor ¶ added in v0.1.5
type CContextMenuParamsTAccessor interface { GetCContextMenuParamsT() *CContextMenuParamsT SetCContextMenuParamsT(*CContextMenuParamsT) }
type CContextMenuTypeFlagsT ¶ added in v0.1.5
type CContextMenuTypeFlagsT C.cef_context_menu_type_flags_t
/ Supported context menu type flags. /
const ( /// // No node is selected. /// CmTypeflagNone CContextMenuTypeFlagsT = C.CM_TYPEFLAG_NONE /// // The top page is selected. /// CmTypeflagPage CContextMenuTypeFlagsT = C.CM_TYPEFLAG_PAGE /// // A subframe page is selected. /// CmTypeflagFrame CContextMenuTypeFlagsT = C.CM_TYPEFLAG_FRAME /// // A link is selected. /// CmTypeflagLink CContextMenuTypeFlagsT = C.CM_TYPEFLAG_LINK /// // A media node is selected. /// CmTypeflagMedia CContextMenuTypeFlagsT = C.CM_TYPEFLAG_MEDIA /// // There is a textual or mixed selection that is selected. /// CmTypeflagSelection CContextMenuTypeFlagsT = C.CM_TYPEFLAG_SELECTION /// // An editable element is selected. /// CmTypeflagEditable CContextMenuTypeFlagsT = C.CM_TYPEFLAG_EDITABLE )
type CCookieManagerT ¶ added in v0.1.5
type CCookieManagerT struct {
// contains filtered or unexported fields
}
Go type for cef_cookie_manager_t
func CookieManagerCreateManager ¶ added in v0.1.5
func CookieManagerCreateManager( path string, persist_session_cookies int, callback *CCompletionCallbackT, ) *CCookieManagerT
/ Creates a new cookie manager. If |path| is NULL data will be stored in memory only. Otherwise, data will be stored at the specified |path|. To persist session cookies (cookies without an expiry date or validity interval) set |persist_session_cookies| to true (1). Session cookies are generally intended to be transient and most Web browsers do not persist them. If |callback| is non-NULL it will be executed asnychronously on the IO thread after the manager's storage has been initialized. /
func CookieManagerGetBlockingManager ¶ added in v0.1.5
func CookieManagerGetBlockingManager() *CCookieManagerT
/ Returns a cookie manager that neither stores nor retrieves cookies. All usage of cookies will be blocked including cookies accessed via the network (request/response headers), via JavaScript (document.cookie), and via cef_cookie_manager_t functions. No cookies will be displayed in DevTools. If you wish to only block cookies sent via the network use the cef_request_tHandler CanGetCookies and CanSetCookie functions instead. /
func CookieManagerGetGlobalManager ¶ added in v0.1.5
func CookieManagerGetGlobalManager( callback *CCompletionCallbackT, ) *CCookieManagerT
/ Returns the global cookie manager. By default data will be stored at CefSettings.cache_path if specified or in memory otherwise. If |callback| is non-NULL it will be executed asnychronously on the IO thread after the manager's storage has been initialized. Using this function is equivalent to calling cef_request_tContext::cef_request_context_get_global_context()->get_d efault_cookie_manager(). /
func (*CCookieManagerT) DeleteCookies ¶ added in v0.1.5
func (self *CCookieManagerT) DeleteCookies( url string, cookie_name string, callback *CDeleteCookiesCallbackT, ) bool
/ Delete all cookies that match the specified parameters. If both |url| and |cookie_name| values are specified all host and domain cookies matching both will be deleted. If only |url| is specified all host cookies (but not domain cookies) irrespective of path will be deleted. If |url| is NULL all cookies for all hosts and domains will be deleted. If |callback| is non- NULL it will be executed asnychronously on the IO thread after the cookies have been deleted. Returns false (0) if a non-NULL invalid URL is specified or if cookies cannot be accessed. Cookies can alternately be deleted using the Visit*Cookies() functions. /
func (*CCookieManagerT) FlushStore ¶ added in v0.1.5
func (self *CCookieManagerT) FlushStore( callback *CCompletionCallbackT, ) bool
/ Flush the backing store (if any) to disk. If |callback| is non-NULL it will be executed asnychronously on the IO thread after the flush is complete. Returns false (0) if cookies cannot be accessed. /
func (*CCookieManagerT) HasOneRef ¶ added in v0.1.5
func (cookie_manager *CCookieManagerT) HasOneRef() bool
func (*CCookieManagerT) SetCookie ¶ added in v0.1.5
func (self *CCookieManagerT) SetCookie( url string, cookie *CCookieT, callback *CSetCookieCallbackT, ) bool
/ Sets a cookie given a valid URL and explicit user-provided cookie attributes. This function expects each attribute to be well-formed. It will check for disallowed characters (e.g. the ';' character is disallowed within the cookie value attribute) and fail without setting the cookie if such characters are found. If |callback| is non-NULL it will be executed asnychronously on the IO thread after the cookie has been set. Returns false (0) if an invalid URL is specified or if cookies cannot be accessed. /
func (*CCookieManagerT) SetStoragePath ¶ added in v0.1.5
func (self *CCookieManagerT) SetStoragePath( path string, persist_session_cookies int, callback *CCompletionCallbackT, ) bool
/ Sets the directory path that will be used for storing cookie data. If |path| is NULL data will be stored in memory only. Otherwise, data will be stored at the specified |path|. To persist session cookies (cookies without an expiry date or validity interval) set |persist_session_cookies| to true (1). Session cookies are generally intended to be transient and most Web browsers do not persist them. If |callback| is non-NULL it will be executed asnychronously on the IO thread after the manager's storage has been initialized. Returns false (0) if cookies cannot be accessed. /
func (*CCookieManagerT) SetSupportedSchemes ¶ added in v0.1.5
func (self *CCookieManagerT) SetSupportedSchemes( schemes CStringListT, callback *CCompletionCallbackT, )
/ Set the schemes supported by this manager. The default schemes ("http", "https", "ws" and "wss") will always be supported. If |callback| is non- NULL it will be executed asnychronously on the IO thread after the change has been applied. Must be called before any cookies are accessed. /
func (*CCookieManagerT) VisitAllCookies ¶ added in v0.1.5
func (self *CCookieManagerT) VisitAllCookies( visitor *CCookieVisitorT, ) bool
/ Visit all cookies on the IO thread. The returned cookies are ordered by longest path, then by earliest creation date. Returns false (0) if cookies cannot be accessed. /
func (*CCookieManagerT) VisitUrlCookies ¶ added in v0.1.5
func (self *CCookieManagerT) VisitUrlCookies( url string, includeHttpOnly int, visitor *CCookieVisitorT, ) bool
/ Visit a subset of cookies on the IO thread. The results are filtered by the given url scheme, host, domain and path. If |includeHttpOnly| is true (1) HTTP-only cookies will also be included in the results. The returned cookies are ordered by longest path, then by earliest creation date. Returns false (0) if cookies cannot be accessed. /
type CCookieManagerTAccessor ¶ added in v0.1.5
type CCookieManagerTAccessor interface { GetCCookieManagerT() *CCookieManagerT SetCCookieManagerT(*CCookieManagerT) }
type CCookieVisitorT ¶ added in v0.1.5
type CCookieVisitorT struct {
// contains filtered or unexported fields
}
Go type for cef_cookie_visitor_t
func (*CCookieVisitorT) HasOneRef ¶ added in v0.1.5
func (cookie_visitor *CCookieVisitorT) HasOneRef() bool
func (*CCookieVisitorT) Visit ¶ added in v0.1.5
func (self *CCookieVisitorT) Visit( cookie *CCookieT, count int, total int, deleteCookie *int, ) bool
/ Method that will be called once for each cookie. |count| is the 0-based index for the current cookie. |total| is the total number of cookies. Set |deleteCookie| to true (1) to delete the cookie currently being visited. Return false (0) to stop visiting cookies. This function may never be called if no cookies are found. /
type CCookieVisitorTAccessor ¶ added in v0.1.5
type CCookieVisitorTAccessor interface { GetCCookieVisitorT() *CCookieVisitorT SetCCookieVisitorT(*CCookieVisitorT) }
type CCrossAxisAlignmentT ¶ added in v0.1.5
type CCrossAxisAlignmentT C.cef_cross_axis_alignment_t
/ Specifies where along the cross axis the CefBoxLayout child views should be laid out. /
const ( /// // Child views will be stretched to fit. /// CefCrossAxisAlignmentStretch CCrossAxisAlignmentT = C.CEF_CROSS_AXIS_ALIGNMENT_STRETCH /// // Child views will be left-aligned. /// CefCrossAxisAlignmentStart CCrossAxisAlignmentT = C.CEF_CROSS_AXIS_ALIGNMENT_START /// // Child views will be center-aligned. /// CefCrossAxisAlignmentCenter CCrossAxisAlignmentT = C.CEF_CROSS_AXIS_ALIGNMENT_CENTER /// // Child views will be right-aligned. /// CefCrossAxisAlignmentEnd CCrossAxisAlignmentT = C.CEF_CROSS_AXIS_ALIGNMENT_END )
type CCursorHandleT ¶ added in v0.1.5
type CCursorHandleT C.cef_cursor_handle_t
type CCursorInfoT ¶ added in v0.1.5
type CCursorInfoT C.cef_cursor_info_t
/ Structure representing cursor information. |buffer| will be |size.width|*|size.height|*4 bytes in size and represents a BGRA image with an upper-left origin. /
type CCursorTypeT ¶ added in v0.1.5
type CCursorTypeT C.cef_cursor_type_t
/ Cursor type values. /
const ( CtPointer CCursorTypeT = C.CT_POINTER CtCross CCursorTypeT = C.CT_CROSS CtHand CCursorTypeT = C.CT_HAND CtIbeam CCursorTypeT = C.CT_IBEAM CtWait CCursorTypeT = C.CT_WAIT CtHelp CCursorTypeT = C.CT_HELP CtEastresize CCursorTypeT = C.CT_EASTRESIZE CtNorthresize CCursorTypeT = C.CT_NORTHRESIZE CtNortheastresize CCursorTypeT = C.CT_NORTHEASTRESIZE CtNorthwestresize CCursorTypeT = C.CT_NORTHWESTRESIZE CtSouthresize CCursorTypeT = C.CT_SOUTHRESIZE CtSoutheastresize CCursorTypeT = C.CT_SOUTHEASTRESIZE CtSouthwestresize CCursorTypeT = C.CT_SOUTHWESTRESIZE CtWestresize CCursorTypeT = C.CT_WESTRESIZE CtNorthsouthresize CCursorTypeT = C.CT_NORTHSOUTHRESIZE CtEastwestresize CCursorTypeT = C.CT_EASTWESTRESIZE CtNortheastsouthwestresize CCursorTypeT = C.CT_NORTHEASTSOUTHWESTRESIZE CtNorthwestsoutheastresize CCursorTypeT = C.CT_NORTHWESTSOUTHEASTRESIZE CtColumnresize CCursorTypeT = C.CT_COLUMNRESIZE CtRowresize CCursorTypeT = C.CT_ROWRESIZE CtMiddlepanning CCursorTypeT = C.CT_MIDDLEPANNING CtEastpanning CCursorTypeT = C.CT_EASTPANNING CtNorthpanning CCursorTypeT = C.CT_NORTHPANNING CtNortheastpanning CCursorTypeT = C.CT_NORTHEASTPANNING CtNorthwestpanning CCursorTypeT = C.CT_NORTHWESTPANNING CtSouthpanning CCursorTypeT = C.CT_SOUTHPANNING CtSoutheastpanning CCursorTypeT = C.CT_SOUTHEASTPANNING CtSouthwestpanning CCursorTypeT = C.CT_SOUTHWESTPANNING CtWestpanning CCursorTypeT = C.CT_WESTPANNING CtMove CCursorTypeT = C.CT_MOVE CtVerticaltext CCursorTypeT = C.CT_VERTICALTEXT CtCell CCursorTypeT = C.CT_CELL CtAlias CCursorTypeT = C.CT_ALIAS CtProgress CCursorTypeT = C.CT_PROGRESS CtNodrop CCursorTypeT = C.CT_NODROP CtCopy CCursorTypeT = C.CT_COPY CtNone CCursorTypeT = C.CT_NONE CtNotallowed CCursorTypeT = C.CT_NOTALLOWED CtZoomin CCursorTypeT = C.CT_ZOOMIN CtZoomout CCursorTypeT = C.CT_ZOOMOUT CtGrab CCursorTypeT = C.CT_GRAB CtGrabbing CCursorTypeT = C.CT_GRABBING CtCustom CCursorTypeT = C.CT_CUSTOM )
type CDeleteCookiesCallbackT ¶ added in v0.1.5
type CDeleteCookiesCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_delete_cookies_callback_t
func (*CDeleteCookiesCallbackT) HasOneRef ¶ added in v0.1.5
func (delete_cookies_callback *CDeleteCookiesCallbackT) HasOneRef() bool
func (*CDeleteCookiesCallbackT) OnComplete ¶ added in v0.1.5
func (self *CDeleteCookiesCallbackT) OnComplete( num_deleted int, )
/ Method that will be called upon completion. |num_deleted| will be the number of cookies that were deleted. /
type CDeleteCookiesCallbackTAccessor ¶ added in v0.1.5
type CDeleteCookiesCallbackTAccessor interface { GetCDeleteCookiesCallbackT() *CDeleteCookiesCallbackT SetCDeleteCookiesCallbackT(*CDeleteCookiesCallbackT) }
type CDialogHandlerT ¶
type CDialogHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_dialog_handler_t
func AllocCDialogHandlerT ¶ added in v0.1.5
func AllocCDialogHandlerT() *CDialogHandlerT
AllocCDialogHandlerT allocates CDialogHandlerT and construct it
func (*CDialogHandlerT) Bind ¶ added in v0.1.5
func (dialog_handler *CDialogHandlerT) Bind(a interface{}) *CDialogHandlerT
func (*CDialogHandlerT) HasOneRef ¶ added in v0.1.5
func (dialog_handler *CDialogHandlerT) HasOneRef() bool
type CDialogHandlerTAccessor ¶ added in v0.1.5
type CDialogHandlerTAccessor interface { GetCDialogHandlerT() *CDialogHandlerT SetCDialogHandlerT(*CDialogHandlerT) }
type CDictionaryValueT ¶
type CDictionaryValueT struct {
// contains filtered or unexported fields
}
Go type for cef_dictionary_value_t
func DictionaryValueCreate ¶
func DictionaryValueCreate() *CDictionaryValueT
/ Creates a new object that is not owned by any other object. /
func (*CDictionaryValueT) Clear ¶ added in v0.1.5
func (self *CDictionaryValueT) Clear() bool
/ Removes all values. Returns true (1) on success. /
func (*CDictionaryValueT) Copy ¶ added in v0.1.5
func (self *CDictionaryValueT) Copy( exclude_empty_children int, ) *CDictionaryValueT
/ Returns a writable copy of this object. If |exclude_NULL_children| is true (1) any NULL dictionaries or lists will be excluded from the copy. /
func (*CDictionaryValueT) GetBinary ¶ added in v0.1.5
func (self *CDictionaryValueT) GetBinary( key string, ) *CBinaryValueT
/ Returns the value at the specified key as type binary. The returned value will reference existing data. /
func (*CDictionaryValueT) GetBool ¶ added in v0.1.5
func (self *CDictionaryValueT) GetBool( key string, ) bool
/ Returns the value at the specified key as type bool. /
func (*CDictionaryValueT) GetDictionary ¶ added in v0.1.5
func (self *CDictionaryValueT) GetDictionary( key string, ) *CDictionaryValueT
/ Returns the value at the specified key as type dictionary. The returned value will reference existing data and modifications to the value will modify this object. /
func (*CDictionaryValueT) GetDouble ¶ added in v0.1.5
func (self *CDictionaryValueT) GetDouble( key string, ) float64
/ Returns the value at the specified key as type double. /
func (*CDictionaryValueT) GetInt ¶ added in v0.1.5
func (self *CDictionaryValueT) GetInt( key string, ) bool
/ Returns the value at the specified key as type int. /
func (*CDictionaryValueT) GetKeys ¶ added in v0.1.5
func (self *CDictionaryValueT) GetKeys( keys CStringListT, ) bool
/ Reads all keys for this dictionary into the specified vector. /
func (*CDictionaryValueT) GetList ¶ added in v0.1.5
func (self *CDictionaryValueT) GetList( key string, ) *CListValueT
/ Returns the value at the specified key as type list. The returned value will reference existing data and modifications to the value will modify this object. /
func (*CDictionaryValueT) GetSize ¶ added in v0.1.5
func (self *CDictionaryValueT) GetSize() int64
/ Returns the number of values. /
func (*CDictionaryValueT) GetString ¶ added in v0.1.5
func (self *CDictionaryValueT) GetString( key string, ) string
/ Returns the value at the specified key as type string. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDictionaryValueT) GetType ¶ added in v0.1.5
func (self *CDictionaryValueT) GetType( key string, ) CValueTypeT
/ Returns the value type for the specified key. /
func (*CDictionaryValueT) GetValue ¶ added in v0.1.5
func (self *CDictionaryValueT) GetValue( key string, ) *CValueT
/ Returns the value at the specified key. For simple types the returned value will copy existing data and modifications to the value will not modify this object. For complex types (binary, dictionary and list) the returned value will reference existing data and modifications to the value will modify this object. /
func (*CDictionaryValueT) HasKey ¶ added in v0.1.5
func (self *CDictionaryValueT) HasKey( key string, ) bool
/ Returns true (1) if the current dictionary has a value for the given key. /
func (*CDictionaryValueT) HasOneRef ¶ added in v0.1.5
func (dictionary_value *CDictionaryValueT) HasOneRef() bool
func (*CDictionaryValueT) IsEqual ¶ added in v0.1.5
func (self *CDictionaryValueT) IsEqual( that *CDictionaryValueT, ) bool
/ Returns true (1) if this object and |that| object have an equivalent underlying value but are not necessarily the same object. /
func (*CDictionaryValueT) IsOwned ¶ added in v0.1.5
func (self *CDictionaryValueT) IsOwned() bool
/ Returns true (1) if this object is currently owned by another object. /
func (*CDictionaryValueT) IsReadOnly ¶ added in v0.1.5
func (self *CDictionaryValueT) IsReadOnly() bool
/ Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects. /
func (*CDictionaryValueT) IsSame ¶ added in v0.1.5
func (self *CDictionaryValueT) IsSame( that *CDictionaryValueT, ) bool
/ Returns true (1) if this object and |that| object have the same underlying data. If true (1) modifications to this object will also affect |that| object and vice-versa. /
func (*CDictionaryValueT) IsValid ¶ added in v0.1.5
func (self *CDictionaryValueT) IsValid() bool
/ Returns true (1) if this object is valid. This object may become invalid if the underlying data is owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. Do not call any other functions if this function returns false (0). /
func (*CDictionaryValueT) Remove ¶ added in v0.1.5
func (self *CDictionaryValueT) Remove( key string, ) bool
/ Removes the value at the specified key. Returns true (1) is the value was removed successfully. /
func (*CDictionaryValueT) SetBinary ¶ added in v0.1.5
func (self *CDictionaryValueT) SetBinary( key string, value *CBinaryValueT, ) bool
/ Sets the value at the specified key as type binary. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CDictionaryValueT) SetBool ¶ added in v0.1.5
func (self *CDictionaryValueT) SetBool( key string, value bool, ) bool
/ Sets the value at the specified key as type bool. Returns true (1) if the value was set successfully. /
func (*CDictionaryValueT) SetDictionary ¶ added in v0.1.5
func (self *CDictionaryValueT) SetDictionary( key string, value *CDictionaryValueT, ) bool
/ Sets the value at the specified key as type dict. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CDictionaryValueT) SetDouble ¶ added in v0.1.5
func (self *CDictionaryValueT) SetDouble( key string, value float64, ) bool
/ Sets the value at the specified key as type double. Returns true (1) if the value was set successfully. /
func (*CDictionaryValueT) SetInt ¶ added in v0.1.5
func (self *CDictionaryValueT) SetInt( key string, value int, ) bool
/ Sets the value at the specified key as type int. Returns true (1) if the value was set successfully. /
func (*CDictionaryValueT) SetList ¶ added in v0.1.5
func (self *CDictionaryValueT) SetList( key string, value *CListValueT, ) bool
/ Sets the value at the specified key as type list. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CDictionaryValueT) SetNull ¶ added in v0.1.5
func (self *CDictionaryValueT) SetNull( key string, ) bool
/ Sets the value at the specified key as type null. Returns true (1) if the value was set successfully. /
func (*CDictionaryValueT) SetString ¶ added in v0.1.5
func (self *CDictionaryValueT) SetString( key string, value string, ) bool
/ Sets the value at the specified key as type string. Returns true (1) if the value was set successfully. /
func (*CDictionaryValueT) SetValue ¶ added in v0.1.5
func (self *CDictionaryValueT) SetValue( key string, value *CValueT, ) bool
/ Sets the value at the specified key. Returns true (1) if the value was set successfully. If |value| represents simple data then the underlying data will be copied and modifications to |value| will not modify this object. If |value| represents complex data (binary, dictionary or list) then the underlying data will be referenced and modifications to |value| will modify this object. /
type CDictionaryValueTAccessor ¶
type CDictionaryValueTAccessor interface { GetCDictionaryValueT() *CDictionaryValueT SetCDictionaryValueT(*CDictionaryValueT) }
type CDisplayHandlerT ¶
type CDisplayHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_display_handler_t
func AllocCDisplayHandlerT ¶ added in v0.1.5
func AllocCDisplayHandlerT() *CDisplayHandlerT
AllocCDisplayHandlerT allocates CDisplayHandlerT and construct it
func (*CDisplayHandlerT) Bind ¶ added in v0.1.5
func (display_handler *CDisplayHandlerT) Bind(a interface{}) *CDisplayHandlerT
func (*CDisplayHandlerT) HasOneRef ¶ added in v0.1.5
func (display_handler *CDisplayHandlerT) HasOneRef() bool
type CDisplayHandlerTAccessor ¶ added in v0.1.5
type CDisplayHandlerTAccessor interface { GetCDisplayHandlerT() *CDisplayHandlerT SetCDisplayHandlerT(*CDisplayHandlerT) }
type CDomDocumentTypeT ¶ added in v0.1.5
type CDomDocumentTypeT C.cef_dom_document_type_t
/ DOM document types. /
const ( DomDocumentTypeUnknown CDomDocumentTypeT = C.DOM_DOCUMENT_TYPE_UNKNOWN DomDocumentTypeHtml CDomDocumentTypeT = C.DOM_DOCUMENT_TYPE_HTML DomDocumentTypeXhtml CDomDocumentTypeT = C.DOM_DOCUMENT_TYPE_XHTML DomDocumentTypePlugin CDomDocumentTypeT = C.DOM_DOCUMENT_TYPE_PLUGIN )
type CDomEventCategoryT ¶ added in v0.1.5
type CDomEventCategoryT C.cef_dom_event_category_t
/ DOM event category flags. /
const ( DomEventCategoryUnknown CDomEventCategoryT = C.DOM_EVENT_CATEGORY_UNKNOWN DomEventCategoryUi CDomEventCategoryT = C.DOM_EVENT_CATEGORY_UI DomEventCategoryMouse CDomEventCategoryT = C.DOM_EVENT_CATEGORY_MOUSE DomEventCategoryMutation CDomEventCategoryT = C.DOM_EVENT_CATEGORY_MUTATION DomEventCategoryKeyboard CDomEventCategoryT = C.DOM_EVENT_CATEGORY_KEYBOARD DomEventCategoryText CDomEventCategoryT = C.DOM_EVENT_CATEGORY_TEXT DomEventCategoryComposition CDomEventCategoryT = C.DOM_EVENT_CATEGORY_COMPOSITION DomEventCategoryDrag CDomEventCategoryT = C.DOM_EVENT_CATEGORY_DRAG DomEventCategoryClipboard CDomEventCategoryT = C.DOM_EVENT_CATEGORY_CLIPBOARD DomEventCategoryMessage CDomEventCategoryT = C.DOM_EVENT_CATEGORY_MESSAGE DomEventCategoryWheel CDomEventCategoryT = C.DOM_EVENT_CATEGORY_WHEEL DomEventCategoryBeforeTextInserted CDomEventCategoryT = C.DOM_EVENT_CATEGORY_BEFORE_TEXT_INSERTED DomEventCategoryOverflow CDomEventCategoryT = C.DOM_EVENT_CATEGORY_OVERFLOW DomEventCategoryPageTransition CDomEventCategoryT = C.DOM_EVENT_CATEGORY_PAGE_TRANSITION DomEventCategoryPopstate CDomEventCategoryT = C.DOM_EVENT_CATEGORY_POPSTATE DomEventCategoryProgress CDomEventCategoryT = C.DOM_EVENT_CATEGORY_PROGRESS DomEventCategoryXmlhttprequestProgress CDomEventCategoryT = C.DOM_EVENT_CATEGORY_XMLHTTPREQUEST_PROGRESS )
type CDomEventPhaseT ¶ added in v0.1.5
type CDomEventPhaseT C.cef_dom_event_phase_t
/ DOM event processing phases. /
const ( DomEventPhaseUnknown CDomEventPhaseT = C.DOM_EVENT_PHASE_UNKNOWN DomEventPhaseCapturing CDomEventPhaseT = C.DOM_EVENT_PHASE_CAPTURING DomEventPhaseAtTarget CDomEventPhaseT = C.DOM_EVENT_PHASE_AT_TARGET DomEventPhaseBubbling CDomEventPhaseT = C.DOM_EVENT_PHASE_BUBBLING )
type CDomNodeTypeT ¶ added in v0.1.5
type CDomNodeTypeT C.cef_dom_node_type_t
/ DOM node types. /
const ( DomNodeTypeUnsupported CDomNodeTypeT = C.DOM_NODE_TYPE_UNSUPPORTED DomNodeTypeElement CDomNodeTypeT = C.DOM_NODE_TYPE_ELEMENT DomNodeTypeAttribute CDomNodeTypeT = C.DOM_NODE_TYPE_ATTRIBUTE DomNodeTypeText CDomNodeTypeT = C.DOM_NODE_TYPE_TEXT DomNodeTypeCdataSection CDomNodeTypeT = C.DOM_NODE_TYPE_CDATA_SECTION DomNodeTypeProcessingInstructions CDomNodeTypeT = C.DOM_NODE_TYPE_PROCESSING_INSTRUCTIONS DomNodeTypeComment CDomNodeTypeT = C.DOM_NODE_TYPE_COMMENT DomNodeTypeDocument CDomNodeTypeT = C.DOM_NODE_TYPE_DOCUMENT DomNodeTypeDocumentType CDomNodeTypeT = C.DOM_NODE_TYPE_DOCUMENT_TYPE DomNodeTypeDocumentFragment CDomNodeTypeT = C.DOM_NODE_TYPE_DOCUMENT_FRAGMENT )
type CDomdocumentT ¶ added in v0.1.5
type CDomdocumentT struct {
// contains filtered or unexported fields
}
Go type for cef_domdocument_t
func (*CDomdocumentT) GetBaseUrl ¶ added in v0.1.5
func (self *CDomdocumentT) GetBaseUrl() string
/ Returns the base URL for the document. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomdocumentT) GetBody ¶ added in v0.1.5
func (self *CDomdocumentT) GetBody() *CDomnodeT
/ Returns the BODY node of an HTML document. /
func (*CDomdocumentT) GetCompleteUrl ¶ added in v0.1.5
func (self *CDomdocumentT) GetCompleteUrl( partialURL string, ) string
/ Returns a complete URL based on the document base URL and the specified partial URL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomdocumentT) GetDocument ¶ added in v0.1.5
func (self *CDomdocumentT) GetDocument() *CDomnodeT
/ Returns the root document node. /
func (*CDomdocumentT) GetElementById ¶ added in v0.1.5
func (self *CDomdocumentT) GetElementById( id string, ) *CDomnodeT
/ Returns the document element with the specified ID value. /
func (*CDomdocumentT) GetFocusedNode ¶ added in v0.1.5
func (self *CDomdocumentT) GetFocusedNode() *CDomnodeT
/ Returns the node that currently has keyboard focus. /
func (*CDomdocumentT) GetHead ¶ added in v0.1.5
func (self *CDomdocumentT) GetHead() *CDomnodeT
/ Returns the HEAD node of an HTML document. /
func (*CDomdocumentT) GetSelectionAsMarkup ¶ added in v0.1.5
func (self *CDomdocumentT) GetSelectionAsMarkup() string
/ Returns the contents of this selection as markup. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomdocumentT) GetSelectionAsText ¶ added in v0.1.5
func (self *CDomdocumentT) GetSelectionAsText() string
/ Returns the contents of this selection as text. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomdocumentT) GetSelectionEndOffset ¶ added in v0.1.5
func (self *CDomdocumentT) GetSelectionEndOffset() bool
/ Returns the selection offset within the end node. /
func (*CDomdocumentT) GetSelectionStartOffset ¶ added in v0.1.5
func (self *CDomdocumentT) GetSelectionStartOffset() bool
/ Returns the selection offset within the start node. /
func (*CDomdocumentT) GetTitle ¶ added in v0.1.5
func (self *CDomdocumentT) GetTitle() string
/ Returns the title of an HTML document. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomdocumentT) GetType ¶ added in v0.1.5
func (self *CDomdocumentT) GetType() CDomDocumentTypeT
/ Returns the document type. /
func (*CDomdocumentT) HasOneRef ¶ added in v0.1.5
func (domdocument *CDomdocumentT) HasOneRef() bool
func (*CDomdocumentT) HasSelection ¶ added in v0.1.5
func (self *CDomdocumentT) HasSelection() bool
/ Returns true (1) if a portion of the document is selected. /
type CDomdocumentTAccessor ¶ added in v0.1.5
type CDomdocumentTAccessor interface { GetCDomdocumentT() *CDomdocumentT SetCDomdocumentT(*CDomdocumentT) }
type CDomnodeT ¶
type CDomnodeT struct {
// contains filtered or unexported fields
}
Go type for cef_domnode_t
func (*CDomnodeT) GetAsMarkup ¶ added in v0.1.5
/ Returns the contents of this node as markup. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetDocument ¶ added in v0.1.5
func (self *CDomnodeT) GetDocument() *CDomdocumentT
/ Returns the document associated with this node. /
func (*CDomnodeT) GetElementAttribute ¶ added in v0.1.5
/ Returns the element attribute named |attrName|. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetElementAttributes ¶ added in v0.1.5
func (self *CDomnodeT) GetElementAttributes( attrMap CStringMapT, )
/ Returns a map of all element attributes. /
func (*CDomnodeT) GetElementBounds ¶ added in v0.1.5
/ Returns the bounds of the element. /
func (*CDomnodeT) GetElementInnerText ¶ added in v0.1.5
/ Returns the inner text of the element. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetElementTagName ¶ added in v0.1.5
/ Returns the tag name of this element. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetFirstChild ¶ added in v0.1.5
/ Return the first child node. /
func (*CDomnodeT) GetFormControlElementType ¶ added in v0.1.5
/ Returns the type of this form control element node. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetLastChild ¶ added in v0.1.5
/ Returns the last child node. /
func (*CDomnodeT) GetName ¶ added in v0.1.5
/ Returns the name of this node. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) GetNextSibling ¶ added in v0.1.5
/ Returns the next sibling node. /
func (*CDomnodeT) GetPreviousSibling ¶ added in v0.1.5
/ Returns the previous sibling node. /
func (*CDomnodeT) GetType ¶ added in v0.1.5
func (self *CDomnodeT) GetType() CDomNodeTypeT
/ Returns the type for this node. /
func (*CDomnodeT) GetValue ¶ added in v0.1.5
/ Returns the value of this node. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDomnodeT) HasChildren ¶ added in v0.1.5
/ Returns true (1) if this node has child nodes. /
func (*CDomnodeT) HasElementAttribute ¶ added in v0.1.5
/ Returns true (1) if this element has an attribute named |attrName|. /
func (*CDomnodeT) HasElementAttributes ¶ added in v0.1.5
/ Returns true (1) if this element has attributes. /
func (*CDomnodeT) IsEditable ¶ added in v0.1.5
/ Returns true (1) if this is an editable node. /
func (*CDomnodeT) IsFormControlElement ¶ added in v0.1.5
/ Returns true (1) if this is a form control element node. /
func (*CDomnodeT) IsSame ¶ added in v0.1.5
/ Returns true (1) if this object is pointing to the same handle as |that| object. /
func (*CDomnodeT) SetElementAttribute ¶ added in v0.1.5
/ Set the value for the element attribute named |attrName|. Returns true (1) on success. /
type CDomnodeTAccessor ¶ added in v0.1.5
type CDomvisitorT ¶ added in v0.1.5
type CDomvisitorT struct {
// contains filtered or unexported fields
}
Go type for cef_domvisitor_t
func (*CDomvisitorT) HasOneRef ¶ added in v0.1.5
func (domvisitor *CDomvisitorT) HasOneRef() bool
func (*CDomvisitorT) Visit ¶ added in v0.1.5
func (self *CDomvisitorT) Visit( document *CDomdocumentT, )
/ Method executed for visiting the DOM. The document object passed to this function represents a snapshot of the DOM at the time this function is executed. DOM objects are only valid for the scope of this function. Do not keep references to or attempt to access any DOM objects outside the scope of this function. /
type CDomvisitorTAccessor ¶ added in v0.1.5
type CDomvisitorTAccessor interface { GetCDomvisitorT() *CDomvisitorT SetCDomvisitorT(*CDomvisitorT) }
type CDownloadHandlerT ¶ added in v0.1.5
type CDownloadHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_download_handler_t
func AllocCDownloadHandlerT ¶ added in v0.1.5
func AllocCDownloadHandlerT() *CDownloadHandlerT
AllocCDownloadHandlerT allocates CDownloadHandlerT and construct it
func (*CDownloadHandlerT) Bind ¶ added in v0.1.5
func (download_handler *CDownloadHandlerT) Bind(a interface{}) *CDownloadHandlerT
func (*CDownloadHandlerT) HasOneRef ¶ added in v0.1.5
func (download_handler *CDownloadHandlerT) HasOneRef() bool
type CDownloadHandlerTAccessor ¶ added in v0.1.5
type CDownloadHandlerTAccessor interface { GetCDownloadHandlerT() *CDownloadHandlerT SetCDownloadHandlerT(*CDownloadHandlerT) }
type CDownloadImageCallbackT ¶ added in v0.1.5
type CDownloadImageCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_download_image_callback_t
func (*CDownloadImageCallbackT) HasOneRef ¶ added in v0.1.5
func (download_image_callback *CDownloadImageCallbackT) HasOneRef() bool
func (*CDownloadImageCallbackT) OnDownloadImageFinished ¶ added in v0.1.5
func (self *CDownloadImageCallbackT) OnDownloadImageFinished( image_url string, http_status_code int, image *CImageT, )
/ Method that will be executed when the image download has completed. |image_url| is the URL that was downloaded and |http_status_code| is the resulting HTTP status code. |image| is the resulting image, possibly at multiple scale factors, or NULL if the download failed. /
type CDownloadImageCallbackTAccessor ¶ added in v0.1.5
type CDownloadImageCallbackTAccessor interface { GetCDownloadImageCallbackT() *CDownloadImageCallbackT SetCDownloadImageCallbackT(*CDownloadImageCallbackT) }
type CDownloadItemCallbackT ¶ added in v0.1.5
type CDownloadItemCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_download_item_callback_t
func (*CDownloadItemCallbackT) Cancel ¶ added in v0.1.5
func (self *CDownloadItemCallbackT) Cancel()
/ Call to cancel the download. /
func (*CDownloadItemCallbackT) HasOneRef ¶ added in v0.1.5
func (download_item_callback *CDownloadItemCallbackT) HasOneRef() bool
func (*CDownloadItemCallbackT) Pause ¶ added in v0.1.5
func (self *CDownloadItemCallbackT) Pause()
/ Call to pause the download. /
func (*CDownloadItemCallbackT) Resume ¶ added in v0.1.5
func (self *CDownloadItemCallbackT) Resume()
/ Call to resume the download. /
type CDownloadItemCallbackTAccessor ¶ added in v0.1.5
type CDownloadItemCallbackTAccessor interface { GetCDownloadItemCallbackT() *CDownloadItemCallbackT SetCDownloadItemCallbackT(*CDownloadItemCallbackT) }
type CDownloadItemT ¶ added in v0.1.5
type CDownloadItemT struct {
// contains filtered or unexported fields
}
Go type for cef_download_item_t
func (*CDownloadItemT) GetContentDisposition ¶ added in v0.1.5
func (self *CDownloadItemT) GetContentDisposition() string
/ Returns the content disposition. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) GetCurrentSpeed ¶ added in v0.1.5
func (self *CDownloadItemT) GetCurrentSpeed() int64
/ Returns a simple speed estimate in bytes/s. /
func (*CDownloadItemT) GetEndTime ¶ added in v0.1.5
func (self *CDownloadItemT) GetEndTime() CTimeT
/ Returns the time that the download ended. /
func (*CDownloadItemT) GetFullPath ¶ added in v0.1.5
func (self *CDownloadItemT) GetFullPath() string
/ Returns the full path to the downloaded or downloading file. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) GetId ¶ added in v0.1.5
func (self *CDownloadItemT) GetId() uint32
/ Returns the unique identifier for this download. /
func (*CDownloadItemT) GetMimeType ¶ added in v0.1.5
func (self *CDownloadItemT) GetMimeType() string
/ Returns the mime type. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) GetOriginalUrl ¶ added in v0.1.5
func (self *CDownloadItemT) GetOriginalUrl() string
/ Returns the original URL before any redirections. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) GetPercentComplete ¶ added in v0.1.5
func (self *CDownloadItemT) GetPercentComplete() bool
/ Returns the rough percent complete or -1 if the receive total size is unknown. /
func (*CDownloadItemT) GetReceivedBytes ¶ added in v0.1.5
func (self *CDownloadItemT) GetReceivedBytes() int64
/ Returns the number of received bytes. /
func (*CDownloadItemT) GetStartTime ¶ added in v0.1.5
func (self *CDownloadItemT) GetStartTime() CTimeT
/ Returns the time that the download started. /
func (*CDownloadItemT) GetSuggestedFileName ¶ added in v0.1.5
func (self *CDownloadItemT) GetSuggestedFileName() string
/ Returns the suggested file name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) GetTotalBytes ¶ added in v0.1.5
func (self *CDownloadItemT) GetTotalBytes() int64
/ Returns the total number of bytes. /
func (*CDownloadItemT) GetUrl ¶ added in v0.1.5
func (self *CDownloadItemT) GetUrl() string
/ Returns the URL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDownloadItemT) HasOneRef ¶ added in v0.1.5
func (download_item *CDownloadItemT) HasOneRef() bool
func (*CDownloadItemT) IsCanceled ¶ added in v0.1.5
func (self *CDownloadItemT) IsCanceled() bool
/ Returns true (1) if the download has been canceled or interrupted. /
func (*CDownloadItemT) IsComplete ¶ added in v0.1.5
func (self *CDownloadItemT) IsComplete() bool
/ Returns true (1) if the download is complete. /
func (*CDownloadItemT) IsInProgress ¶ added in v0.1.5
func (self *CDownloadItemT) IsInProgress() bool
/ Returns true (1) if the download is in progress. /
func (*CDownloadItemT) IsValid ¶ added in v0.1.5
func (self *CDownloadItemT) IsValid() bool
/ Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). /
type CDownloadItemTAccessor ¶ added in v0.1.5
type CDownloadItemTAccessor interface { GetCDownloadItemT() *CDownloadItemT SetCDownloadItemT(*CDownloadItemT) }
type CDragDataT ¶ added in v0.1.5
type CDragDataT struct {
// contains filtered or unexported fields
}
Go type for cef_drag_data_t
func DragDataCreate ¶ added in v0.1.5
func DragDataCreate() *CDragDataT
/ Create a new cef_drag_data_t object. /
func (*CDragDataT) AddFile ¶ added in v0.1.5
func (self *CDragDataT) AddFile( path string, display_name string, )
/ Add a file that is being dragged into the webview. /
func (*CDragDataT) Clone ¶ added in v0.1.5
func (self *CDragDataT) Clone() *CDragDataT
/ Returns a copy of the current object. /
func (*CDragDataT) GetFileContents ¶ added in v0.1.5
func (self *CDragDataT) GetFileContents( writer *CStreamWriterT, ) int64
/ Write the contents of the file being dragged out of the web view into |writer|. Returns the number of bytes sent to |writer|. If |writer| is NULL this function will return the size of the file contents in bytes. Call get_file_name() to get a suggested name for the file. /
func (*CDragDataT) GetFileName ¶ added in v0.1.5
func (self *CDragDataT) GetFileName() string
/ Return the name of the file being dragged out of the browser window. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetFileNames ¶ added in v0.1.5
func (self *CDragDataT) GetFileNames( names CStringListT, ) bool
/ Retrieve the list of file names that are being dragged into the browser window. /
func (*CDragDataT) GetFragmentBaseUrl ¶ added in v0.1.5
func (self *CDragDataT) GetFragmentBaseUrl() string
/ Return the base URL that the fragment came from. This value is used for resolving relative URLs and may be NULL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetFragmentHtml ¶ added in v0.1.5
func (self *CDragDataT) GetFragmentHtml() string
/ Return the text/html fragment that is being dragged. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetFragmentText ¶ added in v0.1.5
func (self *CDragDataT) GetFragmentText() string
/ Return the plain text fragment that is being dragged. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetImage ¶ added in v0.1.5
func (self *CDragDataT) GetImage() *CImageT
/ Get the image representation of drag data. May return NULL if no image representation is available. /
func (*CDragDataT) GetImageHotspot ¶ added in v0.1.5
func (self *CDragDataT) GetImageHotspot() CPointT
/ Get the image hotspot (drag start location relative to image dimensions). /
func (*CDragDataT) GetLinkMetadata ¶ added in v0.1.5
func (self *CDragDataT) GetLinkMetadata() string
/ Return the metadata, if any, associated with the link being dragged. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetLinkTitle ¶ added in v0.1.5
func (self *CDragDataT) GetLinkTitle() string
/ Return the title associated with the link being dragged. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) GetLinkUrl ¶ added in v0.1.5
func (self *CDragDataT) GetLinkUrl() string
/ Return the link URL that is being dragged. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CDragDataT) HasImage ¶ added in v0.1.5
func (self *CDragDataT) HasImage() bool
/ Returns true (1) if an image representation of drag data is available. /
func (*CDragDataT) HasOneRef ¶ added in v0.1.5
func (drag_data *CDragDataT) HasOneRef() bool
func (*CDragDataT) IsFile ¶ added in v0.1.5
func (self *CDragDataT) IsFile() bool
/ Returns true (1) if the drag data is a file. /
func (*CDragDataT) IsFragment ¶ added in v0.1.5
func (self *CDragDataT) IsFragment() bool
/ Returns true (1) if the drag data is a text or html fragment. /
func (*CDragDataT) IsLink ¶ added in v0.1.5
func (self *CDragDataT) IsLink() bool
/ Returns true (1) if the drag data is a link. /
func (*CDragDataT) IsReadOnly ¶ added in v0.1.5
func (self *CDragDataT) IsReadOnly() bool
/ Returns true (1) if this object is read-only. /
func (*CDragDataT) ResetFileContents ¶ added in v0.1.5
func (self *CDragDataT) ResetFileContents()
/ Reset the file contents. You should do this before calling cef_browser_host_t::DragTargetDragEnter as the web view does not allow us to drag in this kind of data. /
func (*CDragDataT) SetFragmentBaseUrl ¶ added in v0.1.5
func (self *CDragDataT) SetFragmentBaseUrl( base_url string, )
/ Set the base URL that the fragment came from. /
func (*CDragDataT) SetFragmentHtml ¶ added in v0.1.5
func (self *CDragDataT) SetFragmentHtml( html string, )
/ Set the text/html fragment that is being dragged. /
func (*CDragDataT) SetFragmentText ¶ added in v0.1.5
func (self *CDragDataT) SetFragmentText( text string, )
/ Set the plain text fragment that is being dragged. /
func (*CDragDataT) SetLinkMetadata ¶ added in v0.1.5
func (self *CDragDataT) SetLinkMetadata( data string, )
/ Set the metadata associated with the link being dragged. /
func (*CDragDataT) SetLinkTitle ¶ added in v0.1.5
func (self *CDragDataT) SetLinkTitle( title string, )
/ Set the title associated with the link being dragged. /
func (*CDragDataT) SetLinkUrl ¶ added in v0.1.5
func (self *CDragDataT) SetLinkUrl( url string, )
/ Set the link URL that is being dragged. /
type CDragDataTAccessor ¶ added in v0.1.5
type CDragDataTAccessor interface { GetCDragDataT() *CDragDataT SetCDragDataT(*CDragDataT) }
type CDragHandlerT ¶
type CDragHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_drag_handler_t
func AllocCDragHandlerT ¶ added in v0.1.5
func AllocCDragHandlerT() *CDragHandlerT
AllocCDragHandlerT allocates CDragHandlerT and construct it
func (*CDragHandlerT) Bind ¶ added in v0.1.5
func (drag_handler *CDragHandlerT) Bind(a interface{}) *CDragHandlerT
func (*CDragHandlerT) HasOneRef ¶ added in v0.1.5
func (drag_handler *CDragHandlerT) HasOneRef() bool
type CDragHandlerTAccessor ¶ added in v0.1.5
type CDragHandlerTAccessor interface { GetCDragHandlerT() *CDragHandlerT SetCDragHandlerT(*CDragHandlerT) }
type CDragOperationsMaskT ¶ added in v0.1.5
type CDragOperationsMaskT C.cef_drag_operations_mask_t
/ "Verb" of a drag-and-drop operation as negotiated between the source and destination. These constants match their equivalents in WebCore's DragActions.h and should not be renumbered. /
const ( DragOperationNone CDragOperationsMaskT = C.DRAG_OPERATION_NONE DragOperationCopy CDragOperationsMaskT = C.DRAG_OPERATION_COPY DragOperationLink CDragOperationsMaskT = C.DRAG_OPERATION_LINK DragOperationGeneric CDragOperationsMaskT = C.DRAG_OPERATION_GENERIC DragOperationPrivate CDragOperationsMaskT = C.DRAG_OPERATION_PRIVATE DragOperationMove CDragOperationsMaskT = C.DRAG_OPERATION_MOVE DragOperationDelete CDragOperationsMaskT = C.DRAG_OPERATION_DELETE DragOperationEvery CDragOperationsMaskT = C.DRAG_OPERATION_EVERY )
type CDraggableRegionT ¶ added in v0.1.5
type CDraggableRegionT C.cef_draggable_region_t
/ Structure representing a draggable region. /
type CDuplexModeT ¶ added in v0.1.5
type CDuplexModeT C.cef_duplex_mode_t
/ Print job duplex mode values. /
const ( DuplexModeUnknown CDuplexModeT = C.DUPLEX_MODE_UNKNOWN DuplexModeSimplex CDuplexModeT = C.DUPLEX_MODE_SIMPLEX DuplexModeLongEdge CDuplexModeT = C.DUPLEX_MODE_LONG_EDGE DuplexModeShortEdge CDuplexModeT = C.DUPLEX_MODE_SHORT_EDGE )
type CErrorcodeT ¶
type CErrorcodeT C.cef_errorcode_t
/ Supported error code values. See net\base\net_error_list.h for complete descriptions of the error codes. /
const ( ErrNone CErrorcodeT = C.ERR_NONE ErrFailed CErrorcodeT = C.ERR_FAILED ErrAborted CErrorcodeT = C.ERR_ABORTED ErrInvalidArgument CErrorcodeT = C.ERR_INVALID_ARGUMENT ErrInvalidHandle CErrorcodeT = C.ERR_INVALID_HANDLE ErrFileNotFound CErrorcodeT = C.ERR_FILE_NOT_FOUND ErrTimedOut CErrorcodeT = C.ERR_TIMED_OUT ErrFileTooBig CErrorcodeT = C.ERR_FILE_TOO_BIG ErrUnexpected CErrorcodeT = C.ERR_UNEXPECTED ErrAccessDenied CErrorcodeT = C.ERR_ACCESS_DENIED ErrNotImplemented CErrorcodeT = C.ERR_NOT_IMPLEMENTED ErrConnectionClosed CErrorcodeT = C.ERR_CONNECTION_CLOSED ErrConnectionReset CErrorcodeT = C.ERR_CONNECTION_RESET ErrConnectionRefused CErrorcodeT = C.ERR_CONNECTION_REFUSED ErrConnectionAborted CErrorcodeT = C.ERR_CONNECTION_ABORTED ErrConnectionFailed CErrorcodeT = C.ERR_CONNECTION_FAILED ErrNameNotResolved CErrorcodeT = C.ERR_NAME_NOT_RESOLVED ErrInternetDisconnected CErrorcodeT = C.ERR_INTERNET_DISCONNECTED ErrSslProtocolError CErrorcodeT = C.ERR_SSL_PROTOCOL_ERROR ErrAddressInvalid CErrorcodeT = C.ERR_ADDRESS_INVALID ErrAddressUnreachable CErrorcodeT = C.ERR_ADDRESS_UNREACHABLE ErrSslClientAuthCertNeeded CErrorcodeT = C.ERR_SSL_CLIENT_AUTH_CERT_NEEDED ErrTunnelConnectionFailed CErrorcodeT = C.ERR_TUNNEL_CONNECTION_FAILED ErrNoSslVersionsEnabled CErrorcodeT = C.ERR_NO_SSL_VERSIONS_ENABLED ErrSslVersionOrCipherMismatch CErrorcodeT = C.ERR_SSL_VERSION_OR_CIPHER_MISMATCH ErrSslRenegotiationRequested CErrorcodeT = C.ERR_SSL_RENEGOTIATION_REQUESTED ErrCertCommonNameInvalid CErrorcodeT = C.ERR_CERT_COMMON_NAME_INVALID ErrCertBegin CErrorcodeT = C.ERR_CERT_BEGIN ErrCertDateInvalid CErrorcodeT = C.ERR_CERT_DATE_INVALID ErrCertAuthorityInvalid CErrorcodeT = C.ERR_CERT_AUTHORITY_INVALID ErrCertContainsErrors CErrorcodeT = C.ERR_CERT_CONTAINS_ERRORS ErrCertNoRevocationMechanism CErrorcodeT = C.ERR_CERT_NO_REVOCATION_MECHANISM ErrCertUnableToCheckRevocation CErrorcodeT = C.ERR_CERT_UNABLE_TO_CHECK_REVOCATION ErrCertRevoked CErrorcodeT = C.ERR_CERT_REVOKED ErrCertInvalid CErrorcodeT = C.ERR_CERT_INVALID ErrCertWeakSignatureAlgorithm CErrorcodeT = C.ERR_CERT_WEAK_SIGNATURE_ALGORITHM // -209 is available: was ERR_CERT_NOT_IN_DNS. ErrCertNonUniqueName CErrorcodeT = C.ERR_CERT_NON_UNIQUE_NAME ErrCertWeakKey CErrorcodeT = C.ERR_CERT_WEAK_KEY ErrCertNameConstraintViolation CErrorcodeT = C.ERR_CERT_NAME_CONSTRAINT_VIOLATION ErrCertValidityTooLong CErrorcodeT = C.ERR_CERT_VALIDITY_TOO_LONG ErrCertEnd CErrorcodeT = C.ERR_CERT_END ErrInvalidUrl CErrorcodeT = C.ERR_INVALID_URL ErrDisallowedUrlScheme CErrorcodeT = C.ERR_DISALLOWED_URL_SCHEME ErrUnknownUrlScheme CErrorcodeT = C.ERR_UNKNOWN_URL_SCHEME ErrTooManyRedirects CErrorcodeT = C.ERR_TOO_MANY_REDIRECTS ErrUnsafeRedirect CErrorcodeT = C.ERR_UNSAFE_REDIRECT ErrUnsafePort CErrorcodeT = C.ERR_UNSAFE_PORT ErrInvalidResponse CErrorcodeT = C.ERR_INVALID_RESPONSE ErrInvalidChunkedEncoding CErrorcodeT = C.ERR_INVALID_CHUNKED_ENCODING ErrMethodNotSupported CErrorcodeT = C.ERR_METHOD_NOT_SUPPORTED ErrUnexpectedProxyAuth CErrorcodeT = C.ERR_UNEXPECTED_PROXY_AUTH ErrEmptyResponse CErrorcodeT = C.ERR_EMPTY_RESPONSE ErrResponseHeadersTooBig CErrorcodeT = C.ERR_RESPONSE_HEADERS_TOO_BIG ErrCacheMiss CErrorcodeT = C.ERR_CACHE_MISS ErrInsecureResponse CErrorcodeT = C.ERR_INSECURE_RESPONSE )
type CEventFlagsT ¶ added in v0.1.5
type CEventFlagsT C.cef_event_flags_t
/ Supported event bit flags. /
const ( EventflagNone CEventFlagsT = C.EVENTFLAG_NONE EventflagCapsLockOn CEventFlagsT = C.EVENTFLAG_CAPS_LOCK_ON EventflagShiftDown CEventFlagsT = C.EVENTFLAG_SHIFT_DOWN EventflagControlDown CEventFlagsT = C.EVENTFLAG_CONTROL_DOWN EventflagAltDown CEventFlagsT = C.EVENTFLAG_ALT_DOWN EventflagLeftMouseButton CEventFlagsT = C.EVENTFLAG_LEFT_MOUSE_BUTTON EventflagMiddleMouseButton CEventFlagsT = C.EVENTFLAG_MIDDLE_MOUSE_BUTTON EventflagRightMouseButton CEventFlagsT = C.EVENTFLAG_RIGHT_MOUSE_BUTTON // Mac OS-X command key. EventflagCommandDown CEventFlagsT = C.EVENTFLAG_COMMAND_DOWN EventflagNumLockOn CEventFlagsT = C.EVENTFLAG_NUM_LOCK_ON EventflagIsKeyPad CEventFlagsT = C.EVENTFLAG_IS_KEY_PAD EventflagIsLeft CEventFlagsT = C.EVENTFLAG_IS_LEFT EventflagIsRight CEventFlagsT = C.EVENTFLAG_IS_RIGHT )
type CEventHandleT ¶ added in v0.1.5
type CEventHandleT C.cef_event_handle_t
type CExtensionHandlerT ¶ added in v0.1.5
type CExtensionHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_extension_handler_t
func AllocCExtensionHandlerT ¶ added in v0.1.5
func AllocCExtensionHandlerT() *CExtensionHandlerT
AllocCExtensionHandlerT allocates CExtensionHandlerT and construct it
func (*CExtensionHandlerT) Bind ¶ added in v0.1.5
func (extension_handler *CExtensionHandlerT) Bind(a interface{}) *CExtensionHandlerT
func (*CExtensionHandlerT) HasOneRef ¶ added in v0.1.5
func (extension_handler *CExtensionHandlerT) HasOneRef() bool
type CExtensionHandlerTAccessor ¶ added in v0.1.5
type CExtensionHandlerTAccessor interface { GetCExtensionHandlerT() *CExtensionHandlerT SetCExtensionHandlerT(*CExtensionHandlerT) }
type CExtensionT ¶ added in v0.1.5
type CExtensionT struct {
// contains filtered or unexported fields
}
Go type for cef_extension_t
func (*CExtensionT) GetHandler ¶ added in v0.1.5
func (self *CExtensionT) GetHandler() *CExtensionHandlerT
/ Returns the handler for this extension. Will return NULL for internal extensions or if no handler was passed to cef_request_tContext::LoadExtension. /
func (*CExtensionT) GetIdentifier ¶ added in v0.1.5
func (self *CExtensionT) GetIdentifier() string
/ Returns the unique extension identifier. This is calculated based on the extension public key, if available, or on the extension path. See https://developer.chrome.com/extensions/manifest/key for details. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CExtensionT) GetLoaderContext ¶ added in v0.1.5
func (self *CExtensionT) GetLoaderContext() *CRequestContextT
/ Returns the request context that loaded this extension. Will return NULL for internal extensions or if the extension has been unloaded. See the cef_request_tContext::LoadExtension documentation for more information about loader contexts. Must be called on the browser process UI thread. /
func (*CExtensionT) GetManifest ¶ added in v0.1.5
func (self *CExtensionT) GetManifest() *CDictionaryValueT
/ Returns the extension manifest contents as a cef_dictionary_value_t object. See https://developer.chrome.com/extensions/manifest for details. /
func (*CExtensionT) GetPath ¶ added in v0.1.5
func (self *CExtensionT) GetPath() string
/ Returns the absolute path to the extension directory on disk. This value will be prefixed with PK_DIR_RESOURCES if a relative path was passed to cef_request_tContext::LoadExtension. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CExtensionT) HasOneRef ¶ added in v0.1.5
func (extension *CExtensionT) HasOneRef() bool
func (*CExtensionT) IsLoaded ¶ added in v0.1.5
func (self *CExtensionT) IsLoaded() bool
/ Returns true (1) if this extension is currently loaded. Must be called on the browser process UI thread. /
func (*CExtensionT) IsSame ¶ added in v0.1.5
func (self *CExtensionT) IsSame( that *CExtensionT, ) bool
/ Returns true (1) if this object is the same extension as |that| object. Extensions are considered the same if identifier, path and loader context match. /
func (*CExtensionT) Unload ¶ added in v0.1.5
func (self *CExtensionT) Unload()
/ Unload this extension if it is not an internal extension and is currently loaded. Will result in a call to cef_extension_tHandler::OnExtensionUnloaded on success. /
type CExtensionTAccessor ¶ added in v0.1.5
type CExtensionTAccessor interface { GetCExtensionT() *CExtensionT SetCExtensionT(*CExtensionT) }
type CFileDialogCallbackT ¶ added in v0.1.5
type CFileDialogCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_file_dialog_callback_t
func (*CFileDialogCallbackT) Cancel ¶ added in v0.1.5
func (self *CFileDialogCallbackT) Cancel()
/ Cancel the file selection. /
func (*CFileDialogCallbackT) Cont ¶ added in v0.1.5
func (self *CFileDialogCallbackT) Cont( selected_accept_filter int, file_paths CStringListT, )
/ Continue the file selection. |selected_accept_filter| should be the 0-based index of the value selected from the accept filters array passed to cef_dialog_handler_t::OnFileDialog. |file_paths| should be a single value or a list of values depending on the dialog mode. An NULL |file_paths| value is treated the same as calling cancel(). /
func (*CFileDialogCallbackT) HasOneRef ¶ added in v0.1.5
func (file_dialog_callback *CFileDialogCallbackT) HasOneRef() bool
type CFileDialogCallbackTAccessor ¶ added in v0.1.5
type CFileDialogCallbackTAccessor interface { GetCFileDialogCallbackT() *CFileDialogCallbackT SetCFileDialogCallbackT(*CFileDialogCallbackT) }
type CFileDialogModeT ¶
type CFileDialogModeT C.cef_file_dialog_mode_t
/ Supported file dialog modes. /
const ( /// // Requires that the file exists before allowing the user to pick it. /// FileDialogOpen CFileDialogModeT = C.FILE_DIALOG_OPEN /// // Like Open, but allows picking multiple files to open. /// FileDialogOpenMultiple CFileDialogModeT = C.FILE_DIALOG_OPEN_MULTIPLE /// // Like Open, but selects a folder to open. /// FileDialogOpenFolder CFileDialogModeT = C.FILE_DIALOG_OPEN_FOLDER /// // Allows picking a nonexistent file, and prompts to overwrite if the file // already exists. /// FileDialogSave CFileDialogModeT = C.FILE_DIALOG_SAVE /// // General mask defining the bits used for the type values. /// FileDialogTypeMask CFileDialogModeT = C.FILE_DIALOG_TYPE_MASK /// // Prompt to overwrite if the user selects an existing file with the Save // dialog. /// FileDialogOverwritepromptFlag CFileDialogModeT = C.FILE_DIALOG_OVERWRITEPROMPT_FLAG /// // Do not display read-only files. /// FileDialogHidereadonlyFlag CFileDialogModeT = C.FILE_DIALOG_HIDEREADONLY_FLAG )
type CFindHandlerT ¶
type CFindHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_find_handler_t
func AllocCFindHandlerT ¶ added in v0.1.5
func AllocCFindHandlerT() *CFindHandlerT
AllocCFindHandlerT allocates CFindHandlerT and construct it
func (*CFindHandlerT) Bind ¶ added in v0.1.5
func (find_handler *CFindHandlerT) Bind(a interface{}) *CFindHandlerT
func (*CFindHandlerT) HasOneRef ¶ added in v0.1.5
func (find_handler *CFindHandlerT) HasOneRef() bool
type CFindHandlerTAccessor ¶ added in v0.1.5
type CFindHandlerTAccessor interface { GetCFindHandlerT() *CFindHandlerT SetCFindHandlerT(*CFindHandlerT) }
type CFocusHandlerT ¶ added in v0.1.5
type CFocusHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_focus_handler_t
func AllocCFocusHandlerT ¶ added in v0.1.5
func AllocCFocusHandlerT() *CFocusHandlerT
AllocCFocusHandlerT allocates CFocusHandlerT and construct it
func (*CFocusHandlerT) Bind ¶ added in v0.1.5
func (focus_handler *CFocusHandlerT) Bind(a interface{}) *CFocusHandlerT
func (*CFocusHandlerT) HasOneRef ¶ added in v0.1.5
func (focus_handler *CFocusHandlerT) HasOneRef() bool
type CFocusHandlerTAccessor ¶ added in v0.1.5
type CFocusHandlerTAccessor interface { GetCFocusHandlerT() *CFocusHandlerT SetCFocusHandlerT(*CFocusHandlerT) }
type CFocusSourceT ¶ added in v0.1.5
type CFocusSourceT C.cef_focus_source_t
/ Focus sources. /
const ( // The source is explicit navigation via the API (LoadURL(), etc). /// FocusSourceNavigation CFocusSourceT = C.FOCUS_SOURCE_NAVIGATION /// // The source is a system-generated focus event. /// FocusSourceSystem CFocusSourceT = C.FOCUS_SOURCE_SYSTEM )
type CFrameT ¶
type CFrameT struct {
// contains filtered or unexported fields
}
Go type for cef_frame_t
func (*CFrameT) ExecuteJavaScript ¶ added in v0.1.5
/ Execute a string of JavaScript code in this frame. The |script_url| parameter is the URL where the script in question can be found, if any. The renderer may request this URL to show the developer the source of the error. The |start_line| parameter is the base line number to use for error reporting. /
func (*CFrameT) GetBrowser ¶ added in v0.1.5
/ Returns the browser that this frame belongs to. /
func (*CFrameT) GetIdentifier ¶ added in v0.1.5
/ Returns the globally unique identifier for this frame or < 0 if the underlying frame does not yet exist. /
func (*CFrameT) GetName ¶ added in v0.1.5
/ Returns the name for this frame. If the frame has an assigned name (for example, set via the iframe "name" attribute) then that value will be returned. Otherwise a unique name will be constructed based on the frame parent hierarchy. The main (top-level) frame will always have an NULL name value. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CFrameT) GetParent ¶ added in v0.1.5
/ Returns the parent of this frame or NULL if this is the main (top-level) frame. /
func (*CFrameT) GetSource ¶ added in v0.1.5
func (self *CFrameT) GetSource( visitor *CStringVisitorT, )
/ Retrieve this frame's HTML source as a string sent to the specified visitor. /
func (*CFrameT) GetText ¶ added in v0.1.5
func (self *CFrameT) GetText( visitor *CStringVisitorT, )
/ Retrieve this frame's display text as a string sent to the specified visitor. /
func (*CFrameT) GetUrl ¶
/ Returns the URL currently loaded in this frame. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CFrameT) GetV8context ¶
func (self *CFrameT) GetV8context() *CV8contextT
/ Get the V8 context associated with the frame. This function can only be called from the render process. /
func (*CFrameT) IsMain ¶ added in v0.1.5
/ Returns true (1) if this is the main (top-level) frame. /
func (*CFrameT) IsValid ¶ added in v0.1.5
/ True if this object is currently attached to a valid frame. /
func (*CFrameT) LoadRequest ¶ added in v0.1.5
/ Load the request represented by the |request| object. /
func (*CFrameT) LoadString ¶ added in v0.1.5
/ Load the contents of |string_val| with the specified dummy |url|. |url| should have a standard scheme (for example, http scheme) or behaviors like link clicks and web security restrictions may not behave as expected. /
func (*CFrameT) Paste ¶ added in v0.1.5
func (self *CFrameT) Paste()
/ Execute paste in this frame. /
func (*CFrameT) SelectAll ¶ added in v0.1.5
func (self *CFrameT) SelectAll()
/ Execute select all in this frame. /
func (*CFrameT) ViewSource ¶ added in v0.1.5
func (self *CFrameT) ViewSource()
/ Save this frame's HTML source to a temporary file and open it in the default text viewing application. This function can only be called from the browser process. /
func (*CFrameT) VisitDom ¶ added in v0.1.5
func (self *CFrameT) VisitDom( visitor *CDomvisitorT, )
/ Visit the DOM document. This function can only be called from the render process. /
type CFrameTAccessor ¶
type CGetExtensionResourceCallbackT ¶ added in v0.1.5
type CGetExtensionResourceCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_get_extension_resource_callback_t
func (*CGetExtensionResourceCallbackT) Cancel ¶ added in v0.1.5
func (self *CGetExtensionResourceCallbackT) Cancel()
/ Cancel the request. /
func (*CGetExtensionResourceCallbackT) Cont ¶ added in v0.1.5
func (self *CGetExtensionResourceCallbackT) Cont( stream *CStreamReaderT, )
/ Continue the request. Read the resource contents from |stream|. /
func (*CGetExtensionResourceCallbackT) HasOneRef ¶ added in v0.1.5
func (get_extension_resource_callback *CGetExtensionResourceCallbackT) HasOneRef() bool
type CGetExtensionResourceCallbackTAccessor ¶ added in v0.1.5
type CGetExtensionResourceCallbackTAccessor interface { GetCGetExtensionResourceCallbackT() *CGetExtensionResourceCallbackT SetCGetExtensionResourceCallbackT(*CGetExtensionResourceCallbackT) }
type CHorizontalAlignmentT ¶ added in v0.1.5
type CHorizontalAlignmentT C.cef_horizontal_alignment_t
/ Specifies the horizontal text alignment mode. /
const ( /// // Align the text's left edge with that of its display area. /// CefHorizontalAlignmentLeft CHorizontalAlignmentT = C.CEF_HORIZONTAL_ALIGNMENT_LEFT /// // Align the text's center with that of its display area. /// CefHorizontalAlignmentCenter CHorizontalAlignmentT = C.CEF_HORIZONTAL_ALIGNMENT_CENTER /// // Align the text's right edge with that of its display area. /// CefHorizontalAlignmentRight CHorizontalAlignmentT = C.CEF_HORIZONTAL_ALIGNMENT_RIGHT )
type CImageT ¶ added in v0.1.5
type CImageT struct {
// contains filtered or unexported fields
}
Go type for cef_image_t
func ImageCreate ¶ added in v0.1.5
func ImageCreate() *CImageT
/ Create a new cef_image_t. It will initially be NULL. Use the Add*() functions to add representations at different scale factors. /
func (*CImageT) AddBitmap ¶ added in v0.1.5
func (self *CImageT) AddBitmap( scale_factor float32, pixel_width int, pixel_height int, color_type CColorTypeT, alpha_type CAlphaTypeT, pixel_data unsafe.Pointer, pixel_data_size int64, ) bool
/ Add a bitmap image representation for |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |pixel_width| and |pixel_height| are the bitmap representation size in pixel coordinates. |pixel_data| is the array of pixel data and should be |pixel_width| x |pixel_height| x 4 bytes in size. |color_type| and |alpha_type| values specify the pixel format. /
func (*CImageT) AddJpeg ¶ added in v0.1.5
func (self *CImageT) AddJpeg( scale_factor float32, jpeg_data unsafe.Pointer, jpeg_data_size int64, ) bool
/ Create a JPEG image representation for |scale_factor|. |jpeg_data| is the image data of size |jpeg_data_size|. The JPEG format does not support transparency so the alpha byte will be set to 0xFF for all pixels. /
func (*CImageT) AddPng ¶ added in v0.1.5
func (self *CImageT) AddPng( scale_factor float32, png_data unsafe.Pointer, png_data_size int64, ) bool
/ Add a PNG image representation for |scale_factor|. |png_data| is the image data of size |png_data_size|. Any alpha transparency in the PNG data will be maintained. /
func (*CImageT) GetAsBitmap ¶ added in v0.1.5
func (self *CImageT) GetAsBitmap( scale_factor float32, color_type CColorTypeT, alpha_type CAlphaTypeT, pixel_width *int, pixel_height *int, ) *CBinaryValueT
/ Returns the bitmap representation that most closely matches |scale_factor|. Only 32-bit RGBA/BGRA formats are supported. |color_type| and |alpha_type| values specify the desired output pixel format. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a cef_binary_value_t containing the pixel data on success or NULL on failure. /
func (*CImageT) GetAsJpeg ¶ added in v0.1.5
func (self *CImageT) GetAsJpeg( scale_factor float32, quality int, pixel_width *int, pixel_height *int, ) *CBinaryValueT
/ Returns the JPEG representation that most closely matches |scale_factor|. |quality| determines the compression level with 0 == lowest and 100 == highest. The JPEG format does not support alpha transparency and the alpha channel, if any, will be discarded. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a cef_binary_value_t containing the JPEG image data on success or NULL on failure. /
func (*CImageT) GetAsPng ¶ added in v0.1.5
func (self *CImageT) GetAsPng( scale_factor float32, with_transparency int, pixel_width *int, pixel_height *int, ) *CBinaryValueT
/ Returns the PNG representation that most closely matches |scale_factor|. If |with_transparency| is true (1) any alpha transparency in the image will be represented in the resulting PNG data. |pixel_width| and |pixel_height| are the output representation size in pixel coordinates. Returns a cef_binary_value_t containing the PNG image data on success or NULL on failure. /
func (*CImageT) GetHeight ¶ added in v0.1.5
/ Returns the image height in density independent pixel (DIP) units. /
func (*CImageT) GetRepresentationInfo ¶ added in v0.1.5
func (self *CImageT) GetRepresentationInfo( scale_factor float32, actual_scale_factor *float32, pixel_width *int, pixel_height *int, ) bool
/ Returns information for the representation that most closely matches |scale_factor|. |actual_scale_factor| is the actual scale factor for the representation. |pixel_width| and |pixel_height| are the representation size in pixel coordinates. Returns true (1) on success. /
func (*CImageT) GetWidth ¶ added in v0.1.5
/ Returns the image width in density independent pixel (DIP) units. /
func (*CImageT) HasRepresentation ¶ added in v0.1.5
/ Returns true (1) if this image contains a representation for |scale_factor|. /
func (*CImageT) IsSame ¶ added in v0.1.5
/ Returns true (1) if this Image and |that| Image share the same underlying storage. Will also return true (1) if both images are NULL. /
func (*CImageT) RemoveRepresentation ¶ added in v0.1.5
/ Removes the representation for |scale_factor|. Returns true (1) on success. /
type CImageTAccessor ¶ added in v0.1.5
type CJsdialogCallbackT ¶ added in v0.1.5
type CJsdialogCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_jsdialog_callback_t
func (*CJsdialogCallbackT) Cont ¶ added in v0.1.5
func (self *CJsdialogCallbackT) Cont( success int, user_input string, )
/ Continue the JS dialog request. Set |success| to true (1) if the OK button was pressed. The |user_input| value should be specified for prompt dialogs. /
func (*CJsdialogCallbackT) HasOneRef ¶ added in v0.1.5
func (jsdialog_callback *CJsdialogCallbackT) HasOneRef() bool
type CJsdialogCallbackTAccessor ¶ added in v0.1.5
type CJsdialogCallbackTAccessor interface { GetCJsdialogCallbackT() *CJsdialogCallbackT SetCJsdialogCallbackT(*CJsdialogCallbackT) }
type CJsdialogHandlerT ¶
type CJsdialogHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_jsdialog_handler_t
func AllocCJsdialogHandlerT ¶ added in v0.1.5
func AllocCJsdialogHandlerT() *CJsdialogHandlerT
AllocCJsdialogHandlerT allocates CJsdialogHandlerT and construct it
func (*CJsdialogHandlerT) Bind ¶ added in v0.1.5
func (jsdialog_handler *CJsdialogHandlerT) Bind(a interface{}) *CJsdialogHandlerT
func (*CJsdialogHandlerT) HasOneRef ¶ added in v0.1.5
func (jsdialog_handler *CJsdialogHandlerT) HasOneRef() bool
type CJsdialogHandlerTAccessor ¶ added in v0.1.5
type CJsdialogHandlerTAccessor interface { GetCJsdialogHandlerT() *CJsdialogHandlerT SetCJsdialogHandlerT(*CJsdialogHandlerT) }
type CJsdialogTypeT ¶ added in v0.1.5
type CJsdialogTypeT C.cef_jsdialog_type_t
/ Supported JavaScript dialog types. /
const ( JsdialogtypeAlert CJsdialogTypeT = C.JSDIALOGTYPE_ALERT JsdialogtypeConfirm CJsdialogTypeT = C.JSDIALOGTYPE_CONFIRM JsdialogtypePrompt CJsdialogTypeT = C.JSDIALOGTYPE_PROMPT )
type CJsonParserErrorT ¶ added in v0.1.5
type CJsonParserErrorT C.cef_json_parser_error_t
/ Error codes that can be returned from CefParseJSONAndReturnError. /
const ( JsonNoError CJsonParserErrorT = C.JSON_NO_ERROR JsonInvalidEscape CJsonParserErrorT = C.JSON_INVALID_ESCAPE JsonSyntaxError CJsonParserErrorT = C.JSON_SYNTAX_ERROR JsonUnexpectedToken CJsonParserErrorT = C.JSON_UNEXPECTED_TOKEN JsonTrailingComma CJsonParserErrorT = C.JSON_TRAILING_COMMA JsonTooMuchNesting CJsonParserErrorT = C.JSON_TOO_MUCH_NESTING JsonUnexpectedDataAfterRoot CJsonParserErrorT = C.JSON_UNEXPECTED_DATA_AFTER_ROOT JsonUnsupportedEncoding CJsonParserErrorT = C.JSON_UNSUPPORTED_ENCODING JsonUnquotedDictionaryKey CJsonParserErrorT = C.JSON_UNQUOTED_DICTIONARY_KEY JsonParseErrorCount CJsonParserErrorT = C.JSON_PARSE_ERROR_COUNT )
type CJsonParserOptionsT ¶ added in v0.1.5
type CJsonParserOptionsT C.cef_json_parser_options_t
/ Options that can be passed to CefParseJSON. /
const ( /// // Parses the input strictly according to RFC 4627. See comments in Chromium's // base/json/json_reader.h file for known limitations/deviations from the RFC. /// JsonParserRfc CJsonParserOptionsT = C.JSON_PARSER_RFC /// // Allows commas to exist after the last element in structures. /// JsonParserAllowTrailingCommas CJsonParserOptionsT = C.JSON_PARSER_ALLOW_TRAILING_COMMAS )
type CJsonWriterOptionsT ¶ added in v0.1.5
type CJsonWriterOptionsT C.cef_json_writer_options_t
/ Options that can be passed to CefWriteJSON. /
const ( /// // Default behavior. /// JsonWriterDefault CJsonWriterOptionsT = C.JSON_WRITER_DEFAULT /// // This option instructs the writer that if a Binary value is encountered, // the value (and key if within a dictionary) will be omitted from the // output, and success will be returned. Otherwise, if a binary value is // encountered, failure will be returned. /// JsonWriterOmitBinaryValues CJsonWriterOptionsT = C.JSON_WRITER_OMIT_BINARY_VALUES /// // This option instructs the writer to write doubles that have no fractional // part as a normal integer (i.e., without using exponential notation // or appending a '.0') as long as the value is within the range of a // 64-bit int. /// JsonWriterOmitDoubleTypePreservation CJsonWriterOptionsT = C.JSON_WRITER_OMIT_DOUBLE_TYPE_PRESERVATION /// // Return a slightly nicer formatted json string (pads with whitespace to // help with readability). /// JsonWriterPrettyPrint CJsonWriterOptionsT = C.JSON_WRITER_PRETTY_PRINT )
type CKeyEventT ¶ added in v0.1.5
type CKeyEventT C.cef_key_event_t
/ Structure representing keyboard event information. /
type CKeyEventTypeT ¶ added in v0.1.5
type CKeyEventTypeT C.cef_key_event_type_t
/ Key event types. /
const ( /// // Notification that a key transitioned from "up" to "down". /// KeyeventRawkeydown CKeyEventTypeT = C.KEYEVENT_RAWKEYDOWN /// // Notification that a key was pressed. This does not necessarily correspond // to a character depending on the key and language. Use KEYEVENT_CHAR for // character input. /// KeyeventKeydown CKeyEventTypeT = C.KEYEVENT_KEYDOWN /// // Notification that a key was released. /// KeyeventKeyup CKeyEventTypeT = C.KEYEVENT_KEYUP /// // Notification that a character was typed. Use this for text input. Key // down events may generate 0, 1, or more than one character event depending // on the key, locale, and operating system. /// KeyeventChar CKeyEventTypeT = C.KEYEVENT_CHAR )
type CKeyboardHandlerT ¶
type CKeyboardHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_keyboard_handler_t
func AllocCKeyboardHandlerT ¶ added in v0.1.5
func AllocCKeyboardHandlerT() *CKeyboardHandlerT
AllocCKeyboardHandlerT allocates CKeyboardHandlerT and construct it
func (*CKeyboardHandlerT) Bind ¶ added in v0.1.5
func (keyboard_handler *CKeyboardHandlerT) Bind(a interface{}) *CKeyboardHandlerT
func (*CKeyboardHandlerT) HasOneRef ¶ added in v0.1.5
func (keyboard_handler *CKeyboardHandlerT) HasOneRef() bool
type CKeyboardHandlerTAccessor ¶ added in v0.1.5
type CKeyboardHandlerTAccessor interface { GetCKeyboardHandlerT() *CKeyboardHandlerT SetCKeyboardHandlerT(*CKeyboardHandlerT) }
type CLangSizeT ¶ added in v0.1.5
type CLifeSpanHandlerT ¶
type CLifeSpanHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_life_span_handler_t
func AllocCLifeSpanHandlerT ¶
func AllocCLifeSpanHandlerT() *CLifeSpanHandlerT
AllocCLifeSpanHandlerT allocates CLifeSpanHandlerT and construct it
func (*CLifeSpanHandlerT) Bind ¶
func (life_span_handler *CLifeSpanHandlerT) Bind(a interface{}) *CLifeSpanHandlerT
func (*CLifeSpanHandlerT) HasOneRef ¶ added in v0.1.5
func (life_span_handler *CLifeSpanHandlerT) HasOneRef() bool
type CLifeSpanHandlerTAccessor ¶
type CLifeSpanHandlerTAccessor interface { GetCLifeSpanHandlerT() *CLifeSpanHandlerT SetCLifeSpanHandlerT(*CLifeSpanHandlerT) }
type CListValueT ¶
type CListValueT struct {
// contains filtered or unexported fields
}
Go type for cef_list_value_t
func ListValueCreate ¶
func ListValueCreate() *CListValueT
/ Creates a new object that is not owned by any other object. /
func (*CListValueT) Clear ¶
func (self *CListValueT) Clear() bool
/ Removes all values. Returns true (1) on success. /
func (*CListValueT) Copy ¶
func (self *CListValueT) Copy() *CListValueT
/ Returns a writable copy of this object. /
func (*CListValueT) GetBinary ¶
func (self *CListValueT) GetBinary( index int64, ) *CBinaryValueT
/ Returns the value at the specified index as type binary. The returned value will reference existing data. /
func (*CListValueT) GetBool ¶
func (self *CListValueT) GetBool( index int64, ) bool
/ Returns the value at the specified index as type bool. /
func (*CListValueT) GetDictionary ¶
func (self *CListValueT) GetDictionary( index int64, ) *CDictionaryValueT
/ Returns the value at the specified index as type dictionary. The returned value will reference existing data and modifications to the value will modify this object. /
func (*CListValueT) GetDouble ¶
func (self *CListValueT) GetDouble( index int64, ) float64
/ Returns the value at the specified index as type double. /
func (*CListValueT) GetInt ¶
func (self *CListValueT) GetInt( index int64, ) int
/ Returns the value at the specified index as type int. /
func (*CListValueT) GetList ¶
func (self *CListValueT) GetList( index int64, ) *CListValueT
/ Returns the value at the specified index as type list. The returned value will reference existing data and modifications to the value will modify this object. /
func (*CListValueT) GetSize ¶
func (self *CListValueT) GetSize() int64
/ Returns the number of values. /
func (*CListValueT) GetString ¶
func (self *CListValueT) GetString( index int64, ) string
/ Returns the value at the specified index as type string. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CListValueT) GetType ¶
func (self *CListValueT) GetType( index int64, ) CValueTypeT
/ Returns the value type at the specified index. /
func (*CListValueT) GetValue ¶
func (self *CListValueT) GetValue( index int64, ) *CValueT
/ Returns the value at the specified index. For simple types the returned value will copy existing data and modifications to the value will not modify this object. For complex types (binary, dictionary and list) the returned value will reference existing data and modifications to the value will modify this object. /
func (*CListValueT) HasOneRef ¶ added in v0.1.5
func (list_value *CListValueT) HasOneRef() bool
func (*CListValueT) IsEqual ¶
func (self *CListValueT) IsEqual( that *CListValueT, ) bool
/ Returns true (1) if this object and |that| object have an equivalent underlying value but are not necessarily the same object. /
func (*CListValueT) IsOwned ¶
func (self *CListValueT) IsOwned() bool
/ Returns true (1) if this object is currently owned by another object. /
func (*CListValueT) IsReadOnly ¶
func (self *CListValueT) IsReadOnly() bool
/ Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects. /
func (*CListValueT) IsSame ¶
func (self *CListValueT) IsSame( that *CListValueT, ) bool
/ Returns true (1) if this object and |that| object have the same underlying data. If true (1) modifications to this object will also affect |that| object and vice-versa. /
func (*CListValueT) IsValid ¶
func (self *CListValueT) IsValid() bool
/ Returns true (1) if this object is valid. This object may become invalid if the underlying data is owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. Do not call any other functions if this function returns false (0). /
func (*CListValueT) Remove ¶
func (self *CListValueT) Remove( index int64, ) bool
/ Removes the value at the specified index. /
func (*CListValueT) SetBinary ¶
func (self *CListValueT) SetBinary( index int64, value *CBinaryValueT, ) bool
/ Sets the value at the specified index as type binary. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CListValueT) SetBool ¶
func (self *CListValueT) SetBool( index int64, value bool, ) bool
/ Sets the value at the specified index as type bool. Returns true (1) if the value was set successfully. /
func (*CListValueT) SetDictionary ¶
func (self *CListValueT) SetDictionary( index int64, value *CDictionaryValueT, ) bool
/ Sets the value at the specified index as type dict. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CListValueT) SetDouble ¶
func (self *CListValueT) SetDouble( index int64, value float64, ) bool
/ Sets the value at the specified index as type double. Returns true (1) if the value was set successfully. /
func (*CListValueT) SetInt ¶
func (self *CListValueT) SetInt( index int64, value int, ) bool
/ Sets the value at the specified index as type int. Returns true (1) if the value was set successfully. /
func (*CListValueT) SetList ¶
func (self *CListValueT) SetList( index int64, value *CListValueT, ) bool
/ Sets the value at the specified index as type list. Returns true (1) if the value was set successfully. If |value| is currently owned by another object then the value will be copied and the |value| reference will not change. Otherwise, ownership will be transferred to this object and the |value| reference will be invalidated. /
func (*CListValueT) SetNull ¶
func (self *CListValueT) SetNull( index int64, ) bool
/ Sets the value at the specified index as type null. Returns true (1) if the value was set successfully. /
func (*CListValueT) SetSize ¶
func (self *CListValueT) SetSize( size int64, ) bool
/ Sets the number of values. If the number of values is expanded all new value slots will default to type null. Returns true (1) on success. /
func (*CListValueT) SetString ¶
func (self *CListValueT) SetString( index int64, value string, ) bool
/ Sets the value at the specified index as type string. Returns true (1) if the value was set successfully. /
func (*CListValueT) SetValue ¶
func (self *CListValueT) SetValue( index int64, value *CValueT, ) bool
/ Sets the value at the specified index. Returns true (1) if the value was set successfully. If |value| represents simple data then the underlying data will be copied and modifications to |value| will not modify this object. If |value| represents complex data (binary, dictionary or list) then the underlying data will be referenced and modifications to |value| will modify this object. /
type CListValueTAccessor ¶
type CListValueTAccessor interface { GetCListValueT() *CListValueT SetCListValueT(*CListValueT) }
type CLoadHandlerT ¶
type CLoadHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_load_handler_t
func AllocCLoadHandlerT ¶
func AllocCLoadHandlerT() *CLoadHandlerT
AllocCLoadHandlerT allocates CLoadHandlerT and construct it
func (*CLoadHandlerT) Bind ¶
func (load_handler *CLoadHandlerT) Bind(a interface{}) *CLoadHandlerT
func (*CLoadHandlerT) HasOneRef ¶ added in v0.1.5
func (load_handler *CLoadHandlerT) HasOneRef() bool
type CLoadHandlerTAccessor ¶
type CLoadHandlerTAccessor interface { GetCLoadHandlerT() *CLoadHandlerT SetCLoadHandlerT(*CLoadHandlerT) }
type CLogSeverityT ¶
type CLogSeverityT C.cef_log_severity_t
/ Log severity levels. /
const ( /// // Default logging (currently INFO logging). /// LogseverityDefault CLogSeverityT = C.LOGSEVERITY_DEFAULT /// // Verbose logging. /// LogseverityVerbose CLogSeverityT = C.LOGSEVERITY_VERBOSE /// // DEBUG logging. /// LogseverityDebug CLogSeverityT = C.LOGSEVERITY_DEBUG /// // INFO logging. /// LogseverityInfo CLogSeverityT = C.LOGSEVERITY_INFO /// // WARNING logging. /// LogseverityWarning CLogSeverityT = C.LOGSEVERITY_WARNING /// // ERROR logging. /// LogseverityError CLogSeverityT = C.LOGSEVERITY_ERROR /// // FATAL logging. /// LogseverityFatal CLogSeverityT = C.LOGSEVERITY_FATAL /// // Disable logging to file for all messages, and to stderr for messages with // severity less than FATAL. /// LogseverityDisable CLogSeverityT = C.LOGSEVERITY_DISABLE )
type CMainAxisAlignmentT ¶ added in v0.1.5
type CMainAxisAlignmentT C.cef_main_axis_alignment_t
/ Specifies where along the main axis the CefBoxLayout child views should be laid out. /
const ( /// // Child views will be left-aligned. /// CefMainAxisAlignmentStart CMainAxisAlignmentT = C.CEF_MAIN_AXIS_ALIGNMENT_START /// // Child views will be center-aligned. /// CefMainAxisAlignmentCenter CMainAxisAlignmentT = C.CEF_MAIN_AXIS_ALIGNMENT_CENTER /// // Child views will be right-aligned. /// CefMainAxisAlignmentEnd CMainAxisAlignmentT = C.CEF_MAIN_AXIS_ALIGNMENT_END )
type CMenuAnchorPositionT ¶ added in v0.1.5
type CMenuAnchorPositionT C.cef_menu_anchor_position_t
/ Specifies how a menu will be anchored for non-RTL languages. The opposite position will be used for RTL languages. /
const ( CefMenuAnchorTopleft CMenuAnchorPositionT = C.CEF_MENU_ANCHOR_TOPLEFT CefMenuAnchorTopright CMenuAnchorPositionT = C.CEF_MENU_ANCHOR_TOPRIGHT CefMenuAnchorBottomcenter CMenuAnchorPositionT = C.CEF_MENU_ANCHOR_BOTTOMCENTER )
type CMenuColorTypeT ¶ added in v0.1.5
type CMenuColorTypeT C.cef_menu_color_type_t
/ Supported color types for menu items. /
const ( CefMenuColorText CMenuColorTypeT = C.CEF_MENU_COLOR_TEXT CefMenuColorTextHovered CMenuColorTypeT = C.CEF_MENU_COLOR_TEXT_HOVERED CefMenuColorTextAccelerator CMenuColorTypeT = C.CEF_MENU_COLOR_TEXT_ACCELERATOR CefMenuColorTextAcceleratorHovered CMenuColorTypeT = C.CEF_MENU_COLOR_TEXT_ACCELERATOR_HOVERED CefMenuColorBackground CMenuColorTypeT = C.CEF_MENU_COLOR_BACKGROUND CefMenuColorBackgroundHovered CMenuColorTypeT = C.CEF_MENU_COLOR_BACKGROUND_HOVERED CefMenuColorCount CMenuColorTypeT = C.CEF_MENU_COLOR_COUNT )
type CMenuIdT ¶ added in v0.1.5
type CMenuIdT C.cef_menu_id_t
/ Supported menu IDs. Non-English translations can be provided for the IDS_MENU_* strings in CefResourceBundleHandler::GetLocalizedString(). /
const ( // Navigation. MenuIdBack CMenuIdT = C.MENU_ID_BACK MenuIdForward CMenuIdT = C.MENU_ID_FORWARD MenuIdReload CMenuIdT = C.MENU_ID_RELOAD MenuIdReloadNocache CMenuIdT = C.MENU_ID_RELOAD_NOCACHE MenuIdStopload CMenuIdT = C.MENU_ID_STOPLOAD // Editing. MenuIdUndo CMenuIdT = C.MENU_ID_UNDO MenuIdRedo CMenuIdT = C.MENU_ID_REDO MenuIdCut CMenuIdT = C.MENU_ID_CUT MenuIdCopy CMenuIdT = C.MENU_ID_COPY MenuIdPaste CMenuIdT = C.MENU_ID_PASTE MenuIdDelete CMenuIdT = C.MENU_ID_DELETE MenuIdSelectAll CMenuIdT = C.MENU_ID_SELECT_ALL // Miscellaneous. MenuIdFind CMenuIdT = C.MENU_ID_FIND MenuIdPrint CMenuIdT = C.MENU_ID_PRINT MenuIdViewSource CMenuIdT = C.MENU_ID_VIEW_SOURCE // Spell checking word correction suggestions. MenuIdSpellcheckSuggestion0 CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_0 MenuIdSpellcheckSuggestion1 CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_1 MenuIdSpellcheckSuggestion2 CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_2 MenuIdSpellcheckSuggestion3 CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_3 MenuIdSpellcheckSuggestion4 CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_4 MenuIdSpellcheckSuggestionLast CMenuIdT = C.MENU_ID_SPELLCHECK_SUGGESTION_LAST MenuIdNoSpellingSuggestions CMenuIdT = C.MENU_ID_NO_SPELLING_SUGGESTIONS MenuIdAddToDictionary CMenuIdT = C.MENU_ID_ADD_TO_DICTIONARY // Custom menu items originating from the renderer process. For example, // plugin placeholder menu items or Flash menu items. MenuIdCustomFirst CMenuIdT = C.MENU_ID_CUSTOM_FIRST MenuIdCustomLast CMenuIdT = C.MENU_ID_CUSTOM_LAST // All user-defined menu IDs should come between MENU_ID_USER_FIRST and // MENU_ID_USER_LAST to avoid overlapping the Chromium and CEF ID ranges // defined in the tools/gritsettings/resource_ids file. MenuIdUserFirst CMenuIdT = C.MENU_ID_USER_FIRST MenuIdUserLast CMenuIdT = C.MENU_ID_USER_LAST )
type CMenuItemTypeT ¶ added in v0.1.5
type CMenuItemTypeT C.cef_menu_item_type_t
/ Supported menu item types. /
const ( MenuitemtypeNone CMenuItemTypeT = C.MENUITEMTYPE_NONE MenuitemtypeCommand CMenuItemTypeT = C.MENUITEMTYPE_COMMAND MenuitemtypeCheck CMenuItemTypeT = C.MENUITEMTYPE_CHECK MenuitemtypeRadio CMenuItemTypeT = C.MENUITEMTYPE_RADIO MenuitemtypeSeparator CMenuItemTypeT = C.MENUITEMTYPE_SEPARATOR )
type CMenuModelDelegateT ¶ added in v0.1.5
type CMenuModelDelegateT struct {
// contains filtered or unexported fields
}
Go type for cef_menu_model_delegate_t
func AllocCMenuModelDelegateT ¶ added in v0.1.5
func AllocCMenuModelDelegateT() *CMenuModelDelegateT
AllocCMenuModelDelegateT allocates CMenuModelDelegateT and construct it
func (*CMenuModelDelegateT) Bind ¶ added in v0.1.5
func (menu_model_delegate *CMenuModelDelegateT) Bind(a interface{}) *CMenuModelDelegateT
func (*CMenuModelDelegateT) HasOneRef ¶ added in v0.1.5
func (menu_model_delegate *CMenuModelDelegateT) HasOneRef() bool
type CMenuModelDelegateTAccessor ¶ added in v0.1.5
type CMenuModelDelegateTAccessor interface { GetCMenuModelDelegateT() *CMenuModelDelegateT SetCMenuModelDelegateT(*CMenuModelDelegateT) }
type CMenuModelT ¶ added in v0.1.5
type CMenuModelT struct {
// contains filtered or unexported fields
}
Go type for cef_menu_model_t
func MenuModelCreate ¶ added in v0.1.5
func MenuModelCreate( delegate *CMenuModelDelegateT, ) *CMenuModelT
/ Create a new MenuModel with the specified |delegate|. /
func (*CMenuModelT) AddCheckItem ¶ added in v0.1.5
func (self *CMenuModelT) AddCheckItem( command_id int, label string, ) bool
/ Add a check item to the menu. Returns true (1) on success. /
func (*CMenuModelT) AddItem ¶ added in v0.1.5
func (self *CMenuModelT) AddItem( command_id int, label string, ) bool
/ Add an item to the menu. Returns true (1) on success. /
func (*CMenuModelT) AddRadioItem ¶ added in v0.1.5
func (self *CMenuModelT) AddRadioItem( command_id int, label string, group_id int, ) bool
/ Add a radio item to the menu. Only a single item with the specified |group_id| can be checked at a time. Returns true (1) on success. /
func (*CMenuModelT) AddSeparator ¶ added in v0.1.5
func (self *CMenuModelT) AddSeparator() bool
/ Add a separator to the menu. Returns true (1) on success. /
func (*CMenuModelT) AddSubMenu ¶ added in v0.1.5
func (self *CMenuModelT) AddSubMenu( command_id int, label string, ) *CMenuModelT
/ Add a sub-menu to the menu. The new sub-menu is returned. /
func (*CMenuModelT) Clear ¶ added in v0.1.5
func (self *CMenuModelT) Clear() bool
/ Clears the menu. Returns true (1) on success. /
func (*CMenuModelT) GetAccelerator ¶ added in v0.1.5
func (self *CMenuModelT) GetAccelerator( command_id int, key_code *int, shift_pressed *int, ctrl_pressed *int, alt_pressed *int, ) bool
/ Retrieves the keyboard accelerator for the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) GetAcceleratorAt ¶ added in v0.1.5
func (self *CMenuModelT) GetAcceleratorAt( index int, key_code *int, shift_pressed *int, ctrl_pressed *int, alt_pressed *int, ) bool
/ Retrieves the keyboard accelerator for the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) GetColor ¶ added in v0.1.5
func (self *CMenuModelT) GetColor( command_id int, color_type CMenuColorTypeT, color *CColorT, ) bool
/ Returns in |color| the color that was explicitly set for |command_id| and |color_type|. If a color was not set then 0 will be returned in |color|. Returns true (1) on success. /
func (*CMenuModelT) GetColorAt ¶ added in v0.1.5
func (self *CMenuModelT) GetColorAt( index int, color_type CMenuColorTypeT, color *CColorT, ) bool
/ Returns in |color| the color that was explicitly set for |command_id| and |color_type|. Specify an |index| value of -1 to return the default color in |color|. If a color was not set then 0 will be returned in |color|. Returns true (1) on success. /
func (*CMenuModelT) GetCommandIdAt ¶ added in v0.1.5
func (self *CMenuModelT) GetCommandIdAt( index int, ) bool
/ Returns the command id at the specified |index| or -1 if not found due to invalid range or the index being a separator. /
func (*CMenuModelT) GetCount ¶ added in v0.1.5
func (self *CMenuModelT) GetCount() bool
/ Returns the number of items in this menu. /
func (*CMenuModelT) GetGroupId ¶ added in v0.1.5
func (self *CMenuModelT) GetGroupId( command_id int, ) bool
/ Returns the group id for the specified |command_id| or -1 if invalid. /
func (*CMenuModelT) GetGroupIdAt ¶ added in v0.1.5
func (self *CMenuModelT) GetGroupIdAt( index int, ) bool
/ Returns the group id at the specified |index| or -1 if invalid. /
func (*CMenuModelT) GetIndexOf ¶ added in v0.1.5
func (self *CMenuModelT) GetIndexOf( command_id int, ) bool
/ Returns the index associated with the specified |command_id| or -1 if not found due to the command id not existing in the menu. /
func (*CMenuModelT) GetLabel ¶ added in v0.1.5
func (self *CMenuModelT) GetLabel( command_id int, ) string
/ Returns the label for the specified |command_id| or NULL if not found. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CMenuModelT) GetLabelAt ¶ added in v0.1.5
func (self *CMenuModelT) GetLabelAt( index int, ) string
/ Returns the label at the specified |index| or NULL if not found due to invalid range or the index being a separator. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CMenuModelT) GetSubMenu ¶ added in v0.1.5
func (self *CMenuModelT) GetSubMenu( command_id int, ) *CMenuModelT
/ Returns the submenu for the specified |command_id| or NULL if invalid. /
func (*CMenuModelT) GetSubMenuAt ¶ added in v0.1.5
func (self *CMenuModelT) GetSubMenuAt( index int, ) *CMenuModelT
/ Returns the submenu at the specified |index| or NULL if invalid. /
func (*CMenuModelT) GetType ¶ added in v0.1.5
func (self *CMenuModelT) GetType( command_id int, ) CMenuItemTypeT
/ Returns the item type for the specified |command_id|. /
func (*CMenuModelT) GetTypeAt ¶ added in v0.1.5
func (self *CMenuModelT) GetTypeAt( index int, ) CMenuItemTypeT
/ Returns the item type at the specified |index|. /
func (*CMenuModelT) HasAccelerator ¶ added in v0.1.5
func (self *CMenuModelT) HasAccelerator( command_id int, ) bool
/ Returns true (1) if the specified |command_id| has a keyboard accelerator assigned. /
func (*CMenuModelT) HasAcceleratorAt ¶ added in v0.1.5
func (self *CMenuModelT) HasAcceleratorAt( index int, ) bool
/ Returns true (1) if the specified |index| has a keyboard accelerator assigned. /
func (*CMenuModelT) HasOneRef ¶ added in v0.1.5
func (menu_model *CMenuModelT) HasOneRef() bool
func (*CMenuModelT) InsertCheckItemAt ¶ added in v0.1.5
func (self *CMenuModelT) InsertCheckItemAt( index int, command_id int, label string, ) bool
/ Insert a check item in the menu at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) InsertItemAt ¶ added in v0.1.5
func (self *CMenuModelT) InsertItemAt( index int, command_id int, label string, ) bool
/ Insert an item in the menu at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) InsertRadioItemAt ¶ added in v0.1.5
func (self *CMenuModelT) InsertRadioItemAt( index int, command_id int, label string, group_id int, ) bool
/ Insert a radio item in the menu at the specified |index|. Only a single item with the specified |group_id| can be checked at a time. Returns true (1) on success. /
func (*CMenuModelT) InsertSeparatorAt ¶ added in v0.1.5
func (self *CMenuModelT) InsertSeparatorAt( index int, ) bool
/ Insert a separator in the menu at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) InsertSubMenuAt ¶ added in v0.1.5
func (self *CMenuModelT) InsertSubMenuAt( index int, command_id int, label string, ) *CMenuModelT
/ Insert a sub-menu in the menu at the specified |index|. The new sub-menu is returned. /
func (*CMenuModelT) IsChecked ¶ added in v0.1.5
func (self *CMenuModelT) IsChecked( command_id int, ) bool
/ Returns true (1) if the specified |command_id| is checked. Only applies to check and radio items. /
func (*CMenuModelT) IsCheckedAt ¶ added in v0.1.5
func (self *CMenuModelT) IsCheckedAt( index int, ) bool
/ Returns true (1) if the specified |index| is checked. Only applies to check and radio items. /
func (*CMenuModelT) IsEnabled ¶ added in v0.1.5
func (self *CMenuModelT) IsEnabled( command_id int, ) bool
/ Returns true (1) if the specified |command_id| is enabled. /
func (*CMenuModelT) IsEnabledAt ¶ added in v0.1.5
func (self *CMenuModelT) IsEnabledAt( index int, ) bool
/ Returns true (1) if the specified |index| is enabled. /
func (*CMenuModelT) IsSubMenu ¶ added in v0.1.5
func (self *CMenuModelT) IsSubMenu() bool
/ Returns true (1) if this menu is a submenu. /
func (*CMenuModelT) IsVisible ¶ added in v0.1.5
func (self *CMenuModelT) IsVisible( command_id int, ) bool
/ Returns true (1) if the specified |command_id| is visible. /
func (*CMenuModelT) IsVisibleAt ¶ added in v0.1.5
func (self *CMenuModelT) IsVisibleAt( index int, ) bool
/ Returns true (1) if the specified |index| is visible. /
func (*CMenuModelT) Remove ¶ added in v0.1.5
func (self *CMenuModelT) Remove( command_id int, ) bool
/ Removes the item with the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) RemoveAccelerator ¶ added in v0.1.5
func (self *CMenuModelT) RemoveAccelerator( command_id int, ) bool
/ Remove the keyboard accelerator for the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) RemoveAcceleratorAt ¶ added in v0.1.5
func (self *CMenuModelT) RemoveAcceleratorAt( index int, ) bool
/ Remove the keyboard accelerator at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) RemoveAt ¶ added in v0.1.5
func (self *CMenuModelT) RemoveAt( index int, ) bool
/ Removes the item at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) SetAccelerator ¶ added in v0.1.5
func (self *CMenuModelT) SetAccelerator( command_id int, key_code int, shift_pressed int, ctrl_pressed int, alt_pressed int, ) bool
/ Set the keyboard accelerator for the specified |command_id|. |key_code| can be any virtual key or character value. Returns true (1) on success. /
func (*CMenuModelT) SetAcceleratorAt ¶ added in v0.1.5
func (self *CMenuModelT) SetAcceleratorAt( index int, key_code int, shift_pressed int, ctrl_pressed int, alt_pressed int, ) bool
/ Set the keyboard accelerator at the specified |index|. |key_code| can be any virtual key or character value. Returns true (1) on success. /
func (*CMenuModelT) SetChecked ¶ added in v0.1.5
func (self *CMenuModelT) SetChecked( command_id int, checked int, ) bool
/ Check the specified |command_id|. Only applies to check and radio items. Returns true (1) on success. /
func (*CMenuModelT) SetCheckedAt ¶ added in v0.1.5
func (self *CMenuModelT) SetCheckedAt( index int, checked int, ) bool
/ Check the specified |index|. Only applies to check and radio items. Returns true (1) on success. /
func (*CMenuModelT) SetColor ¶ added in v0.1.5
func (self *CMenuModelT) SetColor( command_id int, color_type CMenuColorTypeT, color CColorT, ) bool
/ Set the explicit color for |command_id| and |color_type| to |color|. Specify a |color| value of 0 to remove the explicit color. If no explicit color or default color is set for |color_type| then the system color will be used. Returns true (1) on success. /
func (*CMenuModelT) SetColorAt ¶ added in v0.1.5
func (self *CMenuModelT) SetColorAt( index int, color_type CMenuColorTypeT, color CColorT, ) bool
/ Set the explicit color for |command_id| and |index| to |color|. Specify a |color| value of 0 to remove the explicit color. Specify an |index| value of -1 to set the default color for items that do not have an explicit color set. If no explicit color or default color is set for |color_type| then the system color will be used. Returns true (1) on success. /
func (*CMenuModelT) SetCommandIdAt ¶ added in v0.1.5
func (self *CMenuModelT) SetCommandIdAt( index int, command_id int, ) bool
/ Sets the command id at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) SetEnabled ¶ added in v0.1.5
func (self *CMenuModelT) SetEnabled( command_id int, enabled int, ) bool
/ Change the enabled status of the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) SetEnabledAt ¶ added in v0.1.5
func (self *CMenuModelT) SetEnabledAt( index int, enabled int, ) bool
/ Change the enabled status at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) SetFontList ¶ added in v0.1.5
func (self *CMenuModelT) SetFontList( command_id int, font_list string, ) bool
/ Sets the font list for the specified |command_id|. If |font_list| is NULL the system font will be used. Returns true (1) on success. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a comma- separated list of font family names, - STYLES is an optional space- separated list of style names (case-sensitive
"Bold" and "Italic" are supported), and
- SIZE is an integer font size in pixels with the suffix "px".
Here are examples of valid font description strings: - "Arial, Helvetica, Bold Italic 14px" - "Arial, 14px" /
func (*CMenuModelT) SetFontListAt ¶ added in v0.1.5
func (self *CMenuModelT) SetFontListAt( index int, font_list string, ) bool
/ Sets the font list for the specified |index|. Specify an |index| value of -1 to set the default font. If |font_list| is NULL the system font will be used. Returns true (1) on success. The format is "<FONT_FAMILY_LIST>,[STYLES] <SIZE>", where: - FONT_FAMILY_LIST is a comma- separated list of font family names, - STYLES is an optional space- separated list of style names (case-sensitive
"Bold" and "Italic" are supported), and
- SIZE is an integer font size in pixels with the suffix "px".
Here are examples of valid font description strings: - "Arial, Helvetica, Bold Italic 14px" - "Arial, 14px" /
func (*CMenuModelT) SetGroupId ¶ added in v0.1.5
func (self *CMenuModelT) SetGroupId( command_id int, group_id int, ) bool
/ Sets the group id for the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) SetGroupIdAt ¶ added in v0.1.5
func (self *CMenuModelT) SetGroupIdAt( index int, group_id int, ) bool
/ Sets the group id at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) SetLabel ¶ added in v0.1.5
func (self *CMenuModelT) SetLabel( command_id int, label string, ) bool
/ Sets the label for the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) SetLabelAt ¶ added in v0.1.5
func (self *CMenuModelT) SetLabelAt( index int, label string, ) bool
/ Set the label at the specified |index|. Returns true (1) on success. /
func (*CMenuModelT) SetVisible ¶ added in v0.1.5
func (self *CMenuModelT) SetVisible( command_id int, visible int, ) bool
/ Change the visibility of the specified |command_id|. Returns true (1) on success. /
func (*CMenuModelT) SetVisibleAt ¶ added in v0.1.5
func (self *CMenuModelT) SetVisibleAt( index int, visible int, ) bool
/ Change the visibility at the specified |index|. Returns true (1) on success. /
type CMenuModelTAccessor ¶ added in v0.1.5
type CMenuModelTAccessor interface { GetCMenuModelT() *CMenuModelT SetCMenuModelT(*CMenuModelT) }
type CMessageLoopTypeT ¶ added in v0.1.5
type CMessageLoopTypeT C.cef_message_loop_type_t
/ Message loop types. Indicates the set of asynchronous events that a message loop can process. /
const ( /// // Supports tasks and timers. /// MlTypeDefault CMessageLoopTypeT = C.ML_TYPE_DEFAULT /// // Supports tasks, timers and native UI events (e.g. Windows messages). /// MlTypeUi CMessageLoopTypeT = C.ML_TYPE_UI /// // Supports tasks, timers and asynchronous IO events. /// MlTypeIo CMessageLoopTypeT = C.ML_TYPE_IO )
type CMouseButtonTypeT ¶ added in v0.1.5
type CMouseButtonTypeT C.cef_mouse_button_type_t
/ Mouse button types. /
const ( MbtLeft CMouseButtonTypeT = C.MBT_LEFT MbtMiddle CMouseButtonTypeT = C.MBT_MIDDLE MbtRight CMouseButtonTypeT = C.MBT_RIGHT )
type CMouseEventT ¶ added in v0.1.5
type CMouseEventT C.cef_mouse_event_t
/ Structure representing mouse event information. /
type CNavigationEntryT ¶ added in v0.1.5
type CNavigationEntryT struct {
// contains filtered or unexported fields
}
Go type for cef_navigation_entry_t
func (*CNavigationEntryT) GetCompletionTime ¶ added in v0.1.5
func (self *CNavigationEntryT) GetCompletionTime() CTimeT
/ Returns the time for the last known successful navigation completion. A navigation may be completed more than once if the page is reloaded. May be 0 if the navigation has not yet completed. /
func (*CNavigationEntryT) GetDisplayUrl ¶ added in v0.1.5
func (self *CNavigationEntryT) GetDisplayUrl() string
/ Returns a display-friendly version of the URL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CNavigationEntryT) GetHttpStatusCode ¶ added in v0.1.5
func (self *CNavigationEntryT) GetHttpStatusCode() bool
/ Returns the HTTP status code for the last known successful navigation response. May be 0 if the response has not yet been received or if the navigation has not yet completed. /
func (*CNavigationEntryT) GetOriginalUrl ¶ added in v0.1.5
func (self *CNavigationEntryT) GetOriginalUrl() string
/ Returns the original URL that was entered by the user before any redirects. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CNavigationEntryT) GetSslstatus ¶ added in v0.1.5
func (self *CNavigationEntryT) GetSslstatus() *CSslstatusT
/ Returns the SSL information for this navigation entry. /
func (*CNavigationEntryT) GetTitle ¶ added in v0.1.5
func (self *CNavigationEntryT) GetTitle() string
/ Returns the title set by the page. This value may be NULL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CNavigationEntryT) GetTransitionType ¶ added in v0.1.5
func (self *CNavigationEntryT) GetTransitionType() CTransitionTypeT
/ Returns the transition type which indicates what the user did to move to this page from the previous page. /
func (*CNavigationEntryT) GetUrl ¶ added in v0.1.5
func (self *CNavigationEntryT) GetUrl() string
/ Returns the actual URL of the page. For some pages this may be data: URL or similar. Use get_display_url() to return a display-friendly version. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CNavigationEntryT) HasOneRef ¶ added in v0.1.5
func (navigation_entry *CNavigationEntryT) HasOneRef() bool
func (*CNavigationEntryT) HasPostData ¶ added in v0.1.5
func (self *CNavigationEntryT) HasPostData() bool
/ Returns true (1) if this navigation includes post data. /
func (*CNavigationEntryT) IsValid ¶ added in v0.1.5
func (self *CNavigationEntryT) IsValid() bool
/ Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). /
type CNavigationEntryTAccessor ¶ added in v0.1.5
type CNavigationEntryTAccessor interface {}
type CNavigationEntryVisitorT ¶ added in v0.1.5
type CNavigationEntryVisitorT struct {
// contains filtered or unexported fields
}
Go type for cef_navigation_entry_visitor_t
func (*CNavigationEntryVisitorT) HasOneRef ¶ added in v0.1.5
func (navigation_entry_visitor *CNavigationEntryVisitorT) HasOneRef() bool
func (*CNavigationEntryVisitorT) Visit ¶ added in v0.1.5
func (self *CNavigationEntryVisitorT) Visit( entry *CNavigationEntryT, current int, index int, total int, ) bool
/ Method that will be executed. Do not keep a reference to |entry| outside of this callback. Return true (1) to continue visiting entries or false (0) to stop. |current| is true (1) if this entry is the currently loaded navigation entry. |index| is the 0-based index of this entry and |total| is the total number of entries. /
type CNavigationEntryVisitorTAccessor ¶ added in v0.1.5
type CNavigationEntryVisitorTAccessor interface {}
type CNavigationTypeT ¶ added in v0.1.5
type CNavigationTypeT C.cef_navigation_type_t
/ Navigation types. /
const ()
type CPaintElementTypeT ¶ added in v0.1.5
type CPaintElementTypeT C.cef_paint_element_type_t
/ Paint element types. /
const ( PetView CPaintElementTypeT = C.PET_VIEW PetPopup CPaintElementTypeT = C.PET_POPUP )
type CPathKeyT ¶ added in v0.1.5
type CPathKeyT C.cef_path_key_t
/ Path key values. /
const ( /// // Current directory. /// PkDirCurrent CPathKeyT = C.PK_DIR_CURRENT /// // Directory containing PK_FILE_EXE. /// PkDirExe CPathKeyT = C.PK_DIR_EXE /// // Directory containing PK_FILE_MODULE. /// PkDirModule CPathKeyT = C.PK_DIR_MODULE /// // Temporary directory. /// PkDirTemp CPathKeyT = C.PK_DIR_TEMP /// // Path and filename of the current executable. /// PkFileExe CPathKeyT = C.PK_FILE_EXE /// // Path and filename of the module containing the CEF code (usually the libcef // module). /// PkFileModule CPathKeyT = C.PK_FILE_MODULE /// // "Local Settings\Application Data" directory under the user profile // directory on Windows. /// PkLocalAppData CPathKeyT = C.PK_LOCAL_APP_DATA /// // "Application Data" directory under the user profile directory on Windows // and "~/Library/Application Support" directory on Mac OS X. /// PkUserData CPathKeyT = C.PK_USER_DATA /// // Directory containing application resources. Can be configured via // CefSettings.resources_dir_path. /// PkDirResources CPathKeyT = C.PK_DIR_RESOURCES )
type CPdfPrintCallbackT ¶ added in v0.1.5
type CPdfPrintCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_pdf_print_callback_t
func (*CPdfPrintCallbackT) HasOneRef ¶ added in v0.1.5
func (pdf_print_callback *CPdfPrintCallbackT) HasOneRef() bool
func (*CPdfPrintCallbackT) OnPdfPrintFinished ¶ added in v0.1.5
func (self *CPdfPrintCallbackT) OnPdfPrintFinished( path string, ok int, )
/ Method that will be executed when the PDF printing has completed. |path| is the output path. |ok| will be true (1) if the printing completed successfully or false (0) otherwise. /
type CPdfPrintCallbackTAccessor ¶ added in v0.1.5
type CPdfPrintCallbackTAccessor interface { GetCPdfPrintCallbackT() *CPdfPrintCallbackT SetCPdfPrintCallbackT(*CPdfPrintCallbackT) }
type CPdfPrintMarginTypeT ¶ added in v0.1.5
type CPdfPrintMarginTypeT C.cef_pdf_print_margin_type_t
/ Margin type for PDF printing. /
const ( /// // Default margins. /// PdfPrintMarginDefault CPdfPrintMarginTypeT = C.PDF_PRINT_MARGIN_DEFAULT /// // No margins. /// PdfPrintMarginNone CPdfPrintMarginTypeT = C.PDF_PRINT_MARGIN_NONE /// // Minimum margins. /// PdfPrintMarginMinimum CPdfPrintMarginTypeT = C.PDF_PRINT_MARGIN_MINIMUM /// // Custom margins using the |margin_*| values from cef_pdf_print_settings_t. /// PdfPrintMarginCustom CPdfPrintMarginTypeT = C.PDF_PRINT_MARGIN_CUSTOM )
type CPdfPrintSettingsT ¶ added in v0.1.5
type CPdfPrintSettingsT C.cef_pdf_print_settings_t
/ Structure representing PDF print settings. /
type CPluginPolicyT ¶ added in v0.1.5
type CPluginPolicyT C.cef_plugin_policy_t
/ Plugin policies supported by CefRequestContextHandler::OnBeforePluginLoad. /
const ( /// // Allow the content. /// PluginPolicyAllow CPluginPolicyT = C.PLUGIN_POLICY_ALLOW /// // Allow important content and block unimportant content based on heuristics. // The user can manually load blocked content. /// PluginPolicyDetectImportant CPluginPolicyT = C.PLUGIN_POLICY_DETECT_IMPORTANT /// // Block the content. The user can manually load blocked content. /// PluginPolicyBlock CPluginPolicyT = C.PLUGIN_POLICY_BLOCK /// // Disable the content. The user cannot load disabled content. /// PluginPolicyDisable CPluginPolicyT = C.PLUGIN_POLICY_DISABLE )
type CPointerTypeT ¶ added in v0.1.5
type CPointerTypeT C.cef_pointer_type_t
/ The device type that caused the event. /
const ( CefPointerTypeTouch CPointerTypeT = C.CEF_POINTER_TYPE_TOUCH CefPointerTypeMouse CPointerTypeT = C.CEF_POINTER_TYPE_MOUSE CefPointerTypePen CPointerTypeT = C.CEF_POINTER_TYPE_PEN CefPointerTypeEraser CPointerTypeT = C.CEF_POINTER_TYPE_ERASER CefPointerTypeUnknown CPointerTypeT = C.CEF_POINTER_TYPE_UNKNOWN )
type CPopupFeaturesT ¶ added in v0.1.5
type CPopupFeaturesT C.cef_popup_features_t
/ Popup window features. /
type CPostDataElementT ¶ added in v0.1.5
type CPostDataElementT struct {
// contains filtered or unexported fields
}
Go type for cef_post_data_element_t
func PostDataElementCreate ¶ added in v0.1.5
func PostDataElementCreate() *CPostDataElementT
/ Create a new cef_post_data_element_t object. /
func (*CPostDataElementT) GetBytes ¶ added in v0.1.5
func (self *CPostDataElementT) GetBytes( size int64, bytes unsafe.Pointer, ) int64
/ Read up to |size| bytes into |bytes| and return the number of bytes actually read. /
func (*CPostDataElementT) GetBytesCount ¶ added in v0.1.5
func (self *CPostDataElementT) GetBytesCount() int64
/ Return the number of bytes. /
func (*CPostDataElementT) GetFile ¶ added in v0.1.5
func (self *CPostDataElementT) GetFile() string
/ Return the file name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CPostDataElementT) GetType ¶ added in v0.1.5
func (self *CPostDataElementT) GetType() CPostdataelementTypeT
/ Return the type of this post data element. /
func (*CPostDataElementT) HasOneRef ¶ added in v0.1.5
func (post_data_element *CPostDataElementT) HasOneRef() bool
func (*CPostDataElementT) IsReadOnly ¶ added in v0.1.5
func (self *CPostDataElementT) IsReadOnly() bool
/ Returns true (1) if this object is read-only. /
func (*CPostDataElementT) SetToBytes ¶ added in v0.1.5
func (self *CPostDataElementT) SetToBytes( size int64, bytes unsafe.Pointer, )
/ The post data element will represent bytes. The bytes passed in will be copied. /
func (*CPostDataElementT) SetToEmpty ¶ added in v0.1.5
func (self *CPostDataElementT) SetToEmpty()
/ Remove all contents from the post data element. /
func (*CPostDataElementT) SetToFile ¶ added in v0.1.5
func (self *CPostDataElementT) SetToFile( fileName string, )
/ The post data element will represent a file. /
type CPostDataElementTAccessor ¶ added in v0.1.5
type CPostDataElementTAccessor interface { GetCPostDataElementT() *CPostDataElementT SetCPostDataElementT(*CPostDataElementT) }
type CPostDataT ¶ added in v0.1.5
type CPostDataT struct {
// contains filtered or unexported fields
}
Go type for cef_post_data_t
func PostDataCreate ¶ added in v0.1.5
func PostDataCreate() *CPostDataT
/ Create a new cef_post_data_t object. /
func (*CPostDataT) AddElement ¶ added in v0.1.5
func (self *CPostDataT) AddElement( element *CPostDataElementT, ) bool
/ Add the specified post data element. Returns true (1) if the add succeeds. /
func (*CPostDataT) GetElementCount ¶ added in v0.1.5
func (self *CPostDataT) GetElementCount() int64
/ Returns the number of existing post data elements. /
func (*CPostDataT) HasExcludedElements ¶ added in v0.1.5
func (self *CPostDataT) HasExcludedElements() bool
/ Returns true (1) if the underlying POST data includes elements that are not represented by this cef_post_data_t object (for example, multi-part file upload data). Modifying cef_post_data_t objects with excluded elements may result in the request failing. /
func (*CPostDataT) HasOneRef ¶ added in v0.1.5
func (post_data *CPostDataT) HasOneRef() bool
func (*CPostDataT) IsReadOnly ¶ added in v0.1.5
func (self *CPostDataT) IsReadOnly() bool
/ Returns true (1) if this object is read-only. /
func (*CPostDataT) RemoveElement ¶ added in v0.1.5
func (self *CPostDataT) RemoveElement( element *CPostDataElementT, ) bool
/ Remove the specified post data element. Returns true (1) if the removal succeeds. /
func (*CPostDataT) RemoveElements ¶ added in v0.1.5
func (self *CPostDataT) RemoveElements()
/ Remove all existing post data elements. /
type CPostDataTAccessor ¶ added in v0.1.5
type CPostDataTAccessor interface { GetCPostDataT() *CPostDataT SetCPostDataT(*CPostDataT) }
type CPostdataelementTypeT ¶ added in v0.1.5
type CPostdataelementTypeT C.cef_postdataelement_type_t
/ Post data elements may represent either bytes or files. /
const ( PdeTypeEmpty CPostdataelementTypeT = C.PDE_TYPE_EMPTY PdeTypeBytes CPostdataelementTypeT = C.PDE_TYPE_BYTES PdeTypeFile CPostdataelementTypeT = C.PDE_TYPE_FILE )
type CPrintDialogCallbackT ¶ added in v0.1.5
type CPrintDialogCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_print_dialog_callback_t
func (*CPrintDialogCallbackT) Cancel ¶ added in v0.1.5
func (self *CPrintDialogCallbackT) Cancel()
/ Cancel the printing. /
func (*CPrintDialogCallbackT) Cont ¶ added in v0.1.5
func (self *CPrintDialogCallbackT) Cont( settings *CPrintSettingsT, )
/ Continue printing with the specified |settings|. /
func (*CPrintDialogCallbackT) HasOneRef ¶ added in v0.1.5
func (print_dialog_callback *CPrintDialogCallbackT) HasOneRef() bool
type CPrintDialogCallbackTAccessor ¶ added in v0.1.5
type CPrintDialogCallbackTAccessor interface { GetCPrintDialogCallbackT() *CPrintDialogCallbackT SetCPrintDialogCallbackT(*CPrintDialogCallbackT) }
type CPrintHandlerT ¶ added in v0.1.5
type CPrintHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_print_handler_t
func (*CPrintHandlerT) GetPdfPaperSize ¶ added in v0.1.5
func (self *CPrintHandlerT) GetPdfPaperSize( device_units_per_inch int, ) CSizeT
/ Return the PDF paper size in device units. Used in combination with cef_browser_host_t::print_to_pdf(). /
func (*CPrintHandlerT) HasOneRef ¶ added in v0.1.5
func (print_handler *CPrintHandlerT) HasOneRef() bool
func (*CPrintHandlerT) OnPrintDialog ¶ added in v0.1.5
func (self *CPrintHandlerT) OnPrintDialog( browser *CBrowserT, has_selection int, callback *CPrintDialogCallbackT, ) bool
/ Show the print dialog. Execute |callback| once the dialog is dismissed. Return true (1) if the dialog will be displayed or false (0) to cancel the printing immediately. /
func (*CPrintHandlerT) OnPrintJob ¶ added in v0.1.5
func (self *CPrintHandlerT) OnPrintJob( browser *CBrowserT, document_name string, pdf_file_path string, callback *CPrintJobCallbackT, ) bool
/ Send the print job to the printer. Execute |callback| once the job is completed. Return true (1) if the job will proceed or false (0) to cancel the job immediately. /
func (*CPrintHandlerT) OnPrintReset ¶ added in v0.1.5
func (self *CPrintHandlerT) OnPrintReset( browser *CBrowserT, )
/ Reset client state related to printing. /
func (*CPrintHandlerT) OnPrintSettings ¶ added in v0.1.5
func (self *CPrintHandlerT) OnPrintSettings( browser *CBrowserT, settings *CPrintSettingsT, get_defaults int, )
/ Synchronize |settings| with client state. If |get_defaults| is true (1) then populate |settings| with the default print settings. Do not keep a reference to |settings| outside of this callback. /
func (*CPrintHandlerT) OnPrintStart ¶ added in v0.1.5
func (self *CPrintHandlerT) OnPrintStart( browser *CBrowserT, )
/ Called when printing has started for the specified |browser|. This function will be called before the other OnPrint*() functions and irrespective of how printing was initiated (e.g. cef_browser_host_t::print(), JavaScript window.print() or PDF extension print button). /
type CPrintHandlerTAccessor ¶ added in v0.1.5
type CPrintHandlerTAccessor interface { GetCPrintHandlerT() *CPrintHandlerT SetCPrintHandlerT(*CPrintHandlerT) }
type CPrintJobCallbackT ¶ added in v0.1.5
type CPrintJobCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_print_job_callback_t
func (*CPrintJobCallbackT) Cont ¶ added in v0.1.5
func (self *CPrintJobCallbackT) Cont()
/ Indicate completion of the print job. /
func (*CPrintJobCallbackT) HasOneRef ¶ added in v0.1.5
func (print_job_callback *CPrintJobCallbackT) HasOneRef() bool
type CPrintJobCallbackTAccessor ¶ added in v0.1.5
type CPrintJobCallbackTAccessor interface { GetCPrintJobCallbackT() *CPrintJobCallbackT SetCPrintJobCallbackT(*CPrintJobCallbackT) }
type CPrintSettingsT ¶ added in v0.1.5
type CPrintSettingsT struct {
// contains filtered or unexported fields
}
Go type for cef_print_settings_t
func PrintSettingsCreate ¶ added in v0.1.5
func PrintSettingsCreate() *CPrintSettingsT
/ Create a new cef_print_settings_t object. /
func (*CPrintSettingsT) Copy ¶ added in v0.1.5
func (self *CPrintSettingsT) Copy() *CPrintSettingsT
/ Returns a writable copy of this object. /
func (*CPrintSettingsT) GetColorModel ¶ added in v0.1.5
func (self *CPrintSettingsT) GetColorModel() CColorModelT
/ Get the color model. /
func (*CPrintSettingsT) GetCopies ¶ added in v0.1.5
func (self *CPrintSettingsT) GetCopies() bool
/ Get the number of copies. /
func (*CPrintSettingsT) GetDeviceName ¶ added in v0.1.5
func (self *CPrintSettingsT) GetDeviceName() string
/ Get the device name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CPrintSettingsT) GetDpi ¶ added in v0.1.5
func (self *CPrintSettingsT) GetDpi() bool
/ Get the DPI (dots per inch). /
func (*CPrintSettingsT) GetDuplexMode ¶ added in v0.1.5
func (self *CPrintSettingsT) GetDuplexMode() CDuplexModeT
/ Get the duplex mode. /
func (*CPrintSettingsT) GetPageRangesCount ¶ added in v0.1.5
func (self *CPrintSettingsT) GetPageRangesCount() int64
/ Returns the number of page ranges that currently exist. /
func (*CPrintSettingsT) HasOneRef ¶ added in v0.1.5
func (print_settings *CPrintSettingsT) HasOneRef() bool
func (*CPrintSettingsT) IsLandscape ¶ added in v0.1.5
func (self *CPrintSettingsT) IsLandscape() bool
/ Returns true (1) if the orientation is landscape. /
func (*CPrintSettingsT) IsReadOnly ¶ added in v0.1.5
func (self *CPrintSettingsT) IsReadOnly() bool
/ Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects. /
func (*CPrintSettingsT) IsSelectionOnly ¶ added in v0.1.5
func (self *CPrintSettingsT) IsSelectionOnly() bool
/ Returns true (1) if only the selection will be printed. /
func (*CPrintSettingsT) IsValid ¶ added in v0.1.5
func (self *CPrintSettingsT) IsValid() bool
/ Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). /
func (*CPrintSettingsT) SetCollate ¶ added in v0.1.5
func (self *CPrintSettingsT) SetCollate( collate int, )
/ Set whether pages will be collated. /
func (*CPrintSettingsT) SetColorModel ¶ added in v0.1.5
func (self *CPrintSettingsT) SetColorModel( model CColorModelT, )
/ Set the color model. /
func (*CPrintSettingsT) SetCopies ¶ added in v0.1.5
func (self *CPrintSettingsT) SetCopies( copies int, )
/ Set the number of copies. /
func (*CPrintSettingsT) SetDeviceName ¶ added in v0.1.5
func (self *CPrintSettingsT) SetDeviceName( name string, )
/ Set the device name. /
func (*CPrintSettingsT) SetDpi ¶ added in v0.1.5
func (self *CPrintSettingsT) SetDpi( dpi int, )
/ Set the DPI (dots per inch). /
func (*CPrintSettingsT) SetDuplexMode ¶ added in v0.1.5
func (self *CPrintSettingsT) SetDuplexMode( mode CDuplexModeT, )
/ Set the duplex mode. /
func (*CPrintSettingsT) SetOrientation ¶ added in v0.1.5
func (self *CPrintSettingsT) SetOrientation( landscape int, )
/ Set the page orientation. /
func (*CPrintSettingsT) SetPageRanges ¶ added in v0.1.5
func (self *CPrintSettingsT) SetPageRanges( rangesCount int64, ranges *CRangeT, )
/ Set the page ranges. /
func (*CPrintSettingsT) SetPrinterPrintableArea ¶ added in v0.1.5
func (self *CPrintSettingsT) SetPrinterPrintableArea( physical_size_device_units *CSizeT, printable_area_device_units *CRectT, landscape_needs_flip int, )
/ Set the printer printable area in device units. Some platforms already provide flipped area. Set |landscape_needs_flip| to false (0) on those platforms to avoid double flipping. /
func (*CPrintSettingsT) SetSelectionOnly ¶ added in v0.1.5
func (self *CPrintSettingsT) SetSelectionOnly( selection_only int, )
/ Set whether only the selection will be printed. /
func (*CPrintSettingsT) WillCollate ¶ added in v0.1.5
func (self *CPrintSettingsT) WillCollate() bool
/ Returns true (1) if pages will be collated. /
type CPrintSettingsTAccessor ¶ added in v0.1.5
type CPrintSettingsTAccessor interface { GetCPrintSettingsT() *CPrintSettingsT SetCPrintSettingsT(*CPrintSettingsT) }
type CProcessIdT ¶
type CProcessIdT C.cef_process_id_t
/ Existing process IDs. /
const ( /// // Browser process. /// PidBrowser CProcessIdT = C.PID_BROWSER /// // Renderer process. /// PidRenderer CProcessIdT = C.PID_RENDERER )
type CProcessMessageT ¶
type CProcessMessageT struct {
// contains filtered or unexported fields
}
Go type for cef_process_message_t
func ProcessMessageCreate ¶
func ProcessMessageCreate( name string, ) *CProcessMessageT
/ Create a new cef_process_message_t object with the specified name. /
func (*CProcessMessageT) Copy ¶
func (self *CProcessMessageT) Copy() *CProcessMessageT
/ Returns a writable copy of this object. /
func (*CProcessMessageT) GetArgumentList ¶
func (self *CProcessMessageT) GetArgumentList() *CListValueT
/ Returns the list of arguments. /
func (*CProcessMessageT) GetName ¶
func (self *CProcessMessageT) GetName() string
/ Returns the message name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CProcessMessageT) HasOneRef ¶ added in v0.1.5
func (process_message *CProcessMessageT) HasOneRef() bool
func (*CProcessMessageT) IsReadOnly ¶
func (self *CProcessMessageT) IsReadOnly() bool
/ Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects. /
func (*CProcessMessageT) IsValid ¶
func (self *CProcessMessageT) IsValid() bool
/ Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). /
type CProcessMessageTAccessor ¶
type CProcessMessageTAccessor interface { GetCProcessMessageT() *CProcessMessageT SetCProcessMessageT(*CProcessMessageT) }
type CReadHandlerT ¶ added in v0.1.5
type CReadHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_read_handler_t
func (*CReadHandlerT) Eof ¶ added in v0.1.5
func (self *CReadHandlerT) Eof() bool
/ Return non-zero if at end of file. /
func (*CReadHandlerT) HasOneRef ¶ added in v0.1.5
func (read_handler *CReadHandlerT) HasOneRef() bool
func (*CReadHandlerT) MayBlock ¶ added in v0.1.5
func (self *CReadHandlerT) MayBlock() bool
/ Return true (1) if this handler performs work like accessing the file system which may block. Used as a hint for determining the thread to access the handler from. /
func (*CReadHandlerT) Seek ¶ added in v0.1.5
func (self *CReadHandlerT) Seek( offset int64, whence int, ) bool
/ Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on failure. /
func (*CReadHandlerT) Tell ¶ added in v0.1.5
func (self *CReadHandlerT) Tell() int64
/ Return the current offset position. /
type CReadHandlerTAccessor ¶ added in v0.1.5
type CReadHandlerTAccessor interface { GetCReadHandlerT() *CReadHandlerT SetCReadHandlerT(*CReadHandlerT) }
type CReferrerPolicyT ¶ added in v0.1.5
type CReferrerPolicyT C.cef_referrer_policy_t
/ Policy for how the Referrer HTTP header value will be sent during navigation. If the `--no-referrers` command-line flag is specified then the policy value will be ignored and the Referrer value will never be sent. Must be kept synchronized with net::URLRequest::ReferrerPolicy from Chromium. /
const ( /// // Clear the referrer header if the header value is HTTPS but the request // destination is HTTP. This is the default behavior. /// ReferrerPolicyClearReferrerOnTransitionFromSecureToInsecure CReferrerPolicyT = C.REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE ReferrerPolicyDefault CReferrerPolicyT = C.REFERRER_POLICY_DEFAULT /// // A slight variant on CLEAR_REFERRER_ON_TRANSITION_FROM_SECURE_TO_INSECURE: // If the request destination is HTTP, an HTTPS referrer will be cleared. If // the request's destination is cross-origin with the referrer (but does not // downgrade), the referrer's granularity will be stripped down to an origin // rather than a full URL. Same-origin requests will send the full referrer. /// ReferrerPolicyReduceReferrerGranularityOnTransitionCrossOrigin CReferrerPolicyT = C.REFERRER_POLICY_REDUCE_REFERRER_GRANULARITY_ON_TRANSITION_CROSS_ORIGIN /// // Strip the referrer down to an origin when the origin of the referrer is // different from the destination's origin. /// ReferrerPolicyOriginOnlyOnTransitionCrossOrigin CReferrerPolicyT = C.REFERRER_POLICY_ORIGIN_ONLY_ON_TRANSITION_CROSS_ORIGIN /// // Never change the referrer. /// ReferrerPolicyNeverClearReferrer CReferrerPolicyT = C.REFERRER_POLICY_NEVER_CLEAR_REFERRER /// // Strip the referrer down to the origin regardless of the redirect location. /// ReferrerPolicyOrigin CReferrerPolicyT = C.REFERRER_POLICY_ORIGIN /// // Clear the referrer when the request's referrer is cross-origin with the // request's destination. /// ReferrerPolicyClearReferrerOnTransitionCrossOrigin CReferrerPolicyT = C.REFERRER_POLICY_CLEAR_REFERRER_ON_TRANSITION_CROSS_ORIGIN /// // Strip the referrer down to the origin, but clear it entirely if the // referrer value is HTTPS and the destination is HTTP. /// ReferrerPolicyOriginClearOnTransitionFromSecureToInsecure CReferrerPolicyT = C.REFERRER_POLICY_ORIGIN_CLEAR_ON_TRANSITION_FROM_SECURE_TO_INSECURE /// // Always clear the referrer regardless of the request destination. /// ReferrerPolicyNoReferrer CReferrerPolicyT = C.REFERRER_POLICY_NO_REFERRER // Always the last value in this enumeration. ReferrerPolicyLastValue CReferrerPolicyT = C.REFERRER_POLICY_LAST_VALUE )
type CRegisterCdmCallbackT ¶ added in v0.1.5
type CRegisterCdmCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_register_cdm_callback_t
func (*CRegisterCdmCallbackT) HasOneRef ¶ added in v0.1.5
func (register_cdm_callback *CRegisterCdmCallbackT) HasOneRef() bool
func (*CRegisterCdmCallbackT) OnCdmRegistrationComplete ¶ added in v0.1.5
func (self *CRegisterCdmCallbackT) OnCdmRegistrationComplete( result CCdmRegistrationErrorT, error_message string, )
/ Method that will be called when CDM registration is complete. |result| will be CEF_CDM_REGISTRATION_ERROR_NONE if registration completed successfully. Otherwise, |result| and |error_message| will contain additional information about why registration failed. /
type CRegisterCdmCallbackTAccessor ¶ added in v0.1.5
type CRegisterCdmCallbackTAccessor interface { GetCRegisterCdmCallbackT() *CRegisterCdmCallbackT SetCRegisterCdmCallbackT(*CRegisterCdmCallbackT) }
type CRenderHandlerT ¶
type CRenderHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_render_handler_t
func AllocCRenderHandlerT ¶ added in v0.1.5
func AllocCRenderHandlerT() *CRenderHandlerT
AllocCRenderHandlerT allocates CRenderHandlerT and construct it
func (*CRenderHandlerT) AssocAccessibilityHandlerT ¶ added in v0.1.5
func (render_handler *CRenderHandlerT) AssocAccessibilityHandlerT(handler *CAccessibilityHandlerT)
func (*CRenderHandlerT) Bind ¶ added in v0.1.5
func (render_handler *CRenderHandlerT) Bind(a interface{}) *CRenderHandlerT
func (*CRenderHandlerT) HasOneRef ¶ added in v0.1.5
func (render_handler *CRenderHandlerT) HasOneRef() bool
type CRenderHandlerTAccessor ¶ added in v0.1.5
type CRenderHandlerTAccessor interface { GetCRenderHandlerT() *CRenderHandlerT SetCRenderHandlerT(*CRenderHandlerT) }
type CRenderProcessHandlerT ¶
type CRenderProcessHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_render_process_handler_t
func AllocCRenderProcessHandlerT ¶
func AllocCRenderProcessHandlerT() *CRenderProcessHandlerT
AllocCRenderProcessHandlerT allocates CRenderProcessHandlerT and construct it
func (*CRenderProcessHandlerT) AssocLoadHandlerT ¶ added in v0.1.5
func (render_process_handler *CRenderProcessHandlerT) AssocLoadHandlerT(handler *CLoadHandlerT)
func (*CRenderProcessHandlerT) Bind ¶
func (render_process_handler *CRenderProcessHandlerT) Bind(a interface{}) *CRenderProcessHandlerT
func (*CRenderProcessHandlerT) HasOneRef ¶ added in v0.1.5
func (render_process_handler *CRenderProcessHandlerT) HasOneRef() bool
type CRenderProcessHandlerTAccessor ¶
type CRenderProcessHandlerTAccessor interface { GetCRenderProcessHandlerT() *CRenderProcessHandlerT SetCRenderProcessHandlerT(*CRenderProcessHandlerT) }
type CRenderProcessHandlerTOnProcessMessageReceivedHandler ¶ added in v0.1.5
type CRenderProcessHandlerTOnProcessMessageReceivedHandler interface { OnProcessMessageReceived( self *CRenderProcessHandlerT, browser *CBrowserT, source_process CProcessIdT, message *CProcessMessageT, ) bool }
/ Called when a new message is received from a different process. Return true (1) if the message was handled or false (0) otherwise. Do not keep a reference to or attempt to access the message outside of this callback. /
type CRequestCallbackT ¶ added in v0.1.5
type CRequestCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_request_callback_t
func (*CRequestCallbackT) Cancel ¶ added in v0.1.5
func (self *CRequestCallbackT) Cancel()
/ Cancel the url request. /
func (*CRequestCallbackT) Cont ¶ added in v0.1.5
func (self *CRequestCallbackT) Cont( allow int, )
/ Continue the url request. If |allow| is true (1) the request will be continued. Otherwise, the request will be canceled. /
func (*CRequestCallbackT) HasOneRef ¶ added in v0.1.5
func (request_callback *CRequestCallbackT) HasOneRef() bool
type CRequestCallbackTAccessor ¶ added in v0.1.5
type CRequestCallbackTAccessor interface { GetCRequestCallbackT() *CRequestCallbackT SetCRequestCallbackT(*CRequestCallbackT) }
type CRequestContextHandlerT ¶ added in v0.1.5
type CRequestContextHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_request_context_handler_t
func AllocCRequestContextHandlerT ¶ added in v0.1.5
func AllocCRequestContextHandlerT() *CRequestContextHandlerT
AllocCRequestContextHandlerT allocates CRequestContextHandlerT and construct it
func (*CRequestContextHandlerT) AssocCookieManagerT ¶ added in v0.1.5
func (request_context_handler *CRequestContextHandlerT) AssocCookieManagerT(handler *CCookieManagerT)
func (*CRequestContextHandlerT) Bind ¶ added in v0.1.5
func (request_context_handler *CRequestContextHandlerT) Bind(a interface{}) *CRequestContextHandlerT
func (*CRequestContextHandlerT) HasOneRef ¶ added in v0.1.5
func (request_context_handler *CRequestContextHandlerT) HasOneRef() bool
type CRequestContextHandlerTAccessor ¶ added in v0.1.5
type CRequestContextHandlerTAccessor interface { GetCRequestContextHandlerT() *CRequestContextHandlerT SetCRequestContextHandlerT(*CRequestContextHandlerT) }
type CRequestContextSettingsT ¶ added in v0.1.5
type CRequestContextSettingsT C.cef_request_context_settings_t
/ Request context initialization settings. Specify NULL or 0 to get the recommended default values. /
type CRequestContextT ¶ added in v0.1.5
type CRequestContextT struct {
// contains filtered or unexported fields
}
Go type for cef_request_context_t
func CreateContextShared ¶ added in v0.1.5
func CreateContextShared( other *CRequestContextT, handler *CRequestContextHandlerT, ) *CRequestContextT
/ Creates a new context object that shares storage with |other| and uses an optional |handler|. /
func RequestContextCreateContext ¶ added in v0.1.5
func RequestContextCreateContext( settings *CRequestContextSettingsT, handler *CRequestContextHandlerT, ) *CRequestContextT
/ Creates a new context object with the specified |settings| and optional |handler|. /
func RequestContextGetGlobalContext ¶ added in v0.1.5
func RequestContextGetGlobalContext() *CRequestContextT
/ Returns the global context object. /
func (*CRequestContextT) CanSetPreference ¶ added in v0.1.5
func (self *CRequestContextT) CanSetPreference( name string, ) bool
/ Returns true (1) if the preference with the specified |name| can be modified using SetPreference. As one example preferences set via the command-line usually cannot be modified. This function must be called on the browser process UI thread. /
func (*CRequestContextT) ClearCertificateExceptions ¶ added in v0.1.5
func (self *CRequestContextT) ClearCertificateExceptions( callback *CCompletionCallbackT, )
/ Clears all certificate exceptions that were added as part of handling cef_request_tHandler::on_certificate_error(). If you call this it is recommended that you also call close_all_connections() or you risk not being prompted again for server certificates if you reconnect quickly. If |callback| is non-NULL it will be executed on the UI thread after completion. /
func (*CRequestContextT) ClearSchemeHandlerFactories ¶ added in v0.1.5
func (self *CRequestContextT) ClearSchemeHandlerFactories() bool
/ Clear all registered scheme handler factories. Returns false (0) on error. This function may be called on any thread in the browser process. /
func (*CRequestContextT) CloseAllConnections ¶ added in v0.1.5
func (self *CRequestContextT) CloseAllConnections( callback *CCompletionCallbackT, )
/ Clears all active and idle connections that Chromium currently has. This is only recommended if you have released all other CEF objects but don't yet want to call Cefshutdown(). If |callback| is non-NULL it will be executed on the UI thread after completion. /
func (*CRequestContextT) DidLoadExtension ¶ added in v0.1.5
func (self *CRequestContextT) DidLoadExtension( extension_id string, ) bool
/ Returns true (1) if this context was used to load the extension identified by |extension_id|. Other contexts sharing the same storage will also have access to the extension (see HasExtension). This function must be called on the browser process UI thread. /
func (*CRequestContextT) GetAllPreferences ¶ added in v0.1.5
func (self *CRequestContextT) GetAllPreferences( include_defaults int, ) *CDictionaryValueT
/ Returns all preferences as a dictionary. If |include_defaults| is true (1) then preferences currently at their default value will be included. The returned object contains a copy of the underlying preference values and modifications to the returned object will not modify the underlying preference values. This function must be called on the browser process UI thread. /
func (*CRequestContextT) GetCachePath ¶ added in v0.1.5
func (self *CRequestContextT) GetCachePath() string
/ Returns the cache path for this object. If NULL an "incognito mode" in- memory cache is being used. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CRequestContextT) GetDefaultCookieManager ¶ added in v0.1.5
func (self *CRequestContextT) GetDefaultCookieManager( callback *CCompletionCallbackT, ) *CCookieManagerT
/ Returns the default cookie manager for this object. This will be the global cookie manager if this object is the global request context. Otherwise, this will be the default cookie manager used when this request context does not receive a value via cef_request_tContextHandler::get_cookie_manager(). If |callback| is non-NULL it will be executed asnychronously on the IO thread after the manager's storage has been initialized. /
func (*CRequestContextT) GetExtension ¶ added in v0.1.5
func (self *CRequestContextT) GetExtension( extension_id string, ) *CExtensionT
/ Returns the extension matching |extension_id| or NULL if no matching extension is accessible in this context (see HasExtension). This function must be called on the browser process UI thread. /
func (*CRequestContextT) GetExtensions ¶ added in v0.1.5
func (self *CRequestContextT) GetExtensions( extension_ids CStringListT, ) bool
/ Retrieve the list of all extensions that this context has access to (see HasExtension). |extension_ids| will be populated with the list of extension ID values. Returns true (1) on success. This function must be called on the browser process UI thread. /
func (*CRequestContextT) GetHandler ¶ added in v0.1.5
func (self *CRequestContextT) GetHandler() *CRequestContextHandlerT
/ Returns the handler for this context if any. /
func (*CRequestContextT) GetPreference ¶ added in v0.1.5
func (self *CRequestContextT) GetPreference( name string, ) *CValueT
/ Returns the value for the preference with the specified |name|. Returns NULL if the preference does not exist. The returned object contains a copy of the underlying preference value and modifications to the returned object will not modify the underlying preference value. This function must be called on the browser process UI thread. /
func (*CRequestContextT) HasExtension ¶ added in v0.1.5
func (self *CRequestContextT) HasExtension( extension_id string, ) bool
/ Returns true (1) if this context has access to the extension identified by |extension_id|. This may not be the context that was used to load the extension (see DidLoadExtension). This function must be called on the browser process UI thread. /
func (*CRequestContextT) HasOneRef ¶ added in v0.1.5
func (request_context *CRequestContextT) HasOneRef() bool
func (*CRequestContextT) HasPreference ¶ added in v0.1.5
func (self *CRequestContextT) HasPreference( name string, ) bool
/ Returns true (1) if a preference with the specified |name| exists. This function must be called on the browser process UI thread. /
func (*CRequestContextT) IsGlobal ¶ added in v0.1.5
func (self *CRequestContextT) IsGlobal() bool
/ Returns true (1) if this object is the global context. The global context is used by default when creating a browser or URL request with a NULL context argument. /
func (*CRequestContextT) IsSame ¶ added in v0.1.5
func (self *CRequestContextT) IsSame( other *CRequestContextT, ) bool
/ Returns true (1) if this object is pointing to the same context as |that| object. /
func (*CRequestContextT) IsSharingWith ¶ added in v0.1.5
func (self *CRequestContextT) IsSharingWith( other *CRequestContextT, ) bool
/ Returns true (1) if this object is sharing the same storage as |that| object. /
func (*CRequestContextT) LoadExtension ¶ added in v0.1.5
func (self *CRequestContextT) LoadExtension( root_directory string, manifest *CDictionaryValueT, handler *CExtensionHandlerT, )
/ Load an extension.
If extension resources will be read from disk using the default load implementation then |root_directory| should be the absolute path to the extension resources directory and |manifest| should be NULL. If extension resources will be provided by the client (e.g. via cef_request_tHandler and/or cef_extension_tHandler) then |root_directory| should be a path component unique to the extension (if not absolute this will be internally prefixed with the PK_DIR_RESOURCES path) and |manifest| should contain the contents that would otherwise be read from the "manifest.json" file on disk.
The loaded extension will be accessible in all contexts sharing the same storage (HasExtension returns true (1)). However, only the context on which this function was called is considered the loader (DidLoadExtension returns true (1)) and only the loader will receive cef_request_tContextHandler callbacks for the extension.
cef_extension_tHandler::OnExtensionLoaded will be called on load success or cef_extension_tHandler::OnExtensionLoadFailed will be called on load failure.
If the extension specifies a background script via the "background" manifest key then cef_extension_tHandler::OnBeforeBackgroundBrowser will be called to create the background browser. See that function for additional information about background scripts.
For visible extension views the client application should evaluate the manifest to determine the correct extension URL to load and then pass that URL to the cef_browser_host_t::CreateBrowser* function after the extension has loaded. For example, the client can look for the "browser_action" manifest key as documented at https://developer.chrome.com/extensions/browserAction. Extension URLs take the form "chrome-extension://<extension_id>/<path>".
Browsers that host extensions differ from normal browsers as follows:
- Can access chrome.* JavaScript APIs if allowed by the manifest. Visit chrome://extensions-support for the list of extension APIs currently supported by CEF.
- Main frame navigation to non-extension content is blocked.
- Pinch-zooming is disabled.
- CefBrowserHost::GetExtension returns the hosted extension.
- CefBrowserHost::IsBackgroundHost returns true for background hosts.
See https://developer.chrome.com/extensions for extension implementation and usage documentation. /
func (*CRequestContextT) PurgePluginListCache ¶ added in v0.1.5
func (self *CRequestContextT) PurgePluginListCache( reload_pages int, )
/ Tells all renderer processes associated with this context to throw away their plugin list cache. If |reload_pages| is true (1) they will also reload all pages with plugins. cef_request_tContextHandler::OnBeforePluginLoad may be called to rebuild the plugin list cache. /
func (*CRequestContextT) RegisterSchemeHandlerFactory ¶ added in v0.1.5
func (self *CRequestContextT) RegisterSchemeHandlerFactory( scheme_name string, domain_name string, factory *CSchemeHandlerFactoryT, ) bool
/ Register a scheme handler factory for the specified |scheme_name| and optional |domain_name|. An NULL |domain_name| value for a standard scheme will cause the factory to match all domain names. The |domain_name| value will be ignored for non-standard schemes. If |scheme_name| is a built-in scheme and no handler is returned by |factory| then the built-in scheme handler factory will be called. If |scheme_name| is a custom scheme then you must also implement the cef_app_t::on_register_custom_schemes() function in all processes. This function may be called multiple times to change or remove the factory that matches the specified |scheme_name| and optional |domain_name|. Returns false (0) if an error occurs. This function may be called on any thread in the browser process. /
func (*CRequestContextT) ResolveHost ¶ added in v0.1.5
func (self *CRequestContextT) ResolveHost( origin string, callback *CResolveCallbackT, )
/ Attempts to resolve |origin| to a list of associated IP addresses. |callback| will be executed on the UI thread after completion. /
func (*CRequestContextT) SetPreference ¶ added in v0.1.5
func (self *CRequestContextT) SetPreference( name string, value *CValueT, error *string, ) bool
/ Set the |value| associated with preference |name|. Returns true (1) if the value is set successfully and false (0) otherwise. If |value| is NULL the preference will be restored to its default value. If setting the preference fails then |error| will be populated with a detailed description of the problem. This function must be called on the browser process UI thread. /
type CRequestContextTAccessor ¶ added in v0.1.5
type CRequestContextTAccessor interface { GetCRequestContextT() *CRequestContextT SetCRequestContextT(*CRequestContextT) }
type CRequestHandlerT ¶
type CRequestHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_request_handler_t
func AllocCRequestHandlerT ¶ added in v0.1.5
func AllocCRequestHandlerT() *CRequestHandlerT
AllocCRequestHandlerT allocates CRequestHandlerT and construct it
func (*CRequestHandlerT) Bind ¶ added in v0.1.5
func (request_handler *CRequestHandlerT) Bind(a interface{}) *CRequestHandlerT
func (*CRequestHandlerT) HasOneRef ¶ added in v0.1.5
func (request_handler *CRequestHandlerT) HasOneRef() bool
type CRequestHandlerTAccessor ¶ added in v0.1.5
type CRequestHandlerTAccessor interface { GetCRequestHandlerT() *CRequestHandlerT SetCRequestHandlerT(*CRequestHandlerT) }
type CRequestHandlerTCanSetCookieHandler ¶ added in v0.1.5
type CRequestHandlerTCanSetCookieHandler interface { CanSetCookie( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, cookie *CCookieT, ) bool }
/ Called on the IO thread when receiving a network request with a "Set- Cookie" response header value represented by |cookie|. Return true (1) to allow the cookie to be stored or false (0) to block the cookie. The |request| object should not be modified in this callback. /
type CRequestT ¶
type CRequestT struct {
// contains filtered or unexported fields
}
Go type for cef_request_t
func RequestCreate ¶ added in v0.1.5
func RequestCreate() *CRequestT
/ Create a new cef_request_t object. /
func (*CRequestT) GetFirstPartyForCookies ¶ added in v0.1.5
/ Get the URL to the first party for cookies used in combination with cef_urlrequest_t. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CRequestT) GetFlags ¶ added in v0.1.5
/ Get the flags used in combination with cef_urlrequest_t. See cef_urlrequest_flags_t for supported values. /
func (*CRequestT) GetHeaderMap ¶ added in v0.1.5
func (self *CRequestT) GetHeaderMap( headerMap CStringMultimapT, )
/ Get the header values. Will not include the Referer value if any. /
func (*CRequestT) GetIdentifier ¶ added in v0.1.5
/ Returns the globally unique identifier for this request or 0 if not specified. Can be used by cef_request_tHandler implementations in the browser process to track a single request across multiple callbacks. /
func (*CRequestT) GetMethod ¶ added in v0.1.5
/ Get the request function type. The value will default to POST if post data is provided and GET otherwise. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CRequestT) GetPostData ¶ added in v0.1.5
func (self *CRequestT) GetPostData() *CPostDataT
/ Get the post data. /
func (*CRequestT) GetReferrerPolicy ¶ added in v0.1.5
func (self *CRequestT) GetReferrerPolicy() CReferrerPolicyT
/ Get the referrer policy. /
func (*CRequestT) GetReferrerUrl ¶ added in v0.1.5
/ Get the referrer URL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CRequestT) GetResourceType ¶ added in v0.1.5
func (self *CRequestT) GetResourceType() CResourceTypeT
/ Get the resource type for this request. Only available in the browser process. /
func (*CRequestT) GetTransitionType ¶ added in v0.1.5
func (self *CRequestT) GetTransitionType() CTransitionTypeT
/ Get the transition type for this request. Only available in the browser process and only applies to requests that represent a main frame or sub- frame navigation. /
func (*CRequestT) GetUrl ¶
/ Get the fully qualified URL. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CRequestT) IsReadOnly ¶ added in v0.1.5
/ Returns true (1) if this object is read-only. /
func (*CRequestT) Set ¶ added in v0.1.5
func (self *CRequestT) Set( url string, method string, postData *CPostDataT, headerMap CStringMultimapT, )
/ Set all values at one time. /
func (*CRequestT) SetFirstPartyForCookies ¶ added in v0.1.5
/ Set the URL to the first party for cookies used in combination with cef_urlrequest_t. /
func (*CRequestT) SetFlags ¶ added in v0.1.5
/ Set the flags used in combination with cef_urlrequest_t. See cef_urlrequest_flags_t for supported values. /
func (*CRequestT) SetHeaderMap ¶ added in v0.1.5
func (self *CRequestT) SetHeaderMap( headerMap CStringMultimapT, )
/ Set the header values. If a Referer value exists in the header map it will be removed and ignored. /
func (*CRequestT) SetPostData ¶ added in v0.1.5
func (self *CRequestT) SetPostData( postData *CPostDataT, )
/ Set the post data. /
func (*CRequestT) SetReferrer ¶ added in v0.1.5
func (self *CRequestT) SetReferrer( referrer_url string, policy CReferrerPolicyT, )
/ Set the referrer URL and policy. If non-NULL the referrer URL must be fully qualified with an HTTP or HTTPS scheme component. Any username, password or ref component will be removed. /
type CRequestTAccessor ¶
type CResolveCallbackT ¶ added in v0.1.5
type CResolveCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_resolve_callback_t
func (*CResolveCallbackT) HasOneRef ¶ added in v0.1.5
func (resolve_callback *CResolveCallbackT) HasOneRef() bool
func (*CResolveCallbackT) OnResolveCompleted ¶ added in v0.1.5
func (self *CResolveCallbackT) OnResolveCompleted( result CErrorcodeT, resolved_ips CStringListT, )
/ Called on the UI thread after the ResolveHost request has completed. |result| will be the result code. |resolved_ips| will be the list of resolved IP addresses or NULL if the resolution failed. /
type CResolveCallbackTAccessor ¶ added in v0.1.5
type CResolveCallbackTAccessor interface { GetCResolveCallbackT() *CResolveCallbackT SetCResolveCallbackT(*CResolveCallbackT) }
type CResourceBundleHandlerT ¶ added in v0.1.5
type CResourceBundleHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_resource_bundle_handler_t
func AllocCResourceBundleHandlerT ¶ added in v0.1.5
func AllocCResourceBundleHandlerT() *CResourceBundleHandlerT
AllocCResourceBundleHandlerT allocates CResourceBundleHandlerT and construct it
func (*CResourceBundleHandlerT) Bind ¶ added in v0.1.5
func (resource_bundle_handler *CResourceBundleHandlerT) Bind(a interface{}) *CResourceBundleHandlerT
func (*CResourceBundleHandlerT) HasOneRef ¶ added in v0.1.5
func (resource_bundle_handler *CResourceBundleHandlerT) HasOneRef() bool
type CResourceBundleHandlerTAccessor ¶ added in v0.1.5
type CResourceBundleHandlerTAccessor interface { GetCResourceBundleHandlerT() *CResourceBundleHandlerT SetCResourceBundleHandlerT(*CResourceBundleHandlerT) }
type CResourceHandlerT ¶
type CResourceHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_resource_handler_t
func AllocCResourceHandlerT ¶ added in v0.1.5
func AllocCResourceHandlerT() *CResourceHandlerT
AllocCResourceHandlerT allocates CResourceHandlerT and construct it
func (*CResourceHandlerT) Bind ¶
func (resource_handler *CResourceHandlerT) Bind(a interface{}) *CResourceHandlerT
func (*CResourceHandlerT) HasOneRef ¶ added in v0.1.5
func (resource_handler *CResourceHandlerT) HasOneRef() bool
type CResourceHandlerTAccessor ¶
type CResourceHandlerTAccessor interface { GetCResourceHandlerT() *CResourceHandlerT SetCResourceHandlerT(*CResourceHandlerT) }
type CResourceHandlerTCanSetCookieHandler ¶ added in v0.1.5
type CResourceHandlerTCanSetCookieHandler interface { CanSetCookie( self *CResourceHandlerT, cookie *CCookieT, ) bool }
/ Return true (1) if the specified cookie returned with the response can be set or false (0) otherwise. /
type CResourceTypeT ¶ added in v0.1.5
type CResourceTypeT C.cef_resource_type_t
/ Resource type for a request. /
const ( /// // Top level page. /// RtMainFrame CResourceTypeT = C.RT_MAIN_FRAME /// // Frame or iframe. /// RtSubFrame CResourceTypeT = C.RT_SUB_FRAME /// // CSS stylesheet. /// RtStylesheet CResourceTypeT = C.RT_STYLESHEET /// // External script. /// RtScript CResourceTypeT = C.RT_SCRIPT /// // Image (jpg/gif/png/etc). /// RtImage CResourceTypeT = C.RT_IMAGE /// // Font. /// RtFontResource CResourceTypeT = C.RT_FONT_RESOURCE /// // Some other subresource. This is the default type if the actual type is // unknown. /// RtSubResource CResourceTypeT = C.RT_SUB_RESOURCE /// // Object (or embed) tag for a plugin, or a resource that a plugin requested. /// RtObject CResourceTypeT = C.RT_OBJECT /// // Media resource. /// RtMedia CResourceTypeT = C.RT_MEDIA /// // Main resource of a dedicated worker. /// RtWorker CResourceTypeT = C.RT_WORKER // Main resource of a shared worker. /// RtSharedWorker CResourceTypeT = C.RT_SHARED_WORKER /// // Explicitly requested prefetch. /// RtPrefetch CResourceTypeT = C.RT_PREFETCH /// // Favicon. /// RtFavicon CResourceTypeT = C.RT_FAVICON /// // XMLHttpRequest. /// RtXhr CResourceTypeT = C.RT_XHR /// // A request for a <ping> /// RtPing CResourceTypeT = C.RT_PING /// // Main resource of a service worker. /// RtServiceWorker CResourceTypeT = C.RT_SERVICE_WORKER /// // A report of Content Security Policy violations. /// RtCspReport CResourceTypeT = C.RT_CSP_REPORT /// // A resource that a plugin requested. /// RtPluginResource CResourceTypeT = C.RT_PLUGIN_RESOURCE )
type CResponseFilterStatusT ¶ added in v0.1.5
type CResponseFilterStatusT C.cef_response_filter_status_t
/ Return values for CefResponseFilter::Filter(). /
const ( /// // Some or all of the pre-filter data was read successfully but more data is // needed in order to continue filtering (filtered output is pending). /// ResponseFilterNeedMoreData CResponseFilterStatusT = C.RESPONSE_FILTER_NEED_MORE_DATA /// // Some or all of the pre-filter data was read successfully and all available // filtered output has been written. /// ResponseFilterDone CResponseFilterStatusT = C.RESPONSE_FILTER_DONE /// // An error occurred during filtering. /// ResponseFilterError CResponseFilterStatusT = C.RESPONSE_FILTER_ERROR )
type CResponseFilterT ¶ added in v0.1.5
type CResponseFilterT struct {
// contains filtered or unexported fields
}
Go type for cef_response_filter_t
func (*CResponseFilterT) Filter ¶ added in v0.1.5
func (self *CResponseFilterT) Filter( data_in []byte, data_in_read *int64, data_out []byte, data_out_written *int64, ) CResponseFilterStatusT
/ Called to filter a chunk of data. Expected usage is as follows:
A. Read input data from |data_in| and set |data_in_read| to the number of bytes that were read up to a maximum of |data_in_size|. |data_in| will be NULL if |data_in_size| is zero. B. Write filtered output data to |data_out| and set |data_out_written| to the number of bytes that were written up to a maximum of |data_out_size|. If no output data was written then all data must be read from |data_in| (user must set |data_in_read| = |data_in_size|). C. Return RESPONSE_FILTER_DONE if all output data was written or RESPONSE_FILTER_NEED_MORE_DATA if output data is still pending.
This function will be called repeatedly until the input buffer has been fully read (user sets |data_in_read| = |data_in_size|) and there is no more input data to filter (the resource response is complete). This function may then be called an additional time with an NULL input buffer if the user filled the output buffer (set |data_out_written| = |data_out_size|) and returned RESPONSE_FILTER_NEED_MORE_DATA to indicate that output data is still pending.
Calls to this function will stop when one of the following conditions is met:
A. There is no more input data to filter (the resource response is complete) and the user sets |data_out_written| = 0 or returns RESPONSE_FILTER_DONE to indicate that all data has been written, or; B. The user returns RESPONSE_FILTER_ERROR to indicate an error.
Do not keep a reference to the buffers passed to this function. /
func (*CResponseFilterT) HasOneRef ¶ added in v0.1.5
func (response_filter *CResponseFilterT) HasOneRef() bool
func (*CResponseFilterT) InitFilter ¶ added in v0.1.5
func (self *CResponseFilterT) InitFilter() bool
/ Initialize the response filter. Will only be called a single time. The filter will not be installed if this function returns false (0). /
type CResponseFilterTAccessor ¶ added in v0.1.5
type CResponseFilterTAccessor interface { GetCResponseFilterT() *CResponseFilterT SetCResponseFilterT(*CResponseFilterT) }
type CResponseT ¶
type CResponseT struct {
// contains filtered or unexported fields
}
Go type for cef_response_t
func ResponseCreate ¶ added in v0.1.5
func ResponseCreate() *CResponseT
/ Create a new cef_response_t object. /
func (*CResponseT) DumpHeaders ¶
func (self *CResponseT) DumpHeaders()
func (*CResponseT) GetError ¶ added in v0.1.5
func (self *CResponseT) GetError() CErrorcodeT
/ Get the response error code. Returns ERR_NONE if there was no error. /
func (*CResponseT) GetHeader ¶ added in v0.1.5
func (self *CResponseT) GetHeader( name string, ) string
/ Get the value for the specified response header field. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CResponseT) GetHeaderMap ¶ added in v0.1.5
func (self *CResponseT) GetHeaderMap( headerMap CStringMultimapT, )
/ Get all response header fields. /
func (*CResponseT) GetMimeType ¶ added in v0.1.5
func (self *CResponseT) GetMimeType() string
/ Get the response mime type. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CResponseT) GetStatus ¶ added in v0.1.5
func (self *CResponseT) GetStatus() bool
/ Get the response status code. /
func (*CResponseT) GetStatusText ¶ added in v0.1.5
func (self *CResponseT) GetStatusText() string
/ Get the response status text. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CResponseT) GetUrl ¶ added in v0.1.5
func (self *CResponseT) GetUrl() string
/ Get the resolved URL after redirects or changed as a result of HSTS. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CResponseT) HasOneRef ¶ added in v0.1.5
func (response *CResponseT) HasOneRef() bool
func (*CResponseT) IsReadOnly ¶ added in v0.1.5
func (self *CResponseT) IsReadOnly() bool
/ Returns true (1) if this object is read-only. /
func (*CResponseT) SetError ¶
func (self *CResponseT) SetError( error CErrorcodeT, )
/ Set the response error code. This can be used by custom scheme handlers to return errors during initial request processing. /
func (*CResponseT) SetHeaderMap ¶
func (self *CResponseT) SetHeaderMap( headerMap CStringMultimapT, )
/ Set all response header fields. /
func (*CResponseT) SetMimeType ¶
func (self *CResponseT) SetMimeType( mimeType string, )
/ Set the response mime type. /
func (*CResponseT) SetStatus ¶
func (self *CResponseT) SetStatus( status int, )
/ Set the response status code. /
func (*CResponseT) SetStatusText ¶
func (self *CResponseT) SetStatusText( statusText string, )
/ Set the response status text. /
func (*CResponseT) SetUrl ¶ added in v0.1.5
func (self *CResponseT) SetUrl( url string, )
/ Set the resolved URL after redirects or changed as a result of HSTS. /
type CResponseTAccessor ¶
type CResponseTAccessor interface { GetCResponseT() *CResponseT SetCResponseT(*CResponseT) }
type CReturnValueT ¶ added in v0.1.5
type CReturnValueT C.cef_return_value_t
/ Return value types. /
const ( /// // Cancel immediately. /// RvCancel CReturnValueT = C.RV_CANCEL /// // Continue immediately. /// RvContinue CReturnValueT = C.RV_CONTINUE /// // Continue asynchronously (usually via a callback). /// RvContinueAsync CReturnValueT = C.RV_CONTINUE_ASYNC )
type CRunContextMenuCallbackT ¶ added in v0.1.5
type CRunContextMenuCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_run_context_menu_callback_t
func (*CRunContextMenuCallbackT) Cancel ¶ added in v0.1.5
func (self *CRunContextMenuCallbackT) Cancel()
/ Cancel context menu display. /
func (*CRunContextMenuCallbackT) Cont ¶ added in v0.1.5
func (self *CRunContextMenuCallbackT) Cont( command_id int, event_flags CEventFlagsT, )
/ Complete context menu display by selecting the specified |command_id| and |event_flags|. /
func (*CRunContextMenuCallbackT) HasOneRef ¶ added in v0.1.5
func (run_context_menu_callback *CRunContextMenuCallbackT) HasOneRef() bool
type CRunContextMenuCallbackTAccessor ¶ added in v0.1.5
type CRunContextMenuCallbackTAccessor interface { GetCRunContextMenuCallbackT() *CRunContextMenuCallbackT SetCRunContextMenuCallbackT(*CRunContextMenuCallbackT) }
type CRunFileDialogCallbackT ¶
type CRunFileDialogCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_run_file_dialog_callback_t
func AllocCRunFileDialogCallbackT ¶
func AllocCRunFileDialogCallbackT() *CRunFileDialogCallbackT
AllocCRunFileDialogCallbackT allocates CRunFileDialogCallbackT and construct it
func (*CRunFileDialogCallbackT) Bind ¶
func (run_file_dialog_callback *CRunFileDialogCallbackT) Bind(a interface{}) *CRunFileDialogCallbackT
func (*CRunFileDialogCallbackT) HasOneRef ¶ added in v0.1.5
func (run_file_dialog_callback *CRunFileDialogCallbackT) HasOneRef() bool
type CRunFileDialogCallbackTAccessor ¶
type CRunFileDialogCallbackTAccessor interface { GetCRunFileDialogCallbackT() *CRunFileDialogCallbackT SetCRunFileDialogCallbackT(*CRunFileDialogCallbackT) }
type CScaleFactorT ¶ added in v0.1.5
type CScaleFactorT C.cef_scale_factor_t
/ Supported UI scale factors for the platform. SCALE_FACTOR_NONE is used for density independent resources such as string, html/js files or an image that can be used for any scale factors (such as wallpapers). /
const ( ScaleFactorNone CScaleFactorT = C.SCALE_FACTOR_NONE ScaleFactor100p CScaleFactorT = C.SCALE_FACTOR_100P ScaleFactor125p CScaleFactorT = C.SCALE_FACTOR_125P ScaleFactor133p CScaleFactorT = C.SCALE_FACTOR_133P ScaleFactor140p CScaleFactorT = C.SCALE_FACTOR_140P ScaleFactor150p CScaleFactorT = C.SCALE_FACTOR_150P ScaleFactor180p CScaleFactorT = C.SCALE_FACTOR_180P ScaleFactor200p CScaleFactorT = C.SCALE_FACTOR_200P ScaleFactor250p CScaleFactorT = C.SCALE_FACTOR_250P ScaleFactor300p CScaleFactorT = C.SCALE_FACTOR_300P )
type CSchemeHandlerFactoryT ¶
type CSchemeHandlerFactoryT struct {
// contains filtered or unexported fields
}
Go type for cef_scheme_handler_factory_t
func AllocCSchemeHandlerFactoryT ¶
func AllocCSchemeHandlerFactoryT() *CSchemeHandlerFactoryT
AllocCSchemeHandlerFactoryT allocates CSchemeHandlerFactoryT and construct it
func (*CSchemeHandlerFactoryT) Bind ¶
func (scheme_handler_factory *CSchemeHandlerFactoryT) Bind(a interface{}) *CSchemeHandlerFactoryT
func (*CSchemeHandlerFactoryT) HasOneRef ¶ added in v0.1.5
func (scheme_handler_factory *CSchemeHandlerFactoryT) HasOneRef() bool
type CSchemeHandlerFactoryTAccessor ¶
type CSchemeHandlerFactoryTAccessor interface { GetCSchemeHandlerFactoryT() *CSchemeHandlerFactoryT SetCSchemeHandlerFactoryT(*CSchemeHandlerFactoryT) }
type CSchemeOptionsT ¶
type CSchemeOptionsT C.cef_scheme_options_t
Configuration options for registering a custom scheme. These values are used when calling AddCustomScheme.
const ( CefSchemeOptionNone CSchemeOptionsT = C.CEF_SCHEME_OPTION_NONE /// // If CEF_SCHEME_OPTION_STANDARD is set the scheme will be treated as a // standard scheme. Standard schemes are subject to URL canonicalization and // parsing rules as defined in the Common Internet Scheme Syntax RFC 1738 // Section 3.1 available at http://www.ietf.org/rfc/rfc1738.txt // // In particular, the syntax for standard scheme URLs must be of the form: // <pre> // [scheme]://[username]:[password]@[host]:[port]/[url-path] // </pre> Standard scheme URLs must have a host component that is a fully // qualified domain name as defined in Section 3.5 of RFC 1034 [13] and // Section 2.1 of RFC 1123. These URLs will be canonicalized to // "scheme://host/path" in the simplest case and // "scheme://username:password@host:port/path" in the most explicit case. For // example, "scheme:host/path" and "scheme:///host/path" will both be // canonicalized to "scheme://host/path". The origin of a standard scheme URL // is the combination of scheme, host and port (i.e., "scheme://host:port" in // the most explicit case). // // For non-standard scheme URLs only the "scheme:" component is parsed and // canonicalized. The remainder of the URL will be passed to the handler as- // is. For example, "scheme:///some%20text" will remain the same. Non-standard // scheme URLs cannot be used as a target for form submission. /// CefSchemeOptionStandard CSchemeOptionsT = C.CEF_SCHEME_OPTION_STANDARD /// // If CEF_SCHEME_OPTION_LOCAL is set the scheme will be treated with the same // security rules as those applied to "file" URLs. Normal pages cannot link to // or access local URLs. Also, by default, local URLs can only perform // XMLHttpRequest calls to the same URL (origin + path) that originated the // request. To allow XMLHttpRequest calls from a local URL to other URLs with // the same origin set the CefSettings.file_access_from_file_urls_allowed // value to true (1). To allow XMLHttpRequest calls from a local URL to all // origins set the CefSettings.universal_access_from_file_urls_allowed value // to true (1). /// CefSchemeOptionLocal CSchemeOptionsT = C.CEF_SCHEME_OPTION_LOCAL /// // If CEF_SCHEME_OPTION_DISPLAY_ISOLATED is set the scheme can only be // displayed from other content hosted with the same scheme. For example, // pages in other origins cannot create iframes or hyperlinks to URLs with the // scheme. For schemes that must be accessible from other schemes don't set // this, set CEF_SCHEME_OPTION_CORS_ENABLED, and use CORS // "Access-Control-Allow-Origin" headers to further restrict access. /// CefSchemeOptionDisplayIsolated CSchemeOptionsT = C.CEF_SCHEME_OPTION_DISPLAY_ISOLATED /// // If CEF_SCHEME_OPTION_SECURE is set the scheme will be treated with the same // security rules as those applied to "https" URLs. For example, loading this // scheme from other secure schemes will not trigger mixed content warnings. /// CefSchemeOptionSecure CSchemeOptionsT = C.CEF_SCHEME_OPTION_SECURE /// // If CEF_SCHEME_OPTION_CORS_ENABLED is set the scheme can be sent CORS // requests. This value should be set in most cases where // CEF_SCHEME_OPTION_STANDARD is set. /// CefSchemeOptionCorsEnabled CSchemeOptionsT = C.CEF_SCHEME_OPTION_CORS_ENABLED /// // If CEF_SCHEME_OPTION_CSP_BYPASSING is set the scheme can bypass Content- // Security-Policy (CSP) checks. This value should not be set in most cases // where CEF_SCHEME_OPTION_STANDARD is set. /// CefSchemeOptionCspBypassing CSchemeOptionsT = C.CEF_SCHEME_OPTION_CSP_BYPASSING /// // If CEF_SCHEME_OPTION_FETCH_ENABLED is set the scheme can perform Fetch API // requests. /// CefSchemeOptionFetchEnabled CSchemeOptionsT = C.CEF_SCHEME_OPTION_FETCH_ENABLED )
type CSchemeRegistrarT ¶
type CSchemeRegistrarT struct {
// contains filtered or unexported fields
}
Go type for cef_scheme_registrar_t
func (*CSchemeRegistrarT) AddCustomScheme ¶
func (self *CSchemeRegistrarT) AddCustomScheme( scheme_name string, options int, ) bool
/ Register a custom scheme. This function should not be called for the built- in HTTP, HTTPS, FILE, FTP, ABOUT and DATA schemes.
See cef_scheme_options_t for possible values for |options|.
This function may be called on any thread. It should only be called once per unique |scheme_name| value. If |scheme_name| is already registered or if an error occurs this function will return false (0). /
type CSchemeRegistrarTAccessor ¶ added in v0.1.5
type CSchemeRegistrarTAccessor interface { GetCSchemeRegistrarT() *CSchemeRegistrarT SetCSchemeRegistrarT(*CSchemeRegistrarT) }
type CScreenInfoT ¶ added in v0.1.5
type CScreenInfoT C.cef_screen_info_t
/ Screen information used when window rendering is disabled. This structure is passed as a parameter to CefRenderHandler::GetScreenInfo and should be filled in by the client. /
type CSelectClientCertificateCallbackT ¶ added in v0.1.5
type CSelectClientCertificateCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_select_client_certificate_callback_t
func (*CSelectClientCertificateCallbackT) HasOneRef ¶ added in v0.1.5
func (select_client_certificate_callback *CSelectClientCertificateCallbackT) HasOneRef() bool
func (*CSelectClientCertificateCallbackT) Select ¶ added in v0.1.5
func (self *CSelectClientCertificateCallbackT) Select( cert *CX509certificateT, )
/ Chooses the specified certificate for client certificate authentication. NULL value means that no client certificate should be used. /
type CSelectClientCertificateCallbackTAccessor ¶ added in v0.1.5
type CSelectClientCertificateCallbackTAccessor interface { GetCSelectClientCertificateCallbackT() *CSelectClientCertificateCallbackT SetCSelectClientCertificateCallbackT(*CSelectClientCertificateCallbackT) }
type CSetCookieCallbackT ¶ added in v0.1.5
type CSetCookieCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_set_cookie_callback_t
func (*CSetCookieCallbackT) HasOneRef ¶ added in v0.1.5
func (set_cookie_callback *CSetCookieCallbackT) HasOneRef() bool
func (*CSetCookieCallbackT) OnComplete ¶ added in v0.1.5
func (self *CSetCookieCallbackT) OnComplete( success int, )
/ Method that will be called upon completion. |success| will be true (1) if the cookie was set successfully. /
type CSetCookieCallbackTAccessor ¶ added in v0.1.5
type CSetCookieCallbackTAccessor interface { GetCSetCookieCallbackT() *CSetCookieCallbackT SetCSetCookieCallbackT(*CSetCookieCallbackT) }
type CSettingsT ¶ added in v0.1.5
type CSettingsT C.cef_settings_t
/ Initialization settings. Specify NULL or 0 to get the recommended default values. Many of these and other settings can also configured using command- line switches. /
type CSslContentStatusT ¶ added in v0.1.5
type CSslContentStatusT C.cef_ssl_content_status_t
Supported SSL content status flags. See content/public/common/ssl_status.h for more information.
const ( SslContentNormalContent CSslContentStatusT = C.SSL_CONTENT_NORMAL_CONTENT SslContentDisplayedInsecureContent CSslContentStatusT = C.SSL_CONTENT_DISPLAYED_INSECURE_CONTENT SslContentRanInsecureContent CSslContentStatusT = C.SSL_CONTENT_RAN_INSECURE_CONTENT )
type CSslVersionT ¶ added in v0.1.5
type CSslVersionT C.cef_ssl_version_t
Supported SSL version values. See net/ssl/ssl_connection_status_flags.h for more information.
const ( SslConnectionVersionUnknown CSslVersionT = C.SSL_CONNECTION_VERSION_UNKNOWN SslConnectionVersionSsl2 CSslVersionT = C.SSL_CONNECTION_VERSION_SSL2 SslConnectionVersionSsl3 CSslVersionT = C.SSL_CONNECTION_VERSION_SSL3 SslConnectionVersionTls1 CSslVersionT = C.SSL_CONNECTION_VERSION_TLS1 SslConnectionVersionTls11 CSslVersionT = C.SSL_CONNECTION_VERSION_TLS1_1 SslConnectionVersionTls12 CSslVersionT = C.SSL_CONNECTION_VERSION_TLS1_2 // Reserve 6 for TLS 1.3. SslConnectionVersionQuic CSslVersionT = C.SSL_CONNECTION_VERSION_QUIC )
type CSslinfoT ¶ added in v0.1.5
type CSslinfoT struct {
// contains filtered or unexported fields
}
Go type for cef_sslinfo_t
func (*CSslinfoT) GetCertStatus ¶ added in v0.1.5
func (self *CSslinfoT) GetCertStatus() CCertStatusT
/ Returns a bitmask containing any and all problems verifying the server certificate. /
func (*CSslinfoT) GetX509certificate ¶ added in v0.1.5
func (self *CSslinfoT) GetX509certificate() *CX509certificateT
/ Returns the X.509 certificate. /
type CSslinfoTAccessor ¶ added in v0.1.5
type CSslstatusT ¶ added in v0.1.5
type CSslstatusT struct {
// contains filtered or unexported fields
}
Go type for cef_sslstatus_t
func (*CSslstatusT) GetCertStatus ¶ added in v0.1.5
func (self *CSslstatusT) GetCertStatus() CCertStatusT
/ Returns a bitmask containing any and all problems verifying the server certificate. /
func (*CSslstatusT) GetContentStatus ¶ added in v0.1.5
func (self *CSslstatusT) GetContentStatus() CSslContentStatusT
/ Returns a bitmask containing the page security content status. /
func (*CSslstatusT) GetSslversion ¶ added in v0.1.5
func (self *CSslstatusT) GetSslversion() CSslVersionT
/ Returns the SSL version used for the SSL connection. /
func (*CSslstatusT) GetX509certificate ¶ added in v0.1.5
func (self *CSslstatusT) GetX509certificate() *CX509certificateT
/ Returns the X.509 certificate. /
func (*CSslstatusT) HasOneRef ¶ added in v0.1.5
func (sslstatus *CSslstatusT) HasOneRef() bool
func (*CSslstatusT) IsSecureConnection ¶ added in v0.1.5
func (self *CSslstatusT) IsSecureConnection() bool
/ Returns true (1) if the status is related to a secure SSL/TLS connection. /
type CSslstatusTAccessor ¶ added in v0.1.5
type CSslstatusTAccessor interface { GetCSslstatusT() *CSslstatusT SetCSslstatusT(*CSslstatusT) }
type CStateT ¶ added in v0.1.5
type CStateT C.cef_state_t
/ Represents the state of a setting. /
const ( /// // Use the default state for the setting. /// StateDefault CStateT = C.STATE_DEFAULT /// // Enable or allow the setting. /// StateEnabled CStateT = C.STATE_ENABLED /// // Disable or disallow the setting. /// StateDisabled CStateT = C.STATE_DISABLED )
type CStorageTypeT ¶ added in v0.1.5
type CStorageTypeT C.cef_storage_type_t
/ Storage types. /
const ( StLocalstorage CStorageTypeT = C.ST_LOCALSTORAGE StSessionstorage CStorageTypeT = C.ST_SESSIONSTORAGE )
type CStreamReaderT ¶ added in v0.1.5
type CStreamReaderT struct {
// contains filtered or unexported fields
}
Go type for cef_stream_reader_t
func StreamReaderCreateForData ¶ added in v0.1.5
func StreamReaderCreateForData( data unsafe.Pointer, size int64, ) *CStreamReaderT
/ Create a new cef_stream_reader_t object from data. /
func StreamReaderCreateForFile ¶ added in v0.1.5
func StreamReaderCreateForFile( fileName string, ) *CStreamReaderT
/ Create a new cef_stream_reader_t object from a file. /
func StreamReaderCreateForHandler ¶ added in v0.1.5
func StreamReaderCreateForHandler( handler *CReadHandlerT, ) *CStreamReaderT
/ Create a new cef_stream_reader_t object from a custom handler. /
func (*CStreamReaderT) Eof ¶ added in v0.1.5
func (self *CStreamReaderT) Eof() bool
/ Return non-zero if at end of file. /
func (*CStreamReaderT) HasOneRef ¶ added in v0.1.5
func (stream_reader *CStreamReaderT) HasOneRef() bool
func (*CStreamReaderT) MayBlock ¶ added in v0.1.5
func (self *CStreamReaderT) MayBlock() bool
/ Returns true (1) if this reader performs work like accessing the file system which may block. Used as a hint for determining the thread to access the reader from. /
func (*CStreamReaderT) Seek ¶ added in v0.1.5
func (self *CStreamReaderT) Seek( offset int64, whence int, ) bool
/ Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure. /
func (*CStreamReaderT) Tell ¶ added in v0.1.5
func (self *CStreamReaderT) Tell() int64
/ Return the current offset position. /
type CStreamReaderTAccessor ¶ added in v0.1.5
type CStreamReaderTAccessor interface { GetCStreamReaderT() *CStreamReaderT SetCStreamReaderT(*CStreamReaderT) }
type CStreamWriterT ¶ added in v0.1.5
type CStreamWriterT struct {
// contains filtered or unexported fields
}
Go type for cef_stream_writer_t
func StreamWriterCreateForFile ¶ added in v0.1.5
func StreamWriterCreateForFile( fileName string, ) *CStreamWriterT
/ Create a new cef_stream_writer_t object for a file. /
func StreamWriterCreateForHandler ¶ added in v0.1.5
func StreamWriterCreateForHandler( handler *CWriteHandlerT, ) *CStreamWriterT
/ Create a new cef_stream_writer_t object for a custom handler. /
func (*CStreamWriterT) Flush ¶ added in v0.1.5
func (self *CStreamWriterT) Flush() bool
/ Flush the stream. /
func (*CStreamWriterT) HasOneRef ¶ added in v0.1.5
func (stream_writer *CStreamWriterT) HasOneRef() bool
func (*CStreamWriterT) MayBlock ¶ added in v0.1.5
func (self *CStreamWriterT) MayBlock() bool
/ Returns true (1) if this writer performs work like accessing the file system which may block. Used as a hint for determining the thread to access the writer from. /
func (*CStreamWriterT) Seek ¶ added in v0.1.5
func (self *CStreamWriterT) Seek( offset int64, whence int, ) bool
/ Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Returns zero on success and non-zero on failure. /
func (*CStreamWriterT) Tell ¶ added in v0.1.5
func (self *CStreamWriterT) Tell() int64
/ Return the current offset position. /
type CStreamWriterTAccessor ¶ added in v0.1.5
type CStreamWriterTAccessor interface { GetCStreamWriterT() *CStreamWriterT SetCStreamWriterT(*CStreamWriterT) }
type CStringListT ¶
type CStringListT C.cef_string_list_t
/ CEF string maps are a set of key/value string pairs. /
func StringListCopy ¶
func StringListCopy( list CStringListT, ) CStringListT
/ Creates a copy of an existing string list. /
type CStringMapT ¶ added in v0.1.5
type CStringMapT C.cef_string_map_t
/ CEF string maps are a set of key/value string pairs. /
func StringMapAlloc ¶ added in v0.1.5
func StringMapAlloc() CStringMapT
/ Allocate a new string map. /
type CStringMultimapT ¶ added in v0.1.5
type CStringMultimapT C.cef_string_multimap_t
/ CEF string multimaps are a set of key/value string pairs. More than one value can be assigned to a single key. /
func StringMultimapAlloc ¶ added in v0.1.5
func StringMultimapAlloc() CStringMultimapT
/ Allocate a new string multimap. /
type CStringVisitorT ¶ added in v0.1.5
type CStringVisitorT struct {
// contains filtered or unexported fields
}
Go type for cef_string_visitor_t
func (*CStringVisitorT) HasOneRef ¶ added in v0.1.5
func (string_visitor *CStringVisitorT) HasOneRef() bool
func (*CStringVisitorT) Visit ¶ added in v0.1.5
func (self *CStringVisitorT) Visit( cstring string, )
/ Method that will be executed. /
type CStringVisitorTAccessor ¶ added in v0.1.5
type CStringVisitorTAccessor interface { GetCStringVisitorT() *CStringVisitorT SetCStringVisitorT(*CStringVisitorT) }
type CTaskRunnerT ¶ added in v0.1.5
type CTaskRunnerT struct {
// contains filtered or unexported fields
}
Go type for cef_task_runner_t
func TaskRunnerGetForCurrentThread ¶ added in v0.1.5
func TaskRunnerGetForCurrentThread() *CTaskRunnerT
/ Returns the task runner for the current thread. Only CEF threads will have task runners. An NULL reference will be returned if this function is called on an invalid thread. /
func TaskRunnerGetForThread ¶ added in v0.1.5
func TaskRunnerGetForThread( threadId CThreadIdT, ) *CTaskRunnerT
/ Returns the task runner for the specified CEF thread. /
func (*CTaskRunnerT) BelongsToCurrentThread ¶ added in v0.1.5
func (self *CTaskRunnerT) BelongsToCurrentThread() bool
/ Returns true (1) if this task runner belongs to the current thread. /
func (*CTaskRunnerT) BelongsToThread ¶ added in v0.1.5
func (self *CTaskRunnerT) BelongsToThread( threadId CThreadIdT, ) bool
/ Returns true (1) if this task runner is for the specified CEF thread. /
func (*CTaskRunnerT) HasOneRef ¶ added in v0.1.5
func (task_runner *CTaskRunnerT) HasOneRef() bool
func (*CTaskRunnerT) IsSame ¶ added in v0.1.5
func (self *CTaskRunnerT) IsSame( that *CTaskRunnerT, ) bool
/ Returns true (1) if this object is pointing to the same task runner as |that| object. /
func (*CTaskRunnerT) PostDelayedTask ¶ added in v0.1.5
func (self *CTaskRunnerT) PostDelayedTask( task *CTaskT, delay_ms int64, ) bool
/ Post a task for delayed execution on the thread associated with this task runner. Execution will occur asynchronously. Delayed tasks are not supported on V8 WebWorker threads and will be executed without the specified delay. /
func (*CTaskRunnerT) PostTask ¶ added in v0.1.5
func (self *CTaskRunnerT) PostTask( task *CTaskT, ) bool
/ Post a task for execution on the thread associated with this task runner. Execution will occur asynchronously. /
type CTaskRunnerTAccessor ¶ added in v0.1.5
type CTaskRunnerTAccessor interface { GetCTaskRunnerT() *CTaskRunnerT SetCTaskRunnerT(*CTaskRunnerT) }
type CTaskT ¶ added in v0.1.5
type CTaskT struct {
// contains filtered or unexported fields
}
Go type for cef_task_t
type CTaskTAccessor ¶ added in v0.1.5
type CTerminationStatusT ¶ added in v0.1.5
type CTerminationStatusT C.cef_termination_status_t
/ Process termination status values. /
const ( /// // Non-zero exit status. /// TsAbnormalTermination CTerminationStatusT = C.TS_ABNORMAL_TERMINATION /// // SIGKILL or task manager kill. /// TsProcessWasKilled CTerminationStatusT = C.TS_PROCESS_WAS_KILLED /// // Segmentation fault. /// TsProcessCrashed CTerminationStatusT = C.TS_PROCESS_CRASHED /// // Out of memory. Some platforms may use TS_PROCESS_CRASHED instead. /// TsProcessOom CTerminationStatusT = C.TS_PROCESS_OOM )
type CTextInputModeT ¶ added in v0.1.5
type CTextInputModeT C.cef_text_input_mode_t
/ Input mode of a virtual keyboard. These constants match their equivalents in Chromium's text_input_mode.h and should not be renumbered. See https://html.spec.whatwg.org/#input-modalities:-the-inputmode-attribute /
const ( CefTextInputModeDefault CTextInputModeT = C.CEF_TEXT_INPUT_MODE_DEFAULT CefTextInputModeNone CTextInputModeT = C.CEF_TEXT_INPUT_MODE_NONE CefTextInputModeText CTextInputModeT = C.CEF_TEXT_INPUT_MODE_TEXT CefTextInputModeTel CTextInputModeT = C.CEF_TEXT_INPUT_MODE_TEL CefTextInputModeUrl CTextInputModeT = C.CEF_TEXT_INPUT_MODE_URL CefTextInputModeEmail CTextInputModeT = C.CEF_TEXT_INPUT_MODE_EMAIL CefTextInputModeNumeric CTextInputModeT = C.CEF_TEXT_INPUT_MODE_NUMERIC CefTextInputModeDecimal CTextInputModeT = C.CEF_TEXT_INPUT_MODE_DECIMAL CefTextInputModeSearch CTextInputModeT = C.CEF_TEXT_INPUT_MODE_SEARCH CefTextInputModeMax CTextInputModeT = C.CEF_TEXT_INPUT_MODE_MAX )
type CTextStyleT ¶ added in v0.1.5
type CTextStyleT C.cef_text_style_t
/ Text style types. Should be kepy in sync with gfx::TextStyle. /
const ( CefTextStyleBold CTextStyleT = C.CEF_TEXT_STYLE_BOLD CefTextStyleItalic CTextStyleT = C.CEF_TEXT_STYLE_ITALIC CefTextStyleStrike CTextStyleT = C.CEF_TEXT_STYLE_STRIKE CefTextStyleDiagonalStrike CTextStyleT = C.CEF_TEXT_STYLE_DIAGONAL_STRIKE CefTextStyleUnderline CTextStyleT = C.CEF_TEXT_STYLE_UNDERLINE )
type CThreadIdT ¶ added in v0.1.5
type CThreadIdT C.cef_thread_id_t
/ Existing thread IDs. /
const ( /// // The main thread in the browser. This will be the same as the main // application thread if CefInitialize() is called with a // CefSettings.multi_threaded_message_loop value of false. Do not perform // blocking tasks on this thread. All tasks posted after // CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() // are guaranteed to run. This thread will outlive all other CEF threads. /// TidUi CThreadIdT = C.TID_UI /// // Used for blocking tasks (e.g. file system access) where the user won't // notice if the task takes an arbitrarily long time to complete. All tasks // posted after CefBrowserProcessHandler::OnContextInitialized() and before // CefShutdown() are guaranteed to run. /// TidFileBackground CThreadIdT = C.TID_FILE_BACKGROUND TidFile CThreadIdT = C.TID_FILE /// // Used for blocking tasks (e.g. file system access) that affect UI or // responsiveness of future user interactions. Do not use if an immediate // response to a user interaction is expected. All tasks posted after // CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() // are guaranteed to run. // Examples: // - Updating the UI to reflect progress on a long task. // - Loading data that might be shown in the UI after a future user // interaction. /// TidFileUserVisible CThreadIdT = C.TID_FILE_USER_VISIBLE /// // Used for blocking tasks (e.g. file system access) that affect UI // immediately after a user interaction. All tasks posted after // CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() // are guaranteed to run. // Example: Generating data shown in the UI immediately after a click. /// TidFileUserBlocking CThreadIdT = C.TID_FILE_USER_BLOCKING /// // Used to launch and terminate browser processes. /// TidProcessLauncher CThreadIdT = C.TID_PROCESS_LAUNCHER /// // Used to process IPC and network messages. Do not perform blocking tasks on // this thread. All tasks posted after // CefBrowserProcessHandler::OnContextInitialized() and before CefShutdown() // are guaranteed to run. /// TidIo CThreadIdT = C.TID_IO /// // The main thread in the renderer. Used for all WebKit and V8 interaction. // Tasks may be posted to this thread after // CefRenderProcessHandler::OnRenderThreadCreated but are not guaranteed to // run before sub-process termination (sub-processes may be killed at any time // without warning). /// TidRenderer CThreadIdT = C.TID_RENDERER )
type CThreadPriorityT ¶ added in v0.1.5
type CThreadPriorityT C.cef_thread_priority_t
/ Thread priority values listed in increasing order of importance. /
const ( /// // Suitable for threads that shouldn't disrupt high priority work. /// TpBackground CThreadPriorityT = C.TP_BACKGROUND /// // Default priority level. /// TpNormal CThreadPriorityT = C.TP_NORMAL /// // Suitable for threads which generate data for the display (at ~60Hz). /// TpDisplay CThreadPriorityT = C.TP_DISPLAY /// // Suitable for low-latency, glitch-resistant audio. /// TpRealtimeAudio CThreadPriorityT = C.TP_REALTIME_AUDIO )
type CTouchEventT ¶ added in v0.1.5
type CTouchEventT C.cef_touch_event_t
/ Structure representing touch event information. /
type CTouchEventTypeT ¶ added in v0.1.5
type CTouchEventTypeT C.cef_touch_event_type_t
/ Touch points states types. /
const ( CefTetReleased CTouchEventTypeT = C.CEF_TET_RELEASED CefTetPressed CTouchEventTypeT = C.CEF_TET_PRESSED CefTetMoved CTouchEventTypeT = C.CEF_TET_MOVED CefTetCancelled CTouchEventTypeT = C.CEF_TET_CANCELLED )
type CTransitionTypeT ¶
type CTransitionTypeT C.cef_transition_type_t
/ Transition type for a request. Made up of one source value and 0 or more qualifiers. /
const ( /// // Source is a link click or the JavaScript window.open function. This is // also the default value for requests like sub-resource loads that are not // navigations. /// TtLink CTransitionTypeT = C.TT_LINK /// // Source is some other "explicit" navigation action such as creating a new // browser or using the LoadURL function. This is also the default value // for navigations where the actual type is unknown. /// TtExplicit CTransitionTypeT = C.TT_EXPLICIT /// // Source is a subframe navigation. This is any content that is automatically // loaded in a non-toplevel frame. For example, if a page consists of several // frames containing ads, those ad URLs will have this transition type. // The user may not even realize the content in these pages is a separate // frame, so may not care about the URL. /// TtAutoSubframe CTransitionTypeT = C.TT_AUTO_SUBFRAME /// // Source is a subframe navigation explicitly requested by the user that will // generate new navigation entries in the back/forward list. These are // probably more important than frames that were automatically loaded in // the background because the user probably cares about the fact that this // link was loaded. /// TtManualSubframe CTransitionTypeT = C.TT_MANUAL_SUBFRAME /// // Source is a form submission by the user. NOTE: In some situations // submitting a form does not result in this transition type. This can happen // if the form uses a script to submit the contents. /// TtFormSubmit CTransitionTypeT = C.TT_FORM_SUBMIT /// // Source is a "reload" of the page via the Reload function or by re-visiting // the same URL. NOTE: This is distinct from the concept of whether a // particular load uses "reload semantics" (i.e. bypasses cached data). /// TtReload CTransitionTypeT = C.TT_RELOAD /// // General mask defining the bits used for the source values. /// TtSourceMask CTransitionTypeT = C.TT_SOURCE_MASK /// // Attempted to visit a URL but was blocked. /// TtBlockedFlag CTransitionTypeT = C.TT_BLOCKED_FLAG /// // Used the Forward or Back function to navigate among browsing history. /// TtForwardBackFlag CTransitionTypeT = C.TT_FORWARD_BACK_FLAG /// // The beginning of a navigation chain. /// TtChainStartFlag CTransitionTypeT = C.TT_CHAIN_START_FLAG /// // The last transition in a redirect chain. /// TtChainEndFlag CTransitionTypeT = C.TT_CHAIN_END_FLAG /// // Redirects caused by JavaScript or a meta refresh tag on the page. /// TtClientRedirectFlag CTransitionTypeT = C.TT_CLIENT_REDIRECT_FLAG /// // Redirects sent from the server by HTTP headers. /// TtServerRedirectFlag CTransitionTypeT = C.TT_SERVER_REDIRECT_FLAG /// // Used to test whether a transition involves a redirect. /// TtIsRedirectMask CTransitionTypeT = C.TT_IS_REDIRECT_MASK /// // General mask defining the bits used for the qualifiers. /// TtQualifierMask CTransitionTypeT = C.TT_QUALIFIER_MASK )
type CUriUnescapeRuleT ¶ added in v0.1.5
type CUriUnescapeRuleT C.cef_uri_unescape_rule_t
/ URI unescape rules passed to CefURIDecode(). /
const ( /// // Don't unescape anything at all. /// UuNone CUriUnescapeRuleT = C.UU_NONE /// // Don't unescape anything special, but all normal unescaping will happen. // This is a placeholder and can't be combined with other flags (since it's // just the absence of them). All other unescape rules imply "normal" in // addition to their special meaning. Things like escaped letters, digits, // and most symbols will get unescaped with this mode. /// UuNormal CUriUnescapeRuleT = C.UU_NORMAL /// // Convert %20 to spaces. In some places where we're showing URLs, we may // want this. In places where the URL may be copied and pasted out, then // you wouldn't want this since it might not be interpreted in one piece // by other applications. /// UuSpaces CUriUnescapeRuleT = C.UU_SPACES /// // Unescapes '/' and '\\'. If these characters were unescaped, the resulting // URL won't be the same as the source one. Moreover, they are dangerous to // unescape in strings that will be used as file paths or names. This value // should only be used when slashes don't have special meaning, like data // URLs. /// UuPathSeparators CUriUnescapeRuleT = C.UU_PATH_SEPARATORS /// // Unescapes various characters that will change the meaning of URLs, // including '%', '+', '&', '#'. Does not unescape path separators. // If these characters were unescaped, the resulting URL won't be the same // as the source one. This flag is used when generating final output like // filenames for URLs where we won't be interpreting as a URL and want to do // as much unescaping as possible. /// UuUrlSpecialCharsExceptPathSeparators CUriUnescapeRuleT = C.UU_URL_SPECIAL_CHARS_EXCEPT_PATH_SEPARATORS /// // Unescapes characters that can be used in spoofing attempts (such as LOCK) // and control characters (such as BiDi control characters and %01). This // INCLUDES NULLs. This is used for rare cases such as data: URL decoding // where the result is binary data. // // DO NOT use UU_SPOOFING_AND_CONTROL_CHARS if the URL is going to be // displayed in the UI for security reasons. /// UuSpoofingAndControlChars CUriUnescapeRuleT = C.UU_SPOOFING_AND_CONTROL_CHARS /// // URL queries use "+" for space. This flag controls that replacement. /// UuReplacePlusWithSpace CUriUnescapeRuleT = C.UU_REPLACE_PLUS_WITH_SPACE )
type CUrlrequestFlagsT ¶ added in v0.1.5
type CUrlrequestFlagsT C.cef_urlrequest_flags_t
/ Flags used to customize the behavior of CefURLRequest. /
const ( /// // Default behavior. /// UrFlagNone CUrlrequestFlagsT = C.UR_FLAG_NONE /// // If set the cache will be skipped when handling the request. Setting this // value is equivalent to specifying the "Cache-Control: no-cache" request // header. Setting this value in combination with UR_FLAG_ONLY_FROM_CACHE will // cause the request to fail. /// UrFlagSkipCache CUrlrequestFlagsT = C.UR_FLAG_SKIP_CACHE /// // If set the request will fail if it cannot be served from the cache (or some // equivalent local store). Setting this value is equivalent to specifying the // "Cache-Control: only-if-cached" request header. Setting this value in // combination with UR_FLAG_SKIP_CACHE or UR_FLAG_DISABLE_CACHE will cause the // request to fail. /// UrFlagOnlyFromCache CUrlrequestFlagsT = C.UR_FLAG_ONLY_FROM_CACHE /// // If set the cache will not be used at all. Setting this value is equivalent // to specifying the "Cache-Control: no-store" request header. Setting this // value in combination with UR_FLAG_ONLY_FROM_CACHE will cause the request to // fail. /// UrFlagDisableCache CUrlrequestFlagsT = C.UR_FLAG_DISABLE_CACHE /// // If set user name, password, and cookies may be sent with the request, and // cookies may be saved from the response. /// UrFlagAllowStoredCredentials CUrlrequestFlagsT = C.UR_FLAG_ALLOW_STORED_CREDENTIALS /// // If set upload progress events will be generated when a request has a body. /// UrFlagReportUploadProgress CUrlrequestFlagsT = C.UR_FLAG_REPORT_UPLOAD_PROGRESS /// // If set the CefURLRequestClient::OnDownloadData method will not be called. /// UrFlagNoDownloadData CUrlrequestFlagsT = C.UR_FLAG_NO_DOWNLOAD_DATA /// // If set 5XX redirect errors will be propagated to the observer instead of // automatically re-tried. This currently only applies for requests // originated in the browser process. /// UrFlagNoRetryOn5xx CUrlrequestFlagsT = C.UR_FLAG_NO_RETRY_ON_5XX /// // If set 3XX responses will cause the fetch to halt immediately rather than // continue through the redirect. /// UrFlagStopOnRedirect CUrlrequestFlagsT = C.UR_FLAG_STOP_ON_REDIRECT )
type CUrlrequestStatusT ¶ added in v0.1.5
type CUrlrequestStatusT C.cef_urlrequest_status_t
/ Flags that represent CefURLRequest status. /
const ( /// // Unknown status. /// UrUnknown CUrlrequestStatusT = C.UR_UNKNOWN /// // Request succeeded. /// UrSuccess CUrlrequestStatusT = C.UR_SUCCESS /// // An IO request is pending, and the caller will be informed when it is // completed. /// UrIoPending CUrlrequestStatusT = C.UR_IO_PENDING /// // Request was canceled programatically. /// UrCanceled CUrlrequestStatusT = C.UR_CANCELED /// // Request failed for some reason. /// UrFailed CUrlrequestStatusT = C.UR_FAILED )
type CV8AccesscontrolT ¶ added in v0.1.5
type CV8AccesscontrolT C.cef_v8_accesscontrol_t
/ V8 access control values. /
const ( V8AccessControlDefault CV8AccesscontrolT = C.V8_ACCESS_CONTROL_DEFAULT V8AccessControlAllCanRead CV8AccesscontrolT = C.V8_ACCESS_CONTROL_ALL_CAN_READ V8AccessControlAllCanWrite CV8AccesscontrolT = C.V8_ACCESS_CONTROL_ALL_CAN_WRITE V8AccessControlProhibitsOverwriting CV8AccesscontrolT = C.V8_ACCESS_CONTROL_PROHIBITS_OVERWRITING )
type CV8PropertyattributeT ¶ added in v0.1.5
type CV8PropertyattributeT C.cef_v8_propertyattribute_t
/ V8 property attribute values. /
const ( V8PropertyAttributeNone CV8PropertyattributeT = C.V8_PROPERTY_ATTRIBUTE_NONE // Configurable V8PropertyAttributeReadonly CV8PropertyattributeT = C.V8_PROPERTY_ATTRIBUTE_READONLY V8PropertyAttributeDontenum CV8PropertyattributeT = C.V8_PROPERTY_ATTRIBUTE_DONTENUM V8PropertyAttributeDontdelete CV8PropertyattributeT = C.V8_PROPERTY_ATTRIBUTE_DONTDELETE )
type CV8accessorT ¶
type CV8accessorT struct {
// contains filtered or unexported fields
}
Go type for cef_v8accessor_t
func (*CV8accessorT) Get ¶ added in v0.1.5
func (self *CV8accessorT) Get( name string, object *CV8valueT, retval **CV8valueT, exception *string, ) bool
/ Handle retrieval the accessor value identified by |name|. |object| is the receiver ('this' object) of the accessor. If retrieval succeeds set |retval| to the return value. If retrieval fails set |exception| to the exception that will be thrown. Return true (1) if accessor retrieval was handled. /
func (*CV8accessorT) HasOneRef ¶ added in v0.1.5
func (v8accessor *CV8accessorT) HasOneRef() bool
func (*CV8accessorT) Set ¶ added in v0.1.5
func (self *CV8accessorT) Set( name string, object *CV8valueT, value *CV8valueT, exception *string, ) bool
/ Handle assignment of the accessor value identified by |name|. |object| is the receiver ('this' object) of the accessor. |value| is the new value being assigned to the accessor. If assignment fails set |exception| to the exception that will be thrown. Return true (1) if accessor assignment was handled. /
type CV8accessorTAccessor ¶ added in v0.1.5
type CV8accessorTAccessor interface { GetCV8accessorT() *CV8accessorT SetCV8accessorT(*CV8accessorT) }
type CV8arrayBufferReleaseCallbackT ¶
type CV8arrayBufferReleaseCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_v8array_buffer_release_callback_t
func AllocCV8arrayBufferReleaseCallbackT ¶
func AllocCV8arrayBufferReleaseCallbackT() *CV8arrayBufferReleaseCallbackT
AllocCV8arrayBufferReleaseCallbackT allocates CV8arrayBufferReleaseCallbackT and construct it
func (*CV8arrayBufferReleaseCallbackT) Bind ¶ added in v0.1.5
func (v8array_buffer_release_callback *CV8arrayBufferReleaseCallbackT) Bind(a interface{}) *CV8arrayBufferReleaseCallbackT
func (*CV8arrayBufferReleaseCallbackT) HasOneRef ¶ added in v0.1.5
func (v8array_buffer_release_callback *CV8arrayBufferReleaseCallbackT) HasOneRef() bool
type CV8arrayBufferReleaseCallbackTAccessor ¶
type CV8arrayBufferReleaseCallbackTAccessor interface { GetCV8arrayBufferReleaseCallbackT() *CV8arrayBufferReleaseCallbackT SetCV8arrayBufferReleaseCallbackT(*CV8arrayBufferReleaseCallbackT) }
type CV8contextT ¶
type CV8contextT struct {
// contains filtered or unexported fields
}
Go type for cef_v8context_t
func V8contextGetCurrentContext ¶ added in v0.1.5
func V8contextGetCurrentContext() *CV8contextT
/ Returns the current (top) context object in the V8 context stack. /
func V8contextGetEnteredContext ¶ added in v0.1.5
func V8contextGetEnteredContext() *CV8contextT
/ Returns the entered (bottom) context object in the V8 context stack. /
func (*CV8contextT) Enter ¶
func (self *CV8contextT) Enter() bool
/ Enter this context. A context must be explicitly entered before creating a V8 Object, Array, Function or Date asynchronously. exit() must be called the same number of times as enter() before releasing this context. V8 objects belong to the context in which they are created. Returns true (1) if the scope was entered successfully. /
func (*CV8contextT) Eval ¶
func (self *CV8contextT) Eval( code string, script_url string, start_line int, retval **CV8valueT, exception **CV8exceptionT, ) bool
/ Execute a string of JavaScript code in this V8 context. The |script_url| parameter is the URL where the script in question can be found, if any. The |start_line| parameter is the base line number to use for error reporting. On success |retval| will be set to the return value, if any, and the function will return true (1). On failure |exception| will be set to the exception, if any, and the function will return false (0). /
func (*CV8contextT) Exit ¶
func (self *CV8contextT) Exit() bool
/ Exit this context. Call this function only after calling enter(). Returns true (1) if the scope was exited successfully. /
func (*CV8contextT) GetBrowser ¶
func (self *CV8contextT) GetBrowser() *CBrowserT
/ Returns the browser for this context. This function will return an NULL reference for WebWorker contexts. /
func (*CV8contextT) GetFrame ¶
func (self *CV8contextT) GetFrame() *CFrameT
/ Returns the frame for this context. This function will return an NULL reference for WebWorker contexts. /
func (*CV8contextT) GetGlobal ¶
func (self *CV8contextT) GetGlobal() *CV8valueT
/ Returns the global object for this context. The context must be entered before calling this function. /
func (*CV8contextT) GetTaskRunner ¶ added in v0.1.5
func (self *CV8contextT) GetTaskRunner() *CTaskRunnerT
/ Returns the task runner associated with this context. V8 handles can only be accessed from the thread on which they are created. This function can be called on any render process thread. /
func (*CV8contextT) HasOneRef ¶ added in v0.1.5
func (v8context *CV8contextT) HasOneRef() bool
func (*CV8contextT) IsSame ¶
func (self *CV8contextT) IsSame( that *CV8contextT, ) bool
/ Returns true (1) if this object is pointing to the same handle as |that| object. /
func (*CV8contextT) IsValid ¶
func (self *CV8contextT) IsValid() bool
/ Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0). /
type CV8contextTAccessor ¶
type CV8contextTAccessor interface { GetCV8contextT() *CV8contextT SetCV8contextT(*CV8contextT) }
type CV8exceptionT ¶
type CV8exceptionT struct {
// contains filtered or unexported fields
}
Go type for cef_v8exception_t
func (*CV8exceptionT) GetEndColumn ¶ added in v0.1.5
func (self *CV8exceptionT) GetEndColumn() bool
/ Returns the index within the line of the last character where the error occurred. /
func (*CV8exceptionT) GetEndPosition ¶ added in v0.1.5
func (self *CV8exceptionT) GetEndPosition() bool
/ Returns the index within the script of the last character where the error occurred. /
func (*CV8exceptionT) GetLineNumber ¶ added in v0.1.5
func (self *CV8exceptionT) GetLineNumber() bool
/ Returns the 1-based number of the line where the error occurred or 0 if the line number is unknown. /
func (*CV8exceptionT) GetMessage ¶
func (self *CV8exceptionT) GetMessage() string
/ Returns the exception message. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8exceptionT) GetScriptResourceName ¶ added in v0.1.5
func (self *CV8exceptionT) GetScriptResourceName() string
/ Returns the resource name for the script from where the function causing the error originates. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8exceptionT) GetSourceLine ¶ added in v0.1.5
func (self *CV8exceptionT) GetSourceLine() string
/ Returns the line of source code that the exception occurred within. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8exceptionT) GetStartColumn ¶ added in v0.1.5
func (self *CV8exceptionT) GetStartColumn() bool
/ Returns the index within the line of the first character where the error occurred. /
func (*CV8exceptionT) GetStartPosition ¶ added in v0.1.5
func (self *CV8exceptionT) GetStartPosition() bool
/ Returns the index within the script of the first character where the error occurred. /
func (*CV8exceptionT) HasOneRef ¶ added in v0.1.5
func (v8exception *CV8exceptionT) HasOneRef() bool
type CV8exceptionTAccessor ¶
type CV8exceptionTAccessor interface { GetCV8exceptionT() *CV8exceptionT SetCV8exceptionT(*CV8exceptionT) }
type CV8handlerT ¶
type CV8handlerT struct {
// contains filtered or unexported fields
}
Go type for cef_v8handler_t
func AllocCV8handlerT ¶
func AllocCV8handlerT() *CV8handlerT
AllocCV8handlerT allocates CV8handlerT and construct it
func (*CV8handlerT) Bind ¶
func (v8handler *CV8handlerT) Bind(a interface{}) *CV8handlerT
func (*CV8handlerT) HasOneRef ¶
func (v8handler *CV8handlerT) HasOneRef() bool
type CV8handlerTAccessor ¶
type CV8handlerTAccessor interface { GetCV8handlerT() *CV8handlerT SetCV8handlerT(*CV8handlerT) }
type CV8interceptorT ¶
type CV8interceptorT struct {
// contains filtered or unexported fields
}
Go type for cef_v8interceptor_t
func (*CV8interceptorT) GetByindex ¶ added in v0.1.5
func (self *CV8interceptorT) GetByindex( index int, object *CV8valueT, retval **CV8valueT, exception *string, ) bool
/ Handle retrieval of the interceptor value identified by |index|. |object| is the receiver ('this' object) of the interceptor. If retrieval succeeds, set |retval| to the return value. If the requested value does not exist, don't set either |retval| or |exception|. If retrieval fails, set |exception| to the exception that will be thrown. Return true (1) if interceptor retrieval was handled, false (0) otherwise. /
func (*CV8interceptorT) GetByname ¶ added in v0.1.5
func (self *CV8interceptorT) GetByname( name string, object *CV8valueT, retval **CV8valueT, exception *string, ) bool
/ Handle retrieval of the interceptor value identified by |name|. |object| is the receiver ('this' object) of the interceptor. If retrieval succeeds, set |retval| to the return value. If the requested value does not exist, don't set either |retval| or |exception|. If retrieval fails, set |exception| to the exception that will be thrown. If the property has an associated accessor, it will be called only if you don't set |retval|. Return true (1) if interceptor retrieval was handled, false (0) otherwise. /
func (*CV8interceptorT) HasOneRef ¶ added in v0.1.5
func (v8interceptor *CV8interceptorT) HasOneRef() bool
func (*CV8interceptorT) SetByindex ¶ added in v0.1.5
func (self *CV8interceptorT) SetByindex( index int, object *CV8valueT, value *CV8valueT, exception *string, ) bool
/ Handle assignment of the interceptor value identified by |index|. |object| is the receiver ('this' object) of the interceptor. |value| is the new value being assigned to the interceptor. If assignment fails, set |exception| to the exception that will be thrown. Return true (1) if interceptor assignment was handled, false (0) otherwise. /
func (*CV8interceptorT) SetByname ¶ added in v0.1.5
func (self *CV8interceptorT) SetByname( name string, object *CV8valueT, value *CV8valueT, exception *string, ) bool
/ Handle assignment of the interceptor value identified by |name|. |object| is the receiver ('this' object) of the interceptor. |value| is the new value being assigned to the interceptor. If assignment fails, set |exception| to the exception that will be thrown. This setter will always be called, even when the property has an associated accessor. Return true (1) if interceptor assignment was handled, false (0) otherwise. /
type CV8interceptorTAccessor ¶ added in v0.1.5
type CV8interceptorTAccessor interface { GetCV8interceptorT() *CV8interceptorT SetCV8interceptorT(*CV8interceptorT) }
type CV8stackFrameT ¶ added in v0.1.5
type CV8stackFrameT struct {
// contains filtered or unexported fields
}
Go type for cef_v8stack_frame_t
func (*CV8stackFrameT) GetColumn ¶ added in v0.1.5
func (self *CV8stackFrameT) GetColumn() bool
/ Returns the 1-based column offset on the line for the function call or 0 if unknown. /
func (*CV8stackFrameT) GetFunctionName ¶ added in v0.1.5
func (self *CV8stackFrameT) GetFunctionName() string
/ Returns the name of the function. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8stackFrameT) GetLineNumber ¶ added in v0.1.5
func (self *CV8stackFrameT) GetLineNumber() bool
/ Returns the 1-based line number for the function call or 0 if unknown. /
func (*CV8stackFrameT) GetScriptName ¶ added in v0.1.5
func (self *CV8stackFrameT) GetScriptName() string
/ Returns the name of the resource script that contains the function. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8stackFrameT) GetScriptNameOrSourceUrl ¶ added in v0.1.5
func (self *CV8stackFrameT) GetScriptNameOrSourceUrl() string
/ Returns the name of the resource script that contains the function or the sourceURL value if the script name is undefined and its source ends with a "//@ sourceURL=..." string. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8stackFrameT) HasOneRef ¶ added in v0.1.5
func (v8stack_frame *CV8stackFrameT) HasOneRef() bool
func (*CV8stackFrameT) IsConstructor ¶ added in v0.1.5
func (self *CV8stackFrameT) IsConstructor() bool
/ Returns true (1) if the function was called as a constructor via "new". /
func (*CV8stackFrameT) IsEval ¶ added in v0.1.5
func (self *CV8stackFrameT) IsEval() bool
/ Returns true (1) if the function was compiled using eval(). /
func (*CV8stackFrameT) IsValid ¶ added in v0.1.5
func (self *CV8stackFrameT) IsValid() bool
/ Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0). /
type CV8stackFrameTAccessor ¶ added in v0.1.5
type CV8stackFrameTAccessor interface { GetCV8stackFrameT() *CV8stackFrameT SetCV8stackFrameT(*CV8stackFrameT) }
type CV8stackTraceT ¶
type CV8stackTraceT struct {
// contains filtered or unexported fields
}
Go type for cef_v8stack_trace_t
func V8stackTraceGetCurrent ¶ added in v0.1.5
func V8stackTraceGetCurrent( frame_limit int, ) *CV8stackTraceT
/ Returns the stack trace for the currently active context. |frame_limit| is the maximum number of frames that will be captured. /
func (*CV8stackTraceT) GetFrame ¶ added in v0.1.5
func (self *CV8stackTraceT) GetFrame( index int, ) *CV8stackFrameT
/ Returns the stack frame at the specified 0-based index. /
func (*CV8stackTraceT) GetFrameCount ¶ added in v0.1.5
func (self *CV8stackTraceT) GetFrameCount() bool
/ Returns the number of stack frames. /
func (*CV8stackTraceT) HasOneRef ¶ added in v0.1.5
func (v8stack_trace *CV8stackTraceT) HasOneRef() bool
func (*CV8stackTraceT) IsValid ¶ added in v0.1.5
func (self *CV8stackTraceT) IsValid() bool
/ Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0). /
type CV8stackTraceTAccessor ¶
type CV8stackTraceTAccessor interface { GetCV8stackTraceT() *CV8stackTraceT SetCV8stackTraceT(*CV8stackTraceT) }
type CV8valueT ¶
type CV8valueT struct {
// contains filtered or unexported fields
}
Go type for cef_v8value_t
func CreateArrayBuffer ¶ added in v0.1.5
func V8valueCreateArray ¶ added in v0.1.5
/ Create a new cef_v8value_t object of type array with the specified |length|. If |length| is negative the returned array will have length 0. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. /
func V8valueCreateArrayBuffer ¶
func V8valueCreateArrayBuffer( buffer unsafe.Pointer, length int64, release_callback *CV8arrayBufferReleaseCallbackT, ) *CV8valueT
/ Create a new cef_v8value_t object of type ArrayBuffer which wraps the provided |buffer| of size |length| bytes. The ArrayBuffer is externalized, meaning that it does not own |buffer|. The caller is responsible for freeing |buffer| when requested via a call to cef_v8array_buffer_release_callback_t:: ReleaseBuffer. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. /
func V8valueCreateBool ¶ added in v0.1.2
/ Create a new cef_v8value_t object of type bool. /
func V8valueCreateDate ¶
/ Create a new cef_v8value_t object of type Date. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. /
func V8valueCreateDouble ¶
/ Create a new cef_v8value_t object of type double. /
func V8valueCreateFunction ¶
func V8valueCreateFunction( name string, handler *CV8handlerT, ) *CV8valueT
/ Create a new cef_v8value_t object of type function. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. /
func V8valueCreateInt ¶
/ Create a new cef_v8value_t object of type int. /
func V8valueCreateNull ¶ added in v0.1.2
func V8valueCreateNull() *CV8valueT
/ Create a new cef_v8value_t object of type null. /
func V8valueCreateObject ¶
func V8valueCreateObject( accessor *CV8accessorT, interceptor *CV8interceptorT, ) *CV8valueT
/ Create a new cef_v8value_t object of type object with optional accessor and/or interceptor. This function should only be called from within the scope of a cef_render_process_handler_t, cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. /
func V8valueCreateString ¶
/ Create a new cef_v8value_t object of type string. /
func V8valueCreateUint ¶
/ Create a new cef_v8value_t object of type unsigned int. /
func V8valueCreateUndefined ¶ added in v0.1.2
func V8valueCreateUndefined() *CV8valueT
/ Create a new cef_v8value_t object of type undefined. /
func (*CV8valueT) AdjustExternallyAllocatedMemory ¶ added in v0.1.5
/ Adjusts the amount of registered external memory for the object. Used to give V8 an indication of the amount of externally allocated memory that is kept alive by JavaScript objects. V8 uses this information to decide when to perform global garbage collection. Each cef_v8value_t tracks the amount of external memory associated with it and automatically decreases the global total by the appropriate amount on its destruction. |change_in_bytes| specifies the number of bytes to adjust by. This function returns the number of bytes associated with the object after the adjustment. This function can only be called on user created objects. /
func (*CV8valueT) ClearException ¶
/ Clears the last exception and returns true (1) on success. /
func (*CV8valueT) DeleteValueByindex ¶ added in v0.1.3
/ Deletes the value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly, deletion fails or an exception is thrown. For read-only and don't-delete values this function will return true (1) even though deletion failed. /
func (*CV8valueT) DeleteValueBykey ¶
/ Deletes the value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only and don't-delete values this function will return true (1) even though deletion failed. /
func (*CV8valueT) ExecuteFunction ¶
/ Execute the function using the current V8 context. This function should only be called from within the scope of a cef_v8handler_t or cef_v8accessor_t callback, or in combination with calling enter() and exit() on a stored cef_v8context_t reference. |object| is the receiver ('this' object) of the function. If |object| is NULL the current context's global object will be used. |arguments| is the list of arguments that will be passed to the function. Returns the function return value on success. Returns NULL if this function is called incorrectly or an exception is thrown. /
func (*CV8valueT) ExecuteFunctionWithContext ¶ added in v0.1.5
func (self *CV8valueT) ExecuteFunctionWithContext( context *CV8contextT, object *CV8valueT, arguments []*CV8valueT, ) *CV8valueT
/ Execute the function using the specified V8 context. |object| is the receiver ('this' object) of the function. If |object| is NULL the specified context's global object will be used. |arguments| is the list of arguments that will be passed to the function. Returns the function return value on success. Returns NULL if this function is called incorrectly or an exception is thrown. /
func (*CV8valueT) GetArrayBufferReleaseCallback ¶ added in v0.1.5
func (self *CV8valueT) GetArrayBufferReleaseCallback() *CV8arrayBufferReleaseCallbackT
/ Returns the ReleaseCallback object associated with the ArrayBuffer or NULL if the ArrayBuffer was not created with CreateArrayBuffer. /
func (*CV8valueT) GetArrayLength ¶ added in v0.1.5
/ Returns the number of elements in the array. /
func (*CV8valueT) GetBoolValue ¶
/ Return a bool value. /
func (*CV8valueT) GetDateValue ¶
/ Return a Date value. /
func (*CV8valueT) GetDoubleValue ¶
/ Return a double value. /
func (*CV8valueT) GetException ¶
func (self *CV8valueT) GetException() *CV8exceptionT
/ Returns the exception resulting from the last function call. This attribute exists only in the scope of the current CEF value object. /
func (*CV8valueT) GetExternallyAllocatedMemory ¶ added in v0.1.5
/ Returns the amount of externally allocated memory registered for the object. /
func (*CV8valueT) GetFunctionHandler ¶ added in v0.1.5
func (self *CV8valueT) GetFunctionHandler() *CV8handlerT
/ Returns the function handler or NULL if not a CEF-created function. /
func (*CV8valueT) GetFunctionName ¶
/ Returns the function name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8valueT) GetKeys ¶ added in v0.1.5
func (self *CV8valueT) GetKeys( keys CStringListT, ) bool
/ Read the keys for the object's values into the specified vector. Integer- based keys will also be returned as strings. /
func (*CV8valueT) GetStringValue ¶
/ Return a string value. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CV8valueT) GetUintValue ¶
/ Return an unsigned int value. /
func (*CV8valueT) GetValueByindex ¶ added in v0.1.3
/ Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown. /
func (*CV8valueT) GetValueBykey ¶
/ Returns the value with the specified identifier on success. Returns NULL if this function is called incorrectly or an exception is thrown. /
func (*CV8valueT) HasException ¶
/ Returns true (1) if the last function call resulted in an exception. This attribute exists only in the scope of the current CEF value object. /
func (*CV8valueT) HasValueByindex ¶ added in v0.1.3
/ Returns true (1) if the object has a value with the specified identifier. /
func (*CV8valueT) HasValueBykey ¶
/ Returns true (1) if the object has a value with the specified identifier. /
func (*CV8valueT) IsArrayBuffer ¶
/ True if the value type is an ArrayBuffer. /
func (*CV8valueT) IsFunction ¶
/ True if the value type is function. /
func (*CV8valueT) IsSame ¶
/ Returns true (1) if this object is pointing to the same handle as |that| object. /
func (*CV8valueT) IsUndefined ¶
/ True if the value type is undefined. /
func (*CV8valueT) IsUserCreated ¶ added in v0.1.5
/ Returns true (1) if this is a user created object. /
func (*CV8valueT) IsValid ¶
/ Returns true (1) if the underlying handle is valid and it can be accessed on the current thread. Do not call any other functions if this function returns false (0). /
func (*CV8valueT) NeuterArrayBuffer ¶ added in v0.1.5
/ Prevent the ArrayBuffer from using it's memory block by setting the length to zero. This operation cannot be undone. If the ArrayBuffer was created with CreateArrayBuffer then cef_v8array_buffer_release_callback_t::ReleaseBuffer will be called to release the underlying buffer. /
func (*CV8valueT) SetRethrowExceptions ¶ added in v0.1.5
/ Set whether this object will re-throw future exceptions. By default exceptions are not re-thrown. If a exception is re-thrown the current context should not be accessed again until after the exception has been caught and not re-thrown. Returns true (1) on success. This attribute exists only in the scope of the current CEF value object. /
func (*CV8valueT) SetValueByaccessor ¶ added in v0.1.5
func (self *CV8valueT) SetValueByaccessor( key string, settings CV8AccesscontrolT, attribute CV8PropertyattributeT, ) bool
/ Registers an identifier and returns true (1) on success. Access to the identifier will be forwarded to the cef_v8accessor_t instance passed to cef_v8value_t::cef_v8value_create_object(). Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed. /
func (*CV8valueT) SetValueByindex ¶ added in v0.1.3
/ Associates a value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed. /
func (*CV8valueT) SetValueBykey ¶
func (self *CV8valueT) SetValueBykey( key string, value *CV8valueT, attribute CV8PropertyattributeT, ) bool
/ Associates a value with the specified identifier and returns true (1) on success. Returns false (0) if this function is called incorrectly or an exception is thrown. For read-only values this function will return true (1) even though assignment failed. /
func (*CV8valueT) WillRethrowExceptions ¶ added in v0.1.5
/ Returns true (1) if this object will re-throw future exceptions. This attribute exists only in the scope of the current CEF value object. /
type CV8valueTAccessor ¶
type CValueT ¶
type CValueT struct {
// contains filtered or unexported fields
}
Go type for cef_value_t
func (*CValueT) Copy ¶ added in v0.1.5
/ Returns a copy of this object. The underlying data will also be copied. /
func (*CValueT) GetBinary ¶ added in v0.1.5
func (self *CValueT) GetBinary() *CBinaryValueT
/ Returns the underlying value as type binary. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_binary(). /
func (*CValueT) GetDictionary ¶ added in v0.1.5
func (self *CValueT) GetDictionary() *CDictionaryValueT
/ Returns the underlying value as type dictionary. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_dictionary(). /
func (*CValueT) GetList ¶ added in v0.1.5
func (self *CValueT) GetList() *CListValueT
/ Returns the underlying value as type list. The returned reference may become invalid if the value is owned by another object or if ownership is transferred to another object in the future. To maintain a reference to the value after assigning ownership to a dictionary or list pass this object to the set_value() function instead of passing the returned reference to set_list(). /
func (*CValueT) GetString ¶ added in v0.1.5
/ Returns the underlying value as type string. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CValueT) GetType ¶ added in v0.1.5
func (self *CValueT) GetType() CValueTypeT
/ Returns the underlying value type. /
func (*CValueT) IsEqual ¶ added in v0.1.5
/ Returns true (1) if this object and |that| object have an equivalent underlying value but are not necessarily the same object. /
func (*CValueT) IsOwned ¶ added in v0.1.5
/ Returns true (1) if the underlying data is owned by another object. /
func (*CValueT) IsReadOnly ¶ added in v0.1.5
/ Returns true (1) if the underlying data is read-only. Some APIs may expose read-only objects. /
func (*CValueT) IsSame ¶ added in v0.1.5
/ Returns true (1) if this object and |that| object have the same underlying data. If true (1) modifications to this object will also affect |that| object and vice-versa. /
func (*CValueT) IsValid ¶ added in v0.1.5
/ Returns true (1) if the underlying data is valid. This will always be true (1) for simple types. For complex types (binary, dictionary and list) the underlying data may become invalid if owned by another object (e.g. list or dictionary) and that other object is then modified or destroyed. This value object can be re-used by calling Set*() even if the underlying data is invalid. /
func (*CValueT) SetBinary ¶ added in v0.1.5
func (self *CValueT) SetBinary( value *CBinaryValueT, ) bool
/ Sets the underlying value as type binary. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged. /
func (*CValueT) SetBool ¶ added in v0.1.5
/ Sets the underlying value as type bool. Returns true (1) if the value was set successfully. /
func (*CValueT) SetDictionary ¶ added in v0.1.5
func (self *CValueT) SetDictionary( value *CDictionaryValueT, ) bool
/ Sets the underlying value as type dict. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged. /
func (*CValueT) SetDouble ¶ added in v0.1.5
/ Sets the underlying value as type double. Returns true (1) if the value was set successfully. /
func (*CValueT) SetInt ¶ added in v0.1.5
/ Sets the underlying value as type int. Returns true (1) if the value was set successfully. /
func (*CValueT) SetList ¶ added in v0.1.5
func (self *CValueT) SetList( value *CListValueT, ) bool
/ Sets the underlying value as type list. Returns true (1) if the value was set successfully. This object keeps a reference to |value| and ownership of the underlying data remains unchanged. /
type CValueTAccessor ¶
type CValueTypeT ¶
type CValueTypeT C.cef_value_type_t
/ Supported value types. /
const ( VtypeInvalid CValueTypeT = C.VTYPE_INVALID VtypeNull CValueTypeT = C.VTYPE_NULL VtypeBool CValueTypeT = C.VTYPE_BOOL VtypeInt CValueTypeT = C.VTYPE_INT VtypeDouble CValueTypeT = C.VTYPE_DOUBLE VtypeString CValueTypeT = C.VTYPE_STRING VtypeBinary CValueTypeT = C.VTYPE_BINARY VtypeDictionary CValueTypeT = C.VTYPE_DICTIONARY VtypeList CValueTypeT = C.VTYPE_LIST )
type CWebPluginInfoT ¶ added in v0.1.5
type CWebPluginInfoT struct {
// contains filtered or unexported fields
}
Go type for cef_web_plugin_info_t
func (*CWebPluginInfoT) GetDescription ¶ added in v0.1.5
func (self *CWebPluginInfoT) GetDescription() string
/ Returns a description of the plugin from the version information. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CWebPluginInfoT) GetName ¶ added in v0.1.5
func (self *CWebPluginInfoT) GetName() string
/ Returns the plugin name (i.e. Flash). / The resulting string must be freed by calling cef_string_userfree_free().
func (*CWebPluginInfoT) GetPath ¶ added in v0.1.5
func (self *CWebPluginInfoT) GetPath() string
/ Returns the plugin file path (DLL/bundle/library). / The resulting string must be freed by calling cef_string_userfree_free().
func (*CWebPluginInfoT) GetVersion ¶ added in v0.1.5
func (self *CWebPluginInfoT) GetVersion() string
/ Returns the version of the plugin (may be OS-specific). / The resulting string must be freed by calling cef_string_userfree_free().
func (*CWebPluginInfoT) HasOneRef ¶ added in v0.1.5
func (web_plugin_info *CWebPluginInfoT) HasOneRef() bool
type CWebPluginInfoTAccessor ¶ added in v0.1.5
type CWebPluginInfoTAccessor interface { GetCWebPluginInfoT() *CWebPluginInfoT SetCWebPluginInfoT(*CWebPluginInfoT) }
type CWebPluginInfoVisitorT ¶ added in v0.1.5
type CWebPluginInfoVisitorT struct {
// contains filtered or unexported fields
}
Go type for cef_web_plugin_info_visitor_t
func (*CWebPluginInfoVisitorT) HasOneRef ¶ added in v0.1.5
func (web_plugin_info_visitor *CWebPluginInfoVisitorT) HasOneRef() bool
func (*CWebPluginInfoVisitorT) Visit ¶ added in v0.1.5
func (self *CWebPluginInfoVisitorT) Visit( info *CWebPluginInfoT, count int, total int, ) bool
/ Method that will be called once for each plugin. |count| is the 0-based index for the current plugin. |total| is the total number of plugins. Return false (0) to stop visiting plugins. This function may never be called if no plugins are found. /
type CWebPluginInfoVisitorTAccessor ¶ added in v0.1.5
type CWebPluginInfoVisitorTAccessor interface { GetCWebPluginInfoVisitorT() *CWebPluginInfoVisitorT SetCWebPluginInfoVisitorT(*CWebPluginInfoVisitorT) }
type CWebPluginUnstableCallbackT ¶ added in v0.1.5
type CWebPluginUnstableCallbackT struct {
// contains filtered or unexported fields
}
Go type for cef_web_plugin_unstable_callback_t
func (*CWebPluginUnstableCallbackT) HasOneRef ¶ added in v0.1.5
func (web_plugin_unstable_callback *CWebPluginUnstableCallbackT) HasOneRef() bool
func (*CWebPluginUnstableCallbackT) IsUnstable ¶ added in v0.1.5
func (self *CWebPluginUnstableCallbackT) IsUnstable( path string, unstable int, )
/ Method that will be called for the requested plugin. |unstable| will be true (1) if the plugin has reached the crash count threshold of 3 times in 120 seconds. /
type CWebPluginUnstableCallbackTAccessor ¶ added in v0.1.5
type CWebPluginUnstableCallbackTAccessor interface { GetCWebPluginUnstableCallbackT() *CWebPluginUnstableCallbackT SetCWebPluginUnstableCallbackT(*CWebPluginUnstableCallbackT) }
type CWindowHandleT ¶ added in v0.1.5
type CWindowHandleT C.cef_window_handle_t
type CWindowInfoT ¶ added in v0.1.5
type CWindowInfoT C.cef_window_info_t
type CWindowOpenDispositionT ¶ added in v0.1.5
type CWindowOpenDispositionT C.cef_window_open_disposition_t
/ The manner in which a link click should be opened. These constants match their equivalents in Chromium's window_open_disposition.h and should not be renumbered. /
const ( WodUnknown CWindowOpenDispositionT = C.WOD_UNKNOWN WodCurrentTab CWindowOpenDispositionT = C.WOD_CURRENT_TAB WodSingletonTab CWindowOpenDispositionT = C.WOD_SINGLETON_TAB WodNewForegroundTab CWindowOpenDispositionT = C.WOD_NEW_FOREGROUND_TAB WodNewBackgroundTab CWindowOpenDispositionT = C.WOD_NEW_BACKGROUND_TAB WodNewPopup CWindowOpenDispositionT = C.WOD_NEW_POPUP WodNewWindow CWindowOpenDispositionT = C.WOD_NEW_WINDOW WodSaveToDisk CWindowOpenDispositionT = C.WOD_SAVE_TO_DISK WodOffTheRecord CWindowOpenDispositionT = C.WOD_OFF_THE_RECORD WodIgnoreAction CWindowOpenDispositionT = C.WOD_IGNORE_ACTION )
type CWriteHandlerT ¶ added in v0.1.5
type CWriteHandlerT struct {
// contains filtered or unexported fields
}
Go type for cef_write_handler_t
func (*CWriteHandlerT) Flush ¶ added in v0.1.5
func (self *CWriteHandlerT) Flush() bool
/ Flush the stream. /
func (*CWriteHandlerT) HasOneRef ¶ added in v0.1.5
func (write_handler *CWriteHandlerT) HasOneRef() bool
func (*CWriteHandlerT) MayBlock ¶ added in v0.1.5
func (self *CWriteHandlerT) MayBlock() bool
/ Return true (1) if this handler performs work like accessing the file system which may block. Used as a hint for determining the thread to access the handler from. /
func (*CWriteHandlerT) Seek ¶ added in v0.1.5
func (self *CWriteHandlerT) Seek( offset int64, whence int, ) bool
/ Seek to the specified offset position. |whence| may be any one of SEEK_CUR, SEEK_END or SEEK_SET. Return zero on success and non-zero on failure. /
func (*CWriteHandlerT) Tell ¶ added in v0.1.5
func (self *CWriteHandlerT) Tell() int64
/ Return the current offset position. /
type CWriteHandlerTAccessor ¶ added in v0.1.5
type CWriteHandlerTAccessor interface { GetCWriteHandlerT() *CWriteHandlerT SetCWriteHandlerT(*CWriteHandlerT) }
type CX509certPrincipalT ¶ added in v0.1.5
type CX509certPrincipalT struct {
// contains filtered or unexported fields
}
Go type for cef_x509cert_principal_t
func (*CX509certPrincipalT) GetCommonName ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetCommonName() string
/ Returns the common name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CX509certPrincipalT) GetCountryName ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetCountryName() string
/ Returns the country name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CX509certPrincipalT) GetDisplayName ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetDisplayName() string
/ Returns a name that can be used to represent the issuer. It tries in this order: Common Name (CN), Organization Name (O) and Organizational Unit Name (OU) and returns the first non-NULL one found. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CX509certPrincipalT) GetDomainComponents ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetDomainComponents( components CStringListT, )
/ Retrieve the list of domain components. /
func (*CX509certPrincipalT) GetLocalityName ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetLocalityName() string
/ Returns the locality name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CX509certPrincipalT) GetOrganizationNames ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetOrganizationNames( names CStringListT, )
/ Retrieve the list of organization names. /
func (*CX509certPrincipalT) GetOrganizationUnitNames ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetOrganizationUnitNames( names CStringListT, )
/ Retrieve the list of organization unit names. /
func (*CX509certPrincipalT) GetStateOrProvinceName ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetStateOrProvinceName() string
/ Returns the state or province name. / The resulting string must be freed by calling cef_string_userfree_free().
func (*CX509certPrincipalT) GetStreetAddresses ¶ added in v0.1.5
func (self *CX509certPrincipalT) GetStreetAddresses( addresses CStringListT, )
/ Retrieve the list of street addresses. /
func (*CX509certPrincipalT) HasOneRef ¶ added in v0.1.5
func (x509cert_principal *CX509certPrincipalT) HasOneRef() bool
type CX509certPrincipalTAccessor ¶ added in v0.1.5
type CX509certPrincipalTAccessor interface { GetCX509certPrincipalT() *CX509certPrincipalT SetCX509certPrincipalT(*CX509certPrincipalT) }
type CX509certificateT ¶ added in v0.1.5
type CX509certificateT struct {
// contains filtered or unexported fields
}
Go type for cef_x509certificate_t
func (*CX509certificateT) GetDerencoded ¶ added in v0.1.5
func (self *CX509certificateT) GetDerencoded() *CBinaryValueT
/ Returns the DER encoded data for the X.509 certificate. /
func (*CX509certificateT) GetIssuer ¶ added in v0.1.5
func (self *CX509certificateT) GetIssuer() *CX509certPrincipalT
/ Returns the issuer of the X.509 certificate. /
func (*CX509certificateT) GetIssuerChainSize ¶ added in v0.1.5
func (self *CX509certificateT) GetIssuerChainSize() int64
/ Returns the number of certificates in the issuer chain. If 0, the certificate is self-signed. /
func (*CX509certificateT) GetPemencoded ¶ added in v0.1.5
func (self *CX509certificateT) GetPemencoded() *CBinaryValueT
/ Returns the PEM encoded data for the X.509 certificate. /
func (*CX509certificateT) GetSerialNumber ¶ added in v0.1.5
func (self *CX509certificateT) GetSerialNumber() *CBinaryValueT
/ Returns the DER encoded serial number for the X.509 certificate. The value possibly includes a leading 00 byte. /
func (*CX509certificateT) GetSubject ¶ added in v0.1.5
func (self *CX509certificateT) GetSubject() *CX509certPrincipalT
/ Returns the subject of the X.509 certificate. For HTTPS server certificates this represents the web server. The common name of the subject should match the host name of the web server. /
func (*CX509certificateT) GetValidExpiry ¶ added in v0.1.5
func (self *CX509certificateT) GetValidExpiry() CTimeT
/ Returns the date after which the X.509 certificate is invalid. CefTime.GetTimeT() will return 0 if no date was specified. /
func (*CX509certificateT) GetValidStart ¶ added in v0.1.5
func (self *CX509certificateT) GetValidStart() CTimeT
/ Returns the date before which the X.509 certificate is invalid. CefTime.GetTimeT() will return 0 if no date was specified. /
func (*CX509certificateT) HasOneRef ¶ added in v0.1.5
func (x509certificate *CX509certificateT) HasOneRef() bool
type CX509certificateTAccessor ¶ added in v0.1.5
type CX509certificateTAccessor interface { GetCX509certificateT() *CX509certificateT SetCX509certificateT(*CX509certificateT) }
type CXmlEncodingTypeT ¶ added in v0.1.5
type CXmlEncodingTypeT C.cef_xml_encoding_type_t
/ Supported XML encoding types. The parser supports ASCII, ISO-8859-1, and UTF16 (LE and BE) by default. All other types must be translated to UTF8 before being passed to the parser. If a BOM is detected and the correct decoder is available then that decoder will be used automatically. /
const ( XmlEncodingNone CXmlEncodingTypeT = C.XML_ENCODING_NONE XmlEncodingUtf8 CXmlEncodingTypeT = C.XML_ENCODING_UTF8 XmlEncodingUtf16le CXmlEncodingTypeT = C.XML_ENCODING_UTF16LE XmlEncodingUtf16be CXmlEncodingTypeT = C.XML_ENCODING_UTF16BE XmlEncodingAscii CXmlEncodingTypeT = C.XML_ENCODING_ASCII )
type CXmlNodeTypeT ¶ added in v0.1.5
type CXmlNodeTypeT C.cef_xml_node_type_t
/ XML node types. /
const ( XmlNodeUnsupported CXmlNodeTypeT = C.XML_NODE_UNSUPPORTED XmlNodeProcessingInstruction CXmlNodeTypeT = C.XML_NODE_PROCESSING_INSTRUCTION XmlNodeDocumentType CXmlNodeTypeT = C.XML_NODE_DOCUMENT_TYPE XmlNodeElementStart CXmlNodeTypeT = C.XML_NODE_ELEMENT_START XmlNodeElementEnd CXmlNodeTypeT = C.XML_NODE_ELEMENT_END XmlNodeAttribute CXmlNodeTypeT = C.XML_NODE_ATTRIBUTE XmlNodeText CXmlNodeTypeT = C.XML_NODE_TEXT XmlNodeCdata CXmlNodeTypeT = C.XML_NODE_CDATA XmlNodeEntityReference CXmlNodeTypeT = C.XML_NODE_ENTITY_REFERENCE XmlNodeWhitespace CXmlNodeTypeT = C.XML_NODE_WHITESPACE XmlNodeComment CXmlNodeTypeT = C.XML_NODE_COMMENT )
type CanAccessBrowserHandler ¶ added in v0.1.5
type CanAccessBrowserHandler interface { CanAccessBrowser( self *CExtensionHandlerT, extension *CExtensionT, browser *CBrowserT, include_incognito int, target_browser *CBrowserT, ) bool }
/ Called when the tabId associated with |target_browser| is specified to an extension API call that accepts a tabId parameter (e.g. chrome.tabs.*). |extension| and |browser| are the source of the API call. Return true (1) to allow access of false (0) to deny access. Access to incognito browsers should not be allowed unless the source extension has incognito access enabled, in which case |include_incognito| will be true (1). /
type CanGetCookieHandler ¶
type CanGetCookieHandler interface { CanGetCookie( self *CResourceHandlerT, cookie *CCookieT, ) bool }
/ Return true (1) if the specified cookie can be sent with the request or false (0) otherwise. If false (0) is returned for any cookie then no cookies will be sent with the request. /
type CanGetCookiesHandler ¶ added in v0.1.5
type CanGetCookiesHandler interface { CanGetCookies( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, ) bool }
/ Called on the IO thread before sending a network request with a "Cookie" request header. Return true (1) to allow cookies to be included in the network request or false (0) to block cookies. The |request| object should not be modified in this callback. /
type CancelHandler ¶
type CancelHandler interface { Cancel( self *CResourceHandlerT, ) }
/ Request processing has been canceled. /
type CreateHandler ¶ added in v0.1.5
type CreateHandler interface { Create( self *CSchemeHandlerFactoryT, browser *CBrowserT, frame *CFrameT, scheme_name string, request *CRequestT, ) *CResourceHandlerT }
/ Return a new resource handler instance to handle the request or an NULL reference to allow default handling of the request. |browser| and |frame| will be the browser window and frame respectively that originated the request or NULL if the request did not originate from a browser window (for example, if the request came from cef_urlrequest_t). The |request| object passed to this function will not contain cookie data. /
type DeassocFunc ¶
type DeassocFunc func()
func (DeassocFunc) Deassoc ¶
func (f DeassocFunc) Deassoc()
type DoCloseHandler ¶
type DoCloseHandler interface { DoClose( self *CLifeSpanHandlerT, browser *CBrowserT, ) bool }
/ Called when a browser has recieved a request to close. This may result directly from a call to cef_browser_host_t::*close_browser() or indirectly if the browser is parented to a top-level window created by CEF and the user attempts to close that window (by clicking the 'X', for example). The do_close() function will be called after the JavaScript 'onunload' event has been fired.
An application should handle top-level owner window close notifications by calling cef_browser_host_t::try_close_browser() or cef_browser_host_t::CloseBrowser(false (0)) instead of allowing the window to close immediately (see the examples below). This gives CEF an opportunity to process the 'onbeforeunload' event and optionally cancel the close before do_close() is called.
When windowed rendering is enabled CEF will internally create a window or view to host the browser. In that case returning false (0) from do_close() will send the standard close notification to the browser's top-level owner window (e.g. WM_CLOSE on Windows, performClose: on OS X, "delete_event" on Linux or cef_window_delegate_t::can_close() callback from Views). If the browser's host window/view has already been destroyed (via view hierarchy tear-down, for example) then do_close() will not be called for that browser since is no longer possible to cancel the close.
When windowed rendering is disabled returning false (0) from do_close() will cause the browser object to be destroyed immediately.
If the browser's top-level owner window requires a non-standard close notification then send that notification from do_close() and return true (1).
The cef_life_span_handler_t::on_before_close() function will be called after do_close() (if do_close() is called) and immediately before the browser object is destroyed. The application should only exit after on_before_close() has been called for all existing browsers.
The below examples describe what should happen during window close when the browser is parented to an application-provided top-level window.
Example 1: Using cef_browser_host_t::try_close_browser(). This is recommended for clients using standard close handling and windows created on the browser process UI thread. 1. User clicks the window close button which sends a close notification to
the application's top-level window.
- Application's top-level window receives the close notification and calls TryCloseBrowser() (which internally calls CloseBrowser(false)). TryCloseBrowser() returns false so the client cancels the window close.
- JavaScript 'onbeforeunload' handler executes and shows the close confirmation dialog (which can be overridden via CefJSDialogHandler::OnBeforeUnloadDialog()).
- User approves the close. 5. JavaScript 'onunload' handler executes. 6.
CEF sends a close notification to the application's top-level window
(because DoClose() returned false by default).
- Application's top-level window receives the close notification and calls TryCloseBrowser(). TryCloseBrowser() returns true so the client allows the window close.
- Application's top-level window is destroyed. 9. Application's
on_before_close() handler is called and the browser object
is destroyed.
10. Application exits by calling cef_quit_message_loop() if no other browsers
exist.
Example 2: Using cef_browser_host_t::CloseBrowser(false (0)) and implementing the do_close() callback. This is recommended for clients using non-standard close handling or windows that were not created on the browser process UI thread. 1. User clicks the window close button which sends a close notification to
the application's top-level window.
- Application's top-level window receives the close notification and: A. Calls CefBrowserHost::CloseBrowser(false). B. Cancels the window close.
- JavaScript 'onbeforeunload' handler executes and shows the close confirmation dialog (which can be overridden via CefJSDialogHandler::OnBeforeUnloadDialog()).
- User approves the close. 5. JavaScript 'onunload' handler executes. 6.
Application's do_close() handler is called. Application will:
A. Set a flag to indicate that the next close attempt will be allowed. B. Return false.
- CEF sends an close notification to the application's top-level window.
- Application's top-level window receives the close notification and allows the window to close based on the flag from #6B.
- Application's top-level window is destroyed. 10. Application's
on_before_close() handler is called and the browser object
is destroyed.
11. Application exits by calling cef_quit_message_loop() if no other browsers
exist.
/
type ExecuteCommandHandler ¶ added in v0.1.5
type ExecuteCommandHandler interface { ExecuteCommand( self *CMenuModelDelegateT, menu_model *CMenuModelT, command_id int, event_flags CEventFlagsT, ) }
/ Perform the action associated with the specified |command_id| and optional |event_flags|. /
type ExecuteHandler ¶ added in v0.1.5
type ExecuteHandler interface { Execute( self *CV8handlerT, name string, object *CV8valueT, arguments []*CV8valueT, retval **CV8valueT, exception *string, ) bool }
/ Handle execution of the function identified by |name|. |object| is the receiver ('this' object) of the function. |arguments| is the list of arguments passed to the function. If execution succeeds set |retval| to the function return value. If execution fails set |exception| to the exception that will be thrown. Return true (1) if execution was handled. /
type FormatLabelHandler ¶ added in v0.1.5
type FormatLabelHandler interface { FormatLabel( self *CMenuModelDelegateT, menu_model *CMenuModelT, label *string, ) bool }
/ Optionally modify a menu item label. Return true (1) if |label| was modified. /
type GetActiveBrowserHandler ¶ added in v0.1.5
type GetActiveBrowserHandler interface { GetActiveBrowser( self *CExtensionHandlerT, extension *CExtensionT, browser *CBrowserT, include_incognito int, ) *CBrowserT }
/ Called when no tabId is specified to an extension API call that accepts a tabId parameter (e.g. chrome.tabs.*). |extension| and |browser| are the source of the API call. Return the browser that will be acted on by the API call or return NULL to act on |browser|. The returned browser must share the same cef_request_tContext as |browser|. Incognito browsers should not be considered unless the source extension has incognito access enabled, in which case |include_incognito| will be true (1). /
type GetAuthCredentialsHandler ¶ added in v0.1.5
type GetAuthCredentialsHandler interface { GetAuthCredentials( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, isProxy int, host string, port int, realm string, scheme string, callback *CAuthCallbackT, ) bool }
/ Called on the IO thread when the browser needs credentials from the user. |isProxy| indicates whether the host is a proxy server. |host| contains the hostname and |port| contains the port number. |realm| is the realm of the challenge and may be NULL. |scheme| is the authentication scheme used, such as "basic" or "digest", and will be NULL if the source of the request is an FTP server. Return true (1) to continue the request and call cef_auth_callback_t::cont() either in this function or at a later time when the authentication information is available. Return false (0) to cancel the request immediately. /
type GetExtensionResourceHandler ¶ added in v0.1.5
type GetExtensionResourceHandler interface { GetExtensionResource( self *CExtensionHandlerT, extension *CExtensionT, browser *CBrowserT, file string, callback *CGetExtensionResourceCallbackT, ) bool }
/ Called to retrieve an extension resource that would normally be loaded from disk (e.g. if a file parameter is specified to chrome.tabs.executeScript). |extension| and |browser| are the source of the resource request. |file| is the requested relative file path. To handle the resource request return true (1) and execute |callback| either synchronously or asynchronously. For the default behavior which reads the resource from the extension directory on disk return false (0). Localization substitutions will not be applied to resources handled via this function. /
type GetLocalizedStringHandler ¶ added in v0.1.5
type GetLocalizedStringHandler interface { GetLocalizedString( self *CResourceBundleHandlerT, string_id int, cstring *string, ) bool }
/ Called to retrieve a localized translation for the specified |string_id|. To provide the translation set |string| to the translation string and return true (1). To use the default translation return false (0). Include cef_pack_strings.h for a listing of valid string ID values. /
type GetResourceHandlerHandler ¶ added in v0.1.5
type GetResourceHandlerHandler interface { GetResourceHandler( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, ) *CResourceHandlerT }
/ Called on the IO thread before a resource is loaded. To allow the resource to load normally return NULL. To specify a handler for the resource return a cef_resource_handler_t object. The |request| object should not be modified in this callback. /
type GetResourceResponseFilterHandler ¶ added in v0.1.5
type GetResourceResponseFilterHandler interface { GetResourceResponseFilter( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, response *CResponseT, ) *CResponseFilterT }
/ Called on the IO thread to optionally filter resource response content. |request| and |response| represent the request and response respectively and cannot be modified in this callback. /
type GetResponseHeadersHandler ¶
type GetResponseHeadersHandler interface { GetResponseHeaders( self *CResourceHandlerT, response *CResponseT, response_length *int64, redirectUrl *string, ) }
/ Retrieve response header information. If the response length is not known set |response_length| to -1 and read_response() will be called until it returns false (0). If the response length is known set |response_length| to a positive value and read_response() will be called until it returns false (0) or the specified number of bytes have been read. Use the |response| object to set the mime type, http status code and other optional header values. To redirect the request to a new URL set |redirectUrl| to the new URL. |redirectUrl| can be either a relative or fully qualified URL. It is also possible to set |response| to a redirect http status code and pass the new URL via a Location header. Likewise with |redirectUrl| it is valid to set a relative or fully qualified URL as the Location header value. If an error occured while setting up the request you can call set_error() on |response| to indicate the error condition. /
type GetRootScreenRectHandler ¶ added in v0.1.5
type GetRootScreenRectHandler interface { GetRootScreenRect( self *CRenderHandlerT, browser *CBrowserT, rect *CRectT, ) bool }
/ Called to retrieve the root window rectangle in screen coordinates. Return true (1) if the rectangle was provided. If this function returns false (0) the rectangle from GetViewRect will be used. /
type GetScreenInfoHandler ¶ added in v0.1.5
type GetScreenInfoHandler interface { GetScreenInfo( self *CRenderHandlerT, browser *CBrowserT, screen_info *CScreenInfoT, ) bool }
/ Called to allow the client to fill in the CefScreenInfo object with appropriate values. Return true (1) if the |screen_info| structure has been modified.
If the screen info rectangle is left NULL the rectangle from GetViewRect will be used. If the rectangle is still NULL or invalid popups may not be drawn correctly. /
type GetScreenPointHandler ¶ added in v0.1.5
type GetScreenPointHandler interface { GetScreenPoint( self *CRenderHandlerT, browser *CBrowserT, viewX int, viewY int, screenX *int, screenY *int, ) bool }
/ Called to retrieve the translation from view coordinates to actual screen coordinates. Return true (1) if the screen coordinates were provided. /
type GetViewRectHandler ¶ added in v0.1.5
type GetViewRectHandler interface { GetViewRect( self *CRenderHandlerT, browser *CBrowserT, rect *CRectT, ) }
/ Called to retrieve the view rectangle which is relative to screen coordinates. This function must always provide a non-NULL rectangle. /
type MenuClosedHandler ¶ added in v0.1.5
type MenuClosedHandler interface { MenuClosed( self *CMenuModelDelegateT, menu_model *CMenuModelT, ) }
/ The menu has closed. /
type MenuWillShowHandler ¶ added in v0.1.5
type MenuWillShowHandler interface { MenuWillShow( self *CMenuModelDelegateT, menu_model *CMenuModelT, ) }
/ The menu is about to show. /
type MouseOutsideMenuHandler ¶ added in v0.1.5
type MouseOutsideMenuHandler interface { MouseOutsideMenu( self *CMenuModelDelegateT, menu_model *CMenuModelT, screen_point *CPointT, ) }
/ Called when the user moves the mouse outside the menu and over the owning window. /
type OnAcceleratedPaintHandler ¶ added in v0.1.5
type OnAcceleratedPaintHandler interface { OnAcceleratedPaint( self *CRenderHandlerT, browser *CBrowserT, ctype CPaintElementTypeT, dirtyRectsCount int64, dirtyRects *CRectT, shared_handle unsafe.Pointer, ) }
/ Called when an element has been rendered to the shared texture handle. |type| indicates whether the element is the view or the popup widget. |dirtyRects| contains the set of rectangles in pixel coordinates that need to be repainted. |shared_handle| is the handle for a D3D11 Texture2D that can be accessed via ID3D11Device using the OpenSharedResource function. This function is only called when cef_window_tInfo::shared_texture_enabled is set to true (1), and is currently only supported on Windows. /
type OnAccessibilityLocationChangeHandler ¶ added in v0.1.5
type OnAccessibilityLocationChangeHandler interface { OnAccessibilityLocationChange( self *CAccessibilityHandlerT, value *CValueT, ) }
/ Called after renderer process sends accessibility location changes to the browser process. /
type OnAccessibilityTreeChangeHandler ¶ added in v0.1.5
type OnAccessibilityTreeChangeHandler interface { OnAccessibilityTreeChange( self *CAccessibilityHandlerT, value *CValueT, ) }
/ Called after renderer process sends accessibility tree changes to the browser process. /
type OnAddressChangeHandler ¶ added in v0.1.5
type OnAddressChangeHandler interface { OnAddressChange( self *CDisplayHandlerT, browser *CBrowserT, frame *CFrameT, url string, ) }
/ Called when a frame's address has changed. /
type OnAfterCreatedHandler ¶
type OnAfterCreatedHandler interface { OnAfterCreated( self *CLifeSpanHandlerT, browser *CBrowserT, ) }
/ Called after a new browser is created. This callback will be the first notification that references |browser|. /
type OnAudioStreamStartedHandler ¶ added in v0.1.5
type OnAudioStreamStartedHandler interface { OnAudioStreamStarted( self *CAudioHandlerT, browser *CBrowserT, audio_stream_id int, channels int, channel_layout CChannelLayoutT, sample_rate int, frames_per_buffer int, ) }
/ Called when the stream identified by |audio_stream_id| has started. |audio_stream_id| will uniquely identify the stream across all future cef_audio_handler_t callbacks. OnAudioSteamStopped will always be called after OnAudioStreamStarted; both functions may be called multiple times for the same stream. |channels| is the number of channels, |channel_layout| is the layout of the channels and |sample_rate| is the stream sample rate. |frames_per_buffer| is the maximum number of frames that will occur in the PCM packet passed to OnAudioStreamPacket. /
type OnAudioStreamStoppedHandler ¶ added in v0.1.5
type OnAudioStreamStoppedHandler interface { OnAudioStreamStopped( self *CAudioHandlerT, browser *CBrowserT, audio_stream_id int, ) }
/ Called when the stream identified by |audio_stream_id| has stopped. OnAudioSteamStopped will always be called after OnAudioStreamStarted; both functions may be called multiple times for the same stream. /
type OnAutoResizeHandler ¶ added in v0.1.5
type OnAutoResizeHandler interface { OnAutoResize( self *CDisplayHandlerT, browser *CBrowserT, new_size *CSizeT, ) bool }
/ Called when auto-resize is enabled via cef_browser_host_t::SetAutoResizeEnabled and the contents have auto- resized. |new_size| will be the desired size in view coordinates. Return true (1) if the resize was handled or false (0) for default handling. /
type OnBeforeBackgroundBrowserHandler ¶ added in v0.1.5
type OnBeforeBackgroundBrowserHandler interface { OnBeforeBackgroundBrowser( self *CExtensionHandlerT, extension *CExtensionT, url string, client **CClientT, settings *CBrowserSettingsT, ) bool }
/ Called when an extension needs a browser to host a background script specified via the "background" manifest key. The browser will have no visible window and cannot be displayed. |extension| is the extension that is loading the background script. |url| is an internally generated reference to an HTML page that will be used to load the background script via a <script> src attribute. To allow creation of the browser optionally modify |client| and |settings| and return false (0). To cancel creation of the browser (and consequently cancel load of the background script) return true (1). Successful creation will be indicated by a call to cef_life_span_handler_t::OnAfterCreated, and cef_browser_host_t::IsBackgroundHost will return true (1) for the resulting browser. See https://developer.chrome.com/extensions/event_pages for more information about extension background script usage. /
type OnBeforeBrowseHandler ¶ added in v0.1.5
type OnBeforeBrowseHandler interface { OnBeforeBrowse( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, user_gesture int, is_redirect int, ) bool }
/ Called on the UI thread before browser navigation. Return true (1) to cancel the navigation or false (0) to allow the navigation to proceed. The |request| object cannot be modified in this callback. cef_load_handler_t::OnLoadingStateChange will be called twice in all cases. If the navigation is allowed cef_load_handler_t::OnLoadStart and cef_load_handler_t::OnLoadEnd will be called. If the navigation is canceled cef_load_handler_t::OnLoadError will be called with an |errorCode| value of ERR_ABORTED. The |user_gesture| value will be true (1) if the browser navigated via explicit user gesture (e.g. clicking a link) or false (0) if it navigated automatically (e.g. via the DomContentLoaded event). /
type OnBeforeBrowserHandler ¶ added in v0.1.5
type OnBeforeBrowserHandler interface { OnBeforeBrowser( self *CExtensionHandlerT, extension *CExtensionT, browser *CBrowserT, active_browser *CBrowserT, index int, url string, active int, windowInfo *CWindowInfoT, client **CClientT, settings *CBrowserSettingsT, ) bool }
/ Called when an extension API (e.g. chrome.tabs.create) requests creation of a new browser. |extension| and |browser| are the source of the API call. |active_browser| may optionally be specified via the windowId property or returned via the get_active_browser() callback and provides the default |client| and |settings| values for the new browser. |index| is the position value optionally specified via the index property. |url| is the URL that will be loaded in the browser. |active| is true (1) if the new browser should be active when opened. To allow creation of the browser optionally modify |windowInfo|, |client| and |settings| and return false (0). To cancel creation of the browser return true (1). Successful creation will be indicated by a call to cef_life_span_handler_t::OnAfterCreated. Any modifications to |windowInfo| will be ignored if |active_browser| is wrapped in a cef_browser_view_t. /
type OnBeforeChildProcessLaunchHandler ¶ added in v0.1.5
type OnBeforeChildProcessLaunchHandler interface { OnBeforeChildProcessLaunch( self *CBrowserProcessHandlerT, command_line *CCommandLineT, ) }
/ Called before a child process is launched. Will be called on the browser process UI thread when launching a render process and on the browser process IO thread when launching a GPU or plugin process. Provides an opportunity to modify the child process command line. Do not keep a reference to |command_line| outside of this function. /
type OnBeforeCloseHandler ¶
type OnBeforeCloseHandler interface { OnBeforeClose( self *CLifeSpanHandlerT, browser *CBrowserT, ) }
/ Called just before a browser is destroyed. Release all references to the browser object and do not attempt to execute any functions on the browser object after this callback returns. This callback will be the last notification that references |browser|. See do_close() documentation for additional usage information. /
type OnBeforeCommandLineProcessingHandler ¶
type OnBeforeCommandLineProcessingHandler interface { OnBeforeCommandLineProcessing( self *CAppT, process_type string, command_line *CCommandLineT, ) }
/ Provides an opportunity to view and/or modify command-line arguments before processing by CEF and Chromium. The |process_type| value will be NULL for the browser process. Do not keep a reference to the cef_command_line_t object passed to this function. The CefSettings.command_line_args_disabled value can be used to start with an NULL command-line object. Any values specified in CefSettings that equate to command-line arguments will be set before this function is called. Be cautious when using this function to modify command-line arguments for non-browser processes as this may result in undefined behavior including crashes. /
type OnBeforeContextMenuHandler ¶ added in v0.1.5
type OnBeforeContextMenuHandler interface { OnBeforeContextMenu( self *CContextMenuHandlerT, browser *CBrowserT, frame *CFrameT, params *CContextMenuParamsT, model *CMenuModelT, ) }
/ Called before a context menu is displayed. |params| provides information about the context menu state. |model| initially contains the default context menu. The |model| can be cleared to show no context menu or modified to show a custom menu. Do not keep references to |params| or |model| outside of this callback. /
type OnBeforeDownloadHandler ¶ added in v0.1.5
type OnBeforeDownloadHandler interface { OnBeforeDownload( self *CDownloadHandlerT, browser *CBrowserT, download_item *CDownloadItemT, suggested_name string, callback *CBeforeDownloadCallbackT, ) }
/ Called before a download begins. |suggested_name| is the suggested name for the download file. By default the download will be canceled. Execute |callback| either asynchronously or in this function to continue the download if desired. Do not keep a reference to |download_item| outside of this function. /
type OnBeforePluginLoadHandler ¶ added in v0.1.5
type OnBeforePluginLoadHandler interface { OnBeforePluginLoad( self *CRequestContextHandlerT, mime_type string, plugin_url string, is_main_frame int, top_origin_url string, plugin_info *CWebPluginInfoT, plugin_policy *CPluginPolicyT, ) bool }
/ Called on multiple browser process threads before a plugin instance is loaded. |mime_type| is the mime type of the plugin that will be loaded. |plugin_url| is the content URL that the plugin will load and may be NULL. |is_main_frame| will be true (1) if the plugin is being loaded in the main (top-level) frame, |top_origin_url| is the URL for the top-level frame that contains the plugin when loading a specific plugin instance or NULL when building the initial list of enabled plugins for 'navigator.plugins' JavaScript state. |plugin_info| includes additional information about the plugin that will be loaded. |plugin_policy| is the recommended policy. Modify |plugin_policy| and return true (1) to change the policy. Return false (0) to use the recommended policy. The default plugin policy can be set at runtime using the `--plugin-policy=[allow|detect|block]` command- line flag. Decisions to mark a plugin as disabled by setting |plugin_policy| to PLUGIN_POLICY_DISABLED may be cached when |top_origin_url| is NULL. To purge the plugin list cache and potentially trigger new calls to this function call cef_request_tContext::PurgePluginListCache. /
type OnBeforePopupHandler ¶ added in v0.1.5
type OnBeforePopupHandler interface { OnBeforePopup( self *CLifeSpanHandlerT, browser *CBrowserT, frame *CFrameT, target_url string, target_frame_name string, target_disposition CWindowOpenDispositionT, user_gesture int, popupFeatures *CPopupFeaturesT, windowInfo *CWindowInfoT, client **CClientT, settings *CBrowserSettingsT, no_javascript_access *int, ) bool }
/ Called on the UI thread before a new popup browser is created. The |browser| and |frame| values represent the source of the popup request. The |target_url| and |target_frame_name| values indicate where the popup browser should navigate and may be NULL if not specified with the request. The |target_disposition| value indicates where the user intended to open the popup (e.g. current tab, new tab, etc). The |user_gesture| value will be true (1) if the popup was opened via explicit user gesture (e.g. clicking a link) or false (0) if the popup opened automatically (e.g. via the DomContentLoaded event). The |popupFeatures| structure contains additional information about the requested popup window. To allow creation of the popup browser optionally modify |windowInfo|, |client|, |settings| and |no_javascript_access| and return false (0). To cancel creation of the popup browser return true (1). The |client| and |settings| values will default to the source browser's values. If the |no_javascript_access| value is set to false (0) the new browser will not be scriptable and may not be hosted in the same renderer process as the source browser. Any modifications to |windowInfo| will be ignored if the parent browser is wrapped in a cef_browser_view_t. Popup browser creation will be canceled if the parent browser is destroyed before the popup browser creation completes (indicated by a call to OnAfterCreated for the popup browser). /
type OnBeforeResourceLoadHandler ¶ added in v0.1.5
type OnBeforeResourceLoadHandler interface { OnBeforeResourceLoad( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, callback *CRequestCallbackT, ) CReturnValueT }
/ Called on the IO thread before a resource request is loaded. The |request| object may be modified. Return RV_CONTINUE to continue the request immediately. Return RV_CONTINUE_ASYNC and call cef_request_tCallback:: cont() at a later time to continue or cancel the request asynchronously. Return RV_CANCEL to cancel the request immediately.
/
type OnBeforeUnloadDialogHandler ¶ added in v0.1.5
type OnBeforeUnloadDialogHandler interface { OnBeforeUnloadDialog( self *CJsdialogHandlerT, browser *CBrowserT, message_text string, is_reload int, callback *CJsdialogCallbackT, ) bool }
/ Called to run a dialog asking the user if they want to leave a page. Return false (0) to use the default dialog implementation. Return true (1) if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |callback| once the custom dialog is dismissed. /
type OnBrowserCreatedHandler ¶
type OnBrowserCreatedHandler interface { OnBrowserCreated( self *CRenderProcessHandlerT, browser *CBrowserT, ) }
/ Called after a browser has been created. When browsing cross-origin a new browser will be created before the old browser with the same identifier is destroyed. /
type OnBrowserDestroyedHandler ¶
type OnBrowserDestroyedHandler interface { OnBrowserDestroyed( self *CRenderProcessHandlerT, browser *CBrowserT, ) }
/ Called before a browser is destroyed. /
type OnCertificateErrorHandler ¶ added in v0.1.5
type OnCertificateErrorHandler interface { OnCertificateError( self *CRequestHandlerT, browser *CBrowserT, cert_error CErrorcodeT, request_url string, ssl_info *CSslinfoT, callback *CRequestCallbackT, ) bool }
/ Called on the UI thread to handle requests for URLs with an invalid SSL certificate. Return true (1) and call cef_request_tCallback::cont() either in this function or at a later time to continue or cancel the request. Return false (0) to cancel the request immediately. If CefSettings.ignore_certificate_errors is set all invalid certificates will be accepted without calling this function. /
type OnConsoleMessageHandler ¶ added in v0.1.5
type OnConsoleMessageHandler interface { OnConsoleMessage( self *CDisplayHandlerT, browser *CBrowserT, level CLogSeverityT, message string, source string, line int, ) bool }
/ Called to display a console message. Return true (1) to stop the message from being output to the console. /
type OnContextCreatedHandler ¶
type OnContextCreatedHandler interface { OnContextCreated( self *CRenderProcessHandlerT, browser *CBrowserT, frame *CFrameT, context *CV8contextT, ) }
/ Called immediately after the V8 context for a frame has been created. To retrieve the JavaScript 'window' object use the cef_v8context_t::get_global() function. V8 handles can only be accessed from the thread on which they are created. A task runner for posting tasks on the associated thread can be retrieved via the cef_v8context_t::get_task_runner() function. /
type OnContextInitializedHandler ¶
type OnContextInitializedHandler interface { OnContextInitialized( self *CBrowserProcessHandlerT, ) }
/ Called on the browser process UI thread immediately after the CEF context has been initialized. /
type OnContextMenuCommandHandler ¶ added in v0.1.5
type OnContextMenuCommandHandler interface { OnContextMenuCommand( self *CContextMenuHandlerT, browser *CBrowserT, frame *CFrameT, params *CContextMenuParamsT, command_id int, event_flags CEventFlagsT, ) bool }
/ Called to execute a command selected from the context menu. Return true (1) if the command was handled or false (0) for the default implementation. See cef_menu_id_t for the command ids that have default implementations. All user-defined command ids should be between MENU_ID_USER_FIRST and MENU_ID_USER_LAST. |params| will have the same values as what was passed to on_before_context_menu(). Do not keep a reference to |params| outside of this callback. /
type OnContextMenuDismissedHandler ¶ added in v0.1.5
type OnContextMenuDismissedHandler interface { OnContextMenuDismissed( self *CContextMenuHandlerT, browser *CBrowserT, frame *CFrameT, ) }
/ Called when the context menu is dismissed irregardless of whether the menu was NULL or a command was selected. /
type OnContextReleasedHandler ¶
type OnContextReleasedHandler interface { OnContextReleased( self *CRenderProcessHandlerT, browser *CBrowserT, frame *CFrameT, context *CV8contextT, ) }
/ Called immediately before the V8 context for a frame is released. No references to the context should be kept after this function is called. /
type OnCursorChangeHandler ¶ added in v0.1.5
type OnCursorChangeHandler interface { OnCursorChange( self *CRenderHandlerT, browser *CBrowserT, cursor CCursorHandleT, ctype CCursorTypeT, custom_cursor_info *CCursorInfoT, ) }
/ Called when the browser's cursor has changed. If |type| is CT_CUSTOM then |custom_cursor_info| will be populated with the custom cursor information. /
type OnDialogClosedHandler ¶ added in v0.1.5
type OnDialogClosedHandler interface { OnDialogClosed( self *CJsdialogHandlerT, browser *CBrowserT, ) }
/ Called when the default implementation dialog is closed. /
type OnDownloadUpdatedHandler ¶ added in v0.1.5
type OnDownloadUpdatedHandler interface { OnDownloadUpdated( self *CDownloadHandlerT, browser *CBrowserT, download_item *CDownloadItemT, callback *CDownloadItemCallbackT, ) }
/ Called when a download's status or progress information has been updated. This may be called multiple times before and after on_before_download(). Execute |callback| either asynchronously or in this function to cancel the download if desired. Do not keep a reference to |download_item| outside of this function. /
type OnDragEnterHandler ¶ added in v0.1.5
type OnDragEnterHandler interface { OnDragEnter( self *CDragHandlerT, browser *CBrowserT, dragData *CDragDataT, mask CDragOperationsMaskT, ) bool }
/ Called when an external drag event enters the browser window. |dragData| contains the drag event data and |mask| represents the type of drag operation. Return false (0) for default drag handling behavior or true (1) to cancel the drag event. /
type OnDraggableRegionsChangedHandler ¶ added in v0.1.5
type OnDraggableRegionsChangedHandler interface { OnDraggableRegionsChanged( self *CDragHandlerT, browser *CBrowserT, regionsCount int64, regions *CDraggableRegionT, ) }
/ Called whenever draggable regions for the browser window change. These can be specified using the '-webkit-app-region: drag/no-drag' CSS-property. If draggable regions are never defined in a document this function will also never be called. If the last draggable region is removed from a document this function will be called with an NULL vector. /
type OnExtensionLoadFailedHandler ¶ added in v0.1.5
type OnExtensionLoadFailedHandler interface { OnExtensionLoadFailed( self *CExtensionHandlerT, result CErrorcodeT, ) }
/ Called if the cef_request_tContext::LoadExtension request fails. |result| will be the error code. /
type OnExtensionLoadedHandler ¶ added in v0.1.5
type OnExtensionLoadedHandler interface { OnExtensionLoaded( self *CExtensionHandlerT, extension *CExtensionT, ) }
/ Called if the cef_request_tContext::LoadExtension request succeeds. |extension| is the loaded extension. /
type OnExtensionUnloadedHandler ¶ added in v0.1.5
type OnExtensionUnloadedHandler interface { OnExtensionUnloaded( self *CExtensionHandlerT, extension *CExtensionT, ) }
/ Called after the cef_extension_t::Unload request has completed. /
type OnFaviconUrlchangeHandler ¶ added in v0.1.5
type OnFaviconUrlchangeHandler interface { OnFaviconUrlchange( self *CDisplayHandlerT, browser *CBrowserT, icon_urls CStringListT, ) }
/ Called when the page icon changes. /
type OnFileDialogDismissedHandler ¶ added in v0.1.5
type OnFileDialogDismissedHandler interface { OnFileDialogDismissed( self *CRunFileDialogCallbackT, selected_accept_filter int, file_paths CStringListT, ) }
/ Called asynchronously after the file dialog is dismissed. |selected_accept_filter| is the 0-based index of the value selected from the accept filters array passed to cef_browser_host_t::RunFileDialog. |file_paths| will be a single value or a list of values depending on the dialog mode. If the selection was cancelled |file_paths| will be NULL. /
type OnFileDialogHandler ¶ added in v0.1.5
type OnFileDialogHandler interface { OnFileDialog( self *CDialogHandlerT, browser *CBrowserT, mode CFileDialogModeT, title string, default_file_path string, accept_filters CStringListT, selected_accept_filter int, callback *CFileDialogCallbackT, ) bool }
/ Called to run a file chooser dialog. |mode| represents the type of dialog to display. |title| to the title to be used for the dialog and may be NULL to show the default title ("Open" or "Save" depending on the mode). |default_file_path| is the path with optional directory and/or file name component that should be initially selected in the dialog. |accept_filters| are used to restrict the selectable file types and may any combination of (a) valid lower-cased MIME types (e.g. "text/*" or "image/*"), (b) individual file extensions (e.g. ".txt" or ".png"), or (c) combined description and file extension delimited using "|" and ";" (e.g. "Image Types|.png;.gif;.jpg"). |selected_accept_filter| is the 0-based index of the filter that should be selected by default. To display a custom dialog return true (1) and execute |callback| either inline or at a later time. To display the default dialog return false (0). /
type OnFindResultHandler ¶ added in v0.1.5
type OnFindResultHandler interface { OnFindResult( self *CFindHandlerT, browser *CBrowserT, identifier int, count int, selectionRect *CRectT, activeMatchOrdinal int, finalUpdate int, ) }
/ Called to report find results returned by cef_browser_host_t::find(). |identifer| is the identifier passed to find(), |count| is the number of matches currently identified, |selectionRect| is the location of where the match was found (in window coordinates), |activeMatchOrdinal| is the current position in the search results, and |finalUpdate| is true (1) if this is the last find notification. /
type OnFocusedNodeChangedHandler ¶
type OnFocusedNodeChangedHandler interface { OnFocusedNodeChanged( self *CRenderProcessHandlerT, browser *CBrowserT, frame *CFrameT, node *CDomnodeT, ) }
/ Called when a new node in the the browser gets focus. The |node| value may be NULL if no specific node has gained focus. The node object passed to this function represents a snapshot of the DOM at the time this function is executed. DOM objects are only valid for the scope of this function. Do not keep references to or attempt to access any DOM objects outside the scope of this function. /
type OnFullscreenModeChangeHandler ¶ added in v0.1.5
type OnFullscreenModeChangeHandler interface { OnFullscreenModeChange( self *CDisplayHandlerT, browser *CBrowserT, fullscreen int, ) }
/ Called when web content in the page has toggled fullscreen mode. If |fullscreen| is true (1) the content will automatically be sized to fill the browser content area. If |fullscreen| is false (0) the content will automatically return to its original size and position. The client is responsible for resizing the browser if desired. /
type OnGotFocusHandler ¶ added in v0.1.5
type OnGotFocusHandler interface { OnGotFocus( self *CFocusHandlerT, browser *CBrowserT, ) }
/ Called when the browser component has received focus. /
type OnImeCompositionRangeChangedHandler ¶ added in v0.1.5
type OnImeCompositionRangeChangedHandler interface { OnImeCompositionRangeChanged( self *CRenderHandlerT, browser *CBrowserT, selected_range *CRangeT, character_boundsCount int64, character_bounds *CRectT, ) }
/ Called when the IME composition range has changed. |selected_range| is the range of characters that have been selected. |character_bounds| is the bounds of each character in view coordinates. /
type OnJsdialogHandler ¶ added in v0.1.5
type OnJsdialogHandler interface { OnJsdialog( self *CJsdialogHandlerT, browser *CBrowserT, origin_url string, dialog_type CJsdialogTypeT, message_text string, default_prompt_text string, callback *CJsdialogCallbackT, suppress_message *int, ) bool }
/ Called to run a JavaScript dialog. If |origin_url| is non-NULL it can be passed to the CefFormatUrlForSecurityDisplay function to retrieve a secure and user-friendly display string. The |default_prompt_text| value will be specified for prompt dialogs only. Set |suppress_message| to true (1) and return false (0) to suppress the message (suppressing messages is preferable to immediately executing the callback as this is used to detect presumably malicious behavior like spamming alert messages in onbeforeunload). Set |suppress_message| to false (0) and return false (0) to use the default implementation (the default implementation will show one modal dialog at a time and suppress any additional dialog requests until the displayed dialog is dismissed). Return true (1) if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |callback| once the custom dialog is dismissed. /
type OnKeyEventHandler ¶ added in v0.1.5
type OnKeyEventHandler interface { OnKeyEvent( self *CKeyboardHandlerT, browser *CBrowserT, event *CKeyEventT, os_event CEventHandleT, ) bool }
/ Called after the renderer and JavaScript in the page has had a chance to handle the event. |event| contains information about the keyboard event. |os_event| is the operating system event message, if any. Return true (1) if the keyboard event was handled or false (0) otherwise. /
type OnLoadEndHandler ¶
type OnLoadEndHandler interface { OnLoadEnd( self *CLoadHandlerT, browser *CBrowserT, frame *CFrameT, httpStatusCode int, ) }
/ Called when the browser is done loading a frame. The |frame| value will never be NULL -- call the is_main() function to check if this frame is the main frame. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This function will not be called for same page navigations (fragments, history state, etc.) or for navigations that fail or are canceled before commit. For notification of overall browser load status use OnLoadingStateChange instead. /
type OnLoadErrorHandler ¶
type OnLoadErrorHandler interface { OnLoadError( self *CLoadHandlerT, browser *CBrowserT, frame *CFrameT, errorCode CErrorcodeT, errorText string, failedUrl string, ) }
/ Called when a navigation fails or is canceled. This function may be called by itself if before commit or in combination with OnLoadStart/OnLoadEnd if after commit. |errorCode| is the error code number, |errorText| is the error text and |failedUrl| is the URL that failed to load. See net\base\net_error_list.h for complete descriptions of the error codes. /
type OnLoadStartHandler ¶
type OnLoadStartHandler interface { OnLoadStart( self *CLoadHandlerT, browser *CBrowserT, frame *CFrameT, transition_type CTransitionTypeT, ) }
/ Called after a navigation has been committed and before the browser begins loading contents in the frame. The |frame| value will never be NULL -- call the is_main() function to check if this frame is the main frame. |transition_type| provides information about the source of the navigation and an accurate value is only available in the browser process. Multiple frames may be loading at the same time. Sub-frames may start or continue loading after the main frame load has ended. This function will not be called for same page navigations (fragments, history state, etc.) or for navigations that fail or are canceled before commit. For notification of overall browser load status use OnLoadingStateChange instead. /
type OnLoadingProgressChangeHandler ¶ added in v0.1.5
type OnLoadingProgressChangeHandler interface { OnLoadingProgressChange( self *CDisplayHandlerT, browser *CBrowserT, progress float64, ) }
/ Called when the overall page loading progress has changed. |progress| ranges from 0.0 to 1.0. /
type OnLoadingStateChangeHandler ¶
type OnLoadingStateChangeHandler interface { OnLoadingStateChange( self *CLoadHandlerT, browser *CBrowserT, isLoading int, canGoBack int, canGoForward int, ) }
/ Called when the loading state has changed. This callback will be executed twice -- once when loading is initiated either programmatically or by user action, and once when loading is terminated due to completion, cancellation of failure. It will be called before any calls to OnLoadStart and after all calls to OnLoadError and/or OnLoadEnd. /
type OnOpenUrlfromTabHandler ¶ added in v0.1.5
type OnOpenUrlfromTabHandler interface { OnOpenUrlfromTab( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, target_url string, target_disposition CWindowOpenDispositionT, user_gesture int, ) bool }
/ Called on the UI thread before OnBeforeBrowse in certain limited cases where navigating a new or different browser might be desirable. This includes user-initiated navigation that might open in a special way (e.g. links clicked via middle-click or ctrl + left-click) and certain types of cross-origin navigation initiated from the renderer process (e.g. navigating the top-level frame to/from a file URL). The |browser| and |frame| values represent the source of the navigation. The |target_disposition| value indicates where the user intended to navigate the browser based on standard Chromium behaviors (e.g. current tab, new tab, etc). The |user_gesture| value will be true (1) if the browser navigated via explicit user gesture (e.g. clicking a link) or false (0) if it navigated automatically (e.g. via the DomContentLoaded event). Return true (1) to cancel the navigation or false (0) to allow the navigation to proceed in the source browser's top-level frame. /
type OnPaintHandler ¶ added in v0.1.5
type OnPaintHandler interface { OnPaint( self *CRenderHandlerT, browser *CBrowserT, ctype CPaintElementTypeT, dirtyRectsCount int64, dirtyRects *CRectT, buffer unsafe.Pointer, width int, height int, ) }
/ Called when an element should be painted. Pixel values passed to this function are scaled relative to view coordinates based on the value of CefScreenInfo.device_scale_factor returned from GetScreenInfo. |type| indicates whether the element is the view or the popup widget. |buffer| contains the pixel data for the whole image. |dirtyRects| contains the set of rectangles in pixel coordinates that need to be repainted. |buffer| will be |width|*|height|*4 bytes in size and represents a BGRA image with an upper-left origin. This function is only called when cef_window_tInfo::shared_texture_enabled is set to false (0). /
type OnPluginCrashedHandler ¶ added in v0.1.5
type OnPluginCrashedHandler interface { OnPluginCrashed( self *CRequestHandlerT, browser *CBrowserT, plugin_path string, ) }
/ Called on the browser process UI thread when a plugin has crashed. |plugin_path| is the path of the plugin that crashed. /
type OnPopupShowHandler ¶ added in v0.1.5
type OnPopupShowHandler interface { OnPopupShow( self *CRenderHandlerT, browser *CBrowserT, show int, ) }
/ Called when the browser wants to show or hide the popup widget. The popup should be shown if |show| is true (1) and hidden if |show| is false (0). /
type OnPopupSizeHandler ¶ added in v0.1.5
type OnPopupSizeHandler interface { OnPopupSize( self *CRenderHandlerT, browser *CBrowserT, rect *CRectT, ) }
/ Called when the browser wants to move or resize the popup widget. |rect| contains the new location and size in view coordinates. /
type OnPreKeyEventHandler ¶ added in v0.1.5
type OnPreKeyEventHandler interface { OnPreKeyEvent( self *CKeyboardHandlerT, browser *CBrowserT, event *CKeyEventT, os_event CEventHandleT, is_keyboard_shortcut *int, ) bool }
/ Called before a keyboard event is sent to the renderer. |event| contains information about the keyboard event. |os_event| is the operating system event message, if any. Return true (1) if the event was handled or false (0) otherwise. If the event will be handled in on_key_event() as a keyboard shortcut set |is_keyboard_shortcut| to true (1) and return false (0). /
type OnProtocolExecutionHandler ¶ added in v0.1.5
type OnProtocolExecutionHandler interface { OnProtocolExecution( self *CRequestHandlerT, browser *CBrowserT, url string, allow_os_execution *int, ) }
/ Called on the UI thread to handle requests for URLs with an unknown protocol component. Set |allow_os_execution| to true (1) to attempt execution via the registered OS protocol handler, if any. SECURITY WARNING: YOU SHOULD USE THIS METHOD TO ENFORCE RESTRICTIONS BASED ON SCHEME, HOST OR OTHER URL ANALYSIS BEFORE ALLOWING OS EXECUTION. /
type OnQuotaRequestHandler ¶ added in v0.1.5
type OnQuotaRequestHandler interface { OnQuotaRequest( self *CRequestHandlerT, browser *CBrowserT, origin_url string, new_size int64, callback *CRequestCallbackT, ) bool }
/ Called on the IO thread when JavaScript requests a specific storage quota size via the webkitStorageInfo.requestQuota function. |origin_url| is the origin of the page making the request. |new_size| is the requested quota size in bytes. Return true (1) to continue the request and call cef_request_tCallback::cont() either in this function or at a later time to grant or deny the request. Return false (0) to cancel the request immediately. /
type OnRegisterCustomSchemesHandler ¶
type OnRegisterCustomSchemesHandler interface { OnRegisterCustomSchemes( self *CAppT, registrar *CSchemeRegistrarT, ) }
/ Provides an opportunity to register custom schemes. Do not keep a reference to the |registrar| object. This function is called on the main thread for each process and the registered schemes should be the same across all processes. /
type OnRenderProcessTerminatedHandler ¶ added in v0.1.5
type OnRenderProcessTerminatedHandler interface { OnRenderProcessTerminated( self *CRequestHandlerT, browser *CBrowserT, status CTerminationStatusT, ) }
/ Called on the browser process UI thread when the render process terminates unexpectedly. |status| indicates how the process terminated. /
type OnRenderProcessThreadCreatedHandler ¶
type OnRenderProcessThreadCreatedHandler interface { OnRenderProcessThreadCreated( self *CBrowserProcessHandlerT, extra_info *CListValueT, ) }
/ Called on the browser process IO thread after the main thread has been created for a new render process. Provides an opportunity to specify extra information that will be passed to cef_render_process_handler_t::on_render_thread_created() in the render process. Do not keep a reference to |extra_info| outside of this function. /
type OnRenderThreadCreatedHandler ¶
type OnRenderThreadCreatedHandler interface { OnRenderThreadCreated( self *CRenderProcessHandlerT, extra_info *CListValueT, ) }
/ Called after the render process main thread has been created. |extra_info| is a read-only value originating from cef_browser_process_handler_t::on_render_process_thread_created(). Do not keep a reference to |extra_info| outside of this function. /
type OnRenderViewReadyHandler ¶ added in v0.1.5
type OnRenderViewReadyHandler interface { OnRenderViewReady( self *CRequestHandlerT, browser *CBrowserT, ) }
/ Called on the browser process UI thread when the render view associated with |browser| is ready to receive/handle IPC messages in the render process. /
type OnRequestContextInitializedHandler ¶ added in v0.1.5
type OnRequestContextInitializedHandler interface { OnRequestContextInitialized( self *CRequestContextHandlerT, request_context *CRequestContextT, ) }
/ Called on the browser process UI thread immediately after the request context has been initialized. /
type OnResetDialogStateHandler ¶ added in v0.1.5
type OnResetDialogStateHandler interface { OnResetDialogState( self *CJsdialogHandlerT, browser *CBrowserT, ) }
/ Called to cancel any pending dialogs and reset any saved dialog state. Will be called due to events like page navigation irregardless of whether any dialogs are currently pending. /
type OnResourceLoadCompleteHandler ¶ added in v0.1.5
type OnResourceLoadCompleteHandler interface { OnResourceLoadComplete( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, response *CResponseT, status CUrlrequestStatusT, received_content_length int64, ) }
/ Called on the IO thread when a resource load has completed. |request| and |response| represent the request and response respectively and cannot be modified in this callback. |status| indicates the load completion status. |received_content_length| is the number of response bytes actually read. /
type OnResourceRedirectHandler ¶ added in v0.1.5
type OnResourceRedirectHandler interface { OnResourceRedirect( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, response *CResponseT, new_url *string, ) }
/ Called on the IO thread when a resource load is redirected. The |request| parameter will contain the old URL and other request-related information. The |response| parameter will contain the response that resulted in the redirect. The |new_url| parameter will contain the new URL and can be changed if desired. The |request| object cannot be modified in this callback. /
type OnResourceResponseHandler ¶ added in v0.1.5
type OnResourceResponseHandler interface { OnResourceResponse( self *CRequestHandlerT, browser *CBrowserT, frame *CFrameT, request *CRequestT, response *CResponseT, ) bool }
/ Called on the IO thread when a resource response is received. To allow the resource to load normally return false (0). To redirect or retry the resource modify |request| (url, headers or post body) and return true (1). The |response| object cannot be modified in this callback. /
type OnScheduleMessagePumpWorkHandler ¶ added in v0.1.5
type OnScheduleMessagePumpWorkHandler interface { OnScheduleMessagePumpWork( self *CBrowserProcessHandlerT, delay_ms int64, ) }
/ Called from any thread when work has been scheduled for the browser process main (UI) thread. This callback is used in combination with CefSettings. external_message_pump and cef_do_message_loop_work() in cases where the CEF message loop must be integrated into an existing application message loop (see additional comments and warnings on CefDoMessageLoopWork). This callback should schedule a cef_do_message_loop_work() call to happen on the main (UI) thread. |delay_ms| is the requested delay in milliseconds. If |delay_ms| is <= 0 then the call should happen reasonably soon. If |delay_ms| is > 0 then the call should be scheduled to happen after the specified delay and any currently pending scheduled call should be cancelled. /
type OnScrollOffsetChangedHandler ¶ added in v0.1.5
type OnScrollOffsetChangedHandler interface { OnScrollOffsetChanged( self *CRenderHandlerT, browser *CBrowserT, x float64, y float64, ) }
/ Called when the scroll offset has changed. /
type OnSelectClientCertificateHandler ¶ added in v0.1.5
type OnSelectClientCertificateHandler interface { OnSelectClientCertificate( self *CRequestHandlerT, browser *CBrowserT, isProxy int, host string, port int, certificates []*CX509certificateT, callback *CSelectClientCertificateCallbackT, ) bool }
/ Called on the UI thread when a client certificate is being requested for authentication. Return false (0) to use the default behavior and automatically select the first certificate available. Return true (1) and call cef_select_client_certificate_callback_t::Select either in this function or at a later time to select a certificate. Do not call Select or call it with NULL to continue without using any certificate. |isProxy| indicates whether the host is an HTTPS proxy or the origin server. |host| and |port| contains the hostname and port of the SSL server. |certificates| is the list of certificates to choose from; this list has already been pruned by Chromium so that it only contains certificates from issuers that the server trusts. /
type OnSetFocusHandler ¶ added in v0.1.5
type OnSetFocusHandler interface { OnSetFocus( self *CFocusHandlerT, browser *CBrowserT, source CFocusSourceT, ) bool }
/ Called when the browser component is requesting focus. |source| indicates where the focus request is originating from. Return false (0) to allow the focus to be set or true (1) to cancel setting the focus. /
type OnStatusMessageHandler ¶ added in v0.1.5
type OnStatusMessageHandler interface { OnStatusMessage( self *CDisplayHandlerT, browser *CBrowserT, value string, ) }
/ Called when the browser receives a status message. |value| contains the text that will be displayed in the status message. /
type OnTakeFocusHandler ¶ added in v0.1.5
type OnTakeFocusHandler interface { OnTakeFocus( self *CFocusHandlerT, browser *CBrowserT, next int, ) }
/ Called when the browser component is about to loose focus. For instance, if focus was on the last HTML element and the user pressed the TAB key. |next| will be true (1) if the browser is giving focus to the next component and false (0) if the browser is giving focus to the previous component. /
type OnTextSelectionChangedHandler ¶ added in v0.1.5
type OnTextSelectionChangedHandler interface { OnTextSelectionChanged( self *CRenderHandlerT, browser *CBrowserT, selected_text string, selected_range *CRangeT, ) }
/ Called when text selection has changed for the specified |browser|. |selected_text| is the currently selected text and |selected_range| is the character range. /
type OnTitleChangeHandler ¶ added in v0.1.5
type OnTitleChangeHandler interface { OnTitleChange( self *CDisplayHandlerT, browser *CBrowserT, title string, ) }
/ Called when the page title changes. /
type OnTooltipHandler ¶ added in v0.1.5
type OnTooltipHandler interface { OnTooltip( self *CDisplayHandlerT, browser *CBrowserT, text *string, ) bool }
/ Called when the browser is about to display a tooltip. |text| contains the text that will be displayed in the tooltip. To handle the display of the tooltip yourself return true (1). Otherwise, you can optionally modify |text| and then return false (0) to allow the browser to display the tooltip. When window rendering is disabled the application is responsible for drawing tooltips and the return value is ignored. /
type OnUncaughtExceptionHandler ¶
type OnUncaughtExceptionHandler interface { OnUncaughtException( self *CRenderProcessHandlerT, browser *CBrowserT, frame *CFrameT, context *CV8contextT, exception *CV8exceptionT, stackTrace *CV8stackTraceT, ) }
/ Called for global uncaught exceptions in a frame. Execution of this callback is disabled by default. To enable set CefSettings.uncaught_exception_stack_size > 0. /
type OnVirtualKeyboardRequestedHandler ¶ added in v0.1.5
type OnVirtualKeyboardRequestedHandler interface { OnVirtualKeyboardRequested( self *CRenderHandlerT, browser *CBrowserT, input_mode CTextInputModeT, ) }
/ Called when an on-screen keyboard should be shown or hidden for the specified |browser|. |input_mode| specifies what kind of keyboard should be opened. If |input_mode| is CEF_TEXT_INPUT_MODE_NONE, any existing keyboard for this browser should be hidden. /
type OnWebKitInitializedHandler ¶
type OnWebKitInitializedHandler interface { OnWebKitInitialized( self *CRenderProcessHandlerT, ) }
/ Called after WebKit has been initialized. /
type ProcessRequestHandler ¶
type ProcessRequestHandler interface { ProcessRequest( self *CResourceHandlerT, request *CRequestT, callback *CCallbackT, ) bool }
/ Begin processing the request. To handle the request return true (1) and call cef_callback_t::cont() once the response header information is available (cef_callback_t::cont() can also be called from inside this function if header information is available immediately). To cancel the request return false (0). /
type ReadResponseHandler ¶
type ReadResponseHandler interface { ReadResponse( self *CResourceHandlerT, data_out []byte, bytes_read *int, callback *CCallbackT, ) bool }
/ Read response data. If data is available immediately copy up to |bytes_to_read| bytes into |data_out|, set |bytes_read| to the number of bytes copied, and return true (1). To read the data at a later time set |bytes_read| to 0, return true (1) and call cef_callback_t::cont() when the data is available. To indicate response completion return false (0). /
type RefToCAccessibilityHandlerT ¶ added in v0.1.5
type RefToCAccessibilityHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCAccessibilityHandlerT) GetCAccessibilityHandlerT ¶ added in v0.1.5
func (r RefToCAccessibilityHandlerT) GetCAccessibilityHandlerT() *CAccessibilityHandlerT
func (*RefToCAccessibilityHandlerT) SetCAccessibilityHandlerT ¶ added in v0.1.5
func (r *RefToCAccessibilityHandlerT) SetCAccessibilityHandlerT(p *CAccessibilityHandlerT)
type RefToCAppT ¶
type RefToCAppT struct {
// contains filtered or unexported fields
}
func (RefToCAppT) GetCAppT ¶
func (r RefToCAppT) GetCAppT() *CAppT
func (*RefToCAppT) SetCAppT ¶
func (r *RefToCAppT) SetCAppT(p *CAppT)
type RefToCAudioHandlerT ¶ added in v0.1.5
type RefToCAudioHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCAudioHandlerT) GetCAudioHandlerT ¶ added in v0.1.5
func (r RefToCAudioHandlerT) GetCAudioHandlerT() *CAudioHandlerT
func (*RefToCAudioHandlerT) SetCAudioHandlerT ¶ added in v0.1.5
func (r *RefToCAudioHandlerT) SetCAudioHandlerT(p *CAudioHandlerT)
type RefToCAuthCallbackT ¶ added in v0.1.5
type RefToCAuthCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCAuthCallbackT) GetCAuthCallbackT ¶ added in v0.1.5
func (r RefToCAuthCallbackT) GetCAuthCallbackT() *CAuthCallbackT
func (*RefToCAuthCallbackT) SetCAuthCallbackT ¶ added in v0.1.5
func (r *RefToCAuthCallbackT) SetCAuthCallbackT(p *CAuthCallbackT)
type RefToCBeforeDownloadCallbackT ¶ added in v0.1.5
type RefToCBeforeDownloadCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCBeforeDownloadCallbackT) GetCBeforeDownloadCallbackT ¶ added in v0.1.5
func (r RefToCBeforeDownloadCallbackT) GetCBeforeDownloadCallbackT() *CBeforeDownloadCallbackT
func (*RefToCBeforeDownloadCallbackT) SetCBeforeDownloadCallbackT ¶ added in v0.1.5
func (r *RefToCBeforeDownloadCallbackT) SetCBeforeDownloadCallbackT(p *CBeforeDownloadCallbackT)
type RefToCBinaryValueT ¶
type RefToCBinaryValueT struct {
// contains filtered or unexported fields
}
func (RefToCBinaryValueT) GetCBinaryValueT ¶
func (r RefToCBinaryValueT) GetCBinaryValueT() *CBinaryValueT
func (*RefToCBinaryValueT) SetCBinaryValueT ¶
func (r *RefToCBinaryValueT) SetCBinaryValueT(p *CBinaryValueT)
type RefToCBrowserHostT ¶
type RefToCBrowserHostT struct {
// contains filtered or unexported fields
}
func (RefToCBrowserHostT) GetCBrowserHostT ¶
func (r RefToCBrowserHostT) GetCBrowserHostT() *CBrowserHostT
func (*RefToCBrowserHostT) SetCBrowserHostT ¶
func (r *RefToCBrowserHostT) SetCBrowserHostT(p *CBrowserHostT)
type RefToCBrowserProcessHandlerT ¶
type RefToCBrowserProcessHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCBrowserProcessHandlerT) GetCBrowserProcessHandlerT ¶
func (r RefToCBrowserProcessHandlerT) GetCBrowserProcessHandlerT() *CBrowserProcessHandlerT
func (*RefToCBrowserProcessHandlerT) SetCBrowserProcessHandlerT ¶
func (r *RefToCBrowserProcessHandlerT) SetCBrowserProcessHandlerT(p *CBrowserProcessHandlerT)
type RefToCBrowserT ¶
type RefToCBrowserT struct {
// contains filtered or unexported fields
}
func (RefToCBrowserT) GetCBrowserT ¶
func (r RefToCBrowserT) GetCBrowserT() *CBrowserT
func (*RefToCBrowserT) SetCBrowserT ¶
func (r *RefToCBrowserT) SetCBrowserT(p *CBrowserT)
type RefToCCallbackT ¶
type RefToCCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCCallbackT) GetCCallbackT ¶
func (r RefToCCallbackT) GetCCallbackT() *CCallbackT
func (*RefToCCallbackT) SetCCallbackT ¶
func (r *RefToCCallbackT) SetCCallbackT(p *CCallbackT)
type RefToCClientT ¶
type RefToCClientT struct {
// contains filtered or unexported fields
}
func (RefToCClientT) GetCClientT ¶
func (r RefToCClientT) GetCClientT() *CClientT
func (*RefToCClientT) SetCClientT ¶
func (r *RefToCClientT) SetCClientT(p *CClientT)
type RefToCCommandLineT ¶ added in v0.1.5
type RefToCCommandLineT struct {
// contains filtered or unexported fields
}
func (RefToCCommandLineT) GetCCommandLineT ¶ added in v0.1.5
func (r RefToCCommandLineT) GetCCommandLineT() *CCommandLineT
func (*RefToCCommandLineT) SetCCommandLineT ¶ added in v0.1.5
func (r *RefToCCommandLineT) SetCCommandLineT(p *CCommandLineT)
type RefToCCompletionCallbackT ¶ added in v0.1.5
type RefToCCompletionCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCCompletionCallbackT) GetCCompletionCallbackT ¶ added in v0.1.5
func (r RefToCCompletionCallbackT) GetCCompletionCallbackT() *CCompletionCallbackT
func (*RefToCCompletionCallbackT) SetCCompletionCallbackT ¶ added in v0.1.5
func (r *RefToCCompletionCallbackT) SetCCompletionCallbackT(p *CCompletionCallbackT)
type RefToCContextMenuHandlerT ¶ added in v0.1.5
type RefToCContextMenuHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCContextMenuHandlerT) GetCContextMenuHandlerT ¶ added in v0.1.5
func (r RefToCContextMenuHandlerT) GetCContextMenuHandlerT() *CContextMenuHandlerT
func (*RefToCContextMenuHandlerT) SetCContextMenuHandlerT ¶ added in v0.1.5
func (r *RefToCContextMenuHandlerT) SetCContextMenuHandlerT(p *CContextMenuHandlerT)
type RefToCContextMenuParamsT ¶ added in v0.1.5
type RefToCContextMenuParamsT struct {
// contains filtered or unexported fields
}
func (RefToCContextMenuParamsT) GetCContextMenuParamsT ¶ added in v0.1.5
func (r RefToCContextMenuParamsT) GetCContextMenuParamsT() *CContextMenuParamsT
func (*RefToCContextMenuParamsT) SetCContextMenuParamsT ¶ added in v0.1.5
func (r *RefToCContextMenuParamsT) SetCContextMenuParamsT(p *CContextMenuParamsT)
type RefToCCookieManagerT ¶ added in v0.1.5
type RefToCCookieManagerT struct {
// contains filtered or unexported fields
}
func (RefToCCookieManagerT) GetCCookieManagerT ¶ added in v0.1.5
func (r RefToCCookieManagerT) GetCCookieManagerT() *CCookieManagerT
func (*RefToCCookieManagerT) SetCCookieManagerT ¶ added in v0.1.5
func (r *RefToCCookieManagerT) SetCCookieManagerT(p *CCookieManagerT)
type RefToCCookieVisitorT ¶ added in v0.1.5
type RefToCCookieVisitorT struct {
// contains filtered or unexported fields
}
func (RefToCCookieVisitorT) GetCCookieVisitorT ¶ added in v0.1.5
func (r RefToCCookieVisitorT) GetCCookieVisitorT() *CCookieVisitorT
func (*RefToCCookieVisitorT) SetCCookieVisitorT ¶ added in v0.1.5
func (r *RefToCCookieVisitorT) SetCCookieVisitorT(p *CCookieVisitorT)
type RefToCDeleteCookiesCallbackT ¶ added in v0.1.5
type RefToCDeleteCookiesCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCDeleteCookiesCallbackT) GetCDeleteCookiesCallbackT ¶ added in v0.1.5
func (r RefToCDeleteCookiesCallbackT) GetCDeleteCookiesCallbackT() *CDeleteCookiesCallbackT
func (*RefToCDeleteCookiesCallbackT) SetCDeleteCookiesCallbackT ¶ added in v0.1.5
func (r *RefToCDeleteCookiesCallbackT) SetCDeleteCookiesCallbackT(p *CDeleteCookiesCallbackT)
type RefToCDialogHandlerT ¶ added in v0.1.5
type RefToCDialogHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCDialogHandlerT) GetCDialogHandlerT ¶ added in v0.1.5
func (r RefToCDialogHandlerT) GetCDialogHandlerT() *CDialogHandlerT
func (*RefToCDialogHandlerT) SetCDialogHandlerT ¶ added in v0.1.5
func (r *RefToCDialogHandlerT) SetCDialogHandlerT(p *CDialogHandlerT)
type RefToCDictionaryValueT ¶
type RefToCDictionaryValueT struct {
// contains filtered or unexported fields
}
func (RefToCDictionaryValueT) GetCDictionaryValueT ¶
func (r RefToCDictionaryValueT) GetCDictionaryValueT() *CDictionaryValueT
func (*RefToCDictionaryValueT) SetCDictionaryValueT ¶
func (r *RefToCDictionaryValueT) SetCDictionaryValueT(p *CDictionaryValueT)
type RefToCDisplayHandlerT ¶ added in v0.1.5
type RefToCDisplayHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCDisplayHandlerT) GetCDisplayHandlerT ¶ added in v0.1.5
func (r RefToCDisplayHandlerT) GetCDisplayHandlerT() *CDisplayHandlerT
func (*RefToCDisplayHandlerT) SetCDisplayHandlerT ¶ added in v0.1.5
func (r *RefToCDisplayHandlerT) SetCDisplayHandlerT(p *CDisplayHandlerT)
type RefToCDomdocumentT ¶ added in v0.1.5
type RefToCDomdocumentT struct {
// contains filtered or unexported fields
}
func (RefToCDomdocumentT) GetCDomdocumentT ¶ added in v0.1.5
func (r RefToCDomdocumentT) GetCDomdocumentT() *CDomdocumentT
func (*RefToCDomdocumentT) SetCDomdocumentT ¶ added in v0.1.5
func (r *RefToCDomdocumentT) SetCDomdocumentT(p *CDomdocumentT)
type RefToCDomnodeT ¶ added in v0.1.5
type RefToCDomnodeT struct {
// contains filtered or unexported fields
}
func (RefToCDomnodeT) GetCDomnodeT ¶ added in v0.1.5
func (r RefToCDomnodeT) GetCDomnodeT() *CDomnodeT
func (*RefToCDomnodeT) SetCDomnodeT ¶ added in v0.1.5
func (r *RefToCDomnodeT) SetCDomnodeT(p *CDomnodeT)
type RefToCDomvisitorT ¶ added in v0.1.5
type RefToCDomvisitorT struct {
// contains filtered or unexported fields
}
func (RefToCDomvisitorT) GetCDomvisitorT ¶ added in v0.1.5
func (r RefToCDomvisitorT) GetCDomvisitorT() *CDomvisitorT
func (*RefToCDomvisitorT) SetCDomvisitorT ¶ added in v0.1.5
func (r *RefToCDomvisitorT) SetCDomvisitorT(p *CDomvisitorT)
type RefToCDownloadHandlerT ¶ added in v0.1.5
type RefToCDownloadHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCDownloadHandlerT) GetCDownloadHandlerT ¶ added in v0.1.5
func (r RefToCDownloadHandlerT) GetCDownloadHandlerT() *CDownloadHandlerT
func (*RefToCDownloadHandlerT) SetCDownloadHandlerT ¶ added in v0.1.5
func (r *RefToCDownloadHandlerT) SetCDownloadHandlerT(p *CDownloadHandlerT)
type RefToCDownloadImageCallbackT ¶ added in v0.1.5
type RefToCDownloadImageCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCDownloadImageCallbackT) GetCDownloadImageCallbackT ¶ added in v0.1.5
func (r RefToCDownloadImageCallbackT) GetCDownloadImageCallbackT() *CDownloadImageCallbackT
func (*RefToCDownloadImageCallbackT) SetCDownloadImageCallbackT ¶ added in v0.1.5
func (r *RefToCDownloadImageCallbackT) SetCDownloadImageCallbackT(p *CDownloadImageCallbackT)
type RefToCDownloadItemCallbackT ¶ added in v0.1.5
type RefToCDownloadItemCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCDownloadItemCallbackT) GetCDownloadItemCallbackT ¶ added in v0.1.5
func (r RefToCDownloadItemCallbackT) GetCDownloadItemCallbackT() *CDownloadItemCallbackT
func (*RefToCDownloadItemCallbackT) SetCDownloadItemCallbackT ¶ added in v0.1.5
func (r *RefToCDownloadItemCallbackT) SetCDownloadItemCallbackT(p *CDownloadItemCallbackT)
type RefToCDownloadItemT ¶ added in v0.1.5
type RefToCDownloadItemT struct {
// contains filtered or unexported fields
}
func (RefToCDownloadItemT) GetCDownloadItemT ¶ added in v0.1.5
func (r RefToCDownloadItemT) GetCDownloadItemT() *CDownloadItemT
func (*RefToCDownloadItemT) SetCDownloadItemT ¶ added in v0.1.5
func (r *RefToCDownloadItemT) SetCDownloadItemT(p *CDownloadItemT)
type RefToCDragDataT ¶ added in v0.1.5
type RefToCDragDataT struct {
// contains filtered or unexported fields
}
func (RefToCDragDataT) GetCDragDataT ¶ added in v0.1.5
func (r RefToCDragDataT) GetCDragDataT() *CDragDataT
func (*RefToCDragDataT) SetCDragDataT ¶ added in v0.1.5
func (r *RefToCDragDataT) SetCDragDataT(p *CDragDataT)
type RefToCDragHandlerT ¶ added in v0.1.5
type RefToCDragHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCDragHandlerT) GetCDragHandlerT ¶ added in v0.1.5
func (r RefToCDragHandlerT) GetCDragHandlerT() *CDragHandlerT
func (*RefToCDragHandlerT) SetCDragHandlerT ¶ added in v0.1.5
func (r *RefToCDragHandlerT) SetCDragHandlerT(p *CDragHandlerT)
type RefToCExtensionHandlerT ¶ added in v0.1.5
type RefToCExtensionHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCExtensionHandlerT) GetCExtensionHandlerT ¶ added in v0.1.5
func (r RefToCExtensionHandlerT) GetCExtensionHandlerT() *CExtensionHandlerT
func (*RefToCExtensionHandlerT) SetCExtensionHandlerT ¶ added in v0.1.5
func (r *RefToCExtensionHandlerT) SetCExtensionHandlerT(p *CExtensionHandlerT)
type RefToCExtensionT ¶ added in v0.1.5
type RefToCExtensionT struct {
// contains filtered or unexported fields
}
func (RefToCExtensionT) GetCExtensionT ¶ added in v0.1.5
func (r RefToCExtensionT) GetCExtensionT() *CExtensionT
func (*RefToCExtensionT) SetCExtensionT ¶ added in v0.1.5
func (r *RefToCExtensionT) SetCExtensionT(p *CExtensionT)
type RefToCFileDialogCallbackT ¶ added in v0.1.5
type RefToCFileDialogCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCFileDialogCallbackT) GetCFileDialogCallbackT ¶ added in v0.1.5
func (r RefToCFileDialogCallbackT) GetCFileDialogCallbackT() *CFileDialogCallbackT
func (*RefToCFileDialogCallbackT) SetCFileDialogCallbackT ¶ added in v0.1.5
func (r *RefToCFileDialogCallbackT) SetCFileDialogCallbackT(p *CFileDialogCallbackT)
type RefToCFindHandlerT ¶ added in v0.1.5
type RefToCFindHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCFindHandlerT) GetCFindHandlerT ¶ added in v0.1.5
func (r RefToCFindHandlerT) GetCFindHandlerT() *CFindHandlerT
func (*RefToCFindHandlerT) SetCFindHandlerT ¶ added in v0.1.5
func (r *RefToCFindHandlerT) SetCFindHandlerT(p *CFindHandlerT)
type RefToCFocusHandlerT ¶ added in v0.1.5
type RefToCFocusHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCFocusHandlerT) GetCFocusHandlerT ¶ added in v0.1.5
func (r RefToCFocusHandlerT) GetCFocusHandlerT() *CFocusHandlerT
func (*RefToCFocusHandlerT) SetCFocusHandlerT ¶ added in v0.1.5
func (r *RefToCFocusHandlerT) SetCFocusHandlerT(p *CFocusHandlerT)
type RefToCFrameT ¶
type RefToCFrameT struct {
// contains filtered or unexported fields
}
func (RefToCFrameT) GetCFrameT ¶
func (r RefToCFrameT) GetCFrameT() *CFrameT
func (*RefToCFrameT) SetCFrameT ¶
func (r *RefToCFrameT) SetCFrameT(p *CFrameT)
type RefToCGetExtensionResourceCallbackT ¶ added in v0.1.5
type RefToCGetExtensionResourceCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCGetExtensionResourceCallbackT) GetCGetExtensionResourceCallbackT ¶ added in v0.1.5
func (r RefToCGetExtensionResourceCallbackT) GetCGetExtensionResourceCallbackT() *CGetExtensionResourceCallbackT
func (*RefToCGetExtensionResourceCallbackT) SetCGetExtensionResourceCallbackT ¶ added in v0.1.5
func (r *RefToCGetExtensionResourceCallbackT) SetCGetExtensionResourceCallbackT(p *CGetExtensionResourceCallbackT)
type RefToCImageT ¶ added in v0.1.5
type RefToCImageT struct {
// contains filtered or unexported fields
}
func (RefToCImageT) GetCImageT ¶ added in v0.1.5
func (r RefToCImageT) GetCImageT() *CImageT
func (*RefToCImageT) SetCImageT ¶ added in v0.1.5
func (r *RefToCImageT) SetCImageT(p *CImageT)
type RefToCJsdialogCallbackT ¶ added in v0.1.5
type RefToCJsdialogCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCJsdialogCallbackT) GetCJsdialogCallbackT ¶ added in v0.1.5
func (r RefToCJsdialogCallbackT) GetCJsdialogCallbackT() *CJsdialogCallbackT
func (*RefToCJsdialogCallbackT) SetCJsdialogCallbackT ¶ added in v0.1.5
func (r *RefToCJsdialogCallbackT) SetCJsdialogCallbackT(p *CJsdialogCallbackT)
type RefToCJsdialogHandlerT ¶ added in v0.1.5
type RefToCJsdialogHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCJsdialogHandlerT) GetCJsdialogHandlerT ¶ added in v0.1.5
func (r RefToCJsdialogHandlerT) GetCJsdialogHandlerT() *CJsdialogHandlerT
func (*RefToCJsdialogHandlerT) SetCJsdialogHandlerT ¶ added in v0.1.5
func (r *RefToCJsdialogHandlerT) SetCJsdialogHandlerT(p *CJsdialogHandlerT)
type RefToCKeyboardHandlerT ¶ added in v0.1.5
type RefToCKeyboardHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCKeyboardHandlerT) GetCKeyboardHandlerT ¶ added in v0.1.5
func (r RefToCKeyboardHandlerT) GetCKeyboardHandlerT() *CKeyboardHandlerT
func (*RefToCKeyboardHandlerT) SetCKeyboardHandlerT ¶ added in v0.1.5
func (r *RefToCKeyboardHandlerT) SetCKeyboardHandlerT(p *CKeyboardHandlerT)
type RefToCLifeSpanHandlerT ¶
type RefToCLifeSpanHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCLifeSpanHandlerT) GetCLifeSpanHandlerT ¶
func (r RefToCLifeSpanHandlerT) GetCLifeSpanHandlerT() *CLifeSpanHandlerT
func (*RefToCLifeSpanHandlerT) SetCLifeSpanHandlerT ¶
func (r *RefToCLifeSpanHandlerT) SetCLifeSpanHandlerT(p *CLifeSpanHandlerT)
type RefToCListValueT ¶
type RefToCListValueT struct {
// contains filtered or unexported fields
}
func (RefToCListValueT) GetCListValueT ¶
func (r RefToCListValueT) GetCListValueT() *CListValueT
func (*RefToCListValueT) SetCListValueT ¶
func (r *RefToCListValueT) SetCListValueT(p *CListValueT)
type RefToCLoadHandlerT ¶
type RefToCLoadHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCLoadHandlerT) GetCLoadHandlerT ¶
func (r RefToCLoadHandlerT) GetCLoadHandlerT() *CLoadHandlerT
func (*RefToCLoadHandlerT) SetCLoadHandlerT ¶
func (r *RefToCLoadHandlerT) SetCLoadHandlerT(p *CLoadHandlerT)
type RefToCMenuModelDelegateT ¶ added in v0.1.5
type RefToCMenuModelDelegateT struct {
// contains filtered or unexported fields
}
func (RefToCMenuModelDelegateT) GetCMenuModelDelegateT ¶ added in v0.1.5
func (r RefToCMenuModelDelegateT) GetCMenuModelDelegateT() *CMenuModelDelegateT
func (*RefToCMenuModelDelegateT) SetCMenuModelDelegateT ¶ added in v0.1.5
func (r *RefToCMenuModelDelegateT) SetCMenuModelDelegateT(p *CMenuModelDelegateT)
type RefToCMenuModelT ¶ added in v0.1.5
type RefToCMenuModelT struct {
// contains filtered or unexported fields
}
func (RefToCMenuModelT) GetCMenuModelT ¶ added in v0.1.5
func (r RefToCMenuModelT) GetCMenuModelT() *CMenuModelT
func (*RefToCMenuModelT) SetCMenuModelT ¶ added in v0.1.5
func (r *RefToCMenuModelT) SetCMenuModelT(p *CMenuModelT)
type RefToCNavigationEntryT ¶ added in v0.1.5
type RefToCNavigationEntryT struct {
// contains filtered or unexported fields
}
func (RefToCNavigationEntryT) GetCNavigationEntryT ¶ added in v0.1.5
func (r RefToCNavigationEntryT) GetCNavigationEntryT() *CNavigationEntryT
func (*RefToCNavigationEntryT) SetCNavigationEntryT ¶ added in v0.1.5
func (r *RefToCNavigationEntryT) SetCNavigationEntryT(p *CNavigationEntryT)
type RefToCNavigationEntryVisitorT ¶ added in v0.1.5
type RefToCNavigationEntryVisitorT struct {
// contains filtered or unexported fields
}
func (RefToCNavigationEntryVisitorT) GetCNavigationEntryVisitorT ¶ added in v0.1.5
func (r RefToCNavigationEntryVisitorT) GetCNavigationEntryVisitorT() *CNavigationEntryVisitorT
func (*RefToCNavigationEntryVisitorT) SetCNavigationEntryVisitorT ¶ added in v0.1.5
func (r *RefToCNavigationEntryVisitorT) SetCNavigationEntryVisitorT(p *CNavigationEntryVisitorT)
type RefToCPdfPrintCallbackT ¶ added in v0.1.5
type RefToCPdfPrintCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCPdfPrintCallbackT) GetCPdfPrintCallbackT ¶ added in v0.1.5
func (r RefToCPdfPrintCallbackT) GetCPdfPrintCallbackT() *CPdfPrintCallbackT
func (*RefToCPdfPrintCallbackT) SetCPdfPrintCallbackT ¶ added in v0.1.5
func (r *RefToCPdfPrintCallbackT) SetCPdfPrintCallbackT(p *CPdfPrintCallbackT)
type RefToCPostDataElementT ¶ added in v0.1.5
type RefToCPostDataElementT struct {
// contains filtered or unexported fields
}
func (RefToCPostDataElementT) GetCPostDataElementT ¶ added in v0.1.5
func (r RefToCPostDataElementT) GetCPostDataElementT() *CPostDataElementT
func (*RefToCPostDataElementT) SetCPostDataElementT ¶ added in v0.1.5
func (r *RefToCPostDataElementT) SetCPostDataElementT(p *CPostDataElementT)
type RefToCPostDataT ¶ added in v0.1.5
type RefToCPostDataT struct {
// contains filtered or unexported fields
}
func (RefToCPostDataT) GetCPostDataT ¶ added in v0.1.5
func (r RefToCPostDataT) GetCPostDataT() *CPostDataT
func (*RefToCPostDataT) SetCPostDataT ¶ added in v0.1.5
func (r *RefToCPostDataT) SetCPostDataT(p *CPostDataT)
type RefToCPrintDialogCallbackT ¶ added in v0.1.5
type RefToCPrintDialogCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCPrintDialogCallbackT) GetCPrintDialogCallbackT ¶ added in v0.1.5
func (r RefToCPrintDialogCallbackT) GetCPrintDialogCallbackT() *CPrintDialogCallbackT
func (*RefToCPrintDialogCallbackT) SetCPrintDialogCallbackT ¶ added in v0.1.5
func (r *RefToCPrintDialogCallbackT) SetCPrintDialogCallbackT(p *CPrintDialogCallbackT)
type RefToCPrintHandlerT ¶ added in v0.1.5
type RefToCPrintHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCPrintHandlerT) GetCPrintHandlerT ¶ added in v0.1.5
func (r RefToCPrintHandlerT) GetCPrintHandlerT() *CPrintHandlerT
func (*RefToCPrintHandlerT) SetCPrintHandlerT ¶ added in v0.1.5
func (r *RefToCPrintHandlerT) SetCPrintHandlerT(p *CPrintHandlerT)
type RefToCPrintJobCallbackT ¶ added in v0.1.5
type RefToCPrintJobCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCPrintJobCallbackT) GetCPrintJobCallbackT ¶ added in v0.1.5
func (r RefToCPrintJobCallbackT) GetCPrintJobCallbackT() *CPrintJobCallbackT
func (*RefToCPrintJobCallbackT) SetCPrintJobCallbackT ¶ added in v0.1.5
func (r *RefToCPrintJobCallbackT) SetCPrintJobCallbackT(p *CPrintJobCallbackT)
type RefToCPrintSettingsT ¶ added in v0.1.5
type RefToCPrintSettingsT struct {
// contains filtered or unexported fields
}
func (RefToCPrintSettingsT) GetCPrintSettingsT ¶ added in v0.1.5
func (r RefToCPrintSettingsT) GetCPrintSettingsT() *CPrintSettingsT
func (*RefToCPrintSettingsT) SetCPrintSettingsT ¶ added in v0.1.5
func (r *RefToCPrintSettingsT) SetCPrintSettingsT(p *CPrintSettingsT)
type RefToCProcessMessageT ¶
type RefToCProcessMessageT struct {
// contains filtered or unexported fields
}
func (RefToCProcessMessageT) GetCProcessMessageT ¶
func (r RefToCProcessMessageT) GetCProcessMessageT() *CProcessMessageT
func (*RefToCProcessMessageT) SetCProcessMessageT ¶
func (r *RefToCProcessMessageT) SetCProcessMessageT(p *CProcessMessageT)
type RefToCReadHandlerT ¶ added in v0.1.5
type RefToCReadHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCReadHandlerT) GetCReadHandlerT ¶ added in v0.1.5
func (r RefToCReadHandlerT) GetCReadHandlerT() *CReadHandlerT
func (*RefToCReadHandlerT) SetCReadHandlerT ¶ added in v0.1.5
func (r *RefToCReadHandlerT) SetCReadHandlerT(p *CReadHandlerT)
type RefToCRegisterCdmCallbackT ¶ added in v0.1.5
type RefToCRegisterCdmCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCRegisterCdmCallbackT) GetCRegisterCdmCallbackT ¶ added in v0.1.5
func (r RefToCRegisterCdmCallbackT) GetCRegisterCdmCallbackT() *CRegisterCdmCallbackT
func (*RefToCRegisterCdmCallbackT) SetCRegisterCdmCallbackT ¶ added in v0.1.5
func (r *RefToCRegisterCdmCallbackT) SetCRegisterCdmCallbackT(p *CRegisterCdmCallbackT)
type RefToCRenderHandlerT ¶ added in v0.1.5
type RefToCRenderHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCRenderHandlerT) GetCRenderHandlerT ¶ added in v0.1.5
func (r RefToCRenderHandlerT) GetCRenderHandlerT() *CRenderHandlerT
func (*RefToCRenderHandlerT) SetCRenderHandlerT ¶ added in v0.1.5
func (r *RefToCRenderHandlerT) SetCRenderHandlerT(p *CRenderHandlerT)
type RefToCRenderProcessHandlerT ¶
type RefToCRenderProcessHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCRenderProcessHandlerT) GetCRenderProcessHandlerT ¶
func (r RefToCRenderProcessHandlerT) GetCRenderProcessHandlerT() *CRenderProcessHandlerT
func (*RefToCRenderProcessHandlerT) SetCRenderProcessHandlerT ¶
func (r *RefToCRenderProcessHandlerT) SetCRenderProcessHandlerT(p *CRenderProcessHandlerT)
type RefToCRequestCallbackT ¶ added in v0.1.5
type RefToCRequestCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCRequestCallbackT) GetCRequestCallbackT ¶ added in v0.1.5
func (r RefToCRequestCallbackT) GetCRequestCallbackT() *CRequestCallbackT
func (*RefToCRequestCallbackT) SetCRequestCallbackT ¶ added in v0.1.5
func (r *RefToCRequestCallbackT) SetCRequestCallbackT(p *CRequestCallbackT)
type RefToCRequestContextHandlerT ¶ added in v0.1.5
type RefToCRequestContextHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCRequestContextHandlerT) GetCRequestContextHandlerT ¶ added in v0.1.5
func (r RefToCRequestContextHandlerT) GetCRequestContextHandlerT() *CRequestContextHandlerT
func (*RefToCRequestContextHandlerT) SetCRequestContextHandlerT ¶ added in v0.1.5
func (r *RefToCRequestContextHandlerT) SetCRequestContextHandlerT(p *CRequestContextHandlerT)
type RefToCRequestContextT ¶ added in v0.1.5
type RefToCRequestContextT struct {
// contains filtered or unexported fields
}
func (RefToCRequestContextT) GetCRequestContextT ¶ added in v0.1.5
func (r RefToCRequestContextT) GetCRequestContextT() *CRequestContextT
func (*RefToCRequestContextT) SetCRequestContextT ¶ added in v0.1.5
func (r *RefToCRequestContextT) SetCRequestContextT(p *CRequestContextT)
type RefToCRequestHandlerT ¶ added in v0.1.5
type RefToCRequestHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCRequestHandlerT) GetCRequestHandlerT ¶ added in v0.1.5
func (r RefToCRequestHandlerT) GetCRequestHandlerT() *CRequestHandlerT
func (*RefToCRequestHandlerT) SetCRequestHandlerT ¶ added in v0.1.5
func (r *RefToCRequestHandlerT) SetCRequestHandlerT(p *CRequestHandlerT)
type RefToCRequestT ¶
type RefToCRequestT struct {
// contains filtered or unexported fields
}
func (RefToCRequestT) GetCRequestT ¶
func (r RefToCRequestT) GetCRequestT() *CRequestT
func (*RefToCRequestT) SetCRequestT ¶
func (r *RefToCRequestT) SetCRequestT(p *CRequestT)
type RefToCResolveCallbackT ¶ added in v0.1.5
type RefToCResolveCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCResolveCallbackT) GetCResolveCallbackT ¶ added in v0.1.5
func (r RefToCResolveCallbackT) GetCResolveCallbackT() *CResolveCallbackT
func (*RefToCResolveCallbackT) SetCResolveCallbackT ¶ added in v0.1.5
func (r *RefToCResolveCallbackT) SetCResolveCallbackT(p *CResolveCallbackT)
type RefToCResourceBundleHandlerT ¶ added in v0.1.5
type RefToCResourceBundleHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCResourceBundleHandlerT) GetCResourceBundleHandlerT ¶ added in v0.1.5
func (r RefToCResourceBundleHandlerT) GetCResourceBundleHandlerT() *CResourceBundleHandlerT
func (*RefToCResourceBundleHandlerT) SetCResourceBundleHandlerT ¶ added in v0.1.5
func (r *RefToCResourceBundleHandlerT) SetCResourceBundleHandlerT(p *CResourceBundleHandlerT)
type RefToCResourceHandlerT ¶
type RefToCResourceHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCResourceHandlerT) GetCResourceHandlerT ¶
func (r RefToCResourceHandlerT) GetCResourceHandlerT() *CResourceHandlerT
func (*RefToCResourceHandlerT) SetCResourceHandlerT ¶
func (r *RefToCResourceHandlerT) SetCResourceHandlerT(p *CResourceHandlerT)
type RefToCResponseFilterT ¶ added in v0.1.5
type RefToCResponseFilterT struct {
// contains filtered or unexported fields
}
func (RefToCResponseFilterT) GetCResponseFilterT ¶ added in v0.1.5
func (r RefToCResponseFilterT) GetCResponseFilterT() *CResponseFilterT
func (*RefToCResponseFilterT) SetCResponseFilterT ¶ added in v0.1.5
func (r *RefToCResponseFilterT) SetCResponseFilterT(p *CResponseFilterT)
type RefToCResponseT ¶
type RefToCResponseT struct {
// contains filtered or unexported fields
}
func (RefToCResponseT) GetCResponseT ¶
func (r RefToCResponseT) GetCResponseT() *CResponseT
func (*RefToCResponseT) SetCResponseT ¶
func (r *RefToCResponseT) SetCResponseT(p *CResponseT)
type RefToCRunContextMenuCallbackT ¶ added in v0.1.5
type RefToCRunContextMenuCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCRunContextMenuCallbackT) GetCRunContextMenuCallbackT ¶ added in v0.1.5
func (r RefToCRunContextMenuCallbackT) GetCRunContextMenuCallbackT() *CRunContextMenuCallbackT
func (*RefToCRunContextMenuCallbackT) SetCRunContextMenuCallbackT ¶ added in v0.1.5
func (r *RefToCRunContextMenuCallbackT) SetCRunContextMenuCallbackT(p *CRunContextMenuCallbackT)
type RefToCRunFileDialogCallbackT ¶
type RefToCRunFileDialogCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCRunFileDialogCallbackT) GetCRunFileDialogCallbackT ¶
func (r RefToCRunFileDialogCallbackT) GetCRunFileDialogCallbackT() *CRunFileDialogCallbackT
func (*RefToCRunFileDialogCallbackT) SetCRunFileDialogCallbackT ¶
func (r *RefToCRunFileDialogCallbackT) SetCRunFileDialogCallbackT(p *CRunFileDialogCallbackT)
type RefToCSchemeHandlerFactoryT ¶
type RefToCSchemeHandlerFactoryT struct {
// contains filtered or unexported fields
}
func (RefToCSchemeHandlerFactoryT) GetCSchemeHandlerFactoryT ¶
func (r RefToCSchemeHandlerFactoryT) GetCSchemeHandlerFactoryT() *CSchemeHandlerFactoryT
func (*RefToCSchemeHandlerFactoryT) SetCSchemeHandlerFactoryT ¶
func (r *RefToCSchemeHandlerFactoryT) SetCSchemeHandlerFactoryT(p *CSchemeHandlerFactoryT)
type RefToCSchemeRegistrarT ¶ added in v0.1.5
type RefToCSchemeRegistrarT struct {
// contains filtered or unexported fields
}
func (RefToCSchemeRegistrarT) GetCSchemeRegistrarT ¶ added in v0.1.5
func (r RefToCSchemeRegistrarT) GetCSchemeRegistrarT() *CSchemeRegistrarT
func (*RefToCSchemeRegistrarT) SetCSchemeRegistrarT ¶ added in v0.1.5
func (r *RefToCSchemeRegistrarT) SetCSchemeRegistrarT(p *CSchemeRegistrarT)
type RefToCSelectClientCertificateCallbackT ¶ added in v0.1.5
type RefToCSelectClientCertificateCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCSelectClientCertificateCallbackT) GetCSelectClientCertificateCallbackT ¶ added in v0.1.5
func (r RefToCSelectClientCertificateCallbackT) GetCSelectClientCertificateCallbackT() *CSelectClientCertificateCallbackT
func (*RefToCSelectClientCertificateCallbackT) SetCSelectClientCertificateCallbackT ¶ added in v0.1.5
func (r *RefToCSelectClientCertificateCallbackT) SetCSelectClientCertificateCallbackT(p *CSelectClientCertificateCallbackT)
type RefToCSetCookieCallbackT ¶ added in v0.1.5
type RefToCSetCookieCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCSetCookieCallbackT) GetCSetCookieCallbackT ¶ added in v0.1.5
func (r RefToCSetCookieCallbackT) GetCSetCookieCallbackT() *CSetCookieCallbackT
func (*RefToCSetCookieCallbackT) SetCSetCookieCallbackT ¶ added in v0.1.5
func (r *RefToCSetCookieCallbackT) SetCSetCookieCallbackT(p *CSetCookieCallbackT)
type RefToCSslinfoT ¶ added in v0.1.5
type RefToCSslinfoT struct {
// contains filtered or unexported fields
}
func (RefToCSslinfoT) GetCSslinfoT ¶ added in v0.1.5
func (r RefToCSslinfoT) GetCSslinfoT() *CSslinfoT
func (*RefToCSslinfoT) SetCSslinfoT ¶ added in v0.1.5
func (r *RefToCSslinfoT) SetCSslinfoT(p *CSslinfoT)
type RefToCSslstatusT ¶ added in v0.1.5
type RefToCSslstatusT struct {
// contains filtered or unexported fields
}
func (RefToCSslstatusT) GetCSslstatusT ¶ added in v0.1.5
func (r RefToCSslstatusT) GetCSslstatusT() *CSslstatusT
func (*RefToCSslstatusT) SetCSslstatusT ¶ added in v0.1.5
func (r *RefToCSslstatusT) SetCSslstatusT(p *CSslstatusT)
type RefToCStreamReaderT ¶ added in v0.1.5
type RefToCStreamReaderT struct {
// contains filtered or unexported fields
}
func (RefToCStreamReaderT) GetCStreamReaderT ¶ added in v0.1.5
func (r RefToCStreamReaderT) GetCStreamReaderT() *CStreamReaderT
func (*RefToCStreamReaderT) SetCStreamReaderT ¶ added in v0.1.5
func (r *RefToCStreamReaderT) SetCStreamReaderT(p *CStreamReaderT)
type RefToCStreamWriterT ¶ added in v0.1.5
type RefToCStreamWriterT struct {
// contains filtered or unexported fields
}
func (RefToCStreamWriterT) GetCStreamWriterT ¶ added in v0.1.5
func (r RefToCStreamWriterT) GetCStreamWriterT() *CStreamWriterT
func (*RefToCStreamWriterT) SetCStreamWriterT ¶ added in v0.1.5
func (r *RefToCStreamWriterT) SetCStreamWriterT(p *CStreamWriterT)
type RefToCStringVisitorT ¶ added in v0.1.5
type RefToCStringVisitorT struct {
// contains filtered or unexported fields
}
func (RefToCStringVisitorT) GetCStringVisitorT ¶ added in v0.1.5
func (r RefToCStringVisitorT) GetCStringVisitorT() *CStringVisitorT
func (*RefToCStringVisitorT) SetCStringVisitorT ¶ added in v0.1.5
func (r *RefToCStringVisitorT) SetCStringVisitorT(p *CStringVisitorT)
type RefToCTaskRunnerT ¶ added in v0.1.5
type RefToCTaskRunnerT struct {
// contains filtered or unexported fields
}
func (RefToCTaskRunnerT) GetCTaskRunnerT ¶ added in v0.1.5
func (r RefToCTaskRunnerT) GetCTaskRunnerT() *CTaskRunnerT
func (*RefToCTaskRunnerT) SetCTaskRunnerT ¶ added in v0.1.5
func (r *RefToCTaskRunnerT) SetCTaskRunnerT(p *CTaskRunnerT)
type RefToCTaskT ¶ added in v0.1.5
type RefToCTaskT struct {
// contains filtered or unexported fields
}
func (RefToCTaskT) GetCTaskT ¶ added in v0.1.5
func (r RefToCTaskT) GetCTaskT() *CTaskT
func (*RefToCTaskT) SetCTaskT ¶ added in v0.1.5
func (r *RefToCTaskT) SetCTaskT(p *CTaskT)
type RefToCV8accessorT ¶ added in v0.1.5
type RefToCV8accessorT struct {
// contains filtered or unexported fields
}
func (RefToCV8accessorT) GetCV8accessorT ¶ added in v0.1.5
func (r RefToCV8accessorT) GetCV8accessorT() *CV8accessorT
func (*RefToCV8accessorT) SetCV8accessorT ¶ added in v0.1.5
func (r *RefToCV8accessorT) SetCV8accessorT(p *CV8accessorT)
type RefToCV8arrayBufferReleaseCallbackT ¶
type RefToCV8arrayBufferReleaseCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCV8arrayBufferReleaseCallbackT) GetCV8arrayBufferReleaseCallbackT ¶
func (r RefToCV8arrayBufferReleaseCallbackT) GetCV8arrayBufferReleaseCallbackT() *CV8arrayBufferReleaseCallbackT
func (*RefToCV8arrayBufferReleaseCallbackT) SetCV8arrayBufferReleaseCallbackT ¶
func (r *RefToCV8arrayBufferReleaseCallbackT) SetCV8arrayBufferReleaseCallbackT(p *CV8arrayBufferReleaseCallbackT)
type RefToCV8contextT ¶
type RefToCV8contextT struct {
// contains filtered or unexported fields
}
func (RefToCV8contextT) GetCV8contextT ¶
func (r RefToCV8contextT) GetCV8contextT() *CV8contextT
func (*RefToCV8contextT) SetCV8contextT ¶
func (r *RefToCV8contextT) SetCV8contextT(p *CV8contextT)
type RefToCV8exceptionT ¶
type RefToCV8exceptionT struct {
// contains filtered or unexported fields
}
func (RefToCV8exceptionT) GetCV8exceptionT ¶
func (r RefToCV8exceptionT) GetCV8exceptionT() *CV8exceptionT
func (*RefToCV8exceptionT) SetCV8exceptionT ¶
func (r *RefToCV8exceptionT) SetCV8exceptionT(p *CV8exceptionT)
type RefToCV8handlerT ¶
type RefToCV8handlerT struct {
// contains filtered or unexported fields
}
func (RefToCV8handlerT) GetCV8handlerT ¶
func (r RefToCV8handlerT) GetCV8handlerT() *CV8handlerT
func (*RefToCV8handlerT) SetCV8handlerT ¶
func (r *RefToCV8handlerT) SetCV8handlerT(p *CV8handlerT)
type RefToCV8interceptorT ¶ added in v0.1.5
type RefToCV8interceptorT struct {
// contains filtered or unexported fields
}
func (RefToCV8interceptorT) GetCV8interceptorT ¶ added in v0.1.5
func (r RefToCV8interceptorT) GetCV8interceptorT() *CV8interceptorT
func (*RefToCV8interceptorT) SetCV8interceptorT ¶ added in v0.1.5
func (r *RefToCV8interceptorT) SetCV8interceptorT(p *CV8interceptorT)
type RefToCV8stackFrameT ¶ added in v0.1.5
type RefToCV8stackFrameT struct {
// contains filtered or unexported fields
}
func (RefToCV8stackFrameT) GetCV8stackFrameT ¶ added in v0.1.5
func (r RefToCV8stackFrameT) GetCV8stackFrameT() *CV8stackFrameT
func (*RefToCV8stackFrameT) SetCV8stackFrameT ¶ added in v0.1.5
func (r *RefToCV8stackFrameT) SetCV8stackFrameT(p *CV8stackFrameT)
type RefToCV8stackTraceT ¶
type RefToCV8stackTraceT struct {
// contains filtered or unexported fields
}
func (RefToCV8stackTraceT) GetCV8stackTraceT ¶
func (r RefToCV8stackTraceT) GetCV8stackTraceT() *CV8stackTraceT
func (*RefToCV8stackTraceT) SetCV8stackTraceT ¶
func (r *RefToCV8stackTraceT) SetCV8stackTraceT(p *CV8stackTraceT)
type RefToCV8valueT ¶
type RefToCV8valueT struct {
// contains filtered or unexported fields
}
func (RefToCV8valueT) GetCV8valueT ¶
func (r RefToCV8valueT) GetCV8valueT() *CV8valueT
func (*RefToCV8valueT) SetCV8valueT ¶
func (r *RefToCV8valueT) SetCV8valueT(p *CV8valueT)
type RefToCValueT ¶
type RefToCValueT struct {
// contains filtered or unexported fields
}
func (RefToCValueT) GetCValueT ¶
func (r RefToCValueT) GetCValueT() *CValueT
func (*RefToCValueT) SetCValueT ¶
func (r *RefToCValueT) SetCValueT(p *CValueT)
type RefToCWebPluginInfoT ¶ added in v0.1.5
type RefToCWebPluginInfoT struct {
// contains filtered or unexported fields
}
func (RefToCWebPluginInfoT) GetCWebPluginInfoT ¶ added in v0.1.5
func (r RefToCWebPluginInfoT) GetCWebPluginInfoT() *CWebPluginInfoT
func (*RefToCWebPluginInfoT) SetCWebPluginInfoT ¶ added in v0.1.5
func (r *RefToCWebPluginInfoT) SetCWebPluginInfoT(p *CWebPluginInfoT)
type RefToCWebPluginInfoVisitorT ¶ added in v0.1.5
type RefToCWebPluginInfoVisitorT struct {
// contains filtered or unexported fields
}
func (RefToCWebPluginInfoVisitorT) GetCWebPluginInfoVisitorT ¶ added in v0.1.5
func (r RefToCWebPluginInfoVisitorT) GetCWebPluginInfoVisitorT() *CWebPluginInfoVisitorT
func (*RefToCWebPluginInfoVisitorT) SetCWebPluginInfoVisitorT ¶ added in v0.1.5
func (r *RefToCWebPluginInfoVisitorT) SetCWebPluginInfoVisitorT(p *CWebPluginInfoVisitorT)
type RefToCWebPluginUnstableCallbackT ¶ added in v0.1.5
type RefToCWebPluginUnstableCallbackT struct {
// contains filtered or unexported fields
}
func (RefToCWebPluginUnstableCallbackT) GetCWebPluginUnstableCallbackT ¶ added in v0.1.5
func (r RefToCWebPluginUnstableCallbackT) GetCWebPluginUnstableCallbackT() *CWebPluginUnstableCallbackT
func (*RefToCWebPluginUnstableCallbackT) SetCWebPluginUnstableCallbackT ¶ added in v0.1.5
func (r *RefToCWebPluginUnstableCallbackT) SetCWebPluginUnstableCallbackT(p *CWebPluginUnstableCallbackT)
type RefToCWriteHandlerT ¶ added in v0.1.5
type RefToCWriteHandlerT struct {
// contains filtered or unexported fields
}
func (RefToCWriteHandlerT) GetCWriteHandlerT ¶ added in v0.1.5
func (r RefToCWriteHandlerT) GetCWriteHandlerT() *CWriteHandlerT
func (*RefToCWriteHandlerT) SetCWriteHandlerT ¶ added in v0.1.5
func (r *RefToCWriteHandlerT) SetCWriteHandlerT(p *CWriteHandlerT)
type RefToCX509certPrincipalT ¶ added in v0.1.5
type RefToCX509certPrincipalT struct {
// contains filtered or unexported fields
}
func (RefToCX509certPrincipalT) GetCX509certPrincipalT ¶ added in v0.1.5
func (r RefToCX509certPrincipalT) GetCX509certPrincipalT() *CX509certPrincipalT
func (*RefToCX509certPrincipalT) SetCX509certPrincipalT ¶ added in v0.1.5
func (r *RefToCX509certPrincipalT) SetCX509certPrincipalT(p *CX509certPrincipalT)
type RefToCX509certificateT ¶ added in v0.1.5
type RefToCX509certificateT struct {
// contains filtered or unexported fields
}
func (RefToCX509certificateT) GetCX509certificateT ¶ added in v0.1.5
func (r RefToCX509certificateT) GetCX509certificateT() *CX509certificateT
func (*RefToCX509certificateT) SetCX509certificateT ¶ added in v0.1.5
func (r *RefToCX509certificateT) SetCX509certificateT(p *CX509certificateT)
type ReleaseBufferHandler ¶ added in v0.1.5
type ReleaseBufferHandler interface { ReleaseBuffer( self *CV8arrayBufferReleaseCallbackT, buffer unsafe.Pointer, ) }
/ Called to release |buffer| when the ArrayBuffer JS object is garbage collected. |buffer| is the value that was passed to CreateArrayBuffer along with this object. /
type RunContextMenuHandler ¶ added in v0.1.5
type RunContextMenuHandler interface { RunContextMenu( self *CContextMenuHandlerT, browser *CBrowserT, frame *CFrameT, params *CContextMenuParamsT, model *CMenuModelT, callback *CRunContextMenuCallbackT, ) bool }
/ Called to allow custom display of the context menu. |params| provides information about the context menu state. |model| contains the context menu model resulting from OnBeforeContextMenu. For custom display return true (1) and execute |callback| either synchronously or asynchronously with the selected command ID. For default display return false (0). Do not keep references to |params| or |model| outside of this callback. /
type Settings ¶
type Settings struct { LogSeverity CLogSeverityT NoSandbox int MultiThreadedMessageLoop int RemoteDebuggingPort int }
type StartDraggingHandler ¶ added in v0.1.5
type StartDraggingHandler interface { StartDragging( self *CRenderHandlerT, browser *CBrowserT, drag_data *CDragDataT, allowed_ops CDragOperationsMaskT, x int, y int, ) bool }
/ Called when the user starts dragging content in the web view. Contextual information about the dragged content is supplied by |drag_data|. (|x|, |y|) is the drag start location in screen coordinates. OS APIs that run a system message loop may be used within the StartDragging call.
Return false (0) to abort the drag operation. Don't call any of cef_browser_host_t::DragSource*Ended* functions after returning false (0).
Return true (1) to handle the drag operation. Call cef_browser_host_t::DragSourceEndedAt and DragSourceSystemDragEnded either synchronously or asynchronously to inform the web view that the drag operation has ended. /
type UnhandledCloseSubmenuHandler ¶ added in v0.1.5
type UnhandledCloseSubmenuHandler interface { CMenuModelDelegateT, menu_model *CMenuModelT, is_rtl int, ) }self *
/ Called on unhandled close submenu keyboard commands. |is_rtl| will be true (1) if the menu is displaying a right-to-left language. /
type UnhandledOpenSubmenuHandler ¶ added in v0.1.5
type UnhandledOpenSubmenuHandler interface { CMenuModelDelegateT, menu_model *CMenuModelT, is_rtl int, ) }self *
/ Called on unhandled open submenu keyboard commands. |is_rtl| will be true (1) if the menu is displaying a right-to-left language. /
type UpdateDragCursorHandler ¶ added in v0.1.5
type UpdateDragCursorHandler interface { UpdateDragCursor( self *CRenderHandlerT, browser *CBrowserT, operation CDragOperationsMaskT, ) }
/ Called when the web view wants to update the mouse cursor during a drag & drop operation. |operation| describes the allowed operation (none, move, copy, link). /