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

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: add DCHECK 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 754
754 // In impl-side painting mode, inert tree with layers that can be recycled 755 // In impl-side painting mode, inert tree with layers that can be recycled
755 // by the next sync from the main thread. 756 // by the next sync from the main thread.
756 std::unique_ptr<LayerTreeImpl> recycle_tree_; 757 std::unique_ptr<LayerTreeImpl> recycle_tree_;
757 758
758 InputHandlerClient* input_handler_client_; 759 InputHandlerClient* input_handler_client_;
759 bool did_lock_scrolling_layer_; 760 bool did_lock_scrolling_layer_;
760 bool wheel_scrolling_; 761 bool wheel_scrolling_;
761 bool scroll_affects_scroll_handler_; 762 bool scroll_affects_scroll_handler_;
762 int scroll_layer_id_when_mouse_over_scrollbar_; 763 int scroll_layer_id_when_mouse_over_scrollbar_;
764 int scroll_layer_id_when_mouse_near_scrollbar_;
763 int captured_scrollbar_layer_id_; 765 int captured_scrollbar_layer_id_;
764 766
765 std::vector<std::unique_ptr<SwapPromise>> 767 std::vector<std::unique_ptr<SwapPromise>>
766 swap_promises_for_main_thread_scroll_update_; 768 swap_promises_for_main_thread_scroll_update_;
767 769
768 // An object to implement the ScrollElasticityHelper interface and 770 // An object to implement the ScrollElasticityHelper interface and
769 // hold all state related to elasticity. May be NULL if never requested. 771 // hold all state related to elasticity. May be NULL if never requested.
770 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; 772 std::unique_ptr<ScrollElasticityHelper> scroll_elasticity_helper_;
771 773
772 bool tile_priorities_dirty_; 774 bool tile_priorities_dirty_;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
851 853
852 std::unique_ptr<PendingTreeDurationHistogramTimer> 854 std::unique_ptr<PendingTreeDurationHistogramTimer>
853 pending_tree_duration_timer_; 855 pending_tree_duration_timer_;
854 856
855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 857 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
856 }; 858 };
857 859
858 } // namespace cc 860 } // namespace cc
859 861
860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 862 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698