sumetENG45 / javachromiumembedded

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

Poor command-line switches usage documentation #154

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Try to find a way to use Chromium command-line switches with JCEF

What is the expected output? What do you see instead?
I would expect a code snip with a basic example, instead, all documentation 
refers to CEF and has no examples, just lists of compatible commands and so... 

What version of the product are you using? On what operating system?
Version 3, Windows

Please provide any additional information below.
I posted a question here as well: 
http://stackoverflow.com/questions/28544562/java-chromium-embedded-framework-jce
f-usage-of-chromium-command-lines

Original issue reported on code.google.com by xaviergi...@gmail.com on 16 Feb 2015 at 3:50

GoogleCodeExporter commented 8 years ago
This is an issue board. You can post your questions regarding JCEF here:
http://www.magpcss.org/ceforum/viewforum.php?f=17&sid=f61b0bfb407ff4c95829ca67f3
0914cd

Anyway, to forward CEF and/or chromium command-line switches to CEF, just pass 
over an array of Strings to CefApp at startup. Example:

public static void main(String [] args) {

    [...]

    ArrayList<String> mySwitches = new ArrayList<>();
    mySwitches.add("--persist-session-cookies=true");
    CefApp app = CefApp.getInstance(mySwitches.toArray(new String[mySwitches.size()]));
    CefClient client = app.createClient();
    CefBrowser browser = client.createBrowser("http://www.google.com", false, false);

    [...]
}

Regards,
Kai

Original comment by k...@censhare.de on 20 Feb 2015 at 9:27

GoogleCodeExporter commented 8 years ago
JCEF is transitioning from Google Code to Bitbucket project hosting. If you 
would like to continue receiving notifications on this issue please add 
yourself as a Watcher at the new location: 
https://bitbucket.org/chromiumembedded/java-cef/issue/154

Original comment by magreenb...@gmail.com on 18 Mar 2015 at 6:02