| Index: ui/android/view_android.h
|
| diff --git a/ui/android/view_android.h b/ui/android/view_android.h
|
| index a996e6804bbc10fc38449e43b34be7937fab6942..1540c3625d6d574fb943c9f55335b87f735adae0 100644
|
| --- a/ui/android/view_android.h
|
| +++ b/ui/android/view_android.h
|
| @@ -61,6 +61,16 @@ class UI_ANDROID_EXPORT ViewAndroid {
|
| ViewAndroid();
|
| virtual ~ViewAndroid();
|
|
|
| + // The content offset is used to translate snapshots to the correct part of
|
| + // the window.
|
| + 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;
|
| @@ -101,6 +111,7 @@ class UI_ANDROID_EXPORT ViewAndroid {
|
| std::list<ViewAndroid*> children_;
|
| scoped_refptr<cc::Layer> layer_;
|
| JavaObjectWeakGlobalRef delegate_;
|
| + gfx::Vector2dF content_offset_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ViewAndroid);
|
| };
|
|
|