Chromium Code Reviews| Index: components/sync/protocol/user_event_specifics.proto |
| diff --git a/components/sync/protocol/user_event_specifics.proto b/components/sync/protocol/user_event_specifics.proto |
| index d02b2833eb7ca9db5b8859bb587a5b799e961b5b..6982df8bd746ecdfb52f369363386d4ad31b0f5b 100644 |
| --- a/components/sync/protocol/user_event_specifics.proto |
| +++ b/components/sync/protocol/user_event_specifics.proto |
| @@ -39,6 +39,30 @@ message LanguageDetection { |
| optional string adopted_language = 2; |
| } |
| +// User translated a page or interacted with translate suggestion. |
| +message Translation { |
| + // Source language of the translation. |
| + optional string from_language_code = 1; |
| + // Target language of the translation. |
| + optional string to_language_code = 2; |
| + enum Interaction { |
|
napper
2017/05/29 00:23:49
You also need:
- never translate language
- never
renjieliu1
2017/05/29 00:45:59
Done.
|
| + UNKNOWN = 0; |
| + ACCEPTED = 1; |
| + REJECTED = 2; |
| + // This happens when user scroll or click outside the UI without |
| + // translation. |
| + IGNORED = 3; |
| + // This happens when user choose to close the translation window without |
| + // translation. |
| + DISMISSED = 4; |
| + // User manually entered either language. |
| + // In this case, from_language_code and to_language_code will be user chosen |
| + // values. |
| + MANUAL = 5; |
| + } |
| + optional Interaction interaction = 3; |
| +} |
| + |
| message UserEventSpecifics { |
| // Time of event, as measured on the client (unix epoch). |
| optional int64 event_time_usec = 1; |
| @@ -53,5 +77,6 @@ message UserEventSpecifics { |
| oneof event { |
| FieldTrialEvent field_trial_event = 4; |
| LanguageDetection language_detection = 5; |
| + Translation translation = 6; |
| } |
| } |