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

Unified Diff: Source/core/page/Chrome.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/core/page/Chrome.h ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/Chrome.cpp
diff --git a/Source/core/page/Chrome.cpp b/Source/core/page/Chrome.cpp
index 2ea98e005de0a891d085c311e5ef72d9944b1b5c..9d3c767a180c0dbc53e606dbd4fe454d71bcc11f 100644
--- a/Source/core/page/Chrome.cpp
+++ b/Source/core/page/Chrome.cpp
@@ -38,7 +38,7 @@
#include "core/rendering/HitTestResult.h"
#include "platform/FileChooser.h"
#include "platform/Logging.h"
-#include "platform/geometry/FloatRect.h"
+#include "platform/geometry/IntRect.h"
#include "platform/network/DNS.h"
#include "public/platform/WebScreenInfo.h"
#include "wtf/PassRefPtr.h"
@@ -84,17 +84,17 @@ void Chrome::contentsSizeChanged(LocalFrame* frame, const IntSize& size) const
m_client->contentsSizeChanged(frame, size);
}
-void Chrome::setWindowRect(const FloatRect& rect) const
+void Chrome::setWindowRect(const IntRect& rect) const
{
m_client->setWindowRect(rect);
}
-FloatRect Chrome::windowRect() const
+IntRect Chrome::windowRect() const
{
return m_client->windowRect();
}
-FloatRect Chrome::pageRect() const
+IntRect Chrome::pageRect() const
{
return m_client->pageRect();
}
« no previous file with comments | « Source/core/page/Chrome.h ('k') | Source/core/page/ChromeClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698