Add BrowserWindow.getOpacity for consistency
This commit is contained in:
parent
7df5182901
commit
7570ec9d39
9 changed files with 29 additions and 2 deletions
|
@ -825,6 +825,11 @@ void NativeWindowViews::SetOpacity(const double opacity) {
|
|||
}
|
||||
::SetLayeredWindowAttributes(hwnd, 0, opacity * 255, LWA_ALPHA);
|
||||
#endif
|
||||
opacity_ = opacity;
|
||||
}
|
||||
|
||||
double NativeWindowViews::GetOpacity() {
|
||||
return opacity_;
|
||||
}
|
||||
|
||||
void NativeWindowViews::SetIgnoreMouseEvents(bool ignore, bool forward) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue