mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Add support for absolute positioned overlay views.
To test: Run `cefclient.exe --use-views --hide-frame --hide-controls` Add `--enable-chrome-runtime` for the same behavior using the Chrome location bar instead of a text field.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// implementations. See the translator.README.txt file in the tools directory
|
||||
// for more information.
|
||||
//
|
||||
// $hash=fc962d2832eeb3dee99e9a201f234d4a4b4d6f0f$
|
||||
// $hash=10978e1021326cd0f21f84c0b35350e846b47fe9$
|
||||
//
|
||||
|
||||
#include "libcef_dll/ctocpp/views/button_delegate_ctocpp.h"
|
||||
@ -231,6 +231,27 @@ void CefButtonDelegateCToCpp::OnWindowChanged(CefRefPtr<CefView> view,
|
||||
_struct->on_window_changed(_struct, CefViewCppToC::Wrap(view), added);
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefButtonDelegateCToCpp::OnLayoutChanged(CefRefPtr<CefView> view,
|
||||
const CefRect& new_bounds) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
||||
cef_view_delegate_t* _struct =
|
||||
reinterpret_cast<cef_view_delegate_t*>(GetStruct());
|
||||
if (CEF_MEMBER_MISSING(_struct, on_layout_changed))
|
||||
return;
|
||||
|
||||
// AUTO-GENERATED CONTENT - DELETE THIS COMMENT BEFORE MODIFYING
|
||||
|
||||
// Verify param: view; type: refptr_diff
|
||||
DCHECK(view.get());
|
||||
if (!view.get())
|
||||
return;
|
||||
|
||||
// Execute
|
||||
_struct->on_layout_changed(_struct, CefViewCppToC::Wrap(view), &new_bounds);
|
||||
}
|
||||
|
||||
NO_SANITIZE("cfi-icall")
|
||||
void CefButtonDelegateCToCpp::OnFocus(CefRefPtr<CefView> view) {
|
||||
shutdown_checker::AssertNotShutdown();
|
||||
|
Reference in New Issue
Block a user