Пример #1
0
        protected CefRenderProcessHandler()
        {
            _self = cef_render_process_handler_t.Alloc();

            _ds0 = new cef_render_process_handler_t.add_ref_delegate(add_ref);
            _self->_base._add_ref = Marshal.GetFunctionPointerForDelegate(_ds0);
            _ds1 = new cef_render_process_handler_t.release_delegate(release);
            _self->_base._release = Marshal.GetFunctionPointerForDelegate(_ds1);
            _ds2 = new cef_render_process_handler_t.get_refct_delegate(get_refct);
            _self->_base._get_refct = Marshal.GetFunctionPointerForDelegate(_ds2);
            _ds3 = new cef_render_process_handler_t.on_render_thread_created_delegate(on_render_thread_created);
            _self->_on_render_thread_created = Marshal.GetFunctionPointerForDelegate(_ds3);
            _ds4 = new cef_render_process_handler_t.on_web_kit_initialized_delegate(on_web_kit_initialized);
            _self->_on_web_kit_initialized = Marshal.GetFunctionPointerForDelegate(_ds4);
            _ds5 = new cef_render_process_handler_t.on_browser_created_delegate(on_browser_created);
            _self->_on_browser_created = Marshal.GetFunctionPointerForDelegate(_ds5);
            _ds6 = new cef_render_process_handler_t.on_browser_destroyed_delegate(on_browser_destroyed);
            _self->_on_browser_destroyed = Marshal.GetFunctionPointerForDelegate(_ds6);
            _ds7 = new cef_render_process_handler_t.get_load_handler_delegate(get_load_handler);
            _self->_get_load_handler = Marshal.GetFunctionPointerForDelegate(_ds7);
            _ds8 = new cef_render_process_handler_t.on_before_navigation_delegate(on_before_navigation);
            _self->_on_before_navigation = Marshal.GetFunctionPointerForDelegate(_ds8);
            _ds9 = new cef_render_process_handler_t.on_context_created_delegate(on_context_created);
            _self->_on_context_created = Marshal.GetFunctionPointerForDelegate(_ds9);
            _dsa = new cef_render_process_handler_t.on_context_released_delegate(on_context_released);
            _self->_on_context_released = Marshal.GetFunctionPointerForDelegate(_dsa);
            _dsb = new cef_render_process_handler_t.on_uncaught_exception_delegate(on_uncaught_exception);
            _self->_on_uncaught_exception = Marshal.GetFunctionPointerForDelegate(_dsb);
            _dsc = new cef_render_process_handler_t.on_focused_node_changed_delegate(on_focused_node_changed);
            _self->_on_focused_node_changed = Marshal.GetFunctionPointerForDelegate(_dsc);
            _dsd = new cef_render_process_handler_t.on_process_message_received_delegate(on_process_message_received);
            _self->_on_process_message_received = Marshal.GetFunctionPointerForDelegate(_dsd);
        }
 protected virtual void Dispose(bool disposing)
 {
     if (_self != null)
     {
         cef_render_process_handler_t.Free(_self);
         _self = null;
     }
 }
Пример #3
0
        private void on_web_kit_initialized(cef_render_process_handler_t *self)
        {
            CheckSelf(self);

            OnWebKitInitialized();
        }
 internal static void Free(cef_render_process_handler_t *ptr)
 {
     Marshal.FreeHGlobal((IntPtr)ptr);
 }
Пример #5
0
 private int has_at_least_one_ref(cef_render_process_handler_t *self)
 {
     lock (SyncRoot) { return(_refct != 0 ? 1 : 0); }
 }
 private int get_refct(cef_render_process_handler_t *self)
 {
     return(_refct);
 }
Пример #7
0
 public CefRenderProcessHandler(cef_render_process_handler_t *instance)
     : base((cef_base_ref_counted_t *)instance)
 {
 }