void initialize_app_handler(cef_app_t* app) { goDebugLog("initialize_app_handler\n"); app->base.size = sizeof(cef_app_t); initialize_cef_base((cef_base_t*) app, "app_handler"); go_AddRef((cef_base_t*) app); // callbacks app->on_before_command_line_processing = on_before_command_line_processing; app->on_register_custom_schemes = on_register_custom_schemes; app->get_resource_bundle_handler = get_resource_bundle_handler; app->get_browser_process_handler = get_browser_process_handler; app->get_render_process_handler = get_render_process_handler; }
struct _cef_request_handler_t* CEF_CALLBACK get_request_handler( struct _cef_client_t* self) { //DEBUG_CALLBACK("get_request_handler"); go_AddRef((void *) go_client->request_handler); return go_client->request_handler; }
struct _cef_life_span_handler_t* CEF_CALLBACK get_life_span_handler( struct _cef_client_t* self) { //DEBUG_CALLBACK("get_life_span_handler"); go_AddRef((void *) go_client->life_span_handler); return go_client->life_span_handler; }