mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-09 00:28:59 +01:00
Allow empty |client| parameter to CreateBrowser and CreateBrowserSync.
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@949 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
b66a48bb1c
commit
9accdc8b01
@ -219,7 +219,7 @@ class CefBrowserHost : public virtual CefBase {
|
|||||||
// will be created on the UI thread. This method can be called on any browser
|
// will be created on the UI thread. This method can be called on any browser
|
||||||
// process thread and will not block.
|
// process thread and will not block.
|
||||||
///
|
///
|
||||||
/*--cef(optional_param=url)--*/
|
/*--cef(optional_param=client,optional_param=url)--*/
|
||||||
static bool CreateBrowser(const CefWindowInfo& windowInfo,
|
static bool CreateBrowser(const CefWindowInfo& windowInfo,
|
||||||
CefRefPtr<CefClient> client,
|
CefRefPtr<CefClient> client,
|
||||||
const CefString& url,
|
const CefString& url,
|
||||||
@ -230,7 +230,7 @@ class CefBrowserHost : public virtual CefBase {
|
|||||||
// |windowInfo|. This method can only be called on the browser process UI
|
// |windowInfo|. This method can only be called on the browser process UI
|
||||||
// thread.
|
// thread.
|
||||||
///
|
///
|
||||||
/*--cef(optional_param=url)--*/
|
/*--cef(optional_param=client,optional_param=url)--*/
|
||||||
static CefRefPtr<CefBrowser> CreateBrowserSync(
|
static CefRefPtr<CefBrowser> CreateBrowserSync(
|
||||||
const CefWindowInfo& windowInfo,
|
const CefWindowInfo& windowInfo,
|
||||||
CefRefPtr<CefClient> client,
|
CefRefPtr<CefClient> client,
|
||||||
|
@ -28,15 +28,11 @@ CEF_EXPORT int cef_browser_host_create_browser(
|
|||||||
DCHECK(windowInfo);
|
DCHECK(windowInfo);
|
||||||
if (!windowInfo)
|
if (!windowInfo)
|
||||||
return 0;
|
return 0;
|
||||||
// Verify param: client; type: refptr_diff
|
|
||||||
DCHECK(client);
|
|
||||||
if (!client)
|
|
||||||
return 0;
|
|
||||||
// Verify param: settings; type: struct_byref_const
|
// Verify param: settings; type: struct_byref_const
|
||||||
DCHECK(settings);
|
DCHECK(settings);
|
||||||
if (!settings)
|
if (!settings)
|
||||||
return 0;
|
return 0;
|
||||||
// Unverified params: url
|
// Unverified params: client, url
|
||||||
|
|
||||||
// Translate param: windowInfo; type: struct_byref_const
|
// Translate param: windowInfo; type: struct_byref_const
|
||||||
CefWindowInfo windowInfoObj;
|
CefWindowInfo windowInfoObj;
|
||||||
@ -67,15 +63,11 @@ CEF_EXPORT cef_browser_t* cef_browser_host_create_browser_sync(
|
|||||||
DCHECK(windowInfo);
|
DCHECK(windowInfo);
|
||||||
if (!windowInfo)
|
if (!windowInfo)
|
||||||
return NULL;
|
return NULL;
|
||||||
// Verify param: client; type: refptr_diff
|
|
||||||
DCHECK(client);
|
|
||||||
if (!client)
|
|
||||||
return NULL;
|
|
||||||
// Verify param: settings; type: struct_byref_const
|
// Verify param: settings; type: struct_byref_const
|
||||||
DCHECK(settings);
|
DCHECK(settings);
|
||||||
if (!settings)
|
if (!settings)
|
||||||
return NULL;
|
return NULL;
|
||||||
// Unverified params: url
|
// Unverified params: client, url
|
||||||
|
|
||||||
// Translate param: windowInfo; type: struct_byref_const
|
// Translate param: windowInfo; type: struct_byref_const
|
||||||
CefWindowInfo windowInfoObj;
|
CefWindowInfo windowInfoObj;
|
||||||
|
@ -24,11 +24,7 @@ bool CefBrowserHost::CreateBrowser(const CefWindowInfo& windowInfo,
|
|||||||
const CefBrowserSettings& settings) {
|
const CefBrowserSettings& settings) {
|
||||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||||
|
|
||||||
// Verify param: client; type: refptr_diff
|
// Unverified params: client, url
|
||||||
DCHECK(client.get());
|
|
||||||
if (!client.get())
|
|
||||||
return false;
|
|
||||||
// Unverified params: url
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
int _retval = cef_browser_host_create_browser(
|
int _retval = cef_browser_host_create_browser(
|
||||||
@ -46,11 +42,7 @@ CefRefPtr<CefBrowser> CefBrowserHost::CreateBrowserSync(
|
|||||||
const CefString& url, const CefBrowserSettings& settings) {
|
const CefString& url, const CefBrowserSettings& settings) {
|
||||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||||
|
|
||||||
// Verify param: client; type: refptr_diff
|
// Unverified params: client, url
|
||||||
DCHECK(client.get());
|
|
||||||
if (!client.get())
|
|
||||||
return NULL;
|
|
||||||
// Unverified params: url
|
|
||||||
|
|
||||||
// Execute
|
// Execute
|
||||||
cef_browser_t* _retval = cef_browser_host_create_browser_sync(
|
cef_browser_t* _retval = cef_browser_host_create_browser_sync(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user