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

Unified Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 1635953002: Added replacement_range to ImeSetComposition (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: erikchen's review Created 4 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
Index: content/browser/renderer_host/render_widget_host_impl.cc
diff --git a/content/browser/renderer_host/render_widget_host_impl.cc b/content/browser/renderer_host/render_widget_host_impl.cc
index e1213254298612bac48fb9d87a7b2bfd3fd7434d..c3e1157039ef6a32ea46b5ab616fc67cdb057faf 100644
--- a/content/browser/renderer_host/render_widget_host_impl.cc
+++ b/content/browser/renderer_host/render_widget_host_impl.cc
@@ -1402,10 +1402,12 @@ void RenderWidgetHostImpl::NotifyTextDirection() {
void RenderWidgetHostImpl::ImeSetComposition(
const base::string16& text,
const std::vector<blink::WebCompositionUnderline>& underlines,
+ const gfx::Range& replacement_range,
int selection_start,
int selection_end) {
Send(new InputMsg_ImeSetComposition(
- GetRoutingID(), text, underlines, selection_start, selection_end));
+ GetRoutingID(), text, underlines, replacement_range,
+ selection_start, selection_end));
}
void RenderWidgetHostImpl::ImeConfirmComposition(
@@ -1418,7 +1420,8 @@ void RenderWidgetHostImpl::ImeConfirmComposition(
void RenderWidgetHostImpl::ImeCancelComposition() {
Send(new InputMsg_ImeSetComposition(GetRoutingID(), base::string16(),
- std::vector<blink::WebCompositionUnderline>(), 0, 0));
+ std::vector<blink::WebCompositionUnderline>(),
+ gfx::Range::InvalidRange(), 0, 0));
}
void RenderWidgetHostImpl::RejectMouseLockOrUnlockIfNecessary() {
« no previous file with comments | « content/browser/renderer_host/render_widget_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_view_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698