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

Unified Diff: content/renderer/render_view_impl.cc

Issue 2466283002: [WIP Approach 2] Straighten up input method reactivation
Patch Set: 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 93479bcf1bd718cd0da2355b5ca3a92d82777561..f040d82dccfa707a840cc03b13ce852211518c1a 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -1684,7 +1684,7 @@ void RenderViewImpl::SetZoomLevel(double zoom_level) {
}
void RenderViewImpl::didCancelCompositionOnSelectionChange() {
- Send(new InputHostMsg_ImeCancelComposition(GetRoutingID()));
+ GetWidget()->CancelComposition();
}
void RenderViewImpl::SetValidationMessageDirection(
@@ -1856,8 +1856,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