mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
views: Support configuration of initial window show state
Known issues: - Exiting full-screen mode currently crashes with the Chrome runtime (see issue #3182).
This commit is contained in:
@@ -218,9 +218,15 @@ void CefBrowserPlatformDelegateViews::SendTouchEvent(
|
||||
}
|
||||
|
||||
void CefBrowserPlatformDelegateViews::SendFocusEvent(bool setFocus) {
|
||||
// Will result in a call to WebContents::Focus().
|
||||
if (setFocus && browser_view_->root_view())
|
||||
// Will activate the Widget and result in a call to WebContents::Focus().
|
||||
if (setFocus && browser_view_->root_view()) {
|
||||
if (auto widget = GetWindowWidget()) {
|
||||
// Don't activate a minimized Widget, or it will be shown.
|
||||
if (widget->IsMinimized())
|
||||
return;
|
||||
}
|
||||
browser_view_->root_view()->RequestFocus();
|
||||
}
|
||||
}
|
||||
|
||||
gfx::Point CefBrowserPlatformDelegateViews::GetScreenPoint(
|
||||
|
Reference in New Issue
Block a user