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

Unified Diff: content/renderer/render_widget.cc

Issue 299793002: Forcibly notify text input type changed when RenderWidgetHostViewAura gets focused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | 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 5c82eda23832f6bf500bb5cb2975ce53e2c71cbd..bc4d18e89b5d6e5b3e858ff41f61e9bdf38ea913 100644
--- a/content/renderer/render_widget.cc
+++ b/content/renderer/render_widget.cc
@@ -1623,7 +1623,7 @@ void RenderWidget::UpdateTextInputType() {
ui::TextInputType new_type = GetTextInputType();
if (IsDateTimeInput(new_type))
- return; // Not considered as a text input field in WebKit/Chromium.
+ return; // Not considered as a text input field in WebKit/Chromium.
Yuki 2014/05/24 12:11:33 http://google-styleguide.googlecode.com/svn/trunk/
Shu Chen 2014/05/24 13:42:59 Done.
bool new_can_compose_inline = CanComposeInline();
@@ -1691,6 +1691,12 @@ void RenderWidget::UpdateTextInputState(ShowIme show_ime,
IncrementOutstandingImeEventAcks();
text_field_is_dirty_ = false;
#endif
+#if defined(USE_AURA)
+ Send(new ViewHostMsg_TextInputTypeChanged(routing_id(),
+ new_type,
+ text_input_mode_,
+ new_can_compose_inline));
+#endif
Send(new ViewHostMsg_TextInputStateChanged(routing_id(), p));
text_input_info_ = new_info;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698