Add events to manage sheets of macOS BrowserWindow
This commit is contained in:
parent
3af50b92ca
commit
75184046f6
8 changed files with 101 additions and 0 deletions
|
@ -590,6 +590,18 @@ void NativeWindow::NotifyWindowMessage(
|
|||
}
|
||||
#endif
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
void NativeWindow::NotifyWindowSheetBegin() {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.OnWindowSheetBegin();
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowSheetEnd() {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.OnWindowSheetEnd();
|
||||
}
|
||||
#endif
|
||||
|
||||
std::unique_ptr<SkRegion> NativeWindow::DraggableRegionsToSkRegion(
|
||||
const std::vector<DraggableRegion>& regions) {
|
||||
std::unique_ptr<SkRegion> sk_region(new SkRegion);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue