From 2422e5c99d08dd4f9747e80b8febbbd92b08a43f Mon Sep 17 00:00:00 2001
From: "sadrul@chromium.org"
 <sadrul@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Date: Fri, 13 Sep 2013 19:05:02 +0000
Subject: input: Make the OverscrollController less intrusive, and some code
 cleanup.

* Make OverscrollController less intrusive to input-event dispatching. With this
  change, the OverscrollController consumes an event on its way to dispatch only
  if the event contributes to the overscroll.
* When an overscroll is in progress, and a gesture event comes in, this event is
  not dispatched to the GestureEventFilter from RenderWidgetHostImpl. So, if the
  event should be dispatched to the renderer, make sure it always goes through
  the host from the OverscrollController.
* Remove HasQueuedGestureEvents() from InputRouter interface, and forward all
  gesture events through the RenderWidgetHost from the overscroll-controller.

BUG=none
R=aelias@chromium.org, jdduke@chromium.org

Review URL: https://codereview.chromium.org/23801003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223096 0039d316-1c4b-4281-b951-d872f2087c98
---
 content/browser/renderer_host/input/input_router.h | 3 ---
 1 file changed, 3 deletions(-)

(limited to 'content/browser/renderer_host/input/input_router.h')

diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h
index 93b7b3f..5e4533f 100644
--- a/content/browser/renderer_host/input/input_router.h
+++ b/content/browser/renderer_host/input/input_router.h
@@ -64,9 +64,6 @@ class InputRouter : public IPC::Listener {
   // |gesture_event| to the router.
   virtual bool ShouldForwardGestureEvent(
       const GestureEventWithLatencyInfo& gesture_event) const = 0;
-
-  // Returns |true| if the router has any queued or in-flight gesture events.
-  virtual bool HasQueuedGestureEvents() const = 0;
 };
 
 }  // namespace content
-- 
cgit v1.1