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/WebInputMethodControllerImpl.h" |
7 #include "web/WebLocalFrameImpl.h" | 8 #include "web/WebLocalFrameImpl.h" |
8 #include "web/WebViewImpl.h" | 9 #include "web/WebViewImpl.h" |
9 | 10 |
10 namespace blink { | 11 namespace blink { |
11 | 12 |
12 WebViewFrameWidget::WebViewFrameWidget(WebWidgetClient* client, WebViewImpl& web
View, WebLocalFrameImpl& mainFrame) | 13 WebViewFrameWidget::WebViewFrameWidget(WebWidgetClient* client, WebViewImpl& web
View, WebLocalFrameImpl& mainFrame) |
13 : m_client(client), m_webView(&webView), m_mainFrame(&mainFrame) | 14 : m_client(client), m_webView(&webView), m_mainFrame(&mainFrame) |
14 { | 15 { |
15 m_mainFrame->setFrameWidget(this); | 16 m_mainFrame->setFrameWidget(this); |
16 m_webView->setCompositorVisibility(true); | 17 m_webView->setCompositorVisibility(true); |
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) | 261 void WebViewFrameWidget::setBaseBackgroundColor(WebColor color) |
261 { | 262 { |
262 m_webView->setBaseBackgroundColor(color); | 263 m_webView->setBaseBackgroundColor(color); |
263 } | 264 } |
264 | 265 |
265 WebLocalFrameImpl* WebViewFrameWidget::localRoot() | 266 WebLocalFrameImpl* WebViewFrameWidget::localRoot() |
266 { | 267 { |
267 return m_webView->mainFrameImpl(); | 268 return m_webView->mainFrameImpl(); |
268 } | 269 } |
269 | 270 |
| 271 WebInputMethodControllerImpl* WebViewFrameWidget::getActiveWebInputMethodControl
ler() const |
| 272 { |
| 273 return m_webView->getActiveWebInputMethodController(); |
| 274 } |
| 275 |
270 void WebViewFrameWidget::scheduleAnimation() | 276 void WebViewFrameWidget::scheduleAnimation() |
271 { | 277 { |
272 m_webView->scheduleAnimationForWidget(); | 278 m_webView->scheduleAnimationForWidget(); |
273 } | 279 } |
274 | 280 |
275 CompositorProxyClient* WebViewFrameWidget::createCompositorProxyClient() | 281 CompositorProxyClient* WebViewFrameWidget::createCompositorProxyClient() |
276 { | 282 { |
277 return m_webView->createCompositorProxyClient(); | 283 return m_webView->createCompositorProxyClient(); |
278 } | 284 } |
279 | 285 |
280 void WebViewFrameWidget::setRootGraphicsLayer(GraphicsLayer* layer) | 286 void WebViewFrameWidget::setRootGraphicsLayer(GraphicsLayer* layer) |
281 { | 287 { |
282 m_webView->setRootGraphicsLayer(layer); | 288 m_webView->setRootGraphicsLayer(layer); |
283 } | 289 } |
284 | 290 |
285 void WebViewFrameWidget::attachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 291 void WebViewFrameWidget::attachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
286 { | 292 { |
287 m_webView->attachCompositorAnimationTimeline(compositorTimeline); | 293 m_webView->attachCompositorAnimationTimeline(compositorTimeline); |
288 } | 294 } |
289 | 295 |
290 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) | 296 void WebViewFrameWidget::detachCompositorAnimationTimeline(CompositorAnimationTi
meline* compositorTimeline) |
291 { | 297 { |
292 m_webView->detachCompositorAnimationTimeline(compositorTimeline); | 298 m_webView->detachCompositorAnimationTimeline(compositorTimeline); |
293 } | 299 } |
294 | 300 |
295 } // namespace blink | 301 } // namespace blink |
OLD | NEW |