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

Unified Diff: third_party/google_input_tools/src/chrome/os/datasource.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/datasource.js
diff --git a/third_party/google_input_tools/src/chrome/os/datasource.js b/third_party/google_input_tools/src/chrome/os/datasource.js
index e2c7f8594359fbe47483d85a9870b951fd1fde2f..ff413987f85b99d9f530904005295bcf19d5927c 100644
--- a/third_party/google_input_tools/src/chrome/os/datasource.js
+++ b/third_party/google_input_tools/src/chrome/os/datasource.js
@@ -30,7 +30,7 @@ var EventTarget = goog.events.EventTarget;
*
* @param {number} numOfCanddiate The number of canddiate to fetch.
* @param {function(string, !Array.<!Object>)} candidatesCallback .
- * @param {function(!Array.<string>)} gestureCallback .
+ * @param {function(!Object)} gestureCallback .
* @constructor
* @extends {EventTarget}
*/
@@ -48,7 +48,7 @@ i18n.input.chrome.DataSource = function(numOfCanddiate, candidatesCallback,
/** @protected {function(string, !Array.<!Object>)} */
this.candidatesCallback = candidatesCallback;
- /** @protected {function(!Array.<string>)} */
+ /** @protected {function(!Object)} */
this.gestureCallback = gestureCallback;
};
var DataSource = i18n.input.chrome.DataSource;
@@ -234,22 +234,23 @@ goog.inherits(DataSource.CandidatesBackEvent, Event);
/**
- * The gesture results are fetched back.
+ * The gesture response is fetched back.
*
- * @param {!Array.<!string>} results The gesture results.
+ * @param {!{results: !Array<string>, commit: boolean}} response The response
+ * from the gesture decoder.
* @constructor
* @extends {Event}
*/
-DataSource.GesturesBackEvent = function(results) {
+DataSource.GesturesBackEvent = function(response) {
DataSource.GesturesBackEvent.base(
this, 'constructor', DataSource.EventType.GESTURES_BACK);
/**
- * The gesture results list.
+ * The gesture response.
*
- * @type {!Array.<!string>}
+ * @type {!{results: !Array<string>, commit: boolean}}
*/
- this.results = results;
+ this.response = response;
};
goog.inherits(DataSource.GesturesBackEvent, Event);
« no previous file with comments | « third_party/google_input_tools/src/chrome/os/constant.js ('k') | third_party/google_input_tools/src/chrome/os/elementtype.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698