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

Unified Diff: cc/layers/layer.h

Issue 1675963002: Move MaxScrollOffset to property_trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix trybot failure, remove unnecessary code Created 4 years, 10 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index 7c0697d25cb7ad36e01f225902cab4787f8b515c..f38555a3a5ae9aafed5334bb268813051534b3e8 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -129,6 +129,9 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void SetBounds(const gfx::Size& bounds);
gfx::Size bounds() const { return bounds_; }
+ // This function is for property tree builder
ajuma 2016/02/09 16:27:13 Maybe point out this is because of templating? (Or
+ gfx::Vector2dF bounds_delta() const { return gfx::Vector2dF(); }
+
void SetMasksToBounds(bool masks_to_bounds);
bool masks_to_bounds() const { return masks_to_bounds_; }
@@ -271,6 +274,8 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
void SetScrollClipLayerId(int clip_layer_id);
bool scrollable() const { return scroll_clip_layer_id_ != INVALID_ID; }
+ Layer* scroll_clip_layer() const;
+ int scroll_clip_layer_id() const { return scroll_clip_layer_id_; }
ajuma 2016/02/09 16:27:13 It looks like this isn't called anywhere. Is it ne
void SetUserScrollable(bool horizontal, bool vertical);
bool user_scrollable_horizontal() const {
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698