mac: Add API to return whether the window has attached sheet.

This commit is contained in:
Cheng Zhao 2013-12-04 16:32:32 +08:00
parent 7d5826df85
commit d6d1604623
4 changed files with 7 additions and 0 deletions

View file

@ -387,6 +387,10 @@ bool NativeWindowMac::IsKiosk() {
return is_kiosk_;
}
bool NativeWindowMac::HasModalDialog() {
return [window() attachedSheet] != nil;
}
gfx::NativeWindow NativeWindowMac::GetNativeWindow() {
return window();
}