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

Unified Diff: cc/layers/layer.h

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Draft for review. Created 7 years, 1 month 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: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 889e09ba0bbec7ef01e77d1afd7603aef1c14596..50fe93e873174d9cc08d7e780bd5a839800473a9 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -245,11 +245,11 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::Vector2d scroll_offset() const { return scroll_offset_; }
void SetScrollOffsetFromImplSide(gfx::Vector2d scroll_offset);
- void SetMaxScrollOffset(gfx::Vector2d max_scroll_offset);
- gfx::Vector2d max_scroll_offset() const { return max_scroll_offset_; }
+ gfx::Vector2d MaxScrollOffset() const;
+ gfx::Vector2d TotalViewportScrollOffset() const;
- void SetScrollable(bool scrollable);
- bool scrollable() const { return scrollable_; }
+ void SetScrollable(Layer* clip_layer);
+ bool scrollable() const { return clip_layer_; }
void SetUserScrollable(bool horizontal, bool vertical);
bool user_scrollable_horizontal() const {
@@ -538,8 +538,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::Size bounds_;
gfx::Vector2d scroll_offset_;
- gfx::Vector2d max_scroll_offset_;
- bool scrollable_;
+ Layer* clip_layer_;
bool should_scroll_on_main_thread_;
bool have_wheel_event_handlers_;
bool user_scrollable_horizontal_;

Powered by Google App Engine
This is Rietveld 408576698