mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Support XR devices for QuickShare DeviceType
PiperOrigin-RevId: 758009685
This commit is contained in:
@@ -538,6 +538,8 @@ enum DeviceType {
|
|||||||
TABLET = 2;
|
TABLET = 2;
|
||||||
LAPTOP = 3;
|
LAPTOP = 3;
|
||||||
CAR = 4;
|
CAR = 4;
|
||||||
|
FOLDABLE = 5;
|
||||||
|
XR = 6;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO(fdi): may eventually include windows, iOS, etc.
|
// TODO(fdi): may eventually include windows, iOS, etc.
|
||||||
|
|||||||
@@ -101,6 +101,7 @@ bool IsKnownDeviceValue(int32_t value) {
|
|||||||
case 3:
|
case 3:
|
||||||
case 4:
|
case 4:
|
||||||
case 5:
|
case 5:
|
||||||
|
case 6:
|
||||||
return true;
|
return true;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -57,6 +57,8 @@ enum class ShareTargetType {
|
|||||||
kCar = 4,
|
kCar = 4,
|
||||||
// A foldable.
|
// A foldable.
|
||||||
kFoldable = 5,
|
kFoldable = 5,
|
||||||
|
// An XR device.
|
||||||
|
kXR = 6,
|
||||||
};
|
};
|
||||||
// LINT.ThenChange(
|
// LINT.ThenChange(
|
||||||
// //depot/google3/location/nearby/cpp/sharing/clients/proto/share_target.proto:ShareTarget.ShareTargetType,
|
// //depot/google3/location/nearby/cpp/sharing/clients/proto/share_target.proto:ShareTarget.ShareTargetType,
|
||||||
|
|||||||
Reference in New Issue
Block a user