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

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

Issue 828063007: Uprev Google Input Tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update extensions schema. Created 5 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 92416699d311cfee185bdc1fc0ca032de1759553..c6028187a70e8d28e7d409f5f767b8964b16fb45 100644
--- a/third_party/google_input_tools/src/chrome/os/datasource.js
+++ b/third_party/google_input_tools/src/chrome/os/datasource.js
@@ -50,6 +50,17 @@ var DataSource = i18n.input.chrome.DataSource;
goog.inherits(DataSource, EventTarget);
+/**
+ * The event type.
+ *
+ * @enum {string}
+ */
+DataSource.EventType = {
+ CANDIDATES_BACK: goog.events.getUniqueId('cb'),
+ READY: goog.events.getUniqueId('r')
+};
+
+
/** @type {boolean} */
DataSource.prototype.ready = false;
@@ -63,6 +74,14 @@ DataSource.prototype.correctionLevel = 0;
/**
+ * Whether user dict is enabled.
+ *
+ * @protected {boolean}
+ */
+DataSource.prototype.enableUserDict = false;
+
+
+/**
* The language code.
*
* @type {string}
@@ -116,6 +135,15 @@ DataSource.prototype.getInputToolCode = function() {
/**
+ * Sends completion request for a word.
+ *
+ * @param {string} word The word.
+ * @param {string} context The context.
+ */
+DataSource.prototype.sendCompletionRequestForWord = goog.functions.NULL;
+
+
+/**
* Sends completion request.
*
* @param {string} query The query .
@@ -130,8 +158,8 @@ DataSource.prototype.sendCompletionRequest = goog.functions.NULL;
*
* @param {boolean} enabled
*/
-DataSource.prototype.setUserDictEnabled = function(enabled) {
- this.userDictEnabled = enabled;
+DataSource.prototype.setEnableUserDict = function(enabled) {
+ this.enableUserDict = enabled;
};
@@ -154,20 +182,18 @@ DataSource.prototype.setCorrectionLevel = function(level) {
/**
- * Clears the data source.
+ * Commits text to the data source.
+ *
+ * @param {string} text The text to commit.
*/
-DataSource.prototype.clear = goog.functions.NULL;
+DataSource.prototype.commitText = goog.functions.NULL;
/**
- * The event type.
- *
- * @enum {string}
+ * Clears the data source.
*/
-DataSource.EventType = {
- CANDIDATES_BACK: goog.events.getUniqueId('cb'),
- READY: goog.events.getUniqueId('r')
-};
+DataSource.prototype.clear = goog.functions.NULL;
+
/**

Powered by Google App Engine
This is Rietveld 408576698