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

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

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.h
diff --git a/content/browser/renderer_host/input/mock_input_router_client.h b/content/browser/renderer_host/input/mock_input_router_client.h
index d2ea81d45cc55dc90dba7843a5aaf1ae90c48036..fdfbbc5a43c4eaa8dc639a55a43ba0dd8f4d115c 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.h
+++ b/content/browser/renderer_host/input/mock_input_router_client.h
@@ -30,6 +30,7 @@ class MockInputRouterClient : public InputRouterClient {
virtual void SetNeedsFlush() OVERRIDE;
bool GetAndResetFilterEventCalled();
+ size_t GetAndResetDidFlushCount();
void set_input_router(InputRouter* input_router) {
input_router_ = input_router;
@@ -46,9 +47,6 @@ class MockInputRouterClient : public InputRouterClient {
filter_state_ = INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
}
- bool did_flush_called() const { return did_flush_called_; }
- bool needs_flush_called() const { return set_needs_flush_called_; }
-
private:
InputRouter* input_router_;
int in_flight_event_count_;
@@ -59,7 +57,7 @@ class MockInputRouterClient : public InputRouterClient {
bool filter_input_event_called_;
scoped_ptr<InputEvent> last_filter_event_;
- bool did_flush_called_;
+ size_t did_flush_called_count_;
bool set_needs_flush_called_;
};

Powered by Google App Engine
This is Rietveld 408576698