| 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. | 189 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. |
| 190 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && | 190 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && |
| 191 BrowserPluginGuest::IsGuest( | 191 BrowserPluginGuest::IsGuest( |
| 192 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { | 192 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { |
| 193 return; | 193 return; |
| 194 } | 194 } |
| 195 | 195 |
| 196 NOTREACHED(); | 196 NOTREACHED(); |
| 197 } | 197 } |
| 198 | 198 |
| 199 void RenderWidgetHostViewChildFrame::TextInputStateChanged( | 199 void RenderWidgetHostViewChildFrame::UpdateTextInputState() { |
| 200 const ViewHostMsg_TextInputState_Params& params) { | 200 if (frame_connector_) |
| 201 // TODO(kenrb): Implement. | 201 frame_connector_->NotifyRootViewOfTextInputStateChanged(); |
| 202 } | 202 } |
| 203 | 203 |
| 204 void RenderWidgetHostViewChildFrame::RenderProcessGone( | 204 void RenderWidgetHostViewChildFrame::RenderProcessGone( |
| 205 base::TerminationStatus status, | 205 base::TerminationStatus status, |
| 206 int error_code) { | 206 int error_code) { |
| 207 if (frame_connector_) | 207 if (frame_connector_) |
| 208 frame_connector_->RenderProcessGone(); | 208 frame_connector_->RenderProcessGone(); |
| 209 Destroy(); | 209 Destroy(); |
| 210 } | 210 } |
| 211 | 211 |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 if (surface_factory_ && !surface_id_.is_null()) | 571 if (surface_factory_ && !surface_id_.is_null()) |
| 572 surface_factory_->Destroy(surface_id_); | 572 surface_factory_->Destroy(surface_id_); |
| 573 surface_id_ = cc::SurfaceId(); | 573 surface_id_ = cc::SurfaceId(); |
| 574 } | 574 } |
| 575 | 575 |
| 576 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { | 576 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { |
| 577 return surface_id_; | 577 return surface_id_; |
| 578 }; | 578 }; |
| 579 | 579 |
| 580 } // namespace content | 580 } // namespace content |
| OLD | NEW |