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

Unified Diff: content/browser/renderer_host/input/input_router_impl.h

Issue 593883002: [exp] Browser-side fling. Base URL: https://chromium.googlesource.com/chromium/src.git@fling-curve-config-remove
Patch Set: . Created 6 years, 2 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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index ed648f50ce622d9baf95002b520757b154a9a0e7..e1e376bc7bdf1b532e236d6aeffb211a951cc08a 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -20,16 +20,41 @@
struct InputHostMsg_HandleInputEvent_ACK_Params;
+#if defined(OS_ANDROID)
+namespace gfx {
+class Scroller;
+}
+#endif
+
namespace IPC {
class Sender;
}
namespace ui {
+class FlingCurve;
struct LatencyInfo;
}
namespace content {
+class Flinger {
+ public:
+ explicit Flinger(const blink::WebGestureEvent& fling_event);
+ virtual ~Flinger();
+
+ blink::WebGestureEvent GetNextScrollEvent();
+
+ private:
+ blink::WebGestureEvent fling_event_;
+#if defined(OS_ANDROID)
+ scoped_ptr<gfx::Scroller> scroller_;
+#else
+ scoped_ptr<ui::FlingCurve> fling_curve_;
+#endif
+
+ DISALLOW_COPY_AND_ASSIGN(Flinger);
+};
+
class InputAckHandler;
class InputRouterClient;
class OverscrollController;
@@ -276,6 +301,8 @@ private:
InputEventStreamValidator input_stream_validator_;
InputEventStreamValidator output_stream_validator_;
+ scoped_ptr<Flinger> flinger_;
+
DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
};
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698