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

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

Issue 217163006: Defer synthetic gesture completions until events have been flushed (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Restore browser test Created 6 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 436f0b06372cd490494501111d92d588c5f79f34..9b5317d81eb37d7295a976f29783bf2e232b6001 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.cc
+++ b/content/browser/renderer_host/input/mock_input_router_client.cc
@@ -24,7 +24,7 @@ MockInputRouterClient::MockInputRouterClient()
has_touch_handler_(false),
filter_state_(INPUT_EVENT_ACK_STATE_NOT_CONSUMED),
filter_input_event_called_(false),
- did_flush_called_(false),
+ did_flush_called_count_(0),
set_needs_flush_called_(false) {}
MockInputRouterClient::~MockInputRouterClient() {}
@@ -56,12 +56,18 @@ bool MockInputRouterClient::GetAndResetFilterEventCalled() {
return filter_input_event_called;
}
+size_t MockInputRouterClient::GetAndResetDidFlushCount() {
+ size_t did_flush_called_count = did_flush_called_count_;
+ did_flush_called_count_ = 0;
+ return did_flush_called_count;
+}
+
OverscrollController* MockInputRouterClient::GetOverscrollController() const {
return NULL;
}
void MockInputRouterClient::DidFlush() {
- did_flush_called_ = true;
+ ++did_flush_called_count_;
}
void MockInputRouterClient::SetNeedsFlush() {

Powered by Google App Engine
This is Rietveld 408576698