mac: Provide ViewsDelegate

This commit is contained in:
Cheng Zhao 2018-04-19 15:26:34 +09:00
parent fcc82ebd35
commit 37a7df49d6
7 changed files with 93 additions and 1 deletions

View file

@ -12,6 +12,8 @@
#include "atom/browser/native_window.h"
#include "base/mac/scoped_nsobject.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/widget/widget_observer.h"
@class AtomNSWindow;
@class AtomNSWindowDelegate;
@ -147,6 +149,8 @@ class NativeWindowMac : public NativeWindow {
base::scoped_nsobject<AtomNSWindow> window_;
base::scoped_nsobject<AtomNSWindowDelegate> window_delegate_;
std::unique_ptr<views::Widget> widget_;
// Event monitor for scroll wheel event.
id wheel_event_monitor_;