mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 248478.
- Add new CefSettings.windowless_rendering_enabled value that must be enabled when using windowless (off-screen) rendering. - Improve naming and documentation for CefWindowInfo members. - CefBeginTracing now completes asynchronously. - Rename CefEndTracingAsync to CefEndTracing. - Rename CefCompletionHandler to CefCompletionCallback. git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1592 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -826,22 +826,23 @@ class OSRTestHandler : public RoutingTestHandler,
|
||||
void CreateOSRBrowser(const CefString& url) {
|
||||
CefWindowInfo windowInfo;
|
||||
CefBrowserSettings settings;
|
||||
|
||||
const bool transparent = (test_type_ == OSR_TEST_TRANSPARENCY);
|
||||
|
||||
#if defined(OS_WIN)
|
||||
windowInfo.SetAsOffScreen(GetDesktopWindow());
|
||||
windowInfo.SetAsWindowless(GetDesktopWindow(), transparent);
|
||||
#elif defined(OS_MACOSX)
|
||||
// An actual vies is needed only for the ContextMenu test. The menu runner
|
||||
// checks if the view is not nil before showing the context menu.
|
||||
if (test_type_ == OSR_TEST_CONTEXT_MENU)
|
||||
windowInfo.SetAsOffScreen(osr_unittests::GetFakeView());
|
||||
windowInfo.SetAsWindowless(osr_unittests::GetFakeView(), transparent);
|
||||
else
|
||||
windowInfo.SetAsOffScreen(NULL);
|
||||
windowInfo.SetAsWindowless(NULL, transparent);
|
||||
#elif defined(OS_LINUX)
|
||||
windowInfo.SetAsOffScreen(NULL);
|
||||
windowInfo.SetAsWindowless(NULL, transparent);
|
||||
#else
|
||||
#error "Unsupported platform"
|
||||
#endif
|
||||
if (test_type_ == OSR_TEST_TRANSPARENCY)
|
||||
windowInfo.SetTransparentPainting(TRUE);
|
||||
CefBrowserHost::CreateBrowser(windowInfo, this, url, settings, NULL);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user