add node measure event and passing the callback to java layer
Summary: Adds measure event and its listener initial code structure Reviewed By: davidaurelio Differential Revision: D15600738 fbshipit-source-id: d15764e0b64edb170fcb15e0912ecce5f7e53595
This commit is contained in:
committed by
Facebook Github Bot
parent
2701d80078
commit
755fa07b39
@@ -21,7 +21,8 @@ struct Event {
|
||||
NodeDeallocation,
|
||||
NodeLayout,
|
||||
LayoutPassStart,
|
||||
LayoutPassEnd
|
||||
LayoutPassEnd,
|
||||
NodeMeasure,
|
||||
};
|
||||
class Data;
|
||||
using Subscriber = void(const YGNode&, Type, Data);
|
||||
@@ -76,5 +77,10 @@ struct Event::TypedData<Event::LayoutPassEnd> {
|
||||
void* layoutContext;
|
||||
};
|
||||
|
||||
template <>
|
||||
struct Event::TypedData<Event::NodeMeasure> {
|
||||
void* layoutContext;
|
||||
};
|
||||
|
||||
} // namespace yoga
|
||||
} // namespace facebook
|
||||
|
Reference in New Issue
Block a user