Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1030)

Unified Diff: ui/events/mojo/event.typemap

Issue 1939133002: StructTraits to map mus::mojom::Event to unique_ptr<ui::Event> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/events/mojo/event.typemap
diff --git a/ui/events/mojo/event.typemap b/ui/events/mojo/event.typemap
new file mode 100644
index 0000000000000000000000000000000000000000..9b5bce93567a0f73369f29eb91ea35af0e0f6932
--- /dev/null
+++ b/ui/events/mojo/event.typemap
@@ -0,0 +1,17 @@
+# 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 = "//components/mus/public/interfaces/input_events.mojom"
+public_headers = [ "//ui/events/event.h" ]
+traits_headers = [ "//ui/events/mojo/event_struct_traits.h" ]
+deps = [
+ "//ui/events:dom_keycode_converter",
+ "//ui//events",
+]
+sources = [
+ "//ui/events/mojo/event_struct_traits.h",
+ "//ui/events/mojo/event_struct_traits.cc",
+]
+# TODO(moshayedi): crbug.com/617167. Map mojom.Event directly to ui::Event.
+type_mappings = [ "mus.mojom.Event=std::unique_ptr<ui::Event>(pass_by_value)" ]
« no previous file with comments | « mojo/public/tools/bindings/chromium_bindings_configuration.gni ('k') | ui/events/mojo/event_struct_traits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698