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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 m_layerTreeHost->SetDeferCommits(deferCommits); | 143 m_layerTreeHost->SetDeferCommits(deferCommits); |
144 } | 144 } |
145 | 145 |
146 void WebLayerTreeViewImplForTesting::UpdateLayerTreeHost() {} | 146 void WebLayerTreeViewImplForTesting::UpdateLayerTreeHost() {} |
147 | 147 |
148 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( | 148 void WebLayerTreeViewImplForTesting::ApplyViewportDeltas( |
149 const gfx::Vector2dF& innerDelta, | 149 const gfx::Vector2dF& innerDelta, |
150 const gfx::Vector2dF& outerDelta, | 150 const gfx::Vector2dF& outerDelta, |
151 const gfx::Vector2dF& elasticOverscrollDelta, | 151 const gfx::Vector2dF& elasticOverscrollDelta, |
152 float pageScale, | 152 float pageScale, |
153 float topControlsDelta) {} | 153 float browserControlsDelta) {} |
154 | 154 |
155 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() { | 155 void WebLayerTreeViewImplForTesting::RequestNewCompositorFrameSink() { |
156 // Intentionally do not create and set an CompositorFrameSink. | 156 // Intentionally do not create and set an CompositorFrameSink. |
157 } | 157 } |
158 | 158 |
159 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() { | 159 void WebLayerTreeViewImplForTesting::DidFailToInitializeCompositorFrameSink() { |
160 ASSERT_NOT_REACHED(); | 160 ASSERT_NOT_REACHED(); |
161 } | 161 } |
162 | 162 |
163 void WebLayerTreeViewImplForTesting::registerViewportLayers( | 163 void WebLayerTreeViewImplForTesting::registerViewportLayers( |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( | 216 void WebLayerTreeViewImplForTesting::setHaveScrollEventHandlers( |
217 bool haveEentHandlers) { | 217 bool haveEentHandlers) { |
218 m_layerTreeHost->GetLayerTree()->SetHaveScrollEventHandlers(haveEentHandlers); | 218 m_layerTreeHost->GetLayerTree()->SetHaveScrollEventHandlers(haveEentHandlers); |
219 } | 219 } |
220 | 220 |
221 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { | 221 bool WebLayerTreeViewImplForTesting::haveScrollEventHandlers() const { |
222 return m_layerTreeHost->GetLayerTree()->have_scroll_event_handlers(); | 222 return m_layerTreeHost->GetLayerTree()->have_scroll_event_handlers(); |
223 } | 223 } |
224 | 224 |
225 } // namespace blink | 225 } // namespace blink |
OLD | NEW |