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

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

Issue 62443007: Replace old with new synthetic gesture framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: opt_mouse_move_event_x/y -> opt_start_x/y Created 7 years, 1 month 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_gesture_target_base.cc
diff --git a/content/browser/renderer_host/input/synthetic_gesture_target_base.cc b/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
index 642d3afda6279bb7117d115f2d37557be70c6734..43d8ad92ee394e0ae790895768b2b294ed7d388c 100644
--- a/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
+++ b/content/browser/renderer_host/input/synthetic_gesture_target_base.cc
@@ -8,6 +8,7 @@
#include "content/browser/renderer_host/render_widget_host_view_base.h"
#include "content/browser/renderer_host/ui_events_helper.h"
#include "content/common/input/input_event.h"
+#include "content/common/input_messages.h"
#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "ui/events/event.h"
#include "ui/events/latency_info.h"
@@ -22,6 +23,7 @@ namespace content {
SyntheticGestureTargetBase::SyntheticGestureTargetBase(
RenderWidgetHostImpl* host)
: host_(host) {
+ DCHECK(host);
}
SyntheticGestureTargetBase::~SyntheticGestureTargetBase() {
@@ -77,7 +79,8 @@ void SyntheticGestureTargetBase::DispatchWebMouseEventToPlatform(
}
void SyntheticGestureTargetBase::OnSyntheticGestureCompleted(
- SyntheticGestureNew::Result result) {
+ SyntheticGesture::Result result) {
+ host_->Send(new InputMsg_SyntheticGestureCompleted(host_->GetRoutingID()));
}
void SyntheticGestureTargetBase::SetNeedsFlush() {

Powered by Google App Engine
This is Rietveld 408576698