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

Unified Diff: content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc

Issue 134123003: Generate proper LatencyInfo components for synthetic gestures (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove InputEvent forward decl Created 6 years, 11 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/synthetic_smooth_scroll_gesture.cc
diff --git a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
index f70ba9be7b12ead8dc457f96ba24b806b338f6c4..da1f228ae0e1b83e18cf2111dd5d877a7a43f915 100644
--- a/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
+++ b/content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.cc
@@ -5,8 +5,6 @@
#include "content/browser/renderer_host/input/synthetic_smooth_scroll_gesture.h"
#include "base/logging.h"
-#include "content/common/input/input_event.h"
-#include "ui/events/latency_info.h"
#include "ui/gfx/point_f.h"
namespace content {
@@ -154,8 +152,7 @@ void SyntheticSmoothScrollGesture::ForwardTouchEvent(
SyntheticGestureTarget* target, const base::TimeTicks& timestamp) {
touch_event_.timeStampSeconds = ConvertTimestampToSeconds(timestamp);
- target->DispatchInputEventToPlatform(
- InputEvent(touch_event_, ui::LatencyInfo(), false));
+ target->DispatchInputEventToPlatform(touch_event_);
}
void SyntheticSmoothScrollGesture::ForwardMouseWheelEvent(
@@ -170,8 +167,7 @@ void SyntheticSmoothScrollGesture::ForwardMouseWheelEvent(
mouse_wheel_event.timeStampSeconds = ConvertTimestampToSeconds(timestamp);
- target->DispatchInputEventToPlatform(
- InputEvent(mouse_wheel_event, ui::LatencyInfo(), false));
+ target->DispatchInputEventToPlatform(mouse_wheel_event);
}
void SyntheticSmoothScrollGesture::PressTouchPoint(

Powered by Google App Engine
This is Rietveld 408576698