Use nested namespaces in UIManager module
Summary: Changelog: [internal] Use nested namespaces in UIManager module. Reviewed By: JoshuaGross Differential Revision: D27462611 fbshipit-source-id: 626510bf72a18303de55e5db3e13db4f415d799e
This commit is contained in:
Родитель
9ef995a14a
Коммит
3a3b61ce71
|
@ -7,8 +7,7 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
class LayoutAnimationStatusDelegate {
|
class LayoutAnimationStatusDelegate {
|
||||||
public:
|
public:
|
||||||
|
@ -26,5 +25,4 @@ class LayoutAnimationStatusDelegate {
|
||||||
virtual void onAllAnimationsComplete() = 0;
|
virtual void onAllAnimationsComplete() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -16,8 +16,7 @@
|
||||||
|
|
||||||
#include <glog/logging.h>
|
#include <glog/logging.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
static std::unique_ptr<LeakChecker> constructLeakChecker(
|
static std::unique_ptr<LeakChecker> constructLeakChecker(
|
||||||
RuntimeExecutor const &runtimeExecutor,
|
RuntimeExecutor const &runtimeExecutor,
|
||||||
|
@ -433,5 +432,4 @@ void UIManager::animationTick() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -24,8 +24,7 @@
|
||||||
#include <react/renderer/uimanager/UIManagerDelegate.h>
|
#include <react/renderer/uimanager/UIManagerDelegate.h>
|
||||||
#include <react/renderer/uimanager/primitives.h>
|
#include <react/renderer/uimanager/primitives.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
class UIManagerBinding;
|
class UIManagerBinding;
|
||||||
class UIManagerCommitHook;
|
class UIManagerCommitHook;
|
||||||
|
@ -194,5 +193,4 @@ class UIManager final : public ShadowTreeDelegate {
|
||||||
std::unique_ptr<LeakChecker> leakChecker_;
|
std::unique_ptr<LeakChecker> leakChecker_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
#include <react/renderer/componentregistry/ComponentDescriptorFactory.h>
|
#include <react/renderer/componentregistry/ComponentDescriptorFactory.h>
|
||||||
#include <react/renderer/core/RawValue.h>
|
#include <react/renderer/core/RawValue.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
class UIManagerAnimationDelegate {
|
class UIManagerAnimationDelegate {
|
||||||
public:
|
public:
|
||||||
|
@ -48,5 +47,4 @@ class UIManagerAnimationDelegate {
|
||||||
virtual void stopSurface(SurfaceId surfaceId) = 0;
|
virtual void stopSurface(SurfaceId surfaceId) = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
#include <react/renderer/core/LayoutableShadowNode.h>
|
#include <react/renderer/core/LayoutableShadowNode.h>
|
||||||
#include <react/renderer/debug/SystraceSection.h>
|
#include <react/renderer/debug/SystraceSection.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
static jsi::Value getModule(
|
static jsi::Value getModule(
|
||||||
jsi::Runtime &runtime,
|
jsi::Runtime &runtime,
|
||||||
|
@ -753,5 +752,4 @@ jsi::Value UIManagerBinding::get(
|
||||||
return jsi::Value::undefined();
|
return jsi::Value::undefined();
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -13,8 +13,7 @@
|
||||||
#include <react/renderer/uimanager/UIManager.h>
|
#include <react/renderer/uimanager/UIManager.h>
|
||||||
#include <react/renderer/uimanager/primitives.h>
|
#include <react/renderer/uimanager/primitives.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Exposes UIManager to JavaScript realm.
|
* Exposes UIManager to JavaScript realm.
|
||||||
|
@ -91,5 +90,4 @@ class UIManagerBinding : public jsi::HostObject {
|
||||||
std::unique_ptr<EventHandler const> eventHandler_;
|
std::unique_ptr<EventHandler const> eventHandler_;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -9,8 +9,7 @@
|
||||||
|
|
||||||
#include <react/renderer/components/root/RootShadowNode.h>
|
#include <react/renderer/components/root/RootShadowNode.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
class ShadowTree;
|
class ShadowTree;
|
||||||
class UIManager;
|
class UIManager;
|
||||||
|
@ -41,5 +40,4 @@ class UIManagerCommitHook {
|
||||||
virtual ~UIManagerCommitHook() noexcept = default;
|
virtual ~UIManagerCommitHook() noexcept = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -11,8 +11,7 @@
|
||||||
#include <react/renderer/core/ShadowNode.h>
|
#include <react/renderer/core/ShadowNode.h>
|
||||||
#include <react/renderer/mounting/MountingCoordinator.h>
|
#include <react/renderer/mounting/MountingCoordinator.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Abstract class for UIManager's delegate.
|
* Abstract class for UIManager's delegate.
|
||||||
|
@ -62,5 +61,4 @@ class UIManagerDelegate {
|
||||||
virtual ~UIManagerDelegate() noexcept = default;
|
virtual ~UIManagerDelegate() noexcept = default;
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
|
@ -14,8 +14,7 @@
|
||||||
#include <react/renderer/core/EventHandler.h>
|
#include <react/renderer/core/EventHandler.h>
|
||||||
#include <react/renderer/core/ShadowNode.h>
|
#include <react/renderer/core/ShadowNode.h>
|
||||||
|
|
||||||
namespace facebook {
|
namespace facebook::react {
|
||||||
namespace react {
|
|
||||||
|
|
||||||
using BackgroundExecutor =
|
using BackgroundExecutor =
|
||||||
std::function<void(std::function<void()> &&callback)>;
|
std::function<void(std::function<void()> &&callback)>;
|
||||||
|
@ -137,5 +136,4 @@ inline static folly::dynamic commandArgsFromValue(
|
||||||
return jsi::dynamicFromValue(runtime, value);
|
return jsi::dynamicFromValue(runtime, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace react
|
} // namespace facebook::react
|
||||||
} // namespace facebook
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче