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

Unified Diff: third_party/google_input_tools/src/chrome/os/inputview/events.js

Issue 1046933003: Updates google-input-tools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 01dccb266ed549534ae5d6148114c0356545c53c..14bd370c6ce155ea693397e9672c8812c29e10b1 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
@@ -110,11 +110,13 @@ goog.inherits(events.ConfigLoadedEvent, goog.events.Event);
* @param {Node} target The event target.
* @param {number} x .
* @param {number} y .
+ * @param {number} identifier .
* @param {number=} opt_timestamp The timestamp of a pointer event.
* @constructor
* @extends {goog.events.Event}
*/
-events.PointerEvent = function(view, type, target, x, y, opt_timestamp) {
+events.PointerEvent = function(view, type, target, x, y, identifier,
+ opt_timestamp) {
goog.base(this, type, target);
/**
@@ -139,6 +141,13 @@ events.PointerEvent = function(view, type, target, x, y, opt_timestamp) {
this.y = y;
/**
+ * The event identifier.
+ *
+ * @type {number}
+ */
+ this.identifier = identifier;
+
+ /**
* The timestamp.
*
* @type {number}
@@ -157,12 +166,13 @@ goog.inherits(events.PointerEvent, goog.events.Event);
* @param {Node} target The event target.
* @param {number} x .
* @param {number} y .
+ * @param {number} identifier .
* @constructor
* @extends {events.PointerEvent}
*/
-events.SwipeEvent = function(view, direction, target, x, y) {
+events.SwipeEvent = function(view, direction, target, x, y, identifier) {
goog.base(this, view, events.EventType.SWIPE,
- target, x, y);
+ target, x, y, identifier);
/**
* The direction.
@@ -185,12 +195,14 @@ goog.inherits(events.SwipeEvent, events.PointerEvent);
* @param {number} y .
* @param {number} deltaX The drag distance of x-coordinate.
* @param {number} deltaY The drag distance of y-coordinate.
+ * @param {number} identifier .
* @constructor
* @extends {events.PointerEvent}
*/
-events.DragEvent = function(view, direction, target, x, y, deltaX, deltaY) {
+events.DragEvent = function(view, direction, target, x, y, deltaX, deltaY,
+ identifier) {
goog.base(this, view, events.EventType.DRAG,
- target, x, y);
+ target, x, y, identifier);
/**
* The direction
*

Powered by Google App Engine
This is Rietveld 408576698