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

Unified Diff: ui/latency/mojo/latency_info_struct_traits.cc

Issue 2756893002: Add Keyboard Latency UMA Metrics. (Closed)
Patch Set: Restrict to RawKeyDown and Char events on Android & Mac 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/latency/mojo/latency_info.mojom ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/latency/mojo/latency_info_struct_traits.cc
diff --git a/ui/latency/mojo/latency_info_struct_traits.cc b/ui/latency/mojo/latency_info_struct_traits.cc
index e07ecc511e695193ab2f1a9c5fb147a744ef30e7..12daf3348620a48e7217aaaebb8a53d61b811828 100644
--- a/ui/latency/mojo/latency_info_struct_traits.cc
+++ b/ui/latency/mojo/latency_info_struct_traits.cc
@@ -160,6 +160,8 @@ ui::mojom::SourceEventType UISourceEventTypeToMojo(ui::SourceEventType type) {
return ui::mojom::SourceEventType::WHEEL;
case ui::TOUCH:
return ui::mojom::SourceEventType::TOUCH;
+ case ui::KEY_PRESS:
+ return ui::mojom::SourceEventType::KEY_PRESS;
case ui::OTHER:
return ui::mojom::SourceEventType::OTHER;
}
@@ -175,6 +177,8 @@ ui::SourceEventType MojoSourceEventTypeToUI(ui::mojom::SourceEventType type) {
return ui::WHEEL;
case ui::mojom::SourceEventType::TOUCH:
return ui::TOUCH;
+ case ui::mojom::SourceEventType::KEY_PRESS:
+ return ui::KEY_PRESS;
case ui::mojom::SourceEventType::OTHER:
return ui::OTHER;
}
« no previous file with comments | « ui/latency/mojo/latency_info.mojom ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698