mac: Avoid managing NSWindow by hand.
This commit is contained in:
parent
2ab5d6e35a
commit
84d458687a
2 changed files with 5 additions and 8 deletions
|
@ -7,6 +7,7 @@
|
|||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
#include "base/mac/scoped_nsobject.h"
|
||||
#include "base/memory/scoped_ptr.h"
|
||||
#include "atom/browser/native_window.h"
|
||||
|
||||
|
@ -86,7 +87,7 @@ class NativeWindowMac : public NativeWindow {
|
|||
void UpdateDraggableRegionsForCustomDrag(
|
||||
const std::vector<DraggableRegion>& regions);
|
||||
|
||||
NSWindow* window_;
|
||||
base::scoped_nsobject<NSWindow> window_;
|
||||
|
||||
bool is_kiosk_;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue