| Index: ui/android/view_android.h
|
| diff --git a/ui/android/view_android.h b/ui/android/view_android.h
|
| index d05520d514b7ee525f1b85ec78f8fb7ceb1cd04b..3f5b2e4b66baa617f2828c4f7eab4136d0c146d2 100644
|
| --- a/ui/android/view_android.h
|
| +++ b/ui/android/view_android.h
|
| @@ -60,6 +60,16 @@ class UI_ANDROID_EXPORT ViewAndroid {
|
| ViewAndroid();
|
| virtual ~ViewAndroid();
|
|
|
| + // The content offset is used to translate snapshots to
|
| + // the correct part of the view.
|
| + void set_content_offset(const gfx::Vector2dF& content_offset) {
|
| + content_offset_ = content_offset;
|
| + }
|
| +
|
| + gfx::Vector2dF content_offset() const {
|
| + return content_offset_;
|
| + }
|
| +
|
| // Returns the window at the root of this hierarchy, or |null|
|
| // if disconnected.
|
| virtual WindowAndroid* GetWindowAndroid() const;
|
| @@ -126,6 +136,7 @@ class UI_ANDROID_EXPORT ViewAndroid {
|
|
|
| int physical_width_pix_;
|
| int physical_height_pix_;
|
| + gfx::Vector2dF content_offset_; // in CSS pixel
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
|
| };
|
|
|