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

Unified Diff: third_party/WebKit/Source/platform/Widget.h

Issue 1516723003: [Element / Autofill] Add boundsInViewportFloat() to fix <input> popup misalignment. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: third_party/WebKit/Source/platform/Widget.h
diff --git a/third_party/WebKit/Source/platform/Widget.h b/third_party/WebKit/Source/platform/Widget.h
index d4697138afe4d6ed83df721e8767aacb6525734d..757a1d59975d10b26f6d47b571eaa0c3431d1d80 100644
--- a/third_party/WebKit/Source/platform/Widget.h
+++ b/third_party/WebKit/Source/platform/Widget.h
@@ -30,6 +30,7 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/FloatPoint.h"
+#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebFocusType.h"
@@ -100,6 +101,8 @@ public:
IntRect convertToRootFrame(const IntRect&) const;
IntRect convertFromRootFrame(const IntRect&) const;
+ FloatRect convertToRootFrame(const FloatRect&) const;
+
IntPoint convertToRootFrame(const IntPoint&) const;
IntPoint convertFromRootFrame(const IntPoint&) const;
FloatPoint convertFromRootFrame(const FloatPoint&) const;
@@ -111,6 +114,9 @@ public:
virtual IntRect convertToContainingWidget(const IntRect&) const;
virtual IntRect convertFromContainingWidget(const IntRect&) const;
+
+ virtual FloatRect convertToContainingWidget(const FloatRect&) const;
+
virtual IntPoint convertToContainingWidget(const IntPoint&) const;
virtual IntPoint convertFromContainingWidget(const IntPoint&) const;
@@ -118,6 +124,8 @@ public:
virtual IntPoint convertChildToSelf(const Widget*, const IntPoint&) const;
virtual IntPoint convertSelfToChild(const Widget*, const IntPoint&) const;
+ virtual FloatPoint convertChildToSelf(const Widget*, const FloatPoint&) const;
+
// Notifies this widget that it will no longer be receiving events.
virtual void eventListenersRemoved() { }

Powered by Google App Engine
This is Rietveld 408576698