OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "platform/testing/WebLayerTreeViewImplForTesting.h" | 5 #include "platform/testing/WebLayerTreeViewImplForTesting.h" |
6 | 6 |
7 #include "base/threading/thread_task_runner_handle.h" | 7 #include "base/threading/thread_task_runner_handle.h" |
8 #include "cc/animation/animation_host.h" | 8 #include "cc/animation/animation_host.h" |
9 #include "cc/animation/animation_timeline.h" | 9 #include "cc/animation/animation_timeline.h" |
10 #include "cc/blink/web_layer_impl.h" | 10 #include "cc/blink/web_layer_impl.h" |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 | 133 |
134 void WebLayerTreeViewImplForTesting::UpdateLayerTreeHost() {} | 134 void WebLayerTreeViewImplForTesting::UpdateLayerTreeHost() {} |
135 | 135 |
136 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( | 136 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( |
137 const gfx::Vector2dF& innerDelta, | 137 const gfx::Vector2dF& innerDelta, |
138 const gfx::Vector2dF& outerDelta, | 138 const gfx::Vector2dF& outerDelta, |
139 const gfx::Vector2dF& elasticOverscrollDelta, | 139 const gfx::Vector2dF& elasticOverscrollDelta, |
140 float pageScale, | 140 float pageScale, |
141 float browserControlsDelta) {} | 141 float browserControlsDelta) {} |
142 | 142 |
| 143 void WebLayerTreeViewImplForTesting::RecordWheelAndTouchScrollingCount( |
| 144 bool hasScrolledByWheel, |
| 145 bool hasScrolledByTouch) {} |
| 146 |
143 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() { | 147 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() { |
144 // Intentionally do not create and set an CompositorFrameSink. | 148 // Intentionally do not create and set an CompositorFrameSink. |
145 } | 149 } |
146 | 150 |
147 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() { | 151 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() { |
148 ASSERT_NOT_REACHED(); | 152 ASSERT_NOT_REACHED(); |
149 } | 153 } |
150 | 154 |
151 void WebLayerTreeViewImplForTesting::registerViewportLayers( | 155 void WebLayerTreeViewImplForTesting::registerViewportLayers( |
152 const blink::WebLayer* overscrollElasticityLayer, | 156 const blink::WebLayer* overscrollElasticityLayer, |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( | 204 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( |
201 bool haveEentHandlers) { | 205 bool haveEentHandlers) { |
202 m_layerTreeHost->SetHaveScrollEventHandlers(haveEentHandlers); | 206 m_layerTreeHost->SetHaveScrollEventHandlers(haveEentHandlers); |
203 } | 207 } |
204 | 208 |
205 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { | 209 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { |
206 return m_layerTreeHost->have_scroll_event_handlers(); | 210 return m_layerTreeHost->have_scroll_event_handlers(); |
207 } | 211 } |
208 | 212 |
209 } // namespace blink | 213 } // namespace blink |
OLD | NEW |