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

Unified Diff: content/renderer/render_widget.cc

Issue 2623483003: Support tracking focused node element for OOPIFs. (Closed)
Patch Set: Added the missing forward declaration Created 3 years, 11 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
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_widget.cc
diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc
index fd2e7b22c706e48ca4de74c66cd52cb4a75a7939..9aabb0ab876a4ac88c856c6e39c5612e30c29c90 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -2178,6 +2178,19 @@ void RenderWidget::didHandleGestureEvent(
else
UpdateTextInputState(ShowIme::IF_NEEDED, ChangeSource::FROM_NON_IME);
}
+// TODO(ananta): Piggyback off existing IPCs to communicate this information,
+// crbug/420130.
+#if defined(OS_WIN)
+ if (event.type != blink::WebGestureEvent::GestureTap)
+ return;
+
+ // TODO(estade): hit test the event against focused node to make sure
+ // the tap actually hit the focused node.
+ blink::WebTextInputType text_input_type = GetWebWidget()->textInputType();
+
+ Send(new ViewHostMsg_FocusedNodeTouched(
+ routing_id_, text_input_type != blink::WebTextInputTypeNone));
+#endif
#endif
}
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698