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

Unified Diff: content/common/input/synthetic_web_input_event_builders.cc

Issue 306483003: Prepare for Unified Gesture Recognizer landing in Aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: All Gesture events should have timestamps. (UGR on) Created 6 years, 7 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: content/common/input/synthetic_web_input_event_builders.cc
diff --git a/content/common/input/synthetic_web_input_event_builders.cc b/content/common/input/synthetic_web_input_event_builders.cc
index 2fcca34afb73bc9878c14511225ca545da3b58ef..4a8a9c9a5c6712274e8947e749b8a362adb44810 100644
--- a/content/common/input/synthetic_web_input_event_builders.cc
+++ b/content/common/input/synthetic_web_input_event_builders.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "content/common/input/web_touch_event_traits.h"
+#include "ui/events/event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
namespace content {
@@ -147,7 +148,9 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildFling(
return result;
}
-SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() {}
+SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() {
+ SetTimestamp(ui::EventTimeForNow());
+}
void SyntheticWebTouchEvent::ResetPoints() {
int point = 0;

Powered by Google App Engine
This is Rietveld 408576698