Esempio n. 1
0
        /// <summary>
        /// Returns information for web plugin with the specified name. This
        /// function must be called on the UI thread.
        /// </summary>
        public static CefWebPluginInfo GetWebPluginInfo(string name)
        {
            fixed(char *str = name)
            {
                var nName         = new cef_string_t(str, name != null ? name.Length : 0);
                var webPluginInfo = NativeMethods.cef_get_web_plugin_info_byname(&nName);

                return(CefWebPluginInfo.FromOrDefault(webPluginInfo));
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Returns information for web plugin at the specified zero-based index.
        /// This function must be called on the UI thread.
        /// </summary>
        public static CefWebPluginInfo GetWebPluginInfo(int index)
        {
            var webPluginInfo = NativeMethods.cef_get_web_plugin_info(index);

            return(CefWebPluginInfo.FromOrDefault(webPluginInfo));
        }