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

Unified Diff: mojo/services/public/cpp/input_events/input_events_type_converters.h

Issue 413633003: Mojo: Introduces mojo::EventType and mojo::EventFlags (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Landing Created 6 years, 5 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: mojo/services/public/cpp/input_events/input_events_type_converters.h
diff --git a/mojo/services/public/cpp/input_events/input_events_type_converters.h b/mojo/services/public/cpp/input_events/input_events_type_converters.h
index 00a03ac2e77e0efc77d180b302af8c19d11f0a5e..64c164560499811682a506e263a0cfd123bf5da6 100644
--- a/mojo/services/public/cpp/input_events/input_events_type_converters.h
+++ b/mojo/services/public/cpp/input_events/input_events_type_converters.h
@@ -13,6 +13,13 @@
namespace mojo {
template<>
+class MOJO_INPUT_EVENTS_EXPORT TypeConverter<EventType, ui::EventType> {
+ public:
+ static EventType ConvertFrom(ui::EventType type);
+ static ui::EventType ConvertTo(EventType type);
+};
+
+template<>
class MOJO_INPUT_EVENTS_EXPORT TypeConverter<EventPtr, ui::Event> {
public:
static EventPtr ConvertFrom(const ui::Event& input);

Powered by Google App Engine
This is Rietveld 408576698