public void Dispose() { if (_self != null) { Release(); _self = null; } GC.SuppressFinalize(this); }
public static int has_one_ref(cef_dictionary_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 int release(cef_dictionary_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)); }
public static void add_ref(cef_dictionary_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 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 UIntPtr get_size(cef_dictionary_value_t *self) { get_size_delegate d; var p = self->_get_size; if (p == _p9) { d = _d9; } else { d = (get_size_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_size_delegate)); if (_p9 == IntPtr.Zero) { _d9 = d; _p9 = p; } } return(d(self)); }
public static cef_string_userfree *get_string(cef_dictionary_value_t *self, cef_string_t *key) { get_string_delegate d; var p = self->_get_string; if (p == _p13) { d = _d13; } else { d = (get_string_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_string_delegate)); if (_p13 == IntPtr.Zero) { _d13 = d; _p13 = p; } } return(d(self, key)); }
public static int is_equal(cef_dictionary_value_t *self, cef_dictionary_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 get_bool(cef_dictionary_value_t *self, cef_string_t *key) { get_bool_delegate d; var p = self->_get_bool; if (p == _p10) { d = _d10; } else { d = (get_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_bool_delegate)); if (_p10 == IntPtr.Zero) { _d10 = d; _p10 = p; } } return(d(self, key)); }
public static double get_double(cef_dictionary_value_t *self, cef_string_t *key) { get_double_delegate d; var p = self->_get_double; if (p == _p12) { d = _d12; } else { d = (get_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_double_delegate)); if (_p12 == IntPtr.Zero) { _d12 = d; _p12 = p; } } return(d(self, key)); }
public static CefValueType get_type(cef_dictionary_value_t *self, cef_string_t *key) { get_type_delegate d; var p = self->_get_type; if (p == _pe) { d = _de; } else { d = (get_type_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_type_delegate)); if (_pe == IntPtr.Zero) { _de = d; _pe = p; } } return(d(self, key)); }
public static int remove(cef_dictionary_value_t *self, cef_string_t *key) { remove_delegate d; var p = self->_remove; if (p == _pd) { d = _dd; } else { d = (remove_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(remove_delegate)); if (_pd == IntPtr.Zero) { _dd = d; _pd = p; } } return(d(self, key)); }
public static int get_keys(cef_dictionary_value_t *self, cef_string_list *keys) { get_keys_delegate d; var p = self->_get_keys; if (p == _pc) { d = _dc; } else { d = (get_keys_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_keys_delegate)); if (_pc == IntPtr.Zero) { _dc = d; _pc = p; } } return(d(self, keys)); }
public static int is_owned(cef_dictionary_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 cef_list_value_t *get_list(cef_dictionary_value_t *self, cef_string_t *key) { get_list_delegate d; var p = self->_get_list; if (p == _p16) { d = _d16; } else { d = (get_list_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(get_list_delegate)); if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; } } return(d(self, key)); }
public static int has_key(cef_dictionary_value_t *self, cef_string_t *key) { has_key_delegate d; var p = self->_has_key; if (p == _pb) { d = _db; } else { d = (has_key_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(has_key_delegate)); if (_pb == IntPtr.Zero) { _db = d; _pb = p; } } return(d(self, key)); }
public static int set_bool(cef_dictionary_value_t *self, cef_string_t *key, int value) { set_bool_delegate d; var p = self->_set_bool; if (p == _p19) { d = _d19; } else { d = (set_bool_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_bool_delegate)); if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; } } return(d(self, key, value)); }
public static cef_dictionary_value_t *copy(cef_dictionary_value_t *self, int exclude_empty_children) { 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, exclude_empty_children)); }
public static int set_double(cef_dictionary_value_t *self, cef_string_t *key, double value) { set_double_delegate d; var p = self->_set_double; if (p == _p1b) { d = _d1b; } else { d = (set_double_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_double_delegate)); if (_p1b == IntPtr.Zero) { _d1b = d; _p1b = p; } } return(d(self, key, value)); }
public static int clear(cef_dictionary_value_t *self) { clear_delegate d; var p = self->_clear; if (p == _pa) { d = _da; } else { d = (clear_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(clear_delegate)); if (_pa == IntPtr.Zero) { _da = d; _pa = p; } } return(d(self)); }
public static int is_read_only(cef_dictionary_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 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 == _p19) { d = _d19; } else { d = (set_dictionary_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_dictionary_delegate)); if (_p19 == IntPtr.Zero) { _d19 = d; _p19 = p; } } return(d(self, index, value)); }
// void (*)(_cef_render_process_handler_t* self, _cef_browser_t* browser, _cef_dictionary_value_t* extra_info)* private static unsafe void OnBrowserCreatedImpl(cef_render_process_handler_t *self, cef_browser_t *browser, cef_dictionary_value_t *extra_info) { var instance = GetInstance((IntPtr)self) as CefRenderProcessHandler; if (instance == null || ((ICefRenderProcessHandlerPrivate)instance).AvoidOnBrowserCreated()) { ReleaseIfNonNull((cef_base_ref_counted_t *)browser); ReleaseIfNonNull((cef_base_ref_counted_t *)extra_info); return; } instance.OnBrowserCreated(CefBrowser.Wrap(CefBrowser.Create, browser), CefDictionaryValue.Wrap(CefDictionaryValue.Create, extra_info)); }
public unsafe extern void OnBrowserCreated(cef_browser_t *browser, cef_dictionary_value_t *extra_info);
public static void load_extension(cef_request_context_t *self, cef_string_t *root_directory, cef_dictionary_value_t *manifest, cef_extension_handler_t *handler) { load_extension_delegate d; var p = self->_load_extension; if (p == _p16) { d = _d16; } else { d = (load_extension_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(load_extension_delegate)); if (_p16 == IntPtr.Zero) { _d16 = d; _p16 = p; } } d(self, root_directory, manifest, handler); }
internal static CefDictionaryValue FromNative(cef_dictionary_value_t *ptr) { return(new CefDictionaryValue(ptr)); }
private void on_browser_created(cef_render_process_handler_t *self, cef_browser_t *browser, cef_dictionary_value_t *extra_info) { CheckSelf(self); var m_browser = CefBrowser.FromNative(browser); var m_extraInfo = CefDictionaryValue.FromNative(extra_info); OnBrowserCreated(m_browser, m_extraInfo); }
/// <summary> /// Sets the value at the specified key as type dict. Returns true if the /// value was set successfully. If |value| is currently owned by another object /// then the value will be copied and the |value| reference will not change. /// Otherwise, ownership will be transferred to this object and the |value| /// reference will be invalidated. /// </summary> public int SetDictionary(cef_string_t *key, cef_dictionary_value_t *value) { throw new NotImplementedException(); // TODO: CefDictionaryValue.SetDictionary }
private CefDictionaryValue(cef_dictionary_value_t* ptr) { if (ptr == null) throw new ArgumentNullException("ptr"); _self = ptr; }
public unsafe extern int SetDictionary(cef_dictionary_value_t *value);
public unsafe extern int SetDictionary(UIntPtr index, cef_dictionary_value_t *value);
/// <summary> /// Returns true if this object and |that| object have an equivalent underlying /// value but are not necessarily the same object. /// </summary> public int IsEqual(cef_dictionary_value_t *that) { throw new NotImplementedException(); // TODO: CefDictionaryValue.IsEqual }