Example #1
0
        /// <summary>
        /// The create cef host.
        /// </summary>
        /// <param name="window">
        /// The window.
        /// </param>
        /// <returns>
        /// The <see cref="IntPtr"/>.
        /// </returns>
        internal static IntPtr CreateCefHost(IntPtr window)
        {
            IntPtr vBox = IntPtr.Zero;

            if (CefRuntime.Platform == CefRuntimePlatform.Windows)
            {
                vBox = Win.gtk_vbox_new(true, 0);
                Win.gtk_container_add(window, vBox);
            }

            if (CefRuntime.Platform == CefRuntimePlatform.Linux)
            {
                vBox = Linux.gtk_vbox_new(true, 0);
                Linux.gtk_container_add(window, vBox);
            }

            return(vBox);
        }