mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
cefclient: Don't create multiple DevTools windows (issue #1920)
This commit is contained in:
@@ -375,11 +375,7 @@ void CefBrowserHostCToCpp::ShowDevTools(const CefWindowInfo& windowInfo,
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: client; type: refptr_diff
|
||||
DCHECK(client.get());
|
||||
if (!client.get())
|
||||
return;
|
||||
// Unverified params: inspect_element_at
|
||||
// Unverified params: windowInfo, client, settings, inspect_element_at
|
||||
|
||||
// Execute
|
||||
_struct->show_dev_tools(_struct,
|
||||
@@ -400,6 +396,20 @@ void CefBrowserHostCToCpp::CloseDevTools() {
|
||||
_struct->close_dev_tools(_struct);
|
||||
}
|
||||
|
||||
bool CefBrowserHostCToCpp::HasDevTools() {
|
||||
cef_browser_host_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, has_dev_tools))
|
||||
return false;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
int _retval = _struct->has_dev_tools(_struct);
|
||||
|
||||
// Return type: bool
|
||||
return _retval?true:false;
|
||||
}
|
||||
|
||||
void CefBrowserHostCToCpp::GetNavigationEntries(
|
||||
CefRefPtr<CefNavigationEntryVisitor> visitor, bool current_only) {
|
||||
cef_browser_host_t* _struct = GetStruct();
|
||||
|
Reference in New Issue
Block a user