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

Unified Diff: content/browser/renderer_host/input/input_router.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
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/input/input_router.h
diff --git a/content/browser/renderer_host/input/input_router.h b/content/browser/renderer_host/input/input_router.h
index 186022feba8dac8adb4b544497ae3774ed696410..b0b7ff7034c0d97dbf36533878e62e18f55012a6 100644
--- a/content/browser/renderer_host/input/input_router.h
+++ b/content/browser/renderer_host/input/input_router.h
@@ -55,6 +55,10 @@ class InputRouter : public IPC::Listener {
// Whether there are any events pending dispatch to or ack from the renderer.
virtual bool HasPendingEvents() const = 0;
+
+ // A scale factor to scale the coordinate in WebInputEvent from DIP
+ // to viewport.
+ virtual void SetDeviceScaleFactor(float device_scale_factor) = 0;
};
} // namespace content
« no previous file with comments | « no previous file | content/browser/renderer_host/input/input_router_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698