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

Unified Diff: cc/trees/layer_tree_host_impl.h

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: style 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
« no previous file with comments | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9ac94ba6e7dcc685129a0646cc4e6e6d8bb4736a..5dd7f0b41bd45d803bd7ed3705fb1e3889c41492 100644
--- a/cc/trees/layer_tree_host_impl.h
+++ b/cc/trees/layer_tree_host_impl.h
@@ -176,7 +176,11 @@ class CC_EXPORT LayerTreeHostImpl
const gfx::ScrollOffset& root_offset) override;
void ScrollEnd(ScrollState* scroll_state) override;
InputHandler::ScrollStatus FlingScrollBegin() override;
+
+ void MouseDown() 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;
@@ -756,6 +760,8 @@ class CC_EXPORT LayerTreeHostImpl
bool wheel_scrolling_;
bool scroll_affects_scroll_handler_;
int scroll_layer_id_when_mouse_over_scrollbar_;
+ int captured_scrollbar_layer_id_;
+
std::vector<std::unique_ptr<SwapPromise>>
swap_promises_for_main_thread_scroll_update_;
« no previous file with comments | « cc/input/scrollbar_animation_controller_thinning_unittest.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698