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

Unified Diff: content/browser/renderer_host/input/input_router_impl.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/input_router_impl.h
diff --git a/content/browser/renderer_host/input/input_router_impl.h b/content/browser/renderer_host/input/input_router_impl.h
index e1ea09a149b39b226d5c2d9e4164486180950f21..d6132895025ef3b6210c29b7bdc44b8d87df1ca5 100644
--- a/content/browser/renderer_host/input/input_router_impl.h
+++ b/content/browser/renderer_host/input/input_router_impl.h
@@ -68,6 +68,7 @@ class CONTENT_EXPORT InputRouterImpl
void NotifySiteIsMobileOptimized(bool is_mobile_optimized) override;
void RequestNotificationWhenFlushed() override;
bool HasPendingEvents() const override;
+ void SetDeviceScaleFactor(float device_scale_factor) override;
// IPC::Listener
bool OnMessageReceived(const IPC::Message& message) override;
@@ -251,6 +252,8 @@ private:
InputEventStreamValidator input_stream_validator_;
InputEventStreamValidator output_stream_validator_;
+ float device_scale_factor_;
+
DISALLOW_COPY_AND_ASSIGN(InputRouterImpl);
};
« no previous file with comments | « content/browser/renderer_host/input/input_router.h ('k') | content/browser/renderer_host/input/input_router_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698