private void on_render_thread_created(cef_render_process_handler_t *self, cef_list_value_t *extra_info)
        {
            CheckSelf(self);

            var mExtraInfo = CefListValue.FromNative(extra_info);

            OnRenderThreadCreated(mExtraInfo);
            mExtraInfo.Dispose();
        }
        /// <summary>
        /// Returns the value at the specified key as type list. The returned value
        /// will reference existing data and modifications to the value will modify
        /// this object.
        /// </summary>
        public CefListValue GetList(string key)
        {
            fixed(char *key_str = key)
            {
                var n_key    = new cef_string_t(key_str, key != null ? key.Length : 0);
                var n_result = cef_dictionary_value_t.get_list(_self, &n_key);

                return(CefListValue.FromNative(n_result));
            }
        }
示例#3
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefListValue Copy()
 {
     return(CefListValue.FromNative(
                cef_list_value_t.copy(_self)
                ));
 }
 /// <summary>
 /// Returns the underlying value as type list. The returned reference may
 /// become invalid if the value is owned by another object or if ownership is
 /// transferred to another object in the future. To maintain a reference to
 /// the value after assigning ownership to a dictionary or list pass this
 /// object to the SetValue() method instead of passing the returned reference
 /// to SetList().
 /// </summary>
 public CefListValue GetList()
 {
     return(CefListValue.FromNative(
                cef_value_t.get_list(_self)
                ));
 }
示例#5
0
 /// <summary>
 /// Creates a new object that is not owned by any other object.
 /// </summary>
 public static CefListValue Create()
 {
     return(CefListValue.FromNative(
                cef_list_value_t.create()
                ));
 }