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

Unified Diff: cc/input/scroll_state_data.h

Issue 2884423003: Use scroll-boundary-behavior to control overscroll-refresh/glow on android. (Closed)
Patch Set: Rebase 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
« no previous file with comments | « cc/input/scroll_state.h ('k') | cc/input/scroll_state_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/scroll_state_data.h
diff --git a/cc/input/scroll_state_data.h b/cc/input/scroll_state_data.h
index ba33e46626bc2028fc32c012a0591a6cc2b9cf03..cb5ec626e07a08087f6ddce8787527065f93bbca 100644
--- a/cc/input/scroll_state_data.h
+++ b/cc/input/scroll_state_data.h
@@ -59,6 +59,13 @@ class CC_EXPORT ScrollStateData {
bool caused_scroll_x;
bool caused_scroll_y;
+ // Track if the scroll_chain has been cut by scroll_boundary_behavior, in
+ // order to properly handle overscroll-effects.
+ // TODO(sunyunjia): overscroll should be handled at the top of scroll_chain,
+ // as implemented at blink side. This field should be removed after it's
+ // resolved. crbug.com/755164.
+ bool is_scroll_chain_cut;
+
ScrollNode* current_native_scrolling_node() const;
void set_current_native_scrolling_node(
ScrollNode* current_native_scrolling_node);
« no previous file with comments | « cc/input/scroll_state.h ('k') | cc/input/scroll_state_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698