refactor: Make NativeWindow inherit WidgetDelegate

This commit is contained in:
Cheng Zhao 2018-04-25 15:51:54 +09:00
parent ee2c3607ad
commit 6d18bd0633
4 changed files with 8 additions and 7 deletions

View file

@ -12,8 +12,6 @@
#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;
@ -23,8 +21,7 @@
namespace atom {
class NativeWindowMac : public NativeWindow,
public views::WidgetDelegate {
class NativeWindowMac : public NativeWindow {
public:
NativeWindowMac(const mate::Dictionary& options, NativeWindow* parent);
~NativeWindowMac() override;