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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.cc

Issue 639103003: Support invisible underline for IME composition. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit. Created 6 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: chrome/browser/extensions/api/input_ime/input_ime_api.cc
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.cc b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
index d051dab714ac8038a8dfd5f866a543fbe3d3928e..b1ea5018c33ac63e011b913fabaaf6727afa6b32 100644
--- a/chrome/browser/extensions/api/input_ime/input_ime_api.cc
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.cc
@@ -490,9 +490,14 @@ bool InputImeSetCompositionFunction::RunSync() {
SetComposition::Params::Parameters::SegmentsType::STYLE_UNDERLINE) {
segments.back().style =
InputMethodEngineInterface::SEGMENT_STYLE_UNDERLINE;
- } else {
+ } else if (segments_args[i]->style ==
+ SetComposition::Params::Parameters::SegmentsType::
+ STYLE_DOUBLEUNDERLINE) {
segments.back().style =
InputMethodEngineInterface::SEGMENT_STYLE_DOUBLE_UNDERLINE;
+ } else {
+ segments.back().style =
+ InputMethodEngineInterface::SEGMENT_STYLE_NO_UNDERLINE;
}
}
}
« no previous file with comments | « chrome/browser/chromeos/input_method/input_method_engine_interface.h ('k') | chrome/common/extensions/api/input_ime.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698