Repository navigation
Implements #2734 “New API to configure BrowserWindow title bar on Mac” - #2776
Conversation
|
💃 |
|
About the failing tests… I don’t understand why the Linux tests fail, or rather, why are the two new tests run on Linux? I have a condition to bail out from those tests when the OS is not Mac—why is that not respected? The Mac tests fail because I think Travis OSX runtime is 10.9. Should I make the tests conditional on 10.9 so they are not run (how?), or is there a way to make Travis use 10.10 runtime? |
There was a problem hiding this comment.
For checking OS X version, you can use base::mac::IsOSYosemiteOrLater() instead.
You can use |
There was a problem hiding this comment.
Break lines as the rest of the file mostly <= 80
|
OK, tests don’t fail any more (they are not run on Travis but are run correctly if you run them locally on a Yosemite machine), I addressed all the comments, and made a squash commit. |
There was a problem hiding this comment.
Looks like there is a memory leak here.
From apple's API document, the parameter of setToolbar is descripted as strong property, so we need to release toolbar here.
There was a problem hiding this comment.
My bad. Thanks for pointing this out. I assumed ARC, but apparently not, been a while since I worked on a non-ARC codebase. :)
New API supported on Yosemite 10.10 and newer.
|
Awesome, thanks! ✨ |
Implements #2734 “New API to configure BrowserWindow title bar on Mac”
|
Ooh, snazzy |
|
Now we just have to wait for the release :) |
There was a problem hiding this comment.
Can you create a new issue for this? I'm wondering if it is caused by me setting MACOSX_DEPLOYMENT_TARGET to 10.10.

New API supported on Yosemite 10.10 and newer.
Two new title bar styles: