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

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

Issue 2471523002: Make touch events uncancelable during fling when they are on the current active scroll layer (Closed)
Patch Set: fling layer Created 4 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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 bool anchor_point, 188 bool anchor_point,
189 float page_scale, 189 float page_scale,
190 base::TimeDelta duration); 190 base::TimeDelta duration);
191 void SetNeedsAnimateInput() override; 191 void SetNeedsAnimateInput() override;
192 bool IsCurrentlyScrollingViewport() const override; 192 bool IsCurrentlyScrollingViewport() const override;
193 bool IsCurrentlyScrollingLayerAt( 193 bool IsCurrentlyScrollingLayerAt(
194 const gfx::Point& viewport_point, 194 const gfx::Point& viewport_point,
195 InputHandler::ScrollInputType type) const override; 195 InputHandler::ScrollInputType type) const override;
196 EventListenerProperties GetEventListenerProperties( 196 EventListenerProperties GetEventListenerProperties(
197 EventListenerClass event_class) const override; 197 EventListenerClass event_class) const override;
198 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; 198 EventListenerProperties DoTouchHandlersBlockScrollAt(
199 const gfx::Point& viewport_port) override;
199 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 200 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
200 ui::LatencyInfo* latency) override; 201 ui::LatencyInfo* latency) override;
201 ScrollElasticityHelper* CreateScrollElasticityHelper() override; 202 ScrollElasticityHelper* CreateScrollElasticityHelper() override;
202 bool GetScrollOffsetForLayer(int layer_id, 203 bool GetScrollOffsetForLayer(int layer_id,
203 gfx::ScrollOffset* offset) override; 204 gfx::ScrollOffset* offset) override;
204 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; 205 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override;
205 206
206 // BrowserControlsOffsetManagerClient implementation. 207 // BrowserControlsOffsetManagerClient implementation.
207 float TopControlsHeight() const override; 208 float TopControlsHeight() const override;
208 float BottomControlsHeight() const override; 209 float BottomControlsHeight() const override;
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 828
828 std::unique_ptr<PendingTreeDurationHistogramTimer> 829 std::unique_ptr<PendingTreeDurationHistogramTimer>
829 pending_tree_duration_timer_; 830 pending_tree_duration_timer_;
830 831
831 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 832 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
832 }; 833 };
833 834
834 } // namespace cc 835 } // namespace cc
835 836
836 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 837 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698