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

Unified Diff: ui/events/devices/mojo/input_device_struct_traits.cc

Issue 2253293002: Mojo C++ bindings: change the first template parameter of StructTraits and UnionTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@91_extra
Patch Set: rebase Created 4 years, 4 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 | « ui/events/devices/mojo/input_device_struct_traits.h ('k') | ui/events/latency_info.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/devices/mojo/input_device_struct_traits.cc
diff --git a/ui/events/devices/mojo/input_device_struct_traits.cc b/ui/events/devices/mojo/input_device_struct_traits.cc
index 60c1d53b04e57300d626befc56358c565139cec2..1da11a3974dbd0e9bd805bdaef746ea7cebfe92c 100644
--- a/ui/events/devices/mojo/input_device_struct_traits.cc
+++ b/ui/events/devices/mojo/input_device_struct_traits.cc
@@ -44,7 +44,7 @@ bool EnumTraits<ui::mojom::InputDeviceType, ui::InputDeviceType>::FromMojom(
return true;
}
-bool StructTraits<ui::mojom::InputDevice, ui::InputDevice>::Read(
+bool StructTraits<ui::mojom::InputDeviceDataView, ui::InputDevice>::Read(
ui::mojom::InputDeviceDataView data,
ui::InputDevice* out) {
out->id = data.id();
@@ -96,9 +96,9 @@ bool EnumTraits<ui::mojom::StylusState, ui::StylusState>::FromMojom(
return true;
}
-bool StructTraits<ui::mojom::TouchscreenDevice, ui::TouchscreenDevice>::Read(
- ui::mojom::TouchscreenDeviceDataView data,
- ui::TouchscreenDevice* out) {
+bool StructTraits<ui::mojom::TouchscreenDeviceDataView, ui::TouchscreenDevice>::
+ Read(ui::mojom::TouchscreenDeviceDataView data,
+ ui::TouchscreenDevice* out) {
if (!data.ReadInputDevice(static_cast<ui::InputDevice*>(out)))
return false;
« no previous file with comments | « ui/events/devices/mojo/input_device_struct_traits.h ('k') | ui/events/latency_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698