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

Unified Diff: ui/webui/resources/js/cr/ui/touch_handler.js

Issue 604373006: Compile chrome://settings, part 9: yet another final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@K_blockers_from_bookmarks
Patch Set: Created 6 years, 3 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: ui/webui/resources/js/cr/ui/touch_handler.js
diff --git a/ui/webui/resources/js/cr/ui/touch_handler.js b/ui/webui/resources/js/cr/ui/touch_handler.js
index acc12afe1f5df22177c23106e0bc89487927cace..67f83f766e2f83f4317af8f1f3d9f5a7f7a89efa 100644
--- a/ui/webui/resources/js/cr/ui/touch_handler.js
+++ b/ui/webui/resources/js/cr/ui/touch_handler.js
@@ -788,6 +788,8 @@ cr.define('cr.ui', function() {
this.disableTap_ = true;
// Dispatch to the LONG_PRESS
+ assert(this.startTouchX_ !== undefined);
+ assert(this.startTouchY_ !== undefined);
Dan Beam 2014/10/01 01:25:57 nit: assert(typeof this.startTouchY_ == 'number');
Vitaly Pavlenko 2014/10/01 03:07:31 Done.
this.dispatchEventXY_(TouchHandler.EventType.LONG_PRESS, this.element_,
/** @type {number} */(this.startTouchX_),
/** @type {number} */(this.startTouchY_));

Powered by Google App Engine
This is Rietveld 408576698