#ifndef UI_EVENTS_ANDROID_PLATFORM_EVENT_ANDROID_H_
#define UI_EVENTS_ANDROID_PLATFORM_EVENT_ANDROID_H_
#include <variant>
#include "ui/events/android/key_event_android.h"
#include "ui/events/events_export.h"
namespace ui {
class EVENTS_EXPORT PlatformEventAndroid {
public:
PlatformEventAndroid();
explicit PlatformEventAndroid(const KeyEventAndroid& key_event);
PlatformEventAndroid(const PlatformEventAndroid& other);
PlatformEventAndroid& operator=(const PlatformEventAndroid& other);
~PlatformEventAndroid();
bool IsKeyboardEvent() const;
const KeyEventAndroid* AsKeyboardEventAndroid() const;
private:
std::variant<std::monostate, KeyEventAndroid> event_;
};
}
#endif