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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: Created 4 years, 3 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_host_impl.h
diff --git a/cc/trees/layer_tree_host_impl.h b/cc/trees/layer_tree_host_impl.h
index bffdc5cf131f4c0be6af7013a30686655837a898..84fb150998bd8cb4d7dda6b30ce336714831845d 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -181,7 +181,10 @@ class CC_EXPORT LayerTreeHostImpl
const gfx::ScrollOffset& root_offset) override;
void ScrollEnd(ScrollState* scroll_state) override;
InputHandler::ScrollStatus FlingScrollBegin() override;
+ void MouseDownAt(const gfx::Point& viewport_point) override;
+ void MouseUp() override;
void MouseMoveAt(const gfx::Point& viewport_point) override;
+
void PinchGestureBegin() override;
void PinchGestureUpdate(float magnify_delta,
const gfx::Point& anchor) override;
@@ -849,6 +852,8 @@ class CC_EXPORT LayerTreeHostImpl
std::unique_ptr<PendingTreeDurationHistogramTimer>
pending_tree_duration_timer_;
+ int captured_scrollbar_layer_id_;
+
DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
};

Powered by Google App Engine
This is Rietveld 408576698