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)); } }
/// <summary> /// Sets the value at the specified key as type list. 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 bool SetList(string key, CefListValue value) { if (value == null) throw new ArgumentNullException("value"); fixed(char *key_str = key) { var n_key = new cef_string_t(key_str, key != null ? key.Length : 0); return(cef_dictionary_value_t.set_list(_self, &n_key, value.ToNative()) != 0); } }
/// <summary> /// Called after the render process main thread has been created. /// </summary> protected virtual void OnRenderThreadCreated(CefListValue extraInfo) { }
/// <summary> /// Returns a writable copy of this object. /// </summary> public CefListValue Copy() { return(CefListValue.FromNative( cef_list_value_t.copy(_self) )); }
/// <summary> /// Returns true if this object and |that| object have an equivalent underlying /// value but are not necessarily the same object. /// </summary> public bool IsEqual(CefListValue that) { return(cef_list_value_t.is_equal(_self, that.ToNative()) != 0); }
/// <summary> /// Returns true if this object and |that| object have the same underlying /// data. If true modifications to this object will also affect |that| object /// and vice-versa. /// </summary> public bool IsSame(CefListValue that) { return(cef_list_value_t.is_same(_self, that.ToNative()) != 0); }
/// <summary> /// Sets the value at the specified index as type list. 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 bool SetList(int index, CefListValue value) { return(cef_list_value_t.set_list(_self, index, value.ToNative()) != 0); }
/// <summary> /// Returns the value at the specified index as type list. The returned /// value will reference existing data and modifications to the value will /// modify this object. /// </summary> public CefListValue GetList(int index) { return(CefListValue.FromNativeOrNull( cef_list_value_t.get_list(_self, index) )); }
/// <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() )); }
/// <summary> /// Sets the underlying value as type list. Returns true if the value was set /// successfully. This object keeps a reference to |value| and ownership of the /// underlying data remains unchanged. /// </summary> public bool SetList(CefListValue value) { return(cef_value_t.set_list(_self, value.ToNative()) != 0); }
/// <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) )); }