Add window opacity support

This commit is contained in:
Ted Kim 2017-09-29 11:26:02 +09:00
parent 0c9ada08a4
commit 7f2c4a9e06
11 changed files with 57 additions and 0 deletions

View file

@ -1503,6 +1503,10 @@ bool NativeWindowMac::HasShadow() {
return [window_ hasShadow];
}
void NativeWindowMac::SetOpacity(const double opacity) {
[window_ setAlphaValue:opacity];
}
void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
}