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

Unified 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: Fixed a Compile Error Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/frame_host/render_widget_host_view_child_frame.cc
diff --git a/content/browser/frame_host/render_widget_host_view_child_frame.cc b/content/browser/frame_host/render_widget_host_view_child_frame.cc
index c27af7e68bc4d35ae014a653597a531ed0f451cb..3b44173619bfeb6d597c72e9cf7050e3c76a1301 100644
--- a/content/browser/frame_host/render_widget_host_view_child_frame.cc
+++ b/content/browser/frame_host/render_widget_host_view_child_frame.cc
@@ -196,11 +196,6 @@ void RenderWidgetHostViewChildFrame::SetIsLoading(bool is_loading) {
NOTREACHED();
}
-void RenderWidgetHostViewChildFrame::TextInputStateChanged(
- const ViewHostMsg_TextInputState_Params& params) {
- // TODO(kenrb): Implement.
-}
-
void RenderWidgetHostViewChildFrame::RenderProcessGone(
base::TerminationStatus status,
int error_code) {
@@ -223,6 +218,11 @@ void RenderWidgetHostViewChildFrame::Destroy() {
// RenderWidgetHostInputEventRouter afterwards.
NotifyObserversAboutShutdown();
+ // If this view has an active text input, the RenderWidgetHostDelegate should
+ // be notified.
+ if (text_input_state()->type != ui::TEXT_INPUT_TYPE_NONE)
+ TextInputStateChanged(TextInputState());
Charlie Reis 2016/03/15 18:32:00 Why are we passing in an empty one rather than tex
EhsanK 2016/03/15 23:51:17 This line will reset the WebContents knowledge of
Charlie Reis 2016/03/16 16:55:13 I see-- I didn't notice that this was during Destr
EhsanK 2016/03/30 20:46:03 Done.
+
host_->SetView(NULL);
host_ = NULL;
base::MessageLoop::current()->DeleteSoon(FROM_HERE, this);

Powered by Google App Engine
This is Rietveld 408576698