add moveTop API to move window z-oder to top for win32, mac (#12485)

* add moveTop API to move window z-oder to top for win32, mac

* BrowserWindow::MoveTop SetMethod bug fix
This commit is contained in:
MadfishDT 2018-04-03 22:04:32 +09:00 committed by Charles Kerr
parent 9d570dc645
commit 200388ff96
8 changed files with 36 additions and 1 deletions

View file

@ -1192,6 +1192,9 @@ void NativeWindowMac::SetContentSizeConstraints(
NativeWindow::SetContentSizeConstraints(size_constraints);
}
void NativeWindowMac::MoveTop(){
[window_ orderWindow:NSWindowAbove relativeTo:0];
}
void NativeWindowMac::SetResizable(bool resizable) {
SetStyleMask(resizable, NSResizableWindowMask);
}