mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Summary: @public Now it's clear that we don't need to store/handle ShadowTree objects as `shared_ptr`s; Scheduler should own it. This diff changes that to using unique_ptr and removes a base class of ShadowTree. Reviewed By: mdvacca Differential Revision: D9403567 fbshipit-source-id: 6e411714b632a04233fd5b25c8ab7cdd260105fd
29 lines
628 B
C++
29 lines
628 B
C++
// Copyright (c) 2004-present, Facebook, Inc.
|
|
|
|
// This source code is licensed under the MIT license found in the
|
|
// LICENSE file in the root directory of this source tree.
|
|
|
|
#pragma once
|
|
|
|
#include <fabric/uimanager/ShadowViewMutation.h>
|
|
|
|
namespace facebook {
|
|
namespace react {
|
|
|
|
class ShadowTree;
|
|
|
|
/*
|
|
* Abstract class for ShadowTree's delegate.
|
|
*/
|
|
class ShadowTreeDelegate {
|
|
public:
|
|
|
|
/*
|
|
* Called right after Shadow Tree commit a new state of the the tree.
|
|
*/
|
|
virtual void shadowTreeDidCommit(const ShadowTree &shadowTree, const ShadowViewMutationList &mutations) = 0;
|
|
};
|
|
|
|
} // namespace react
|
|
} // namespace facebook
|