OLD | NEW |
---|---|
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 // | 4 // |
5 // Sync protocol datatype extension for user events. | 5 // Sync protocol datatype extension for user events. |
6 | 6 |
7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_value_conversions{.h,.cc,_unittest.cc} if you change |
8 // any fields in this file. | 8 // any fields in this file. |
9 | 9 |
10 syntax = "proto2"; | 10 syntax = "proto2"; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
56 // translation. | 56 // translation. |
57 DISMISSED = 4; | 57 DISMISSED = 4; |
58 // User manually entered either language. | 58 // User manually entered either language. |
59 // In this case, from_language_code and to_language_code will be user chosen | 59 // In this case, from_language_code and to_language_code will be user chosen |
60 // values. | 60 // values. |
61 MANUAL = 5; | 61 MANUAL = 5; |
62 // User choose to revert the translation, in this case, from_language_code | 62 // User choose to revert the translation, in this case, from_language_code |
63 // and to_language_code will be previous chosen values. | 63 // and to_language_code will be previous chosen values. |
64 TRANSLATION_REVERTED = 6; | 64 TRANSLATION_REVERTED = 6; |
65 // Automatically triggered translation. | 65 // Automatically triggered translation. |
66 AUTOMATIC_TRANSLATION = 7; | 66 AUTO_TRANSLATION_BY_PREF = 7; |
groby-ooo-7-16
2017/06/20 04:17:17
Please comment on the difference. (It's obvious ri
renjieliu1
2017/06/20 04:51:38
Done.
| |
67 AUTO_TRANSLATION_BY_LINK = 8; | |
67 } | 68 } |
68 optional Interaction interaction = 3; | 69 optional Interaction interaction = 3; |
69 } | 70 } |
70 | 71 |
71 message UserEventSpecifics { | 72 message UserEventSpecifics { |
72 // Time of event, as measured on the client (unix epoch). | 73 // Time of event, as measured on the client (unix epoch). |
73 optional int64 event_time_usec = 1; | 74 optional int64 event_time_usec = 1; |
74 | 75 |
75 // The |global_id| field of the associated navigation, if there is one. | 76 // The |global_id| field of the associated navigation, if there is one. |
76 optional int64 navigation_id = 2; | 77 optional int64 navigation_id = 2; |
77 | 78 |
78 // On startup we generate a new random id to identify which FieldTrialEvents | 79 // On startup we generate a new random id to identify which FieldTrialEvents |
79 // other events belonged to. | 80 // other events belonged to. |
80 optional fixed64 session_id = 3; | 81 optional fixed64 session_id = 3; |
81 | 82 |
82 oneof event { | 83 oneof event { |
83 FieldTrialEvent field_trial_event = 4; | 84 FieldTrialEvent field_trial_event = 4; |
84 LanguageDetection language_detection = 5; | 85 LanguageDetection language_detection = 5; |
85 Translation translation = 6; | 86 Translation translation = 6; |
86 } | 87 } |
87 } | 88 } |
OLD | NEW |