mac: Remove access to webContents in windowWillUseStandardFrame
This commit is contained in:
parent
e73326a324
commit
cad3d694ab
6 changed files with 21 additions and 7 deletions
|
@ -402,6 +402,11 @@ void NativeWindow::PreviewFile(const std::string& path,
|
|||
void NativeWindow::CloseFilePreview() {
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowRequestPreferredWith(int* width) {
|
||||
for (NativeWindowObserver& observer : observers_)
|
||||
observer.RequestPreferredWidth(width);
|
||||
}
|
||||
|
||||
void NativeWindow::NotifyWindowCloseButtonClicked() {
|
||||
// First ask the observers whether we want to close.
|
||||
bool prevent_default = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue