Ejemplo n.º 1
0
        public static cef_string_userfree *get_identifier(cef_extension_t *self)
        {
            get_identifier_delegate d;
            var p = self->_get_identifier;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (get_identifier_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_identifier_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 2
0
        public static long get_identifier(cef_frame_t *self)
        {
            get_identifier_delegate d;
            var p = self->_get_identifier;

            if (p == _p15)
            {
                d = _d15;
            }
            else
            {
                d = (get_identifier_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_identifier_delegate));
                if (_p15 == IntPtr.Zero)
                {
                    _d15 = d; _p15 = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 3
0
        public static int get_identifier(cef_browser_t *self)
        {
            get_identifier_delegate d;
            var p = self->_get_identifier;

            if (p == _pc)
            {
                d = _dc;
            }
            else
            {
                d = (get_identifier_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_identifier_delegate));
                if (_pc == IntPtr.Zero)
                {
                    _dc = d; _pc = p;
                }
            }
            return(d(self));
        }
Ejemplo n.º 4
0
 public static int get_identifier(cef_browser_t* self)
 {
     get_identifier_delegate d;
     var p = self->_get_identifier;
     if (p == _pc) { d = _dc; }
     else
     {
         d = (get_identifier_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_identifier_delegate));
         if (_pc == IntPtr.Zero) { _dc = d; _pc = p; }
     }
     return d(self);
 }
Ejemplo n.º 5
0
 public static long get_identifier(cef_frame_t* self)
 {
     get_identifier_delegate d;
     var p = self->_get_identifier;
     if (p == _p15) { d = _d15; }
     else
     {
         d = (get_identifier_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_identifier_delegate));
         if (_p15 == IntPtr.Zero) { _d15 = d; _p15 = p; }
     }
     return d(self);
 }