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:
parent
258762929f
commit
3c8d971c53
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