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

Unified Diff: ui/display/screen.h

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 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 | « ui/display/mac/screen_mac.mm ('k') | ui/display/screen.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/screen.h
diff --git a/ui/display/screen.h b/ui/display/screen.h
index 79a0035d2565e9aa4b27d5723591ecd4397f403b..82eea60d397887f754e250034912682f40433d56 100644
--- a/ui/display/screen.h
+++ b/ui/display/screen.h
@@ -88,6 +88,9 @@ class DISPLAY_EXPORT Screen {
virtual gfx::Rect DIPToScreenRectInWindow(gfx::NativeView view,
const gfx::Rect& dip_rect) const;
+ // Emulates the device scale factor for unit test environment.
+ virtual void SetDeviceScaleFactorForTest(float scale_factor) {};
+
private:
DISALLOW_COPY_AND_ASSIGN(Screen);
};
« no previous file with comments | « ui/display/mac/screen_mac.mm ('k') | ui/display/screen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698