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

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

Issue 1895523002: Revert of Browser Side Text Input State Tracking for OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call. 211 // RenderWidgetHostViewChildFrame which do not get a SetIsLoading() call.
212 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() && 212 if (BrowserPluginGuestMode::UseCrossProcessFramesForGuests() &&
213 BrowserPluginGuest::IsGuest( 213 BrowserPluginGuest::IsGuest(
214 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) { 214 static_cast<RenderViewHostImpl*>(RenderViewHost::From(host_)))) {
215 return; 215 return;
216 } 216 }
217 217
218 NOTREACHED(); 218 NOTREACHED();
219 } 219 }
220 220
221 void RenderWidgetHostViewChildFrame::TextInputStateChanged(
222 const ViewHostMsg_TextInputState_Params& params) {
223 // TODO(kenrb): Implement.
224 }
225
221 void RenderWidgetHostViewChildFrame::RenderProcessGone( 226 void RenderWidgetHostViewChildFrame::RenderProcessGone(
222 base::TerminationStatus status, 227 base::TerminationStatus status,
223 int error_code) { 228 int error_code) {
224 if (frame_connector_) 229 if (frame_connector_)
225 frame_connector_->RenderProcessGone(); 230 frame_connector_->RenderProcessGone();
226 Destroy(); 231 Destroy();
227 } 232 }
228 233
229 void RenderWidgetHostViewChildFrame::Destroy() { 234 void RenderWidgetHostViewChildFrame::Destroy() {
230 // SurfaceIdNamespaces registered with RenderWidgetHostInputEventRouter 235 // SurfaceIdNamespaces registered with RenderWidgetHostInputEventRouter
231 // have already been cleared when RenderWidgetHostViewBase notified its 236 // have already been cleared when RenderWidgetHostViewBase notified its
232 // observers of our impending destruction. 237 // observers of our impending destruction.
233 if (frame_connector_) { 238 if (frame_connector_) {
234 frame_connector_->set_view(NULL); 239 frame_connector_->set_view(NULL);
235 frame_connector_ = NULL; 240 frame_connector_ = NULL;
236 } 241 }
237 242
238 // We notify our observers about shutdown here since we are about to release 243 // We notify our observers about shutdown here since we are about to release
239 // host_ and do not want any event calls coming from 244 // host_ and do not want any event calls coming from
240 // RenderWidgetHostInputEventRouter afterwards. 245 // RenderWidgetHostInputEventRouter afterwards.
241 NotifyObserversAboutShutdown(); 246 NotifyObserversAboutShutdown();
242 247
243 // If this view has an active text input, the RenderWidgetHostDelegate should
244 // be notified.
245 NotifyHostDelegateAboutShutdown();
246
247 host_->SetView(NULL); 248 host_->SetView(NULL);
248 host_ = NULL; 249 host_ = NULL;
249 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); 250 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);
250 } 251 }
251 252
252 void RenderWidgetHostViewChildFrame::SetTooltipText( 253 void RenderWidgetHostViewChildFrame::SetTooltipText(
253 const base::string16& tooltip_text) { 254 const base::string16& tooltip_text) {
254 } 255 }
255 256
256 void RenderWidgetHostViewChildFrame::SelectionChanged( 257 void RenderWidgetHostViewChildFrame::SelectionChanged(
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 583
583 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const { 584 bool RenderWidgetHostViewChildFrame::IsChildFrameForTesting() const {
584 return true; 585 return true;
585 } 586 }
586 587
587 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const { 588 cc::SurfaceId RenderWidgetHostViewChildFrame::SurfaceIdForTesting() const {
588 return surface_id_; 589 return surface_id_;
589 }; 590 };
590 591
591 } // namespace content 592 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698