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

Unified Diff: content/renderer/render_view_impl.cc

Issue 8907016: Spellchecker should recheck after changing language. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Patch Created 8 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.h ('k') | no next file » | 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 e8a32e132b4c690076d5b8d5a248b83da3e1c063..6d8eb20b394a4f1d705b9de524d7dbd845d00326 100644
--- a/content/renderer/render_view_impl.cc
+++ b/content/renderer/render_view_impl.cc
@@ -711,6 +711,7 @@ bool RenderViewImpl::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(ViewMsg_ShouldClose, OnShouldClose)
IPC_MESSAGE_HANDLER(ViewMsg_SwapOut, OnSwapOut)
IPC_MESSAGE_HANDLER(ViewMsg_ClosePage, OnClosePage)
+ IPC_MESSAGE_HANDLER(ViewMsg_TextChecking, OnTextChecking)
IPC_MESSAGE_HANDLER(ViewMsg_ThemeChanged, OnThemeChanged)
IPC_MESSAGE_HANDLER(ViewMsg_DisassociateFromPopupCount,
OnDisassociateFromPopupCount)
@@ -1086,6 +1087,18 @@ void RenderViewImpl::OnScrollFocusedEditableNodeIntoRect(
}
}
+void RenderViewImpl::OnTextChecking() {
+ WebNode focused_node = GetFocusedNode();
+ if (focused_node.isNull())
+ return;
+
+ WebElement root = focused_node.rootEditableElement();
+ if (root.isNull())
+ return;
+
+ webview()->focusedFrame()->requestTextChecking(root);
+}
+
///////////////////////////////////////////////////////////////////////////////
// Tell the embedding application that the URL of the active page has changed
« no previous file with comments | « content/renderer/render_view_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698