internal static cef_web_plugin_unstable_callback_t* Alloc()
 {
     var ptr = (cef_web_plugin_unstable_callback_t*)Marshal.AllocHGlobal(_sizeof);
     *ptr = new cef_web_plugin_unstable_callback_t();
     ptr->_base._size = (UIntPtr)_sizeof;
     return ptr;
 }
Exemplo n.º 2
0
        private void is_unstable(cef_web_plugin_unstable_callback_t* self, cef_string_t* path, int unstable)
        {
            CheckSelf(self);

            var m_path = cef_string_t.ToString(path);
            IsUnstable(m_path, unstable != 0);
        }
        internal static cef_web_plugin_unstable_callback_t *Alloc()
        {
            var ptr = (cef_web_plugin_unstable_callback_t *)Marshal.AllocHGlobal(_sizeof);

            *ptr = new cef_web_plugin_unstable_callback_t();
            ptr->_base._size = (UIntPtr)_sizeof;
            return(ptr);
        }
 private void add_ref(cef_web_plugin_unstable_callback_t* self)
 {
     lock (SyncRoot)
     {
         var result = ++_refct;
         if (result == 1)
         {
             lock (_roots) { _roots.Add((IntPtr)_self, this); }
         }
     }
 }
 private int release(cef_web_plugin_unstable_callback_t* self)
 {
     lock (SyncRoot)
     {
         var result = --_refct;
         if (result == 0)
         {
             lock (_roots) { _roots.Remove((IntPtr)_self); }
             return 1;
         }
         return 0;
     }
 }
Exemplo n.º 6
0
 public static extern void is_web_plugin_unstable(cef_string_t* path, cef_web_plugin_unstable_callback_t* callback);
 private void CheckSelf(cef_web_plugin_unstable_callback_t* self)
 {
     if (_self != self) throw ExceptionBuilder.InvalidSelfReference();
 }
 private int has_one_ref(cef_web_plugin_unstable_callback_t* self)
 {
     lock (SyncRoot) { return _refct == 1 ? 1 : 0; }
 }
 internal static void Free(cef_web_plugin_unstable_callback_t* ptr)
 {
     Marshal.FreeHGlobal((IntPtr)ptr);
 }
Exemplo n.º 10
0
 private int get_refct(cef_web_plugin_unstable_callback_t* self)
 {
     return _refct;
 }