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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2358323003: Keep expanded if mouse moves off of scrollbar while dragging (Closed)
Patch Set: fix style and check left button 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 base::TimeDelta delayed_by = base::TimeDelta()) override; 171 base::TimeDelta delayed_by = base::TimeDelta()) override;
172 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state); 172 void ApplyScroll(ScrollNode* scroll_node, ScrollState* scroll_state);
173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override; 173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override;
174 bool ScrollVerticallyByPage(const gfx::Point& viewport_point, 174 bool ScrollVerticallyByPage(const gfx::Point& viewport_point,
175 ScrollDirection direction) override; 175 ScrollDirection direction) override;
176 void RequestUpdateForSynchronousInputHandler() override; 176 void RequestUpdateForSynchronousInputHandler() override;
177 void SetSynchronousInputHandlerRootScrollOffset( 177 void SetSynchronousInputHandlerRootScrollOffset(
178 const gfx::ScrollOffset& root_offset) override; 178 const gfx::ScrollOffset& root_offset) override;
179 void ScrollEnd(ScrollState* scroll_state) override; 179 void ScrollEnd(ScrollState* scroll_state) override;
180 InputHandler::ScrollStatus FlingScrollBegin() override; 180 InputHandler::ScrollStatus FlingScrollBegin() override;
181 void MouseDownAt(const gfx::Point& viewport_point) override;
bokan 2016/09/23 00:39:12 Nit: add a blank line above
182 void MouseUp() override;
181 void MouseMoveAt(const gfx::Point& viewport_point) override; 183 void MouseMoveAt(const gfx::Point& viewport_point) override;
184
182 void PinchGestureBegin() override; 185 void PinchGestureBegin() override;
183 void PinchGestureUpdate(float magnify_delta, 186 void PinchGestureUpdate(float magnify_delta,
184 const gfx::Point& anchor) override; 187 const gfx::Point& anchor) override;
185 void PinchGestureEnd() override; 188 void PinchGestureEnd() override;
186 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 189 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
187 bool anchor_point, 190 bool anchor_point,
188 float page_scale, 191 float page_scale,
189 base::TimeDelta duration); 192 base::TimeDelta duration);
190 void SetNeedsAnimateInput() override; 193 void SetNeedsAnimateInput() override;
191 bool IsCurrentlyScrollingInnerViewport() const override; 194 bool IsCurrentlyScrollingInnerViewport() const override;
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 bool requires_high_res_to_draw_; 840 bool requires_high_res_to_draw_;
838 bool is_likely_to_require_a_draw_; 841 bool is_likely_to_require_a_draw_;
839 842
840 std::unique_ptr<Viewport> viewport_; 843 std::unique_ptr<Viewport> viewport_;
841 844
842 std::unique_ptr<LayerTreeMutator> mutator_; 845 std::unique_ptr<LayerTreeMutator> mutator_;
843 846
844 std::unique_ptr<PendingTreeDurationHistogramTimer> 847 std::unique_ptr<PendingTreeDurationHistogramTimer>
845 pending_tree_duration_timer_; 848 pending_tree_duration_timer_;
846 849
850 int captured_scrollbar_layer_id_;
851
847 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 852 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
848 }; 853 };
849 854
850 } // namespace cc 855 } // namespace cc
851 856
852 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 857 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698