pottermm / javachromiumembedded

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

Renaming CefContext to CefApp, make it to the JCEF entry point by using the singleton pattern. #52

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This issue is an enhancement of JCEF (patch 8 of 10) 
----------------------------------------------------
Purpose: Renaming CefContext to CefApp, make it to the JCEF
entry point by using the singleton pattern. Extending jcef 
by CefAppHandler and CefCommandLine for handling command line args in java. 

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

This issue is divided into two patch files (8a and 8b).
With the first patch (8a), the class CefContext is renamed into CefApp.

With the second patch (8b), the class CefApp is changed to be 
accessible by using the singleton pattern. All methods, previously
marked as static, are standard class methods. 

To handle commandline attributes in java the method
- onBeforeCommandLineProcessing() 
from CefApp is forwarded to java as class CefAppHandler.

CefApp is inherited from CefAppHandlerAdapter which provides a
default implementation of the commandline processing.

Beside this, the methods isLinux(), isWindows() and isMacintosh()
are moved to their own class "OS".

Please see attached patch file for further informations.

Original issue reported on code.google.com by k...@censhare.de on 8 Mar 2014 at 8:00

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 12 Mar 2014 at 9:50

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 12 Mar 2014 at 9:52

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 12 Mar 2014 at 9:53

GoogleCodeExporter commented 9 years ago
Added in revision 39.

Original comment by magreenb...@gmail.com on 28 Mar 2014 at 12:55