blob: 74b8864cf8a74ddf1a3b642260c769a48eab0eb0 [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.
mojom = "//ui/events/mojo/event.mojom"
public_headers = [ "//ui/events/event.h" ]
traits_headers = [ "//ui/events/mojo/event_struct_traits.h" ]
public_deps = [
"//ui/events",
"//ui/events:dom_keycode_converter",
"//ui/gfx/geometry/mojo",
"//ui/latency/mojo:interfaces",
]
deps = [
"//ipc:param_traits",
]
sources = [
"//ui/events/mojo/event_struct_traits.cc",
"//ui/events/mojo/event_struct_traits.h",
]
# TODO(moshayedi): crbug.com/617167. Map mojom.Event directly to ui::Event.
type_mappings = [
"ui.mojom.Event=std::unique_ptr<ui::Event>[move_only]",
"ui.mojom.EventMomentumPhase=ui::EventMomentumPhase",
"ui.mojom.PointerDetails=ui::PointerDetails",
"ui.mojom.ScrollEventPhase=ui::ScrollEventPhase",
"ui.mojom.GestureDeviceType=ui::GestureDeviceType",
]