summaryrefslogtreecommitdiff
path: root/chromium/cc/input/scroll_state_data.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/cc/input/scroll_state_data.h
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-85-based.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
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_;
};