mac: Remove access to webContents in windowWillUseStandardFrame

This commit is contained in:
Cheng Zhao 2018-03-06 12:03:12 +09:00
parent e73326a324
commit cad3d694ab
6 changed files with 21 additions and 7 deletions

View file

@ -34,6 +34,9 @@ class NativeWindowObserver {
// Called when the window is gonna closed.
virtual void WillCloseWindow(bool* prevent_default) {}
// Called when the window wants to know the preferred width.
virtual void RequestPreferredWidth(int* width) {}
// Called when closed button is clicked.
virtual void OnCloseButtonClicked(bool* prevent_default) {}