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

Unified Diff: cc/input/scroll_state.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Mark OverscrollRefresh() as protected. Created 3 years, 4 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
Index: cc/input/scroll_state.h
diff --git a/cc/input/scroll_state.h b/cc/input/scroll_state.h
index eb0c7fa95beba6496a68547fb3d84c6076713c92..60ef35103f52157e155217acdeea9765fd22370b 100644
--- a/cc/input/scroll_state.h
+++ b/cc/input/scroll_state.h
@@ -97,6 +97,10 @@ class CC_EXPORT ScrollState {
bool caused_scroll_x() const { return data_.caused_scroll_x; }
bool caused_scroll_y() const { return data_.caused_scroll_y; }
+ void set_scroll_chain_cut(bool cut) { data_.is_scroll_chain_cut = cut; }
dcheng 2017/08/25 23:12:17 Nit: for symmetry I would name this set_is_scroll_
sunyunjia 2017/08/29 17:32:30 Done.
+
+ bool is_scroll_chain_cut() const { return data_.is_scroll_chain_cut; }
+
LayerTreeImpl* layer_tree_impl() { return layer_tree_impl_; }
ScrollStateData* data() { return &data_; }

Powered by Google App Engine
This is Rietveld 408576698