コード例 #1
0
        public static cef_frame_t *get_focused_frame(cef_browser_t *self)
        {
            get_focused_frame_delegate d;
            var p = self->_get_focused_frame;

            if (p == _p11)
            {
                d = _d11;
            }
            else
            {
                d = (get_focused_frame_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_focused_frame_delegate));
                if (_p11 == IntPtr.Zero)
                {
                    _d11 = d; _p11 = p;
                }
            }
            return(d(self));
        }
コード例 #2
0
ファイル: cef_browser_t.g.cs プロジェクト: rajsite/lvcef
 public static cef_frame_t* get_focused_frame(cef_browser_t* self)
 {
     get_focused_frame_delegate d;
     var p = self->_get_focused_frame;
     if (p == _p11) { d = _d11; }
     else
     {
         d = (get_focused_frame_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_focused_frame_delegate));
         if (_p11 == IntPtr.Zero) { _d11 = d; _p11 = p; }
     }
     return d(self);
 }