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

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 28 matching lines...) Expand all
39 39
40 namespace cc { 40 namespace cc {
41 41
42 class CompletionEvent; 42 class CompletionEvent;
43 class CompositorFrameMetadata; 43 class CompositorFrameMetadata;
44 class DebugRectHistory; 44 class DebugRectHistory;
45 class EvictionTilePriorityQueue; 45 class EvictionTilePriorityQueue;
46 class FrameRateCounter; 46 class FrameRateCounter;
47 class LayerImpl; 47 class LayerImpl;
48 class LayerTreeImpl; 48 class LayerTreeImpl;
49 class LayerTreeScrollElasticityClient;
49 class MemoryHistory; 50 class MemoryHistory;
50 class PageScaleAnimation; 51 class PageScaleAnimation;
51 class PaintTimeCounter; 52 class PaintTimeCounter;
52 class PictureLayerImpl; 53 class PictureLayerImpl;
53 class RasterTilePriorityQueue; 54 class RasterTilePriorityQueue;
54 class RasterWorkerPool; 55 class RasterWorkerPool;
55 class RenderPassDrawQuad; 56 class RenderPassDrawQuad;
56 class RenderingStatsInstrumentation; 57 class RenderingStatsInstrumentation;
57 class ResourcePool; 58 class ResourcePool;
59 class ScrollElasticityControllerClient;
58 class ScrollbarLayerImplBase; 60 class ScrollbarLayerImplBase;
59 class TextureMailboxDeleter; 61 class TextureMailboxDeleter;
60 class TopControlsManager; 62 class TopControlsManager;
61 class UIResourceBitmap; 63 class UIResourceBitmap;
62 class UIResourceRequest; 64 class UIResourceRequest;
63 struct RendererCapabilitiesImpl; 65 struct RendererCapabilitiesImpl;
64 66
65 // LayerTreeHost->Proxy callback interface. 67 // LayerTreeHost->Proxy callback interface.
66 class LayerTreeHostImplClient { 68 class LayerTreeHostImplClient {
67 public: 69 public:
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 void PinchGestureBegin() override; 151 void PinchGestureBegin() override;
150 void PinchGestureUpdate(float magnify_delta, 152 void PinchGestureUpdate(float magnify_delta,
151 const gfx::Point& anchor) override; 153 const gfx::Point& anchor) override;
152 void PinchGestureEnd() override; 154 void PinchGestureEnd() override;
153 void SetNeedsAnimate() override; 155 void SetNeedsAnimate() override;
154 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point, 156 bool IsCurrentlyScrollingLayerAt(const gfx::Point& viewport_point,
155 InputHandler::ScrollInputType type) override; 157 InputHandler::ScrollInputType type) override;
156 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override; 158 bool HaveTouchEventHandlersAt(const gfx::Point& viewport_port) override;
157 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 159 scoped_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
158 ui::LatencyInfo* latency) override; 160 ui::LatencyInfo* latency) override;
161 ScrollElasticityControllerClient* GetScrollElasticityControllerClient()
162 override;
159 163
160 // TopControlsManagerClient implementation. 164 // TopControlsManagerClient implementation.
161 void SetControlsTopOffset(float offset) override; 165 void SetControlsTopOffset(float offset) override;
162 float ControlsTopOffset() const override; 166 float ControlsTopOffset() const override;
163 void DidChangeTopControlsPosition() override; 167 void DidChangeTopControlsPosition() override;
164 bool HaveRootScrollLayer() const override; 168 bool HaveRootScrollLayer() const override;
165 169
166 struct CC_EXPORT FrameData : public RenderPassSink { 170 struct CC_EXPORT FrameData : public RenderPassSink {
167 FrameData(); 171 FrameData();
168 ~FrameData() override; 172 ~FrameData() override;
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 scoped_ptr<LayerTreeImpl> recycle_tree_; 623 scoped_ptr<LayerTreeImpl> recycle_tree_;
620 624
621 InputHandlerClient* input_handler_client_; 625 InputHandlerClient* input_handler_client_;
622 bool did_lock_scrolling_layer_; 626 bool did_lock_scrolling_layer_;
623 bool should_bubble_scrolls_; 627 bool should_bubble_scrolls_;
624 bool wheel_scrolling_; 628 bool wheel_scrolling_;
625 bool scroll_affects_scroll_handler_; 629 bool scroll_affects_scroll_handler_;
626 int scroll_layer_id_when_mouse_over_scrollbar_; 630 int scroll_layer_id_when_mouse_over_scrollbar_;
627 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_; 631 ScopedPtrVector<SwapPromise> swap_promises_for_main_thread_scroll_update_;
628 632
633 // An object to implement the ScrollElasticityControllerClient interface and
634 // hold all state related to elasticity. May be NULL if never requested.
635 scoped_ptr<LayerTreeScrollElasticityClient> scroll_elasticity_client_;
636
629 bool tile_priorities_dirty_; 637 bool tile_priorities_dirty_;
630 638
631 // The optional delegate for the root layer scroll offset. 639 // The optional delegate for the root layer scroll offset.
632 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_; 640 LayerScrollOffsetDelegate* root_layer_scroll_offset_delegate_;
633 LayerTreeSettings settings_; 641 LayerTreeSettings settings_;
634 LayerTreeDebugState debug_state_; 642 LayerTreeDebugState debug_state_;
635 bool visible_; 643 bool visible_;
636 ManagedMemoryPolicy cached_managed_memory_policy_; 644 ManagedMemoryPolicy cached_managed_memory_policy_;
637 645
638 gfx::Vector2dF accumulated_root_overscroll_; 646 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_; 721 std::vector<PictureLayerImpl::Pair> picture_layer_pairs_;
714 722
715 bool requires_high_res_to_draw_; 723 bool requires_high_res_to_draw_;
716 724
717 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 725 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
718 }; 726 };
719 727
720 } // namespace cc 728 } // namespace cc
721 729
722 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 730 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698