Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: components/sync/protocol/user_event_specifics.proto

Issue 2938133003: Split translate_event.proto AUTOMATICALLY_TRANSLATED. (Closed)
Patch Set: updates Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // User sets always translate in user settings.
67 AUTO_TRANSLATION_BY_PREF = 7;
68 // User navigated through a click from a translated page.
69 AUTO_TRANSLATION_BY_LINK = 8;
67 } 70 }
68 optional Interaction interaction = 3; 71 optional Interaction interaction = 3;
69 } 72 }
70 73
71 message UserEventSpecifics { 74 message UserEventSpecifics {
72 // Time of event, as measured by client in microseconds since Windows epoch. 75 // Time of event, as measured by client in microseconds since Windows epoch.
73 optional int64 event_time_usec = 1; 76 optional int64 event_time_usec = 1;
74 77
75 // The |global_id| field of the associated navigation, if there is one. 78 // The |global_id| field of the associated navigation, if there is one.
76 optional int64 navigation_id = 2; 79 optional int64 navigation_id = 2;
77 80
78 // On startup we generate a new random id to identify which FieldTrialEvents 81 // On startup we generate a new random id to identify which FieldTrialEvents
79 // other events belonged to. 82 // other events belonged to.
80 optional fixed64 session_id = 3; 83 optional fixed64 session_id = 3;
81 84
82 oneof event { 85 oneof event {
83 FieldTrialEvent field_trial_event = 4; 86 FieldTrialEvent field_trial_event = 4;
84 LanguageDetection language_detection = 5; 87 LanguageDetection language_detection = 5;
85 Translation translation = 6; 88 Translation translation = 6;
86 } 89 }
87 } 90 }
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_enum_conversions.cc ('k') | components/translate/core/browser/translate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698