Exemple #1
0
        public static bool CreateUrl(CefUrlParts parts, out string url)
        {
            if (parts == null)
            {
                throw new ArgumentNullException("parts");
            }

            var n_parts = parts.ToNative();
            var n_url   = new cef_string_t();

            var result = libcef.create_url(&n_parts, &n_url) != 0;

            url = result ? cef_string_t.ToString(&n_url) : null;

            cef_urlparts_t.Clear(&n_parts);
            libcef.string_clear(&n_url);

            return(result);
        }