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

Unified Diff: content/renderer/render_frame_impl.cc

Issue 2617443002: Implement ThreadedInputConnection.deleteSurroundingTextInCodePoints() (Closed)
Patch Set: Add some DCHECK Created 3 years, 10 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/render_frame_impl.cc
diff --git a/content/renderer/render_frame_impl.cc b/content/renderer/render_frame_impl.cc
index 092fac79c26787f7e08aa52943c201a1f669561b..6f4f0f108bb4fd51f12c1957816d6927238c8484 100644
--- a/content/renderer/render_frame_impl.cc
+++ b/content/renderer/render_frame_impl.cc
@@ -1513,6 +1513,8 @@ bool RenderFrameImpl::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(InputMsg_ExtendSelectionAndDelete,
OnExtendSelectionAndDelete)
IPC_MESSAGE_HANDLER(InputMsg_DeleteSurroundingText, OnDeleteSurroundingText)
+ IPC_MESSAGE_HANDLER(InputMsg_DeleteSurroundingTextInCodePoints,
+ OnDeleteSurroundingTextInCodePoints)
IPC_MESSAGE_HANDLER(InputMsg_SetCompositionFromExistingText,
OnSetCompositionFromExistingText)
IPC_MESSAGE_HANDLER(InputMsg_SetEditableSelectionOffsets,
@@ -2090,6 +2092,12 @@ void RenderFrameImpl::OnDeleteSurroundingText(int before, int after) {
frame_->deleteSurroundingText(before, after);
}
+void RenderFrameImpl::OnDeleteSurroundingTextInCodePoints(int before,
+ int after) {
+ ImeEventGuard guard(GetRenderWidget());
+ frame_->deleteSurroundingTextInCodePoints(before, after);
+}
+
void RenderFrameImpl::OnSetAccessibilityMode(AccessibilityMode new_mode) {
if (accessibility_mode_ == new_mode)
return;

Powered by Google App Engine
This is Rietveld 408576698