Skip to content
This repository has been archived by the owner on Jul 20, 2021. It is now read-only.

Commit

Permalink
Update to 74.1.19+gb62bacf+chromium-74.0.3729.157
Browse files Browse the repository at this point in the history
  • Loading branch information
richardwilkes committed Jul 23, 2019
1 parent cc470d1 commit 6850e6c
Show file tree
Hide file tree
Showing 299 changed files with 947 additions and 465 deletions.
23 changes: 23 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion cef/AccessibilityHandler_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
11 changes: 8 additions & 3 deletions cef/AccessibilityHandler_gen.go
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/AccessibilityHandler_gen.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion cef/App_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
14 changes: 11 additions & 3 deletions cef/App_gen.go
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/App_gen.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion cef/AudioHandler_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
12 changes: 9 additions & 3 deletions cef/AudioHandler_gen.go
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/AudioHandler_gen.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion cef/AuthCallback_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
11 changes: 8 additions & 3 deletions cef/AuthCallback_gen.go
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/AuthCallback_gen.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
2 changes: 1 addition & 1 deletion cef/BaseRefCounted_gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated - DO NOT EDIT.
// Code created from "class.go.tmpl" - don't edit by hand

package cef

Expand Down
2 changes: 1 addition & 1 deletion cef/BaseScoped_gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated - DO NOT EDIT.
// Code created from "class.go.tmpl" - don't edit by hand

package cef

Expand Down
2 changes: 1 addition & 1 deletion cef/BeforeDownloadCallback_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
10 changes: 7 additions & 3 deletions cef/BeforeDownloadCallback_gen.go
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/BeforeDownloadCallback_gen.h
Original file line number Diff line number Diff line change
@@ -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_
Expand Down
5 changes: 3 additions & 2 deletions cef/BinaryValue_gen.go
Original file line number Diff line number Diff line change
@@ -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); }
Expand All @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/BoxLayoutSettings_gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated - DO NOT EDIT.
// Code created from "struct.go.tmpl" - don't edit by hand

package cef

Expand Down
2 changes: 1 addition & 1 deletion cef/BoxLayout_gen.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Code generated - DO NOT EDIT.
// Code created from "class.go.tmpl" - don't edit by hand

package cef

Expand Down
5 changes: 3 additions & 2 deletions cef/BrowserHost_gen.go
Original file line number Diff line number Diff line change
@@ -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); }
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cef/BrowserProcessHandler_gen.c
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
Loading

0 comments on commit 6850e6c

Please sign in to comment.