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

Unified Diff: content/browser/renderer_host/input/touch_emulator.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/browser/renderer_host/input/touch_emulator.cc
diff --git a/content/browser/renderer_host/input/touch_emulator.cc b/content/browser/renderer_host/input/touch_emulator.cc
index ed9134b1d6b1b853d2e24d8ab59bcb503d047f15..8388e09e33700d70ff1472c3e59dc9274438e8b1 100644
--- a/content/browser/renderer_host/input/touch_emulator.cc
+++ b/content/browser/renderer_host/input/touch_emulator.cc
@@ -11,6 +11,7 @@
#include "content/public/common/content_client.h"
#include "content/public/common/content_switches.h"
#include "third_party/WebKit/public/platform/WebCursorInfo.h"
+#include "ui/events/base_event_utils.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/events/gesture_detection/gesture_provider_config_helper.h"
#include "ui/gfx/image/image.h"
@@ -225,6 +226,7 @@ bool TouchEmulator::HandleTouchEvent(const blink::WebTouchEvent& event) {
void TouchEmulator::HandleEmulatedTouchEvent(blink::WebTouchEvent event) {
DCHECK(gesture_provider_);
+ event.uniqueTouchEventId = ui::GetNextTouchEventId();
auto result = gesture_provider_->OnTouchEvent(MotionEventWeb(event));
if (!result.succeeded)
return;

Powered by Google App Engine
This is Rietveld 408576698