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

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

Issue 1003023002: Signal input flush when all flings have terminated (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test compile Created 5 years, 9 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/mock_input_router_client.cc
diff --git a/content/browser/renderer_host/input/mock_input_router_client.cc b/content/browser/renderer_host/input/mock_input_router_client.cc
index 068af8c9206c6e12af80f9a8ce661acfff62553a..fcb5de1a0492545a35d5521dda0f470b5e0f44d0 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.cc
+++ b/content/browser/renderer_host/input/mock_input_router_client.cc
@@ -19,13 +19,13 @@ using blink::WebTouchPoint;
namespace content {
MockInputRouterClient::MockInputRouterClient()
- : input_router_(NULL),
- in_flight_event_count_(0),
- has_touch_handler_(false),
- filter_state_(INPUT_EVENT_ACK_STATE_NOT_CONSUMED),
- filter_input_event_called_(false),
- did_flush_called_count_(0),
- set_needs_flush_called_(false) {}
+ : input_router_(NULL),
+ in_flight_event_count_(0),
+ has_touch_handler_(false),
+ filter_state_(INPUT_EVENT_ACK_STATE_NOT_CONSUMED),
+ filter_input_event_called_(false),
+ did_flush_called_count_(0) {
+}
MockInputRouterClient::~MockInputRouterClient() {}
@@ -50,10 +50,6 @@ void MockInputRouterClient::OnHasTouchEventHandlers(
has_touch_handler_ = has_handlers;
}
-void MockInputRouterClient::SetNeedsFlush() {
- set_needs_flush_called_ = true;
-}
-
void MockInputRouterClient::DidFlush() {
++did_flush_called_count_;
}
@@ -62,6 +58,9 @@ void MockInputRouterClient::DidOverscroll(const DidOverscrollParams& params) {
overscroll_ = params;
}
+void MockInputRouterClient::DidStopFlinging() {
+}
+
bool MockInputRouterClient::GetAndResetFilterEventCalled() {
bool filter_input_event_called = filter_input_event_called_;
filter_input_event_called_ = false;

Powered by Google App Engine
This is Rietveld 408576698