public void Dispose()
 {
     if (_self != null)
     {
         Release();
         _self = null;
     }
     GC.SuppressFinalize(this);
 }
        public static int set_bool(cef_list_value_t *self, int index, int value)
        {
            set_bool_delegate d;
            var p = self->_set_bool;

            if (p == _p18)
            {
                d = _d18;
            }
            else
            {
                d = (set_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_bool_delegate));
                if (_p18 == IntPtr.Zero)
                {
                    _d18 = d; _p18 = p;
                }
            }
            return(d(self, index, value));
        }
        public static int set_null(cef_list_value_t *self, int index)
        {
            set_null_delegate d;
            var p = self->_set_null;

            if (p == _p17)
            {
                d = _d17;
            }
            else
            {
                d = (set_null_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_null_delegate));
                if (_p17 == IntPtr.Zero)
                {
                    _d17 = d; _p17 = p;
                }
            }
            return(d(self, index));
        }
        public static cef_list_value_t *get_list(cef_list_value_t *self, int index)
        {
            get_list_delegate d;
            var p = self->_get_list;

            if (p == _p15)
            {
                d = _d15;
            }
            else
            {
                d = (get_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_list_delegate));
                if (_p15 == IntPtr.Zero)
                {
                    _d15 = d; _p15 = p;
                }
            }
            return(d(self, index));
        }
        public static int is_owned(cef_list_value_t *self)
        {
            is_owned_delegate d;
            var p = self->_is_owned;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (is_owned_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_owned_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
        public static int release(cef_list_value_t *self)
        {
            release_delegate d;
            var p = self->_base._release;

            if (p == _p1)
            {
                d = _d1;
            }
            else
            {
                d = (release_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(release_delegate));
                if (_p1 == IntPtr.Zero)
                {
                    _d1 = d; _p1 = p;
                }
            }
            return(d(self));
        }
Beispiel #7
0
        public static int set_list(cef_dictionary_value_t *self, cef_string_t *key, cef_list_value_t *value)
        {
            set_list_delegate d;
            var p = self->_set_list;

            if (p == _p1f)
            {
                d = _d1f;
            }
            else
            {
                d = (set_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_list_delegate));
                if (_p1f == IntPtr.Zero)
                {
                    _d1f = d; _p1f = p;
                }
            }
            return(d(self, key, value));
        }
        public static int set_dictionary(cef_list_value_t *self, int index, cef_dictionary_value_t *value)
        {
            set_dictionary_delegate d;
            var p = self->_set_dictionary;

            if (p == _p1d)
            {
                d = _d1d;
            }
            else
            {
                d = (set_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_dictionary_delegate));
                if (_p1d == IntPtr.Zero)
                {
                    _d1d = d; _p1d = p;
                }
            }
            return(d(self, index, value));
        }
        public static int clear(cef_list_value_t *self)
        {
            clear_delegate d;
            var            p = self->_clear;

            if (p == _pb)
            {
                d = _db;
            }
            else
            {
                d = (clear_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(clear_delegate));
                if (_pb == IntPtr.Zero)
                {
                    _db = d; _pb = p;
                }
            }
            return(d(self));
        }
        public static UIntPtr get_size(cef_list_value_t *self)
        {
            get_size_delegate d;
            var p = self->_get_size;

            if (p == _pa)
            {
                d = _da;
            }
            else
            {
                d = (get_size_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_size_delegate));
                if (_pa == IntPtr.Zero)
                {
                    _da = d; _pa = p;
                }
            }
            return(d(self));
        }
        public static int set_size(cef_list_value_t *self, UIntPtr size)
        {
            set_size_delegate d;
            var p = self->_set_size;

            if (p == _p9)
            {
                d = _d9;
            }
            else
            {
                d = (set_size_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_size_delegate));
                if (_p9 == IntPtr.Zero)
                {
                    _d9 = d; _p9 = p;
                }
            }
            return(d(self, size));
        }
        public static cef_list_value_t *copy(cef_list_value_t *self)
        {
            copy_delegate d;
            var           p = self->_copy;

            if (p == _p8)
            {
                d = _d8;
            }
            else
            {
                d = (copy_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(copy_delegate));
                if (_p8 == IntPtr.Zero)
                {
                    _d8 = d; _p8 = p;
                }
            }
            return(d(self));
        }
        public static int is_equal(cef_list_value_t *self, cef_list_value_t *that)
        {
            is_equal_delegate d;
            var p = self->_is_equal;

            if (p == _p7)
            {
                d = _d7;
            }
            else
            {
                d = (is_equal_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_equal_delegate));
                if (_p7 == IntPtr.Zero)
                {
                    _d7 = d; _p7 = p;
                }
            }
            return(d(self, that));
        }
        public static int is_read_only(cef_list_value_t *self)
        {
            is_read_only_delegate d;
            var p = self->_is_read_only;

            if (p == _p5)
            {
                d = _d5;
            }
            else
            {
                d = (is_read_only_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(is_read_only_delegate));
                if (_p5 == IntPtr.Zero)
                {
                    _d5 = d; _p5 = p;
                }
            }
            return(d(self));
        }
        public static cef_dictionary_value_t *get_dictionary(cef_list_value_t *self, UIntPtr index)
        {
            get_dictionary_delegate d;
            var p = self->_get_dictionary;

            if (p == _p14)
            {
                d = _d14;
            }
            else
            {
                d = (get_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_dictionary_delegate));
                if (_p14 == IntPtr.Zero)
                {
                    _d14 = d; _p14 = p;
                }
            }
            return(d(self, index));
        }
        public static double get_double(cef_list_value_t *self, UIntPtr index)
        {
            get_double_delegate d;
            var p = self->_get_double;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            return(d(self, index));
        }
        public static int set_string(cef_list_value_t *self, int index, cef_string_t *value)
        {
            set_string_delegate d;
            var p = self->_set_string;

            if (p == _p1b)
            {
                d = _d1b;
            }
            else
            {
                d = (set_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_string_delegate));
                if (_p1b == IntPtr.Zero)
                {
                    _d1b = d; _p1b = p;
                }
            }
            return(d(self, index, value));
        }
        public static int remove(cef_list_value_t *self, int index)
        {
            remove_delegate d;
            var             p = self->_remove;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            return(d(self, index));
        }
