mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Fix AnimatedPropsRegistry surface-stop resurrection race (#57376)
Summary: Pull Request resolved: https://github.com/react/react-native/pull/57376 AnimatedPropsRegistry::update() runs on the UI thread every animation frame and created a surface's entry via operator[]. clearOnSurfaceStop() (run on the JS thread when a surface stops) erases that entry, but an in-flight animation frame landing after the stop re-created it via operator[] -- and since the surface is gone, nothing ever cleans it up again. The resurrected entry leaks its PropsSnapshot and ShadowNodeFamily for the lifetime of the registry. A surface's entry is legitimately created by getMap(), which AnimationBackendCommitHook calls on every React commit. stopSurface drains in-flight commits before unregistering the ShadowTree (ShadowTreeRegistry::remove takes the registry's unique lock, which excludes the shared-locked commit visits), so getMap() can never run for a stopped surface. That leaves update()'s operator[] as the only thing that can resurrect one. Fix: update() now only refines surfaces that already exist (find instead of operator[]) and never creates an entry; getMap() remains the sole creator. A stopped surface can no longer be resurrected, and there is no extra bookkeeping that could grow over time. Changelog: [General][Fixed] - Fix a surface-stop race in the C++ Animated shared backend that could permanently leak per-surface animated state Reviewed By: javache Differential Revision: D109156094 fbshipit-source-id: 4684ca51d372023e3b082427a225de7d84d14889
This commit is contained in:
1 parent
1136e41bd8
commit
d9d2502b61
19 files changed
+85
-43
No files matched your search
+1
-1
@@ -119,7 +119,7 @@ NativeAnimatedNodesManagerProvider::getOrCreate(
|
||||
});
|
||||
|
||||
// Register on surfaces started in the future
|
||||
uiManager->setOnSurfaceStartCallback(
|
||||
uiManager->addOnSurfaceStartCallback(
|
||||
[animatedMountingOverrideDelegate =
|
||||
std::weak_ptr<const AnimatedMountingOverrideDelegate>(
|
||||
animatedMountingOverrideDelegate_)](
|
||||
|
||||
+10
-1
@@ -15,7 +15,11 @@ void AnimatedPropsRegistry::update(
|
||||
const std::unordered_map<SurfaceId, SurfaceUpdates>& surfaceUpdates) {
|
||||
auto lock = std::lock_guard(mutex_);
|
||||
for (const auto& [surfaceId, updates] : surfaceUpdates) {
|
||||
auto& surfaceContext = surfaceContexts_[surfaceId];
|
||||
auto contextIt = surfaceContexts_.find(surfaceId);
|
||||
if (contextIt == surfaceContexts_.end()) {
|
||||
continue;
|
||||
}
|
||||
auto& surfaceContext = contextIt->second;
|
||||
auto& pendingMap = surfaceContext.pendingMap;
|
||||
auto& pendingFamilies = surfaceContext.pendingFamilies;
|
||||
|
||||
@@ -55,6 +59,11 @@ void AnimatedPropsRegistry::update(
|
||||
}
|
||||
}
|
||||
|
||||
void AnimatedPropsRegistry::initializeSurface(SurfaceId surfaceId) {
|
||||
auto lock = std::lock_guard(mutex_);
|
||||
surfaceContexts_.try_emplace(surfaceId);
|
||||
}
|
||||
|
||||
std::pair<
|
||||
std::unordered_set<std::shared_ptr<const ShadowNodeFamily>>&,
|
||||
SnapshotMap&>
|
||||
|
||||
+1
@@ -38,6 +38,7 @@ using SnapshotMap = std::unordered_map<Tag, std::unique_ptr<PropsSnapshot>>;
|
||||
class AnimatedPropsRegistry {
|
||||
public:
|
||||
void update(const std::unordered_map<SurfaceId, SurfaceUpdates> &surfaceUpdates);
|
||||
void initializeSurface(SurfaceId surfaceId);
|
||||
void clear(SurfaceId surfaceId);
|
||||
void clearOnSurfaceStop(SurfaceId surfaceId);
|
||||
std::pair<std::unordered_set<std::shared_ptr<const ShadowNodeFamily>> &, SnapshotMap &> getMap(SurfaceId surfaceId);
|
||||
|
||||
+17
@@ -56,6 +56,23 @@ AnimationBackend::AnimationBackend(
|
||||
commitHook_(*uiManager, animatedPropsRegistry_),
|
||||
uiManager_(std::move(uiManager)) {
|
||||
react_native_assert(uiManager_.expired() == false);
|
||||
|
||||
auto weakAnimatedPropsRegistry =
|
||||
std::weak_ptr<AnimatedPropsRegistry>(animatedPropsRegistry_);
|
||||
auto initializeSurfaceContext =
|
||||
[weakAnimatedPropsRegistry](const ShadowTree& shadowTree) {
|
||||
if (auto animatedPropsRegistry = weakAnimatedPropsRegistry.lock()) {
|
||||
animatedPropsRegistry->initializeSurface(shadowTree.getSurfaceId());
|
||||
}
|
||||
};
|
||||
|
||||
if (auto lockedUIManager = uiManager_.lock()) {
|
||||
lockedUIManager->addOnSurfaceStartCallback(initializeSurfaceContext);
|
||||
lockedUIManager->getShadowTreeRegistry().enumerate(
|
||||
[&](const ShadowTree& shadowTree, bool& /*stop*/) {
|
||||
animatedPropsRegistry_->initializeSurface(shadowTree.getSurfaceId());
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
void AnimationBackend::unpackMutations(
|
||||
|
||||
@@ -22,6 +22,7 @@
|
||||
#include <react/renderer/runtimescheduler/RuntimeScheduler.h>
|
||||
#include <react/renderer/uimanager/UIManager.h>
|
||||
#include <react/renderer/uimanager/UIManagerBinding.h>
|
||||
#include <mutex>
|
||||
|
||||
namespace facebook::react {
|
||||
|
||||
@@ -459,9 +460,13 @@ void Scheduler::uiManagerDidPromoteReactRevision(const ShadowTree& shadowTree) {
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerDidStartSurface(const ShadowTree& shadowTree) {
|
||||
std::shared_lock lock(onSurfaceStartCallbackMutex_);
|
||||
if (onSurfaceStartCallback_) {
|
||||
onSurfaceStartCallback_(shadowTree);
|
||||
std::vector<OnSurfaceStartCallback> callbacks;
|
||||
{
|
||||
std::shared_lock lock(onSurfaceStartCallbackMutex_);
|
||||
callbacks = onSurfaceStartCallbacks_;
|
||||
}
|
||||
for (const auto& callback : callbacks) {
|
||||
callback(shadowTree);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -491,10 +496,10 @@ void Scheduler::removeEventListener(
|
||||
}
|
||||
}
|
||||
|
||||
void Scheduler::uiManagerShouldSetOnSurfaceStartCallback(
|
||||
void Scheduler::uiManagerShouldAddOnSurfaceStartCallback(
|
||||
OnSurfaceStartCallback&& callback) {
|
||||
std::shared_lock lock(onSurfaceStartCallbackMutex_);
|
||||
onSurfaceStartCallback_ = std::move(callback);
|
||||
std::unique_lock lock(onSurfaceStartCallbackMutex_);
|
||||
onSurfaceStartCallbacks_.push_back(std::move(callback));
|
||||
}
|
||||
|
||||
} // namespace facebook::react
|
||||
@@ -9,6 +9,7 @@
|
||||
|
||||
#include <atomic>
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
#include <ReactCommon/RuntimeExecutor.h>
|
||||
#include <react/performance/cdpmetrics/CdpMetricsReporter.h>
|
||||
@@ -117,7 +118,7 @@ class Scheduler final : public UIManagerDelegate {
|
||||
void removeEventListener(const std::shared_ptr<const EventListener> &listener);
|
||||
|
||||
#pragma mark - Surface start callback
|
||||
void uiManagerShouldSetOnSurfaceStartCallback(OnSurfaceStartCallback &&callback) override;
|
||||
void uiManagerShouldAddOnSurfaceStartCallback(OnSurfaceStartCallback &&callback) override;
|
||||
|
||||
private:
|
||||
friend class SurfaceHandler;
|
||||
@@ -159,7 +160,7 @@ class Scheduler final : public UIManagerDelegate {
|
||||
std::shared_ptr<ViewTransitionModule> viewTransitionModule_;
|
||||
|
||||
mutable std::shared_mutex onSurfaceStartCallbackMutex_;
|
||||
OnSurfaceStartCallback onSurfaceStartCallback_;
|
||||
std::vector<OnSurfaceStartCallback> onSurfaceStartCallbacks_;
|
||||
};
|
||||
|
||||
} // namespace facebook::react
|
||||
@@ -765,10 +765,10 @@ void UIManager::removeEventListener(
|
||||
}
|
||||
}
|
||||
|
||||
void UIManager::setOnSurfaceStartCallback(
|
||||
void UIManager::addOnSurfaceStartCallback(
|
||||
UIManagerDelegate::OnSurfaceStartCallback&& callback) {
|
||||
if (delegate_ != nullptr) {
|
||||
delegate_->uiManagerShouldSetOnSurfaceStartCallback(std::move(callback));
|
||||
delegate_->uiManagerShouldAddOnSurfaceStartCallback(std::move(callback));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -223,8 +223,8 @@ class UIManager final : public ShadowTreeDelegate {
|
||||
|
||||
void removeEventListener(const std::shared_ptr<const EventListener> &listener);
|
||||
|
||||
#pragma mark - Set on surface start callback
|
||||
void setOnSurfaceStartCallback(UIManagerDelegate::OnSurfaceStartCallback &&callback);
|
||||
#pragma mark - Add on surface start callback
|
||||
void addOnSurfaceStartCallback(UIManagerDelegate::OnSurfaceStartCallback &&callback);
|
||||
|
||||
private:
|
||||
friend class UIManagerBinding;
|
||||
|
||||
@@ -95,7 +95,7 @@ class UIManagerDelegate {
|
||||
virtual void uiManagerDidPromoteReactRevision(const ShadowTree &shadowTree) = 0;
|
||||
|
||||
using OnSurfaceStartCallback = std::function<void(const ShadowTree &shadowTree)>;
|
||||
virtual void uiManagerShouldSetOnSurfaceStartCallback(OnSurfaceStartCallback &&callback) = 0;
|
||||
virtual void uiManagerShouldAddOnSurfaceStartCallback(OnSurfaceStartCallback &&callback) = 0;
|
||||
|
||||
// View transition bitmap snapshot capture and application.
|
||||
virtual void uiManagerDidCaptureViewSnapshot(Tag tag, SurfaceId surfaceId) = 0;
|
||||
|
||||
+1
-1
@@ -59,7 +59,7 @@ void ViewTransitionModule::initialize(
|
||||
});
|
||||
|
||||
// Register on surfaces started in the future
|
||||
uiManager_->setOnSurfaceStartCallback(
|
||||
uiManager_->addOnSurfaceStartCallback(
|
||||
[weakThis](const ShadowTree& shadowTree) {
|
||||
shadowTree.getMountingCoordinator()->setMountingOverrideDelegate(
|
||||
weakThis);
|
||||
|
||||
@@ -1558,6 +1558,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -4501,8 +4502,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -5234,6 +5235,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -5248,7 +5250,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -5319,8 +5320,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -1553,6 +1553,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -4321,8 +4322,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -5048,6 +5049,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -5062,7 +5064,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -5133,8 +5134,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -1557,6 +1557,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -4498,8 +4499,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -5225,6 +5226,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -5239,7 +5241,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -5310,8 +5311,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -4142,6 +4142,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -6699,8 +6700,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -7413,6 +7414,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -7427,7 +7429,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -7498,8 +7499,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -4126,6 +4126,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -6547,8 +6548,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -7255,6 +7256,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -7269,7 +7271,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -7340,8 +7341,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -4141,6 +4141,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -6696,8 +6697,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -7404,6 +7405,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -7418,7 +7420,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -7489,8 +7490,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -883,6 +883,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -3057,8 +3058,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -3687,6 +3688,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -3701,7 +3703,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -3772,8 +3773,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -879,6 +879,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -2917,8 +2918,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -3541,6 +3542,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -3555,7 +3557,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -3626,8 +3627,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
@@ -882,6 +882,7 @@ class facebook::react::AnimatedPropsRegistry {
|
||||
public std::pair<std::unordered_set<std::shared_ptr<const facebook::react::ShadowNodeFamily>>&, facebook::react::SnapshotMap&> getMap(facebook::react::SurfaceId surfaceId);
|
||||
public void clear(facebook::react::SurfaceId surfaceId);
|
||||
public void clearOnSurfaceStop(facebook::react::SurfaceId surfaceId);
|
||||
public void initializeSurface(facebook::react::SurfaceId surfaceId);
|
||||
public void update(const std::unordered_map<facebook::react::SurfaceId, facebook::react::SurfaceUpdates>& surfaceUpdates);
|
||||
}
|
||||
|
||||
@@ -3054,8 +3055,8 @@ class facebook::react::Scheduler : public facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) final;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) override;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void animationTick() const;
|
||||
@@ -3678,6 +3679,7 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public virtual void shadowTreeDidFinishTransaction(std::shared_ptr<const facebook::react::MountingCoordinator> mountingCoordinator, bool mountSynchronously) const override;
|
||||
public virtual void shadowTreeDidPromoteReactRevision(const facebook::react::ShadowTree& shadowTree) const override;
|
||||
public void addEventListener(std::shared_ptr<const facebook::react::EventListener> listener);
|
||||
public void addOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void animationTick() const;
|
||||
public void appendChild(const std::shared_ptr<const facebook::react::ShadowNode>& parentShadowNode, const std::shared_ptr<const facebook::react::ShadowNode>& childShadowNode) const;
|
||||
public void completeSurface(facebook::react::SurfaceId surfaceId, const std::shared_ptr<std::vector<std::shared_ptr<const facebook::react::ShadowNode>>>& rootChildren, facebook::react::ShadowTree::CommitOptions commitOptions);
|
||||
@@ -3692,7 +3694,6 @@ class facebook::react::UIManager : public facebook::react::ShadowTreeDelegate {
|
||||
public void setDelegate(facebook::react::UIManagerDelegate* delegate);
|
||||
public void setIsJSResponder(const std::shared_ptr<const facebook::react::ShadowNode>& shadowNode, bool isJSResponder, bool blockNativeResponder) const;
|
||||
public void setNativeAnimatedDelegate(std::weak_ptr<facebook::react::UIManagerNativeAnimatedDelegate> delegate);
|
||||
public void setOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback);
|
||||
public void setSurfaceProps(facebook::react::SurfaceId surfaceId, const std::string& moduleName, const folly::dynamic& props, facebook::react::DisplayMode displayMode) const noexcept;
|
||||
public void setViewTransitionDelegate(facebook::react::UIManagerViewTransitionDelegate* delegate);
|
||||
public void startEmptySurface(facebook::react::ShadowTree::Unique&& shadowTree) const noexcept;
|
||||
@@ -3763,8 +3764,8 @@ class facebook::react::UIManagerDelegate {
|
||||
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;
|
||||
public virtual void uiManagerShouldAddOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldRemoveEventListener(const std::shared_ptr<const facebook::react::EventListener>& listener) = 0;
|
||||
public virtual void uiManagerShouldSetOnSurfaceStartCallback(facebook::react::UIManagerDelegate::OnSurfaceStartCallback&& callback) = 0;
|
||||
public virtual void uiManagerShouldSynchronouslyUpdateViewOnUIThread(facebook::react::Tag tag, const folly::dynamic& props) = 0;
|
||||
public virtual ~UIManagerDelegate() noexcept = default;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user