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:
Charles Kerr 2025-05-05 09:28:29 -05:00 committed by GitHub
commit 2e2776611f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 25 deletions

View file

@ -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;