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

Unified Diff: content/renderer/npapi/webplugin_delegate_proxy.cc

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 years, 5 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/renderer/npapi/webplugin_delegate_proxy.cc
diff --git a/content/renderer/npapi/webplugin_delegate_proxy.cc b/content/renderer/npapi/webplugin_delegate_proxy.cc
index 0ba60f240f116f9cdf4813f360643543a0640b78..59ef01ee12e7910eef53f0c5333b1344e1f119e2 100644
--- a/content/renderer/npapi/webplugin_delegate_proxy.cc
+++ b/content/renderer/npapi/webplugin_delegate_proxy.cc
@@ -911,11 +911,12 @@ void WebPluginDelegateProxy::OnNotifyIMEStatus(int input_type,
if (!render_view_)
return;
- render_view_->Send(new ViewHostMsg_TextInputTypeChanged(
- render_view_->routing_id(),
- static_cast<ui::TextInputType>(input_type),
- ui::TEXT_INPUT_MODE_DEFAULT,
- true, 0));
+ ViewHostMsg_TextInputState_Params p;
nasko 2015/07/29 17:41:07 nit: s/p/params/
Shu Chen 2015/07/30 00:47:22 Done.
+ p.type = static_cast<ui::TextInputType>(input_type);
+ p.mode = ui::TEXT_INPUT_MODE_DEFAULT;
+ p.can_compose_inline = true;
+ render_view_->Send(new ViewHostMsg_TextInputStateChanged(
+ render_view_->routing_id(), p));
ViewHostMsg_SelectionBounds_Params bounds_params;
bounds_params.anchor_rect = bounds_params.focus_rect = caret_rect;

Powered by Google App Engine
This is Rietveld 408576698