summaryrefslogtreecommitdiffstats
path: root/chromium/content/browser/renderer_host/overscroll_controller.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/content/browser/renderer_host/overscroll_controller.h')
-rw-r--r--chromium/content/browser/renderer_host/overscroll_controller.h17
1 files changed, 5 insertions, 12 deletions
diff --git a/chromium/content/browser/renderer_host/overscroll_controller.h b/chromium/content/browser/renderer_host/overscroll_controller.h
index c68eb9b1573..5577ce97f3d 100644
--- a/chromium/content/browser/renderer_host/overscroll_controller.h
+++ b/chromium/content/browser/renderer_host/overscroll_controller.h
@@ -15,7 +15,7 @@ struct LatencyInfo;
namespace content {
-class MockRenderWidgetHost;
+class RenderWidgetHostViewAuraOverscrollTest;
class OverscrollControllerDelegate;
// Indicates the direction that the scroll is heading in relative to the screen,
@@ -38,18 +38,11 @@ class OverscrollController {
OverscrollController();
virtual ~OverscrollController();
- // The result of |DispatchEvent()|, indicating either how the event was
- // handled, or how it should be handled by the caller.
- enum Disposition {
- CONSUMED,
- SHOULD_FORWARD_TO_RENDERER,
- SHOULD_FORWARD_TO_GESTURE_FILTER
- };
// This must be called when dispatching any event from the
// RenderWidgetHostView so that the state of the overscroll gesture can be
- // updated properly.
- Disposition DispatchEvent(const blink::WebInputEvent& event,
- const ui::LatencyInfo& latency_info);
+ // updated properly. Returns true if the event was handled, in which case
+ // further processing should cease.
+ bool WillHandleEvent(const blink::WebInputEvent& event);
// This must be called when the ACK for any event comes in. This updates the
// overscroll gesture status as appropriate.
@@ -73,7 +66,7 @@ class OverscrollController {
void Cancel();
private:
- friend class MockRenderWidgetHost;
+ friend class RenderWidgetHostViewAuraOverscrollTest;
// Different scrolling states.
enum ScrollState {