yueying0083 / javachromiumembedded

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

Added CefWebPluginManager for dealing with WebPlugins #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This issue is an enhancement of JCEF - STEP 3  (patch 10 of 10) 
--------------------------------------------------------------
Please see issue 55 for the overall plan.

Purpose: Added CefWebPluginManager for dealing with WebPlugins

This patch relies on the attached patch file of  issue #88. 
If you want to try these code changes, add the patch of issue #88 first and 
afterwards add the patch file attached to this issue. Otherwise you'll get some 
patch-errors.

Brief overview (only important changes are listed):
---------------------------------------------------
This patch adds the following classes to JCEF:
  package org.cef.callback
    CefWebPluginInfoVisitor
    CefWebPluginUnstableCallback

  package org.cef.network
    CefWebPluginInfo
    CefWebPluginManager

And adds the following methods to existing classes:
  packacge org.cef.handler
    boolean onBeforePluginLoad(CefBrowser browser, String url, String policyUrl, CefWebPluginInfo info);
    void onPluginCrashed(CefBrowser browser, String pluginPath);
    void onRenderProcessTerminated(CefBrowser browser, TerminationStatus status);

Added Tests to MainFrame example application:
---------------------------------------------
- Menu > File > Show Plugins
  -> Shows a list of all loaded web plugins. You can remove selected plugins.

Known Issue:
------------
(1) There seems to be a bug within the CEF implementation because removing 
plugins by calling
the native method CefRemoveWebPluginPath() doesn't work.
See 
http://www.magpcss.org/ceforum/viewtopic.php?f=6&t=6149&p=21075&hilit=CefRemoveW
ebPluginPath#p21075 for further details.

(2) The method onBeforePluginLoad is never called by CEF and therefore never 
within JCEF
See 
https://code.google.com/p/chromiumembedded/issues/detail?id=1211&q=OnBeforePlugi
nLoad
If this issue will be fixed, it will work in JCEF as well.

Original issue reported on code.google.com by k...@censhare.de on 14 May 2014 at 2:18

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 23 May 2014 at 6:31

GoogleCodeExporter commented 9 years ago
Added in revision 70.

Original comment by magreenb...@gmail.com on 23 May 2014 at 8:04