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

Unified Diff: third_party/google_input_tools/src/chrome/os/statistics.js

Issue 1576613002: Update Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing APIs, remove bade dependencies. Created 4 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/google_input_tools/src/chrome/os/statistics.js
diff --git a/third_party/google_input_tools/src/chrome/os/statistics.js b/third_party/google_input_tools/src/chrome/os/statistics.js
index 2ec93aa8e2794d2f3585c564d702934bfef0e409..7164876856c606c10812883e47f2fcd1412f8019 100644
--- a/third_party/google_input_tools/src/chrome/os/statistics.js
+++ b/third_party/google_input_tools/src/chrome/os/statistics.js
@@ -52,7 +52,7 @@ Statistics.LayoutTypes = {
* The commit type for stats.
* Keep this in sync with the enum IMECommitType2 in histograms.xml file in
* chromium.
- * For adding new items, please append it at the end.
+ * Please append new items at the end.
*
* @enum {number}
*/
@@ -71,6 +71,33 @@ Statistics.CommitTypes = {
/**
+ * The event type for gestures typing actions.
+ * Keep this in sync with the enum IMEGestureEventType in histograms.xml file in
+ * chromium.
+ * Please append new items at the end.
+ *
+ * @enum {number}
+ */
+Statistics.GestureTypingEvent = {
+ TYPED: 0,
+ DELETED: 1,
+ REPLACED_0: 2, // User chooses 1st suggestion.
+ REPLACED_1: 3, // User chooses 2nd suggestion.
+ REPLACED_2: 4, // User chooses 3rd suggestion.
+ MAX: 5
+};
+
+
+/**
+ * Name to use when logging gesture typing metrics.
+ *
+ * @const {string}
+ */
+Statistics.GESTURE_TYPING_METRIC_NAME =
+ 'InputMethod.VirtualKeyboard.GestureTypingEvent';
+
+
+/**
* The current input method id.
*
* @private {string}
« no previous file with comments | « third_party/google_input_tools/src/chrome/os/sounds/soundcontroller.js ('k') | ui/keyboard/resources/inputview_adapter.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698