/// <summary>
        /// Returns the value at the specified key as type dictionary. The returned
        /// value will reference existing data and modifications to the value will
        /// modify this object.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfxDictionaryValue GetDictionary(string key)
        {
            var key_pinned = new PinnedString(key);
            var __retval   = CfxApi.DictionaryValue.cfx_dictionary_value_get_dictionary(NativePtr, key_pinned.Obj.PinnedPtr, key_pinned.Length);

            key_pinned.Obj.Free();
            return(CfxDictionaryValue.Wrap(__retval));
        }
Example #2
0
 /// <summary>
 /// Returns all preferences as a dictionary. If |includeDefaults| is true (1)
 /// then preferences currently at their default value will be included. The
 /// returned object contains a copy of the underlying preference values and
 /// modifications to the returned object will not modify the underlying
 /// preference values. This function must be called on the browser process UI
 /// thread.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_request_context_capi.h">cef/include/capi/cef_request_context_capi.h</see>.
 /// </remarks>
 public CfxDictionaryValue GetAllPreferences(bool includeDefaults)
 {
     return(CfxDictionaryValue.Wrap(CfxApi.cfx_request_context_get_all_preferences(NativePtr, includeDefaults ? 1 : 0)));
 }
Example #3
0
 /// <summary>
 /// Returns the value at the specified index as type dictionary. The returned
 /// value will reference existing data and modifications to the value will
 /// modify this object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public CfxDictionaryValue GetDictionary(int index)
 {
     return(CfxDictionaryValue.Wrap(CfxApi.cfx_list_value_get_dictionary(NativePtr, index)));
 }
 /// <summary>
 /// Creates a new object that is not owned by any other object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public static CfxDictionaryValue Create()
 {
     return(CfxDictionaryValue.Wrap(CfxApi.DictionaryValue.cfx_dictionary_value_create()));
 }
 /// <summary>
 /// Returns a writable copy of this object. If |excludeNullChildren| is true
 /// (1) any NULL dictionaries or lists will be excluded from the copy.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public CfxDictionaryValue Copy(bool excludeEmptyChildren)
 {
     return(CfxDictionaryValue.Wrap(CfxApi.DictionaryValue.cfx_dictionary_value_copy(NativePtr, excludeEmptyChildren ? 1 : 0)));
 }
Example #6
0
 /// <summary>
 /// Returns the value at the specified index as type dictionary. The returned
 /// value will reference existing data and modifications to the value will
 /// modify this object.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public CfxDictionaryValue GetDictionary(ulong index)
 {
     return(CfxDictionaryValue.Wrap(CfxApi.ListValue.cfx_list_value_get_dictionary(NativePtr, (UIntPtr)index)));
 }