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

Side by Side Diff: chrome/browser/chromeos/input_method/input_method_util.h

Issue 23297004: Remove ExtraLanguage entries from InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove obsolete tests. Created 7 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/input_method/input_method_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Returns the input method ID of the hardware keyboard. e.g. "xkb:us::eng" 96 // Returns the input method ID of the hardware keyboard. e.g. "xkb:us::eng"
97 // for the US Qwerty keyboard. 97 // for the US Qwerty keyboard.
98 std::string GetHardwareInputMethodId() const; 98 std::string GetHardwareInputMethodId() const;
99 99
100 // Returns true if the given input method id is supported. 100 // Returns true if the given input method id is supported.
101 bool IsValidInputMethodId(const std::string& input_method_id) const; 101 bool IsValidInputMethodId(const std::string& input_method_id) const;
102 102
103 // Returns true if the given input method id is for a keyboard layout. 103 // Returns true if the given input method id is for a keyboard layout.
104 static bool IsKeyboardLayout(const std::string& input_method_id); 104 static bool IsKeyboardLayout(const std::string& input_method_id);
105 105
106 // Returns extra language code list associated with |input_method_id|. If
107 // there is no associated langauge code, this function returns empty list.
108 std::vector<std::string> GetExtraLanguageCodesFromId(
109 const std::string& input_method_id) const;
110
111 // Returns all extra language code list.
112 std::vector<std::string> GetExtraLanguageCodeList() const;
113
114 // Sets the list of component extension IMEs. 106 // Sets the list of component extension IMEs.
115 void SetComponentExtensions(const InputMethodDescriptors& imes); 107 void SetComponentExtensions(const InputMethodDescriptors& imes);
116 108
117 // Returns the fallback input method descriptor (the very basic US 109 // Returns the fallback input method descriptor (the very basic US
118 // keyboard). This function is mostly used for testing, but may be used 110 // keyboard). This function is mostly used for testing, but may be used
119 // as the fallback, when there is no other choice. 111 // as the fallback, when there is no other choice.
120 static InputMethodDescriptor GetFallbackInputMethodDescriptor(); 112 static InputMethodDescriptor GetFallbackInputMethodDescriptor();
121 113
122 protected: 114 protected:
123 // protected: for unit testing as well. 115 // protected: for unit testing as well.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 163
172 InputMethodDelegate* delegate_; 164 InputMethodDelegate* delegate_;
173 165
174 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); 166 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil);
175 }; 167 };
176 168
177 } // namespace input_method 169 } // namespace input_method
178 } // namespace chromeos 170 } // namespace chromeos
179 171
180 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 172 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
OLDNEW
« 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