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:
@ -12,6 +12,7 @@
|
||||
#include "libcef/browser/views/view_util.h"
|
||||
#include "libcef/browser/views/window_view.h"
|
||||
|
||||
#include "base/i18n/rtl.h"
|
||||
#include "ui/base/test/ui_controls.h"
|
||||
#include "ui/compositor/compositor.h"
|
||||
#include "ui/gfx/geometry/rect.h"
|
||||
@ -278,6 +279,15 @@ CefRefPtr<CefImage> CefWindowImpl::GetWindowAppIcon() {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
CefRefPtr<CefOverlayController> CefWindowImpl::AddOverlayView(
|
||||
CefRefPtr<CefView> view,
|
||||
cef_docking_mode_t docking_mode) {
|
||||
CEF_REQUIRE_VALID_RETURN(nullptr);
|
||||
if (root_view())
|
||||
return root_view()->AddOverlayView(view, docking_mode);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
void CefWindowImpl::GetDebugInfo(base::DictionaryValue* info,
|
||||
bool include_children) {
|
||||
ParentClass::GetDebugInfo(info, include_children);
|
||||
|
Reference in New Issue
Block a user