fix: update NSView radii on fullscreen transition (#29084)

This commit is contained in:
Shelley Vohr 2021-05-11 09:45:21 +02:00 committed by GitHub
parent dca3b41ee6
commit 821c81f5ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 48 additions and 31 deletions

View file

@ -161,6 +161,8 @@ class NativeWindowMac : public NativeWindow,
// Use a custom content view instead of Chromium's BridgedContentView.
void OverrideNSWindowContentView();
void UpdateVibrancyRadii(bool fullscreen);
// Set the attribute of NSWindow while work around a bug of zoom button.
void SetStyleMask(bool on, NSUInteger flag);
void SetCollectionBehavior(bool on, NSUInteger flag);
@ -271,6 +273,7 @@ class NativeWindowMac : public NativeWindow,
base::scoped_nsobject<NSColor> background_color_before_vibrancy_;
bool transparency_before_vibrancy_ = false;
std::string vibrancy_type_;
// The presentation options before entering simple fullscreen mode.
NSApplicationPresentationOptions simple_fullscreen_options_;