From 6850e6cdd77f519e3ab0d5a5073c30998c81518e Mon Sep 17 00:00:00 2001 From: Richard Wilkes Date: Tue, 23 Jul 2019 11:51:22 -0700 Subject: [PATCH] Update to 74.1.19+gb62bacf+chromium-74.0.3729.157 --- .golangci.yml | 23 ++++++++++++++++++ cef/AccessibilityHandler_gen.c | 2 +- cef/AccessibilityHandler_gen.go | 11 ++++++--- cef/AccessibilityHandler_gen.h | 2 +- cef/App_gen.c | 2 +- cef/App_gen.go | 14 ++++++++--- cef/App_gen.h | 2 +- cef/AudioHandler_gen.c | 2 +- cef/AudioHandler_gen.go | 12 +++++++--- cef/AudioHandler_gen.h | 2 +- cef/AuthCallback_gen.c | 2 +- cef/AuthCallback_gen.go | 11 ++++++--- cef/AuthCallback_gen.h | 2 +- cef/BaseRefCounted_gen.go | 2 +- cef/BaseScoped_gen.go | 2 +- cef/BeforeDownloadCallback_gen.c | 2 +- cef/BeforeDownloadCallback_gen.go | 10 +++++--- cef/BeforeDownloadCallback_gen.h | 2 +- cef/BinaryValue_gen.go | 5 ++-- cef/BoxLayoutSettings_gen.go | 2 +- cef/BoxLayout_gen.go | 2 +- cef/BrowserHost_gen.go | 5 ++-- cef/BrowserProcessHandler_gen.c | 2 +- cef/BrowserProcessHandler_gen.go | 14 ++++++++--- cef/BrowserProcessHandler_gen.h | 2 +- cef/BrowserSettings_gen.go | 2 +- cef/BrowserViewDelegate_gen.c | 2 +- cef/BrowserViewDelegate_gen.go | 13 ++++++++--- cef/BrowserViewDelegate_gen.h | 2 +- cef/BrowserView_gen.go | 2 +- cef/Browser_gen.go | 2 +- cef/ButtonDelegate_gen.c | 2 +- cef/ButtonDelegate_gen.go | 11 ++++++--- cef/ButtonDelegate_gen.h | 2 +- cef/Button_gen.go | 2 +- cef/Callback_gen.c | 2 +- cef/Callback_gen.go | 11 ++++++--- cef/Callback_gen.h | 2 +- cef/Client_gen.c | 2 +- cef/Client_gen.go | 24 ++++++++++++++++--- cef/Client_gen.h | 2 +- cef/CommandLine_gen.go | 5 ++-- cef/CompletionCallback_gen.c | 2 +- cef/CompletionCallback_gen.go | 10 +++++--- cef/CompletionCallback_gen.h | 2 +- cef/CompositionUnderline_gen.go | 2 +- cef/ContextMenuHandler_gen.c | 2 +- cef/ContextMenuHandler_gen.go | 13 ++++++++--- cef/ContextMenuHandler_gen.h | 2 +- cef/ContextMenuParams_gen.go | 2 +- cef/CookieManager_gen.go | 2 +- cef/CookieVisitor_gen.c | 2 +- cef/CookieVisitor_gen.go | 10 +++++--- cef/CookieVisitor_gen.h | 2 +- cef/Cookie_gen.go | 2 +- cef/CursorInfo_gen.go | 7 ++++-- cef/DeleteCookiesCallback_gen.c | 2 +- cef/DeleteCookiesCallback_gen.go | 10 +++++--- cef/DeleteCookiesCallback_gen.h | 2 +- cef/DialogHandler_gen.c | 2 +- cef/DialogHandler_gen.go | 10 +++++--- cef/DialogHandler_gen.h | 2 +- cef/DictionaryValue_gen.go | 2 +- cef/DisplayHandler_gen.c | 2 +- cef/DisplayHandler_gen.go | 18 ++++++++++++--- cef/DisplayHandler_gen.h | 2 +- cef/Display_gen.go | 2 +- cef/Domdocument_gen.go | 2 +- cef/Domnode_gen.go | 2 +- cef/Domvisitor_gen.go | 2 +- cef/DownloadHandler_gen.c | 2 +- cef/DownloadHandler_gen.go | 11 ++++++--- cef/DownloadHandler_gen.h | 2 +- cef/DownloadImageCallback_gen.c | 2 +- cef/DownloadImageCallback_gen.go | 10 +++++--- cef/DownloadImageCallback_gen.h | 2 +- cef/DownloadItemCallback_gen.c | 2 +- cef/DownloadItemCallback_gen.go | 12 +++++++--- cef/DownloadItemCallback_gen.h | 2 +- cef/DownloadItem_gen.go | 2 +- cef/DragData_gen.go | 2 +- cef/DragHandler_gen.c | 2 +- cef/DragHandler_gen.go | 11 ++++++--- cef/DragHandler_gen.h | 2 +- cef/DraggableRegion_gen.go | 2 +- cef/ExtensionHandler_gen.c | 2 +- cef/ExtensionHandler_gen.go | 17 +++++++++++--- cef/ExtensionHandler_gen.h | 2 +- cef/Extension_gen.go | 2 +- cef/FileDialogCallback_gen.c | 2 +- cef/FileDialogCallback_gen.go | 11 ++++++--- cef/FileDialogCallback_gen.h | 2 +- cef/FillLayout_gen.go | 7 ++++-- cef/FindHandler_gen.c | 2 +- cef/FindHandler_gen.go | 10 +++++--- cef/FindHandler_gen.h | 2 +- cef/FocusHandler_gen.c | 2 +- cef/FocusHandler_gen.go | 12 +++++++--- cef/FocusHandler_gen.h | 2 +- cef/Frame_gen.go | 2 +- cef/GetExtensionResourceCallback_gen.c | 2 +- cef/GetExtensionResourceCallback_gen.go | 11 ++++++--- cef/GetExtensionResourceCallback_gen.h | 2 +- cef/Image_gen.go | 5 ++-- cef/Insets_gen.go | 2 +- cef/JsdialogCallback_gen.c | 2 +- cef/JsdialogCallback_gen.go | 10 +++++--- cef/JsdialogCallback_gen.h | 2 +- cef/JsdialogHandler_gen.c | 2 +- cef/JsdialogHandler_gen.go | 13 ++++++++--- cef/JsdialogHandler_gen.h | 2 +- cef/KeyEvent_gen.go | 2 +- cef/KeyboardHandler_gen.c | 2 +- cef/KeyboardHandler_gen.go | 11 ++++++--- cef/KeyboardHandler_gen.h | 2 +- cef/LabelButton_gen.go | 2 +- cef/Layout_gen.go | 2 +- cef/LifeSpanHandler_gen.c | 2 +- cef/LifeSpanHandler_gen.go | 13 ++++++++--- cef/LifeSpanHandler_gen.h | 2 +- cef/ListValue_gen.go | 2 +- cef/LoadHandler_gen.c | 2 +- cef/LoadHandler_gen.go | 13 ++++++++--- cef/LoadHandler_gen.h | 2 +- cef/MainArgs_other.go | 7 ++++-- cef/MainArgs_windows.go | 7 ++++-- cef/MenuButtonDelegate_gen.c | 2 +- cef/MenuButtonDelegate_gen.go | 10 +++++--- cef/MenuButtonDelegate_gen.h | 2 +- cef/MenuButtonPressedLock_gen.go | 7 ++++-- cef/MenuButton_gen.go | 2 +- cef/MenuModelDelegate_gen.c | 2 +- cef/MenuModelDelegate_gen.go | 16 ++++++++++--- cef/MenuModelDelegate_gen.h | 2 +- cef/MenuModel_gen.go | 2 +- cef/MouseEvent_gen.go | 2 +- cef/NavigationEntryVisitor_gen.c | 2 +- cef/NavigationEntryVisitor_gen.go | 10 +++++--- cef/NavigationEntryVisitor_gen.h | 2 +- cef/NavigationEntry_gen.go | 2 +- cef/PDFPrintCallback_gen.c | 2 +- cef/PDFPrintCallback_gen.go | 10 +++++--- cef/PDFPrintCallback_gen.h | 2 +- cef/PDFPrintSettings_gen.go | 2 +- cef/PanelDelegate_gen.go | 7 ++++-- cef/Panel_gen.go | 2 +- cef/Point_gen.go | 2 +- cef/PopupFeatures_gen.go | 2 +- cef/PostDataElement_gen.go | 5 ++-- cef/PostData_gen.go | 2 +- cef/PrintDialogCallback_gen.c | 2 +- cef/PrintDialogCallback_gen.go | 11 ++++++--- cef/PrintDialogCallback_gen.h | 2 +- cef/PrintHandler_gen.c | 2 +- cef/PrintHandler_gen.go | 15 +++++++++--- cef/PrintHandler_gen.h | 2 +- cef/PrintJobCallback_gen.c | 2 +- cef/PrintJobCallback_gen.go | 10 +++++--- cef/PrintJobCallback_gen.h | 2 +- cef/PrintSettings_gen.go | 2 +- cef/ProcessMessage_gen.go | 2 +- cef/Range_gen.go | 2 +- cef/ReadHandler_gen.c | 2 +- cef/ReadHandler_gen.go | 14 ++++++++--- cef/ReadHandler_gen.h | 2 +- cef/Rect_gen.go | 2 +- cef/RegisterCdmCallback_gen.c | 2 +- cef/RegisterCdmCallback_gen.go | 10 +++++--- cef/RegisterCdmCallback_gen.h | 2 +- cef/RenderHandler_gen.c | 2 +- cef/RenderHandler_gen.go | 25 +++++++++++++++++--- cef/RenderHandler_gen.h | 2 +- cef/RenderProcessHandler_gen.c | 2 +- cef/RenderProcessHandler_gen.go | 19 ++++++++++++--- cef/RenderProcessHandler_gen.h | 2 +- cef/RequestCallback_gen.c | 2 +- cef/RequestCallback_gen.go | 11 ++++++--- cef/RequestCallback_gen.h | 2 +- cef/RequestContextHandler_gen.c | 2 +- cef/RequestContextHandler_gen.go | 12 +++++++--- cef/RequestContextHandler_gen.h | 2 +- cef/RequestContextSettings_gen.go | 2 +- cef/RequestContext_gen.go | 2 +- cef/RequestHandler_gen.c | 2 +- cef/RequestHandler_gen.go | 27 +++++++++++++++++++--- cef/RequestHandler_gen.h | 2 +- cef/Request_gen.go | 2 +- cef/ResolveCallback_gen.c | 2 +- cef/ResolveCallback_gen.go | 10 +++++--- cef/ResolveCallback_gen.h | 2 +- cef/ResourceBundleHandler_gen.c | 2 +- cef/ResourceBundleHandler_gen.go | 12 +++++++--- cef/ResourceBundleHandler_gen.h | 2 +- cef/ResourceBundle_gen.go | 5 ++-- cef/ResourceHandler_gen.c | 2 +- cef/ResourceHandler_gen.go | 15 +++++++++--- cef/ResourceHandler_gen.h | 2 +- cef/ResponseFilter_gen.c | 2 +- cef/ResponseFilter_gen.go | 11 ++++++--- cef/ResponseFilter_gen.h | 2 +- cef/Response_gen.go | 2 +- cef/RunContextMenuCallback_gen.c | 2 +- cef/RunContextMenuCallback_gen.go | 11 ++++++--- cef/RunContextMenuCallback_gen.h | 2 +- cef/RunFileDialogCallback_gen.c | 2 +- cef/RunFileDialogCallback_gen.go | 10 +++++--- cef/RunFileDialogCallback_gen.h | 2 +- cef/SchemeHandlerFactory_gen.go | 2 +- cef/SchemeRegistrar_gen.go | 2 +- cef/ScreenInfo_gen.go | 2 +- cef/ScrollView_gen.go | 2 +- cef/SelectClientCertificateCallback_gen.c | 2 +- cef/SelectClientCertificateCallback_gen.go | 10 +++++--- cef/SelectClientCertificateCallback_gen.h | 2 +- cef/ServerHandler_gen.c | 2 +- cef/ServerHandler_gen.go | 17 +++++++++++--- cef/ServerHandler_gen.h | 2 +- cef/Server_gen.go | 5 ++-- cef/SetCookieCallback_gen.c | 2 +- cef/SetCookieCallback_gen.go | 10 +++++--- cef/SetCookieCallback_gen.h | 2 +- cef/Settings_gen.go | 9 +++++--- cef/Size_gen.go | 2 +- cef/Sslinfo_gen.go | 2 +- cef/Sslstatus_gen.go | 2 +- cef/StreamReader_gen.go | 5 ++-- cef/StreamWriter_gen.go | 5 ++-- cef/StringVisitor_gen.c | 2 +- cef/StringVisitor_gen.go | 10 +++++--- cef/StringVisitor_gen.h | 2 +- cef/TaskRunner_gen.go | 2 +- cef/Task_gen.c | 2 +- cef/Task_gen.go | 10 +++++--- cef/Task_gen.h | 2 +- cef/TextfieldDelegate_gen.c | 2 +- cef/TextfieldDelegate_gen.go | 11 ++++++--- cef/TextfieldDelegate_gen.h | 2 +- cef/Textfield_gen.go | 2 +- cef/Time_gen.go | 2 +- cef/TouchEvent_gen.go | 2 +- cef/Urlparts_gen.go | 2 +- cef/UrlrequestClient_gen.c | 2 +- cef/UrlrequestClient_gen.go | 14 ++++++++--- cef/UrlrequestClient_gen.h | 2 +- cef/Urlrequest_gen.go | 2 +- cef/V8accessor_gen.go | 2 +- cef/V8arrayBufferReleaseCallback_gen.c | 2 +- cef/V8arrayBufferReleaseCallback_gen.go | 10 +++++--- cef/V8arrayBufferReleaseCallback_gen.h | 2 +- cef/V8context_gen.go | 2 +- cef/V8exception_gen.go | 2 +- cef/V8handler_gen.go | 2 +- cef/V8interceptor_gen.go | 2 +- cef/V8stackFrame_gen.go | 2 +- cef/V8stackTrace_gen.go | 2 +- cef/V8value_gen.go | 2 +- cef/Value_gen.go | 2 +- cef/ViewDelegate_gen.c | 2 +- cef/ViewDelegate_gen.go | 17 +++++++++++--- cef/ViewDelegate_gen.h | 2 +- cef/View_gen.go | 2 +- cef/WaitableEvent_gen.go | 2 +- cef/WebPluginInfoVisitor_gen.c | 2 +- cef/WebPluginInfoVisitor_gen.go | 10 +++++--- cef/WebPluginInfoVisitor_gen.h | 2 +- cef/WebPluginInfo_gen.go | 2 +- cef/WebPluginUnstableCallback_gen.c | 2 +- cef/WebPluginUnstableCallback_gen.go | 10 +++++--- cef/WebPluginUnstableCallback_gen.h | 2 +- cef/WindowDelegate_gen.c | 2 +- cef/WindowDelegate_gen.go | 19 ++++++++++++--- cef/WindowDelegate_gen.h | 2 +- cef/WindowInfo.go | 9 +++++--- cef/WindowInfo_darwin.go | 3 ++- cef/WindowInfo_linux.go | 3 ++- cef/WindowInfo_windows.go | 3 ++- cef/Window_gen.go | 5 ++-- cef/WriteHandler_gen.c | 2 +- cef/WriteHandler_gen.go | 14 ++++++++--- cef/WriteHandler_gen.h | 2 +- cef/X509certPrincipal_gen.go | 2 +- cef/X509certificate_gen.go | 2 +- cef/enums_gen.go | 2 +- cef/functions_gen.go | 5 ++-- cef/refcnt.go | 4 +++- cef/string.go | 3 ++- cef/typedefs_gen.go | 5 ++-- go.mod | 2 +- go.sum | 8 +++---- internal/cefgen/callback.c.tmpl | 2 -- internal/cefgen/callback.go.tmpl | 10 ++++---- internal/cefgen/callback.h.tmpl | 2 -- internal/cefgen/class.go.tmpl | 9 ++++---- internal/cefgen/enum.go.tmpl | 2 -- internal/cefgen/funcdef.go.tmpl | 5 ++-- internal/cefgen/main.go | 1 + internal/cefgen/struct.go.tmpl | 11 +++++---- internal/cefgen/typedef.go.tmpl | 5 ++-- main.go | 2 +- 299 files changed, 947 insertions(+), 465 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 981200e..59930c7 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -81,3 +81,26 @@ issues: - "G304: Potential file inclusion via variable" - "G104: Errors unhandled" - "G204: Subprocess launched with variable" + - "dupImport: package is imported" + exclude-rules: + - path: _gen\.go + linters: + - maligned + - unused + - misspell + - path: _gen\.go + linters: + - govet + text: "stdmethods: method Seek" + - path: _gen\.go + linters: + - gocritic + text: "dupSubExpr: suspicious identical LHS and RHS for `==` operator" + - path: _gen\.go + linters: + - gocritic + text: "paramTypeCombine: " + - path: _gen\.go + linters: + - staticcheck + text: "SA4000: identical expressions on the left and right side of the '==' operator" diff --git a/cef/AccessibilityHandler_gen.c b/cef/AccessibilityHandler_gen.c index de056c8..8475994 100644 --- a/cef/AccessibilityHandler_gen.c +++ b/cef/AccessibilityHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "AccessibilityHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/AccessibilityHandler_gen.go b/cef/AccessibilityHandler_gen.go index 6990f5d..2ccfa77 100644 --- a/cef/AccessibilityHandler_gen.go +++ b/cef/AccessibilityHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "AccessibilityHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "AccessibilityHandler_gen.h" + "C" +) + // AccessibilityHandlerProxy defines methods required for using AccessibilityHandler. type AccessibilityHandlerProxy interface { OnAccessibilityTreeChange(self *AccessibilityHandler, value *Value) @@ -62,6 +65,7 @@ func (d *AccessibilityHandler) OnAccessibilityTreeChange(value *Value) { lookupAccessibilityHandlerProxy(d.Base()).OnAccessibilityTreeChange(d, value) } +//nolint:gocritic //export gocef_accessibility_handler_on_accessibility_tree_change func gocef_accessibility_handler_on_accessibility_tree_change(self *C.cef_accessibility_handler_t, value *C.cef_value_t) { me__ := (*AccessibilityHandler)(self) @@ -76,6 +80,7 @@ func (d *AccessibilityHandler) OnAccessibilityLocationChange(value *Value) { lookupAccessibilityHandlerProxy(d.Base()).OnAccessibilityLocationChange(d, value) } +//nolint:gocritic //export gocef_accessibility_handler_on_accessibility_location_change func gocef_accessibility_handler_on_accessibility_location_change(self *C.cef_accessibility_handler_t, value *C.cef_value_t) { me__ := (*AccessibilityHandler)(self) diff --git a/cef/AccessibilityHandler_gen.h b/cef/AccessibilityHandler_gen.h index 65cf346..1f0b255 100644 --- a/cef/AccessibilityHandler_gen.h +++ b/cef/AccessibilityHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_AccessibilityHandler_H_ #define GOCEF_AccessibilityHandler_H_ diff --git a/cef/App_gen.c b/cef/App_gen.c index 2394f52..2c72b11 100644 --- a/cef/App_gen.c +++ b/cef/App_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "App_gen.h" #include "_cgo_export.h" diff --git a/cef/App_gen.go b/cef/App_gen.go index 9972eb7..d9e17f3 100644 --- a/cef/App_gen.go +++ b/cef/App_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "App_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "App_gen.h" + "C" +) + // AppProxy defines methods required for using App. type AppProxy interface { OnBeforeCommandLineProcessing(self *App, process_type string, command_line *CommandLine) @@ -71,6 +74,7 @@ func (d *App) OnBeforeCommandLineProcessing(process_type string, command_line *C lookupAppProxy(d.Base()).OnBeforeCommandLineProcessing(d, process_type, command_line) } +//nolint:gocritic //export gocef_app_on_before_command_line_processing func gocef_app_on_before_command_line_processing(self *C.cef_app_t, process_type *C.cef_string_t, command_line *C.cef_command_line_t) { me__ := (*App)(self) @@ -88,6 +92,7 @@ func (d *App) OnRegisterCustomSchemes(registrar *SchemeRegistrar) { lookupAppProxy(d.Base()).OnRegisterCustomSchemes(d, registrar) } +//nolint:gocritic //export gocef_app_on_register_custom_schemes func gocef_app_on_register_custom_schemes(self *C.cef_app_t, registrar *C.cef_scheme_registrar_t) { me__ := (*App)(self) @@ -104,6 +109,7 @@ func (d *App) GetResourceBundleHandler() *ResourceBundleHandler { return lookupAppProxy(d.Base()).GetResourceBundleHandler(d) } +//nolint:gocritic //export gocef_app_get_resource_bundle_handler func gocef_app_get_resource_bundle_handler(self *C.cef_app_t) *C.cef_resource_bundle_handler_t { me__ := (*App)(self) @@ -118,6 +124,7 @@ func (d *App) GetBrowserProcessHandler() *BrowserProcessHandler { return lookupAppProxy(d.Base()).GetBrowserProcessHandler(d) } +//nolint:gocritic //export gocef_app_get_browser_process_handler func gocef_app_get_browser_process_handler(self *C.cef_app_t) *C.cef_browser_process_handler_t { me__ := (*App)(self) @@ -132,6 +139,7 @@ func (d *App) GetRenderProcessHandler() *RenderProcessHandler { return lookupAppProxy(d.Base()).GetRenderProcessHandler(d) } +//nolint:gocritic //export gocef_app_get_render_process_handler func gocef_app_get_render_process_handler(self *C.cef_app_t) *C.cef_render_process_handler_t { me__ := (*App)(self) diff --git a/cef/App_gen.h b/cef/App_gen.h index d31066c..ff5b8ee 100644 --- a/cef/App_gen.h +++ b/cef/App_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_App_H_ #define GOCEF_App_H_ diff --git a/cef/AudioHandler_gen.c b/cef/AudioHandler_gen.c index e5d76f6..21a50d0 100644 --- a/cef/AudioHandler_gen.c +++ b/cef/AudioHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "AudioHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/AudioHandler_gen.go b/cef/AudioHandler_gen.go index 33257e0..c1e2b1b 100644 --- a/cef/AudioHandler_gen.go +++ b/cef/AudioHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "AudioHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "AudioHandler_gen.h" + "C" +) + // AudioHandlerProxy defines methods required for using AudioHandler. type AudioHandlerProxy interface { OnAudioStreamStarted(self *AudioHandler, browser *Browser, audio_stream_id, channels int32, channel_layout ChannelLayout, sample_rate, frames_per_buffer int32) @@ -68,6 +71,7 @@ func (d *AudioHandler) OnAudioStreamStarted(browser *Browser, audio_stream_id, c lookupAudioHandlerProxy(d.Base()).OnAudioStreamStarted(d, browser, audio_stream_id, channels, channel_layout, sample_rate, frames_per_buffer) } +//nolint:gocritic //export gocef_audio_handler_on_audio_stream_started func gocef_audio_handler_on_audio_stream_started(self *C.cef_audio_handler_t, browser *C.cef_browser_t, audio_stream_id C.int, channels C.int, channel_layout C.cef_channel_layout_t, sample_rate C.int, frames_per_buffer C.int) { me__ := (*AudioHandler)(self) @@ -88,6 +92,7 @@ func (d *AudioHandler) OnAudioStreamPacket(browser *Browser, audio_stream_id int lookupAudioHandlerProxy(d.Base()).OnAudioStreamPacket(d, browser, audio_stream_id, data, frames, pts) } +//nolint:gocritic //export gocef_audio_handler_on_audio_stream_packet func gocef_audio_handler_on_audio_stream_packet(self *C.cef_audio_handler_t, browser *C.cef_browser_t, audio_stream_id C.int, data **C.float, frames C.int, pts C.int64) { me__ := (*AudioHandler)(self) @@ -103,6 +108,7 @@ func (d *AudioHandler) OnAudioStreamStopped(browser *Browser, audio_stream_id in lookupAudioHandlerProxy(d.Base()).OnAudioStreamStopped(d, browser, audio_stream_id) } +//nolint:gocritic //export gocef_audio_handler_on_audio_stream_stopped func gocef_audio_handler_on_audio_stream_stopped(self *C.cef_audio_handler_t, browser *C.cef_browser_t, audio_stream_id C.int) { me__ := (*AudioHandler)(self) diff --git a/cef/AudioHandler_gen.h b/cef/AudioHandler_gen.h index 0ac76f8..785e351 100644 --- a/cef/AudioHandler_gen.h +++ b/cef/AudioHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_AudioHandler_H_ #define GOCEF_AudioHandler_H_ diff --git a/cef/AuthCallback_gen.c b/cef/AuthCallback_gen.c index e16ae59..2ef2ac9 100644 --- a/cef/AuthCallback_gen.c +++ b/cef/AuthCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "AuthCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/AuthCallback_gen.go b/cef/AuthCallback_gen.go index fc275bd..d319259 100644 --- a/cef/AuthCallback_gen.go +++ b/cef/AuthCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "AuthCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "AuthCallback_gen.h" + "C" +) + // AuthCallbackProxy defines methods required for using AuthCallback. type AuthCallbackProxy interface { Cont(self *AuthCallback, username, password string) @@ -60,6 +63,7 @@ func (d *AuthCallback) Cont(username, password string) { lookupAuthCallbackProxy(d.Base()).Cont(d, username, password) } +//nolint:gocritic //export gocef_auth_callback_cont func gocef_auth_callback_cont(self *C.cef_auth_callback_t, username *C.cef_string_t, password *C.cef_string_t) { me__ := (*AuthCallback)(self) @@ -75,6 +79,7 @@ func (d *AuthCallback) Cancel() { lookupAuthCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_auth_callback_cancel func gocef_auth_callback_cancel(self *C.cef_auth_callback_t) { me__ := (*AuthCallback)(self) diff --git a/cef/AuthCallback_gen.h b/cef/AuthCallback_gen.h index ff8a91d..18d4aa0 100644 --- a/cef/AuthCallback_gen.h +++ b/cef/AuthCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_AuthCallback_H_ #define GOCEF_AuthCallback_H_ diff --git a/cef/BaseRefCounted_gen.go b/cef/BaseRefCounted_gen.go index e83a3d4..3f8d498 100644 --- a/cef/BaseRefCounted_gen.go +++ b/cef/BaseRefCounted_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/BaseScoped_gen.go b/cef/BaseScoped_gen.go index 6855481..dc8a558 100644 --- a/cef/BaseScoped_gen.go +++ b/cef/BaseScoped_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/BeforeDownloadCallback_gen.c b/cef/BeforeDownloadCallback_gen.c index 6b1daf8..18dd95c 100644 --- a/cef/BeforeDownloadCallback_gen.c +++ b/cef/BeforeDownloadCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "BeforeDownloadCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/BeforeDownloadCallback_gen.go b/cef/BeforeDownloadCallback_gen.go index a5dccae..b6f4d6c 100644 --- a/cef/BeforeDownloadCallback_gen.go +++ b/cef/BeforeDownloadCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "BeforeDownloadCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "BeforeDownloadCallback_gen.h" + "C" +) + // BeforeDownloadCallbackProxy defines methods required for using BeforeDownloadCallback. type BeforeDownloadCallbackProxy interface { Cont(self *BeforeDownloadCallback, download_path string, show_dialog int32) @@ -61,6 +64,7 @@ func (d *BeforeDownloadCallback) Cont(download_path string, show_dialog int32) { lookupBeforeDownloadCallbackProxy(d.Base()).Cont(d, download_path, show_dialog) } +//nolint:gocritic //export gocef_before_download_callback_cont func gocef_before_download_callback_cont(self *C.cef_before_download_callback_t, download_path *C.cef_string_t, show_dialog C.int) { me__ := (*BeforeDownloadCallback)(self) diff --git a/cef/BeforeDownloadCallback_gen.h b/cef/BeforeDownloadCallback_gen.h index 26a7e29..64f4b0b 100644 --- a/cef/BeforeDownloadCallback_gen.h +++ b/cef/BeforeDownloadCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_BeforeDownloadCallback_H_ #define GOCEF_BeforeDownloadCallback_H_ diff --git a/cef/BinaryValue_gen.go b/cef/BinaryValue_gen.go index e892fee..7788bba 100644 --- a/cef/BinaryValue_gen.go +++ b/cef/BinaryValue_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // int gocef_binary_value_is_valid(cef_binary_value_t * self, int (CEF_CALLBACK *callback__)(cef_binary_value_t *)) { return callback__(self); } @@ -12,7 +14,6 @@ import ( // size_t gocef_binary_value_get_size(cef_binary_value_t * self, size_t (CEF_CALLBACK *callback__)(cef_binary_value_t *)) { return callback__(self); } // size_t gocef_binary_value_get_data(cef_binary_value_t * self, void * buffer, size_t buffer_size, size_t data_offset, size_t (CEF_CALLBACK *callback__)(cef_binary_value_t *, void *, size_t, size_t)) { return callback__(self, buffer, buffer_size, data_offset); } "C" - "unsafe" ) // BinaryValue (cef_binary_value_t from include/capi/cef_values_capi.h) diff --git a/cef/BoxLayoutSettings_gen.go b/cef/BoxLayoutSettings_gen.go index aec019f..7179e29 100644 --- a/cef/BoxLayoutSettings_gen.go +++ b/cef/BoxLayoutSettings_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/BoxLayout_gen.go b/cef/BoxLayout_gen.go index aac2c0e..8ae5240 100644 --- a/cef/BoxLayout_gen.go +++ b/cef/BoxLayout_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/BrowserHost_gen.go b/cef/BrowserHost_gen.go index 910e517..808c993 100644 --- a/cef/BrowserHost_gen.go +++ b/cef/BrowserHost_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // cef_browser_t * gocef_browser_host_get_browser(cef_browser_host_t * self, cef_browser_t * (CEF_CALLBACK *callback__)(cef_browser_host_t *)) { return callback__(self); } @@ -64,7 +66,6 @@ import ( // void gocef_browser_host_set_audio_muted(cef_browser_host_t * self, int mute, void (CEF_CALLBACK *callback__)(cef_browser_host_t *, int)) { return callback__(self, mute); } // int gocef_browser_host_is_audio_muted(cef_browser_host_t * self, int (CEF_CALLBACK *callback__)(cef_browser_host_t *)) { return callback__(self); } "C" - "unsafe" ) // BrowserHost (cef_browser_host_t from include/capi/cef_browser_capi.h) diff --git a/cef/BrowserProcessHandler_gen.c b/cef/BrowserProcessHandler_gen.c index 064c206..2acb314 100644 --- a/cef/BrowserProcessHandler_gen.c +++ b/cef/BrowserProcessHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "BrowserProcessHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/BrowserProcessHandler_gen.go b/cef/BrowserProcessHandler_gen.go index 6058140..ba10187 100644 --- a/cef/BrowserProcessHandler_gen.go +++ b/cef/BrowserProcessHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "BrowserProcessHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "BrowserProcessHandler_gen.h" + "C" +) + // BrowserProcessHandlerProxy defines methods required for using BrowserProcessHandler. type BrowserProcessHandlerProxy interface { OnContextInitialized(self *BrowserProcessHandler) @@ -65,6 +68,7 @@ func (d *BrowserProcessHandler) OnContextInitialized() { lookupBrowserProcessHandlerProxy(d.Base()).OnContextInitialized(d) } +//nolint:gocritic //export gocef_browser_process_handler_on_context_initialized func gocef_browser_process_handler_on_context_initialized(self *C.cef_browser_process_handler_t) { me__ := (*BrowserProcessHandler)(self) @@ -82,6 +86,7 @@ func (d *BrowserProcessHandler) OnBeforeChildProcessLaunch(command_line *Command lookupBrowserProcessHandlerProxy(d.Base()).OnBeforeChildProcessLaunch(d, command_line) } +//nolint:gocritic //export gocef_browser_process_handler_on_before_child_process_launch func gocef_browser_process_handler_on_before_child_process_launch(self *C.cef_browser_process_handler_t, command_line *C.cef_command_line_t) { me__ := (*BrowserProcessHandler)(self) @@ -99,6 +104,7 @@ func (d *BrowserProcessHandler) OnRenderProcessThreadCreated(extra_info *ListVal lookupBrowserProcessHandlerProxy(d.Base()).OnRenderProcessThreadCreated(d, extra_info) } +//nolint:gocritic //export gocef_browser_process_handler_on_render_process_thread_created func gocef_browser_process_handler_on_render_process_thread_created(self *C.cef_browser_process_handler_t, extra_info *C.cef_list_value_t) { me__ := (*BrowserProcessHandler)(self) @@ -113,6 +119,7 @@ func (d *BrowserProcessHandler) GetPrintHandler() *PrintHandler { return lookupBrowserProcessHandlerProxy(d.Base()).GetPrintHandler(d) } +//nolint:gocritic //export gocef_browser_process_handler_get_print_handler func gocef_browser_process_handler_get_print_handler(self *C.cef_browser_process_handler_t) *C.cef_print_handler_t { me__ := (*BrowserProcessHandler)(self) @@ -136,6 +143,7 @@ func (d *BrowserProcessHandler) OnScheduleMessagePumpWork(delay_ms int64) { lookupBrowserProcessHandlerProxy(d.Base()).OnScheduleMessagePumpWork(d, delay_ms) } +//nolint:gocritic //export gocef_browser_process_handler_on_schedule_message_pump_work func gocef_browser_process_handler_on_schedule_message_pump_work(self *C.cef_browser_process_handler_t, delay_ms C.int64) { me__ := (*BrowserProcessHandler)(self) diff --git a/cef/BrowserProcessHandler_gen.h b/cef/BrowserProcessHandler_gen.h index 9a779e3..7fa81ad 100644 --- a/cef/BrowserProcessHandler_gen.h +++ b/cef/BrowserProcessHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_BrowserProcessHandler_H_ #define GOCEF_BrowserProcessHandler_H_ diff --git a/cef/BrowserSettings_gen.go b/cef/BrowserSettings_gen.go index 7ceba5f..78b550a 100644 --- a/cef/BrowserSettings_gen.go +++ b/cef/BrowserSettings_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/BrowserViewDelegate_gen.c b/cef/BrowserViewDelegate_gen.c index 6958ad1..2181b23 100644 --- a/cef/BrowserViewDelegate_gen.c +++ b/cef/BrowserViewDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "BrowserViewDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/BrowserViewDelegate_gen.go b/cef/BrowserViewDelegate_gen.go index d879550..4b0b8b6 100644 --- a/cef/BrowserViewDelegate_gen.go +++ b/cef/BrowserViewDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "BrowserViewDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "BrowserViewDelegate_gen.h" + "C" +) + // BrowserViewDelegateProxy defines methods required for using BrowserViewDelegate. type BrowserViewDelegateProxy interface { OnBrowserCreated(self *BrowserViewDelegate, browser_view *BrowserView, browser *Browser) @@ -66,6 +69,7 @@ func (d *BrowserViewDelegate) OnBrowserCreated(browser_view *BrowserView, browse lookupBrowserViewDelegateProxy(d.Base().Base()).OnBrowserCreated(d, browser_view, browser) } +//nolint:gocritic //export gocef_browser_view_delegate_on_browser_created func gocef_browser_view_delegate_on_browser_created(self *C.cef_browser_view_delegate_t, browser_view *C.cef_browser_view_t, browser *C.cef_browser_t) { me__ := (*BrowserViewDelegate)(self) @@ -82,6 +86,7 @@ func (d *BrowserViewDelegate) OnBrowserDestroyed(browser_view *BrowserView, brow lookupBrowserViewDelegateProxy(d.Base().Base()).OnBrowserDestroyed(d, browser_view, browser) } +//nolint:gocritic //export gocef_browser_view_delegate_on_browser_destroyed func gocef_browser_view_delegate_on_browser_destroyed(self *C.cef_browser_view_delegate_t, browser_view *C.cef_browser_view_t, browser *C.cef_browser_t) { me__ := (*BrowserViewDelegate)(self) @@ -99,6 +104,7 @@ func (d *BrowserViewDelegate) GetDelegateForPopupBrowserView(browser_view *Brows return lookupBrowserViewDelegateProxy(d.Base().Base()).GetDelegateForPopupBrowserView(d, browser_view, settings, client, is_devtools) } +//nolint:gocritic //export gocef_browser_view_delegate_get_delegate_for_popup_browser_view func gocef_browser_view_delegate_get_delegate_for_popup_browser_view(self *C.cef_browser_view_delegate_t, browser_view *C.cef_browser_view_t, settings *C.cef_browser_settings_t, client *C.cef_client_t, is_devtools C.int) *C.cef_browser_view_delegate_t { me__ := (*BrowserViewDelegate)(self) @@ -119,6 +125,7 @@ func (d *BrowserViewDelegate) OnPopupBrowserViewCreated(browser_view, popup_brow return lookupBrowserViewDelegateProxy(d.Base().Base()).OnPopupBrowserViewCreated(d, browser_view, popup_browser_view, is_devtools) } +//nolint:gocritic //export gocef_browser_view_delegate_on_popup_browser_view_created func gocef_browser_view_delegate_on_popup_browser_view_created(self *C.cef_browser_view_delegate_t, browser_view *C.cef_browser_view_t, popup_browser_view *C.cef_browser_view_t, is_devtools C.int) C.int { me__ := (*BrowserViewDelegate)(self) diff --git a/cef/BrowserViewDelegate_gen.h b/cef/BrowserViewDelegate_gen.h index 3a6fea9..c9a8627 100644 --- a/cef/BrowserViewDelegate_gen.h +++ b/cef/BrowserViewDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_BrowserViewDelegate_H_ #define GOCEF_BrowserViewDelegate_H_ diff --git a/cef/BrowserView_gen.go b/cef/BrowserView_gen.go index 7d7582a..16db5b7 100644 --- a/cef/BrowserView_gen.go +++ b/cef/BrowserView_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Browser_gen.go b/cef/Browser_gen.go index 71fbd83..a322a85 100644 --- a/cef/Browser_gen.go +++ b/cef/Browser_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/ButtonDelegate_gen.c b/cef/ButtonDelegate_gen.c index 8f8c104..86ba3ff 100644 --- a/cef/ButtonDelegate_gen.c +++ b/cef/ButtonDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ButtonDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/ButtonDelegate_gen.go b/cef/ButtonDelegate_gen.go index 14728bf..b3024e2 100644 --- a/cef/ButtonDelegate_gen.go +++ b/cef/ButtonDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ButtonDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ButtonDelegate_gen.h" + "C" +) + // ButtonDelegateProxy defines methods required for using ButtonDelegate. type ButtonDelegateProxy interface { OnButtonPressed(self *ButtonDelegate, button *Button) @@ -61,6 +64,7 @@ func (d *ButtonDelegate) OnButtonPressed(button *Button) { lookupButtonDelegateProxy(d.Base().Base()).OnButtonPressed(d, button) } +//nolint:gocritic //export gocef_button_delegate_on_button_pressed func gocef_button_delegate_on_button_pressed(self *C.cef_button_delegate_t, button *C.cef_button_t) { me__ := (*ButtonDelegate)(self) @@ -74,6 +78,7 @@ func (d *ButtonDelegate) OnButtonStateChanged(button *Button) { lookupButtonDelegateProxy(d.Base().Base()).OnButtonStateChanged(d, button) } +//nolint:gocritic //export gocef_button_delegate_on_button_state_changed func gocef_button_delegate_on_button_state_changed(self *C.cef_button_delegate_t, button *C.cef_button_t) { me__ := (*ButtonDelegate)(self) diff --git a/cef/ButtonDelegate_gen.h b/cef/ButtonDelegate_gen.h index 43f4b6d..f736ee3 100644 --- a/cef/ButtonDelegate_gen.h +++ b/cef/ButtonDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ButtonDelegate_H_ #define GOCEF_ButtonDelegate_H_ diff --git a/cef/Button_gen.go b/cef/Button_gen.go index 122072c..c18fe80 100644 --- a/cef/Button_gen.go +++ b/cef/Button_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Callback_gen.c b/cef/Callback_gen.c index 627050b..c348299 100644 --- a/cef/Callback_gen.c +++ b/cef/Callback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "Callback_gen.h" #include "_cgo_export.h" diff --git a/cef/Callback_gen.go b/cef/Callback_gen.go index 2f219ea..a8fbdb3 100644 --- a/cef/Callback_gen.go +++ b/cef/Callback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "Callback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "Callback_gen.h" + "C" +) + // CallbackProxy defines methods required for using Callback. type CallbackProxy interface { Cont(self *Callback) @@ -59,6 +62,7 @@ func (d *Callback) Cont() { lookupCallbackProxy(d.Base()).Cont(d) } +//nolint:gocritic //export gocef_callback_cont func gocef_callback_cont(self *C.cef_callback_t) { me__ := (*Callback)(self) @@ -72,6 +76,7 @@ func (d *Callback) Cancel() { lookupCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_callback_cancel func gocef_callback_cancel(self *C.cef_callback_t) { me__ := (*Callback)(self) diff --git a/cef/Callback_gen.h b/cef/Callback_gen.h index a1abcb5..a393572 100644 --- a/cef/Callback_gen.h +++ b/cef/Callback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_Callback_H_ #define GOCEF_Callback_H_ diff --git a/cef/Client_gen.c b/cef/Client_gen.c index 76e8234..487ba63 100644 --- a/cef/Client_gen.c +++ b/cef/Client_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "Client_gen.h" #include "_cgo_export.h" diff --git a/cef/Client_gen.go b/cef/Client_gen.go index 781044a..0c787c3 100644 --- a/cef/Client_gen.go +++ b/cef/Client_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "Client_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "Client_gen.h" + "C" +) + // ClientProxy defines methods required for using Client. type ClientProxy interface { GetAudioHandler(self *Client) *AudioHandler @@ -72,6 +75,7 @@ func (d *Client) GetAudioHandler() *AudioHandler { return lookupClientProxy(d.Base()).GetAudioHandler(d) } +//nolint:gocritic //export gocef_client_get_audio_handler func gocef_client_get_audio_handler(self *C.cef_client_t) *C.cef_audio_handler_t { me__ := (*Client)(self) @@ -86,6 +90,7 @@ func (d *Client) GetContextMenuHandler() *ContextMenuHandler { return lookupClientProxy(d.Base()).GetContextMenuHandler(d) } +//nolint:gocritic //export gocef_client_get_context_menu_handler func gocef_client_get_context_menu_handler(self *C.cef_client_t) *C.cef_context_menu_handler_t { me__ := (*Client)(self) @@ -100,6 +105,7 @@ func (d *Client) GetDialogHandler() *DialogHandler { return lookupClientProxy(d.Base()).GetDialogHandler(d) } +//nolint:gocritic //export gocef_client_get_dialog_handler func gocef_client_get_dialog_handler(self *C.cef_client_t) *C.cef_dialog_handler_t { me__ := (*Client)(self) @@ -113,6 +119,7 @@ func (d *Client) GetDisplayHandler() *DisplayHandler { return lookupClientProxy(d.Base()).GetDisplayHandler(d) } +//nolint:gocritic //export gocef_client_get_display_handler func gocef_client_get_display_handler(self *C.cef_client_t) *C.cef_display_handler_t { me__ := (*Client)(self) @@ -127,6 +134,7 @@ func (d *Client) GetDownloadHandler() *DownloadHandler { return lookupClientProxy(d.Base()).GetDownloadHandler(d) } +//nolint:gocritic //export gocef_client_get_download_handler func gocef_client_get_download_handler(self *C.cef_client_t) *C.cef_download_handler_t { me__ := (*Client)(self) @@ -140,6 +148,7 @@ func (d *Client) GetDragHandler() *DragHandler { return lookupClientProxy(d.Base()).GetDragHandler(d) } +//nolint:gocritic //export gocef_client_get_drag_handler func gocef_client_get_drag_handler(self *C.cef_client_t) *C.cef_drag_handler_t { me__ := (*Client)(self) @@ -153,6 +162,7 @@ func (d *Client) GetFindHandler() *FindHandler { return lookupClientProxy(d.Base()).GetFindHandler(d) } +//nolint:gocritic //export gocef_client_get_find_handler func gocef_client_get_find_handler(self *C.cef_client_t) *C.cef_find_handler_t { me__ := (*Client)(self) @@ -166,6 +176,7 @@ func (d *Client) GetFocusHandler() *FocusHandler { return lookupClientProxy(d.Base()).GetFocusHandler(d) } +//nolint:gocritic //export gocef_client_get_focus_handler func gocef_client_get_focus_handler(self *C.cef_client_t) *C.cef_focus_handler_t { me__ := (*Client)(self) @@ -180,6 +191,7 @@ func (d *Client) GetJsdialogHandler() *JsdialogHandler { return lookupClientProxy(d.Base()).GetJsdialogHandler(d) } +//nolint:gocritic //export gocef_client_get_jsdialog_handler func gocef_client_get_jsdialog_handler(self *C.cef_client_t) *C.cef_jsdialog_handler_t { me__ := (*Client)(self) @@ -193,6 +205,7 @@ func (d *Client) GetKeyboardHandler() *KeyboardHandler { return lookupClientProxy(d.Base()).GetKeyboardHandler(d) } +//nolint:gocritic //export gocef_client_get_keyboard_handler func gocef_client_get_keyboard_handler(self *C.cef_client_t) *C.cef_keyboard_handler_t { me__ := (*Client)(self) @@ -206,6 +219,7 @@ func (d *Client) GetLifeSpanHandler() *LifeSpanHandler { return lookupClientProxy(d.Base()).GetLifeSpanHandler(d) } +//nolint:gocritic //export gocef_client_get_life_span_handler func gocef_client_get_life_span_handler(self *C.cef_client_t) *C.cef_life_span_handler_t { me__ := (*Client)(self) @@ -219,6 +233,7 @@ func (d *Client) GetLoadHandler() *LoadHandler { return lookupClientProxy(d.Base()).GetLoadHandler(d) } +//nolint:gocritic //export gocef_client_get_load_handler func gocef_client_get_load_handler(self *C.cef_client_t) *C.cef_load_handler_t { me__ := (*Client)(self) @@ -232,6 +247,7 @@ func (d *Client) GetRenderHandler() *RenderHandler { return lookupClientProxy(d.Base()).GetRenderHandler(d) } +//nolint:gocritic //export gocef_client_get_render_handler func gocef_client_get_render_handler(self *C.cef_client_t) *C.cef_render_handler_t { me__ := (*Client)(self) @@ -245,6 +261,7 @@ func (d *Client) GetRequestHandler() *RequestHandler { return lookupClientProxy(d.Base()).GetRequestHandler(d) } +//nolint:gocritic //export gocef_client_get_request_handler func gocef_client_get_request_handler(self *C.cef_client_t) *C.cef_request_handler_t { me__ := (*Client)(self) @@ -260,6 +277,7 @@ func (d *Client) OnProcessMessageReceived(browser *Browser, source_process Proce return lookupClientProxy(d.Base()).OnProcessMessageReceived(d, browser, source_process, message) } +//nolint:gocritic //export gocef_client_on_process_message_received func gocef_client_on_process_message_received(self *C.cef_client_t, browser *C.cef_browser_t, source_process C.cef_process_id_t, message *C.cef_process_message_t) C.int { me__ := (*Client)(self) diff --git a/cef/Client_gen.h b/cef/Client_gen.h index cc1954f..14cb000 100644 --- a/cef/Client_gen.h +++ b/cef/Client_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_Client_H_ #define GOCEF_Client_H_ diff --git a/cef/CommandLine_gen.go b/cef/CommandLine_gen.go index bc3f8c5..a185f93 100644 --- a/cef/CommandLine_gen.go +++ b/cef/CommandLine_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // int gocef_command_line_is_valid(cef_command_line_t * self, int (CEF_CALLBACK *callback__)(cef_command_line_t *)) { return callback__(self); } @@ -25,7 +27,6 @@ import ( // void gocef_command_line_append_argument(cef_command_line_t * self, cef_string_t * argument, void (CEF_CALLBACK *callback__)(cef_command_line_t *, cef_string_t *)) { return callback__(self, argument); } // void gocef_command_line_prepend_wrapper(cef_command_line_t * self, cef_string_t * wrapper, void (CEF_CALLBACK *callback__)(cef_command_line_t *, cef_string_t *)) { return callback__(self, wrapper); } "C" - "unsafe" ) // CommandLine (cef_command_line_t from include/capi/cef_command_line_capi.h) diff --git a/cef/CompletionCallback_gen.c b/cef/CompletionCallback_gen.c index 03f11b8..4043597 100644 --- a/cef/CompletionCallback_gen.c +++ b/cef/CompletionCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "CompletionCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/CompletionCallback_gen.go b/cef/CompletionCallback_gen.go index 6e82313..db10321 100644 --- a/cef/CompletionCallback_gen.go +++ b/cef/CompletionCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "CompletionCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "CompletionCallback_gen.h" + "C" +) + // CompletionCallbackProxy defines methods required for using CompletionCallback. type CompletionCallbackProxy interface { OnComplete(self *CompletionCallback) @@ -58,6 +61,7 @@ func (d *CompletionCallback) OnComplete() { lookupCompletionCallbackProxy(d.Base()).OnComplete(d) } +//nolint:gocritic //export gocef_completion_callback_on_complete func gocef_completion_callback_on_complete(self *C.cef_completion_callback_t) { me__ := (*CompletionCallback)(self) diff --git a/cef/CompletionCallback_gen.h b/cef/CompletionCallback_gen.h index b179c21..7032cda 100644 --- a/cef/CompletionCallback_gen.h +++ b/cef/CompletionCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_CompletionCallback_H_ #define GOCEF_CompletionCallback_H_ diff --git a/cef/CompositionUnderline_gen.go b/cef/CompositionUnderline_gen.go index 581d807..69ba9a3 100644 --- a/cef/CompositionUnderline_gen.go +++ b/cef/CompositionUnderline_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/ContextMenuHandler_gen.c b/cef/ContextMenuHandler_gen.c index f044981..287fa7d 100644 --- a/cef/ContextMenuHandler_gen.c +++ b/cef/ContextMenuHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ContextMenuHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ContextMenuHandler_gen.go b/cef/ContextMenuHandler_gen.go index e3ad561..d38f516 100644 --- a/cef/ContextMenuHandler_gen.go +++ b/cef/ContextMenuHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ContextMenuHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ContextMenuHandler_gen.h" + "C" +) + // ContextMenuHandlerProxy defines methods required for using ContextMenuHandler. type ContextMenuHandlerProxy interface { OnBeforeContextMenu(self *ContextMenuHandler, browser *Browser, frame *Frame, params *ContextMenuParams, model *MenuModel) @@ -66,6 +69,7 @@ func (d *ContextMenuHandler) OnBeforeContextMenu(browser *Browser, frame *Frame, lookupContextMenuHandlerProxy(d.Base()).OnBeforeContextMenu(d, browser, frame, params, model) } +//nolint:gocritic //export gocef_context_menu_handler_on_before_context_menu func gocef_context_menu_handler_on_before_context_menu(self *C.cef_context_menu_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, params *C.cef_context_menu_params_t, model *C.cef_menu_model_t) { me__ := (*ContextMenuHandler)(self) @@ -84,6 +88,7 @@ func (d *ContextMenuHandler) RunContextMenu(browser *Browser, frame *Frame, para return lookupContextMenuHandlerProxy(d.Base()).RunContextMenu(d, browser, frame, params, model, callback) } +//nolint:gocritic //export gocef_context_menu_handler_run_context_menu func gocef_context_menu_handler_run_context_menu(self *C.cef_context_menu_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, params *C.cef_context_menu_params_t, model *C.cef_menu_model_t, callback *C.cef_run_context_menu_callback_t) C.int { me__ := (*ContextMenuHandler)(self) @@ -103,6 +108,7 @@ func (d *ContextMenuHandler) OnContextMenuCommand(browser *Browser, frame *Frame return lookupContextMenuHandlerProxy(d.Base()).OnContextMenuCommand(d, browser, frame, params, command_id, event_flags) } +//nolint:gocritic //export gocef_context_menu_handler_on_context_menu_command func gocef_context_menu_handler_on_context_menu_command(self *C.cef_context_menu_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, params *C.cef_context_menu_params_t, command_id C.int, event_flags C.cef_event_flags_t) C.int { me__ := (*ContextMenuHandler)(self) @@ -117,6 +123,7 @@ func (d *ContextMenuHandler) OnContextMenuDismissed(browser *Browser, frame *Fra lookupContextMenuHandlerProxy(d.Base()).OnContextMenuDismissed(d, browser, frame) } +//nolint:gocritic //export gocef_context_menu_handler_on_context_menu_dismissed func gocef_context_menu_handler_on_context_menu_dismissed(self *C.cef_context_menu_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t) { me__ := (*ContextMenuHandler)(self) diff --git a/cef/ContextMenuHandler_gen.h b/cef/ContextMenuHandler_gen.h index b4eb250..266792f 100644 --- a/cef/ContextMenuHandler_gen.h +++ b/cef/ContextMenuHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ContextMenuHandler_H_ #define GOCEF_ContextMenuHandler_H_ diff --git a/cef/ContextMenuParams_gen.go b/cef/ContextMenuParams_gen.go index 73ca4c3..14df469 100644 --- a/cef/ContextMenuParams_gen.go +++ b/cef/ContextMenuParams_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/CookieManager_gen.go b/cef/CookieManager_gen.go index c852f64..48413e7 100644 --- a/cef/CookieManager_gen.go +++ b/cef/CookieManager_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/CookieVisitor_gen.c b/cef/CookieVisitor_gen.c index 555c8aa..17d4226 100644 --- a/cef/CookieVisitor_gen.c +++ b/cef/CookieVisitor_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "CookieVisitor_gen.h" #include "_cgo_export.h" diff --git a/cef/CookieVisitor_gen.go b/cef/CookieVisitor_gen.go index ced423f..67abafc 100644 --- a/cef/CookieVisitor_gen.go +++ b/cef/CookieVisitor_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "CookieVisitor_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "CookieVisitor_gen.h" + "C" +) + // CookieVisitorProxy defines methods required for using CookieVisitor. type CookieVisitorProxy interface { Visit(self *CookieVisitor, cookie *Cookie, count, total int32, deleteCookie *int32) int32 @@ -63,6 +66,7 @@ func (d *CookieVisitor) Visit(cookie *Cookie, count, total int32, deleteCookie * return lookupCookieVisitorProxy(d.Base()).Visit(d, cookie, count, total, deleteCookie) } +//nolint:gocritic //export gocef_cookie_visitor_visit func gocef_cookie_visitor_visit(self *C.cef_cookie_visitor_t, cookie *C.cef_cookie_t, count C.int, total C.int, deleteCookie *C.int) C.int { me__ := (*CookieVisitor)(self) diff --git a/cef/CookieVisitor_gen.h b/cef/CookieVisitor_gen.h index 5a4c6e2..7dbe1f1 100644 --- a/cef/CookieVisitor_gen.h +++ b/cef/CookieVisitor_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_CookieVisitor_H_ #define GOCEF_CookieVisitor_H_ diff --git a/cef/Cookie_gen.go b/cef/Cookie_gen.go index 56ab56a..7c4aa9c 100644 --- a/cef/Cookie_gen.go +++ b/cef/Cookie_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/CursorInfo_gen.go b/cef/CursorInfo_gen.go index 2342914..5ac7752 100644 --- a/cef/CursorInfo_gen.go +++ b/cef/CursorInfo_gen.go @@ -1,11 +1,14 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef +import ( + "unsafe" +) + import ( // #include "capi_gen.h" "C" - "unsafe" ) // CursorInfo (cef_cursor_info_t from include/internal/cef_types.h) diff --git a/cef/DeleteCookiesCallback_gen.c b/cef/DeleteCookiesCallback_gen.c index c4391b6..1f07b5d 100644 --- a/cef/DeleteCookiesCallback_gen.c +++ b/cef/DeleteCookiesCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DeleteCookiesCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/DeleteCookiesCallback_gen.go b/cef/DeleteCookiesCallback_gen.go index 930386c..a4fb6cc 100644 --- a/cef/DeleteCookiesCallback_gen.go +++ b/cef/DeleteCookiesCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DeleteCookiesCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DeleteCookiesCallback_gen.h" + "C" +) + // DeleteCookiesCallbackProxy defines methods required for using DeleteCookiesCallback. type DeleteCookiesCallbackProxy interface { OnComplete(self *DeleteCookiesCallback, num_deleted int32) @@ -60,6 +63,7 @@ func (d *DeleteCookiesCallback) OnComplete(num_deleted int32) { lookupDeleteCookiesCallbackProxy(d.Base()).OnComplete(d, num_deleted) } +//nolint:gocritic //export gocef_delete_cookies_callback_on_complete func gocef_delete_cookies_callback_on_complete(self *C.cef_delete_cookies_callback_t, num_deleted C.int) { me__ := (*DeleteCookiesCallback)(self) diff --git a/cef/DeleteCookiesCallback_gen.h b/cef/DeleteCookiesCallback_gen.h index 2513a25..727da49 100644 --- a/cef/DeleteCookiesCallback_gen.h +++ b/cef/DeleteCookiesCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DeleteCookiesCallback_H_ #define GOCEF_DeleteCookiesCallback_H_ diff --git a/cef/DialogHandler_gen.c b/cef/DialogHandler_gen.c index d252719..496e621 100644 --- a/cef/DialogHandler_gen.c +++ b/cef/DialogHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DialogHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/DialogHandler_gen.go b/cef/DialogHandler_gen.go index c1914b0..94ac40c 100644 --- a/cef/DialogHandler_gen.go +++ b/cef/DialogHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DialogHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DialogHandler_gen.h" + "C" +) + // DialogHandlerProxy defines methods required for using DialogHandler. type DialogHandlerProxy interface { OnFileDialog(self *DialogHandler, browser *Browser, mode FileDialogMode, title, default_file_path string, accept_filters StringList, selected_accept_filter int32, callback *FileDialogCallback) int32 @@ -71,6 +74,7 @@ func (d *DialogHandler) OnFileDialog(browser *Browser, mode FileDialogMode, titl return lookupDialogHandlerProxy(d.Base()).OnFileDialog(d, browser, mode, title, default_file_path, accept_filters, selected_accept_filter, callback) } +//nolint:gocritic //export gocef_dialog_handler_on_file_dialog func gocef_dialog_handler_on_file_dialog(self *C.cef_dialog_handler_t, browser *C.cef_browser_t, mode C.cef_file_dialog_mode_t, title *C.cef_string_t, default_file_path *C.cef_string_t, accept_filters C.cef_string_list_t, selected_accept_filter C.int, callback *C.cef_file_dialog_callback_t) C.int { me__ := (*DialogHandler)(self) diff --git a/cef/DialogHandler_gen.h b/cef/DialogHandler_gen.h index acf0280..af007d5 100644 --- a/cef/DialogHandler_gen.h +++ b/cef/DialogHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DialogHandler_H_ #define GOCEF_DialogHandler_H_ diff --git a/cef/DictionaryValue_gen.go b/cef/DictionaryValue_gen.go index b6c34c6..e0e01d8 100644 --- a/cef/DictionaryValue_gen.go +++ b/cef/DictionaryValue_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/DisplayHandler_gen.c b/cef/DisplayHandler_gen.c index 8068b50..633b277 100644 --- a/cef/DisplayHandler_gen.c +++ b/cef/DisplayHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DisplayHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/DisplayHandler_gen.go b/cef/DisplayHandler_gen.go index 5f35e04..d225505 100644 --- a/cef/DisplayHandler_gen.go +++ b/cef/DisplayHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DisplayHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DisplayHandler_gen.h" + "C" +) + // DisplayHandlerProxy defines methods required for using DisplayHandler. type DisplayHandlerProxy interface { OnAddressChange(self *DisplayHandler, browser *Browser, frame *Frame, url string) @@ -67,6 +70,7 @@ func (d *DisplayHandler) OnAddressChange(browser *Browser, frame *Frame, url str lookupDisplayHandlerProxy(d.Base()).OnAddressChange(d, browser, frame, url) } +//nolint:gocritic //export gocef_display_handler_on_address_change func gocef_display_handler_on_address_change(self *C.cef_display_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, url *C.cef_string_t) { me__ := (*DisplayHandler)(self) @@ -81,6 +85,7 @@ func (d *DisplayHandler) OnTitleChange(browser *Browser, title string) { lookupDisplayHandlerProxy(d.Base()).OnTitleChange(d, browser, title) } +//nolint:gocritic //export gocef_display_handler_on_title_change func gocef_display_handler_on_title_change(self *C.cef_display_handler_t, browser *C.cef_browser_t, title *C.cef_string_t) { me__ := (*DisplayHandler)(self) @@ -95,6 +100,7 @@ func (d *DisplayHandler) OnFaviconUrlchange(browser *Browser, icon_urls StringLi lookupDisplayHandlerProxy(d.Base()).OnFaviconUrlchange(d, browser, icon_urls) } +//nolint:gocritic //export gocef_display_handler_on_favicon_urlchange func gocef_display_handler_on_favicon_urlchange(self *C.cef_display_handler_t, browser *C.cef_browser_t, icon_urls C.cef_string_list_t) { me__ := (*DisplayHandler)(self) @@ -112,6 +118,7 @@ func (d *DisplayHandler) OnFullscreenModeChange(browser *Browser, fullscreen int lookupDisplayHandlerProxy(d.Base()).OnFullscreenModeChange(d, browser, fullscreen) } +//nolint:gocritic //export gocef_display_handler_on_fullscreen_mode_change func gocef_display_handler_on_fullscreen_mode_change(self *C.cef_display_handler_t, browser *C.cef_browser_t, fullscreen C.int) { me__ := (*DisplayHandler)(self) @@ -130,6 +137,7 @@ func (d *DisplayHandler) OnTooltip(browser *Browser, text *string) int32 { return lookupDisplayHandlerProxy(d.Base()).OnTooltip(d, browser, text) } +//nolint:gocritic //export gocef_display_handler_on_tooltip func gocef_display_handler_on_tooltip(self *C.cef_display_handler_t, browser *C.cef_browser_t, text *C.cef_string_t) C.int { me__ := (*DisplayHandler)(self) @@ -145,6 +153,7 @@ func (d *DisplayHandler) OnStatusMessage(browser *Browser, value string) { lookupDisplayHandlerProxy(d.Base()).OnStatusMessage(d, browser, value) } +//nolint:gocritic //export gocef_display_handler_on_status_message func gocef_display_handler_on_status_message(self *C.cef_display_handler_t, browser *C.cef_browser_t, value *C.cef_string_t) { me__ := (*DisplayHandler)(self) @@ -160,6 +169,7 @@ func (d *DisplayHandler) OnConsoleMessage(browser *Browser, level LogSeverity, m return lookupDisplayHandlerProxy(d.Base()).OnConsoleMessage(d, browser, level, message, source, line) } +//nolint:gocritic //export gocef_display_handler_on_console_message func gocef_display_handler_on_console_message(self *C.cef_display_handler_t, browser *C.cef_browser_t, level C.cef_log_severity_t, message *C.cef_string_t, source *C.cef_string_t, line C.int) C.int { me__ := (*DisplayHandler)(self) @@ -178,6 +188,7 @@ func (d *DisplayHandler) OnAutoResize(browser *Browser, new_size *Size) int32 { return lookupDisplayHandlerProxy(d.Base()).OnAutoResize(d, browser, new_size) } +//nolint:gocritic //export gocef_display_handler_on_auto_resize func gocef_display_handler_on_auto_resize(self *C.cef_display_handler_t, browser *C.cef_browser_t, new_size *C.cef_size_t) C.int { me__ := (*DisplayHandler)(self) @@ -193,6 +204,7 @@ func (d *DisplayHandler) OnLoadingProgressChange(browser *Browser, progress floa lookupDisplayHandlerProxy(d.Base()).OnLoadingProgressChange(d, browser, progress) } +//nolint:gocritic //export gocef_display_handler_on_loading_progress_change func gocef_display_handler_on_loading_progress_change(self *C.cef_display_handler_t, browser *C.cef_browser_t, progress C.double) { me__ := (*DisplayHandler)(self) diff --git a/cef/DisplayHandler_gen.h b/cef/DisplayHandler_gen.h index 4967558..c9b09f7 100644 --- a/cef/DisplayHandler_gen.h +++ b/cef/DisplayHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DisplayHandler_H_ #define GOCEF_DisplayHandler_H_ diff --git a/cef/Display_gen.go b/cef/Display_gen.go index f0eadd9..14e1cee 100644 --- a/cef/Display_gen.go +++ b/cef/Display_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Domdocument_gen.go b/cef/Domdocument_gen.go index c4219d5..5e89622 100644 --- a/cef/Domdocument_gen.go +++ b/cef/Domdocument_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Domnode_gen.go b/cef/Domnode_gen.go index af73fee..1a1954f 100644 --- a/cef/Domnode_gen.go +++ b/cef/Domnode_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Domvisitor_gen.go b/cef/Domvisitor_gen.go index f54469a..29118e9 100644 --- a/cef/Domvisitor_gen.go +++ b/cef/Domvisitor_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/DownloadHandler_gen.c b/cef/DownloadHandler_gen.c index 24860d6..5d5c068 100644 --- a/cef/DownloadHandler_gen.c +++ b/cef/DownloadHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DownloadHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/DownloadHandler_gen.go b/cef/DownloadHandler_gen.go index 2dedef6..6b5d07d 100644 --- a/cef/DownloadHandler_gen.go +++ b/cef/DownloadHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DownloadHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DownloadHandler_gen.h" + "C" +) + // DownloadHandlerProxy defines methods required for using DownloadHandler. type DownloadHandlerProxy interface { OnBeforeDownload(self *DownloadHandler, browser *Browser, download_item *DownloadItem, suggested_name string, callback *BeforeDownloadCallback) @@ -64,6 +67,7 @@ func (d *DownloadHandler) OnBeforeDownload(browser *Browser, download_item *Down lookupDownloadHandlerProxy(d.Base()).OnBeforeDownload(d, browser, download_item, suggested_name, callback) } +//nolint:gocritic //export gocef_download_handler_on_before_download func gocef_download_handler_on_before_download(self *C.cef_download_handler_t, browser *C.cef_browser_t, download_item *C.cef_download_item_t, suggested_name *C.cef_string_t, callback *C.cef_before_download_callback_t) { me__ := (*DownloadHandler)(self) @@ -82,6 +86,7 @@ func (d *DownloadHandler) OnDownloadUpdated(browser *Browser, download_item *Dow lookupDownloadHandlerProxy(d.Base()).OnDownloadUpdated(d, browser, download_item, callback) } +//nolint:gocritic //export gocef_download_handler_on_download_updated func gocef_download_handler_on_download_updated(self *C.cef_download_handler_t, browser *C.cef_browser_t, download_item *C.cef_download_item_t, callback *C.cef_download_item_callback_t) { me__ := (*DownloadHandler)(self) diff --git a/cef/DownloadHandler_gen.h b/cef/DownloadHandler_gen.h index 886c393..7f615e0 100644 --- a/cef/DownloadHandler_gen.h +++ b/cef/DownloadHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DownloadHandler_H_ #define GOCEF_DownloadHandler_H_ diff --git a/cef/DownloadImageCallback_gen.c b/cef/DownloadImageCallback_gen.c index 19bace3..e1ffbfb 100644 --- a/cef/DownloadImageCallback_gen.c +++ b/cef/DownloadImageCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DownloadImageCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/DownloadImageCallback_gen.go b/cef/DownloadImageCallback_gen.go index 7d03c68..fd5c40f 100644 --- a/cef/DownloadImageCallback_gen.go +++ b/cef/DownloadImageCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DownloadImageCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DownloadImageCallback_gen.h" + "C" +) + // DownloadImageCallbackProxy defines methods required for using DownloadImageCallback. type DownloadImageCallbackProxy interface { OnDownloadImageFinished(self *DownloadImageCallback, image_url string, http_status_code int32, image *Image) @@ -62,6 +65,7 @@ func (d *DownloadImageCallback) OnDownloadImageFinished(image_url string, http_s lookupDownloadImageCallbackProxy(d.Base()).OnDownloadImageFinished(d, image_url, http_status_code, image) } +//nolint:gocritic //export gocef_download_image_callback_on_download_image_finished func gocef_download_image_callback_on_download_image_finished(self *C.cef_download_image_callback_t, image_url *C.cef_string_t, http_status_code C.int, image *C.cef_image_t) { me__ := (*DownloadImageCallback)(self) diff --git a/cef/DownloadImageCallback_gen.h b/cef/DownloadImageCallback_gen.h index 5fb091b..f9cd37e 100644 --- a/cef/DownloadImageCallback_gen.h +++ b/cef/DownloadImageCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DownloadImageCallback_H_ #define GOCEF_DownloadImageCallback_H_ diff --git a/cef/DownloadItemCallback_gen.c b/cef/DownloadItemCallback_gen.c index 11fcf80..761a79c 100644 --- a/cef/DownloadItemCallback_gen.c +++ b/cef/DownloadItemCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DownloadItemCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/DownloadItemCallback_gen.go b/cef/DownloadItemCallback_gen.go index 42add40..7ceb824 100644 --- a/cef/DownloadItemCallback_gen.go +++ b/cef/DownloadItemCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DownloadItemCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DownloadItemCallback_gen.h" + "C" +) + // DownloadItemCallbackProxy defines methods required for using DownloadItemCallback. type DownloadItemCallbackProxy interface { Cancel(self *DownloadItemCallback) @@ -60,6 +63,7 @@ func (d *DownloadItemCallback) Cancel() { lookupDownloadItemCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_download_item_callback_cancel func gocef_download_item_callback_cancel(self *C.cef_download_item_callback_t) { me__ := (*DownloadItemCallback)(self) @@ -73,6 +77,7 @@ func (d *DownloadItemCallback) Pause() { lookupDownloadItemCallbackProxy(d.Base()).Pause(d) } +//nolint:gocritic //export gocef_download_item_callback_pause func gocef_download_item_callback_pause(self *C.cef_download_item_callback_t) { me__ := (*DownloadItemCallback)(self) @@ -86,6 +91,7 @@ func (d *DownloadItemCallback) Resume() { lookupDownloadItemCallbackProxy(d.Base()).Resume(d) } +//nolint:gocritic //export gocef_download_item_callback_resume func gocef_download_item_callback_resume(self *C.cef_download_item_callback_t) { me__ := (*DownloadItemCallback)(self) diff --git a/cef/DownloadItemCallback_gen.h b/cef/DownloadItemCallback_gen.h index af65d42..b1d5c5a 100644 --- a/cef/DownloadItemCallback_gen.h +++ b/cef/DownloadItemCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DownloadItemCallback_H_ #define GOCEF_DownloadItemCallback_H_ diff --git a/cef/DownloadItem_gen.go b/cef/DownloadItem_gen.go index b854b78..1694a10 100644 --- a/cef/DownloadItem_gen.go +++ b/cef/DownloadItem_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/DragData_gen.go b/cef/DragData_gen.go index 5f09f22..76830e3 100644 --- a/cef/DragData_gen.go +++ b/cef/DragData_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/DragHandler_gen.c b/cef/DragHandler_gen.c index da97d0d..02be491 100644 --- a/cef/DragHandler_gen.c +++ b/cef/DragHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "DragHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/DragHandler_gen.go b/cef/DragHandler_gen.go index ec08e76..6d4aa57 100644 --- a/cef/DragHandler_gen.go +++ b/cef/DragHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "DragHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "DragHandler_gen.h" + "C" +) + // DragHandlerProxy defines methods required for using DragHandler. type DragHandlerProxy interface { OnDragEnter(self *DragHandler, browser *Browser, dragData *DragData, mask DragOperationsMask) int32 @@ -63,6 +66,7 @@ func (d *DragHandler) OnDragEnter(browser *Browser, dragData *DragData, mask Dra return lookupDragHandlerProxy(d.Base()).OnDragEnter(d, browser, dragData, mask) } +//nolint:gocritic //export gocef_drag_handler_on_drag_enter func gocef_drag_handler_on_drag_enter(self *C.cef_drag_handler_t, browser *C.cef_browser_t, dragData *C.cef_drag_data_t, mask C.cef_drag_operations_mask_t) C.int { me__ := (*DragHandler)(self) @@ -80,6 +84,7 @@ func (d *DragHandler) OnDraggableRegionsChanged(browser *Browser, regionsCount u lookupDragHandlerProxy(d.Base()).OnDraggableRegionsChanged(d, browser, regionsCount, regions) } +//nolint:gocritic //export gocef_drag_handler_on_draggable_regions_changed func gocef_drag_handler_on_draggable_regions_changed(self *C.cef_drag_handler_t, browser *C.cef_browser_t, regionsCount C.size_t, regions *C.cef_draggable_region_t) { me__ := (*DragHandler)(self) diff --git a/cef/DragHandler_gen.h b/cef/DragHandler_gen.h index 7260499..17744b3 100644 --- a/cef/DragHandler_gen.h +++ b/cef/DragHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_DragHandler_H_ #define GOCEF_DragHandler_H_ diff --git a/cef/DraggableRegion_gen.go b/cef/DraggableRegion_gen.go index e0fdd05..b351245 100644 --- a/cef/DraggableRegion_gen.go +++ b/cef/DraggableRegion_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/ExtensionHandler_gen.c b/cef/ExtensionHandler_gen.c index 72d156a..a90133c 100644 --- a/cef/ExtensionHandler_gen.c +++ b/cef/ExtensionHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ExtensionHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ExtensionHandler_gen.go b/cef/ExtensionHandler_gen.go index f5226dc..882f000 100644 --- a/cef/ExtensionHandler_gen.go +++ b/cef/ExtensionHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ExtensionHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ExtensionHandler_gen.h" + "C" +) + // ExtensionHandlerProxy defines methods required for using ExtensionHandler. type ExtensionHandlerProxy interface { OnExtensionLoadFailed(self *ExtensionHandler, result Errorcode) @@ -68,6 +71,7 @@ func (d *ExtensionHandler) OnExtensionLoadFailed(result Errorcode) { lookupExtensionHandlerProxy(d.Base()).OnExtensionLoadFailed(d, result) } +//nolint:gocritic //export gocef_extension_handler_on_extension_load_failed func gocef_extension_handler_on_extension_load_failed(self *C.cef_extension_handler_t, result C.cef_errorcode_t) { me__ := (*ExtensionHandler)(self) @@ -82,6 +86,7 @@ func (d *ExtensionHandler) OnExtensionLoaded(extension *Extension) { lookupExtensionHandlerProxy(d.Base()).OnExtensionLoaded(d, extension) } +//nolint:gocritic //export gocef_extension_handler_on_extension_loaded func gocef_extension_handler_on_extension_loaded(self *C.cef_extension_handler_t, extension *C.cef_extension_t) { me__ := (*ExtensionHandler)(self) @@ -95,6 +100,7 @@ func (d *ExtensionHandler) OnExtensionUnloaded(extension *Extension) { lookupExtensionHandlerProxy(d.Base()).OnExtensionUnloaded(d, extension) } +//nolint:gocritic //export gocef_extension_handler_on_extension_unloaded func gocef_extension_handler_on_extension_unloaded(self *C.cef_extension_handler_t, extension *C.cef_extension_t) { me__ := (*ExtensionHandler)(self) @@ -120,6 +126,7 @@ func (d *ExtensionHandler) OnBeforeBackgroundBrowser(extension *Extension, url s return lookupExtensionHandlerProxy(d.Base()).OnBeforeBackgroundBrowser(d, extension, url, client, settings) } +//nolint:gocritic //export gocef_extension_handler_on_before_background_browser func gocef_extension_handler_on_before_background_browser(self *C.cef_extension_handler_t, extension *C.cef_extension_t, url *C.cef_string_t, client **C.cef_client_t, settings *C.cef_browser_settings_t) C.int { me__ := (*ExtensionHandler)(self) @@ -149,6 +156,7 @@ func (d *ExtensionHandler) OnBeforeBrowser(extension *Extension, browser, active return lookupExtensionHandlerProxy(d.Base()).OnBeforeBrowser(d, extension, browser, active_browser, index, url, active, windowInfo, client, settings) } +//nolint:gocritic //export gocef_extension_handler_on_before_browser func gocef_extension_handler_on_before_browser(self *C.cef_extension_handler_t, extension *C.cef_extension_t, browser *C.cef_browser_t, active_browser *C.cef_browser_t, index C.int, url *C.cef_string_t, active C.int, windowInfo *C.cef_window_info_t, client **C.cef_client_t, settings *C.cef_browser_settings_t) C.int { me__ := (*ExtensionHandler)(self) @@ -173,6 +181,7 @@ func (d *ExtensionHandler) GetActiveBrowser(extension *Extension, browser *Brows return lookupExtensionHandlerProxy(d.Base()).GetActiveBrowser(d, extension, browser, include_incognito) } +//nolint:gocritic //export gocef_extension_handler_get_active_browser func gocef_extension_handler_get_active_browser(self *C.cef_extension_handler_t, extension *C.cef_extension_t, browser *C.cef_browser_t, include_incognito C.int) *C.cef_browser_t { me__ := (*ExtensionHandler)(self) @@ -191,6 +200,7 @@ func (d *ExtensionHandler) CanAccessBrowser(extension *Extension, browser *Brows return lookupExtensionHandlerProxy(d.Base()).CanAccessBrowser(d, extension, browser, include_incognito, target_browser) } +//nolint:gocritic //export gocef_extension_handler_can_access_browser func gocef_extension_handler_can_access_browser(self *C.cef_extension_handler_t, extension *C.cef_extension_t, browser *C.cef_browser_t, include_incognito C.int, target_browser *C.cef_browser_t) C.int { me__ := (*ExtensionHandler)(self) @@ -211,6 +221,7 @@ func (d *ExtensionHandler) GetExtensionResource(extension *Extension, browser *B return lookupExtensionHandlerProxy(d.Base()).GetExtensionResource(d, extension, browser, file, callback) } +//nolint:gocritic //export gocef_extension_handler_get_extension_resource func gocef_extension_handler_get_extension_resource(self *C.cef_extension_handler_t, extension *C.cef_extension_t, browser *C.cef_browser_t, file *C.cef_string_t, callback *C.cef_get_extension_resource_callback_t) C.int { me__ := (*ExtensionHandler)(self) diff --git a/cef/ExtensionHandler_gen.h b/cef/ExtensionHandler_gen.h index 1143360..069aaee 100644 --- a/cef/ExtensionHandler_gen.h +++ b/cef/ExtensionHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ExtensionHandler_H_ #define GOCEF_ExtensionHandler_H_ diff --git a/cef/Extension_gen.go b/cef/Extension_gen.go index fa2f22c..1ac4bae 100644 --- a/cef/Extension_gen.go +++ b/cef/Extension_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/FileDialogCallback_gen.c b/cef/FileDialogCallback_gen.c index bf8e62a..01def8d 100644 --- a/cef/FileDialogCallback_gen.c +++ b/cef/FileDialogCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "FileDialogCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/FileDialogCallback_gen.go b/cef/FileDialogCallback_gen.go index ae7d5b0..4a9aa85 100644 --- a/cef/FileDialogCallback_gen.go +++ b/cef/FileDialogCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "FileDialogCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "FileDialogCallback_gen.h" + "C" +) + // FileDialogCallbackProxy defines methods required for using FileDialogCallback. type FileDialogCallbackProxy interface { Cont(self *FileDialogCallback, selected_accept_filter int32, file_paths StringList) @@ -63,6 +66,7 @@ func (d *FileDialogCallback) Cont(selected_accept_filter int32, file_paths Strin lookupFileDialogCallbackProxy(d.Base()).Cont(d, selected_accept_filter, file_paths) } +//nolint:gocritic //export gocef_file_dialog_callback_cont func gocef_file_dialog_callback_cont(self *C.cef_file_dialog_callback_t, selected_accept_filter C.int, file_paths C.cef_string_list_t) { me__ := (*FileDialogCallback)(self) @@ -76,6 +80,7 @@ func (d *FileDialogCallback) Cancel() { lookupFileDialogCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_file_dialog_callback_cancel func gocef_file_dialog_callback_cancel(self *C.cef_file_dialog_callback_t) { me__ := (*FileDialogCallback)(self) diff --git a/cef/FileDialogCallback_gen.h b/cef/FileDialogCallback_gen.h index e8aa82a..86ae592 100644 --- a/cef/FileDialogCallback_gen.h +++ b/cef/FileDialogCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_FileDialogCallback_H_ #define GOCEF_FileDialogCallback_H_ diff --git a/cef/FillLayout_gen.go b/cef/FillLayout_gen.go index 6cf33ce..b28f02b 100644 --- a/cef/FillLayout_gen.go +++ b/cef/FillLayout_gen.go @@ -1,11 +1,14 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef +import ( + "unsafe" +) + import ( // #include "capi_gen.h" "C" - "unsafe" ) // FillLayout (cef_fill_layout_t from include/capi/views/cef_fill_layout_capi.h) diff --git a/cef/FindHandler_gen.c b/cef/FindHandler_gen.c index 9468fb7..e2c3eb0 100644 --- a/cef/FindHandler_gen.c +++ b/cef/FindHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "FindHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/FindHandler_gen.go b/cef/FindHandler_gen.go index b911dd8..58ef60d 100644 --- a/cef/FindHandler_gen.go +++ b/cef/FindHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "FindHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "FindHandler_gen.h" + "C" +) + // FindHandlerProxy defines methods required for using FindHandler. type FindHandlerProxy interface { OnFindResult(self *FindHandler, browser *Browser, identifier, count int32, selectionRect *Rect, activeMatchOrdinal, finalUpdate int32) @@ -64,6 +67,7 @@ func (d *FindHandler) OnFindResult(browser *Browser, identifier, count int32, se lookupFindHandlerProxy(d.Base()).OnFindResult(d, browser, identifier, count, selectionRect, activeMatchOrdinal, finalUpdate) } +//nolint:gocritic //export gocef_find_handler_on_find_result func gocef_find_handler_on_find_result(self *C.cef_find_handler_t, browser *C.cef_browser_t, identifier C.int, count C.int, selectionRect *C.cef_rect_t, activeMatchOrdinal C.int, finalUpdate C.int) { me__ := (*FindHandler)(self) diff --git a/cef/FindHandler_gen.h b/cef/FindHandler_gen.h index cfa3e53..56d0ec3 100644 --- a/cef/FindHandler_gen.h +++ b/cef/FindHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_FindHandler_H_ #define GOCEF_FindHandler_H_ diff --git a/cef/FocusHandler_gen.c b/cef/FocusHandler_gen.c index 6855df3..41e17d3 100644 --- a/cef/FocusHandler_gen.c +++ b/cef/FocusHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "FocusHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/FocusHandler_gen.go b/cef/FocusHandler_gen.go index 51b1efb..46130a0 100644 --- a/cef/FocusHandler_gen.go +++ b/cef/FocusHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "FocusHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "FocusHandler_gen.h" + "C" +) + // FocusHandlerProxy defines methods required for using FocusHandler. type FocusHandlerProxy interface { OnTakeFocus(self *FocusHandler, browser *Browser, next int32) @@ -64,6 +67,7 @@ func (d *FocusHandler) OnTakeFocus(browser *Browser, next int32) { lookupFocusHandlerProxy(d.Base()).OnTakeFocus(d, browser, next) } +//nolint:gocritic //export gocef_focus_handler_on_take_focus func gocef_focus_handler_on_take_focus(self *C.cef_focus_handler_t, browser *C.cef_browser_t, next C.int) { me__ := (*FocusHandler)(self) @@ -79,6 +83,7 @@ func (d *FocusHandler) OnSetFocus(browser *Browser, source FocusSource) int32 { return lookupFocusHandlerProxy(d.Base()).OnSetFocus(d, browser, source) } +//nolint:gocritic //export gocef_focus_handler_on_set_focus func gocef_focus_handler_on_set_focus(self *C.cef_focus_handler_t, browser *C.cef_browser_t, source C.cef_focus_source_t) C.int { me__ := (*FocusHandler)(self) @@ -92,6 +97,7 @@ func (d *FocusHandler) OnGotFocus(browser *Browser) { lookupFocusHandlerProxy(d.Base()).OnGotFocus(d, browser) } +//nolint:gocritic //export gocef_focus_handler_on_got_focus func gocef_focus_handler_on_got_focus(self *C.cef_focus_handler_t, browser *C.cef_browser_t) { me__ := (*FocusHandler)(self) diff --git a/cef/FocusHandler_gen.h b/cef/FocusHandler_gen.h index 781e923..1ac6c5a 100644 --- a/cef/FocusHandler_gen.h +++ b/cef/FocusHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_FocusHandler_H_ #define GOCEF_FocusHandler_H_ diff --git a/cef/Frame_gen.go b/cef/Frame_gen.go index 5ca774f..32aa72c 100644 --- a/cef/Frame_gen.go +++ b/cef/Frame_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/GetExtensionResourceCallback_gen.c b/cef/GetExtensionResourceCallback_gen.c index 01818e0..b4b0a38 100644 --- a/cef/GetExtensionResourceCallback_gen.c +++ b/cef/GetExtensionResourceCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "GetExtensionResourceCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/GetExtensionResourceCallback_gen.go b/cef/GetExtensionResourceCallback_gen.go index 7d53d31..bae4d78 100644 --- a/cef/GetExtensionResourceCallback_gen.go +++ b/cef/GetExtensionResourceCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "GetExtensionResourceCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "GetExtensionResourceCallback_gen.h" + "C" +) + // GetExtensionResourceCallbackProxy defines methods required for using GetExtensionResourceCallback. type GetExtensionResourceCallbackProxy interface { Cont(self *GetExtensionResourceCallback, stream *StreamReader) @@ -60,6 +63,7 @@ func (d *GetExtensionResourceCallback) Cont(stream *StreamReader) { lookupGetExtensionResourceCallbackProxy(d.Base()).Cont(d, stream) } +//nolint:gocritic //export gocef_get_extension_resource_callback_cont func gocef_get_extension_resource_callback_cont(self *C.cef_get_extension_resource_callback_t, stream *C.cef_stream_reader_t) { me__ := (*GetExtensionResourceCallback)(self) @@ -73,6 +77,7 @@ func (d *GetExtensionResourceCallback) Cancel() { lookupGetExtensionResourceCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_get_extension_resource_callback_cancel func gocef_get_extension_resource_callback_cancel(self *C.cef_get_extension_resource_callback_t) { me__ := (*GetExtensionResourceCallback)(self) diff --git a/cef/GetExtensionResourceCallback_gen.h b/cef/GetExtensionResourceCallback_gen.h index dc0b4de..43b203a 100644 --- a/cef/GetExtensionResourceCallback_gen.h +++ b/cef/GetExtensionResourceCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_GetExtensionResourceCallback_H_ #define GOCEF_GetExtensionResourceCallback_H_ diff --git a/cef/Image_gen.go b/cef/Image_gen.go index 02d8858..ab54f33 100644 --- a/cef/Image_gen.go +++ b/cef/Image_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // int gocef_image_is_empty(cef_image_t * self, int (CEF_CALLBACK *callback__)(cef_image_t *)) { return callback__(self); } @@ -18,7 +20,6 @@ import ( // cef_binary_value_t * gocef_image_get_as_png(cef_image_t * self, float scale_factor, int with_transparency, int * pixel_width, int * pixel_height, cef_binary_value_t * (CEF_CALLBACK *callback__)(cef_image_t *, float, int, int *, int *)) { return callback__(self, scale_factor, with_transparency, pixel_width, pixel_height); } // cef_binary_value_t * gocef_image_get_as_jpeg(cef_image_t * self, float scale_factor, int quality, int * pixel_width, int * pixel_height, cef_binary_value_t * (CEF_CALLBACK *callback__)(cef_image_t *, float, int, int *, int *)) { return callback__(self, scale_factor, quality, pixel_width, pixel_height); } "C" - "unsafe" ) // Image (cef_image_t from include/capi/cef_image_capi.h) diff --git a/cef/Insets_gen.go b/cef/Insets_gen.go index 43c2b18..e993024 100644 --- a/cef/Insets_gen.go +++ b/cef/Insets_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/JsdialogCallback_gen.c b/cef/JsdialogCallback_gen.c index 2468e78..fd99779 100644 --- a/cef/JsdialogCallback_gen.c +++ b/cef/JsdialogCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "JsdialogCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/JsdialogCallback_gen.go b/cef/JsdialogCallback_gen.go index 1c1ec72..bc41663 100644 --- a/cef/JsdialogCallback_gen.go +++ b/cef/JsdialogCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "JsdialogCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "JsdialogCallback_gen.h" + "C" +) + // JsdialogCallbackProxy defines methods required for using JsdialogCallback. type JsdialogCallbackProxy interface { Cont(self *JsdialogCallback, success int32, user_input string) @@ -60,6 +63,7 @@ func (d *JsdialogCallback) Cont(success int32, user_input string) { lookupJsdialogCallbackProxy(d.Base()).Cont(d, success, user_input) } +//nolint:gocritic //export gocef_jsdialog_callback_cont func gocef_jsdialog_callback_cont(self *C.cef_jsdialog_callback_t, success C.int, user_input *C.cef_string_t) { me__ := (*JsdialogCallback)(self) diff --git a/cef/JsdialogCallback_gen.h b/cef/JsdialogCallback_gen.h index 5c8ddc2..1ee37a6 100644 --- a/cef/JsdialogCallback_gen.h +++ b/cef/JsdialogCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_JsdialogCallback_H_ #define GOCEF_JsdialogCallback_H_ diff --git a/cef/JsdialogHandler_gen.c b/cef/JsdialogHandler_gen.c index d2c6d77..966d244 100644 --- a/cef/JsdialogHandler_gen.c +++ b/cef/JsdialogHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "JsdialogHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/JsdialogHandler_gen.go b/cef/JsdialogHandler_gen.go index 9c7f828..ff42915 100644 --- a/cef/JsdialogHandler_gen.go +++ b/cef/JsdialogHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "JsdialogHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "JsdialogHandler_gen.h" + "C" +) + // JsdialogHandlerProxy defines methods required for using JsdialogHandler. type JsdialogHandlerProxy interface { OnJsdialog(self *JsdialogHandler, browser *Browser, origin_url string, dialog_type JsdialogType, message_text, default_prompt_text string, callback *JsdialogCallback, suppress_message *int32) int32 @@ -76,6 +79,7 @@ func (d *JsdialogHandler) OnJsdialog(browser *Browser, origin_url string, dialog return lookupJsdialogHandlerProxy(d.Base()).OnJsdialog(d, browser, origin_url, dialog_type, message_text, default_prompt_text, callback, suppress_message) } +//nolint:gocritic //export gocef_jsdialog_handler_on_jsdialog func gocef_jsdialog_handler_on_jsdialog(self *C.cef_jsdialog_handler_t, browser *C.cef_browser_t, origin_url *C.cef_string_t, dialog_type C.cef_jsdialog_type_t, message_text *C.cef_string_t, default_prompt_text *C.cef_string_t, callback *C.cef_jsdialog_callback_t, suppress_message *C.int) C.int { me__ := (*JsdialogHandler)(self) @@ -97,6 +101,7 @@ func (d *JsdialogHandler) OnBeforeUnloadDialog(browser *Browser, message_text st return lookupJsdialogHandlerProxy(d.Base()).OnBeforeUnloadDialog(d, browser, message_text, is_reload, callback) } +//nolint:gocritic //export gocef_jsdialog_handler_on_before_unload_dialog func gocef_jsdialog_handler_on_before_unload_dialog(self *C.cef_jsdialog_handler_t, browser *C.cef_browser_t, message_text *C.cef_string_t, is_reload C.int, callback *C.cef_jsdialog_callback_t) C.int { me__ := (*JsdialogHandler)(self) @@ -113,6 +118,7 @@ func (d *JsdialogHandler) OnResetDialogState(browser *Browser) { lookupJsdialogHandlerProxy(d.Base()).OnResetDialogState(d, browser) } +//nolint:gocritic //export gocef_jsdialog_handler_on_reset_dialog_state func gocef_jsdialog_handler_on_reset_dialog_state(self *C.cef_jsdialog_handler_t, browser *C.cef_browser_t) { me__ := (*JsdialogHandler)(self) @@ -126,6 +132,7 @@ func (d *JsdialogHandler) OnDialogClosed(browser *Browser) { lookupJsdialogHandlerProxy(d.Base()).OnDialogClosed(d, browser) } +//nolint:gocritic //export gocef_jsdialog_handler_on_dialog_closed func gocef_jsdialog_handler_on_dialog_closed(self *C.cef_jsdialog_handler_t, browser *C.cef_browser_t) { me__ := (*JsdialogHandler)(self) diff --git a/cef/JsdialogHandler_gen.h b/cef/JsdialogHandler_gen.h index 568bee7..c33eea8 100644 --- a/cef/JsdialogHandler_gen.h +++ b/cef/JsdialogHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_JsdialogHandler_H_ #define GOCEF_JsdialogHandler_H_ diff --git a/cef/KeyEvent_gen.go b/cef/KeyEvent_gen.go index 2d7538c..fac244e 100644 --- a/cef/KeyEvent_gen.go +++ b/cef/KeyEvent_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/KeyboardHandler_gen.c b/cef/KeyboardHandler_gen.c index 071392c..5c2e417 100644 --- a/cef/KeyboardHandler_gen.c +++ b/cef/KeyboardHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "KeyboardHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/KeyboardHandler_gen.go b/cef/KeyboardHandler_gen.go index 9fdc445..2347918 100644 --- a/cef/KeyboardHandler_gen.go +++ b/cef/KeyboardHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "KeyboardHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "KeyboardHandler_gen.h" + "C" +) + // KeyboardHandlerProxy defines methods required for using KeyboardHandler. type KeyboardHandlerProxy interface { OnPreKeyEvent(self *KeyboardHandler, browser *Browser, event *KeyEvent, os_event unsafe.Pointer, is_keyboard_shortcut *int32) int32 @@ -64,6 +67,7 @@ func (d *KeyboardHandler) OnPreKeyEvent(browser *Browser, event *KeyEvent, os_ev return lookupKeyboardHandlerProxy(d.Base()).OnPreKeyEvent(d, browser, event, os_event, is_keyboard_shortcut) } +//nolint:gocritic //export gocef_keyboard_handler_on_pre_key_event func gocef_keyboard_handler_on_pre_key_event(self *C.cef_keyboard_handler_t, browser *C.cef_browser_t, event *C.cef_key_event_t, os_event unsafe.Pointer, is_keyboard_shortcut *C.int) C.int { me__ := (*KeyboardHandler)(self) @@ -81,6 +85,7 @@ func (d *KeyboardHandler) OnKeyEvent(browser *Browser, event *KeyEvent, os_event return lookupKeyboardHandlerProxy(d.Base()).OnKeyEvent(d, browser, event, os_event) } +//nolint:gocritic //export gocef_keyboard_handler_on_key_event func gocef_keyboard_handler_on_key_event(self *C.cef_keyboard_handler_t, browser *C.cef_browser_t, event *C.cef_key_event_t, os_event unsafe.Pointer) C.int { me__ := (*KeyboardHandler)(self) diff --git a/cef/KeyboardHandler_gen.h b/cef/KeyboardHandler_gen.h index db0f832..b5931ee 100644 --- a/cef/KeyboardHandler_gen.h +++ b/cef/KeyboardHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_KeyboardHandler_H_ #define GOCEF_KeyboardHandler_H_ diff --git a/cef/LabelButton_gen.go b/cef/LabelButton_gen.go index 0806262..8d3778b 100644 --- a/cef/LabelButton_gen.go +++ b/cef/LabelButton_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Layout_gen.go b/cef/Layout_gen.go index 5bda10d..0feb1f5 100644 --- a/cef/Layout_gen.go +++ b/cef/Layout_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/LifeSpanHandler_gen.c b/cef/LifeSpanHandler_gen.c index ebd3897..1356775 100644 --- a/cef/LifeSpanHandler_gen.c +++ b/cef/LifeSpanHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "LifeSpanHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/LifeSpanHandler_gen.go b/cef/LifeSpanHandler_gen.go index 1f8834a..f2c4aec 100644 --- a/cef/LifeSpanHandler_gen.go +++ b/cef/LifeSpanHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "LifeSpanHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "LifeSpanHandler_gen.h" + "C" +) + // LifeSpanHandlerProxy defines methods required for using LifeSpanHandler. type LifeSpanHandlerProxy interface { OnBeforePopup(self *LifeSpanHandler, browser *Browser, frame *Frame, target_url, target_frame_name string, target_disposition WindowOpenDisposition, user_gesture int32, popupFeatures *PopupFeatures, windowInfo *WindowInfo, client **Client, settings *BrowserSettings, no_javascript_access *int32) int32 @@ -82,6 +85,7 @@ func (d *LifeSpanHandler) OnBeforePopup(browser *Browser, frame *Frame, target_u return lookupLifeSpanHandlerProxy(d.Base()).OnBeforePopup(d, browser, frame, target_url, target_frame_name, target_disposition, user_gesture, popupFeatures, windowInfo, client, settings, no_javascript_access) } +//nolint:gocritic //export gocef_life_span_handler_on_before_popup func gocef_life_span_handler_on_before_popup(self *C.cef_life_span_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, target_url *C.cef_string_t, target_frame_name *C.cef_string_t, target_disposition C.cef_window_open_disposition_t, user_gesture C.int, popupFeatures *C.cef_popup_features_t, windowInfo *C.cef_window_info_t, client **C.cef_client_t, settings *C.cef_browser_settings_t, no_javascript_access *C.int) C.int { me__ := (*LifeSpanHandler)(self) @@ -103,6 +107,7 @@ func (d *LifeSpanHandler) OnAfterCreated(browser *Browser) { lookupLifeSpanHandlerProxy(d.Base()).OnAfterCreated(d, browser) } +//nolint:gocritic //export gocef_life_span_handler_on_after_created func gocef_life_span_handler_on_after_created(self *C.cef_life_span_handler_t, browser *C.cef_browser_t) { me__ := (*LifeSpanHandler)(self) @@ -202,6 +207,7 @@ func (d *LifeSpanHandler) DoClose(browser *Browser) int32 { return lookupLifeSpanHandlerProxy(d.Base()).DoClose(d, browser) } +//nolint:gocritic //export gocef_life_span_handler_do_close func gocef_life_span_handler_do_close(self *C.cef_life_span_handler_t, browser *C.cef_browser_t) C.int { me__ := (*LifeSpanHandler)(self) @@ -219,6 +225,7 @@ func (d *LifeSpanHandler) OnBeforeClose(browser *Browser) { lookupLifeSpanHandlerProxy(d.Base()).OnBeforeClose(d, browser) } +//nolint:gocritic //export gocef_life_span_handler_on_before_close func gocef_life_span_handler_on_before_close(self *C.cef_life_span_handler_t, browser *C.cef_browser_t) { me__ := (*LifeSpanHandler)(self) diff --git a/cef/LifeSpanHandler_gen.h b/cef/LifeSpanHandler_gen.h index 1af42fa..55ef61f 100644 --- a/cef/LifeSpanHandler_gen.h +++ b/cef/LifeSpanHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_LifeSpanHandler_H_ #define GOCEF_LifeSpanHandler_H_ diff --git a/cef/ListValue_gen.go b/cef/ListValue_gen.go index 0cd5a57..ca49a32 100644 --- a/cef/ListValue_gen.go +++ b/cef/ListValue_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/LoadHandler_gen.c b/cef/LoadHandler_gen.c index dd1dfe6..2e728ea 100644 --- a/cef/LoadHandler_gen.c +++ b/cef/LoadHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "LoadHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/LoadHandler_gen.go b/cef/LoadHandler_gen.go index 5c9b918..c4cf300 100644 --- a/cef/LoadHandler_gen.go +++ b/cef/LoadHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "LoadHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "LoadHandler_gen.h" + "C" +) + // LoadHandlerProxy defines methods required for using LoadHandler. type LoadHandlerProxy interface { OnLoadingStateChange(self *LoadHandler, browser *Browser, isLoading, canGoBack, canGoForward int32) @@ -67,6 +70,7 @@ func (d *LoadHandler) OnLoadingStateChange(browser *Browser, isLoading, canGoBac lookupLoadHandlerProxy(d.Base()).OnLoadingStateChange(d, browser, isLoading, canGoBack, canGoForward) } +//nolint:gocritic //export gocef_load_handler_on_loading_state_change func gocef_load_handler_on_loading_state_change(self *C.cef_load_handler_t, browser *C.cef_browser_t, isLoading C.int, canGoBack C.int, canGoForward C.int) { me__ := (*LoadHandler)(self) @@ -89,6 +93,7 @@ func (d *LoadHandler) OnLoadStart(browser *Browser, frame *Frame, transition_typ lookupLoadHandlerProxy(d.Base()).OnLoadStart(d, browser, frame, transition_type) } +//nolint:gocritic //export gocef_load_handler_on_load_start func gocef_load_handler_on_load_start(self *C.cef_load_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, transition_type C.cef_transition_type_t) { me__ := (*LoadHandler)(self) @@ -109,6 +114,7 @@ func (d *LoadHandler) OnLoadEnd(browser *Browser, frame *Frame, httpStatusCode i lookupLoadHandlerProxy(d.Base()).OnLoadEnd(d, browser, frame, httpStatusCode) } +//nolint:gocritic //export gocef_load_handler_on_load_end func gocef_load_handler_on_load_end(self *C.cef_load_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, httpStatusCode C.int) { me__ := (*LoadHandler)(self) @@ -126,6 +132,7 @@ func (d *LoadHandler) OnLoadError(browser *Browser, frame *Frame, errorCode Erro lookupLoadHandlerProxy(d.Base()).OnLoadError(d, browser, frame, errorCode, errorText, failedUrl) } +//nolint:gocritic //export gocef_load_handler_on_load_error func gocef_load_handler_on_load_error(self *C.cef_load_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, errorCode C.cef_errorcode_t, errorText *C.cef_string_t, failedUrl *C.cef_string_t) { me__ := (*LoadHandler)(self) diff --git a/cef/LoadHandler_gen.h b/cef/LoadHandler_gen.h index ae744e4..9e3c722 100644 --- a/cef/LoadHandler_gen.h +++ b/cef/LoadHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_LoadHandler_H_ #define GOCEF_LoadHandler_H_ diff --git a/cef/MainArgs_other.go b/cef/MainArgs_other.go index 2e7684e..b245c0c 100644 --- a/cef/MainArgs_other.go +++ b/cef/MainArgs_other.go @@ -2,12 +2,15 @@ package cef +import ( + "os" + "unsafe" +) + import ( // #include // #include "include/internal/cef_types.h" "C" - "os" - "unsafe" ) func (d *MainArgs) platformInit() { diff --git a/cef/MainArgs_windows.go b/cef/MainArgs_windows.go index 10ec6c2..dd68c2a 100644 --- a/cef/MainArgs_windows.go +++ b/cef/MainArgs_windows.go @@ -1,11 +1,14 @@ package cef +import ( + "syscall" + "unsafe" +) + import ( // #include // #include "include/internal/cef_types.h" "C" - "syscall" - "unsafe" ) func (d *MainArgs) platformInit() { diff --git a/cef/MenuButtonDelegate_gen.c b/cef/MenuButtonDelegate_gen.c index 0a142a2..e11c363 100644 --- a/cef/MenuButtonDelegate_gen.c +++ b/cef/MenuButtonDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "MenuButtonDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/MenuButtonDelegate_gen.go b/cef/MenuButtonDelegate_gen.go index 590d3fc..76782c8 100644 --- a/cef/MenuButtonDelegate_gen.go +++ b/cef/MenuButtonDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "MenuButtonDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "MenuButtonDelegate_gen.h" + "C" +) + // MenuButtonDelegateProxy defines methods required for using MenuButtonDelegate. type MenuButtonDelegateProxy interface { OnMenuButtonPressed(self *MenuButtonDelegate, menu_button *MenuButton, screen_point *Point, button_pressed_lock *MenuButtonPressedLock) @@ -63,6 +66,7 @@ func (d *MenuButtonDelegate) OnMenuButtonPressed(menu_button *MenuButton, screen lookupMenuButtonDelegateProxy(d.Base().Base().Base()).OnMenuButtonPressed(d, menu_button, screen_point, button_pressed_lock) } +//nolint:gocritic //export gocef_menu_button_delegate_on_menu_button_pressed func gocef_menu_button_delegate_on_menu_button_pressed(self *C.cef_menu_button_delegate_t, menu_button *C.cef_menu_button_t, screen_point *C.cef_point_t, button_pressed_lock *C.cef_menu_button_pressed_lock_t) { me__ := (*MenuButtonDelegate)(self) diff --git a/cef/MenuButtonDelegate_gen.h b/cef/MenuButtonDelegate_gen.h index 45224f5..b3184dc 100644 --- a/cef/MenuButtonDelegate_gen.h +++ b/cef/MenuButtonDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_MenuButtonDelegate_H_ #define GOCEF_MenuButtonDelegate_H_ diff --git a/cef/MenuButtonPressedLock_gen.go b/cef/MenuButtonPressedLock_gen.go index 0cc1429..14db6e2 100644 --- a/cef/MenuButtonPressedLock_gen.go +++ b/cef/MenuButtonPressedLock_gen.go @@ -1,11 +1,14 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef +import ( + "unsafe" +) + import ( // #include "capi_gen.h" "C" - "unsafe" ) // MenuButtonPressedLock (cef_menu_button_pressed_lock_t from include/capi/views/cef_menu_button_delegate_capi.h) diff --git a/cef/MenuButton_gen.go b/cef/MenuButton_gen.go index 9b1eab1..5191459 100644 --- a/cef/MenuButton_gen.go +++ b/cef/MenuButton_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/MenuModelDelegate_gen.c b/cef/MenuModelDelegate_gen.c index 9639cb5..67cec58 100644 --- a/cef/MenuModelDelegate_gen.c +++ b/cef/MenuModelDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "MenuModelDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/MenuModelDelegate_gen.go b/cef/MenuModelDelegate_gen.go index fde8563..50ead32 100644 --- a/cef/MenuModelDelegate_gen.go +++ b/cef/MenuModelDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "MenuModelDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "MenuModelDelegate_gen.h" + "C" +) + // MenuModelDelegateProxy defines methods required for using MenuModelDelegate. type MenuModelDelegateProxy interface { ExecuteCommand(self *MenuModelDelegate, menu_model *MenuModel, command_id int32, event_flags EventFlags) @@ -67,6 +70,7 @@ func (d *MenuModelDelegate) ExecuteCommand(menu_model *MenuModel, command_id int lookupMenuModelDelegateProxy(d.Base()).ExecuteCommand(d, menu_model, command_id, event_flags) } +//nolint:gocritic //export gocef_menu_model_delegate_execute_command func gocef_menu_model_delegate_execute_command(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t, command_id C.int, event_flags C.cef_event_flags_t) { me__ := (*MenuModelDelegate)(self) @@ -81,6 +85,7 @@ func (d *MenuModelDelegate) MouseOutsideMenu(menu_model *MenuModel, screen_point lookupMenuModelDelegateProxy(d.Base()).MouseOutsideMenu(d, menu_model, screen_point) } +//nolint:gocritic //export gocef_menu_model_delegate_mouse_outside_menu func gocef_menu_model_delegate_mouse_outside_menu(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t, screen_point *C.cef_point_t) { me__ := (*MenuModelDelegate)(self) @@ -96,6 +101,7 @@ func (d *MenuModelDelegate) UnhandledOpenSubmenu(menu_model *MenuModel, is_rtl i lookupMenuModelDelegateProxy(d.Base()).UnhandledOpenSubmenu(d, menu_model, is_rtl) } +//nolint:gocritic //export gocef_menu_model_delegate_unhandled_open_submenu func gocef_menu_model_delegate_unhandled_open_submenu(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t, is_rtl C.int) { me__ := (*MenuModelDelegate)(self) @@ -110,6 +116,7 @@ func (d *MenuModelDelegate) UnhandledCloseSubmenu(menu_model *MenuModel, is_rtl lookupMenuModelDelegateProxy(d.Base()).UnhandledCloseSubmenu(d, menu_model, is_rtl) } +//nolint:gocritic //export gocef_menu_model_delegate_unhandled_close_submenu func gocef_menu_model_delegate_unhandled_close_submenu(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t, is_rtl C.int) { me__ := (*MenuModelDelegate)(self) @@ -123,6 +130,7 @@ func (d *MenuModelDelegate) MenuWillShow(menu_model *MenuModel) { lookupMenuModelDelegateProxy(d.Base()).MenuWillShow(d, menu_model) } +//nolint:gocritic //export gocef_menu_model_delegate_menu_will_show func gocef_menu_model_delegate_menu_will_show(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t) { me__ := (*MenuModelDelegate)(self) @@ -136,6 +144,7 @@ func (d *MenuModelDelegate) MenuClosed(menu_model *MenuModel) { lookupMenuModelDelegateProxy(d.Base()).MenuClosed(d, menu_model) } +//nolint:gocritic //export gocef_menu_model_delegate_menu_closed func gocef_menu_model_delegate_menu_closed(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t) { me__ := (*MenuModelDelegate)(self) @@ -150,6 +159,7 @@ func (d *MenuModelDelegate) FormatLabel(menu_model *MenuModel, label *string) in return lookupMenuModelDelegateProxy(d.Base()).FormatLabel(d, menu_model, label) } +//nolint:gocritic //export gocef_menu_model_delegate_format_label func gocef_menu_model_delegate_format_label(self *C.cef_menu_model_delegate_t, menu_model *C.cef_menu_model_t, label *C.cef_string_t) C.int { me__ := (*MenuModelDelegate)(self) diff --git a/cef/MenuModelDelegate_gen.h b/cef/MenuModelDelegate_gen.h index 8a27c95..cc92057 100644 --- a/cef/MenuModelDelegate_gen.h +++ b/cef/MenuModelDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_MenuModelDelegate_H_ #define GOCEF_MenuModelDelegate_H_ diff --git a/cef/MenuModel_gen.go b/cef/MenuModel_gen.go index 2a0552b..2b896a3 100644 --- a/cef/MenuModel_gen.go +++ b/cef/MenuModel_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/MouseEvent_gen.go b/cef/MouseEvent_gen.go index 28b6b28..5483948 100644 --- a/cef/MouseEvent_gen.go +++ b/cef/MouseEvent_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/NavigationEntryVisitor_gen.c b/cef/NavigationEntryVisitor_gen.c index d0c9f6e..c39d99a 100644 --- a/cef/NavigationEntryVisitor_gen.c +++ b/cef/NavigationEntryVisitor_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "NavigationEntryVisitor_gen.h" #include "_cgo_export.h" diff --git a/cef/NavigationEntryVisitor_gen.go b/cef/NavigationEntryVisitor_gen.go index 6d4404a..f62220e 100644 --- a/cef/NavigationEntryVisitor_gen.go +++ b/cef/NavigationEntryVisitor_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "NavigationEntryVisitor_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "NavigationEntryVisitor_gen.h" + "C" +) + // NavigationEntryVisitorProxy defines methods required for using NavigationEntryVisitor. type NavigationEntryVisitorProxy interface { Visit(self *NavigationEntryVisitor, entry *NavigationEntry, current, index, total int32) int32 @@ -63,6 +66,7 @@ func (d *NavigationEntryVisitor) Visit(entry *NavigationEntry, current, index, t return lookupNavigationEntryVisitorProxy(d.Base()).Visit(d, entry, current, index, total) } +//nolint:gocritic //export gocef_navigation_entry_visitor_visit func gocef_navigation_entry_visitor_visit(self *C.cef_navigation_entry_visitor_t, entry *C.cef_navigation_entry_t, current C.int, index C.int, total C.int) C.int { me__ := (*NavigationEntryVisitor)(self) diff --git a/cef/NavigationEntryVisitor_gen.h b/cef/NavigationEntryVisitor_gen.h index 854270a..4d21559 100644 --- a/cef/NavigationEntryVisitor_gen.h +++ b/cef/NavigationEntryVisitor_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_NavigationEntryVisitor_H_ #define GOCEF_NavigationEntryVisitor_H_ diff --git a/cef/NavigationEntry_gen.go b/cef/NavigationEntry_gen.go index 0ca192f..61fe345 100644 --- a/cef/NavigationEntry_gen.go +++ b/cef/NavigationEntry_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/PDFPrintCallback_gen.c b/cef/PDFPrintCallback_gen.c index 1b6d398..f575ab0 100644 --- a/cef/PDFPrintCallback_gen.c +++ b/cef/PDFPrintCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "PDFPrintCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/PDFPrintCallback_gen.go b/cef/PDFPrintCallback_gen.go index 810a410..669a5b2 100644 --- a/cef/PDFPrintCallback_gen.go +++ b/cef/PDFPrintCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "PDFPrintCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "PDFPrintCallback_gen.h" + "C" +) + // PDFPrintCallbackProxy defines methods required for using PDFPrintCallback. type PDFPrintCallbackProxy interface { OnPdfPrintFinished(self *PDFPrintCallback, path string, ok int32) @@ -61,6 +64,7 @@ func (d *PDFPrintCallback) OnPdfPrintFinished(path string, ok int32) { lookupPDFPrintCallbackProxy(d.Base()).OnPdfPrintFinished(d, path, ok) } +//nolint:gocritic //export gocef_pdf_print_callback_on_pdf_print_finished func gocef_pdf_print_callback_on_pdf_print_finished(self *C.cef_pdf_print_callback_t, path *C.cef_string_t, ok C.int) { me__ := (*PDFPrintCallback)(self) diff --git a/cef/PDFPrintCallback_gen.h b/cef/PDFPrintCallback_gen.h index f6cbebb..eb21b17 100644 --- a/cef/PDFPrintCallback_gen.h +++ b/cef/PDFPrintCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_PDFPrintCallback_H_ #define GOCEF_PDFPrintCallback_H_ diff --git a/cef/PDFPrintSettings_gen.go b/cef/PDFPrintSettings_gen.go index a03adb1..8c120ae 100644 --- a/cef/PDFPrintSettings_gen.go +++ b/cef/PDFPrintSettings_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/PanelDelegate_gen.go b/cef/PanelDelegate_gen.go index 4ea546e..5b274b4 100644 --- a/cef/PanelDelegate_gen.go +++ b/cef/PanelDelegate_gen.go @@ -1,11 +1,14 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef +import ( + "unsafe" +) + import ( // #include "capi_gen.h" "C" - "unsafe" ) // PanelDelegate (cef_panel_delegate_t from include/capi/views/cef_panel_delegate_capi.h) diff --git a/cef/Panel_gen.go b/cef/Panel_gen.go index cea75ac..81e4e7f 100644 --- a/cef/Panel_gen.go +++ b/cef/Panel_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Point_gen.go b/cef/Point_gen.go index 48f5dd7..9380810 100644 --- a/cef/Point_gen.go +++ b/cef/Point_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/PopupFeatures_gen.go b/cef/PopupFeatures_gen.go index b46981a..c7ec6c2 100644 --- a/cef/PopupFeatures_gen.go +++ b/cef/PopupFeatures_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/PostDataElement_gen.go b/cef/PostDataElement_gen.go index 68b9b3c..1fccea2 100644 --- a/cef/PostDataElement_gen.go +++ b/cef/PostDataElement_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // int gocef_post_data_element_is_read_only(cef_post_data_element_t * self, int (CEF_CALLBACK *callback__)(cef_post_data_element_t *)) { return callback__(self); } @@ -13,7 +15,6 @@ import ( // size_t gocef_post_data_element_get_bytes_count(cef_post_data_element_t * self, size_t (CEF_CALLBACK *callback__)(cef_post_data_element_t *)) { return callback__(self); } // size_t gocef_post_data_element_get_bytes(cef_post_data_element_t * self, size_t size, void * bytes, size_t (CEF_CALLBACK *callback__)(cef_post_data_element_t *, size_t, void *)) { return callback__(self, size, bytes); } "C" - "unsafe" ) // PostDataElement (cef_post_data_element_t from include/capi/cef_request_capi.h) diff --git a/cef/PostData_gen.go b/cef/PostData_gen.go index 30daa6d..f728bd0 100644 --- a/cef/PostData_gen.go +++ b/cef/PostData_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/PrintDialogCallback_gen.c b/cef/PrintDialogCallback_gen.c index 6df6eaf..6fcb3ba 100644 --- a/cef/PrintDialogCallback_gen.c +++ b/cef/PrintDialogCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "PrintDialogCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/PrintDialogCallback_gen.go b/cef/PrintDialogCallback_gen.go index b9827b1..7523ed3 100644 --- a/cef/PrintDialogCallback_gen.go +++ b/cef/PrintDialogCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "PrintDialogCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "PrintDialogCallback_gen.h" + "C" +) + // PrintDialogCallbackProxy defines methods required for using PrintDialogCallback. type PrintDialogCallbackProxy interface { Cont(self *PrintDialogCallback, settings *PrintSettings) @@ -59,6 +62,7 @@ func (d *PrintDialogCallback) Cont(settings *PrintSettings) { lookupPrintDialogCallbackProxy(d.Base()).Cont(d, settings) } +//nolint:gocritic //export gocef_print_dialog_callback_cont func gocef_print_dialog_callback_cont(self *C.cef_print_dialog_callback_t, settings *C.cef_print_settings_t) { me__ := (*PrintDialogCallback)(self) @@ -72,6 +76,7 @@ func (d *PrintDialogCallback) Cancel() { lookupPrintDialogCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_print_dialog_callback_cancel func gocef_print_dialog_callback_cancel(self *C.cef_print_dialog_callback_t) { me__ := (*PrintDialogCallback)(self) diff --git a/cef/PrintDialogCallback_gen.h b/cef/PrintDialogCallback_gen.h index 78c5435..2866bcd 100644 --- a/cef/PrintDialogCallback_gen.h +++ b/cef/PrintDialogCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_PrintDialogCallback_H_ #define GOCEF_PrintDialogCallback_H_ diff --git a/cef/PrintHandler_gen.c b/cef/PrintHandler_gen.c index 636e399..bbc00bb 100644 --- a/cef/PrintHandler_gen.c +++ b/cef/PrintHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "PrintHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/PrintHandler_gen.go b/cef/PrintHandler_gen.go index 48a184b..0c884ba 100644 --- a/cef/PrintHandler_gen.go +++ b/cef/PrintHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "PrintHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "PrintHandler_gen.h" + "C" +) + // PrintHandlerProxy defines methods required for using PrintHandler. type PrintHandlerProxy interface { OnPrintStart(self *PrintHandler, browser *Browser) @@ -68,6 +71,7 @@ func (d *PrintHandler) OnPrintStart(browser *Browser) { lookupPrintHandlerProxy(d.Base()).OnPrintStart(d, browser) } +//nolint:gocritic //export gocef_print_handler_on_print_start func gocef_print_handler_on_print_start(self *C.cef_print_handler_t, browser *C.cef_browser_t) { me__ := (*PrintHandler)(self) @@ -83,6 +87,7 @@ func (d *PrintHandler) OnPrintSettings(browser *Browser, settings *PrintSettings lookupPrintHandlerProxy(d.Base()).OnPrintSettings(d, browser, settings, get_defaults) } +//nolint:gocritic //export gocef_print_handler_on_print_settings func gocef_print_handler_on_print_settings(self *C.cef_print_handler_t, browser *C.cef_browser_t, settings *C.cef_print_settings_t, get_defaults C.int) { me__ := (*PrintHandler)(self) @@ -98,6 +103,7 @@ func (d *PrintHandler) OnPrintDialog(browser *Browser, has_selection int32, call return lookupPrintHandlerProxy(d.Base()).OnPrintDialog(d, browser, has_selection, callback) } +//nolint:gocritic //export gocef_print_handler_on_print_dialog func gocef_print_handler_on_print_dialog(self *C.cef_print_handler_t, browser *C.cef_browser_t, has_selection C.int, callback *C.cef_print_dialog_callback_t) C.int { me__ := (*PrintHandler)(self) @@ -113,6 +119,7 @@ func (d *PrintHandler) OnPrintJob(browser *Browser, document_name, pdf_file_path return lookupPrintHandlerProxy(d.Base()).OnPrintJob(d, browser, document_name, pdf_file_path, callback) } +//nolint:gocritic //export gocef_print_handler_on_print_job func gocef_print_handler_on_print_job(self *C.cef_print_handler_t, browser *C.cef_browser_t, document_name *C.cef_string_t, pdf_file_path *C.cef_string_t, callback *C.cef_print_job_callback_t) C.int { me__ := (*PrintHandler)(self) @@ -128,6 +135,7 @@ func (d *PrintHandler) OnPrintReset(browser *Browser) { lookupPrintHandlerProxy(d.Base()).OnPrintReset(d, browser) } +//nolint:gocritic //export gocef_print_handler_on_print_reset func gocef_print_handler_on_print_reset(self *C.cef_print_handler_t, browser *C.cef_browser_t) { me__ := (*PrintHandler)(self) @@ -142,6 +150,7 @@ func (d *PrintHandler) GetPdfPaperSize(device_units_per_inch int32) Size { return lookupPrintHandlerProxy(d.Base()).GetPdfPaperSize(d, device_units_per_inch) } +//nolint:gocritic //export gocef_print_handler_get_pdf_paper_size func gocef_print_handler_get_pdf_paper_size(self *C.cef_print_handler_t, device_units_per_inch C.int) C.cef_size_t { me__ := (*PrintHandler)(self) diff --git a/cef/PrintHandler_gen.h b/cef/PrintHandler_gen.h index 19e4d70..7d296ed 100644 --- a/cef/PrintHandler_gen.h +++ b/cef/PrintHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_PrintHandler_H_ #define GOCEF_PrintHandler_H_ diff --git a/cef/PrintJobCallback_gen.c b/cef/PrintJobCallback_gen.c index e6d3bc3..2d64c76 100644 --- a/cef/PrintJobCallback_gen.c +++ b/cef/PrintJobCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "PrintJobCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/PrintJobCallback_gen.go b/cef/PrintJobCallback_gen.go index f8cc82c..01495e0 100644 --- a/cef/PrintJobCallback_gen.go +++ b/cef/PrintJobCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "PrintJobCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "PrintJobCallback_gen.h" + "C" +) + // PrintJobCallbackProxy defines methods required for using PrintJobCallback. type PrintJobCallbackProxy interface { Cont(self *PrintJobCallback) @@ -58,6 +61,7 @@ func (d *PrintJobCallback) Cont() { lookupPrintJobCallbackProxy(d.Base()).Cont(d) } +//nolint:gocritic //export gocef_print_job_callback_cont func gocef_print_job_callback_cont(self *C.cef_print_job_callback_t) { me__ := (*PrintJobCallback)(self) diff --git a/cef/PrintJobCallback_gen.h b/cef/PrintJobCallback_gen.h index fa838bf..70f12ac 100644 --- a/cef/PrintJobCallback_gen.h +++ b/cef/PrintJobCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_PrintJobCallback_H_ #define GOCEF_PrintJobCallback_H_ diff --git a/cef/PrintSettings_gen.go b/cef/PrintSettings_gen.go index 6da8bfe..8d9fe2c 100644 --- a/cef/PrintSettings_gen.go +++ b/cef/PrintSettings_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/ProcessMessage_gen.go b/cef/ProcessMessage_gen.go index 837fd60..e4e5eb9 100644 --- a/cef/ProcessMessage_gen.go +++ b/cef/ProcessMessage_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Range_gen.go b/cef/Range_gen.go index 413bdb5..491bfff 100644 --- a/cef/Range_gen.go +++ b/cef/Range_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/ReadHandler_gen.c b/cef/ReadHandler_gen.c index 04908c4..4d52f2b 100644 --- a/cef/ReadHandler_gen.c +++ b/cef/ReadHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ReadHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ReadHandler_gen.go b/cef/ReadHandler_gen.go index 501146e..086825f 100644 --- a/cef/ReadHandler_gen.go +++ b/cef/ReadHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ReadHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ReadHandler_gen.h" + "C" +) + // ReadHandlerProxy defines methods required for using ReadHandler. type ReadHandlerProxy interface { Read(self *ReadHandler, ptr unsafe.Pointer, size, n uint64) uint64 @@ -63,6 +66,7 @@ func (d *ReadHandler) Read(ptr unsafe.Pointer, size, n uint64) uint64 { return lookupReadHandlerProxy(d.Base()).Read(d, ptr, size, n) } +//nolint:gocritic //export gocef_read_handler_read func gocef_read_handler_read(self *C.cef_read_handler_t, ptr unsafe.Pointer, size C.size_t, n C.size_t) C.size_t { me__ := (*ReadHandler)(self) @@ -77,6 +81,7 @@ func (d *ReadHandler) Seek(offset int64, whence int32) int32 { return lookupReadHandlerProxy(d.Base()).Seek(d, offset, whence) } +//nolint:gocritic //export gocef_read_handler_seek func gocef_read_handler_seek(self *C.cef_read_handler_t, offset C.int64, whence C.int) C.int { me__ := (*ReadHandler)(self) @@ -90,6 +95,7 @@ func (d *ReadHandler) Tell() int64 { return lookupReadHandlerProxy(d.Base()).Tell(d) } +//nolint:gocritic //export gocef_read_handler_tell func gocef_read_handler_tell(self *C.cef_read_handler_t) C.int64 { me__ := (*ReadHandler)(self) @@ -103,6 +109,7 @@ func (d *ReadHandler) Eof() int32 { return lookupReadHandlerProxy(d.Base()).Eof(d) } +//nolint:gocritic //export gocef_read_handler_eof func gocef_read_handler_eof(self *C.cef_read_handler_t) C.int { me__ := (*ReadHandler)(self) @@ -118,6 +125,7 @@ func (d *ReadHandler) MayBlock() int32 { return lookupReadHandlerProxy(d.Base()).MayBlock(d) } +//nolint:gocritic //export gocef_read_handler_may_block func gocef_read_handler_may_block(self *C.cef_read_handler_t) C.int { me__ := (*ReadHandler)(self) diff --git a/cef/ReadHandler_gen.h b/cef/ReadHandler_gen.h index 6e8fb25..12ff26d 100644 --- a/cef/ReadHandler_gen.h +++ b/cef/ReadHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ReadHandler_H_ #define GOCEF_ReadHandler_H_ diff --git a/cef/Rect_gen.go b/cef/Rect_gen.go index d89857f..b7c899f 100644 --- a/cef/Rect_gen.go +++ b/cef/Rect_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/RegisterCdmCallback_gen.c b/cef/RegisterCdmCallback_gen.c index 8a2df8b..c866f34 100644 --- a/cef/RegisterCdmCallback_gen.c +++ b/cef/RegisterCdmCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RegisterCdmCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/RegisterCdmCallback_gen.go b/cef/RegisterCdmCallback_gen.go index c6ae1bb..4283711 100644 --- a/cef/RegisterCdmCallback_gen.go +++ b/cef/RegisterCdmCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RegisterCdmCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RegisterCdmCallback_gen.h" + "C" +) + // RegisterCdmCallbackProxy defines methods required for using RegisterCdmCallback. type RegisterCdmCallbackProxy interface { OnCdmRegistrationComplete(self *RegisterCdmCallback, result CdmRegistrationError, error_message string) @@ -63,6 +66,7 @@ func (d *RegisterCdmCallback) OnCdmRegistrationComplete(result CdmRegistrationEr lookupRegisterCdmCallbackProxy(d.Base()).OnCdmRegistrationComplete(d, result, error_message) } +//nolint:gocritic //export gocef_register_cdm_callback_on_cdm_registration_complete func gocef_register_cdm_callback_on_cdm_registration_complete(self *C.cef_register_cdm_callback_t, result C.cef_cdm_registration_error_t, error_message *C.cef_string_t) { me__ := (*RegisterCdmCallback)(self) diff --git a/cef/RegisterCdmCallback_gen.h b/cef/RegisterCdmCallback_gen.h index 9257217..bcf5976 100644 --- a/cef/RegisterCdmCallback_gen.h +++ b/cef/RegisterCdmCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RegisterCdmCallback_H_ #define GOCEF_RegisterCdmCallback_H_ diff --git a/cef/RenderHandler_gen.c b/cef/RenderHandler_gen.c index 9905227..4c07539 100644 --- a/cef/RenderHandler_gen.c +++ b/cef/RenderHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RenderHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/RenderHandler_gen.go b/cef/RenderHandler_gen.go index 4ba8796..1f62a3e 100644 --- a/cef/RenderHandler_gen.go +++ b/cef/RenderHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RenderHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RenderHandler_gen.h" + "C" +) + // RenderHandlerProxy defines methods required for using RenderHandler. type RenderHandlerProxy interface { GetAccessibilityHandler(self *RenderHandler) *AccessibilityHandler @@ -75,6 +78,7 @@ func (d *RenderHandler) GetAccessibilityHandler() *AccessibilityHandler { return lookupRenderHandlerProxy(d.Base()).GetAccessibilityHandler(d) } +//nolint:gocritic //export gocef_render_handler_get_accessibility_handler func gocef_render_handler_get_accessibility_handler(self *C.cef_render_handler_t) *C.cef_accessibility_handler_t { me__ := (*RenderHandler)(self) @@ -90,6 +94,7 @@ func (d *RenderHandler) GetRootScreenRect(browser *Browser, rect *Rect) int32 { return lookupRenderHandlerProxy(d.Base()).GetRootScreenRect(d, browser, rect) } +//nolint:gocritic //export gocef_render_handler_get_root_screen_rect func gocef_render_handler_get_root_screen_rect(self *C.cef_render_handler_t, browser *C.cef_browser_t, rect *C.cef_rect_t) C.int { me__ := (*RenderHandler)(self) @@ -105,6 +110,7 @@ func (d *RenderHandler) GetViewRect(browser *Browser, rect *Rect) { lookupRenderHandlerProxy(d.Base()).GetViewRect(d, browser, rect) } +//nolint:gocritic //export gocef_render_handler_get_view_rect func gocef_render_handler_get_view_rect(self *C.cef_render_handler_t, browser *C.cef_browser_t, rect *C.cef_rect_t) { me__ := (*RenderHandler)(self) @@ -120,6 +126,7 @@ func (d *RenderHandler) GetScreenPoint(browser *Browser, viewX, viewY int32, scr return lookupRenderHandlerProxy(d.Base()).GetScreenPoint(d, browser, viewX, viewY, screenX, screenY) } +//nolint:gocritic //export gocef_render_handler_get_screen_point func gocef_render_handler_get_screen_point(self *C.cef_render_handler_t, browser *C.cef_browser_t, viewX C.int, viewY C.int, screenX *C.int, screenY *C.int) C.int { me__ := (*RenderHandler)(self) @@ -139,6 +146,7 @@ func (d *RenderHandler) GetScreenInfo(browser *Browser, screen_info *ScreenInfo) return lookupRenderHandlerProxy(d.Base()).GetScreenInfo(d, browser, screen_info) } +//nolint:gocritic //export gocef_render_handler_get_screen_info func gocef_render_handler_get_screen_info(self *C.cef_render_handler_t, browser *C.cef_browser_t, screen_info *C.cef_screen_info_t) C.int { me__ := (*RenderHandler)(self) @@ -154,6 +162,7 @@ func (d *RenderHandler) OnPopupShow(browser *Browser, show int32) { lookupRenderHandlerProxy(d.Base()).OnPopupShow(d, browser, show) } +//nolint:gocritic //export gocef_render_handler_on_popup_show func gocef_render_handler_on_popup_show(self *C.cef_render_handler_t, browser *C.cef_browser_t, show C.int) { me__ := (*RenderHandler)(self) @@ -168,6 +177,7 @@ func (d *RenderHandler) OnPopupSize(browser *Browser, rect *Rect) { lookupRenderHandlerProxy(d.Base()).OnPopupSize(d, browser, rect) } +//nolint:gocritic //export gocef_render_handler_on_popup_size func gocef_render_handler_on_popup_size(self *C.cef_render_handler_t, browser *C.cef_browser_t, rect *C.cef_rect_t) { me__ := (*RenderHandler)(self) @@ -190,6 +200,7 @@ func (d *RenderHandler) OnPaint(browser *Browser, type_r PaintElementType, dirty lookupRenderHandlerProxy(d.Base()).OnPaint(d, browser, type_r, dirtyRectsCount, dirtyRects, buffer, width, height) } +//nolint:gocritic //export gocef_render_handler_on_paint func gocef_render_handler_on_paint(self *C.cef_render_handler_t, browser *C.cef_browser_t, type_r C.cef_paint_element_type_t, dirtyRectsCount C.size_t, dirtyRects *C.cef_rect_t, buffer unsafe.Pointer, width C.int, height C.int) { me__ := (*RenderHandler)(self) @@ -210,6 +221,7 @@ func (d *RenderHandler) OnAcceleratedPaint(browser *Browser, type_r PaintElement lookupRenderHandlerProxy(d.Base()).OnAcceleratedPaint(d, browser, type_r, dirtyRectsCount, dirtyRects, shared_handle) } +//nolint:gocritic //export gocef_render_handler_on_accelerated_paint func gocef_render_handler_on_accelerated_paint(self *C.cef_render_handler_t, browser *C.cef_browser_t, type_r C.cef_paint_element_type_t, dirtyRectsCount C.size_t, dirtyRects *C.cef_rect_t, shared_handle unsafe.Pointer) { me__ := (*RenderHandler)(self) @@ -225,6 +237,7 @@ func (d *RenderHandler) OnCursorChange(browser *Browser, cursor unsafe.Pointer, lookupRenderHandlerProxy(d.Base()).OnCursorChange(d, browser, cursor, type_r, custom_cursor_info) } +//nolint:gocritic //export gocef_render_handler_on_cursor_change func gocef_render_handler_on_cursor_change(self *C.cef_render_handler_t, browser *C.cef_browser_t, cursor unsafe.Pointer, type_r C.cef_cursor_type_t, custom_cursor_info *C.cef_cursor_info_t) { me__ := (*RenderHandler)(self) @@ -250,6 +263,7 @@ func (d *RenderHandler) StartDragging(browser *Browser, drag_data *DragData, all return lookupRenderHandlerProxy(d.Base()).StartDragging(d, browser, drag_data, allowed_ops, x, y) } +//nolint:gocritic //export gocef_render_handler_start_dragging func gocef_render_handler_start_dragging(self *C.cef_render_handler_t, browser *C.cef_browser_t, drag_data *C.cef_drag_data_t, allowed_ops C.cef_drag_operations_mask_t, x C.int, y C.int) C.int { me__ := (*RenderHandler)(self) @@ -265,6 +279,7 @@ func (d *RenderHandler) UpdateDragCursor(browser *Browser, operation DragOperati lookupRenderHandlerProxy(d.Base()).UpdateDragCursor(d, browser, operation) } +//nolint:gocritic //export gocef_render_handler_update_drag_cursor func gocef_render_handler_update_drag_cursor(self *C.cef_render_handler_t, browser *C.cef_browser_t, operation C.cef_drag_operations_mask_t) { me__ := (*RenderHandler)(self) @@ -278,6 +293,7 @@ func (d *RenderHandler) OnScrollOffsetChanged(browser *Browser, x, y float64) { lookupRenderHandlerProxy(d.Base()).OnScrollOffsetChanged(d, browser, x, y) } +//nolint:gocritic //export gocef_render_handler_on_scroll_offset_changed func gocef_render_handler_on_scroll_offset_changed(self *C.cef_render_handler_t, browser *C.cef_browser_t, x C.double, y C.double) { me__ := (*RenderHandler)(self) @@ -293,6 +309,7 @@ func (d *RenderHandler) OnImeCompositionRangeChanged(browser *Browser, selected_ lookupRenderHandlerProxy(d.Base()).OnImeCompositionRangeChanged(d, browser, selected_range, character_boundsCount, character_bounds) } +//nolint:gocritic //export gocef_render_handler_on_ime_composition_range_changed func gocef_render_handler_on_ime_composition_range_changed(self *C.cef_render_handler_t, browser *C.cef_browser_t, selected_range *C.cef_range_t, character_boundsCount C.size_t, character_bounds *C.cef_rect_t) { me__ := (*RenderHandler)(self) @@ -310,6 +327,7 @@ func (d *RenderHandler) OnTextSelectionChanged(browser *Browser, selected_text s lookupRenderHandlerProxy(d.Base()).OnTextSelectionChanged(d, browser, selected_text, selected_range) } +//nolint:gocritic //export gocef_render_handler_on_text_selection_changed func gocef_render_handler_on_text_selection_changed(self *C.cef_render_handler_t, browser *C.cef_browser_t, selected_text *C.cef_string_t, selected_range *C.cef_range_t) { me__ := (*RenderHandler)(self) @@ -328,6 +346,7 @@ func (d *RenderHandler) OnVirtualKeyboardRequested(browser *Browser, input_mode lookupRenderHandlerProxy(d.Base()).OnVirtualKeyboardRequested(d, browser, input_mode) } +//nolint:gocritic //export gocef_render_handler_on_virtual_keyboard_requested func gocef_render_handler_on_virtual_keyboard_requested(self *C.cef_render_handler_t, browser *C.cef_browser_t, input_mode C.cef_text_input_mode_t) { me__ := (*RenderHandler)(self) diff --git a/cef/RenderHandler_gen.h b/cef/RenderHandler_gen.h index 7ba12e8..2284349 100644 --- a/cef/RenderHandler_gen.h +++ b/cef/RenderHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RenderHandler_H_ #define GOCEF_RenderHandler_H_ diff --git a/cef/RenderProcessHandler_gen.c b/cef/RenderProcessHandler_gen.c index 12d2202..42a179a 100644 --- a/cef/RenderProcessHandler_gen.c +++ b/cef/RenderProcessHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RenderProcessHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/RenderProcessHandler_gen.go b/cef/RenderProcessHandler_gen.go index 9a0d073..b9df774 100644 --- a/cef/RenderProcessHandler_gen.go +++ b/cef/RenderProcessHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RenderProcessHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RenderProcessHandler_gen.h" + "C" +) + // RenderProcessHandlerProxy defines methods required for using RenderProcessHandler. type RenderProcessHandlerProxy interface { OnRenderThreadCreated(self *RenderProcessHandler, extra_info *ListValue) @@ -72,6 +75,7 @@ func (d *RenderProcessHandler) OnRenderThreadCreated(extra_info *ListValue) { lookupRenderProcessHandlerProxy(d.Base()).OnRenderThreadCreated(d, extra_info) } +//nolint:gocritic //export gocef_render_process_handler_on_render_thread_created func gocef_render_process_handler_on_render_thread_created(self *C.cef_render_process_handler_t, extra_info *C.cef_list_value_t) { me__ := (*RenderProcessHandler)(self) @@ -85,6 +89,7 @@ func (d *RenderProcessHandler) OnWebKitInitialized() { lookupRenderProcessHandlerProxy(d.Base()).OnWebKitInitialized(d) } +//nolint:gocritic //export gocef_render_process_handler_on_web_kit_initialized func gocef_render_process_handler_on_web_kit_initialized(self *C.cef_render_process_handler_t) { me__ := (*RenderProcessHandler)(self) @@ -100,6 +105,7 @@ func (d *RenderProcessHandler) OnBrowserCreated(browser *Browser) { lookupRenderProcessHandlerProxy(d.Base()).OnBrowserCreated(d, browser) } +//nolint:gocritic //export gocef_render_process_handler_on_browser_created func gocef_render_process_handler_on_browser_created(self *C.cef_render_process_handler_t, browser *C.cef_browser_t) { me__ := (*RenderProcessHandler)(self) @@ -113,6 +119,7 @@ func (d *RenderProcessHandler) OnBrowserDestroyed(browser *Browser) { lookupRenderProcessHandlerProxy(d.Base()).OnBrowserDestroyed(d, browser) } +//nolint:gocritic //export gocef_render_process_handler_on_browser_destroyed func gocef_render_process_handler_on_browser_destroyed(self *C.cef_render_process_handler_t, browser *C.cef_browser_t) { me__ := (*RenderProcessHandler)(self) @@ -126,6 +133,7 @@ func (d *RenderProcessHandler) GetLoadHandler() *LoadHandler { return lookupRenderProcessHandlerProxy(d.Base()).GetLoadHandler(d) } +//nolint:gocritic //export gocef_render_process_handler_get_load_handler func gocef_render_process_handler_get_load_handler(self *C.cef_render_process_handler_t) *C.cef_load_handler_t { me__ := (*RenderProcessHandler)(self) @@ -144,6 +152,7 @@ func (d *RenderProcessHandler) OnContextCreated(browser *Browser, frame *Frame, lookupRenderProcessHandlerProxy(d.Base()).OnContextCreated(d, browser, frame, context) } +//nolint:gocritic //export gocef_render_process_handler_on_context_created func gocef_render_process_handler_on_context_created(self *C.cef_render_process_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, context *C.cef_v8context_t) { me__ := (*RenderProcessHandler)(self) @@ -158,6 +167,7 @@ func (d *RenderProcessHandler) OnContextReleased(browser *Browser, frame *Frame, lookupRenderProcessHandlerProxy(d.Base()).OnContextReleased(d, browser, frame, context) } +//nolint:gocritic //export gocef_render_process_handler_on_context_released func gocef_render_process_handler_on_context_released(self *C.cef_render_process_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, context *C.cef_v8context_t) { me__ := (*RenderProcessHandler)(self) @@ -173,6 +183,7 @@ func (d *RenderProcessHandler) OnUncaughtException(browser *Browser, frame *Fram lookupRenderProcessHandlerProxy(d.Base()).OnUncaughtException(d, browser, frame, context, exception, stackTrace) } +//nolint:gocritic //export gocef_render_process_handler_on_uncaught_exception func gocef_render_process_handler_on_uncaught_exception(self *C.cef_render_process_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, context *C.cef_v8context_t, exception *C.cef_v8exception_t, stackTrace *C.cef_v8stack_trace_t) { me__ := (*RenderProcessHandler)(self) @@ -191,6 +202,7 @@ func (d *RenderProcessHandler) OnFocusedNodeChanged(browser *Browser, frame *Fra lookupRenderProcessHandlerProxy(d.Base()).OnFocusedNodeChanged(d, browser, frame, node) } +//nolint:gocritic //export gocef_render_process_handler_on_focused_node_changed func gocef_render_process_handler_on_focused_node_changed(self *C.cef_render_process_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, node *C.cef_domnode_t) { me__ := (*RenderProcessHandler)(self) @@ -206,6 +218,7 @@ func (d *RenderProcessHandler) OnProcessMessageReceived(browser *Browser, source return lookupRenderProcessHandlerProxy(d.Base()).OnProcessMessageReceived(d, browser, source_process, message) } +//nolint:gocritic //export gocef_render_process_handler_on_process_message_received func gocef_render_process_handler_on_process_message_received(self *C.cef_render_process_handler_t, browser *C.cef_browser_t, source_process C.cef_process_id_t, message *C.cef_process_message_t) C.int { me__ := (*RenderProcessHandler)(self) diff --git a/cef/RenderProcessHandler_gen.h b/cef/RenderProcessHandler_gen.h index 9db9403..9520ff0 100644 --- a/cef/RenderProcessHandler_gen.h +++ b/cef/RenderProcessHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RenderProcessHandler_H_ #define GOCEF_RenderProcessHandler_H_ diff --git a/cef/RequestCallback_gen.c b/cef/RequestCallback_gen.c index af0e8f9..ca100c7 100644 --- a/cef/RequestCallback_gen.c +++ b/cef/RequestCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RequestCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/RequestCallback_gen.go b/cef/RequestCallback_gen.go index ed49434..4c91fd3 100644 --- a/cef/RequestCallback_gen.go +++ b/cef/RequestCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RequestCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RequestCallback_gen.h" + "C" +) + // RequestCallbackProxy defines methods required for using RequestCallback. type RequestCallbackProxy interface { Cont(self *RequestCallback, allow int32) @@ -60,6 +63,7 @@ func (d *RequestCallback) Cont(allow int32) { lookupRequestCallbackProxy(d.Base()).Cont(d, allow) } +//nolint:gocritic //export gocef_request_callback_cont func gocef_request_callback_cont(self *C.cef_request_callback_t, allow C.int) { me__ := (*RequestCallback)(self) @@ -73,6 +77,7 @@ func (d *RequestCallback) Cancel() { lookupRequestCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_request_callback_cancel func gocef_request_callback_cancel(self *C.cef_request_callback_t) { me__ := (*RequestCallback)(self) diff --git a/cef/RequestCallback_gen.h b/cef/RequestCallback_gen.h index a0ec2ba..e119663 100644 --- a/cef/RequestCallback_gen.h +++ b/cef/RequestCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RequestCallback_H_ #define GOCEF_RequestCallback_H_ diff --git a/cef/RequestContextHandler_gen.c b/cef/RequestContextHandler_gen.c index 2851a45..872c14b 100644 --- a/cef/RequestContextHandler_gen.c +++ b/cef/RequestContextHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RequestContextHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/RequestContextHandler_gen.go b/cef/RequestContextHandler_gen.go index 2f09288..d30062b 100644 --- a/cef/RequestContextHandler_gen.go +++ b/cef/RequestContextHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RequestContextHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RequestContextHandler_gen.h" + "C" +) + // RequestContextHandlerProxy defines methods required for using RequestContextHandler. type RequestContextHandlerProxy interface { OnRequestContextInitialized(self *RequestContextHandler, request_context *RequestContext) @@ -63,6 +66,7 @@ func (d *RequestContextHandler) OnRequestContextInitialized(request_context *Req lookupRequestContextHandlerProxy(d.Base()).OnRequestContextInitialized(d, request_context) } +//nolint:gocritic //export gocef_request_context_handler_on_request_context_initialized func gocef_request_context_handler_on_request_context_initialized(self *C.cef_request_context_handler_t, request_context *C.cef_request_context_t) { me__ := (*RequestContextHandler)(self) @@ -78,6 +82,7 @@ func (d *RequestContextHandler) GetCookieManager() *CookieManager { return lookupRequestContextHandlerProxy(d.Base()).GetCookieManager(d) } +//nolint:gocritic //export gocef_request_context_handler_get_cookie_manager func gocef_request_context_handler_get_cookie_manager(self *C.cef_request_context_handler_t) *C.cef_cookie_manager_t { me__ := (*RequestContextHandler)(self) @@ -107,6 +112,7 @@ func (d *RequestContextHandler) OnBeforePluginLoad(mime_type, plugin_url string, return lookupRequestContextHandlerProxy(d.Base()).OnBeforePluginLoad(d, mime_type, plugin_url, is_main_frame, top_origin_url, plugin_info, plugin_policy) } +//nolint:gocritic //export gocef_request_context_handler_on_before_plugin_load func gocef_request_context_handler_on_before_plugin_load(self *C.cef_request_context_handler_t, mime_type *C.cef_string_t, plugin_url *C.cef_string_t, is_main_frame C.int, top_origin_url *C.cef_string_t, plugin_info *C.cef_web_plugin_info_t, plugin_policy *C.cef_plugin_policy_t) C.int { me__ := (*RequestContextHandler)(self) diff --git a/cef/RequestContextHandler_gen.h b/cef/RequestContextHandler_gen.h index 0ab6798..2fd242b 100644 --- a/cef/RequestContextHandler_gen.h +++ b/cef/RequestContextHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RequestContextHandler_H_ #define GOCEF_RequestContextHandler_H_ diff --git a/cef/RequestContextSettings_gen.go b/cef/RequestContextSettings_gen.go index 3826d80..b04d398 100644 --- a/cef/RequestContextSettings_gen.go +++ b/cef/RequestContextSettings_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/RequestContext_gen.go b/cef/RequestContext_gen.go index bf1c6ab..65d82e1 100644 --- a/cef/RequestContext_gen.go +++ b/cef/RequestContext_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/RequestHandler_gen.c b/cef/RequestHandler_gen.c index fe1632e..2a3fb58 100644 --- a/cef/RequestHandler_gen.c +++ b/cef/RequestHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RequestHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/RequestHandler_gen.go b/cef/RequestHandler_gen.go index f54d2ec..37b3c76 100644 --- a/cef/RequestHandler_gen.go +++ b/cef/RequestHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RequestHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RequestHandler_gen.h" + "C" +) + // RequestHandlerProxy defines methods required for using RequestHandler. type RequestHandlerProxy interface { OnBeforeBrowse(self *RequestHandler, browser *Browser, frame *Frame, request *Request, user_gesture, is_redirect int32) int32 @@ -85,6 +88,7 @@ func (d *RequestHandler) OnBeforeBrowse(browser *Browser, frame *Frame, request return lookupRequestHandlerProxy(d.Base()).OnBeforeBrowse(d, browser, frame, request, user_gesture, is_redirect) } +//nolint:gocritic //export gocef_request_handler_on_before_browse func gocef_request_handler_on_before_browse(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, user_gesture C.int, is_redirect C.int) C.int { me__ := (*RequestHandler)(self) @@ -111,6 +115,7 @@ func (d *RequestHandler) OnOpenUrlfromTab(browser *Browser, frame *Frame, target return lookupRequestHandlerProxy(d.Base()).OnOpenUrlfromTab(d, browser, frame, target_url, target_disposition, user_gesture) } +//nolint:gocritic //export gocef_request_handler_on_open_urlfrom_tab func gocef_request_handler_on_open_urlfrom_tab(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, target_url *C.cef_string_t, target_disposition C.cef_window_open_disposition_t, user_gesture C.int) C.int { me__ := (*RequestHandler)(self) @@ -130,6 +135,7 @@ func (d *RequestHandler) OnBeforeResourceLoad(browser *Browser, frame *Frame, re return lookupRequestHandlerProxy(d.Base()).OnBeforeResourceLoad(d, browser, frame, request, callback) } +//nolint:gocritic //export gocef_request_handler_on_before_resource_load func gocef_request_handler_on_before_resource_load(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, callback *C.cef_request_callback_t) C.cef_return_value_t { me__ := (*RequestHandler)(self) @@ -146,6 +152,7 @@ func (d *RequestHandler) GetResourceHandler(browser *Browser, frame *Frame, requ return lookupRequestHandlerProxy(d.Base()).GetResourceHandler(d, browser, frame, request) } +//nolint:gocritic //export gocef_request_handler_get_resource_handler func gocef_request_handler_get_resource_handler(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t) *C.cef_resource_handler_t { me__ := (*RequestHandler)(self) @@ -164,6 +171,7 @@ func (d *RequestHandler) OnResourceRedirect(browser *Browser, frame *Frame, requ lookupRequestHandlerProxy(d.Base()).OnResourceRedirect(d, browser, frame, request, response, new_url) } +//nolint:gocritic //export gocef_request_handler_on_resource_redirect func gocef_request_handler_on_resource_redirect(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, response *C.cef_response_t, new_url *C.cef_string_t) { me__ := (*RequestHandler)(self) @@ -181,6 +189,7 @@ func (d *RequestHandler) OnResourceResponse(browser *Browser, frame *Frame, requ return lookupRequestHandlerProxy(d.Base()).OnResourceResponse(d, browser, frame, request, response) } +//nolint:gocritic //export gocef_request_handler_on_resource_response func gocef_request_handler_on_resource_response(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, response *C.cef_response_t) C.int { me__ := (*RequestHandler)(self) @@ -196,6 +205,7 @@ func (d *RequestHandler) GetResourceResponseFilter(browser *Browser, frame *Fram return lookupRequestHandlerProxy(d.Base()).GetResourceResponseFilter(d, browser, frame, request, response) } +//nolint:gocritic //export gocef_request_handler_get_resource_response_filter func gocef_request_handler_get_resource_response_filter(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, response *C.cef_response_t) *C.cef_response_filter_t { me__ := (*RequestHandler)(self) @@ -212,6 +222,7 @@ func (d *RequestHandler) OnResourceLoadComplete(browser *Browser, frame *Frame, lookupRequestHandlerProxy(d.Base()).OnResourceLoadComplete(d, browser, frame, request, response, status, received_content_length) } +//nolint:gocritic //export gocef_request_handler_on_resource_load_complete func gocef_request_handler_on_resource_load_complete(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, response *C.cef_response_t, status C.cef_urlrequest_status_t, received_content_length C.int64) { me__ := (*RequestHandler)(self) @@ -233,6 +244,7 @@ func (d *RequestHandler) GetAuthCredentials(browser *Browser, frame *Frame, isPr return lookupRequestHandlerProxy(d.Base()).GetAuthCredentials(d, browser, frame, isProxy, host, port, realm, scheme, callback) } +//nolint:gocritic //export gocef_request_handler_get_auth_credentials func gocef_request_handler_get_auth_credentials(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, isProxy C.int, host *C.cef_string_t, port C.int, realm *C.cef_string_t, scheme *C.cef_string_t, callback *C.cef_auth_callback_t) C.int { me__ := (*RequestHandler)(self) @@ -252,6 +264,7 @@ func (d *RequestHandler) CanGetCookies(browser *Browser, frame *Frame, request * return lookupRequestHandlerProxy(d.Base()).CanGetCookies(d, browser, frame, request) } +//nolint:gocritic //export gocef_request_handler_can_get_cookies func gocef_request_handler_can_get_cookies(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t) C.int { me__ := (*RequestHandler)(self) @@ -268,6 +281,7 @@ func (d *RequestHandler) CanSetCookie(browser *Browser, frame *Frame, request *R return lookupRequestHandlerProxy(d.Base()).CanSetCookie(d, browser, frame, request, cookie) } +//nolint:gocritic //export gocef_request_handler_can_set_cookie func gocef_request_handler_can_set_cookie(self *C.cef_request_handler_t, browser *C.cef_browser_t, frame *C.cef_frame_t, request *C.cef_request_t, cookie *C.cef_cookie_t) C.int { me__ := (*RequestHandler)(self) @@ -288,6 +302,7 @@ func (d *RequestHandler) OnQuotaRequest(browser *Browser, origin_url string, new return lookupRequestHandlerProxy(d.Base()).OnQuotaRequest(d, browser, origin_url, new_size, callback) } +//nolint:gocritic //export gocef_request_handler_on_quota_request func gocef_request_handler_on_quota_request(self *C.cef_request_handler_t, browser *C.cef_browser_t, origin_url *C.cef_string_t, new_size C.int64, callback *C.cef_request_callback_t) C.int { me__ := (*RequestHandler)(self) @@ -306,6 +321,7 @@ func (d *RequestHandler) OnProtocolExecution(browser *Browser, url string, allow lookupRequestHandlerProxy(d.Base()).OnProtocolExecution(d, browser, url, allow_os_execution) } +//nolint:gocritic //export gocef_request_handler_on_protocol_execution func gocef_request_handler_on_protocol_execution(self *C.cef_request_handler_t, browser *C.cef_browser_t, url *C.cef_string_t, allow_os_execution *C.int) { me__ := (*RequestHandler)(self) @@ -325,6 +341,7 @@ func (d *RequestHandler) OnCertificateError(browser *Browser, cert_error Errorco return lookupRequestHandlerProxy(d.Base()).OnCertificateError(d, browser, cert_error, request_url, ssl_info, callback) } +//nolint:gocritic //export gocef_request_handler_on_certificate_error func gocef_request_handler_on_certificate_error(self *C.cef_request_handler_t, browser *C.cef_browser_t, cert_error C.cef_errorcode_t, request_url *C.cef_string_t, ssl_info *C.cef_sslinfo_t, callback *C.cef_request_callback_t) C.int { me__ := (*RequestHandler)(self) @@ -349,6 +366,7 @@ func (d *RequestHandler) OnSelectClientCertificate(browser *Browser, isProxy int return lookupRequestHandlerProxy(d.Base()).OnSelectClientCertificate(d, browser, isProxy, host, port, certificatesCount, certificates, callback) } +//nolint:gocritic //export gocef_request_handler_on_select_client_certificate func gocef_request_handler_on_select_client_certificate(self *C.cef_request_handler_t, browser *C.cef_browser_t, isProxy C.int, host *C.cef_string_t, port C.int, certificatesCount C.size_t, certificates **C.cef_x509certificate_t, callback *C.cef_select_client_certificate_callback_t) C.int { me__ := (*RequestHandler)(self) @@ -366,6 +384,7 @@ func (d *RequestHandler) OnPluginCrashed(browser *Browser, plugin_path string) { lookupRequestHandlerProxy(d.Base()).OnPluginCrashed(d, browser, plugin_path) } +//nolint:gocritic //export gocef_request_handler_on_plugin_crashed func gocef_request_handler_on_plugin_crashed(self *C.cef_request_handler_t, browser *C.cef_browser_t, plugin_path *C.cef_string_t) { me__ := (*RequestHandler)(self) @@ -382,6 +401,7 @@ func (d *RequestHandler) OnRenderViewReady(browser *Browser) { lookupRequestHandlerProxy(d.Base()).OnRenderViewReady(d, browser) } +//nolint:gocritic //export gocef_request_handler_on_render_view_ready func gocef_request_handler_on_render_view_ready(self *C.cef_request_handler_t, browser *C.cef_browser_t) { me__ := (*RequestHandler)(self) @@ -396,6 +416,7 @@ func (d *RequestHandler) OnRenderProcessTerminated(browser *Browser, status Term lookupRequestHandlerProxy(d.Base()).OnRenderProcessTerminated(d, browser, status) } +//nolint:gocritic //export gocef_request_handler_on_render_process_terminated func gocef_request_handler_on_render_process_terminated(self *C.cef_request_handler_t, browser *C.cef_browser_t, status C.cef_termination_status_t) { me__ := (*RequestHandler)(self) diff --git a/cef/RequestHandler_gen.h b/cef/RequestHandler_gen.h index 87d9b01..0fa185e 100644 --- a/cef/RequestHandler_gen.h +++ b/cef/RequestHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RequestHandler_H_ #define GOCEF_RequestHandler_H_ diff --git a/cef/Request_gen.go b/cef/Request_gen.go index 81114c8..3719a55 100644 --- a/cef/Request_gen.go +++ b/cef/Request_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/ResolveCallback_gen.c b/cef/ResolveCallback_gen.c index 9939c55..83f3216 100644 --- a/cef/ResolveCallback_gen.c +++ b/cef/ResolveCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ResolveCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/ResolveCallback_gen.go b/cef/ResolveCallback_gen.go index 8a423c3..253fc24 100644 --- a/cef/ResolveCallback_gen.go +++ b/cef/ResolveCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ResolveCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ResolveCallback_gen.h" + "C" +) + // ResolveCallbackProxy defines methods required for using ResolveCallback. type ResolveCallbackProxy interface { OnResolveCompleted(self *ResolveCallback, result Errorcode, resolved_ips StringList) @@ -60,6 +63,7 @@ func (d *ResolveCallback) OnResolveCompleted(result Errorcode, resolved_ips Stri lookupResolveCallbackProxy(d.Base()).OnResolveCompleted(d, result, resolved_ips) } +//nolint:gocritic //export gocef_resolve_callback_on_resolve_completed func gocef_resolve_callback_on_resolve_completed(self *C.cef_resolve_callback_t, result C.cef_errorcode_t, resolved_ips C.cef_string_list_t) { me__ := (*ResolveCallback)(self) diff --git a/cef/ResolveCallback_gen.h b/cef/ResolveCallback_gen.h index aff8303..65a4f94 100644 --- a/cef/ResolveCallback_gen.h +++ b/cef/ResolveCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ResolveCallback_H_ #define GOCEF_ResolveCallback_H_ diff --git a/cef/ResourceBundleHandler_gen.c b/cef/ResourceBundleHandler_gen.c index 218576c..b844a06 100644 --- a/cef/ResourceBundleHandler_gen.c +++ b/cef/ResourceBundleHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ResourceBundleHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ResourceBundleHandler_gen.go b/cef/ResourceBundleHandler_gen.go index 5196b8b..1c0cb32 100644 --- a/cef/ResourceBundleHandler_gen.go +++ b/cef/ResourceBundleHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ResourceBundleHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ResourceBundleHandler_gen.h" + "C" +) + // ResourceBundleHandlerProxy defines methods required for using ResourceBundleHandler. type ResourceBundleHandlerProxy interface { GetLocalizedString(self *ResourceBundleHandler, string_id int32, string_r *string) int32 @@ -65,6 +68,7 @@ func (d *ResourceBundleHandler) GetLocalizedString(string_id int32, string_r *st return lookupResourceBundleHandlerProxy(d.Base()).GetLocalizedString(d, string_id, string_r) } +//nolint:gocritic //export gocef_resource_bundle_handler_get_localized_string func gocef_resource_bundle_handler_get_localized_string(self *C.cef_resource_bundle_handler_t, string_id C.int, string_r *C.cef_string_t) C.int { me__ := (*ResourceBundleHandler)(self) @@ -84,6 +88,7 @@ func (d *ResourceBundleHandler) GetDataResource(resource_id int32, data *unsafe. return lookupResourceBundleHandlerProxy(d.Base()).GetDataResource(d, resource_id, data, data_size) } +//nolint:gocritic //export gocef_resource_bundle_handler_get_data_resource func gocef_resource_bundle_handler_get_data_resource(self *C.cef_resource_bundle_handler_t, resource_id C.int, data *unsafe.Pointer, data_size *C.size_t) C.int { me__ := (*ResourceBundleHandler)(self) @@ -102,6 +107,7 @@ func (d *ResourceBundleHandler) GetDataResourceForScale(resource_id int32, scale return lookupResourceBundleHandlerProxy(d.Base()).GetDataResourceForScale(d, resource_id, scale_factor, data, data_size) } +//nolint:gocritic //export gocef_resource_bundle_handler_get_data_resource_for_scale func gocef_resource_bundle_handler_get_data_resource_for_scale(self *C.cef_resource_bundle_handler_t, resource_id C.int, scale_factor C.cef_scale_factor_t, data *unsafe.Pointer, data_size *C.size_t) C.int { me__ := (*ResourceBundleHandler)(self) diff --git a/cef/ResourceBundleHandler_gen.h b/cef/ResourceBundleHandler_gen.h index c0d22d6..176df2f 100644 --- a/cef/ResourceBundleHandler_gen.h +++ b/cef/ResourceBundleHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ResourceBundleHandler_H_ #define GOCEF_ResourceBundleHandler_H_ diff --git a/cef/ResourceBundle_gen.go b/cef/ResourceBundle_gen.go index 66dcd5d..d0704cc 100644 --- a/cef/ResourceBundle_gen.go +++ b/cef/ResourceBundle_gen.go @@ -1,14 +1,15 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // cef_string_userfree_t gocef_resource_bundle_get_localized_string(cef_resource_bundle_t * self, int string_id, cef_string_userfree_t (CEF_CALLBACK *callback__)(cef_resource_bundle_t *, int)) { return callback__(self, string_id); } // int gocef_resource_bundle_get_data_resource(cef_resource_bundle_t * self, int resource_id, void ** data, size_t * data_size, int (CEF_CALLBACK *callback__)(cef_resource_bundle_t *, int, void **, size_t *)) { return callback__(self, resource_id, data, data_size); } // int gocef_resource_bundle_get_data_resource_for_scale(cef_resource_bundle_t * self, int resource_id, cef_scale_factor_t scale_factor, void ** data, size_t * data_size, int (CEF_CALLBACK *callback__)(cef_resource_bundle_t *, int, cef_scale_factor_t, void **, size_t *)) { return callback__(self, resource_id, scale_factor, data, data_size); } "C" - "unsafe" ) // ResourceBundle (cef_resource_bundle_t from include/capi/cef_resource_bundle_capi.h) diff --git a/cef/ResourceHandler_gen.c b/cef/ResourceHandler_gen.c index 8c25570..23013a0 100644 --- a/cef/ResourceHandler_gen.c +++ b/cef/ResourceHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ResourceHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ResourceHandler_gen.go b/cef/ResourceHandler_gen.go index 7bcd669..bd0d44c 100644 --- a/cef/ResourceHandler_gen.go +++ b/cef/ResourceHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ResourceHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ResourceHandler_gen.h" + "C" +) + // ResourceHandlerProxy defines methods required for using ResourceHandler. type ResourceHandlerProxy interface { ProcessRequest(self *ResourceHandler, request *Request, callback *Callback) int32 @@ -68,6 +71,7 @@ func (d *ResourceHandler) ProcessRequest(request *Request, callback *Callback) i return lookupResourceHandlerProxy(d.Base()).ProcessRequest(d, request, callback) } +//nolint:gocritic //export gocef_resource_handler_process_request func gocef_resource_handler_process_request(self *C.cef_resource_handler_t, request *C.cef_request_t, callback *C.cef_callback_t) C.int { me__ := (*ResourceHandler)(self) @@ -93,6 +97,7 @@ func (d *ResourceHandler) GetResponseHeaders(response *Response, response_length lookupResourceHandlerProxy(d.Base()).GetResponseHeaders(d, response, response_length, redirectUrl) } +//nolint:gocritic //export gocef_resource_handler_get_response_headers func gocef_resource_handler_get_response_headers(self *C.cef_resource_handler_t, response *C.cef_response_t, response_length *C.int64, redirectUrl *C.cef_string_t) { me__ := (*ResourceHandler)(self) @@ -111,6 +116,7 @@ func (d *ResourceHandler) ReadResponse(data_out unsafe.Pointer, bytes_to_read in return lookupResourceHandlerProxy(d.Base()).ReadResponse(d, data_out, bytes_to_read, bytes_read, callback) } +//nolint:gocritic //export gocef_resource_handler_read_response func gocef_resource_handler_read_response(self *C.cef_resource_handler_t, data_out unsafe.Pointer, bytes_to_read C.int, bytes_read *C.int, callback *C.cef_callback_t) C.int { me__ := (*ResourceHandler)(self) @@ -126,6 +132,7 @@ func (d *ResourceHandler) CanGetCookie(cookie *Cookie) int32 { return lookupResourceHandlerProxy(d.Base()).CanGetCookie(d, cookie) } +//nolint:gocritic //export gocef_resource_handler_can_get_cookie func gocef_resource_handler_can_get_cookie(self *C.cef_resource_handler_t, cookie *C.cef_cookie_t) C.int { me__ := (*ResourceHandler)(self) @@ -141,6 +148,7 @@ func (d *ResourceHandler) CanSetCookie(cookie *Cookie) int32 { return lookupResourceHandlerProxy(d.Base()).CanSetCookie(d, cookie) } +//nolint:gocritic //export gocef_resource_handler_can_set_cookie func gocef_resource_handler_can_set_cookie(self *C.cef_resource_handler_t, cookie *C.cef_cookie_t) C.int { me__ := (*ResourceHandler)(self) @@ -155,6 +163,7 @@ func (d *ResourceHandler) Cancel() { lookupResourceHandlerProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_resource_handler_cancel func gocef_resource_handler_cancel(self *C.cef_resource_handler_t) { me__ := (*ResourceHandler)(self) diff --git a/cef/ResourceHandler_gen.h b/cef/ResourceHandler_gen.h index 094b17f..5372ffb 100644 --- a/cef/ResourceHandler_gen.h +++ b/cef/ResourceHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ResourceHandler_H_ #define GOCEF_ResourceHandler_H_ diff --git a/cef/ResponseFilter_gen.c b/cef/ResponseFilter_gen.c index c45f13c..ba385ed 100644 --- a/cef/ResponseFilter_gen.c +++ b/cef/ResponseFilter_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ResponseFilter_gen.h" #include "_cgo_export.h" diff --git a/cef/ResponseFilter_gen.go b/cef/ResponseFilter_gen.go index bbb7269..07d8dd5 100644 --- a/cef/ResponseFilter_gen.go +++ b/cef/ResponseFilter_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ResponseFilter_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ResponseFilter_gen.h" + "C" +) + // ResponseFilterProxy defines methods required for using ResponseFilter. type ResponseFilterProxy interface { InitFilter(self *ResponseFilter) int32 @@ -61,6 +64,7 @@ func (d *ResponseFilter) InitFilter() int32 { return lookupResponseFilterProxy(d.Base()).InitFilter(d) } +//nolint:gocritic //export gocef_response_filter_init_filter func gocef_response_filter_init_filter(self *C.cef_response_filter_t) C.int { me__ := (*ResponseFilter)(self) @@ -102,6 +106,7 @@ func (d *ResponseFilter) Filter(data_in unsafe.Pointer, data_in_size uint64, dat return lookupResponseFilterProxy(d.Base()).Filter(d, data_in, data_in_size, data_in_read, data_out, data_out_size, data_out_written) } +//nolint:gocritic //export gocef_response_filter_filter func gocef_response_filter_filter(self *C.cef_response_filter_t, data_in unsafe.Pointer, data_in_size C.size_t, data_in_read *C.size_t, data_out unsafe.Pointer, data_out_size C.size_t, data_out_written *C.size_t) C.cef_response_filter_status_t { me__ := (*ResponseFilter)(self) diff --git a/cef/ResponseFilter_gen.h b/cef/ResponseFilter_gen.h index 0101e7b..ea4a5a0 100644 --- a/cef/ResponseFilter_gen.h +++ b/cef/ResponseFilter_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ResponseFilter_H_ #define GOCEF_ResponseFilter_H_ diff --git a/cef/Response_gen.go b/cef/Response_gen.go index c7587cd..376f4d2 100644 --- a/cef/Response_gen.go +++ b/cef/Response_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/RunContextMenuCallback_gen.c b/cef/RunContextMenuCallback_gen.c index 1a85df4..fe88790 100644 --- a/cef/RunContextMenuCallback_gen.c +++ b/cef/RunContextMenuCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RunContextMenuCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/RunContextMenuCallback_gen.go b/cef/RunContextMenuCallback_gen.go index e75ff84..b977fe1 100644 --- a/cef/RunContextMenuCallback_gen.go +++ b/cef/RunContextMenuCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RunContextMenuCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RunContextMenuCallback_gen.h" + "C" +) + // RunContextMenuCallbackProxy defines methods required for using RunContextMenuCallback. type RunContextMenuCallbackProxy interface { Cont(self *RunContextMenuCallback, command_id int32, event_flags EventFlags) @@ -60,6 +63,7 @@ func (d *RunContextMenuCallback) Cont(command_id int32, event_flags EventFlags) lookupRunContextMenuCallbackProxy(d.Base()).Cont(d, command_id, event_flags) } +//nolint:gocritic //export gocef_run_context_menu_callback_cont func gocef_run_context_menu_callback_cont(self *C.cef_run_context_menu_callback_t, command_id C.int, event_flags C.cef_event_flags_t) { me__ := (*RunContextMenuCallback)(self) @@ -73,6 +77,7 @@ func (d *RunContextMenuCallback) Cancel() { lookupRunContextMenuCallbackProxy(d.Base()).Cancel(d) } +//nolint:gocritic //export gocef_run_context_menu_callback_cancel func gocef_run_context_menu_callback_cancel(self *C.cef_run_context_menu_callback_t) { me__ := (*RunContextMenuCallback)(self) diff --git a/cef/RunContextMenuCallback_gen.h b/cef/RunContextMenuCallback_gen.h index f16b0a0..efde08c 100644 --- a/cef/RunContextMenuCallback_gen.h +++ b/cef/RunContextMenuCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RunContextMenuCallback_H_ #define GOCEF_RunContextMenuCallback_H_ diff --git a/cef/RunFileDialogCallback_gen.c b/cef/RunFileDialogCallback_gen.c index 5fc32d6..db67f64 100644 --- a/cef/RunFileDialogCallback_gen.c +++ b/cef/RunFileDialogCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "RunFileDialogCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/RunFileDialogCallback_gen.go b/cef/RunFileDialogCallback_gen.go index 4b3946d..d4f7910 100644 --- a/cef/RunFileDialogCallback_gen.go +++ b/cef/RunFileDialogCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "RunFileDialogCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "RunFileDialogCallback_gen.h" + "C" +) + // RunFileDialogCallbackProxy defines methods required for using RunFileDialogCallback. type RunFileDialogCallbackProxy interface { OnFileDialogDismissed(self *RunFileDialogCallback, selected_accept_filter int32, file_paths StringList) @@ -63,6 +66,7 @@ func (d *RunFileDialogCallback) OnFileDialogDismissed(selected_accept_filter int lookupRunFileDialogCallbackProxy(d.Base()).OnFileDialogDismissed(d, selected_accept_filter, file_paths) } +//nolint:gocritic //export gocef_run_file_dialog_callback_on_file_dialog_dismissed func gocef_run_file_dialog_callback_on_file_dialog_dismissed(self *C.cef_run_file_dialog_callback_t, selected_accept_filter C.int, file_paths C.cef_string_list_t) { me__ := (*RunFileDialogCallback)(self) diff --git a/cef/RunFileDialogCallback_gen.h b/cef/RunFileDialogCallback_gen.h index 9f783bd..c7e3162 100644 --- a/cef/RunFileDialogCallback_gen.h +++ b/cef/RunFileDialogCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_RunFileDialogCallback_H_ #define GOCEF_RunFileDialogCallback_H_ diff --git a/cef/SchemeHandlerFactory_gen.go b/cef/SchemeHandlerFactory_gen.go index 6b88e68..b81da0b 100644 --- a/cef/SchemeHandlerFactory_gen.go +++ b/cef/SchemeHandlerFactory_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/SchemeRegistrar_gen.go b/cef/SchemeRegistrar_gen.go index 5291ce6..e0ae8fb 100644 --- a/cef/SchemeRegistrar_gen.go +++ b/cef/SchemeRegistrar_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/ScreenInfo_gen.go b/cef/ScreenInfo_gen.go index 250670f..7a18d93 100644 --- a/cef/ScreenInfo_gen.go +++ b/cef/ScreenInfo_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/ScrollView_gen.go b/cef/ScrollView_gen.go index 63f18ff..28851b9 100644 --- a/cef/ScrollView_gen.go +++ b/cef/ScrollView_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/SelectClientCertificateCallback_gen.c b/cef/SelectClientCertificateCallback_gen.c index 20ffb88..d0d3799 100644 --- a/cef/SelectClientCertificateCallback_gen.c +++ b/cef/SelectClientCertificateCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "SelectClientCertificateCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/SelectClientCertificateCallback_gen.go b/cef/SelectClientCertificateCallback_gen.go index 0373bba..eda59c7 100644 --- a/cef/SelectClientCertificateCallback_gen.go +++ b/cef/SelectClientCertificateCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "SelectClientCertificateCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "SelectClientCertificateCallback_gen.h" + "C" +) + // SelectClientCertificateCallbackProxy defines methods required for using SelectClientCertificateCallback. type SelectClientCertificateCallbackProxy interface { Select(self *SelectClientCertificateCallback, cert *X509certificate) @@ -59,6 +62,7 @@ func (d *SelectClientCertificateCallback) Select(cert *X509certificate) { lookupSelectClientCertificateCallbackProxy(d.Base()).Select(d, cert) } +//nolint:gocritic //export gocef_select_client_certificate_callback_select func gocef_select_client_certificate_callback_select(self *C.cef_select_client_certificate_callback_t, cert *C.cef_x509certificate_t) { me__ := (*SelectClientCertificateCallback)(self) diff --git a/cef/SelectClientCertificateCallback_gen.h b/cef/SelectClientCertificateCallback_gen.h index a8fcef5..d13e6d6 100644 --- a/cef/SelectClientCertificateCallback_gen.h +++ b/cef/SelectClientCertificateCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_SelectClientCertificateCallback_H_ #define GOCEF_SelectClientCertificateCallback_H_ diff --git a/cef/ServerHandler_gen.c b/cef/ServerHandler_gen.c index fb7c8a9..c4ece33 100644 --- a/cef/ServerHandler_gen.c +++ b/cef/ServerHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ServerHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/ServerHandler_gen.go b/cef/ServerHandler_gen.go index 1ff600c..5d92f2c 100644 --- a/cef/ServerHandler_gen.go +++ b/cef/ServerHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ServerHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ServerHandler_gen.h" + "C" +) + // ServerHandlerProxy defines methods required for using ServerHandler. type ServerHandlerProxy interface { OnServerCreated(self *ServerHandler, server *Server) @@ -74,6 +77,7 @@ func (d *ServerHandler) OnServerCreated(server *Server) { lookupServerHandlerProxy(d.Base()).OnServerCreated(d, server) } +//nolint:gocritic //export gocef_server_handler_on_server_created func gocef_server_handler_on_server_created(self *C.cef_server_handler_t, server *C.cef_server_t) { me__ := (*ServerHandler)(self) @@ -90,6 +94,7 @@ func (d *ServerHandler) OnServerDestroyed(server *Server) { lookupServerHandlerProxy(d.Base()).OnServerDestroyed(d, server) } +//nolint:gocritic //export gocef_server_handler_on_server_destroyed func gocef_server_handler_on_server_destroyed(self *C.cef_server_handler_t, server *C.cef_server_t) { me__ := (*ServerHandler)(self) @@ -105,6 +110,7 @@ func (d *ServerHandler) OnClientConnected(server *Server, connection_id int32) { lookupServerHandlerProxy(d.Base()).OnClientConnected(d, server, connection_id) } +//nolint:gocritic //export gocef_server_handler_on_client_connected func gocef_server_handler_on_client_connected(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int) { me__ := (*ServerHandler)(self) @@ -124,6 +130,7 @@ func (d *ServerHandler) OnClientDisconnected(server *Server, connection_id int32 lookupServerHandlerProxy(d.Base()).OnClientDisconnected(d, server, connection_id) } +//nolint:gocritic //export gocef_server_handler_on_client_disconnected func gocef_server_handler_on_client_disconnected(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int) { me__ := (*ServerHandler)(self) @@ -141,6 +148,7 @@ func (d *ServerHandler) OnHttpRequest(server *Server, connection_id int32, clien lookupServerHandlerProxy(d.Base()).OnHttpRequest(d, server, connection_id, client_address, request) } +//nolint:gocritic //export gocef_server_handler_on_http_request func gocef_server_handler_on_http_request(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int, client_address *C.cef_string_t, request *C.cef_request_t) { me__ := (*ServerHandler)(self) @@ -166,6 +174,7 @@ func (d *ServerHandler) OnWebSocketRequest(server *Server, connection_id int32, lookupServerHandlerProxy(d.Base()).OnWebSocketRequest(d, server, connection_id, client_address, request, callback) } +//nolint:gocritic //export gocef_server_handler_on_web_socket_request func gocef_server_handler_on_web_socket_request(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int, client_address *C.cef_string_t, request *C.cef_request_t, callback *C.cef_callback_t) { me__ := (*ServerHandler)(self) @@ -182,6 +191,7 @@ func (d *ServerHandler) OnWebSocketConnected(server *Server, connection_id int32 lookupServerHandlerProxy(d.Base()).OnWebSocketConnected(d, server, connection_id) } +//nolint:gocritic //export gocef_server_handler_on_web_socket_connected func gocef_server_handler_on_web_socket_connected(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int) { me__ := (*ServerHandler)(self) @@ -199,6 +209,7 @@ func (d *ServerHandler) OnWebSocketMessage(server *Server, connection_id int32, lookupServerHandlerProxy(d.Base()).OnWebSocketMessage(d, server, connection_id, data, data_size) } +//nolint:gocritic //export gocef_server_handler_on_web_socket_message func gocef_server_handler_on_web_socket_message(self *C.cef_server_handler_t, server *C.cef_server_t, connection_id C.int, data unsafe.Pointer, data_size C.size_t) { me__ := (*ServerHandler)(self) diff --git a/cef/ServerHandler_gen.h b/cef/ServerHandler_gen.h index 928b6cc..6def6ee 100644 --- a/cef/ServerHandler_gen.h +++ b/cef/ServerHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ServerHandler_H_ #define GOCEF_ServerHandler_H_ diff --git a/cef/Server_gen.go b/cef/Server_gen.go index 7948f6a..7a4b66e 100644 --- a/cef/Server_gen.go +++ b/cef/Server_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // cef_task_runner_t * gocef_server_get_task_runner(cef_server_t * self, cef_task_runner_t * (CEF_CALLBACK *callback__)(cef_server_t *)) { return callback__(self); } @@ -18,7 +20,6 @@ import ( // void gocef_server_close_connection(cef_server_t * self, int connection_id, void (CEF_CALLBACK *callback__)(cef_server_t *, int)) { return callback__(self, connection_id); } // void gocef_server_send_web_socket_message(cef_server_t * self, int connection_id, void * data, size_t data_size, void (CEF_CALLBACK *callback__)(cef_server_t *, int, void *, size_t)) { return callback__(self, connection_id, data, data_size); } "C" - "unsafe" ) // Server (cef_server_t from include/capi/cef_server_capi.h) diff --git a/cef/SetCookieCallback_gen.c b/cef/SetCookieCallback_gen.c index a120833..b9bdb35 100644 --- a/cef/SetCookieCallback_gen.c +++ b/cef/SetCookieCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "SetCookieCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/SetCookieCallback_gen.go b/cef/SetCookieCallback_gen.go index 72e040e..850c935 100644 --- a/cef/SetCookieCallback_gen.go +++ b/cef/SetCookieCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "SetCookieCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "SetCookieCallback_gen.h" + "C" +) + // SetCookieCallbackProxy defines methods required for using SetCookieCallback. type SetCookieCallbackProxy interface { OnComplete(self *SetCookieCallback, success int32) @@ -60,6 +63,7 @@ func (d *SetCookieCallback) OnComplete(success int32) { lookupSetCookieCallbackProxy(d.Base()).OnComplete(d, success) } +//nolint:gocritic //export gocef_set_cookie_callback_on_complete func gocef_set_cookie_callback_on_complete(self *C.cef_set_cookie_callback_t, success C.int) { me__ := (*SetCookieCallback)(self) diff --git a/cef/SetCookieCallback_gen.h b/cef/SetCookieCallback_gen.h index 1ce887a..40f5018 100644 --- a/cef/SetCookieCallback_gen.h +++ b/cef/SetCookieCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_SetCookieCallback_H_ #define GOCEF_SetCookieCallback_H_ diff --git a/cef/Settings_gen.go b/cef/Settings_gen.go index 8b568e1..413c5e9 100644 --- a/cef/Settings_gen.go +++ b/cef/Settings_gen.go @@ -1,15 +1,18 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef import ( - // #include "capi_gen.h" - "C" "path/filepath" "github.com/richardwilkes/toolbox/xio/fs/paths" ) +import ( + // #include "capi_gen.h" + "C" +) + // Settings (cef_settings_t from include/internal/cef_types.h) // Initialization settings. Specify NULL or 0 to get the recommended default // values. Many of these and other settings can also configured using command- diff --git a/cef/Size_gen.go b/cef/Size_gen.go index bcca7b2..b5402cc 100644 --- a/cef/Size_gen.go +++ b/cef/Size_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/Sslinfo_gen.go b/cef/Sslinfo_gen.go index 4fb3516..6d34227 100644 --- a/cef/Sslinfo_gen.go +++ b/cef/Sslinfo_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Sslstatus_gen.go b/cef/Sslstatus_gen.go index 763de32..a296f7c 100644 --- a/cef/Sslstatus_gen.go +++ b/cef/Sslstatus_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/StreamReader_gen.go b/cef/StreamReader_gen.go index 0fc03a5..4b8ee04 100644 --- a/cef/StreamReader_gen.go +++ b/cef/StreamReader_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // size_t gocef_stream_reader_read(cef_stream_reader_t * self, void * ptr, size_t size, size_t n, size_t (CEF_CALLBACK *callback__)(cef_stream_reader_t *, void *, size_t, size_t)) { return callback__(self, ptr, size, n); } @@ -10,7 +12,6 @@ import ( // int gocef_stream_reader_eof(cef_stream_reader_t * self, int (CEF_CALLBACK *callback__)(cef_stream_reader_t *)) { return callback__(self); } // int gocef_stream_reader_may_block(cef_stream_reader_t * self, int (CEF_CALLBACK *callback__)(cef_stream_reader_t *)) { return callback__(self); } "C" - "unsafe" ) // StreamReader (cef_stream_reader_t from include/capi/cef_stream_capi.h) diff --git a/cef/StreamWriter_gen.go b/cef/StreamWriter_gen.go index 6d6c5e5..179b97b 100644 --- a/cef/StreamWriter_gen.go +++ b/cef/StreamWriter_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // size_t gocef_stream_writer_write(cef_stream_writer_t * self, void * ptr, size_t size, size_t n, size_t (CEF_CALLBACK *callback__)(cef_stream_writer_t *, void *, size_t, size_t)) { return callback__(self, ptr, size, n); } @@ -10,7 +12,6 @@ import ( // int gocef_stream_writer_flush(cef_stream_writer_t * self, int (CEF_CALLBACK *callback__)(cef_stream_writer_t *)) { return callback__(self); } // int gocef_stream_writer_may_block(cef_stream_writer_t * self, int (CEF_CALLBACK *callback__)(cef_stream_writer_t *)) { return callback__(self); } "C" - "unsafe" ) // StreamWriter (cef_stream_writer_t from include/capi/cef_stream_capi.h) diff --git a/cef/StringVisitor_gen.c b/cef/StringVisitor_gen.c index bfb40bd..8125c16 100644 --- a/cef/StringVisitor_gen.c +++ b/cef/StringVisitor_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "StringVisitor_gen.h" #include "_cgo_export.h" diff --git a/cef/StringVisitor_gen.go b/cef/StringVisitor_gen.go index c733bc3..656aae8 100644 --- a/cef/StringVisitor_gen.go +++ b/cef/StringVisitor_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "StringVisitor_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "StringVisitor_gen.h" + "C" +) + // StringVisitorProxy defines methods required for using StringVisitor. type StringVisitorProxy interface { Visit(self *StringVisitor, string_r string) @@ -58,6 +61,7 @@ func (d *StringVisitor) Visit(string_r string) { lookupStringVisitorProxy(d.Base()).Visit(d, string_r) } +//nolint:gocritic //export gocef_string_visitor_visit func gocef_string_visitor_visit(self *C.cef_string_visitor_t, string_r *C.cef_string_t) { me__ := (*StringVisitor)(self) diff --git a/cef/StringVisitor_gen.h b/cef/StringVisitor_gen.h index 754adb1..254f0c9 100644 --- a/cef/StringVisitor_gen.h +++ b/cef/StringVisitor_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_StringVisitor_H_ #define GOCEF_StringVisitor_H_ diff --git a/cef/TaskRunner_gen.go b/cef/TaskRunner_gen.go index 6733fbb..9f52bdc 100644 --- a/cef/TaskRunner_gen.go +++ b/cef/TaskRunner_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Task_gen.c b/cef/Task_gen.c index 2a938dc..4c3cfd5 100644 --- a/cef/Task_gen.c +++ b/cef/Task_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "Task_gen.h" #include "_cgo_export.h" diff --git a/cef/Task_gen.go b/cef/Task_gen.go index eb5c288..b0b00d0 100644 --- a/cef/Task_gen.go +++ b/cef/Task_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "Task_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "Task_gen.h" + "C" +) + // TaskProxy defines methods required for using Task. type TaskProxy interface { Execute(self *Task) @@ -63,6 +66,7 @@ func (d *Task) Execute() { lookupTaskProxy(d.Base()).Execute(d) } +//nolint:gocritic //export gocef_task_execute func gocef_task_execute(self *C.cef_task_t) { me__ := (*Task)(self) diff --git a/cef/Task_gen.h b/cef/Task_gen.h index 7eed8f4..2190199 100644 --- a/cef/Task_gen.h +++ b/cef/Task_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_Task_H_ #define GOCEF_Task_H_ diff --git a/cef/TextfieldDelegate_gen.c b/cef/TextfieldDelegate_gen.c index a043524..20299ba 100644 --- a/cef/TextfieldDelegate_gen.c +++ b/cef/TextfieldDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "TextfieldDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/TextfieldDelegate_gen.go b/cef/TextfieldDelegate_gen.go index fbbd7c4..ae8e9c6 100644 --- a/cef/TextfieldDelegate_gen.go +++ b/cef/TextfieldDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "TextfieldDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "TextfieldDelegate_gen.h" + "C" +) + // TextfieldDelegateProxy defines methods required for using TextfieldDelegate. type TextfieldDelegateProxy interface { OnKeyEvent(self *TextfieldDelegate, textfield *Textfield, event *KeyEvent) int32 @@ -63,6 +66,7 @@ func (d *TextfieldDelegate) OnKeyEvent(textfield *Textfield, event *KeyEvent) in return lookupTextfieldDelegateProxy(d.Base().Base()).OnKeyEvent(d, textfield, event) } +//nolint:gocritic //export gocef_textfield_delegate_on_key_event func gocef_textfield_delegate_on_key_event(self *C.cef_textfield_delegate_t, textfield *C.cef_textfield_t, event *C.cef_key_event_t) C.int { me__ := (*TextfieldDelegate)(self) @@ -77,6 +81,7 @@ func (d *TextfieldDelegate) OnAfterUserAction(textfield *Textfield) { lookupTextfieldDelegateProxy(d.Base().Base()).OnAfterUserAction(d, textfield) } +//nolint:gocritic //export gocef_textfield_delegate_on_after_user_action func gocef_textfield_delegate_on_after_user_action(self *C.cef_textfield_delegate_t, textfield *C.cef_textfield_t) { me__ := (*TextfieldDelegate)(self) diff --git a/cef/TextfieldDelegate_gen.h b/cef/TextfieldDelegate_gen.h index 4e43b7b..ff695e5 100644 --- a/cef/TextfieldDelegate_gen.h +++ b/cef/TextfieldDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_TextfieldDelegate_H_ #define GOCEF_TextfieldDelegate_H_ diff --git a/cef/Textfield_gen.go b/cef/Textfield_gen.go index 2ee9893..44b81c2 100644 --- a/cef/Textfield_gen.go +++ b/cef/Textfield_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Time_gen.go b/cef/Time_gen.go index 23510eb..61a21dc 100644 --- a/cef/Time_gen.go +++ b/cef/Time_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/TouchEvent_gen.go b/cef/TouchEvent_gen.go index d8630e9..4c24fc9 100644 --- a/cef/TouchEvent_gen.go +++ b/cef/TouchEvent_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/Urlparts_gen.go b/cef/Urlparts_gen.go index 2ad20e4..0ef1737 100644 --- a/cef/Urlparts_gen.go +++ b/cef/Urlparts_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "struct.go.tmpl" - don't edit by hand package cef diff --git a/cef/UrlrequestClient_gen.c b/cef/UrlrequestClient_gen.c index 4a24d08..effff76 100644 --- a/cef/UrlrequestClient_gen.c +++ b/cef/UrlrequestClient_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "UrlrequestClient_gen.h" #include "_cgo_export.h" diff --git a/cef/UrlrequestClient_gen.go b/cef/UrlrequestClient_gen.go index b404621..637b6da 100644 --- a/cef/UrlrequestClient_gen.go +++ b/cef/UrlrequestClient_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "UrlrequestClient_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "UrlrequestClient_gen.h" + "C" +) + // UrlrequestClientProxy defines methods required for using UrlrequestClient. type UrlrequestClientProxy interface { OnRequestComplete(self *UrlrequestClient, request *Urlrequest) @@ -66,6 +69,7 @@ func (d *UrlrequestClient) OnRequestComplete(request *Urlrequest) { lookupUrlrequestClientProxy(d.Base()).OnRequestComplete(d, request) } +//nolint:gocritic //export gocef_urlrequest_client_on_request_complete func gocef_urlrequest_client_on_request_complete(self *C.cef_urlrequest_client_t, request *C.cef_urlrequest_t) { me__ := (*UrlrequestClient)(self) @@ -82,6 +86,7 @@ func (d *UrlrequestClient) OnUploadProgress(request *Urlrequest, current, total lookupUrlrequestClientProxy(d.Base()).OnUploadProgress(d, request, current, total) } +//nolint:gocritic //export gocef_urlrequest_client_on_upload_progress func gocef_urlrequest_client_on_upload_progress(self *C.cef_urlrequest_client_t, request *C.cef_urlrequest_t, current C.int64, total C.int64) { me__ := (*UrlrequestClient)(self) @@ -97,6 +102,7 @@ func (d *UrlrequestClient) OnDownloadProgress(request *Urlrequest, current, tota lookupUrlrequestClientProxy(d.Base()).OnDownloadProgress(d, request, current, total) } +//nolint:gocritic //export gocef_urlrequest_client_on_download_progress func gocef_urlrequest_client_on_download_progress(self *C.cef_urlrequest_client_t, request *C.cef_urlrequest_t, current C.int64, total C.int64) { me__ := (*UrlrequestClient)(self) @@ -112,6 +118,7 @@ func (d *UrlrequestClient) OnDownloadData(request *Urlrequest, data unsafe.Point lookupUrlrequestClientProxy(d.Base()).OnDownloadData(d, request, data, data_length) } +//nolint:gocritic //export gocef_urlrequest_client_on_download_data func gocef_urlrequest_client_on_download_data(self *C.cef_urlrequest_client_t, request *C.cef_urlrequest_t, data unsafe.Pointer, data_length C.size_t) { me__ := (*UrlrequestClient)(self) @@ -131,6 +138,7 @@ func (d *UrlrequestClient) GetAuthCredentials(isProxy int32, host string, port i return lookupUrlrequestClientProxy(d.Base()).GetAuthCredentials(d, isProxy, host, port, realm, scheme, callback) } +//nolint:gocritic //export gocef_urlrequest_client_get_auth_credentials func gocef_urlrequest_client_get_auth_credentials(self *C.cef_urlrequest_client_t, isProxy C.int, host *C.cef_string_t, port C.int, realm *C.cef_string_t, scheme *C.cef_string_t, callback *C.cef_auth_callback_t) C.int { me__ := (*UrlrequestClient)(self) diff --git a/cef/UrlrequestClient_gen.h b/cef/UrlrequestClient_gen.h index 1ebbc13..9ab4bd1 100644 --- a/cef/UrlrequestClient_gen.h +++ b/cef/UrlrequestClient_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_UrlrequestClient_H_ #define GOCEF_UrlrequestClient_H_ diff --git a/cef/Urlrequest_gen.go b/cef/Urlrequest_gen.go index 1397136..7ec247a 100644 --- a/cef/Urlrequest_gen.go +++ b/cef/Urlrequest_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8accessor_gen.go b/cef/V8accessor_gen.go index 6166b66..3de610e 100644 --- a/cef/V8accessor_gen.go +++ b/cef/V8accessor_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8arrayBufferReleaseCallback_gen.c b/cef/V8arrayBufferReleaseCallback_gen.c index 5875c1d..0b67aaf 100644 --- a/cef/V8arrayBufferReleaseCallback_gen.c +++ b/cef/V8arrayBufferReleaseCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "V8arrayBufferReleaseCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/V8arrayBufferReleaseCallback_gen.go b/cef/V8arrayBufferReleaseCallback_gen.go index bd6c4aa..062f97d 100644 --- a/cef/V8arrayBufferReleaseCallback_gen.go +++ b/cef/V8arrayBufferReleaseCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "V8arrayBufferReleaseCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "V8arrayBufferReleaseCallback_gen.h" + "C" +) + // V8arrayBufferReleaseCallbackProxy defines methods required for using V8arrayBufferReleaseCallback. type V8arrayBufferReleaseCallbackProxy interface { ReleaseBuffer(self *V8arrayBufferReleaseCallback, buffer unsafe.Pointer) @@ -60,6 +63,7 @@ func (d *V8arrayBufferReleaseCallback) ReleaseBuffer(buffer unsafe.Pointer) { lookupV8arrayBufferReleaseCallbackProxy(d.Base()).ReleaseBuffer(d, buffer) } +//nolint:gocritic //export gocef_v8array_buffer_release_callback_release_buffer func gocef_v8array_buffer_release_callback_release_buffer(self *C.cef_v8array_buffer_release_callback_t, buffer unsafe.Pointer) { me__ := (*V8arrayBufferReleaseCallback)(self) diff --git a/cef/V8arrayBufferReleaseCallback_gen.h b/cef/V8arrayBufferReleaseCallback_gen.h index 0f18ad9..fd8f5a5 100644 --- a/cef/V8arrayBufferReleaseCallback_gen.h +++ b/cef/V8arrayBufferReleaseCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_V8arrayBufferReleaseCallback_H_ #define GOCEF_V8arrayBufferReleaseCallback_H_ diff --git a/cef/V8context_gen.go b/cef/V8context_gen.go index 460b483..5b9a184 100644 --- a/cef/V8context_gen.go +++ b/cef/V8context_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8exception_gen.go b/cef/V8exception_gen.go index e075a4c..30eb1e8 100644 --- a/cef/V8exception_gen.go +++ b/cef/V8exception_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8handler_gen.go b/cef/V8handler_gen.go index 4956576..9e03159 100644 --- a/cef/V8handler_gen.go +++ b/cef/V8handler_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8interceptor_gen.go b/cef/V8interceptor_gen.go index fd2b7e4..c180598 100644 --- a/cef/V8interceptor_gen.go +++ b/cef/V8interceptor_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8stackFrame_gen.go b/cef/V8stackFrame_gen.go index 6cefc52..a2f2a57 100644 --- a/cef/V8stackFrame_gen.go +++ b/cef/V8stackFrame_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8stackTrace_gen.go b/cef/V8stackTrace_gen.go index ba0a0be..5e80a96 100644 --- a/cef/V8stackTrace_gen.go +++ b/cef/V8stackTrace_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/V8value_gen.go b/cef/V8value_gen.go index cc86f4f..d28923a 100644 --- a/cef/V8value_gen.go +++ b/cef/V8value_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/Value_gen.go b/cef/Value_gen.go index 4aeedc4..b0f9c7a 100644 --- a/cef/Value_gen.go +++ b/cef/Value_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/ViewDelegate_gen.c b/cef/ViewDelegate_gen.c index f42a9fe..0444fa1 100644 --- a/cef/ViewDelegate_gen.c +++ b/cef/ViewDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "ViewDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/ViewDelegate_gen.go b/cef/ViewDelegate_gen.go index 4032097..0d35f29 100644 --- a/cef/ViewDelegate_gen.go +++ b/cef/ViewDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "ViewDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "ViewDelegate_gen.h" + "C" +) + // ViewDelegateProxy defines methods required for using ViewDelegate. type ViewDelegateProxy interface { GetPreferredSize(self *ViewDelegate, view *View) Size @@ -68,6 +71,7 @@ func (d *ViewDelegate) GetPreferredSize(view *View) Size { return lookupViewDelegateProxy(d.Base()).GetPreferredSize(d, view) } +//nolint:gocritic //export gocef_view_delegate_get_preferred_size func gocef_view_delegate_get_preferred_size(self *C.cef_view_delegate_t, view *C.cef_view_t) C.cef_size_t { me__ := (*ViewDelegate)(self) @@ -84,6 +88,7 @@ func (d *ViewDelegate) GetMinimumSize(view *View) Size { return lookupViewDelegateProxy(d.Base()).GetMinimumSize(d, view) } +//nolint:gocritic //export gocef_view_delegate_get_minimum_size func gocef_view_delegate_get_minimum_size(self *C.cef_view_delegate_t, view *C.cef_view_t) C.cef_size_t { me__ := (*ViewDelegate)(self) @@ -100,6 +105,7 @@ func (d *ViewDelegate) GetMaximumSize(view *View) Size { return lookupViewDelegateProxy(d.Base()).GetMaximumSize(d, view) } +//nolint:gocritic //export gocef_view_delegate_get_maximum_size func gocef_view_delegate_get_maximum_size(self *C.cef_view_delegate_t, view *C.cef_view_t) C.cef_size_t { me__ := (*ViewDelegate)(self) @@ -119,6 +125,7 @@ func (d *ViewDelegate) GetHeightForWidth(view *View, width int32) int32 { return lookupViewDelegateProxy(d.Base()).GetHeightForWidth(d, view, width) } +//nolint:gocritic //export gocef_view_delegate_get_height_for_width func gocef_view_delegate_get_height_for_width(self *C.cef_view_delegate_t, view *C.cef_view_t, width C.int) C.int { me__ := (*ViewDelegate)(self) @@ -136,6 +143,7 @@ func (d *ViewDelegate) OnParentViewChanged(view *View, added int32, parent *View lookupViewDelegateProxy(d.Base()).OnParentViewChanged(d, view, added, parent) } +//nolint:gocritic //export gocef_view_delegate_on_parent_view_changed func gocef_view_delegate_on_parent_view_changed(self *C.cef_view_delegate_t, view *C.cef_view_t, added C.int, parent *C.cef_view_t) { me__ := (*ViewDelegate)(self) @@ -154,6 +162,7 @@ func (d *ViewDelegate) OnChildViewChanged(view *View, added int32, child *View) lookupViewDelegateProxy(d.Base()).OnChildViewChanged(d, view, added, child) } +//nolint:gocritic //export gocef_view_delegate_on_child_view_changed func gocef_view_delegate_on_child_view_changed(self *C.cef_view_delegate_t, view *C.cef_view_t, added C.int, child *C.cef_view_t) { me__ := (*ViewDelegate)(self) @@ -167,6 +176,7 @@ func (d *ViewDelegate) OnFocus(view *View) { lookupViewDelegateProxy(d.Base()).OnFocus(d, view) } +//nolint:gocritic //export gocef_view_delegate_on_focus func gocef_view_delegate_on_focus(self *C.cef_view_delegate_t, view *C.cef_view_t) { me__ := (*ViewDelegate)(self) @@ -180,6 +190,7 @@ func (d *ViewDelegate) OnBlur(view *View) { lookupViewDelegateProxy(d.Base()).OnBlur(d, view) } +//nolint:gocritic //export gocef_view_delegate_on_blur func gocef_view_delegate_on_blur(self *C.cef_view_delegate_t, view *C.cef_view_t) { me__ := (*ViewDelegate)(self) diff --git a/cef/ViewDelegate_gen.h b/cef/ViewDelegate_gen.h index 6a06075..3c44192 100644 --- a/cef/ViewDelegate_gen.h +++ b/cef/ViewDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_ViewDelegate_H_ #define GOCEF_ViewDelegate_H_ diff --git a/cef/View_gen.go b/cef/View_gen.go index 052bc6b..775e06d 100644 --- a/cef/View_gen.go +++ b/cef/View_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/WaitableEvent_gen.go b/cef/WaitableEvent_gen.go index 198ff74..2574351 100644 --- a/cef/WaitableEvent_gen.go +++ b/cef/WaitableEvent_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/WebPluginInfoVisitor_gen.c b/cef/WebPluginInfoVisitor_gen.c index e7e8af4..87b973f 100644 --- a/cef/WebPluginInfoVisitor_gen.c +++ b/cef/WebPluginInfoVisitor_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "WebPluginInfoVisitor_gen.h" #include "_cgo_export.h" diff --git a/cef/WebPluginInfoVisitor_gen.go b/cef/WebPluginInfoVisitor_gen.go index bae5790..54bebd6 100644 --- a/cef/WebPluginInfoVisitor_gen.go +++ b/cef/WebPluginInfoVisitor_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "WebPluginInfoVisitor_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "WebPluginInfoVisitor_gen.h" + "C" +) + // WebPluginInfoVisitorProxy defines methods required for using WebPluginInfoVisitor. type WebPluginInfoVisitorProxy interface { Visit(self *WebPluginInfoVisitor, info *WebPluginInfo, count, total int32) int32 @@ -62,6 +65,7 @@ func (d *WebPluginInfoVisitor) Visit(info *WebPluginInfo, count, total int32) in return lookupWebPluginInfoVisitorProxy(d.Base()).Visit(d, info, count, total) } +//nolint:gocritic //export gocef_web_plugin_info_visitor_visit func gocef_web_plugin_info_visitor_visit(self *C.cef_web_plugin_info_visitor_t, info *C.cef_web_plugin_info_t, count C.int, total C.int) C.int { me__ := (*WebPluginInfoVisitor)(self) diff --git a/cef/WebPluginInfoVisitor_gen.h b/cef/WebPluginInfoVisitor_gen.h index 39e999a..97f38f0 100644 --- a/cef/WebPluginInfoVisitor_gen.h +++ b/cef/WebPluginInfoVisitor_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_WebPluginInfoVisitor_H_ #define GOCEF_WebPluginInfoVisitor_H_ diff --git a/cef/WebPluginInfo_gen.go b/cef/WebPluginInfo_gen.go index 5df8843..78b9bea 100644 --- a/cef/WebPluginInfo_gen.go +++ b/cef/WebPluginInfo_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/WebPluginUnstableCallback_gen.c b/cef/WebPluginUnstableCallback_gen.c index 4cf9f05..7dc60be 100644 --- a/cef/WebPluginUnstableCallback_gen.c +++ b/cef/WebPluginUnstableCallback_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "WebPluginUnstableCallback_gen.h" #include "_cgo_export.h" diff --git a/cef/WebPluginUnstableCallback_gen.go b/cef/WebPluginUnstableCallback_gen.go index 6bccec5..8eb4246 100644 --- a/cef/WebPluginUnstableCallback_gen.go +++ b/cef/WebPluginUnstableCallback_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "WebPluginUnstableCallback_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "WebPluginUnstableCallback_gen.h" + "C" +) + // WebPluginUnstableCallbackProxy defines methods required for using WebPluginUnstableCallback. type WebPluginUnstableCallbackProxy interface { IsUnstable(self *WebPluginUnstableCallback, path string, unstable int32) @@ -61,6 +64,7 @@ func (d *WebPluginUnstableCallback) IsUnstable(path string, unstable int32) { lookupWebPluginUnstableCallbackProxy(d.Base()).IsUnstable(d, path, unstable) } +//nolint:gocritic //export gocef_web_plugin_unstable_callback_is_unstable func gocef_web_plugin_unstable_callback_is_unstable(self *C.cef_web_plugin_unstable_callback_t, path *C.cef_string_t, unstable C.int) { me__ := (*WebPluginUnstableCallback)(self) diff --git a/cef/WebPluginUnstableCallback_gen.h b/cef/WebPluginUnstableCallback_gen.h index 0d34917..fe22e33 100644 --- a/cef/WebPluginUnstableCallback_gen.h +++ b/cef/WebPluginUnstableCallback_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_WebPluginUnstableCallback_H_ #define GOCEF_WebPluginUnstableCallback_H_ diff --git a/cef/WindowDelegate_gen.c b/cef/WindowDelegate_gen.c index 074e22f..197fa2d 100644 --- a/cef/WindowDelegate_gen.c +++ b/cef/WindowDelegate_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "WindowDelegate_gen.h" #include "_cgo_export.h" diff --git a/cef/WindowDelegate_gen.go b/cef/WindowDelegate_gen.go index 074f68f..0a992d3 100644 --- a/cef/WindowDelegate_gen.go +++ b/cef/WindowDelegate_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "WindowDelegate_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "WindowDelegate_gen.h" + "C" +) + // WindowDelegateProxy defines methods required for using WindowDelegate. type WindowDelegateProxy interface { OnWindowCreated(self *WindowDelegate, window *Window) @@ -69,6 +72,7 @@ func (d *WindowDelegate) OnWindowCreated(window *Window) { lookupWindowDelegateProxy(d.Base().Base.Base()).OnWindowCreated(d, window) } +//nolint:gocritic //export gocef_window_delegate_on_window_created func gocef_window_delegate_on_window_created(self *C.cef_window_delegate_t, window *C.cef_window_t) { me__ := (*WindowDelegate)(self) @@ -84,6 +88,7 @@ func (d *WindowDelegate) OnWindowDestroyed(window *Window) { lookupWindowDelegateProxy(d.Base().Base.Base()).OnWindowDestroyed(d, window) } +//nolint:gocritic //export gocef_window_delegate_on_window_destroyed func gocef_window_delegate_on_window_destroyed(self *C.cef_window_delegate_t, window *C.cef_window_t) { me__ := (*WindowDelegate)(self) @@ -102,6 +107,7 @@ func (d *WindowDelegate) GetParentWindow(window *Window, is_menu, can_activate_m return lookupWindowDelegateProxy(d.Base().Base.Base()).GetParentWindow(d, window, is_menu, can_activate_menu) } +//nolint:gocritic //export gocef_window_delegate_get_parent_window func gocef_window_delegate_get_parent_window(self *C.cef_window_delegate_t, window *C.cef_window_t, is_menu *C.int, can_activate_menu *C.int) *C.cef_window_t { me__ := (*WindowDelegate)(self) @@ -117,6 +123,7 @@ func (d *WindowDelegate) IsFrameless(window *Window) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).IsFrameless(d, window) } +//nolint:gocritic //export gocef_window_delegate_is_frameless func gocef_window_delegate_is_frameless(self *C.cef_window_delegate_t, window *C.cef_window_t) C.int { me__ := (*WindowDelegate)(self) @@ -130,6 +137,7 @@ func (d *WindowDelegate) CanResize(window *Window) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).CanResize(d, window) } +//nolint:gocritic //export gocef_window_delegate_can_resize func gocef_window_delegate_can_resize(self *C.cef_window_delegate_t, window *C.cef_window_t) C.int { me__ := (*WindowDelegate)(self) @@ -143,6 +151,7 @@ func (d *WindowDelegate) CanMaximize(window *Window) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).CanMaximize(d, window) } +//nolint:gocritic //export gocef_window_delegate_can_maximize func gocef_window_delegate_can_maximize(self *C.cef_window_delegate_t, window *C.cef_window_t) C.int { me__ := (*WindowDelegate)(self) @@ -156,6 +165,7 @@ func (d *WindowDelegate) CanMinimize(window *Window) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).CanMinimize(d, window) } +//nolint:gocritic //export gocef_window_delegate_can_minimize func gocef_window_delegate_can_minimize(self *C.cef_window_delegate_t, window *C.cef_window_t) C.int { me__ := (*WindowDelegate)(self) @@ -170,6 +180,7 @@ func (d *WindowDelegate) CanClose(window *Window) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).CanClose(d, window) } +//nolint:gocritic //export gocef_window_delegate_can_close func gocef_window_delegate_can_close(self *C.cef_window_delegate_t, window *C.cef_window_t) C.int { me__ := (*WindowDelegate)(self) @@ -185,6 +196,7 @@ func (d *WindowDelegate) OnAccelerator(window *Window, command_id int32) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).OnAccelerator(d, window, command_id) } +//nolint:gocritic //export gocef_window_delegate_on_accelerator func gocef_window_delegate_on_accelerator(self *C.cef_window_delegate_t, window *C.cef_window_t, command_id C.int) C.int { me__ := (*WindowDelegate)(self) @@ -200,6 +212,7 @@ func (d *WindowDelegate) OnKeyEvent(window *Window, event *KeyEvent) int32 { return lookupWindowDelegateProxy(d.Base().Base.Base()).OnKeyEvent(d, window, event) } +//nolint:gocritic //export gocef_window_delegate_on_key_event func gocef_window_delegate_on_key_event(self *C.cef_window_delegate_t, window *C.cef_window_t, event *C.cef_key_event_t) C.int { me__ := (*WindowDelegate)(self) diff --git a/cef/WindowDelegate_gen.h b/cef/WindowDelegate_gen.h index e14b135..3146057 100644 --- a/cef/WindowDelegate_gen.h +++ b/cef/WindowDelegate_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_WindowDelegate_H_ #define GOCEF_WindowDelegate_H_ diff --git a/cef/WindowInfo.go b/cef/WindowInfo.go index 9fb6fd2..037f022 100644 --- a/cef/WindowInfo.go +++ b/cef/WindowInfo.go @@ -1,14 +1,17 @@ package cef import ( - // #include - // #include "include/internal/cef_types.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/xmath/geom" ) +import ( + // #include + // #include "include/internal/cef_types.h" + "C" +) + // NewWindowInfo creates a new default WindowInfo instance. func NewWindowInfo(parent unsafe.Pointer, bounds geom.Rect) *WindowInfo { d := &WindowInfo{ diff --git a/cef/WindowInfo_darwin.go b/cef/WindowInfo_darwin.go index 192ce85..1ae38c8 100644 --- a/cef/WindowInfo_darwin.go +++ b/cef/WindowInfo_darwin.go @@ -1,9 +1,10 @@ package cef +import "unsafe" + import ( // #include "include/internal/cef_types.h" "C" - "unsafe" ) // WindowInfo (cef_window_info_t) - Mac-specific variant diff --git a/cef/WindowInfo_linux.go b/cef/WindowInfo_linux.go index 0179d14..ef030ae 100644 --- a/cef/WindowInfo_linux.go +++ b/cef/WindowInfo_linux.go @@ -1,9 +1,10 @@ package cef +import "unsafe" + import ( // #include "include/internal/cef_types.h" "C" - "unsafe" ) // WindowInfo (cef_window_info_t) - Linux-specific variant diff --git a/cef/WindowInfo_windows.go b/cef/WindowInfo_windows.go index 8a7d216..7b5bc92 100644 --- a/cef/WindowInfo_windows.go +++ b/cef/WindowInfo_windows.go @@ -1,9 +1,10 @@ package cef +import "unsafe" + import ( // #include "include/internal/cef_types.h" "C" - "unsafe" ) // WindowInfo (cef_window_info_t) - Windows-specific variant diff --git a/cef/Window_gen.go b/cef/Window_gen.go index c0e4a64..8a02ea5 100644 --- a/cef/Window_gen.go +++ b/cef/Window_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" // void gocef_window_show(cef_window_t * self, void (CEF_CALLBACK *callback__)(cef_window_t *)) { return callback__(self); } @@ -41,7 +43,6 @@ import ( // void gocef_window_remove_accelerator(cef_window_t * self, int command_id, void (CEF_CALLBACK *callback__)(cef_window_t *, int)) { return callback__(self, command_id); } // void gocef_window_remove_all_accelerators(cef_window_t * self, void (CEF_CALLBACK *callback__)(cef_window_t *)) { return callback__(self); } "C" - "unsafe" ) // Window (cef_window_t from include/capi/views/cef_window_capi.h) diff --git a/cef/WriteHandler_gen.c b/cef/WriteHandler_gen.c index 7fc4eaa..9dfa0a5 100644 --- a/cef/WriteHandler_gen.c +++ b/cef/WriteHandler_gen.c @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.c.tmpl" - don't edit by hand #include "WriteHandler_gen.h" #include "_cgo_export.h" diff --git a/cef/WriteHandler_gen.go b/cef/WriteHandler_gen.go index 09f0fa9..26e3e9b 100644 --- a/cef/WriteHandler_gen.go +++ b/cef/WriteHandler_gen.go @@ -1,16 +1,19 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.go.tmpl" - don't edit by hand package cef import ( - // #include "WriteHandler_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "WriteHandler_gen.h" + "C" +) + // WriteHandlerProxy defines methods required for using WriteHandler. type WriteHandlerProxy interface { Write(self *WriteHandler, ptr unsafe.Pointer, size, n uint64) uint64 @@ -63,6 +66,7 @@ func (d *WriteHandler) Write(ptr unsafe.Pointer, size, n uint64) uint64 { return lookupWriteHandlerProxy(d.Base()).Write(d, ptr, size, n) } +//nolint:gocritic //export gocef_write_handler_write func gocef_write_handler_write(self *C.cef_write_handler_t, ptr unsafe.Pointer, size C.size_t, n C.size_t) C.size_t { me__ := (*WriteHandler)(self) @@ -77,6 +81,7 @@ func (d *WriteHandler) Seek(offset int64, whence int32) int32 { return lookupWriteHandlerProxy(d.Base()).Seek(d, offset, whence) } +//nolint:gocritic //export gocef_write_handler_seek func gocef_write_handler_seek(self *C.cef_write_handler_t, offset C.int64, whence C.int) C.int { me__ := (*WriteHandler)(self) @@ -90,6 +95,7 @@ func (d *WriteHandler) Tell() int64 { return lookupWriteHandlerProxy(d.Base()).Tell(d) } +//nolint:gocritic //export gocef_write_handler_tell func gocef_write_handler_tell(self *C.cef_write_handler_t) C.int64 { me__ := (*WriteHandler)(self) @@ -103,6 +109,7 @@ func (d *WriteHandler) Flush() int32 { return lookupWriteHandlerProxy(d.Base()).Flush(d) } +//nolint:gocritic //export gocef_write_handler_flush func gocef_write_handler_flush(self *C.cef_write_handler_t) C.int { me__ := (*WriteHandler)(self) @@ -118,6 +125,7 @@ func (d *WriteHandler) MayBlock() int32 { return lookupWriteHandlerProxy(d.Base()).MayBlock(d) } +//nolint:gocritic //export gocef_write_handler_may_block func gocef_write_handler_may_block(self *C.cef_write_handler_t) C.int { me__ := (*WriteHandler)(self) diff --git a/cef/WriteHandler_gen.h b/cef/WriteHandler_gen.h index b02fca5..e03c3ec 100644 --- a/cef/WriteHandler_gen.h +++ b/cef/WriteHandler_gen.h @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "callback.h.tmpl" - don't edit by hand #ifndef GOCEF_WriteHandler_H_ #define GOCEF_WriteHandler_H_ diff --git a/cef/X509certPrincipal_gen.go b/cef/X509certPrincipal_gen.go index 614ca7f..2feda59 100644 --- a/cef/X509certPrincipal_gen.go +++ b/cef/X509certPrincipal_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/X509certificate_gen.go b/cef/X509certificate_gen.go index e93d89c..af9ffd2 100644 --- a/cef/X509certificate_gen.go +++ b/cef/X509certificate_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "class.go.tmpl" - don't edit by hand package cef diff --git a/cef/enums_gen.go b/cef/enums_gen.go index 37dd34e..e0516df 100644 --- a/cef/enums_gen.go +++ b/cef/enums_gen.go @@ -1,4 +1,4 @@ -// Code generated - DO NOT EDIT. +// Code created from "enum.go.tmpl" - don't edit by hand package cef diff --git a/cef/functions_gen.go b/cef/functions_gen.go index b09d1c0..c8194f9 100644 --- a/cef/functions_gen.go +++ b/cef/functions_gen.go @@ -1,11 +1,12 @@ -// Code generated - DO NOT EDIT. +// Code created from "funcdef.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "capi_gen.h" "C" - "unsafe" ) // AddCrossOriginWhitelistEntry (cef_add_cross_origin_whitelist_entry from include/capi/cef_origin_whitelist_capi.h) diff --git a/cef/refcnt.go b/cef/refcnt.go index f4b542d..a3859ec 100644 --- a/cef/refcnt.go +++ b/cef/refcnt.go @@ -1,9 +1,10 @@ package cef +import "sync" + import ( // #include "refcnt.h" "C" - "sync" ) var ( @@ -29,6 +30,7 @@ func lookupProxy(base *BaseRefCounted) (proxy interface{}, exists bool) { return proxy, exists } +//nolint: gocritic //export freeObjByID func freeObjByID(cid C.uint32_t) { refLock.Lock() diff --git a/cef/string.go b/cef/string.go index 38cb3dc..8627ce7 100644 --- a/cef/string.go +++ b/cef/string.go @@ -1,11 +1,12 @@ package cef +import "unsafe" + import ( // #include // #include // #include "include/capi/cef_base_capi.h" "C" - "unsafe" ) func setCEFStr(str string, cefStr *C.cef_string_t) { diff --git a/cef/typedefs_gen.go b/cef/typedefs_gen.go index 620ef74..328baa4 100644 --- a/cef/typedefs_gen.go +++ b/cef/typedefs_gen.go @@ -1,7 +1,9 @@ -// Code generated - DO NOT EDIT. +// Code created from "typedef.go.tmpl" - don't edit by hand package cef +import "unsafe" + import ( // #include "include/internal/cef_string.h" // #include "include/internal/cef_string_list.h" @@ -9,7 +11,6 @@ import ( // #include "include/internal/cef_string_multimap.h" // #include "include/internal/cef_types.h" "C" - "unsafe" ) // Char (cef_char_t from include/internal/cef_string.h) diff --git a/go.mod b/go.mod index f774ad5..60e7ecd 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/richardwilkes/cef -require github.com/richardwilkes/toolbox v1.6.1 +require github.com/richardwilkes/toolbox v1.9.3 diff --git a/go.sum b/go.sum index a22342d..3dc3379 100644 --- a/go.sum +++ b/go.sum @@ -6,13 +6,13 @@ github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942 h1:A7GG7zcGjl3jqAqGPmcNjd github.com/pkg/term v0.0.0-20190109203006-aa71e9d9e942/go.mod h1:eCbImbZ95eXtAUIbLAuAVnBnwf83mjf6QIVH8SHYwqQ= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/richardwilkes/toolbox v1.6.1 h1:mC97qYjledp68mpg9yiM25SXYJIjKuvt0s3s0pitmrY= -github.com/richardwilkes/toolbox v1.6.1/go.mod h1:/3ynfaWs6sEF5hZEN3ANCDLOvFwaWmHi1AnlmHmaAqM= +github.com/richardwilkes/toolbox v1.9.3 h1:G9muaw+Ck30Md2PPiEDiemMMmN2yMaB4G67ViZEW6mw= +github.com/richardwilkes/toolbox v1.9.3/go.mod h1:lmtR34kHPv+/xe9ctPnnEuBrBE2ViIcFNSzOCMbHKWo= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -golang.org/x/sys v0.0.0-20190520201301-c432e742b0af h1:NXfmMfXz6JqGfG3ikSxcz2N93j6DgScr19Oo2uwFu88= -golang.org/x/sys v0.0.0-20190520201301-c432e742b0af/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0 h1:HyfiK1WMnHj5FXFXatD+Qs1A/xC2Run6RzeW1SyHxpc= +golang.org/x/sys v0.0.0-20190624142023-c5567b49c5d0/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw= diff --git a/internal/cefgen/callback.c.tmpl b/internal/cefgen/callback.c.tmpl index 44e3a37..62b7fec 100644 --- a/internal/cefgen/callback.c.tmpl +++ b/internal/cefgen/callback.c.tmpl @@ -1,5 +1,3 @@ -// Code generated - DO NOT EDIT. - #include "{{.GoName}}_gen.h" #include "_cgo_export.h" diff --git a/internal/cefgen/callback.go.tmpl b/internal/cefgen/callback.go.tmpl index d2e4b6f..72db4a2 100644 --- a/internal/cefgen/callback.go.tmpl +++ b/internal/cefgen/callback.go.tmpl @@ -1,16 +1,17 @@ -// Code generated - DO NOT EDIT. - package cef import ( - // #include "{{.GoName}}_gen.h" - "C" "unsafe" "github.com/richardwilkes/toolbox/errs" "github.com/richardwilkes/toolbox/log/jot" ) +import ( + // #include "{{.GoName}}_gen.h" + "C" +) + // {{.GoName}}Proxy defines methods required for using {{.GoName}}. type {{.GoName}}Proxy interface { {{- range .Fields}} @@ -67,6 +68,7 @@ func (d *{{.Owner.GoName}}) {{.Var.GoName}}({{.ParameterList}}) {{if .Var.GoType } {{- if .Var.FunctionPtr}} +//nolint:gocritic //export {{.TrampolineName}} func {{.TrampolineName}}({{.CallbackParams}}) {{.CallbackReturnType}} { me__ := (*{{.Owner.GoName}})(self) diff --git a/internal/cefgen/callback.h.tmpl b/internal/cefgen/callback.h.tmpl index 69c90e1..4ba251f 100644 --- a/internal/cefgen/callback.h.tmpl +++ b/internal/cefgen/callback.h.tmpl @@ -1,5 +1,3 @@ -// Code generated - DO NOT EDIT. - #ifndef GOCEF_{{.GoName}}_H_ #define GOCEF_{{.GoName}}_H_ #pragma once diff --git a/internal/cefgen/class.go.tmpl b/internal/cefgen/class.go.tmpl index 5c2b4db..bc11049 100644 --- a/internal/cefgen/class.go.tmpl +++ b/internal/cefgen/class.go.tmpl @@ -1,16 +1,15 @@ -// Code generated - DO NOT EDIT. - package cef +{{- if .NeedsUnsafeImport}} +import "unsafe" +{{- end}} + import ( // #include "capi_gen.h" {{- range .Trampolines}} // {{.}} {{- end}} "C" -{{- if .NeedsUnsafeImport}} - "unsafe" -{{- end}} ) // {{.GoName}} ({{.Name}} from {{.Position.Src}}) diff --git a/internal/cefgen/enum.go.tmpl b/internal/cefgen/enum.go.tmpl index 14d8dc0..6afb0a6 100644 --- a/internal/cefgen/enum.go.tmpl +++ b/internal/cefgen/enum.go.tmpl @@ -1,5 +1,3 @@ -// Code generated - DO NOT EDIT. - package cef {{- range .}} diff --git a/internal/cefgen/funcdef.go.tmpl b/internal/cefgen/funcdef.go.tmpl index ed755c6..7023bf6 100644 --- a/internal/cefgen/funcdef.go.tmpl +++ b/internal/cefgen/funcdef.go.tmpl @@ -1,11 +1,10 @@ -// Code generated - DO NOT EDIT. - package cef +import "unsafe" + import ( // #include "capi_gen.h" "C" - "unsafe" ) {{- range .}} diff --git a/internal/cefgen/main.go b/internal/cefgen/main.go index b0ccea3..cf7a849 100644 --- a/internal/cefgen/main.go +++ b/internal/cefgen/main.go @@ -120,6 +120,7 @@ func processBlock(curBlock, prevBlock []lineInfo) { func genSourceFile(tmpl *template.Template, tmplName, fileName string, data interface{}) { var buffer bytes.Buffer + fmt.Fprintf(&buffer, "// Code created from %q - don't edit by hand\n\n", tmplName) jot.FatalIfErr(tmpl.ExecuteTemplate(&buffer, tmplName, data)) path := filepath.Join(outputBaseDir, fileName) var d []byte diff --git a/internal/cefgen/struct.go.tmpl b/internal/cefgen/struct.go.tmpl index a8d3c78..7d5e429 100644 --- a/internal/cefgen/struct.go.tmpl +++ b/internal/cefgen/struct.go.tmpl @@ -1,10 +1,7 @@ -// Code generated - DO NOT EDIT. - package cef +{{- if or .NeedsUnsafeImport (eq .GoName "Settings")}} import ( - // #include "capi_gen.h" - "C" {{- if eq .GoName "Settings"}} "path/filepath" {{- end}} @@ -16,6 +13,12 @@ import ( "github.com/richardwilkes/toolbox/xio/fs/paths" {{- end}} ) +{{- end}} + +import ( + // #include "capi_gen.h" + "C" +) // {{.GoName}} ({{.Name}} from {{.Position.Src}}) {{- $comment := .Position.Comment}}{{if $comment}} diff --git a/internal/cefgen/typedef.go.tmpl b/internal/cefgen/typedef.go.tmpl index cc27874..ee98ad4 100644 --- a/internal/cefgen/typedef.go.tmpl +++ b/internal/cefgen/typedef.go.tmpl @@ -1,13 +1,12 @@ -// Code generated - DO NOT EDIT. - package cef +import "unsafe" + import ( {{- range .Headers}} // #include "{{.}}" {{- end}} "C" - "unsafe" ) {{- range .Types}} diff --git a/main.go b/main.go index 013e89f..84b2659 100644 --- a/main.go +++ b/main.go @@ -9,7 +9,7 @@ import ( "github.com/richardwilkes/toolbox/cmdline" ) -const desiredCEFVersion = "74.1.19+gb62bacf+chromium-74.0.3729.157" +const desiredCEFVersion = "75.1.4+g4210896+chromium-75.0.3770.100" func main() { cmdline.CopyrightYears = "2018-2019"