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

Unified Diff: third_party/WebKit/Source/core/loader/EmptyClients.h

Issue 1603253003: Add dedicated windowToViewport method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: third_party/WebKit/Source/core/loader/EmptyClients.h
diff --git a/third_party/WebKit/Source/core/loader/EmptyClients.h b/third_party/WebKit/Source/core/loader/EmptyClients.h
index 458cc9b32b388574ecb52b1dd2e03e0e018d5f04..15114d5430c74996243c74c37b7cf24639c67917 100644
--- a/third_party/WebKit/Source/core/loader/EmptyClients.h
+++ b/third_party/WebKit/Source/core/loader/EmptyClients.h
@@ -40,6 +40,7 @@
#include "core/page/SpellCheckerClient.h"
#include "platform/DragImage.h"
#include "platform/geometry/FloatPoint.h"
+#include "platform/geometry/FloatRect.h"
#include "platform/geometry/IntRect.h"
#include "platform/heap/Handle.h"
#include "platform/network/ResourceError.h"
@@ -132,6 +133,7 @@ public:
void scheduleAnimation(Widget*) override {}
IntRect viewportToScreen(const IntRect& r) const override { return r; }
+ FloatRect windowToViewport(const FloatRect& r) const override { return r; }
WebScreenInfo screenInfo() const override { return WebScreenInfo(); }
void contentsSizeChanged(LocalFrame*, const IntSize&) const override {}

Powered by Google App Engine
This is Rietveld 408576698