mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 14:46:12 -04:00
[Quick Share QR Code] Add log event when a QR code is opened in a web browser
PiperOrigin-RevId: 691518971
This commit is contained in:
@@ -32,7 +32,7 @@ option objc_class_prefix = "GNSHP";
|
||||
// in NearbyClearcutLogger (for android, or clearcut_event_logger as the
|
||||
// equivalence for Windows) for all events (may exclude settings), and
|
||||
// session_id for a pair of events (start and end of a session).
|
||||
// Next id: 71
|
||||
// Next id: 72
|
||||
enum EventType {
|
||||
UNKNOWN_EVENT_TYPE = 0;
|
||||
|
||||
@@ -306,6 +306,10 @@ enum EventType {
|
||||
// A QR code sharing session has started
|
||||
START_QR_CODE_SESSION = 70;
|
||||
|
||||
// A QR code URL has been opened in a web client/browser instead of in a
|
||||
// native Quick Share app.
|
||||
QR_CODE_OPENED_IN_WEB_CLIENT = 71;
|
||||
|
||||
// LINT.ThenChange(//depot/google3/location/nearby/proto/nearby_event_codes.proto:SharingEventCode)
|
||||
}
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ option objc_class_prefix = "GNCP";
|
||||
|
||||
// Top-level log proto for all NearbySharing logging.
|
||||
// Each log contains a key (event_type), value (a verb-noun event) pair.
|
||||
// Next Tag: 80
|
||||
// Next Tag: 81
|
||||
// LINT.IfChange
|
||||
message SharingLog {
|
||||
/* collection_basis = {
|
||||
@@ -216,6 +216,8 @@ message SharingLog {
|
||||
|
||||
optional StartQrCodeSession start_qr_code_session = 79;
|
||||
|
||||
optional QrCodeOpenedInWebClient qr_code_opened_in_web_client = 80;
|
||||
|
||||
// Used only for Nearby Share Windows app now.
|
||||
message AppInfo {
|
||||
// e.g. "1.0.408"
|
||||
@@ -934,5 +936,19 @@ message SharingLog {
|
||||
|
||||
// EventType: START_QR_CODE_SESSION
|
||||
message StartQrCodeSession {}
|
||||
|
||||
// EventType: QR_CODE_OPENED_IN_WEB_CLIENT
|
||||
message QrCodeOpenedInWebClient {
|
||||
enum ClientPlatform {
|
||||
UNKNOWN_CLIENT_PLATFORM = 0;
|
||||
// Used when the client platform is not one of the types below
|
||||
GENERIC = 1;
|
||||
ANDROID = 2;
|
||||
IOS = 3;
|
||||
CHROME_OS = 4;
|
||||
WINDOWS = 5;
|
||||
}
|
||||
optional ClientPlatform client_platform = 1;
|
||||
}
|
||||
}
|
||||
// LINT.ThenChange(//depot/google3/logs/proto/location/nearby/nearby_client_log.proto)
|
||||
|
||||
Reference in New Issue
Block a user