- Expose command line parsing support with a new CefCommandLine class (issue #422).

- cefclient: Add the ability to specify CefSettings and CefBrowserSettings values on the command line.

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@378 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2011-11-14 23:43:52 +00:00
parent 0e4c6a648c
commit cc175e4fbe
21 changed files with 1383 additions and 43 deletions

View File

@ -323,7 +323,14 @@ int main(int argc, char *argv[]) {
gtk_init(&argc, &argv);
// Parse command line arguments.
AppInitCommandLine(argc, argv);
CefSettings settings;
// Populate the settings based on command line arguments.
AppGetSettings(settings);
CefInitialize(settings);
// Register the V8 extension handler.
@ -393,7 +400,10 @@ int main(int argc, char *argv[]) {
// Create the browser view.
CefWindowInfo window_info;
CefBrowserSettings browserSettings;
// Populate the settings based on command line arguments.
AppGetBrowserSettings(browserSettings);
window_info.SetAsChild(vbox);
CefBrowser::CreateBrowserSync(window_info,