Merge pull request #10667 from dittos/window-opacity
Add window opacity support
This commit is contained in:
commit
8c5bb5969c
12 changed files with 92 additions and 0 deletions
|
@ -1504,6 +1504,14 @@ bool NativeWindowMac::HasShadow() {
|
|||
return [window_ hasShadow];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetOpacity(const double opacity) {
|
||||
[window_ setAlphaValue:opacity];
|
||||
}
|
||||
|
||||
double NativeWindowMac::GetOpacity() {
|
||||
return [window_ alphaValue];
|
||||
}
|
||||
|
||||
void NativeWindowMac::SetRepresentedFilename(const std::string& filename) {
|
||||
[window_ setRepresentedFilename:base::SysUTF8ToNSString(filename)];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue