summaryrefslogtreecommitdiff
path: root/chromium/cc/input/scroll_state_data.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/cc/input/scroll_state_data.h')
-rw-r--r--chromium/cc/input/scroll_state_data.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/chromium/cc/input/scroll_state_data.h b/chromium/cc/input/scroll_state_data.h
index 297517031ae..a3a2755c61b 100644
--- a/chromium/cc/input/scroll_state_data.h
+++ b/chromium/cc/input/scroll_state_data.h
@@ -70,12 +70,18 @@ class CC_EXPORT ScrollStateData {
ElementId current_native_scrolling_element() const;
void set_current_native_scrolling_element(ElementId element_id);
+ // Used in scroll unification to specify that a scroll state has been hit
+ // tested on the main thread. If this is true, the hit test result will be
+ // placed in the current_native_scrolling_element_.
+ bool is_main_thread_hit_tested;
+
private:
// The id of the last native element to respond to a scroll, or 0 if none
// exists.
// TODO(bokan): In the compositor, this is now only used as an override to
- // scroller targeting, i.e. we'll latch scrolling to the specified
- // element_id. It will be renamed when the main thread is also converted.
+ // scroller targeting. I.e. we'll latch scrolling to the specified
+ // element_id. It will be renamed to a better name (target_element_id?) when
+ // the main thread is also converted.
ElementId current_native_scrolling_element_;
};