private void on_accessibility_location_change(cef_accessibility_handler_t *self, cef_value_t *value) { CheckSelf(self); var mValue = CefValue.FromNativeOrNull(value); OnAccessibilityLocationChange(mValue); }
/// <summary> /// Parses the specified |json_string| and returns a dictionary or list /// representation. If JSON parsing fails this method returns NULL. /// </summary> public static CefValue ParseJson(string value, CefJsonParserOptions options) { fixed(char *value_str = value) { var n_value = new cef_string_t(value_str, value != null ? value.Length : 0); var n_result = libcef.parse_json(&n_value, options); return(CefValue.FromNativeOrNull(n_result)); } }
/// <summary> /// Returns the value for the preference with the specified |name|. Returns /// NULL if the preference does not exist. The returned object contains a copy /// of the underlying preference value and modifications to the returned object /// will not modify the underlying preference value. This method must be called /// on the browser process UI thread. /// </summary> public CefValue GetPreference(string name) { fixed(char *name_str = name) { var n_name = new cef_string_t(name_str, name != null ? name.Length : 0); var n_value = cef_request_context_t.get_preference(_self, &n_name); return(CefValue.FromNativeOrNull(n_value)); } }
/// <summary> /// Returns the value at the specified key. For simple types the returned /// value will copy existing data and modifications to the value will not /// modify this object. For complex types (binary, dictionary and list) the /// returned value will reference existing data and modifications to the value /// will modify this object. /// </summary> public CefValue GetValue(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_value(_self, &n_key); return(CefValue.FromNativeOrNull(n_result)); } }
/// <summary> /// Parses the specified |json_string| and returns a dictionary or list /// representation. If JSON parsing fails this method returns NULL and populates /// |error_msg_out| with a formatted error message. /// </summary> public static CefValue ParseJsonAndReturnError(string value, CefJsonParserOptions options, out string errorMessage) { fixed(char *value_str = value) { var n_value = new cef_string_t(value_str, value != null ? value.Length : 0); cef_string_t n_error_msg; var n_result = libcef.parse_jsonand_return_error(&n_value, options, &n_error_msg); var result = CefValue.FromNativeOrNull(n_result); errorMessage = cef_string_userfree.ToString((cef_string_userfree *)&n_error_msg); return(result); } }
/// <summary> /// Returns the value at the specified index. For simple types the returned /// value will copy existing data and modifications to the value will not /// modify this object. For complex types (binary, dictionary and list) the /// returned value will reference existing data and modifications to the value /// will modify this object. /// </summary> public CefValue GetValue(int index) { return(CefValue.FromNativeOrNull( cef_list_value_t.get_value(_self, checked ((UIntPtr)index)) )); }
public static CefValue ParseJson(IntPtr json, int jsonSize, CefJsonParserOptions options) { var n_result = libcef.parse_json_buffer((void *)json, checked ((UIntPtr)jsonSize), options); return(CefValue.FromNativeOrNull(n_result)); }