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

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

Issue 2189583004: [not for review - epic CL] Adding Elastic+Momentum+Layered scrolling to views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 2 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/property_tree_unittest.cc ('k') | cc/trees/transform_node.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_TRANSFORM_NODE_H_ 5 #ifndef CC_TREES_TRANSFORM_NODE_H_
6 #define CC_TREES_TRANSFORM_NODE_H_ 6 #define CC_TREES_TRANSFORM_NODE_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "ui/gfx/geometry/point_f.h" 9 #include "ui/gfx/geometry/point_f.h"
10 #include "ui/gfx/geometry/scroll_offset.h" 10 #include "ui/gfx/geometry/scroll_offset.h"
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 111
112 // We need to track changes to to_screen transform to compute the damage rect. 112 // We need to track changes to to_screen transform to compute the damage rect.
113 bool transform_changed : 1; 113 bool transform_changed : 1;
114 114
115 // TODO(vollick): will be moved when accelerated effects are implemented. 115 // TODO(vollick): will be moved when accelerated effects are implemented.
116 float post_local_scale_factor; 116 float post_local_scale_factor;
117 117
118 gfx::Vector2dF surface_contents_scale; 118 gfx::Vector2dF surface_contents_scale;
119 119
120 // TODO(vollick): will be moved when accelerated effects are implemented. 120 // TODO(vollick): will be moved when accelerated effects are implemented.
121 gfx::ScrollOffset scroll_offset; 121 gfx::ScrollOffset scroll_offset_with_overscroll;
122 122
123 // We scroll snap where possible, but this means fixed-pos elements must be 123 // We scroll snap where possible, but this means fixed-pos elements must be
124 // adjusted. This value stores the snapped amount for this purpose. 124 // adjusted. This value stores the snapped amount for this purpose.
125 gfx::Vector2dF scroll_snap; 125 gfx::Vector2dF scroll_snap;
126 126
127 // TODO(vollick): will be moved when accelerated effects are implemented. 127 // TODO(vollick): will be moved when accelerated effects are implemented.
128 gfx::Vector2dF source_offset; 128 gfx::Vector2dF source_offset;
129 gfx::Vector2dF source_to_parent; 129 gfx::Vector2dF source_to_parent;
130 130
131 bool operator==(const TransformNode& other) const; 131 bool operator==(const TransformNode& other) const;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 bool operator==(const TransformCachedNodeData& other) const; 164 bool operator==(const TransformCachedNodeData& other) const;
165 165
166 void ToProtobuf(proto::TransformCachedNodeData* proto) const; 166 void ToProtobuf(proto::TransformCachedNodeData* proto) const;
167 void FromProtobuf(const proto::TransformCachedNodeData& proto); 167 void FromProtobuf(const proto::TransformCachedNodeData& proto);
168 }; 168 };
169 169
170 } // namespace cc 170 } // namespace cc
171 171
172 #endif // CC_TREES_TRANSFORM_NODE_H_ 172 #endif // CC_TREES_TRANSFORM_NODE_H_
OLDNEW
« no previous file with comments | « cc/trees/property_tree_unittest.cc ('k') | cc/trees/transform_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698