Exemplo n.º 1
0
 protected virtual void Dispose(bool disposing)
 {
     if (_self != null)
     {
         cef_print_handler_t.Free(_self);
         _self = null;
     }
 }
Exemplo n.º 2
0
 protected CefPrintHandler()
 {
     _self = cef_print_handler_t.Alloc();
 
     _ds0 = new cef_print_handler_t.add_ref_delegate(add_ref);
     _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0);
     _ds1 = new cef_print_handler_t.release_delegate(release);
     _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1);
     _ds2 = new cef_print_handler_t.get_refct_delegate(get_refct);
     _self->_base._get_refct = Marshal.GetFunctionPointerForDelegate(_ds2);
     _ds3 = new cef_print_handler_t.on_print_settings_delegate(on_print_settings);
     _self->_on_print_settings = Marshal.GetFunctionPointerForDelegate(_ds3);
     _ds4 = new cef_print_handler_t.on_print_dialog_delegate(on_print_dialog);
     _self->_on_print_dialog = Marshal.GetFunctionPointerForDelegate(_ds4);
     _ds5 = new cef_print_handler_t.on_print_job_delegate(on_print_job);
     _self->_on_print_job = Marshal.GetFunctionPointerForDelegate(_ds5);
     _ds6 = new cef_print_handler_t.on_print_reset_delegate(on_print_reset);
     _self->_on_print_reset = Marshal.GetFunctionPointerForDelegate(_ds6);
 }