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

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

Issue 999423003: Set the unique_event_id when converting from TouchEvent to WebTouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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 36fc28f21b920bc173f6b783c7565607b171c126..ba6cda093d0ee5330af5308687a6027fba63b61f 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/base_event_utils.h"
#include "ui/events/keycodes/keyboard_codes.h"
namespace content {
@@ -150,6 +151,7 @@ WebGestureEvent SyntheticWebGestureEventBuilder::BuildFling(
}
SyntheticWebTouchEvent::SyntheticWebTouchEvent() : WebTouchEvent() {
+ uniqueTouchEventId = ui::GetNextTouchEventId();
SetTimestamp(base::TimeTicks::Now() - base::TimeTicks());
}
« no previous file with comments | « content/browser/renderer_host/input/web_input_event_util_unittest.cc ('k') | content/common/input/web_input_event_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698