Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use NSVisualEffectMaterial* constants directly #22121

Merged
merged 1 commit into from Feb 11, 2020

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Feb 10, 2020

Description of Change

We wre previously static casting these because our minimum SDK was too low to directly use the constants, but now that we're on 10.15 we can use them directly, and so this PR updates them to do so.

cc @ckerr @jkleinsc @zcbenz

Checklist

Release Notes

Notes: none

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 10, 2020
@@ -1455,8 +1455,7 @@ void ViewDidMoveToSuperview(NSView* self, SEL _cmd) {
relativeTo:nil];
}

std::string dep_warn =
" has been deprecated and will be removed in a future version of macOS.";
std::string dep_warn = " has been deprecated and removed as of macOS 10.15.";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apple's docs indicate that all below deprecated APIs were removed in 10.15.

Copy link
Member

@ckerr ckerr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Contributor

@jkleinsc jkleinsc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this PR should apply to 8-x-y as we didn't backport/need CI changes there.

shell/browser/native_window_mac.mm Show resolved Hide resolved
shell/browser/native_window_mac.mm Show resolved Hide resolved
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 11, 2020
@codebytere codebytere merged commit 43ca62c into master Feb 11, 2020
@release-clerk
Copy link

release-clerk bot commented Feb 11, 2020

No Release Notes

@codebytere
Copy link
Member Author

/trop run backport-to 8-x-y

@codebytere codebytere deleted the use-contants-directly branch February 11, 2020 16:23
@trop
Copy link
Contributor

trop bot commented Feb 11, 2020

The backport process for this PR has been manually initiated -
sending your commits to "8-x-y"!

@trop
Copy link
Contributor

trop bot commented Feb 11, 2020

I have automatically backported this PR to "9-x-y", please check out #22148

@trop
Copy link
Contributor

trop bot commented Feb 11, 2020

I was unable to backport this PR to "8-x-y" cleanly;
you will need to perform this backport manually.

@trop
Copy link
Contributor

trop bot commented Feb 11, 2020

@codebytere has manually backported this PR to "8-x-y", please check out #22149

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants