// void (*)(_cef_accessibility_handler_t* self, _cef_value_t* value)*
        private static unsafe void OnAccessibilityLocationChangeImpl(cef_accessibility_handler_t *self, cef_value_t *value)
        {
            var instance = GetInstance((IntPtr)self) as CefAccessibilityHandler;

            if (instance == null || ((ICefAccessibilityHandlerPrivate)instance).AvoidOnAccessibilityLocationChange())
            {
                ReleaseIfNonNull((cef_base_ref_counted_t *)value);
                return;
            }
            instance.OnAccessibilityLocationChange(CefValue.Wrap(CefValue.Create, value));
        }
Esempio n. 2
0
        /// <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 function must be
        /// called on the browser process UI thread.
        /// </summary>
        public unsafe virtual CefValue GetPreference(string name)
        {
            fixed(char *s0 = name)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = name != null ? name.Length : 0
                };

                return(SafeCall(CefValue.Wrap(CefValue.Create, NativeInstance->GetPreference(&cstr0))));
            }
        }
Esempio n. 3
0
        /// <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 unsafe virtual CefValue GetValue(string key)
        {
            fixed(char *s0 = key)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = key != null ? key.Length : 0
                };

                return(SafeCall(CefValue.Wrap(CefValue.Create, NativeInstance->GetValue(&cstr0))));
            }
        }
Esempio n. 4
0
 /// <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 unsafe virtual CefValue GetValue(long index)
 {
     return(SafeCall(CefValue.Wrap(CefValue.Create, NativeInstance->GetValue(new UIntPtr((ulong)index)))));
 }
Esempio n. 5
0
 /// <summary>
 /// Returns a copy of this object. The underlying data will also be copied.
 /// </summary>
 public unsafe virtual CefValue Copy()
 {
     return(SafeCall(CefValue.Wrap(CefValue.Create, NativeInstance->Copy())));
 }