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

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

Issue 1215183004: Arrange compositor scrolling into scroll customization format (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile. Created 5 years, 5 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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // InputHandler implementation 161 // InputHandler implementation
162 void BindToClient(InputHandlerClient* client) override; 162 void BindToClient(InputHandlerClient* client) override;
163 InputHandler::ScrollStatus ScrollBegin( 163 InputHandler::ScrollStatus ScrollBegin(
164 const gfx::Point& viewport_point, 164 const gfx::Point& viewport_point,
165 InputHandler::ScrollInputType type) override; 165 InputHandler::ScrollInputType type) override;
166 InputHandler::ScrollStatus RootScrollBegin( 166 InputHandler::ScrollStatus RootScrollBegin(
167 InputHandler::ScrollInputType type) override; 167 InputHandler::ScrollInputType type) override;
168 InputHandler::ScrollStatus ScrollAnimated( 168 InputHandler::ScrollStatus ScrollAnimated(
169 const gfx::Point& viewport_point, 169 const gfx::Point& viewport_point,
170 const gfx::Vector2dF& scroll_delta) override; 170 const gfx::Vector2dF& scroll_delta) override;
171 void ApplyScroll(LayerImpl* layer, ScrollState* scroll_state);
171 InputHandlerScrollResult ScrollBy( 172 InputHandlerScrollResult ScrollBy(
172 const gfx::Point& viewport_point, 173 const gfx::Point& viewport_point,
173 const gfx::Vector2dF& scroll_delta) override; 174 const gfx::Vector2dF& scroll_delta) override;
174 bool ScrollVerticallyByPage(const gfx::Point& viewport_point, 175 bool ScrollVerticallyByPage(const gfx::Point& viewport_point,
175 ScrollDirection direction) override; 176 ScrollDirection direction) override;
176 void SetRootLayerScrollOffsetDelegate( 177 void SetRootLayerScrollOffsetDelegate(
177 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) override; 178 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate) override;
178 void OnRootLayerDelegatedScrollOffsetChanged() override; 179 void OnRootLayerDelegatedScrollOffsetChanged() override;
179 void ScrollEnd() override; 180 void ScrollEnd() override;
180 InputHandler::ScrollStatus FlingScrollBegin() override; 181 InputHandler::ScrollStatus FlingScrollBegin() override;
(...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after
723 724
724 // In impl-side painting mode, inert tree with layers that can be recycled 725 // In impl-side painting mode, inert tree with layers that can be recycled
725 // by the next sync from the main thread. 726 // by the next sync from the main thread.
726 scoped_ptr<LayerTreeImpl> recycle_tree_; 727 scoped_ptr<LayerTreeImpl> recycle_tree_;
727 728
728 InputHandlerClient* input_handler_client_; 729 InputHandlerClient* input_handler_client_;
729 bool did_lock_scrolling_layer_; 730 bool did_lock_scrolling_layer_;
730 bool should_bubble_scrolls_; 731 bool should_bubble_scrolls_;
731 bool wheel_scrolling_; 732 bool wheel_scrolling_;
732 bool scroll_affects_scroll_handler_; 733 bool scroll_affects_scroll_handler_;
734 bool in_inertial_scroll_;
733 int scroll_layer_id_when_mouse_over_scrollbar_; 735 int scroll_layer_id_when_mouse_over_scrollbar_;
734 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; 736 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_;
735 737
736 // An object to implement the ScrollElasticityHelper interface and 738 // An object to implement the ScrollElasticityHelper interface and
737 // hold all state related to elasticity. May be NULL if never requested. 739 // hold all state related to elasticity. May be NULL if never requested.
738 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_; 740 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_;
739 741
740 bool tile_priorities_dirty_; 742 bool tile_priorities_dirty_;
741 743
742 // The optional delegate for the root layer scroll offset. 744 // The optional delegate for the root layer scroll offset.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
818 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 820 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
819 821
820 scoped_ptr<Viewport> viewport_; 822 scoped_ptr<Viewport> viewport_;
821 823
822 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 824 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
823 }; 825 };
824 826
825 } // namespace cc 827 } // namespace cc
826 828
827 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 829 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698