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

Unified Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 2568093003: Support parsing BackgroundSpans and UnderlineSpans in Android IME's commitText() (Closed)
Patch Set: Fix some stuff breaking Linux builds Created 4 years 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/browser_plugin/browser_plugin_guest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
index d4d4f14d881c1e6f02b7efe8578dc5bbd3785819..2c561fb47fd91e49c713f095a58ded4bc822864d 100644
--- a/content/browser/browser_plugin/browser_plugin_guest.cc
+++ b/content/browser/browser_plugin/browser_plugin_guest.cc
@@ -906,11 +906,13 @@ void BrowserPluginGuest::OnImeSetComposition(
selection_start, selection_end));
}
-void BrowserPluginGuest::OnImeCommitText(int browser_plugin_instance_id,
- const std::string& text,
- int relative_cursor_pos) {
+void BrowserPluginGuest::OnImeCommitText(
+ int browser_plugin_instance_id,
+ const std::string& text,
+ const std::vector<blink::WebCompositionUnderline>& underlines,
+ int relative_cursor_pos) {
Send(new InputMsg_ImeCommitText(routing_id(), base::UTF8ToUTF16(text),
- gfx::Range::InvalidRange(),
+ underlines, gfx::Range::InvalidRange(),
relative_cursor_pos));
}

Powered by Google App Engine
This is Rietveld 408576698