mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Linux: Remove GTK+ dependency and add initial Aura/X11 implementation (issue #1258)
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1708 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -319,8 +319,8 @@ CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
|
||||
}
|
||||
|
||||
CefRefPtr<CefBrowserHostImpl> browser =
|
||||
CefBrowserHostImpl::Create(windowInfo, client, url, settings, NULL, false,
|
||||
request_context);
|
||||
CefBrowserHostImpl::Create(windowInfo, client, url, settings,
|
||||
kNullWindowHandle, false, request_context);
|
||||
return browser.get();
|
||||
}
|
||||
|
||||
@@ -362,7 +362,7 @@ CefRefPtr<CefBrowserHostImpl> CefBrowserHostImpl::CreateInternal(
|
||||
DCHECK(browser_info.get());
|
||||
|
||||
// If |opener| is non-NULL it must be a popup window.
|
||||
DCHECK(opener == NULL || browser_info->is_popup());
|
||||
DCHECK(opener == kNullWindowHandle || browser_info->is_popup());
|
||||
|
||||
if (!web_contents) {
|
||||
CefBrowserContext* browser_context = NULL;
|
||||
@@ -1738,7 +1738,7 @@ void CefBrowserHostImpl::WebContentsCreated(
|
||||
content::RenderViewHost* view_host = new_contents->GetRenderViewHost();
|
||||
content::RenderFrameHost* main_frame_host = new_contents->GetMainFrame();
|
||||
|
||||
CefWindowHandle opener = NULL;
|
||||
CefWindowHandle opener = kNullWindowHandle;
|
||||
scoped_refptr<CefBrowserInfo> info =
|
||||
CefContentBrowserClient::Get()->GetOrCreateBrowserInfo(
|
||||
view_host->GetProcess()->GetID(),
|
||||
@@ -2161,6 +2161,9 @@ CefBrowserHostImpl::CefBrowserHostImpl(
|
||||
#if defined(USE_AURA)
|
||||
window_widget_ = NULL;
|
||||
#endif
|
||||
#if defined(USE_X11)
|
||||
window_x11_ = NULL;
|
||||
#endif
|
||||
|
||||
DCHECK(!browser_info_->browser().get());
|
||||
browser_info_->set_browser(this);
|
||||
|
Reference in New Issue
Block a user