Add BrowserWindow.getOpacity for consistency
This commit is contained in:
parent
7df5182901
commit
7570ec9d39
9 changed files with 29 additions and 2 deletions
|
@ -1507,6 +1507,10 @@ 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