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

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

Issue 713413002: Hook ScrollElasticityController to InputHandlerProxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Incorporate review feedback Created 6 years, 1 month 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 <list> 8 #include <list>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 class LayerTreeImpl; 48 class LayerTreeImpl;
49 class MemoryHistory; 49 class MemoryHistory;
50 class PageScaleAnimation; 50 class PageScaleAnimation;
51 class PaintTimeCounter; 51 class PaintTimeCounter;
52 class PictureLayerImpl; 52 class PictureLayerImpl;
53 class RasterTilePriorityQueue; 53 class RasterTilePriorityQueue;
54 class RasterWorkerPool; 54 class RasterWorkerPool;
55 class RenderPassDrawQuad; 55 class RenderPassDrawQuad;
56 class RenderingStatsInstrumentation; 56 class RenderingStatsInstrumentation;
57 class ResourcePool; 57 class ResourcePool;
58 class ScrollElasticityHelper;
58 class ScrollbarLayerImplBase; 59 class ScrollbarLayerImplBase;
59 class TextureMailboxDeleter; 60 class TextureMailboxDeleter;
60 class TopControlsManager; 61 class TopControlsManager;
61 class UIResourceBitmap; 62 class UIResourceBitmap;
62 class UIResourceRequest; 63 class UIResourceRequest;
63 struct RendererCapabilitiesImpl; 64 struct RendererCapabilitiesImpl;
64 65
65 // LayerTreeHost->Proxy callback interface. 66 // LayerTreeHost->Proxy callback interface.
66 class LayerTreeHostImplClient { 67 class LayerTreeHostImplClient {
67 public: 68 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void PinchGestureBegin() override; 150 void PinchGestureBegin() override;
150 void PinchGestureUpdate(float magnify_delta, 151 void PinchGestureUpdate(float magnify_delta,
151 const gfx::Point& anchor) override; 152 const gfx::Point& anchor) override;
152 void PinchGestureEnd() override; 153 void PinchGestureEnd() override;
153 void SetNeedsAnimate() override; 154 void SetNeedsAnimate() override;
154 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, 155 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point,
155 InputHandler::ScrollInputType type) override; 156 InputHandler::ScrollInputType type) override;
156 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; 157 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override;
157 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 158 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
158 ui::LatencyInfo* latency) override; 159 ui::LatencyInfo* latency) override;
160 ScrollElasticityHelper* CreateScrollElasticityHelper() override;
159 161
160 // TopControlsManagerClient implementation. 162 // TopControlsManagerClient implementation.
161 void SetControlsTopOffset(float offset) override; 163 void SetControlsTopOffset(float offset) override;
162 float ControlsTopOffset() const override; 164 float ControlsTopOffset() const override;
163 void DidChangeTopControlsPosition() override; 165 void DidChangeTopControlsPosition() override;
164 bool HaveRootScrollLayer() const override; 166 bool HaveRootScrollLayer() const override;
165 167
166 struct CC_EXPORT FrameData : public RenderPassSink { 168 struct CC_EXPORT FrameData : public RenderPassSink {
167 FrameData(); 169 FrameData();
168 ~FrameData() override; 170 ~FrameData() override;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 scoped_ptr<LayerTreeImpl> recycle_tree_; 621 scoped_ptr<LayerTreeImpl> recycle_tree_;
620 622
621 InputHandlerClient* input_handler_client_; 623 InputHandlerClient* input_handler_client_;
622 bool did_lock_scrolling_layer_; 624 bool did_lock_scrolling_layer_;
623 bool should_bubble_scrolls_; 625 bool should_bubble_scrolls_;
624 bool wheel_scrolling_; 626 bool wheel_scrolling_;
625 bool scroll_affects_scroll_handler_; 627 bool scroll_affects_scroll_handler_;
626 int scroll_layer_id_when_mouse_over_scrollbar_; 628 int scroll_layer_id_when_mouse_over_scrollbar_;
627 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; 629 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_;
628 630
631 // An object to implement the ScrollElasticityHelper interface and
632 // hold all state related to elasticity. May be NULL if never requested.
633 scoped_ptr<ScrollElasticityHelper> scroll_elasticity_helper_;
634
629 bool tile_priorities_dirty_; 635 bool tile_priorities_dirty_;
630 636
631 // The optional delegate for the root layer scroll offset. 637 // The optional delegate for the root layer scroll offset.
632 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 638 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
633 LayerTreeSettings settings_; 639 LayerTreeSettings settings_;
634 LayerTreeDebugState debug_state_; 640 LayerTreeDebugState debug_state_;
635 bool visible_; 641 bool visible_;
636 ManagedMemoryPolicy cached_managed_memory_policy_; 642 ManagedMemoryPolicy cached_managed_memory_policy_;
637 643
638 gfx::Vector2dF accumulated_root_overscroll_; 644 gfx::Vector2dF accumulated_root_overscroll_;
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
713 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_; 719 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
714 720
715 bool requires_high_res_to_draw_; 721 bool requires_high_res_to_draw_;
716 722
717 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 723 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
718 }; 724 };
719 725
720 } // namespace cc 726 } // namespace cc
721 727
722 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 728 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698