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

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: clean up code 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 bool anchor_point, 190 bool anchor_point,
191 float page_scale, 191 float page_scale,
192 base::TimeDelta duration); 192 base::TimeDelta duration);
193 void SetNeedsAnimateInput() override; 193 void SetNeedsAnimateInput() override;
194 bool IsCurrentlyScrollingViewport() const override; 194 bool IsCurrentlyScrollingViewport() const override;
195 bool IsCurrentlyScrollingLayerAt( 195 bool IsCurrentlyScrollingLayerAt(
196 const gfx::Point& viewport_point, 196 const gfx::Point& viewport_point,
197 InputHandler::ScrollInputType type) const override; 197 InputHandler::ScrollInputType type) const override;
198 EventListenerProperties GetEventListenerProperties( 198 EventListenerProperties GetEventListenerProperties(
199 EventListenerClass event_class) const override; 199 EventListenerClass event_class) const override;
200 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; 200 InputHandler::TouchStartHitResult DoTouchEventsBlockScrollAt(
201 const gfx::Point& viewport_port) override;
201 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 202 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
202 ui::LatencyInfo* latency) override; 203 ui::LatencyInfo* latency) override;
203 ScrollElasticityHelper* CreateScrollElasticityHelper() override; 204 ScrollElasticityHelper* CreateScrollElasticityHelper() override;
204 bool GetScrollOffsetForLayer(int layer_id, 205 bool GetScrollOffsetForLayer(int layer_id,
205 gfx::ScrollOffset* offset) override; 206 gfx::ScrollOffset* offset) override;
206 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; 207 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override;
207 208
208 // BrowserControlsOffsetManagerClient implementation. 209 // BrowserControlsOffsetManagerClient implementation.
209 float TopControlsHeight() const override; 210 float TopControlsHeight() const override;
210 float BottomControlsHeight() const override; 211 float BottomControlsHeight() const override;
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
835 836
836 std::unique_ptr<PendingTreeDurationHistogramTimer> 837 std::unique_ptr<PendingTreeDurationHistogramTimer>
837 pending_tree_duration_timer_; 838 pending_tree_duration_timer_;
838 839
839 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 840 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
840 }; 841 };
841 842
842 } // namespace cc 843 } // namespace cc
843 844
844 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 845 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698