Ejemplo n.º 1
0
        /// <summary>
        /// The connect signal.
        /// </summary>
        /// <param name="window">
        /// The window.
        /// </param>
        /// <param name="name">
        /// The name.
        /// </param>
        /// <param name="callback">
        /// The callback.
        /// </param>
        /// <param name="key">
        /// The key.
        /// </param>
        /// <param name="data">
        /// The data.
        /// </param>
        /// <param name="flags">
        /// The flags.
        /// </param>
        internal static void ConnectSignal(IntPtr window, string name, Delegate callback, int key, IntPtr data, int flags)
        {
            if (CefRuntime.Platform == CefRuntimePlatform.Windows)
            {
                Win.g_signal_connect_data(window, name, callback, key, data, flags);
            }

            if (CefRuntime.Platform == CefRuntimePlatform.Linux)
            {
                Linux.g_signal_connect_data(window, name, callback, key, data, flags);
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// The connect signal.
        /// </summary>
        /// <param name="window">
        /// The window.
        /// </param>
        /// <param name="name">
        /// The name.
        /// </param>
        /// <param name="callback">
        /// The callback.
        /// </param>
        /// <param name="key">
        /// The key.
        /// </param>
        /// <param name="data">
        /// The data.
        /// </param>
        /// <param name="flags">
        /// The flags.
        /// </param>
        internal static uint ConnectSignal(IntPtr window, string name, Delegate callback, int key, IntPtr data, int flags)
        {
            switch (CefRuntime.Platform)
            {
            case CefRuntimePlatform.Windows:
                return(Win.g_signal_connect_data(window, name, callback, key, data, flags));

            case CefRuntimePlatform.Linux:
                return(Linux.g_signal_connect_data(window, name, callback, key, data, flags));

            case CefRuntimePlatform.MacOSX:
            default:
                return(0);
            }
        }