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

Unified Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 606063002: Only strip 'keyboard' from the input method name for OOBE screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits per comments Created 6 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/input_method/input_method_util.h
diff --git a/chrome/browser/chromeos/input_method/input_method_util.h b/chrome/browser/chromeos/input_method/input_method_util.h
index 36ba5aba16feab95b22dc6f502abcb2d91ffb4b8..fc7750928962a2c0147b4e59e1575bcc997dda15 100644
--- a/chrome/browser/chromeos/input_method/input_method_util.h
+++ b/chrome/browser/chromeos/input_method/input_method_util.h
@@ -57,6 +57,8 @@ class InputMethodUtil {
const InputMethodDescriptor& input_method) const;
base::string16 GetInputMethodMediumName(
const InputMethodDescriptor& input_method) const;
+ base::string16 GetInputMethodLongNameStripped(
+ const InputMethodDescriptor& input_method) const;
base::string16 GetInputMethodLongName(
const InputMethodDescriptor& input_method) const;
@@ -177,6 +179,12 @@ class InputMethodUtil {
bool TranslateStringInternal(const std::string& english_string,
base::string16 *out_string) const;
+ // Get long name of the given input method. |strip| is to specify whether to
+ // strip the 'keyboard' from the long name, as some UI (e.g. OOBE) doesn't
+ // want it.
+ base::string16 GetInputMethodLongNameInternal(
+ const InputMethodDescriptor& input_method, bool strip) const;
Seigo Nonaka 2014/09/30 02:42:08 What happens in the case of non US locale? For exa
Shu Chen 2014/09/30 02:50:43 That depends on how the translator translates "US"
Seigo Nonaka 2014/09/30 03:08:52 Ah, I misunderstand. The real behavior is using tr
Shu Chen 2014/09/30 03:18:56 Done.
+
// Map from language code to associated input method IDs, etc.
typedef std::multimap<std::string, std::string> LanguageCodeToIdsMap;
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698