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

Unified Diff: mojo/converters/blink/blink_input_events_type_converters.h

Issue 1949893003: Convert ui::Event directly to blink::WebInputEvent. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another try to fix link error Created 4 years, 7 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
« no previous file with comments | « mojo/converters/blink/DEPS ('k') | mojo/converters/blink/blink_input_events_type_converters.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/converters/blink/blink_input_events_type_converters.h
diff --git a/mojo/converters/blink/blink_input_events_type_converters.h b/mojo/converters/blink/blink_input_events_type_converters.h
index 9e7fc7de869396692fd701330cbfb538f16ccc6b..3231eab0ed4400026275dc103f7367ad344b6034 100644
--- a/mojo/converters/blink/blink_input_events_type_converters.h
+++ b/mojo/converters/blink/blink_input_events_type_converters.h
@@ -7,20 +7,23 @@
#include <memory>
-#include "components/mus/public/interfaces/input_events.mojom.h"
#include "mojo/converters/blink/mojo_blink_export.h"
+#include "mojo/public/cpp/bindings/type_converter.h"
namespace blink {
class WebInputEvent;
}
+namespace ui {
+class Event;
+}
+
namespace mojo {
template <>
struct MOJO_BLINK_EXPORT
- TypeConverter<std::unique_ptr<blink::WebInputEvent>, mus::mojom::EventPtr> {
- static std::unique_ptr<blink::WebInputEvent> Convert(
- const mus::mojom::EventPtr& input);
+ TypeConverter<std::unique_ptr<blink::WebInputEvent>, ui::Event> {
+ static std::unique_ptr<blink::WebInputEvent> Convert(const ui::Event& input);
};
} // namespace mojo
« no previous file with comments | « mojo/converters/blink/DEPS ('k') | mojo/converters/blink/blink_input_events_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698