mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add global and per-browser settings (issue #145).
This exposes the following new capabilities: - Ability to disable drag & drop from other windows. - Ability to specify additional plugin search paths. - Ability to customize WebPreferences values, including enabling cross-site scripting. - Ability to set User-Agent or product version. - Ability to set default locale. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@144 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@ -62,15 +62,20 @@ int APIENTRY wWinMain(HINSTANCE hInstance,
|
||||
if(_wgetcwd(szWorkingDir, MAX_PATH) == NULL)
|
||||
szWorkingDir[0] = 0;
|
||||
|
||||
CefSettings settings;
|
||||
CefBrowserSettings browserDefaults;
|
||||
|
||||
#ifdef TEST_SINGLE_THREADED_MESSAGE_LOOP
|
||||
// Initialize the CEF with messages processed using the current application's
|
||||
// message loop.
|
||||
CefInitialize(false, std::wstring());
|
||||
settings.multi_threaded_message_loop = false;
|
||||
#else
|
||||
// Initialize the CEF with messages processed using a separate UI thread.
|
||||
CefInitialize(true, std::wstring());
|
||||
settings.multi_threaded_message_loop = true;
|
||||
#endif
|
||||
|
||||
CefInitialize(settings, browserDefaults);
|
||||
|
||||
// Register the internal client plugin.
|
||||
InitPluginTest();
|
||||
|
||||
|
Reference in New Issue
Block a user