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

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

Issue 2256733003: Touchpad scroll latching enabled for Mac behind flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ClearCurrentlyScrollingLayerForTesting added. Created 4 years, 3 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 ScrollNode* scroll_node) const; 602 ScrollNode* scroll_node) const;
603 603
604 // Returns true if a scroll offset animation is created and false if we scroll 604 // Returns true if a scroll offset animation is created and false if we scroll
605 // by the desired amount without an animation. 605 // by the desired amount without an animation.
606 bool ScrollAnimationCreate(ScrollNode* scroll_node, 606 bool ScrollAnimationCreate(ScrollNode* scroll_node,
607 const gfx::Vector2dF& scroll_amount); 607 const gfx::Vector2dF& scroll_amount);
608 608
609 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator); 609 void SetLayerTreeMutator(std::unique_ptr<LayerTreeMutator> mutator);
610 LayerTreeMutator* mutator() { return mutator_.get(); } 610 LayerTreeMutator* mutator() { return mutator_.get(); }
611 611
612 void ClearCurrentlyScrollingLayerForTesting() {
613 ClearCurrentlyScrollingLayer();
614 }
615
612 protected: 616 protected:
613 LayerTreeHostImpl( 617 LayerTreeHostImpl(
614 const LayerTreeSettings& settings, 618 const LayerTreeSettings& settings,
615 LayerTreeHostImplClient* client, 619 LayerTreeHostImplClient* client,
616 TaskRunnerProvider* task_runner_provider, 620 TaskRunnerProvider* task_runner_provider,
617 RenderingStatsInstrumentation* rendering_stats_instrumentation, 621 RenderingStatsInstrumentation* rendering_stats_instrumentation,
618 SharedBitmapManager* shared_bitmap_manager, 622 SharedBitmapManager* shared_bitmap_manager,
619 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 623 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
620 TaskGraphRunner* task_graph_runner, 624 TaskGraphRunner* task_graph_runner,
621 std::unique_ptr<AnimationHost> animation_host, 625 std::unique_ptr<AnimationHost> animation_host,
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
840 844
841 std::unique_ptr<PendingTreeDurationHistogramTimer> 845 std::unique_ptr<PendingTreeDurationHistogramTimer>
842 pending_tree_duration_timer_; 846 pending_tree_duration_timer_;
843 847
844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 848 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
845 }; 849 };
846 850
847 } // namespace cc 851 } // namespace cc
848 852
849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 853 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698