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

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

Issue 2194833002: Overscroll and Elasticity for views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-RouteThroughInputHandler
Patch Set: Restore functionality and fix bugs \o/ Created 4 years, 1 month 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/draw_property_utils.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 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 template <typename Function> 138 template <typename Function>
139 static void CallFunctionForEveryLayer(LayerTreeImpl* layer, 139 static void CallFunctionForEveryLayer(LayerTreeImpl* layer,
140 const Function& function); 140 const Function& function);
141 141
142 struct CC_EXPORT ScrollUpdateInfo { 142 struct CC_EXPORT ScrollUpdateInfo {
143 int layer_id; 143 int layer_id;
144 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports 144 // TODO(miletus): Use ScrollOffset once LayerTreeHost/Blink fully supports
145 // franctional scroll offset. 145 // franctional scroll offset.
146 gfx::Vector2d scroll_delta; 146 gfx::Vector2d scroll_delta;
147 gfx::ScrollOffset overscroll;
147 148
148 ScrollUpdateInfo(); 149 ScrollUpdateInfo();
149 150
150 bool operator==(const ScrollUpdateInfo& other) const; 151 bool operator==(const ScrollUpdateInfo& other) const;
151 152
152 void ToProtobuf(proto::ScrollUpdateInfo* proto) const; 153 void ToProtobuf(proto::ScrollUpdateInfo* proto) const;
153 void FromProtobuf(const proto::ScrollUpdateInfo& proto); 154 void FromProtobuf(const proto::ScrollUpdateInfo& proto);
154 }; 155 };
155 }; 156 };
156 157
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 function(tree_impl->LayerById(id)); 199 function(tree_impl->LayerById(id));
199 } 200 }
200 } 201 }
201 202
202 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer); 203 CC_EXPORT PropertyTrees* GetPropertyTrees(Layer* layer);
203 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer); 204 CC_EXPORT PropertyTrees* GetPropertyTrees(LayerImpl* layer);
204 205
205 } // namespace cc 206 } // namespace cc
206 207
207 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_ 208 #endif // CC_TREES_LAYER_TREE_HOST_COMMON_H_
OLDNEW
« no previous file with comments | « cc/trees/draw_property_utils.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698