Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(879)

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame.cc

Issue 1652483002: Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small Fixes. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. 182 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call.
183 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && 183 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() &&
184 BrowserPluginGuest::IsGuest( 184 BrowserPluginGuest::IsGuest(
185 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { 185 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) {
186 return; 186 return;
187 } 187 }
188 188
189 NOTREACHED(); 189 NOTREACHED();
190 } 190 }
191 191
192 void RenderWidgetHostViewChildFrame::TextInputStateChanged( 192 void RenderWidgetHostViewChildFrame::UpdateTextInputState() {
193 const ViewHostMsg_TextInputState_Params& params) { 193 RenderWidgetHostViewBase::UpdateTextInputState();
194 // TODO(kenrb): Implement. 194
195 if (frame_connector_)
196 frame_connector_->NotifyRootViewOfTextInputStateChanged();
195 } 197 }
196 198
197 void RenderWidgetHostViewChildFrame::RenderProcessGone( 199 void RenderWidgetHostViewChildFrame::RenderProcessGone(
198 base::TerminationStatus status, 200 base::TerminationStatus status,
199 int error_code) { 201 int error_code) {
200 if (frame_connector_) 202 if (frame_connector_)
201 frame_connector_->RenderProcessGone(); 203 frame_connector_->RenderProcessGone();
202 Destroy(); 204 Destroy();
203 } 205 }
204 206
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 BrowserAccessibilityManager::GetEmptyDocument(), delegate); 529 BrowserAccessibilityManager::GetEmptyDocument(), delegate);
528 } 530 }
529 531
530 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() { 532 void RenderWidgetHostViewChildFrame::ClearCompositorSurfaceIfNecessary() {
531 if (surface_factory_ && !surface_id_.is_null()) 533 if (surface_factory_ && !surface_id_.is_null())
532 surface_factory_->Destroy(surface_id_); 534 surface_factory_->Destroy(surface_id_);
533 surface_id_ = cc::SurfaceId(); 535 surface_id_ = cc::SurfaceId();
534 } 536 }
535 537
536 } // namespace content 538 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698