Support XR devices for QuickShare DeviceType

PiperOrigin-RevId: 758009685
This commit is contained in:
hai007
2025-05-12 19:41:03 -07:00
committed by Copybara-Service
parent ed73963b6b
commit 2add27671b
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -538,6 +538,8 @@ enum DeviceType {
TABLET = 2;
LAPTOP = 3;
CAR = 4;
FOLDABLE = 5;
XR = 6;
}
// TODO(fdi): may eventually include windows, iOS, etc.
+1
View File
@@ -101,6 +101,7 @@ bool IsKnownDeviceValue(int32_t value) {
case 3:
case 4:
case 5:
case 6:
return true;
default:
return false;
+2
View File
@@ -57,6 +57,8 @@ enum class ShareTargetType {
kCar = 4,
// A foldable.
kFoldable = 5,
// An XR device.
kXR = 6,
};
// LINT.ThenChange(
// //depot/google3/location/nearby/cpp/sharing/clients/proto/share_target.proto:ShareTarget.ShareTargetType,