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

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

Issue 2936423003: Move Get/SetScrollOffset methods from WebFrame to WebLocalFrame. (Closed)
Patch Set: Added TODOs as suggested by dcheng@ (this patchset also accidentally includes a rebase...). Created 3 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/WebLocalFrame.h
diff --git a/third_party/WebKit/public/web/WebLocalFrame.h b/third_party/WebKit/public/web/WebLocalFrame.h
index ffaacf9351e472d8a44de9d8e6ab7f61402cb8cd..941a08ba0ec2174b8eebc8ac09b68379279b66ab 100644
--- a/third_party/WebKit/public/web/WebLocalFrame.h
+++ b/third_party/WebKit/public/web/WebLocalFrame.h
@@ -688,6 +688,10 @@ class WebLocalFrame : public WebFrame {
// Geometry -----------------------------------------------------------------
+ // The scroll offset from the top-left corner of the frame in pixels.
+ virtual WebSize GetScrollOffset() const = 0;
+ virtual void SetScrollOffset(const WebSize&) = 0;
+
// If set to false, do not draw scrollbars on this frame's view.
virtual void SetCanHaveScrollbars(bool) = 0;

Powered by Google App Engine
This is Rietveld 408576698