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

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

Issue 1680613002: Adding momentum/overscroll to views:: ScrollViews Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Tableview layout. aaaand I think we are done Created 4 years, 4 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.cc ('k') | cc/trees/layer_tree_host_common.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_COMMON_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_COMMON_H_
6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_ 6 #define CC_TREES_LAYER_TREE_HOST_COMMON_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <limits> 10 #include <limits>
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 128
129 template <typename Function> 129 template <typename Function>
130 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, 130 static void CallFunctionForEveryLayer(LayerTreeImpl* layer,
131 const Function& function); 131 const Function& function);
132 132
133 struct CC_EXPORT ScrollUpdateInfo { 133 struct CC_EXPORT ScrollUpdateInfo {
134 int layer_id; 134 int layer_id;
135 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports 135 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports
136 // franctional scroll offset. 136 // franctional scroll offset.
137 gfx::Vector2d scroll_delta; 137 gfx::Vector2d scroll_delta;
138 gfx::ScrollOffset overscroll;
138 139
139 ScrollUpdateInfo(); 140 ScrollUpdateInfo();
140 141
141 bool operator==(const ScrollUpdateInfo& other) const; 142 bool operator==(const ScrollUpdateInfo& other) const;
142 143
143 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; 144 void ToProtobuf(proto::ScrollUpdateInfo* proto) const;
144 void FromProtobuf(const proto::ScrollUpdateInfo& proto); 145 void FromProtobuf(const proto::ScrollUpdateInfo& proto);
145 }; 146 };
146 }; 147 };
147 148
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 function(tree_impl->LayerById(id)); 196 function(tree_impl->LayerById(id));
196 } 197 }
197 } 198 }
198 199
199 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 200 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
200 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 201 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
201 202
202 } // namespace cc 203 } // namespace cc
203 204
204 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 205 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698