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

Side by Side Diff: components/metrics/proto/translate_event.proto

Issue 2697703004: Allow TranslateRanker to override decisions taken by heuristics. (Closed)
Patch Set: Make ShouldSuppressBubbleUI easier to read. Created 3 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // Stores information about translate UI, translate Ranekr and user interaction. 5 // Stores information about translate UI, translate Ranekr and user interaction.
6 6
7 syntax = "proto2"; 7 syntax = "proto2";
8 8
9 option optimize_for = LITE_RUNTIME; 9 option optimize_for = LITE_RUNTIME;
10 option java_outer_classname = "TranslateEventProtos"; 10 option java_outer_classname = "TranslateEventProtos";
11 option java_package = "org.chromium.components.metrics"; 11 option java_package = "org.chromium.components.metrics";
12 12
13 package metrics; 13 package metrics;
14 14
15 // Stores information about a single interaction between a user and 15 // Stores information about a single interaction between a user and
16 // the Translate UI. Contains features used by Translate Ranker for 16 // the Translate UI. Contains features used by Translate Ranker for
17 // inference, information about the ranker model and its decision, as 17 // inference, information about the ranker model and its decision, as
18 // well as user or automated feedback from the Translate UI. 18 // well as user or automated feedback from the Translate UI.
19 // Next tag: 15 19 // Next tag: 16
20 message TranslateEventProto { 20 message TranslateEventProto {
21 // Language strings are two or three letter codes, with sometimes an extra 21 // Language strings are two or three letter codes, with sometimes an extra
22 // suffix (for e.g. chinese zh-TW or zh-CN). See 22 // suffix (for e.g. chinese zh-TW or zh-CN). See
23 // https://cs.chromium.org/chromium/src/components/translate/core/browser/tran slate_language_list.cc 23 // https://cs.chromium.org/chromium/src/components/translate/core/browser/tran slate_language_list.cc
24 // for a list of supported languages. 24 // for a list of supported languages.
25 // Source language of the translation. 25 // Source language of the translation.
26 optional string source_language = 1; 26 optional string source_language = 1;
27 // Target language of the translation. 27 // Target language of the translation.
28 optional string target_language = 2; 28 optional string target_language = 2;
29 29
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // The translate UI was not shown because the user is editing a form field. 132 // The translate UI was not shown because the user is editing a form field.
133 EDITABLE_FIELD_IS_ACTIVE = 23; 133 EDITABLE_FIELD_IS_ACTIVE = 23;
134 // The translate UI was not shown because the language is in the user's User 134 // The translate UI was not shown because the language is in the user's User
135 // Language Profile. 135 // Language Profile.
136 LANGUAGE_IN_ULP = 24; 136 LANGUAGE_IN_ULP = 24;
137 } 137 }
138 138
139 // Event received from translate UI. 139 // Event received from translate UI.
140 optional EventType event_type = 10; 140 optional EventType event_type = 10;
141 141
142 // Decisions that have been overriden by translate ranker (e.g.
143 // LANGUAGE_DISABLED_BY_AUTO_BLACKLIST).
144 repeated EventType decision_overrides = 15;
145
142 // The timestamp for the event, in seconds. 146 // The timestamp for the event, in seconds.
143 // This value comes from Chromium's TimeTicks::Now(), which is an abstract 147 // This value comes from Chromium's TimeTicks::Now(), which is an abstract
144 // time value that is guaranteed to always be increasing (regardless of 148 // time value that is guaranteed to always be increasing (regardless of
145 // Daylight Saving Time or any other changes to the system clock). 149 // Daylight Saving Time or any other changes to the system clock).
146 // These numbers are only comparable within a session. To sequence events 150 // These numbers are only comparable within a session. To sequence events
147 // across sessions, order by the |session_id| from the 151 // across sessions, order by the |session_id| from the
148 // ChromeUserMetricsExtension message. 152 // ChromeUserMetricsExtension message.
149 optional int64 event_timestamp_sec = 11; 153 optional int64 event_timestamp_sec = 11;
150 154
151 // Modified source language, if the user changed it. If changed more than 155 // Modified source language, if the user changed it. If changed more than
152 // once, we only keep the last one. 156 // once, we only keep the last one.
153 optional string modified_source_language = 12; 157 optional string modified_source_language = 12;
154 // Modified target language, if the user changed it. If changed more than 158 // Modified target language, if the user changed it. If changed more than
155 // once, we only keep the last one. 159 // once, we only keep the last one.
156 optional string modified_target_language = 13; 160 optional string modified_target_language = 13;
157 } 161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698