mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: simplify NativeWindow::FullScreenTransitionState (#46929)
* refactor: make NativeWindow::fullscreen_transition_state_ private Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: add NativeWindow::is_transitioning_fullscreen() helper Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: remove unused NativeWindow::fullscreen_transition_state() Co-authored-by: Charles Kerr <charles@charleskerr.com> * refactor: replace NativeWindow::set_fullscreen_transition_state() with NativeWindow::set_is_transitioning_fullscreen() refactor: remove unused NativeWindow::FullScreenTransitionState Co-authored-by: Charles Kerr <charles@charleskerr.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Charles Kerr <charles@charleskerr.com>
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user