From: Cheng Zhao Date: Mon, 25 Jan 2016 06:47:54 +0000 (+0800) Subject: Merge pull request #4181 from bengotow/scroll-touch-events X-Git-Tag: v0.36.6~25 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=059d97e1aae15cd1464ee07d5403306f5b6ac246;p=electron.git Merge pull request #4181 from bengotow/scroll-touch-events Extend NativeWindow to track touch-based scroll events on OS X --- 059d97e1aae15cd1464ee07d5403306f5b6ac246 diff --cc atom/browser/native_window_mac.h index 96412659,927e971d..4d86ec33 --- a/atom/browser/native_window_mac.h +++ b/atom/browser/native_window_mac.h @@@ -120,12 -108,9 +120,13 @@@ class NativeWindowMac : public NativeWi // whehter we can drag. void UpdateDraggableRegionViews(const std::vector& regions); + // Set the attribute of NSWindow while work around a bug of zo0m button. + void SetStyleMask(bool on, NSUInteger flag); + void SetCollectionBehavior(bool on, NSUInteger flag); + base::scoped_nsobject window_; base::scoped_nsobject window_delegate_; + base::scoped_nsobject event_monitor_; // The view that will fill the whole frameless window. base::scoped_nsobject content_view_;