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

Unified Diff: Source/platform/PlatformScreen.cpp

Issue 879913003: Use IntRect instead of FloatRect for window positions and sizes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: added FIXME comments Created 5 years, 11 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 | « Source/platform/PlatformScreen.h ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/PlatformScreen.cpp
diff --git a/Source/platform/PlatformScreen.cpp b/Source/platform/PlatformScreen.cpp
index 6c686578f1d4ad77efff359199419702f83bf3e2..60b2ee3b8ba9518e73b1c6e9692fb4594a4b9940 100644
--- a/Source/platform/PlatformScreen.cpp
+++ b/Source/platform/PlatformScreen.cpp
@@ -72,19 +72,19 @@ bool screenIsMonochrome(Widget* widget)
return hostWindow->screenInfo().isMonochrome;
}
-FloatRect screenRect(Widget* widget)
+IntRect screenRect(Widget* widget)
{
HostWindow* hostWindow = toHostWindow(widget);
if (!hostWindow)
- return FloatRect();
+ return IntRect();
return IntRect(hostWindow->screenInfo().rect);
}
-FloatRect screenAvailableRect(Widget* widget)
+IntRect screenAvailableRect(Widget* widget)
{
HostWindow* hostWindow = toHostWindow(widget);
if (!hostWindow)
- return FloatRect();
+ return IntRect();
return IntRect(hostWindow->screenInfo().availableRect);
}
« no previous file with comments | « Source/platform/PlatformScreen.h ('k') | Source/web/ChromeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698