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

Unified Diff: third_party/WebKit/public/web/WebView.h

Issue 2096633002: Adds scroll position/scale emulation to DevTools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/public/web/WebView.h
diff --git a/third_party/WebKit/public/web/WebView.h b/third_party/WebKit/public/web/WebView.h
index c8a6244d72ea5a619cad8632d597ea76f2af8d21..c9c11c97bd964da9aaa3cebc327d81fe18aa667f 100644
--- a/third_party/WebKit/public/web/WebView.h
+++ b/third_party/WebKit/public/web/WebView.h
@@ -271,6 +271,9 @@ public:
// Scales the page without affecting layout by using the visual viewport.
virtual void setPageScaleFactor(float) = 0;
+ // Gets the main frame's current scroll offset in CSS pixels.
+ virtual WebPoint mainFrameOffset() const = 0;
+
// Sets the offset of the visual viewport within the main frame, in
// partial CSS pixels. The offset will be clamped so the visual viewport
// stays within the frame's bounds.

Powered by Google App Engine
This is Rietveld 408576698