blob: 459f240f85ba3e61e15ab5a4da630acf0245b826 [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/events/mojo/event.mojom.h"
namespace ui {
class Event;
namespace mojo {
using EventUniquePtr = std::unique_ptr<ui::Event>;
template <>
struct StructTraits<ui::mojom::EventDataView, EventUniquePtr> {
static ui::mojom::EventType action(const EventUniquePtr& event);
static int32_t flags(const EventUniquePtr& event);
static int64_t time_stamp(const EventUniquePtr& event);
static ui::mojom::KeyDataPtr key_data(const EventUniquePtr& event);
static ui::mojom::PointerDataPtr pointer_data(const EventUniquePtr& event);
static bool Read(ui::mojom::EventDataView r, EventUniquePtr* out);
} // namespace mojo