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

Unified Diff: components/test_runner/web_test_delegate.h

Issue 2093343002: Scale the emulated event in EventSender when use-zoom-for-dsf is enabled (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Scale the emulated event in EventSender when use-zoom-for-dsf is enabled Created 4 years, 6 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
« no previous file with comments | « components/test_runner/test_runner.gyp ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/test_runner/web_test_delegate.h
diff --git a/components/test_runner/web_test_delegate.h b/components/test_runner/web_test_delegate.h
index 1c2af2d4fab74dd1ab2eaf4dab3e7ce87ce470d9..80e9675b3377cd05b6f545f2f26ecbd85e34b771 100644
--- a/components/test_runner/web_test_delegate.h
+++ b/components/test_runner/web_test_delegate.h
@@ -158,6 +158,11 @@ class WebTestDelegate {
// Controls the device scale factor of the main WebView for hidpi tests.
virtual void SetDeviceScaleFactor(float factor) = 0;
+ // When use-zoom-for-dsf mode is enabled, this returns the scale to
+ // convert from window coordinates to viewport coordinates. When
+ // use-zoom-for-dsf is disabled, this return always 1.0f.
+ virtual float GetWindowToViewportScale() = 0;
+
// Enable zoom-for-dsf option.
virtual void EnableUseZoomForDSF() = 0;
« no previous file with comments | « components/test_runner/test_runner.gyp ('k') | content/public/test/layouttest_support.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698