Bug 1881749 - Collect screen orientation. r=tjr

Differential Revision: https://phabricator.services.mozilla.com/D202573
This commit is contained in:
Fatih 2024-05-29 19:35:11 +00:00
parent 1f272c3277
commit 6f2eb9b415
2 changed files with 22 additions and 0 deletions

View file

@ -442,6 +442,25 @@ characteristics:
data_sensitivity:
- technical
screen_orientation:
type: quantity
unit: enum hal::ScreenOrientation value
description: >
Orientation of the primary screen.
lifetime: application
send_in_pings:
- user-characteristics
notification_emails:
- tom@mozilla.com
bugs:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1879151
- https://bugzilla.mozilla.org/show_bug.cgi?id=1881749
data_reviews:
- https://bugzilla.mozilla.org/show_bug.cgi?id=1881749#c5
expires: never
data_sensitivity:
- technical
screen_height:
type: quantity
unit: pixels

View file

@ -171,6 +171,9 @@ void PopulateScreenProperties() {
glean::characteristics::screen_width.Set(rect.Width());
glean::characteristics::video_dynamic_range.Set(screen->GetIsHDR());
mozilla::glean::characteristics::screen_orientation.Set(
(int)screen->GetOrientationType());
}
void PopulateMissingFonts() {