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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/events.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/events.js
diff --git a/third_party/google_input_tools/src/chrome/os/inputview/events.js b/third_party/google_input_tools/src/chrome/os/inputview/events.js
index 646298ffd0679158dcdd5baf42aa94968b06d976..317ebad78e46b21f6a2c087a5b2fe7dc73ae1c56 100644
--- a/third_party/google_input_tools/src/chrome/os/inputview/events.js
+++ b/third_party/google_input_tools/src/chrome/os/inputview/events.js
@@ -255,21 +255,25 @@ goog.inherits(events.DragEvent, events.PointerEvent);
/**
* The event when the surrounding text is changed.
*
- * @param {string} text The surrounding text.
+ * @param {string} textBeforeCursor The surrounding text before the cursor.
* @param {number} anchor .
* @param {number} focus .
+ * @param {number} offset .
* @constructor
* @extends {goog.events.Event}
*/
-events.SurroundingTextChangedEvent = function(text, anchor, focus) {
+events.SurroundingTextChangedEvent = function(textBeforeCursor,
+ anchor, focus, offset) {
goog.base(this, events.EventType.SURROUNDING_TEXT_CHANGED);
/** @type {string} */
- this.text = text;
+ this.textBeforeCursor = textBeforeCursor;
/** @type {number} */
this.anchor = anchor;
/** @type {number} */
this.focus = focus;
+ /** @type {number} */
+ this.offset = offset;
};
goog.inherits(events.SurroundingTextChangedEvent, goog.events.Event);

Powered by Google App Engine
This is Rietveld 408576698