protected CefLifeSpanHandler() { _self = cef_life_span_handler_t.Alloc(); _ds0 = new cef_life_span_handler_t.add_ref_delegate(add_ref); _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0); _ds1 = new cef_life_span_handler_t.release_delegate(release); _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1); _ds2 = new cef_life_span_handler_t.has_one_ref_delegate(has_one_ref); _self->_base._has_one_ref = Marshal.GetFunctionPointerForDelegate(_ds2); _ds3 = new cef_life_span_handler_t.on_before_popup_delegate(on_before_popup); _self->_on_before_popup = Marshal.GetFunctionPointerForDelegate(_ds3); _ds4 = new cef_life_span_handler_t.on_after_created_delegate(on_after_created); _self->_on_after_created = Marshal.GetFunctionPointerForDelegate(_ds4); _ds5 = new cef_life_span_handler_t.run_modal_delegate(run_modal); _self->_run_modal = Marshal.GetFunctionPointerForDelegate(_ds5); _ds6 = new cef_life_span_handler_t.do_close_delegate(do_close); _self->_do_close = Marshal.GetFunctionPointerForDelegate(_ds6); _ds7 = new cef_life_span_handler_t.on_before_close_delegate(on_before_close); _self->_on_before_close = Marshal.GetFunctionPointerForDelegate(_ds7); }