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

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

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.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 fdfbbc5a43c4eaa8dc639a55a43ba0dd8f4d115c..68b0c6f19647ecfd85f9be5b26e8e1d33d58a2a9 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.h
+++ b/content/browser/renderer_host/input/mock_input_router_client.h
@@ -7,6 +7,7 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/renderer_host/input/input_router_client.h"
+#include "content/common/input/did_overscroll_params.h"
namespace content {
@@ -27,10 +28,12 @@ class MockInputRouterClient : public InputRouterClient {
virtual void OnHasTouchEventHandlers(bool has_handlers) OVERRIDE;
virtual OverscrollController* GetOverscrollController() const OVERRIDE;
virtual void DidFlush() OVERRIDE;
+ virtual void DidOverscroll(const DidOverscrollParams& params) OVERRIDE;
virtual void SetNeedsFlush() OVERRIDE;
bool GetAndResetFilterEventCalled();
size_t GetAndResetDidFlushCount();
+ DidOverscrollParams GetAndResetOverscroll();
void set_input_router(InputRouter* input_router) {
input_router_ = input_router;
@@ -59,6 +62,8 @@ class MockInputRouterClient : public InputRouterClient {
size_t did_flush_called_count_;
bool set_needs_flush_called_;
+
+ DidOverscrollParams overscroll_;
};
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698