react-native/ReactCommon/fabric/events
Valentin Shergin e05acf1930 Fabric: Managing an EventHandler as a unique_pointer
Summary:
I realized that instead of using shared_ptr's type-erasure feature, we can make the EventHandler's destructor virtual and this itself will allow safe deallocation by a pointer to a base class.
We cannot use the same technic for EventTarget thought because having a weak_ptr to this is another feature of shared_ptr that we need.

Reviewed By: mdvacca

Differential Revision: D9775742

fbshipit-source-id: 3c23a163827e8aa9ec731c89ce87051a93afe4ca
2018-09-13 23:02:37 -07:00
..
tests Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BUCK Fixup references to old flag_defs.bzl in xplat/ 2018-09-11 18:47:30 -07:00
BatchedEventQueue.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
BatchedEventQueue.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
EventBeat.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
EventBeat.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
EventDispatcher.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
EventDispatcher.h Fabric: Exposing EventEmitter's ownership model as a shared_ptr 2018-09-13 23:02:37 -07:00
EventEmitter.cpp Fabric: Simplified relationship between RawEvent and EventEmitter 2018-09-13 23:02:37 -07:00
EventEmitter.h Fabric: Simplified relationship between RawEvent and EventEmitter 2018-09-13 23:02:37 -07:00
EventQueue.cpp Fabric: Simplified relationship between RawEvent and EventEmitter 2018-09-13 23:02:37 -07:00
EventQueue.h Fabric: Exposing EventEmitter's ownership model as a shared_ptr 2018-09-13 23:02:37 -07:00
RawEvent.cpp Fabric: Simplified relationship between RawEvent and EventEmitter 2018-09-13 23:02:37 -07:00
RawEvent.h Fabric: Simplified relationship between RawEvent and EventEmitter 2018-09-13 23:02:37 -07:00
UnbatchedEventQueue.cpp Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
UnbatchedEventQueue.h Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
primitives.h Fabric: Managing an EventHandler as a unique_pointer 2018-09-13 23:02:37 -07:00