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

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

Issue 1866583002: Connect LTHI::ScrollAnimated to cc::Viewport (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments Created 4 years, 8 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 | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_PROPERTY_TREE_H_ 5 #ifndef CC_TREES_PROPERTY_TREE_H_
6 #define CC_TREES_PROPERTY_TREE_H_ 6 #define CC_TREES_PROPERTY_TREE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <unordered_map> 10 #include <unordered_map>
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 bool SetScrollOffsetDeltaForTesting(int layer_id, 602 bool SetScrollOffsetDeltaForTesting(int layer_id,
603 const gfx::Vector2dF& delta); 603 const gfx::Vector2dF& delta);
604 const gfx::ScrollOffset GetScrollOffsetBaseForTesting(int layer_id) const; 604 const gfx::ScrollOffset GetScrollOffsetBaseForTesting(int layer_id) const;
605 const gfx::ScrollOffset GetScrollOffsetDeltaForTesting(int layer_id) const; 605 const gfx::ScrollOffset GetScrollOffsetDeltaForTesting(int layer_id) const;
606 void CollectScrollDeltasForTesting(); 606 void CollectScrollDeltasForTesting();
607 607
608 void DistributeScroll(ScrollNode* scroll_node, ScrollState* scroll_state); 608 void DistributeScroll(ScrollNode* scroll_node, ScrollState* scroll_state);
609 gfx::Vector2dF ScrollBy(ScrollNode* scroll_node, 609 gfx::Vector2dF ScrollBy(ScrollNode* scroll_node,
610 const gfx::Vector2dF& scroll, 610 const gfx::Vector2dF& scroll,
611 LayerTreeImpl* layer_tree_impl); 611 LayerTreeImpl* layer_tree_impl);
612 gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset,
613 ScrollNode* scroll_node) const;
612 614
613 private: 615 private:
614 int currently_scrolling_node_id_; 616 int currently_scrolling_node_id_;
615 ScrollOffsetMap layer_id_to_scroll_offset_map_; 617 ScrollOffsetMap layer_id_to_scroll_offset_map_;
616 618
617 SyncedScrollOffset* synced_scroll_offset(int layer_id); 619 SyncedScrollOffset* synced_scroll_offset(int layer_id);
618 const SyncedScrollOffset* synced_scroll_offset(int layer_id) const; 620 const SyncedScrollOffset* synced_scroll_offset(int layer_id) const;
619 gfx::ScrollOffset PullDeltaForMainThread(SyncedScrollOffset* scroll_offset); 621 gfx::ScrollOffset PullDeltaForMainThread(SyncedScrollOffset* scroll_offset);
620 void UpdateScrollOffsetMapEntry(int key, 622 void UpdateScrollOffsetMapEntry(int key,
621 ScrollOffsetMap* new_scroll_offset_map, 623 ScrollOffsetMap* new_scroll_offset_map,
622 LayerTreeImpl* layer_tree_impl); 624 LayerTreeImpl* layer_tree_impl);
623 gfx::ScrollOffset ClampScrollOffsetToLimits(gfx::ScrollOffset offset,
624 ScrollNode* scroll_node) const;
625 }; 625 };
626 626
627 class CC_EXPORT PropertyTrees final { 627 class CC_EXPORT PropertyTrees final {
628 public: 628 public:
629 PropertyTrees(); 629 PropertyTrees();
630 PropertyTrees(const PropertyTrees& other); 630 PropertyTrees(const PropertyTrees& other);
631 ~PropertyTrees(); 631 ~PropertyTrees();
632 632
633 bool operator==(const PropertyTrees& other) const; 633 bool operator==(const PropertyTrees& other) const;
634 PropertyTrees& operator=(const PropertyTrees& from); 634 PropertyTrees& operator=(const PropertyTrees& from);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
678 678
679 private: 679 private:
680 gfx::Vector2dF inner_viewport_container_bounds_delta_; 680 gfx::Vector2dF inner_viewport_container_bounds_delta_;
681 gfx::Vector2dF outer_viewport_container_bounds_delta_; 681 gfx::Vector2dF outer_viewport_container_bounds_delta_;
682 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 682 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
683 }; 683 };
684 684
685 } // namespace cc 685 } // namespace cc
686 686
687 #endif // CC_TREES_PROPERTY_TREE_H_ 687 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698