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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2470713002: [WIP Approach 1] Straighten up input method reactivation
Patch Set: fix some tests Created 4 years, 1 month 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_browsertest.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_view_impl.cc
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc
index fd36ea7eab5294114f80c6c01745ea74b98706c1..7907eb373662bb4fd9d48916ba7f101201a5d56d 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1691,7 +1691,7 @@ void RenderViewImpl::SetZoomLevel(double zoom_level) {
}
void RenderViewImpl::didCancelCompositionOnSelectionChange() {
- Send(new InputHostMsg_ImeCancelComposition(GetRoutingID()));
+ GetWidget()->CancelComposition();
}
void RenderViewImpl::SetValidationMessageDirection(
@@ -1863,8 +1863,8 @@ void RenderViewImpl::focusedNodeChanged(const WebNode& fromNode,
node_bounds = gfx::Rect(rect);
is_editable = element.isEditable();
}
- Send(new ViewHostMsg_FocusedNodeChanged(GetRoutingID(), is_editable,
- node_bounds));
+
+ GetWidget()->OnFocusedNodeChanged(is_editable, node_bounds);
// TODO(estade): remove.
for (auto& observer : observers_)
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698