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

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

Issue 660663002: Clear pending events upon main frame navigation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updates Created 6 years, 1 month 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..200ff4b69f3606c4f2be179bdb63805a64863544 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,12 @@ 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),
+ filter_state_(INPUT_EVENT_ACK_STATE_NOT_CONSUMED),
+ filter_input_event_called_(false),
+ did_flush_called_count_(0) {
+}
MockInputRouterClient::~MockInputRouterClient() {}
@@ -45,15 +44,6 @@ void MockInputRouterClient::DecrementInFlightEventCount() {
--in_flight_event_count_;
}
-void MockInputRouterClient::OnHasTouchEventHandlers(
- bool has_handlers) {
- has_touch_handler_ = has_handlers;
-}
-
-void MockInputRouterClient::SetNeedsFlush() {
- set_needs_flush_called_ = true;
-}
-
void MockInputRouterClient::DidFlush() {
++did_flush_called_count_;
}

Powered by Google App Engine
This is Rietveld 408576698