File tree Expand file tree Collapse file tree
packages/react-native/ReactCommon/jsi/jsi
scripts/cxx-api/api-snapshots Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -26,7 +26,6 @@ namespace debugger {
2626class Debugger ;
2727}
2828
29- #ifdef JSI_UNSTABLE
3029// / IEventLoopControl is defined by the integrator to allow the Runtime to
3130// / schedule some task to be run when convenient, and to keep track of "Task
3231// / sources". After it is set to a Runtime, the integrator must ensure that the
@@ -79,7 +78,6 @@ struct JSI_EXPORT ISetEventLoopControl : public jsi::ICast {
7978 protected:
8079 ~ISetEventLoopControl () = default ;
8180};
82- #endif
8381
8482// / Interface for Hermes-specific runtime methods.The actual implementations of
8583// / the pure virtual methods are provided by Hermes API.
Original file line number Diff line number Diff line change @@ -438,6 +438,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
438438 public virtual SHUnitCreator getSHUnitCreator() const = 0;
439439}
440440
441+ struct facebook::hermes::IEventLoopControl {
442+ protected ~IEventLoopControl() = default;
443+ public virtual uint64_t registerTaskQueueSource() = 0;
444+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
445+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
446+ }
447+
448+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
449+ protected ~ISetEventLoopControl() = default;
450+ public static constexpr facebook::jsi::UUID uuid;
451+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
452+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
453+ }
454+
441455
442456const char facebook::react::AndroidHorizontalScrollContentViewShadowNodeComponentName[];
443457const char facebook::react::AndroidProgressBarComponentName[];
Original file line number Diff line number Diff line change @@ -438,6 +438,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
438438 public virtual SHUnitCreator getSHUnitCreator() const = 0;
439439}
440440
441+ struct facebook::hermes::IEventLoopControl {
442+ protected ~IEventLoopControl() = default;
443+ public virtual uint64_t registerTaskQueueSource() = 0;
444+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
445+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
446+ }
447+
448+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
449+ protected ~ISetEventLoopControl() = default;
450+ public static constexpr facebook::jsi::UUID uuid;
451+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
452+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
453+ }
454+
441455
442456const char facebook::react::AndroidHorizontalScrollContentViewShadowNodeComponentName[];
443457const char facebook::react::AndroidProgressBarComponentName[];
Original file line number Diff line number Diff line change @@ -438,6 +438,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
438438 public virtual SHUnitCreator getSHUnitCreator() const = 0;
439439}
440440
441+ struct facebook::hermes::IEventLoopControl {
442+ protected ~IEventLoopControl() = default;
443+ public virtual uint64_t registerTaskQueueSource() = 0;
444+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
445+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
446+ }
447+
448+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
449+ protected ~ISetEventLoopControl() = default;
450+ public static constexpr facebook::jsi::UUID uuid;
451+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
452+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
453+ }
454+
441455
442456const char facebook::react::AndroidHorizontalScrollContentViewShadowNodeComponentName[];
443457const char facebook::react::AndroidProgressBarComponentName[];
Original file line number Diff line number Diff line change @@ -136,6 +136,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
136136 public virtual SHUnitCreator getSHUnitCreator() const = 0;
137137}
138138
139+ struct facebook::hermes::IEventLoopControl {
140+ protected ~IEventLoopControl() = default;
141+ public virtual uint64_t registerTaskQueueSource() = 0;
142+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
143+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
144+ }
145+
146+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
147+ protected ~ISetEventLoopControl() = default;
148+ public static constexpr facebook::jsi::UUID uuid;
149+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
150+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
151+ }
152+
139153
140154const char facebook::react::AndroidProgressBarComponentName[];
141155const char facebook::react::AndroidSwitchComponentName[];
Original file line number Diff line number Diff line change @@ -136,6 +136,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
136136 public virtual SHUnitCreator getSHUnitCreator() const = 0;
137137}
138138
139+ struct facebook::hermes::IEventLoopControl {
140+ protected ~IEventLoopControl() = default;
141+ public virtual uint64_t registerTaskQueueSource() = 0;
142+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
143+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
144+ }
145+
146+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
147+ protected ~ISetEventLoopControl() = default;
148+ public static constexpr facebook::jsi::UUID uuid;
149+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
150+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
151+ }
152+
139153
140154const char facebook::react::AndroidProgressBarComponentName[];
141155const char facebook::react::AndroidSwitchComponentName[];
Original file line number Diff line number Diff line change @@ -136,6 +136,20 @@ class facebook::hermes::IHermesSHUnit : public facebook::jsi::ICast {
136136 public virtual SHUnitCreator getSHUnitCreator() const = 0;
137137}
138138
139+ struct facebook::hermes::IEventLoopControl {
140+ protected ~IEventLoopControl() = default;
141+ public virtual uint64_t registerTaskQueueSource() = 0;
142+ public virtual void scheduleTask(const std::function<void()>& task) = 0;
143+ public virtual void unregisterTaskQueueSource(uint64_t sourceId) = 0;
144+ }
145+
146+ struct facebook::hermes::ISetEventLoopControl : public facebook::jsi::ICast {
147+ protected ~ISetEventLoopControl() = default;
148+ public static constexpr facebook::jsi::UUID uuid;
149+ public virtual facebook::hermes::IEventLoopControl* getEventLoopControl() = 0;
150+ public virtual void setEventLoopControl(facebook::hermes::IEventLoopControl* eventLoopControl) = 0;
151+ }
152+
139153
140154const char facebook::react::AndroidProgressBarComponentName[];
141155const char facebook::react::AndroidSwitchComponentName[];
You can’t perform that action at this time.
0 commit comments