OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be found | 2 // Use of this source code is governed by a BSD-style license that can be found |
3 // in the LICENSE file. | 3 // in the LICENSE file. |
4 | 4 |
5 #include "web/WebViewFrameWidget.h" | 5 #include "web/WebViewFrameWidget.h" |
6 | 6 |
7 #include "web/WebLocalFrameImpl.h" | 7 #include "web/WebLocalFrameImpl.h" |
8 #include "web/WebViewImpl.h" | 8 #include "web/WebViewImpl.h" |
9 | 9 |
10 namespace blink { | 10 namespace blink { |
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
250 bool WebViewFrameWidget::isTransparent() const | 250 bool WebViewFrameWidget::isTransparent() const |
251 { | 251 { |
252 return m_webView->isTransparent(); | 252 return m_webView->isTransparent(); |
253 } | 253 } |
254 | 254 |
255 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) | 255 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) |
256 { | 256 { |
257 m_webView->setBaseBackgroundColor(color); | 257 m_webView->setBaseBackgroundColor(color); |
258 } | 258 } |
259 | 259 |
260 WebLocalFrameImpl* WebViewFrameWidget::localRoot() | |
261 { | |
262 return m_webView->mainFrameImpl(); | |
263 } | |
264 | |
265 void WebViewFrameWidget::scheduleAnimation() | 260 void WebViewFrameWidget::scheduleAnimation() |
266 { | 261 { |
267 m_webView->scheduleAnimationForWidget(); | 262 m_webView->scheduleAnimationForWidget(); |
268 } | 263 } |
269 | 264 |
270 CompositorProxyClient* WebViewFrameWidget::createCompositorProxyClient() | 265 CompositorProxyClient* WebViewFrameWidget::createCompositorProxyClient() |
271 { | 266 { |
272 return m_webView->createCompositorProxyClient(); | 267 return m_webView->createCompositorProxyClient(); |
273 } | 268 } |
274 | 269 |
275 void WebViewFrameWidget::setRootGraphicsLayer(GraphicsLayer* layer) | 270 void WebViewFrameWidget::setRootGraphicsLayer(GraphicsLayer* layer) |
276 { | 271 { |
277 m_webView->setRootGraphicsLayer(layer); | 272 m_webView->setRootGraphicsLayer(layer); |
278 } | 273 } |
279 | 274 |
280 void WebViewFrameWidget::attachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 275 void WebViewFrameWidget::attachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
281 { | 276 { |
282 m_webView->attachCompositorAnimationTimeline(compositorTimeline); | 277 m_webView->attachCompositorAnimationTimeline(compositorTimeline); |
283 } | 278 } |
284 | 279 |
285 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 280 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
286 { | 281 { |
287 m_webView->detachCompositorAnimationTimeline(compositorTimeline); | 282 m_webView->detachCompositorAnimationTimeline(compositorTimeline); |
288 } | 283 } |
289 | 284 |
290 } // namespace blink | 285 } // namespace blink |
OLD | NEW |