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:
Samuel Susla 2021-04-01 04:49:14 -07:00 коммит произвёл Facebook GitHub Bot
Родитель 9ef995a14a
Коммит 3a3b61ce71
9 изменённых файлов: 18 добавлений и 36 удалений

Просмотреть файл

@ -7,8 +7,7 @@
#pragma once
namespace facebook {
namespace react {
namespace facebook::react {
class LayoutAnimationStatusDelegate {
public:
@ -26,5 +25,4 @@ class LayoutAnimationStatusDelegate {
virtual void onAllAnimationsComplete() = 0;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -16,8 +16,7 @@
#include <glog/logging.h>
namespace facebook {
namespace react {
namespace facebook::react {
static std::unique_ptr<LeakChecker> constructLeakChecker(
RuntimeExecutor const &runtimeExecutor,
@ -433,5 +432,4 @@ void UIManager::animationTick() {
}
}
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -24,8 +24,7 @@
#include <react/renderer/uimanager/UIManagerDelegate.h>
#include <react/renderer/uimanager/primitives.h>
namespace facebook {
namespace react {
namespace facebook::react {
class UIManagerBinding;
class UIManagerCommitHook;
@ -194,5 +193,4 @@ class UIManager final : public ShadowTreeDelegate {
std::unique_ptr<LeakChecker> leakChecker_;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -12,8 +12,7 @@
#include <react/renderer/componentregistry/ComponentDescriptorFactory.h>
#include <react/renderer/core/RawValue.h>
namespace facebook {
namespace react {
namespace facebook::react {
class UIManagerAnimationDelegate {
public:
@ -48,5 +47,4 @@ class UIManagerAnimationDelegate {
virtual void stopSurface(SurfaceId surfaceId) = 0;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -13,8 +13,7 @@
#include <react/renderer/core/LayoutableShadowNode.h>
#include <react/renderer/debug/SystraceSection.h>
namespace facebook {
namespace react {
namespace facebook::react {
static jsi::Value getModule(
jsi::Runtime &runtime,
@ -753,5 +752,4 @@ jsi::Value UIManagerBinding::get(
return jsi::Value::undefined();
}
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -13,8 +13,7 @@
#include <react/renderer/uimanager/UIManager.h>
#include <react/renderer/uimanager/primitives.h>
namespace facebook {
namespace react {
namespace facebook::react {
/*
* Exposes UIManager to JavaScript realm.
@ -91,5 +90,4 @@ class UIManagerBinding : public jsi::HostObject {
std::unique_ptr<EventHandler const> eventHandler_;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -9,8 +9,7 @@
#include <react/renderer/components/root/RootShadowNode.h>
namespace facebook {
namespace react {
namespace facebook::react {
class ShadowTree;
class UIManager;
@ -41,5 +40,4 @@ class UIManagerCommitHook {
virtual ~UIManagerCommitHook() noexcept = default;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -11,8 +11,7 @@
#include <react/renderer/core/ShadowNode.h>
#include <react/renderer/mounting/MountingCoordinator.h>
namespace facebook {
namespace react {
namespace facebook::react {
/*
* Abstract class for UIManager's delegate.
@ -62,5 +61,4 @@ class UIManagerDelegate {
virtual ~UIManagerDelegate() noexcept = default;
};
} // namespace react
} // namespace facebook
} // namespace facebook::react

Просмотреть файл

@ -14,8 +14,7 @@
#include <react/renderer/core/EventHandler.h>
#include <react/renderer/core/ShadowNode.h>
namespace facebook {
namespace react {
namespace facebook::react {
using BackgroundExecutor =
std::function<void(std::function<void()> &&callback)>;
@ -137,5 +136,4 @@ inline static folly::dynamic commandArgsFromValue(
return jsi::dynamicFromValue(runtime, value);
}
} // namespace react
} // namespace facebook
} // namespace facebook::react