private void on_render_process_thread_created(cef_browser_process_handler_t *self, cef_list_value_t *extra_info)
        {
            CheckSelf(self);

            var mExtraInfo = CefListValue.FromNative(extra_info);

            OnRenderProcessThreadCreated(mExtraInfo);
            mExtraInfo.Dispose();
        }
예제 #2
0
        /// <summary>
        /// Returns the value at the specified key as type list.
        /// </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));
            }
        }
예제 #3
0
        /// <summary>
        /// Sets the value at the specified key as type list. Returns true if the
        /// value was set successfully. After calling this method the |value| object
        /// will no longer be valid. 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 on the browser process IO thread after the main thread has been
 /// created for a new render process. Provides an opportunity to specify extra
 /// information that will be passed to
 /// CefRenderProcessHandler::OnRenderThreadCreated() in the render process. Do
 /// not keep a reference to |extra_info| outside of this method.
 /// </summary>
 protected virtual void OnRenderProcessThreadCreated(CefListValue extraInfo)
 {
 }
예제 #5
0
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true if the
 /// value was set successfully. After calling this method the |value| object
 /// will no longer be valid. 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>
        /// Sets the value at the specified key as type list. Returns true if the
        /// value was set successfully. After calling this method the |value| object
        /// will no longer be valid. 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;
            }
        }
예제 #7
0
 /// <summary>
 /// Returns a writable copy of this object.
 /// </summary>
 public CefListValue Copy()
 {
     return(CefListValue.FromNative(
                cef_list_value_t.copy(_self)
                ));
 }
예제 #8
0
 /// <summary>
 /// Sets the value at the specified index as type list. Returns true if the
 /// value was set successfully. After calling this method the |value| object
 /// will no longer be valid. 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);
 }
예제 #9
0
 /// <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()
                ));
 }
예제 #10
0
 /// <summary>
 /// Returns the value at the specified index as type list.
 /// </summary>
 public CefListValue GetList(int index)
 {
     return(CefListValue.FromNativeOrNull(
                cef_list_value_t.get_list(_self, index)
                ));
 }
 /// <summary>
 /// Called on the browser process IO thread after the main thread has been
 /// created for a new render process. Provides an opportunity to specify extra
 /// information that will be passed to
 /// CefRenderProcessHandler::OnRenderThreadCreated() in the render process. Do
 /// not keep a reference to |extra_info| outside of this method.
 /// </summary>
 protected virtual void OnRenderProcessThreadCreated(CefListValue extraInfo)
 {
 }