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

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

Issue 281723010: Bundle DidOverscrollParams with the InputEventAck (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 7 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 9b5317d81eb37d7295a976f29783bf2e232b6001..cb576efdfd72cc8b910a2c27a91427fddc2ba852 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.cc
+++ b/content/browser/renderer_host/input/mock_input_router_client.cc
@@ -50,6 +50,22 @@ void MockInputRouterClient::OnHasTouchEventHandlers(
has_touch_handler_ = has_handlers;
}
+OverscrollController* MockInputRouterClient::GetOverscrollController() const {
+ return NULL;
+}
+
+void MockInputRouterClient::DidFlush() {
+ ++did_flush_called_count_;
+}
+
+void MockInputRouterClient::DidOverscroll(const DidOverscrollParams& params) {
+ overscroll_ = params;
+}
+
+void MockInputRouterClient::SetNeedsFlush() {
+ set_needs_flush_called_ = true;
+}
+
bool MockInputRouterClient::GetAndResetFilterEventCalled() {
bool filter_input_event_called = filter_input_event_called_;
filter_input_event_called_ = false;
@@ -62,16 +78,10 @@ size_t MockInputRouterClient::GetAndResetDidFlushCount() {
return did_flush_called_count;
}
-OverscrollController* MockInputRouterClient::GetOverscrollController() const {
- return NULL;
-}
-
-void MockInputRouterClient::DidFlush() {
- ++did_flush_called_count_;
-}
-
-void MockInputRouterClient::SetNeedsFlush() {
- set_needs_flush_called_ = true;
+DidOverscrollParams MockInputRouterClient::GetAndResetOverscroll() {
+ DidOverscrollParams overscroll;
+ std::swap(overscroll_, overscroll);
+ return overscroll;
}
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698