示例#1
0
 public unsafe int SetValueByAccessor([Immutable] cef_string_t *key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
 {
     fixed(cef_v8value_t *self = &this)
     {
         return(((delegate * unmanaged[Stdcall] < cef_v8value_t *, cef_string_t *, CefV8AccessControl, CefV8PropertyAttribute, int >)set_value_byaccessor)(self, key, settings, attribute));
     }
 }
        /// <summary>
        /// Registers an identifier and returns true on success. Access to the
        /// identifier will be forwarded to the CefV8Accessor instance passed to
        /// CefV8Value::CreateObject(). Returns false if this method is called
        /// incorrectly or an exception is thrown. For read-only values this method
        /// will return true even though assignment failed.
        /// </summary>
        public bool SetValue(string key, CefV8AccessControl settings, CefV8PropertyAttribute attribute = CefV8PropertyAttribute.None)
        {
            fixed(char *key_str = key)
            {
                var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);

                return(cef_v8value_t.set_value_byaccessor(_self, &n_key, settings, attribute) != 0);
            }
        }
示例#3
0
        /// <summary>
        /// Registers an identifier and returns true on success. Access to the
        /// identifier will be forwarded to the CefV8Accessor instance passed to
        /// CefV8Value::CreateObject(). Returns false if this method is called
        /// incorrectly or an exception is thrown. For read-only values this method
        /// will return true even though assignment failed.
        /// </summary>
        public bool SetValue(string key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
        {
            ThrowIfObjectIsInvalid();
            fixed(char *key_str = key)
            {
                var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);

                return(cef_v8value_t.invoke_set_value_byaccessor(this.ptr, &n_key, (cef_v8_accesscontrol_t)settings, (cef_v8_propertyattribute_t)attribute) != 0);
            }
        }
示例#4
0
        /// <summary>
        /// Registers an identifier and returns true (1) on success. Access to the
        /// identifier will be forwarded to the cef_v8accessor_t instance passed to
        /// cef_v8value_t::cef_v8value_create_object(). Returns false (0) if this
        /// function is called incorrectly or an exception is thrown. For read-only
        /// values this function will return true (1) even though assignment failed.
        /// </summary>
        public unsafe virtual bool SetValueByAccessor(string key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
        {
            fixed(char *s0 = key)
            {
                var cstr0 = new cef_string_t {
                    Str = s0, Length = key != null ? key.Length : 0
                };

                return(SafeCall(NativeInstance->SetValueByAccessor(&cstr0, settings, attribute) != 0));
            }
        }
示例#5
0
 public unsafe extern int SetValueByAccessor([Immutable] cef_string_t *key, CefV8AccessControl settings, CefV8PropertyAttribute attribute);
示例#6
0
 public bool SetValue(string key, CefV8AccessControl settings, CefV8PropertyAttribute attributes)
 {
     return(SetValueByAccessor(key, settings, attributes));
 }
示例#7
0
        /// <summary>
        /// Registers an identifier and returns true on success. Access to the
        /// identifier will be forwarded to the CefV8Accessor instance passed to
        /// CefV8Value::CreateObject(). Returns false if this method is called
        /// incorrectly or an exception is thrown. For read-only values this method
        /// will return true even though assignment failed.
        /// </summary>
        public bool SetValue(string key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
        {
            ThrowIfObjectIsInvalid();
            fixed (char* key_str = key)
            {
                var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);

                return cef_v8value_t.invoke_set_value_byaccessor(this.ptr, &n_key, (cef_v8_accesscontrol_t)settings, (cef_v8_propertyattribute_t)attribute) != 0;
            }
        }
示例#8
0
        public static int set_value_byaccessor(cef_v8value_t *self, cef_string_t *key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
        {
            set_value_byaccessor_delegate d;
            var p = self->_set_value_byaccessor;

            if (p == _p24)
            {
                d = _d24;
            }
            else
            {
                d = (set_value_byaccessor_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_byaccessor_delegate));
                if (_p24 == IntPtr.Zero)
                {
                    _d24 = d; _p24 = p;
                }
            }
            return(d(self, key, settings, attribute));
        }
示例#9
0
 public static int set_value_byaccessor(cef_v8value_t* self, cef_string_t* key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
 {
     set_value_byaccessor_delegate d;
     var p = self->_set_value_byaccessor;
     if (p == _p24) { d = _d24; }
     else
     {
         d = (set_value_byaccessor_delegate)Marshal.GetDelegateForFunctionPointer(p, typeof(set_value_byaccessor_delegate));
         if (_p24 == IntPtr.Zero) { _d24 = d; _p24 = p; }
     }
     return d(self, key, settings, attribute);
 }
示例#10
0
 /// <summary>
 /// Registers an identifier and returns true on success. Access to the
 /// identifier will be forwarded to the CefV8Accessor instance passed to
 /// CefV8Value::CreateObject(). Returns false if this method is called
 /// incorrectly or an exception is thrown. For read-only values this method
 /// will return true even though assignment failed.
 /// </summary>
 public bool SetValue(string key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
 {
     fixed (char* key_str = key)
     {
         var n_key = new cef_string_t(key_str, key != null ? key.Length : 0);
         return cef_v8value_t.set_value_byaccessor(_self, &n_key, settings, attribute) != 0;
     }
 }
 /// <summary>
 /// Registers an identifier and returns true on success. Access to the
 /// identifier will be forwarded to the CefV8Accessor instance passed to
 /// CefV8Value::CreateObject(). Returns false if this method is called
 /// incorrectly or an exception is thrown. For read-only values this method
 /// will return true even though assignment failed.
 /// </summary>
 public int SetValue(cef_string_t *key, CefV8AccessControl settings, CefV8PropertyAttribute attribute)
 {
     throw new NotImplementedException(); // TODO: CefV8Value.SetValue
 }