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

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

Issue 2827803002: Make Interaction Media Features MQ dynamic on Linux. (Closed)
Patch Set: Patch for landing, added the mojo bits Created 3 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 | « ui/events/devices/input_device.h ('k') | ui/events/devices/mojo/input_devices.mojom » ('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 2e436c30782a1845a5c7d8a91d9e894ac31cebd6..f16bbc45366ed9fcd5195aa9516feff722c76fae 100644
--- a/ui/events/devices/mojo/input_device_struct_traits.h
+++ b/ui/events/devices/mojo/input_device_struct_traits.h
@@ -34,6 +34,8 @@ struct StructTraits<ui::mojom::InputDeviceDataView, ui::InputDevice> {
return device.name;
}
+ static bool enabled(const ui::InputDevice& device) { return device.enabled; }
+
static std::string sys_path(const ui::InputDevice& device) {
return device.sys_path.AsUTF8Unsafe();
}
« no previous file with comments | « ui/events/devices/input_device.h ('k') | ui/events/devices/mojo/input_devices.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698