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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/c/ppb_view.h ('k') | ppapi/cpp/view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_CPP_VIEW_H_ 5 #ifndef PPAPI_CPP_VIEW_H_
6 #define PPAPI_CPP_VIEW_H_ 6 #define PPAPI_CPP_VIEW_H_
7 7
8 #include "ppapi/cpp/resource.h" 8 #include "ppapi/cpp/resource.h"
9 #include "ppapi/cpp/rect.h" 9 #include "ppapi/cpp/rect.h"
10 #include "ppapi/cpp/size.h" 10 #include "ppapi/cpp/size.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 /// pixels per DIP. 131 /// pixels per DIP.
132 float GetDeviceScale() const; 132 float GetDeviceScale() const;
133 133
134 /// GetCSSScale returns the scale factor between DIPs and CSS pixels. This 134 /// GetCSSScale returns the scale factor between DIPs and CSS pixels. This
135 /// allows proper scaling between DIPs - as sent via the Pepper API - and CSS 135 /// allows proper scaling between DIPs - as sent via the Pepper API - and CSS
136 /// pixel coordinates used for Web content. 136 /// pixel coordinates used for Web content.
137 /// 137 ///
138 /// @return A <code>float</code> value representing the number of DIPs per CSS 138 /// @return A <code>float</code> value representing the number of DIPs per CSS
139 /// pixel. 139 /// pixel.
140 float GetCSSScale() const; 140 float GetCSSScale() const;
141
142 /// GetScrollOffset returns the scroll offset of the window containing the
143 /// plugin.
144 ///
145 /// @return A <code>Point</code> which is set to the value of the scroll
146 /// offset in CSS pixels.
147 Point GetScrollOffset() const;
141 }; 148 };
142 149
143 } // namespace pp 150 } // namespace pp
144 151
145 #endif // PPAPI_CPP_VIEW_H_ 152 #endif // PPAPI_CPP_VIEW_H_
OLDNEW
« 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