alderlopez / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Add ability to directly retrieve plugin information #575

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add a C++ interface for directly retrieving plugin information. This allows for 
detection of plugin information (e.g. Flash version) without having to create a 
browser window.

Original issue reported on code.google.com by magreenb...@gmail.com on 20 Apr 2012 at 8:38

GoogleCodeExporter commented 9 years ago
Added to trunk/cef1 in revision 600.

Example usage:

CefRefPtr<CefWebPluginInfo> info = CefGetWebPluginInfo("Shockwave Flash");
if (info.get()) {
  // Flash is installed.
  CefString version = info->GetVersion();
}

Sample results of the |version| string on different platforms:

Win: 11,2,202,233
Mac: 11.2.202.228
Linux: 11.1 r102

Note that the CefGetWebPluginInfo() function must be called on the UI thread. 
See also the "Plugin Info" example in cefclient.

Original comment by magreenb...@gmail.com on 20 Apr 2012 at 8:42

GoogleCodeExporter commented 9 years ago
Added to branches in revision 601.

Original comment by magreenb...@gmail.com on 20 Apr 2012 at 9:16

GoogleCodeExporter commented 9 years ago
Added to CEF3 in revision 609.

Original comment by magreenb...@gmail.com on 27 Apr 2012 at 7:12