| 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;
|
| +
|
|
|
|
|
| /**
|
|
|