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

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

Issue 8227018: mac: Almost fix Lion accented character bubble input in web contents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whoopsies Created 9 years, 2 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.cc
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc
index 9532db2a078a5336ad0a5286efc59b9d888d925f..47075f6c6f50743cf4822ba078e0d4514f2a92ad 100644
--- a/content/browser/renderer_host/render_widget_host.cc
+++ b/content/browser/renderer_host/render_widget_host.cc
@@ -783,11 +783,17 @@ void RenderWidgetHost::ImeSetComposition(
}
void RenderWidgetHost::ImeConfirmComposition(const string16& text) {
- Send(new ViewMsg_ImeConfirmComposition(routing_id(), text));
+ ImeConfirmComposition(text, ui::Range::InvalidRange());
+}
+
+void RenderWidgetHost::ImeConfirmComposition(
+ const string16& text, const ui::Range& replacement_range) {
+ Send(new ViewMsg_ImeConfirmComposition(
+ routing_id(), text, replacement_range));
}
void RenderWidgetHost::ImeConfirmComposition() {
- Send(new ViewMsg_ImeConfirmComposition(routing_id(), string16()));
+ ImeConfirmComposition(string16());
}
void RenderWidgetHost::ImeCancelComposition() {

Powered by Google App Engine
This is Rietveld 408576698