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

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

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/display/display.h ('k') | ui/events/devices/mojo/input_device_struct_traits.cc » ('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.h
diff --git a/ui/events/devices/mojo/input_device_struct_traits.h b/ui/events/devices/mojo/input_device_struct_traits.h
index 8a07d0c0b16e4607355784f3c75d2848b291fd38..2e436c30782a1845a5c7d8a91d9e894ac31cebd6 100644
--- a/ui/events/devices/mojo/input_device_struct_traits.h
+++ b/ui/events/devices/mojo/input_device_struct_traits.h
@@ -23,7 +23,7 @@ struct EnumTraits<ui::mojom::InputDeviceType, ui::InputDeviceType> {
};
template <>
-struct StructTraits<ui::mojom::InputDevice, ui::InputDevice> {
+struct StructTraits<ui::mojom::InputDeviceDataView, ui::InputDevice> {
static int32_t id(const ui::InputDevice& device) { return device.id; }
static ui::InputDeviceType type(const ui::InputDevice& device) {
@@ -56,7 +56,8 @@ struct EnumTraits<ui::mojom::StylusState, ui::StylusState> {
};
template <>
-struct StructTraits<ui::mojom::TouchscreenDevice, ui::TouchscreenDevice> {
+struct StructTraits<ui::mojom::TouchscreenDeviceDataView,
+ ui::TouchscreenDevice> {
static const ui::InputDevice& input_device(
const ui::TouchscreenDevice& device) {
return static_cast<const ui::InputDevice&>(device);
« no previous file with comments | « ui/display/display.h ('k') | ui/events/devices/mojo/input_device_struct_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698