Esempio n. 1
0
        public static void cont(cef_callback_t *self)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self);
        }
        public static void cont(cef_auth_callback_t *self, cef_string_t *username, cef_string_t *password)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self, username, password);
        }
        public static void cont(cef_file_dialog_callback_t *self, int selected_accept_filter, cef_string_list *file_paths)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self, selected_accept_filter, file_paths);
        }
        public static void cont(cef_run_context_menu_callback_t *self, int command_id, CefEventFlags event_flags)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self, command_id, event_flags);
        }
        public static void cont(cef_jsdialog_callback_t *self, int success, cef_string_t *user_input)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self, success, user_input);
        }
        public static void cont(cef_before_download_callback_t *self, cef_string_t *download_path, int show_dialog)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p3)
            {
                d = _d3;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p3 == IntPtr.Zero)
                {
                    _d3 = d; _p3 = p;
                }
            }
            d(self, download_path, show_dialog);
        }
        public static void cont(cef_resource_skip_callback_t *self, long bytes_skipped)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            d(self, bytes_skipped);
        }
        public static void cont(cef_get_extension_resource_callback_t *self, cef_stream_reader_t *stream)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            d(self, stream);
        }
Esempio n. 9
0
        public static void cont(cef_request_callback_t *self, int allow)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            d(self, allow);
        }
        public static void cont(cef_print_dialog_callback_t *self, cef_print_settings_t *settings)
        {
            cont_delegate d;
            var           p = self->_cont;

            if (p == _p4)
            {
                d = _d4;
            }
            else
            {
                d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
                if (_p4 == IntPtr.Zero)
                {
                    _d4 = d; _p4 = p;
                }
            }
            d(self, settings);
        }
Esempio n. 11
0
 public static void cont(cef_file_dialog_callback_t* self, cef_string_list* file_paths)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, file_paths);
 }
 public static void cont(cef_callback_t* self)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self);
 }
Esempio n. 13
0
 public static void cont(cef_auth_callback_t* self, cef_string_t* username, cef_string_t* password)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, username, password);
 }
 public static void cont(cef_before_download_callback_t* self, cef_string_t* download_path, int show_dialog)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, download_path, show_dialog);
 }
Esempio n. 15
0
 public static void cont(cef_jsdialog_callback_t* self, int success, cef_string_t* user_input)
 {
     cont_delegate d;
     var p = self->_cont;
     if (p == _p3) { d = _d3; }
     else
     {
         d = (cont_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(cont_delegate));
         if (_p3 == IntPtr.Zero) { _d3 = d; _p3 = p; }
     }
     d(self, success, user_input);
 }