| 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 "core/exported/WebViewBase.h" | 7 #include "core/exported/WebViewBase.h" |
| 8 #include "core/frame/WebLocalFrameBase.h" | 8 #include "core/frame/WebLocalFrameBase.h" |
| 9 #include "core/layout/HitTestResult.h" | 9 #include "core/layout/HitTestResult.h" |
| 10 #include "web/WebInputMethodControllerImpl.h" | |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 | 12 |
| 14 WebViewFrameWidget::WebViewFrameWidget(WebWidgetClient& client, | 13 WebViewFrameWidget::WebViewFrameWidget(WebWidgetClient& client, |
| 15 WebViewBase& web_view, | 14 WebViewBase& web_view, |
| 16 WebLocalFrameBase& main_frame) | 15 WebLocalFrameBase& main_frame) |
| 17 : client_(&client), web_view_(&web_view), main_frame_(&main_frame) { | 16 : client_(&client), web_view_(&web_view), main_frame_(&main_frame) { |
| 18 main_frame_->SetFrameWidget(this); | 17 main_frame_->SetFrameWidget(this); |
| 19 web_view_->SetCompositorVisibility(true); | 18 web_view_->SetCompositorVisibility(true); |
| 20 } | 19 } |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 203 } |
| 205 | 204 |
| 206 void WebViewFrameWidget::SetBaseBackgroundColor(WebColor color) { | 205 void WebViewFrameWidget::SetBaseBackgroundColor(WebColor color) { |
| 207 web_view_->SetBaseBackgroundColor(color); | 206 web_view_->SetBaseBackgroundColor(color); |
| 208 } | 207 } |
| 209 | 208 |
| 210 WebLocalFrameBase* WebViewFrameWidget::LocalRoot() const { | 209 WebLocalFrameBase* WebViewFrameWidget::LocalRoot() const { |
| 211 return web_view_->MainFrameImpl(); | 210 return web_view_->MainFrameImpl(); |
| 212 } | 211 } |
| 213 | 212 |
| 214 WebInputMethodControllerImpl* | 213 WebInputMethodController* |
| 215 WebViewFrameWidget::GetActiveWebInputMethodController() const { | 214 WebViewFrameWidget::GetActiveWebInputMethodController() const { |
| 216 return web_view_->GetActiveWebInputMethodController(); | 215 return web_view_->GetActiveWebInputMethodController(); |
| 217 } | 216 } |
| 218 | 217 |
| 219 void WebViewFrameWidget::ScheduleAnimation() { | 218 void WebViewFrameWidget::ScheduleAnimation() { |
| 220 web_view_->ScheduleAnimationForWidget(); | 219 web_view_->ScheduleAnimationForWidget(); |
| 221 } | 220 } |
| 222 | 221 |
| 223 CompositorWorkerProxyClient* | 222 CompositorWorkerProxyClient* |
| 224 WebViewFrameWidget::CreateCompositorWorkerProxyClient() { | 223 WebViewFrameWidget::CreateCompositorWorkerProxyClient() { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 244 | 243 |
| 245 CompositorAnimationHost* WebViewFrameWidget::AnimationHost() const { | 244 CompositorAnimationHost* WebViewFrameWidget::AnimationHost() const { |
| 246 return web_view_->AnimationHost(); | 245 return web_view_->AnimationHost(); |
| 247 } | 246 } |
| 248 | 247 |
| 249 HitTestResult WebViewFrameWidget::CoreHitTestResultAt(const WebPoint& point) { | 248 HitTestResult WebViewFrameWidget::CoreHitTestResultAt(const WebPoint& point) { |
| 250 return web_view_->CoreHitTestResultAt(point); | 249 return web_view_->CoreHitTestResultAt(point); |
| 251 } | 250 } |
| 252 | 251 |
| 253 } // namespace blink | 252 } // namespace blink |
| OLD | NEW |