/// <summary>
        /// Returns a copy of this object. The data in this object will also be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRenderProcessCall();

            call.@this = proxyId;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Esempio n. 2
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        public static CfrBinaryValue Create(byte[] data)
        {
            var call = new CfxBinaryValueCreateFromArrayRenderProcessCall();

            call.data = data;
            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Esempio n. 3
0
        /// <summary>
        /// Returns a copy of this object. The data in this object will also be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRenderProcessCall();

            call.self = CfrObject.Unwrap(this);
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Esempio n. 4
0
        /// <summary>
        /// Returns a copy of this object. The data in this object will also be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue Copy()
        {
            var call = new CfxBinaryValueCopyRemoteCall();

            call.@this = RemotePtr.ptr;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Esempio n. 5
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        public static CfrBinaryValue Create(byte[] data)
        {
            var call = new CfxBinaryValueCreateFromArrayRemoteCall();

            call.data = data;
            call.RequestExecution();
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Esempio n. 6
0
        /// <summary>
        /// Sets the underlying value as type binary. Returns true (1) if the value was
        /// set successfully. This object keeps a reference to |value| and ownership of
        /// the underlying data remains unchanged.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(CfrBinaryValue value)
        {
            var call = new CfxValueSetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            call.value = CfrObject.Unwrap(value).ptr;
            call.RequestExecution(RemotePtr.connection);
            return(call.__retval);
        }
Esempio n. 7
0
        /// <summary>
        /// Returns the value at the specified index as type binary. The returned value
        /// will reference existing data.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue GetBinary(ulong index)
        {
            var call = new CfxListValueGetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            call.index = index;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Esempio n. 8
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public static CfrBinaryValue Create(RemotePtr data, int dataSize)
        {
            var call = new CfxBinaryValueCreateRenderProcessCall();

            call.data     = data.ptr;
            call.dataSize = dataSize;
            call.RequestExecution(CfxRemoteCallContext.CurrentContext.connection);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Esempio n. 9
0
        /// <summary>
        /// Returns true (1) if this object and |that| object have an equivalent
        /// underlying value but are not necessarily the same object.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool IsEqual(CfrBinaryValue that)
        {
            var call = new CfxBinaryValueIsEqualRenderProcessCall();

            call.self = CfrObject.Unwrap(this);
            call.that = CfrObject.Unwrap(that);
            call.RequestExecution(this);
            return(call.__retval);
        }
Esempio n. 10
0
        /// <summary>
        /// Sets the underlying value as type binary. Returns true (1) if the value was
        /// set successfully. This object keeps a reference to |value| and ownership of
        /// the underlying data remains unchanged.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(CfrBinaryValue value)
        {
            var call = new CfxValueSetBinaryRenderProcessCall();

            call.@this = proxyId;
            call.value = CfrObject.Unwrap(value);
            call.RequestExecution(this);
            return(call.__retval);
        }
Esempio n. 11
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public static CfrBinaryValue Create(RemotePtr data, ulong dataSize)
        {
            var call = new CfxBinaryValueCreateRemoteCall();

            call.data     = data.ptr;
            call.dataSize = dataSize;
            call.RequestExecution();
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Esempio n. 12
0
        /// <summary>
        /// Returns the value at the specified key as type binary. The returned value
        /// will reference existing data.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue GetBinary(string key)
        {
            var call = new CfxDictionaryValueGetBinaryRenderProcessCall();

            call.self = CfrObject.Unwrap(this);
            call.key  = key;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
        /// <summary>
        /// Returns true (1) if this object and |that| object have the same underlying
        /// data.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool IsSame(CfrBinaryValue that)
        {
            var call = new CfxBinaryValueIsSameRenderProcessCall();

            call.@this = proxyId;
            call.that  = CfrObject.Unwrap(that);
            call.RequestExecution(this);
            return(call.__retval);
        }
Esempio n. 14
0
        /// <summary>
        /// Returns true (1) if this object and |that| object have an equivalent
        /// underlying value but are not necessarily the same object.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool IsEqual(CfrBinaryValue that)
        {
            var call = new CfxBinaryValueIsEqualRemoteCall();

            call.@this = RemotePtr.ptr;
            call.that  = CfrObject.Unwrap(that).ptr;
            call.RequestExecution(RemotePtr.connection);
            return(call.__retval);
        }
Esempio n. 15
0
        /// <summary>
        /// Returns the value at the specified index as type binary. The returned value
        /// will reference existing data.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue GetBinary(int index)
        {
            var call = new CfxListValueGetBinaryRenderProcessCall();

            call.@this = proxyId;
            call.index = index;
            call.RequestExecution(this);
            return(CfrBinaryValue.Wrap(call.__retval));
        }
Esempio n. 16
0
        /// <summary>
        /// Returns the value at the specified key as type binary. The returned value
        /// will reference existing data.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public CfrBinaryValue GetBinary(string key)
        {
            var call = new CfxDictionaryValueGetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            call.key   = key;
            call.RequestExecution(RemotePtr.connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(call.__retval)));
        }
Esempio n. 17
0
        /// <summary>
        /// Sets the value at the specified key as type binary. Returns true (1) 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>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(string key, CfrBinaryValue value)
        {
            var call = new CfxDictionaryValueSetBinaryRenderProcessCall();

            call.self  = CfrObject.Unwrap(this);
            call.key   = key;
            call.value = CfrObject.Unwrap(value);
            call.RequestExecution(this);
            return(call.__retval);
        }
Esempio n. 18
0
        /// <summary>
        /// Sets the value at the specified index as type binary. Returns true (1) 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>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(int index, CfrBinaryValue value)
        {
            var call = new CfxListValueSetBinaryRenderProcessCall();

            call.self  = CfrObject.Unwrap(this);
            call.index = index;
            call.value = CfrObject.Unwrap(value);
            call.RequestExecution(this);
            return(call.__retval);
        }
Esempio n. 19
0
        /// <summary>
        /// Sets the underlying value as type binary. Returns true (1) if the value was
        /// set successfully. This object keeps a reference to |value| and ownership of
        /// the underlying data remains unchanged.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool SetBinary(CfrBinaryValue value)
        {
            var connection = RemotePtr.connection;
            var call       = new CfxValueSetBinaryRemoteCall();

            call.@this = RemotePtr.ptr;
            if (!CfrObject.CheckConnection(value, connection))
            {
                throw new ArgumentException("Render process connection mismatch.", "value");
            }
            call.value = CfrObject.Unwrap(value).ptr;
            call.RequestExecution(connection);
            return(call.__retval);
        }
Esempio n. 20
0
        /// <summary>
        /// Returns true (1) if this object and |that| object have an equivalent
        /// underlying value but are not necessarily the same object.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public bool IsEqual(CfrBinaryValue that)
        {
            var connection = RemotePtr.connection;
            var call       = new CfxBinaryValueIsEqualRemoteCall();

            call.@this = RemotePtr.ptr;
            if (!CfrObject.CheckConnection(that, connection))
            {
                throw new ArgumentException("Render process connection mismatch.", "that");
            }
            call.that = CfrObject.Unwrap(that).ptr;
            call.RequestExecution(connection);
            return(call.__retval);
        }
Esempio n. 21
0
        /// <summary>
        /// Creates a new object that is not owned by any other object. The specified
        /// |data| will be copied.
        /// </summary>
        /// <remarks>
        /// See also the original CEF documentation in
        /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
        /// </remarks>
        public static CfrBinaryValue Create(RemotePtr data, ulong dataSize)
        {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call       = new CfxBinaryValueCreateRemoteCall();

            if (data.connection != connection)
            {
                throw new ArgumentException("Render process connection mismatch.", "data");
            }
            call.data     = data.ptr;
            call.dataSize = dataSize;
            call.RequestExecution(connection);
            return(CfrBinaryValue.Wrap(new RemotePtr(connection, call.__retval)));
        }
Esempio n. 22
0
        internal static CfrBinaryValue Wrap(IntPtr proxyId)
        {
            if (proxyId == IntPtr.Zero)
            {
                return(null);
            }
            var weakCache = CfxRemoteCallContext.CurrentContext.connection.weakCache;

            lock (weakCache) {
                var cfrObj = (CfrBinaryValue)weakCache.Get(proxyId);
                if (cfrObj == null)
                {
                    cfrObj = new CfrBinaryValue(proxyId);
                    weakCache.Add(proxyId, cfrObj);
                }
                return(cfrObj);
            }
        }
Esempio n. 23
0
        internal static CfrBinaryValue Wrap(RemotePtr remotePtr)
        {
            if (remotePtr == RemotePtr.Zero)
            {
                return(null);
            }
            var weakCache = CfxRemoteCallContext.CurrentContext.connection.weakCache;

            lock (weakCache) {
                var cfrObj = (CfrBinaryValue)weakCache.Get(remotePtr.ptr);
                if (cfrObj == null)
                {
                    cfrObj = new CfrBinaryValue(remotePtr);
                    weakCache.Add(remotePtr.ptr, cfrObj);
                }
                return(cfrObj);
            }
        }
Esempio n. 24
0
 internal static CfrBinaryValue Wrap(IntPtr proxyId)
 {
     if(proxyId == IntPtr.Zero) return null;
     var weakCache = CfxRemoteCallContext.CurrentContext.connection.weakCache;
     lock(weakCache) {
         var cfrObj = (CfrBinaryValue)weakCache.Get(proxyId);
         if(cfrObj == null) {
             cfrObj = new CfrBinaryValue(proxyId);
             weakCache.Add(proxyId, cfrObj);
         }
         return cfrObj;
     }
 }
Esempio n. 25
0
 /// <summary>
 /// Returns true (1) if this object and |that| object have the same underlying
 /// data.
 /// </summary>
 /// <remarks>
 /// See also the original CEF documentation in
 /// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_values_capi.h">cef/include/capi/cef_values_capi.h</see>.
 /// </remarks>
 public bool IsSame(CfrBinaryValue that)
 {
     var call = new CfxBinaryValueIsSameRenderProcessCall();
     call.self = CfrObject.Unwrap(this);
     call.that = CfrObject.Unwrap(that);
     call.RequestExecution(this);
     return call.__retval;
 }