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

Side by Side Diff: cc/trees/layer_tree_impl.cc

Issue 274323004: NOT FOR LANDING - [WebView] Allow fling animation via the LayerScrollOffsetDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 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 #include "cc/trees/layer_tree_impl.h" 5 #include "cc/trees/layer_tree_impl.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <set> 8 #include <set>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 65 }
66 66
67 virtual void SetTotalPageScaleFactorAndLimits(float, float, float) OVERRIDE { 67 virtual void SetTotalPageScaleFactorAndLimits(float, float, float) OVERRIDE {
68 NOTIMPLEMENTED(); 68 NOTIMPLEMENTED();
69 } 69 }
70 70
71 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE { 71 virtual void SetScrollableSize(const gfx::SizeF& scrollable_size) OVERRIDE {
72 NOTIMPLEMENTED(); 72 NOTIMPLEMENTED();
73 } 73 }
74 74
75 virtual void SetNeedsAnimate(const AnimationCallback& animation) OVERRIDE {
76 NOTIMPLEMENTED();
77 }
78
75 private: 79 private:
76 LayerImpl* layer_; 80 LayerImpl* layer_;
77 LayerScrollOffsetDelegate* delegate_; 81 LayerScrollOffsetDelegate* delegate_;
78 LayerTreeImpl* layer_tree_impl_; 82 LayerTreeImpl* layer_tree_impl_;
79 gfx::Vector2dF last_set_scroll_offset_; 83 gfx::Vector2dF last_set_scroll_offset_;
80 }; 84 };
81 85
82 LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl) 86 LayerTreeImpl::LayerTreeImpl(LayerTreeHostImpl* layer_tree_host_impl)
83 : layer_tree_host_impl_(layer_tree_host_impl), 87 : layer_tree_host_impl_(layer_tree_host_impl),
84 source_frame_number_(-1), 88 source_frame_number_(-1),
(...skipping 1193 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion( 1282 LayerImpl* LayerTreeImpl::FindLayerThatIsHitByPointInTouchHandlerRegion(
1279 const gfx::PointF& screen_space_point) { 1283 const gfx::PointF& screen_space_point) {
1280 FindTouchEventLayerFunctor func = {screen_space_point}; 1284 FindTouchEventLayerFunctor func = {screen_space_point};
1281 FindClosestMatchingLayerDataForRecursion data_for_recursion; 1285 FindClosestMatchingLayerDataForRecursion data_for_recursion;
1282 FindClosestMatchingLayer( 1286 FindClosestMatchingLayer(
1283 screen_space_point, root_layer(), func, &data_for_recursion); 1287 screen_space_point, root_layer(), func, &data_for_recursion);
1284 return data_for_recursion.closest_match; 1288 return data_for_recursion.closest_match;
1285 } 1289 }
1286 1290
1287 } // namespace cc 1291 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698