OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "content/browser/frame_host/render_widget_host_view_child_frame.h" | 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <utility> | 8 #include <utility> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. | 184 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. |
185 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && | 185 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && |
186 BrowserPluginGuest::IsGuest( | 186 BrowserPluginGuest::IsGuest( |
187 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { | 187 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { |
188 return; | 188 return; |
189 } | 189 } |
190 | 190 |
191 NOTREACHED(); | 191 NOTREACHED(); |
192 } | 192 } |
193 | 193 |
194 void RenderWidgetHostViewChildFrame::TextInputStateChanged( | 194 void RenderWidgetHostViewChildFrame::NotifyTextInputStateChanged() { |
195 const ViewHostMsg_TextInputState_Params& params) { | 195 RenderWidgetHostViewBase::NotifyTextInputStateChanged(); |
196 // TODO(kenrb): Implement. | 196 |
| 197 if (!frame_connector_) |
| 198 return; |
| 199 frame_connector_->NotifyRootViewOfTextInputStateChanged(); |
| 200 } |
| 201 |
| 202 bool |
| 203 RenderWidgetHostViewChildFrame::ShouldObtainTextInputStateFromSubFrameViews() |
| 204 const { |
| 205 return false; |
197 } | 206 } |
198 | 207 |
199 void RenderWidgetHostViewChildFrame::RenderProcessGone( | 208 void RenderWidgetHostViewChildFrame::RenderProcessGone( |
200 base::TerminationStatus status, | 209 base::TerminationStatus status, |
201 int error_code) { | 210 int error_code) { |
202 if (frame_connector_) | 211 if (frame_connector_) |
203 frame_connector_->RenderProcessGone(); | 212 frame_connector_->RenderProcessGone(); |
204 Destroy(); | 213 Destroy(); |
205 } | 214 } |
206 | 215 |
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 #endif | 503 #endif |
495 } | 504 } |
496 | 505 |
497 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { | 506 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { |
498 if (surface_factory_ && !surface_id_.is_null()) | 507 if (surface_factory_ && !surface_id_.is_null()) |
499 surface_factory_->Destroy(surface_id_); | 508 surface_factory_->Destroy(surface_id_); |
500 surface_id_ = cc::SurfaceId(); | 509 surface_id_ = cc::SurfaceId(); |
501 } | 510 } |
502 | 511 |
503 } // namespace content | 512 } // namespace content |
OLD | NEW |