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

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

Issue 1440923002: Convert the coordinates in WebInputEvent To Viewport in InputRouter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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.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 c4938a4a4e2e3bcef909c1463de2abec1f47994b..9ed300cc76bc248ef23a1fa2329a5b3330628d6b 100644
--- a/content/browser/renderer_host/input/mock_input_router_client.h
+++ b/content/browser/renderer_host/input/mock_input_router_client.h
@@ -8,10 +8,10 @@
#include "base/memory/scoped_ptr.h"
#include "content/browser/renderer_host/input/input_router_client.h"
#include "content/common/input/did_overscroll_params.h"
+#include "content/common/input/input_event.h"
namespace content {
-class InputEvent;
class InputRouter;
class MockInputRouterClient : public InputRouterClient {
@@ -48,6 +48,9 @@ class MockInputRouterClient : public InputRouterClient {
void set_allow_send_event(bool allow) {
filter_state_ = INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS;
}
+ const blink::WebInputEvent* last_filter_event() const {
+ return last_filter_event_->web_event.get();
+ }
private:
InputRouter* input_router_;

Powered by Google App Engine
This is Rietveld 408576698