mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
chrome: Support usage of the Chrome toolbar from Views (see issue #2969)
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=60dd60fe326607167c50e97f55a673151c1dcc69$
|
||||
// $hash=912a0807db8bc1405188d61961545cc8e540aacf$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/views/browser_view_ctocpp.h"
|
||||
@ -93,6 +93,23 @@ CefRefPtr<CefBrowser> CefBrowserViewCToCpp::GetBrowser() {
|
||||
return CefBrowserCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
CefRefPtr<CefView> CefBrowserViewCToCpp::GetChromeToolbar() {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_browser_view_t* _struct = GetStruct();
|
||||
if (CEF_MEMBER_MISSING(_struct, get_chrome_toolbar))
|
||||
return nullptr;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Execute
|
||||
cef_view_t* _retval = _struct->get_chrome_toolbar(_struct);
|
||||
|
||||
// Return type: refptr_same
|
||||
return CefViewCToCpp::Wrap(_retval);
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefBrowserViewCToCpp::SetPreferAccelerators(bool prefer_accelerators) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
Reference in New Issue
Block a user