refactor: use standard naming for enum class values (#38232)
This commit is contained in:
parent
88a9962e22
commit
0149ae72e6
5 changed files with 17 additions and 17 deletions
|
@ -384,7 +384,7 @@ void NativeWindowMac::Close() {
|
|||
return;
|
||||
}
|
||||
|
||||
if (fullscreen_transition_state() != FullScreenTransitionState::NONE) {
|
||||
if (fullscreen_transition_state() != FullScreenTransitionState::kNone) {
|
||||
SetHasDeferredWindowClose(true);
|
||||
return;
|
||||
}
|
||||
|
@ -607,7 +607,7 @@ void NativeWindowMac::SetFullScreen(bool fullscreen) {
|
|||
// that it's possible to call it while a fullscreen transition is currently
|
||||
// in process. This can create weird behavior (incl. phantom windows),
|
||||
// so we want to schedule a transition for when the current one has completed.
|
||||
if (fullscreen_transition_state() != FullScreenTransitionState::NONE) {
|
||||
if (fullscreen_transition_state() != FullScreenTransitionState::kNone) {
|
||||
if (!pending_transitions_.empty()) {
|
||||
bool last_pending = pending_transitions_.back();
|
||||
// Only push new transitions if they're different than the last transition
|
||||
|
@ -632,8 +632,8 @@ void NativeWindowMac::SetFullScreen(bool fullscreen) {
|
|||
// or windowWillExitFullScreen are invoked, and so a potential transition
|
||||
// could be dropped.
|
||||
fullscreen_transition_state_ = fullscreen
|
||||
? FullScreenTransitionState::ENTERING
|
||||
: FullScreenTransitionState::EXITING;
|
||||
? FullScreenTransitionState::kEntering
|
||||
: FullScreenTransitionState::kExiting;
|
||||
|
||||
[window_ toggleFullScreenMode:nil];
|
||||
}
|
||||
|
@ -742,7 +742,7 @@ void NativeWindowMac::SetResizable(bool resizable) {
|
|||
|
||||
bool NativeWindowMac::IsResizable() {
|
||||
bool in_fs_transition =
|
||||
fullscreen_transition_state() != FullScreenTransitionState::NONE;
|
||||
fullscreen_transition_state() != FullScreenTransitionState::kNone;
|
||||
bool has_rs_mask = HasStyleMask(NSWindowStyleMaskResizable);
|
||||
return has_rs_mask && !IsFullscreen() && !in_fs_transition;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue