mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Add bitmap snapshot capture/display delegate plumbing (#56458)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/56458 ## Changelog: [Internal] [Added] - Add bitmap snapshot capture/display delegate plumbing Wire view transition bitmap snapshot capture and display through the C++ delegate chain so platforms can implement snapshotting old-element views. **ViewTransitionModule.cpp**: Call `uiManagerDidCaptureViewSnapshot(tag, surfaceId)` in `applyViewTransitionName` to capture a bitmap of the old view while it is still mounted, and `uiManagerDidSetViewSnapshot(sourceTag, targetTag, surfaceId)` in `applySnapshotsOnPseudoElementShadowNodes` to map captured bitmaps onto pseudo-element views. **UIManagerDelegate / SchedulerDelegate**: Add pure virtual `captureViewSnapshot` and `setViewSnapshot` methods. **Scheduler**: Forward `UIManagerDelegate` calls to `SchedulerDelegate`. **Platform stubs**: Empty implementations for iOS (`RCTScheduler.mm`), CxxPlatform (`SchedulerDelegateImpl`), and Android JNI (`FabricUIManagerBinding`) — Android implementation follows in D99173446. Reviewed By: NickGerleman Differential Revision: D98354659 fbshipit-source-id: 239268bc10fba5f751856f66911e15feb3f1868e
This commit is contained in:
1 parent
986be4cc71
commit
39ac6542bb
16 files changed
+222
-8
No files matched your search
@@ -85,6 +85,24 @@ class SchedulerDelegateProxy : public SchedulerDelegate {
|
||||
// This delegate method is not currently used on iOS.
|
||||
}
|
||||
|
||||
void schedulerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) override
|
||||
{
|
||||
// Does nothing.
|
||||
// View transition snapshots are not currently implemented on iOS.
|
||||
}
|
||||
|
||||
void schedulerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) override
|
||||
{
|
||||
// Does nothing.
|
||||
// View transition snapshots are not currently implemented on iOS.
|
||||
}
|
||||
|
||||
void schedulerDidClearPendingSnapshots() override
|
||||
{
|
||||
// Does nothing.
|
||||
// View transition snapshots are not currently implemented on iOS.
|
||||
}
|
||||
|
||||
private:
|
||||
void *scheduler_;
|
||||
};
|
||||
|
||||
+17
@@ -797,6 +797,23 @@ void FabricUIManagerBinding::schedulerDidUpdateShadowTree(
|
||||
// no-op
|
||||
}
|
||||
|
||||
void FabricUIManagerBinding::schedulerDidCaptureViewSnapshot(
|
||||
Tag tag,
|
||||
SurfaceId surfaceId) {
|
||||
// TODO: implement this
|
||||
}
|
||||
|
||||
void FabricUIManagerBinding::schedulerDidSetViewSnapshot(
|
||||
Tag sourceTag,
|
||||
Tag targetTag,
|
||||
SurfaceId surfaceId) {
|
||||
// TODO: implement this
|
||||
}
|
||||
|
||||
void FabricUIManagerBinding::schedulerDidClearPendingSnapshots() {
|
||||
// TODO: implement this
|
||||
}
|
||||
|
||||
void FabricUIManagerBinding::onAnimationStarted() {
|
||||
auto mountingManager = getMountingManager("onAnimationStarted");
|
||||
if (!mountingManager) {
|
||||
|
||||
@@ -117,6 +117,12 @@ class FabricUIManagerBinding : public jni::HybridClass<FabricUIManagerBinding>,
|
||||
|
||||
void schedulerDidUpdateShadowTree(const std::unordered_map<Tag, folly::dynamic> &tagToProps) override;
|
||||
|
||||
void schedulerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) override;
|
||||
|
||||
void schedulerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) override;
|
||||
|
||||
void schedulerDidClearPendingSnapshots() override;
|
||||
|
||||
void setPixelDensity(float pointScaleFactor);
|
||||
|
||||
void driveCxxAnimations();
|
||||
|
||||
@@ -364,6 +364,27 @@ void Scheduler::uiManagerDidUpdateShadowTree(
|
||||
}
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) {
|
||||
if (delegate_ != nullptr) {
|
||||
delegate_->schedulerDidCaptureViewSnapshot(tag, surfaceId);
|
||||
}
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerDidSetViewSnapshot(
|
||||
Tag sourceTag,
|
||||
Tag targetTag,
|
||||
SurfaceId surfaceId) {
|
||||
if (delegate_ != nullptr) {
|
||||
delegate_->schedulerDidSetViewSnapshot(sourceTag, targetTag, surfaceId);
|
||||
}
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerDidClearPendingSnapshots() {
|
||||
if (delegate_ != nullptr) {
|
||||
delegate_->schedulerDidClearPendingSnapshots();
|
||||
}
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerShouldAddEventListener(
|
||||
std::shared_ptr<const EventListener> listener) {
|
||||
addEventListener(listener);
|
||||
|
||||
@@ -94,6 +94,9 @@ class Scheduler final : public UIManagerDelegate {
|
||||
bool blockNativeResponder) override;
|
||||
void uiManagerShouldSynchronouslyUpdateViewOnUIThread(Tag tag, const folly::dynamic &props) override;
|
||||
void uiManagerDidUpdateShadowTree(const std::unordered_map<Tag, folly::dynamic> &tagToProps) override;
|
||||
void uiManagerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) override;
|
||||
void uiManagerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) override;
|
||||
void uiManagerDidClearPendingSnapshots() override;
|
||||
void uiManagerShouldAddEventListener(std::shared_ptr<const EventListener> listener) final;
|
||||
void uiManagerShouldRemoveEventListener(const std::shared_ptr<const EventListener> &listener) final;
|
||||
void uiManagerDidFinishReactCommit(const ShadowTree &shadowTree) override;
|
||||
|
||||
@@ -66,6 +66,11 @@ class SchedulerDelegate {
|
||||
|
||||
virtual void schedulerDidUpdateShadowTree(const std::unordered_map<Tag, folly::dynamic> &tagToProps) = 0;
|
||||
|
||||
// View transition bitmap snapshot capture and application.
|
||||
virtual void schedulerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) = 0;
|
||||
virtual void schedulerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) = 0;
|
||||
virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
|
||||
virtual ~SchedulerDelegate() noexcept = default;
|
||||
};
|
||||
|
||||
|
||||
@@ -97,6 +97,11 @@ class UIManagerDelegate {
|
||||
using OnSurfaceStartCallback = std::function<void(const ShadowTree &shadowTree)>;
|
||||
virtual void uiManagerShouldSetOnSurfaceStartCallback(OnSurfaceStartCallback &&callback) = 0;
|
||||
|
||||
// View transition bitmap snapshot capture and application.
|
||||
virtual void uiManagerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) = 0;
|
||||
virtual void uiManagerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) = 0;
|
||||
virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
|
||||
virtual ~UIManagerDelegate() noexcept = default;
|
||||
};
|
||||
|
||||
|
||||
+28
-2
@@ -82,7 +82,14 @@ void ViewTransitionModule::applyViewTransitionName(
|
||||
.layoutMetrics = keyframeMetrics, .tag = tag, .surfaceId = surfaceId};
|
||||
oldLayout_[name] = oldView;
|
||||
|
||||
// TODO: capture bitmap snapshot of old view via platform
|
||||
// Request the platform to capture a bitmap snapshot of the old view
|
||||
// while it's still mounted. The platform stores the bitmap keyed by tag.
|
||||
if (uiManager_ != nullptr) {
|
||||
auto* delegate = uiManager_->getDelegate();
|
||||
if (delegate != nullptr) {
|
||||
delegate->uiManagerDidCaptureViewSnapshot(tag, surfaceId);
|
||||
}
|
||||
}
|
||||
|
||||
if (auto it = oldPseudoElementNodesRepository_.find(name);
|
||||
it != oldPseudoElementNodesRepository_.end()) {
|
||||
@@ -277,7 +284,18 @@ void ViewTransitionModule::applySnapshotsOnPseudoElementShadowNodes() {
|
||||
return;
|
||||
}
|
||||
|
||||
// TODO: set bitmap snapshots on pseudo-element views via platform
|
||||
// Set view snapshots — the pseudo-element nodes themselves will be committed
|
||||
// through the normal completeRoot flow via getPseudoElementNodes().
|
||||
auto* delegate = uiManager_->getDelegate();
|
||||
if (delegate != nullptr) {
|
||||
for (const auto& [name, node] : oldPseudoElementNodes_) {
|
||||
auto layoutIt = oldLayout_.find(name);
|
||||
if (layoutIt != oldLayout_.end()) {
|
||||
delegate->uiManagerDidSetViewSnapshot(
|
||||
layoutIt->second.tag, node->getTag(), node->getSurfaceId());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
LayoutMetrics ViewTransitionModule::captureLayoutMetricsFromRoot(
|
||||
@@ -343,6 +361,14 @@ void ViewTransitionModule::startViewTransitionEnd() {
|
||||
nameRegistry_.clear();
|
||||
oldPseudoElementNodes_.clear();
|
||||
|
||||
// Clear any pending bitmap snapshots that were captured but never consumed.
|
||||
if (uiManager_ != nullptr) {
|
||||
auto* delegate = uiManager_->getDelegate();
|
||||
if (delegate != nullptr) {
|
||||
delegate->uiManagerDidClearPendingSnapshots();
|
||||
}
|
||||
}
|
||||
|
||||
transitionStarted_ = false;
|
||||
}
|
||||
|
||||
|
||||
+11
@@ -76,4 +76,15 @@ void SchedulerDelegateImpl::schedulerDidUpdateShadowTree(
|
||||
mountingManager_->onUpdateShadowTree(tagToProps);
|
||||
}
|
||||
|
||||
void SchedulerDelegateImpl::schedulerDidCaptureViewSnapshot(
|
||||
Tag /*tag*/,
|
||||
SurfaceId /*surfaceId*/) {}
|
||||
|
||||
void SchedulerDelegateImpl::schedulerDidSetViewSnapshot(
|
||||
Tag /*sourceTag*/,
|
||||
Tag /*targetTag*/,
|
||||
SurfaceId /*surfaceId*/) {}
|
||||
|
||||
void SchedulerDelegateImpl::schedulerDidClearPendingSnapshots() {}
|
||||
|
||||
} // namespace facebook::react
|
||||
+6
@@ -51,6 +51,12 @@ class SchedulerDelegateImpl : public SchedulerDelegate {
|
||||
|
||||
void schedulerDidUpdateShadowTree(const std::unordered_map<Tag, folly::dynamic> &tagToProps) override;
|
||||
|
||||
void schedulerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) override;
|
||||
|
||||
void schedulerDidSetViewSnapshot(Tag sourceTag, Tag targetTag, SurfaceId surfaceId) override;
|
||||
|
||||
void schedulerDidClearPendingSnapshots() override;
|
||||
|
||||
std::shared_ptr<IMountingManager> mountingManager_;
|
||||
std::shared_ptr<UIManager> uiManager_;
|
||||
};
|
||||
|
||||
@@ -4453,6 +4453,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -4460,6 +4462,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -4477,11 +4480,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -5250,6 +5256,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -5257,6 +5265,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -5284,8 +5293,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -5358,10 +5369,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
@@ -4450,6 +4450,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -4457,6 +4459,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -4474,11 +4477,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -5241,6 +5247,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -5248,6 +5256,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -5275,8 +5284,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -5349,10 +5360,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
@@ -7040,6 +7040,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -7047,6 +7049,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -7064,11 +7067,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -7820,6 +7826,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -7827,6 +7835,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -7854,8 +7863,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -7925,10 +7936,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
@@ -7037,6 +7037,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -7044,6 +7046,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -7061,11 +7064,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -7811,6 +7817,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -7818,6 +7826,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -7845,8 +7854,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -7916,10 +7927,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
@@ -3021,6 +3021,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -3028,6 +3030,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -3045,11 +3048,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -3717,6 +3723,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -3724,6 +3732,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -3751,8 +3760,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -3813,10 +3824,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
@@ -3018,6 +3018,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public facebook::react::SchedulerDelegate* getDelegate() const;
|
||||
public std::shared_ptr<const facebook::react::ContextContainer> getContextContainer() const;
|
||||
public std::shared_ptr<facebook::react::UIManager> getUIManager() const;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() override;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) override;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) override;
|
||||
@@ -3025,6 +3027,7 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) override;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) override;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) override;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) override;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) override;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) final;
|
||||
@@ -3042,11 +3045,14 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
}
|
||||
|
||||
class facebook::react::SchedulerDelegate {
|
||||
public virtual void schedulerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidClearPendingSnapshots() = 0;
|
||||
public virtual void schedulerDidDispatchCommand(const facebook::react::ShadowView& shadowView, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void schedulerDidFinishTransaction(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
public virtual void schedulerDidRequestPreliminaryViewAllocation(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void schedulerDidSendAccessibilityEvent(const facebook::react::ShadowView& shadowView, const std::string& eventType) = 0;
|
||||
public virtual void schedulerDidSetIsJSResponder(const facebook::react::ShadowView& shadowView, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void schedulerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void schedulerShouldMergeReactRevision(facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void schedulerShouldRenderTransactions(const std::shared_ptr<const facebook::react::MountingCoordinator>& mountingCoordinator) = 0;
|
||||
@@ -3708,6 +3714,8 @@ class facebook::react::UIManagerCommitHook {
|
||||
|
||||
class facebook::react::UIManagerDelegate {
|
||||
public using OnSurfaceStartCallback = std::function<void(const facebook::react::ShadowTree& shadowTree)>;
|
||||
public virtual void uiManagerDidCaptureViewSnapshot(facebook::react::Tag tag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidClearPendingSnapshots() = 0;
|
||||
public virtual void uiManagerDidCreateShadowNode(const facebook::react::ShadowNode& shadowNode) = 0;
|
||||
public virtual void uiManagerDidDispatchCommand(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& commandName, const folly::dynamic& args) = 0;
|
||||
public virtual void uiManagerDidFinishReactCommit(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
@@ -3715,6 +3723,7 @@ class facebook::react::UIManagerDelegate {
|
||||
public virtual void uiManagerDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidSendAccessibilityEvent(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, const std::string& eventType) = 0;
|
||||
public virtual void uiManagerDidSetIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) = 0;
|
||||
public virtual void uiManagerDidSetViewSnapshot(facebook::react::Tag sourceTag, facebook::react::Tag targetTag, facebook::react::SurfaceId surfaceId) = 0;
|
||||
public virtual void uiManagerDidStartSurface(const facebook::react::ShadowTree& shadowTree) = 0;
|
||||
public virtual void uiManagerDidUpdateShadowTree(const std::unordered_map<facebook::react::Tag, folly::dynamic>& tagToProps) = 0;
|
||||
public virtual void uiManagerShouldAddEventListener(std::shared_ptr<const facebook::react::EventListener> listener) = 0;
|
||||
@@ -3742,8 +3751,10 @@ class facebook::react::UIManagerNativeAnimatedDelegateImpl : public facebook::re
|
||||
|
||||
class facebook::react::UIManagerViewTransitionDelegate {
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo);
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className);
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name);
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag);
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode);
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback);
|
||||
public virtual void startViewTransitionEnd();
|
||||
@@ -3804,10 +3815,15 @@ class facebook::react::ViewShadowNodeProps : public facebook::react::HostPlatfor
|
||||
public ViewShadowNodeProps(const facebook::react::PropsParserContext& context, const facebook::react::ViewShadowNodeProps& sourceProps, const facebook::react::RawProps& rawProps);
|
||||
}
|
||||
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate {
|
||||
class facebook::react::ViewTransitionModule : public facebook::react::UIManagerViewTransitionDelegate, public facebook::react::UIManagerCommitHook {
|
||||
public virtual facebook::react::RootShadowNode::Unshared shadowTreeWillCommit(const facebook::react::ShadowTree& shadowTree, const facebook::react::RootShadowNode::Shared& oldRootShadowNode, const facebook::react::RootShadowNode::Unshared& newRootShadowNode, const facebook::react::ShadowTreeCommitOptions& commitOptions) noexcept override;
|
||||
public virtual std::optional<facebook::react::UIManagerViewTransitionDelegate::ViewTransitionInstance> getViewTransitionInstance(const std::string& name, const std::string& pseudo) override;
|
||||
public virtual std::shared_ptr<const facebook::react::ShadowNode> findPseudoElementShadowNodeByTag(facebook::react::Tag tag) const override;
|
||||
public virtual void applyViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name, const std::string& className) override;
|
||||
public virtual void cancelViewTransitionName(const facebook::react::ShadowNode& shadowNode, const std::string& name) override;
|
||||
public virtual void commitHookWasRegistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void commitHookWasUnregistered(const facebook::react::UIManager& uiManager) noexcept override;
|
||||
public virtual void createViewTransitionInstance(const std::string& name, facebook::react::Tag pseudoElementTag) override;
|
||||
public virtual void restoreViewTransitionName(const facebook::react::ShadowNode& shadowNode) override;
|
||||
public virtual void startViewTransition(std::function<void()> mutationCallback, std::function<void()> onReadyCallback, std::function<void()> onCompleteCallback) override;
|
||||
public virtual void startViewTransitionEnd() override;
|
||||
|
||||
Reference in new issue
Block a user