2018-08-27 07:21:09 -07:00
|
|
|
/**
|
2018-09-11 15:27:47 -07:00
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
2018-08-27 07:21:09 -07:00
|
|
|
*
|
|
|
|
* 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 <memory>
|
|
|
|
|
|
|
|
#include <fabric/events/primitives.h>
|
2018-10-09 16:25:13 -07:00
|
|
|
#include <folly/dynamic.h>
|
2018-08-27 07:21:09 -07:00
|
|
|
|
|
|
|
namespace facebook {
|
|
|
|
namespace react {
|
|
|
|
|
|
|
|
/*
|
2018-09-13 22:56:06 -07:00
|
|
|
* Represents ready-to-dispatch event object.
|
2018-08-27 07:21:09 -07:00
|
|
|
*/
|
|
|
|
class RawEvent {
|
2018-10-09 16:25:13 -07:00
|
|
|
public:
|
2018-08-27 07:21:09 -07:00
|
|
|
RawEvent(
|
2018-10-09 16:25:13 -07:00
|
|
|
std::string type,
|
|
|
|
folly::dynamic payload,
|
|
|
|
WeakEventTarget eventTarget);
|
2018-08-27 07:21:09 -07:00
|
|
|
|
|
|
|
const std::string type;
|
|
|
|
const folly::dynamic payload;
|
2018-09-13 22:56:00 -07:00
|
|
|
const WeakEventTarget eventTarget;
|
2018-08-27 07:21:09 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace react
|
|
|
|
} // namespace facebook
|