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

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

Issue 1689293002: cc: Move TryScroll from LayerImpl to LayerTreeHostImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with master branch Created 4 years, 10 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
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 <vector> 10 #include <vector>
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 ScrollNodeData(); 268 ScrollNodeData();
269 269
270 bool scrollable; 270 bool scrollable;
271 uint32_t main_thread_scrolling_reasons; 271 uint32_t main_thread_scrolling_reasons;
272 bool contains_non_fast_scrollable_region; 272 bool contains_non_fast_scrollable_region;
273 gfx::Size scroll_clip_layer_bounds; 273 gfx::Size scroll_clip_layer_bounds;
274 gfx::Size bounds; 274 gfx::Size bounds;
275 bool max_scroll_offset_affected_by_page_scale; 275 bool max_scroll_offset_affected_by_page_scale;
276 bool is_inner_viewport_scroll_layer; 276 bool is_inner_viewport_scroll_layer;
277 bool is_outer_viewport_scroll_layer; 277 bool is_outer_viewport_scroll_layer;
278 int transform_id;
278 279
279 bool operator==(const ScrollNodeData& other) const; 280 bool operator==(const ScrollNodeData& other) const;
280 281
281 void ToProtobuf(proto::TreeNode* proto) const; 282 void ToProtobuf(proto::TreeNode* proto) const;
282 void FromProtobuf(const proto::TreeNode& proto); 283 void FromProtobuf(const proto::TreeNode& proto);
283 }; 284 };
284 285
285 typedef TreeNode<ScrollNodeData> ScrollNode; 286 typedef TreeNode<ScrollNodeData> ScrollNode;
286 287
287 class PropertyTrees; 288 class PropertyTrees;
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 public: 524 public:
524 ScrollTree(); 525 ScrollTree();
525 ~ScrollTree() override; 526 ~ScrollTree() override;
526 527
527 bool operator==(const ScrollTree& other) const; 528 bool operator==(const ScrollTree& other) const;
528 529
529 void ToProtobuf(proto::PropertyTree* proto) const; 530 void ToProtobuf(proto::PropertyTree* proto) const;
530 void FromProtobuf(const proto::PropertyTree& proto); 531 void FromProtobuf(const proto::PropertyTree& proto);
531 532
532 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const; 533 gfx::ScrollOffset MaxScrollOffset(int scroll_node_id) const;
534 gfx::Transform ScreenSpaceTransform(int scroll_node_id) const;
533 }; 535 };
534 536
535 class CC_EXPORT PropertyTrees final { 537 class CC_EXPORT PropertyTrees final {
536 public: 538 public:
537 PropertyTrees(); 539 PropertyTrees();
538 ~PropertyTrees(); 540 ~PropertyTrees();
539 541
540 bool operator==(const PropertyTrees& other) const; 542 bool operator==(const PropertyTrees& other) const;
541 PropertyTrees& operator=(const PropertyTrees& from); 543 PropertyTrees& operator=(const PropertyTrees& from);
542 544
(...skipping 26 matching lines...) Expand all
569 571
570 private: 572 private:
571 gfx::Vector2dF inner_viewport_container_bounds_delta_; 573 gfx::Vector2dF inner_viewport_container_bounds_delta_;
572 gfx::Vector2dF outer_viewport_container_bounds_delta_; 574 gfx::Vector2dF outer_viewport_container_bounds_delta_;
573 gfx::Vector2dF inner_viewport_scroll_bounds_delta_; 575 gfx::Vector2dF inner_viewport_scroll_bounds_delta_;
574 }; 576 };
575 577
576 } // namespace cc 578 } // namespace cc
577 579
578 #endif // CC_TREES_PROPERTY_TREE_H_ 580 #endif // CC_TREES_PROPERTY_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698