Beispiel #19
0
        public static int set_list(cef_value_t *self, cef_list_value_t *value)
        {
            set_list_delegate d;
            var p = self->_set_list;

            if (p == _p19)
            {
                d = _d19;
            }
            else
            {
                d = (set_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_list_delegate));
                if (_p19 == IntPtr.Zero)
                {
                    _d19 = d; _p19 = p;
                }
            }
            return(d(self, value));
        }
        public static CefValueType get_type(cef_list_value_t *self, int index)
        {
            get_type_delegate d;
            var p = self->_get_type;

            if (p == _pd)
            {
                d = _dd;
            }
            else
            {
                d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate));
                if (_pd == IntPtr.Zero)
                {
                    _dd = d; _pd = p;
                }
            }
            return(d(self, index));
        }
        public static void add_ref(cef_list_value_t *self)
        {
            add_ref_delegate d;
            var p = self->_base._add_ref;

            if (p == _p0)
            {
                d = _d0;
            }
            else
            {
                d = (add_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(add_ref_delegate));
                if (_p0 == IntPtr.Zero)
                {
                    _d0 = d; _p0 = p;
                }
            }
            d(self);
        }
        public static int get_bool(cef_list_value_t *self, int index)
        {
            get_bool_delegate d;
            var p = self->_get_bool;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bool_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self, index));
        }
        public static int has_one_ref(cef_list_value_t *self)
        {
            has_one_ref_delegate d;
            var p = self->_base._has_one_ref;

            if (p == _p2)
            {
                d = _d2;
            }
            else
            {
                d = (has_one_ref_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_one_ref_delegate));
                if (_p2 == IntPtr.Zero)
                {
                    _d2 = d; _p2 = p;
                }
            }
            return(d(self));
        }
        public static cef_string_userfree *get_string(cef_list_value_t *self, int index)
        {
            get_string_delegate d;
            var p = self->_get_string;

            if (p == _p12)
            {
                d = _d12;
            }
            else
            {
                d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate));
                if (_p12 == IntPtr.Zero)
                {
                    _d12 = d; _p12 = p;
                }
            }
            return(d(self, index));
        }
        public static int set_double(cef_list_value_t *self, int index, double value)
        {
            set_double_delegate d;
            var p = self->_set_double;

            if (p == _p1a)
            {
                d = _d1a;
            }
            else
            {
                d = (set_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_double_delegate));
                if (_p1a == IntPtr.Zero)
                {
                    _d1a = d; _p1a = p;
                }
            }
            return(d(self, index, value));
        }
        public static int get_int(cef_list_value_t *self, UIntPtr index)
        {
            get_int_delegate d;
            var p = self->_get_int;

            if (p == _p10)
            {
                d = _d10;
            }
            else
            {
                d = (get_int_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_int_delegate));
                if (_p10 == IntPtr.Zero)
                {
                    _d10 = d; _p10 = p;
                }
            }
            return(d(self, index));
        }
 private CefListValue(cef_list_value_t* ptr)
 {
     if (ptr == null) throw new ArgumentNullException("ptr");
     _self = ptr;
 }
        // void (*)(_cef_browser_process_handler_t* self, _cef_list_value_t* extra_info)*
        private static unsafe void OnRenderProcessThreadCreatedImpl(cef_browser_process_handler_t *self, cef_list_value_t *extra_info)
        {
            var instance = GetInstance((IntPtr)self) as CefBrowserProcessHandler;

            if (instance == null || ((ICefBrowserProcessHandlerPrivate)instance).AvoidOnRenderProcessThreadCreated())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)extra_info);
                return;
            }
            instance.OnRenderProcessThreadCreated(CefListValue.Wrap(CefListValue.Create, extra_info));
        }
 private void on_render_thread_created(cef_render_process_handler_t *self, cef_list_value_t *extra_info)
 {
     CheckSelf(self);
     throw new NotImplementedException(); // TODO: CefRenderProcessHandler.OnRenderThreadCreated
 }
 internal static CefListValue FromNative(cef_list_value_t *ptr)
 {
     return(new CefListValue(ptr));
 }
        private void on_render_process_thread_created(cef_browser_process_handler_t *self, cef_list_value_t *extra_info)
        {
            CheckSelf(self);

            var mExtraInfo = CefListValue.FromNative(extra_info);

            OnRenderProcessThreadCreated(mExtraInfo);
            mExtraInfo.Dispose();
        }
Beispiel #32
0
 public unsafe extern int SetList(cef_list_value_t *value);