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

Unified Diff: ppapi/cpp/view.h

Issue 329033003: Add GetScrollOffset function to PPB_View (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
« no previous file with comments | « ppapi/c/ppb_view.h ('k') | ppapi/cpp/view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/cpp/view.h
diff --git a/ppapi/cpp/view.h b/ppapi/cpp/view.h
index 7ffd1682294412468009cd0d1144dae70df018f7..13c7a81b5871393e06bdcc21e28a31700acb559d 100644
--- a/ppapi/cpp/view.h
+++ b/ppapi/cpp/view.h
@@ -138,6 +138,13 @@ class View : public Resource {
/// @return A <code>float</code> value representing the number of DIPs per CSS
/// pixel.
float GetCSSScale() const;
+
+ /// GetScrollOffset returns the scroll offset of the window containing the
+ /// plugin.
+ ///
+ /// @return A <code>Point</code> which is set to the value of the scroll
+ /// offset in CSS pixels.
+ Point GetScrollOffset() const;
};
} // namespace pp
« no previous file with comments | « ppapi/c/ppb_view.h ('k') | ppapi/cpp/view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698