コード例 #1
0
        public static cef_string_userfree *get_selection_as_markup(cef_domdocument_t *self)
        {
            get_selection_as_markup_delegate d;
            var p = self->_get_selection_as_markup;

            if (p == _pf)
            {
                d = _df;
            }
            else
            {
                d = (get_selection_as_markup_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_as_markup_delegate));
                if (_pf == IntPtr.Zero)
                {
                    _df = d; _pf = p;
                }
            }
            return(d(self));
        }
コード例 #2
0
ファイル: cef_domdocument_t.g.cs プロジェクト: rajsite/lvcef
 public static cef_string_userfree* get_selection_as_markup(cef_domdocument_t* self)
 {
     get_selection_as_markup_delegate d;
     var p = self->_get_selection_as_markup;
     if (p == _pf) { d = _df; }
     else
     {
         d = (get_selection_as_markup_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_selection_as_markup_delegate));
         if (_pf == IntPtr.Zero) { _df = d; _pf = p; }
     }
     return d(self);
 }