2018-05-22 15:48:19 -07:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-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
|
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
enum class EventPriority {
|
|
|
|
SynchronousUnbatched,
|
|
|
|
SynchronousBatched,
|
|
|
|
AsynchronousUnbatched,
|
|
|
|
AsynchronousBatched,
|
|
|
|
|
|
|
|
Sync = SynchronousUnbatched,
|
|
|
|
Work = SynchronousBatched,
|
|
|
|
Interactive = AsynchronousUnbatched,
|
|
|
|
Deferred = AsynchronousBatched,
|
|
|
|
};
|
|
|
|
|
2018-05-29 11:20:04 -07:00
|
|
|
// `InstanceHandler`, `EventTarget`, and `EventHandler` are all opaque
|
|
|
|
// raw pointers. We use `struct {} *` trick to differentiate them in compiler's
|
|
|
|
// eyes to ensure type safety.
|
|
|
|
using EventTarget = struct {} *;
|
|
|
|
using EventHandler = struct {} *;
|
|
|
|
|
2018-05-22 15:48:19 -07:00
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|