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

Unified Diff: cc/trees/layer_tree_impl.h

Issue 1639363002: Move have_wheel_event_handlers to WebLayerTreeView. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tests Created 4 years, 11 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/trees/layer_tree_impl.h
diff --git a/cc/trees/layer_tree_impl.h b/cc/trees/layer_tree_impl.h
index 91e346686d1367e8b497277d64772ca9ed4e4f1b..c54591e0a75cbcbbc9b6a10f2b72d03509109e34 100644
--- a/cc/trees/layer_tree_impl.h
+++ b/cc/trees/layer_tree_impl.h
@@ -374,9 +374,6 @@ class CC_EXPORT LayerTreeImpl {
LayerImpl* FindLayerThatIsHitByPoint(const gfx::PointF& screen_space_point);
- LayerImpl* FindLayerWithWheelHandlerThatIsHitByPoint(
- const gfx::PointF& screen_space_point);
-
LayerImpl* FindLayerThatIsHitByPointInTouchHandlerRegion(
const gfx::PointF& screen_space_point);
@@ -439,6 +436,11 @@ class CC_EXPORT LayerTreeImpl {
const gfx::BoxF& box,
gfx::BoxF* bounds) const;
+ bool have_wheel_event_handlers() const { return have_wheel_event_handlers_; }
+ void set_have_wheel_event_handlers(bool have_event_handlers) {
+ have_wheel_event_handlers_ = have_event_handlers;
+ }
+
protected:
explicit LayerTreeImpl(
LayerTreeHostImpl* layer_tree_host_impl,
@@ -526,10 +528,11 @@ class CC_EXPORT LayerTreeImpl {
int render_surface_layer_list_id_;
+ bool have_wheel_event_handlers_;
+
// Whether or not Blink's viewport size was shrunk by the height of the top
// controls at the time of the last layout.
bool top_controls_shrink_blink_size_;
-
float top_controls_height_;
// The amount that the top controls are shown from 0 (hidden) to 1 (fully

Powered by Google App Engine
This is Rietveld 408576698