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

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

Issue 2384053002: cancel overlay-scrollbar hover state when moving pointer out of window for ChromeOS (Closed)
Patch Set: reset scroll_layer_id_when_mouse_over_scrollbar_ when mouse out of windows Created 4 years, 2 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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override; 173 InputHandlerScrollResult ScrollBy(ScrollState* scroll_state) override;
174 void RequestUpdateForSynchronousInputHandler() override; 174 void RequestUpdateForSynchronousInputHandler() override;
175 void SetSynchronousInputHandlerRootScrollOffset( 175 void SetSynchronousInputHandlerRootScrollOffset(
176 const gfx::ScrollOffset& root_offset) override; 176 const gfx::ScrollOffset& root_offset) override;
177 void ScrollEnd(ScrollState* scroll_state) override; 177 void ScrollEnd(ScrollState* scroll_state) override;
178 InputHandler::ScrollStatus FlingScrollBegin() override; 178 InputHandler::ScrollStatus FlingScrollBegin() override;
179 179
180 void MouseDown() override; 180 void MouseDown() override;
181 void MouseUp() override; 181 void MouseUp() override;
182 void MouseMoveAt(const gfx::Point& viewport_point) override; 182 void MouseMoveAt(const gfx::Point& viewport_point) override;
183 void MouseLeave() override;
183 184
184 void PinchGestureBegin() override; 185 void PinchGestureBegin() override;
185 void PinchGestureUpdate(float magnify_delta, 186 void PinchGestureUpdate(float magnify_delta,
186 const gfx::Point& anchor) override; 187 const gfx::Point& anchor) override;
187 void PinchGestureEnd() override; 188 void PinchGestureEnd() override;
188 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 189 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
189 bool anchor_point, 190 bool anchor_point,
190 float page_scale, 191 float page_scale,
191 base::TimeDelta duration); 192 base::TimeDelta duration);
192 void SetNeedsAnimateInput() override; 193 void SetNeedsAnimateInput() override;
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 740
740 // In impl-side painting mode, inert tree with layers that can be recycled 741 // In impl-side painting mode, inert tree with layers that can be recycled
741 // by the next sync from the main thread. 742 // by the next sync from the main thread.
742 std::unique_ptr<LayerTreeImpl> recycle_tree_; 743 std::unique_ptr<LayerTreeImpl> recycle_tree_;
743 744
744 InputHandlerClient* input_handler_client_; 745 InputHandlerClient* input_handler_client_;
745 bool did_lock_scrolling_layer_; 746 bool did_lock_scrolling_layer_;
746 bool wheel_scrolling_; 747 bool wheel_scrolling_;
747 bool scroll_affects_scroll_handler_; 748 bool scroll_affects_scroll_handler_;
748 int scroll_layer_id_when_mouse_over_scrollbar_; 749 int scroll_layer_id_when_mouse_over_scrollbar_;
750 int scroll_layer_id_when_mouse_near_scrollbar_;
aelias_OOO_until_Jul13 2016/10/07 16:26:19 Why's this state needed? Can't you just loop thro
chaopeng 2016/10/07 18:06:16 loop through *all* scrollbar animators is better i
749 int captured_scrollbar_layer_id_; 751 int captured_scrollbar_layer_id_;
750 752
751 std::vector<std::unique_ptr<SwapPromise>> 753 std::vector<std::unique_ptr<SwapPromise>>
752 swap_promises_for_main_thread_scroll_update_; 754 swap_promises_for_main_thread_scroll_update_;
753 755
754 // An object to implement the ScrollElasticityHelper interface and 756 // An object to implement the ScrollElasticityHelper interface and
755 // hold all state related to elasticity. May be NULL if never requested. 757 // hold all state related to elasticity. May be NULL if never requested.
756 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; 758 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_;
757 759
758 bool tile_priorities_dirty_; 760 bool tile_priorities_dirty_;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 839
838 std::unique_ptr<PendingTreeDurationHistogramTimer> 840 std::unique_ptr<PendingTreeDurationHistogramTimer>
839 pending_tree_duration_timer_; 841 pending_tree_duration_timer_;
840 842
841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
842 }; 844 };
843 845
844 } // namespace cc 846 } // namespace cc
845 847
846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« 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