forked from cztomczak/cef2go
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathcefBrowserProcessHandler.c
51 lines (34 loc) · 1.76 KB
/
cefBrowserProcessHandler.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// Copyright (c) 2014 The cef2go authors. All rights reserved.
// License: BSD 3-clause.
// Website: https://github.com/fromkeith/cef2go
#include "_cgo_export.h"
#include "cefBase.h"
#include "include/capi/cef_browser_process_handler_capi.h"
void CEF_CALLBACK cef_browser_process_handler_t_on_context_initialized(
struct _cef_browser_process_handler_t* self) {
OnContextInitialized(self);
}
void CEF_CALLBACK cef_browser_process_handler_t_on_before_child_process_launch(
struct _cef_browser_process_handler_t* self,
struct _cef_command_line_t* command_line) {
OnBeforeChildProcessLaunch(self, command_line);
}
void CEF_CALLBACK cef_browser_process_handler_t_on_render_process_thread_created(
struct _cef_browser_process_handler_t* self,
struct _cef_list_value_t* extra_info) {
printf("cef_browser_process_handler_t_on_render_process_thread_created %X", (size_t) extra_info);
OnRenderProcessThreadCreated(self, extra_info);
}
struct _cef_print_handler_t* CEF_CALLBACK cef_browser_process_handler_t_get_print_handler(
struct _cef_browser_process_handler_t* self) {
return 0;
}
void intialize_cef_browser_process_handler(struct _cef_browser_process_handler_t* handler) {
goDebugLog("initializeProcessHandler\n");
handler->base.size = sizeof(cef_browser_process_handler_t);
initialize_cef_base((cef_base_t*) handler, "browser_process_handler");
handler->on_context_initialized = cef_browser_process_handler_t_on_context_initialized;
handler->on_before_child_process_launch = cef_browser_process_handler_t_on_before_child_process_launch;
handler->on_render_process_thread_created = cef_browser_process_handler_t_on_render_process_thread_created;
handler->get_print_handler = cef_browser_process_handler_t_get_print_handler;
}