refactor: simplify NativeWindow::FullScreenTransitionState
(#46918)
* refactor: make NativeWindow::fullscreen_transition_state_ private * refactor: add NativeWindow::is_transitioning_fullscreen() helper * refactor: remove unused NativeWindow::fullscreen_transition_state() * refactor: replace NativeWindow::set_fullscreen_transition_state() with NativeWindow::set_is_transitioning_fullscreen() refactor: remove unused NativeWindow::FullScreenTransitionState
This commit is contained in:
parent
1f4f1b4afc
commit
2e2776611f
4 changed files with 18 additions and 25 deletions
|
@ -3961,8 +3961,7 @@ bool WebContents::IsFullscreenForTabOrPending(
|
|||
if (!owner_window())
|
||||
return is_html_fullscreen();
|
||||
|
||||
bool in_transition = owner_window()->fullscreen_transition_state() !=
|
||||
NativeWindow::FullScreenTransitionState::kNone;
|
||||
const bool in_transition = owner_window()->is_transitioning_fullscreen();
|
||||
bool is_html_transition = owner_window()->fullscreen_transition_type() ==
|
||||
NativeWindow::FullScreenTransitionType::kHTML;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue