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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/covariance.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/inputview/covariance.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/covariance.js b/third_party/google_input_tools/src/chrome/os/inputview/covariance.js
index facf5c11fe4989e39b27a176e2cba7e83e46ec40..f85e19126ad5432c446b747eb0d0ae584d9e1c44 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/covariance.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/covariance.js
@@ -13,11 +13,12 @@
//
goog.provide('i18n.input.chrome.inputview.Covariance');
-goog.require('i18n.input.chrome.inputview.elements.ElementType');
+goog.require('goog.object');
+goog.require('i18n.input.chrome.ElementType');
goog.scope(function() {
-var ElementType = i18n.input.chrome.inputview.elements.ElementType;
+var ElementType = i18n.input.chrome.ElementType;
@@ -53,7 +54,7 @@ Covariance.BreakDown = {
Covariance.ElementTypeMap = goog.object.create(
ElementType.CHARACTER_KEY, 0,
ElementType.COMPACT_KEY, 1
-);
+ );
/**
@@ -101,11 +102,12 @@ Covariance.prototype.update = function(isWideScreen, isHorizontal, isA11y) {
* Gets the covariance value.
*
* @param {ElementType} type .
+ * @return {number} The value.
*/
Covariance.prototype.getValue = function(type) {
var index = Covariance.ElementTypeMap[type];
return Covariance.VALUE_[this.breakDown_][index];
};
-}); // goog.scope
+}); // goog.scope

Powered by Google App Engine
This is Rietveld 408576698