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

Unified Diff: Source/core/frame/DOMWindow.h

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
Index: Source/core/frame/DOMWindow.h
diff --git a/Source/core/frame/DOMWindow.h b/Source/core/frame/DOMWindow.h
index b14d7822b705b55fbc9b3202f1ad8bbb6d84c372..ed475d7d5985026387aeb059959e394e42dc2af5 100644
--- a/Source/core/frame/DOMWindow.h
+++ b/Source/core/frame/DOMWindow.h
@@ -148,11 +148,15 @@ public:
virtual void scrollTo(const ScrollToOptions&) const = 0;
void scroll(double x, double y) const { scrollTo(x, y); }
void scroll(const ScrollToOptions& scrollToOptions) const { scrollTo(scrollToOptions); }
- virtual void moveBy(float x, float y) const = 0;
- virtual void moveTo(float x, float y) const = 0;
-
- virtual void resizeBy(float x, float y) const = 0;
- virtual void resizeTo(float width, float height) const = 0;
+ virtual void moveBy(int x, int y) const = 0;
+ void moveTo() const { moveTo(0, 0, false, false); }
+ void moveTo(int x) const { moveTo(x, 0, true, false); }
+ virtual void moveTo(int x, int y, bool hasX = true, bool hasY = true) const = 0;
+
+ virtual void resizeBy(int x, int y) const = 0;
+ void resizeTo() const { resizeTo(0, 0, false, false); }
+ void resizeTo(int x) const { resizeTo(x, 0, true, false); }
+ virtual void resizeTo(int width, int height, bool hasWidth = true, bool hasHeight = true) const = 0;
virtual PassRefPtrWillBeRawPtr<MediaQueryList> matchMedia(const String&) = 0;
« no previous file with comments | « LayoutTests/fast/dom/Window/window-resize-and-move-arguments-expected.txt ('k') | Source/core/frame/LocalDOMWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698