fix: update NSView radii on fullscreen transition (#29084)
This commit is contained in:
parent
dca3b41ee6
commit
821c81f5ee
2 changed files with 48 additions and 31 deletions
|
@ -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_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue