chore: implement WebContentsDelegate::GetFullscreenState
(#38141)
Refs https://chromium-review.googlesource.com/c/chromium/src/+/4255184
This commit is contained in:
parent
7f5364f98d
commit
ee1e6aab3e
2 changed files with 8 additions and 0 deletions
|
@ -3759,6 +3759,12 @@ bool WebContents::IsFullscreenForTabOrPending(
|
|||
return is_html_fullscreen() || (in_transition && is_html_transition);
|
||||
}
|
||||
|
||||
content::FullscreenState WebContents::GetFullscreenState(
|
||||
const content::WebContents* source) const {
|
||||
return exclusive_access_manager_->fullscreen_controller()->GetFullscreenState(
|
||||
source);
|
||||
}
|
||||
|
||||
bool WebContents::TakeFocus(content::WebContents* source, bool reverse) {
|
||||
if (source && source->GetOutermostWebContents() == source) {
|
||||
// If this is the outermost web contents and the user has tabbed or
|
||||
|
|
|
@ -696,6 +696,8 @@ class WebContents : public ExclusiveAccessContext,
|
|||
|
||||
// content::WebContentsDelegate
|
||||
bool IsFullscreenForTabOrPending(const content::WebContents* source) override;
|
||||
content::FullscreenState GetFullscreenState(
|
||||
const content::WebContents* web_contents) const override;
|
||||
bool TakeFocus(content::WebContents* source, bool reverse) override;
|
||||
content::PictureInPictureResult EnterPictureInPicture(
|
||||
content::WebContents* web_contents) override;
|
||||
|
|
Loading…
Reference in a new issue