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

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

Issue 13954012: Move GetFallbackInputMethodDescriptor function to InputMethodUtil. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // there is no associated langauge code, this function returns empty list. 107 // there is no associated langauge code, this function returns empty list.
108 std::vector<std::string> GetExtraLanguageCodesFromId( 108 std::vector<std::string> GetExtraLanguageCodesFromId(
109 const std::string& input_method_id) const; 109 const std::string& input_method_id) const;
110 110
111 // Returns all extra language code list. 111 // Returns all extra language code list.
112 std::vector<std::string> GetExtraLanguageCodeList() const; 112 std::vector<std::string> GetExtraLanguageCodeList() const;
113 113
114 // Sets the list of component extension IMEs. 114 // Sets the list of component extension IMEs.
115 void SetComponentExtensions(const InputMethodDescriptors& imes); 115 void SetComponentExtensions(const InputMethodDescriptors& imes);
116 116
117 // Returns the fallback input method descriptor (the very basic US
118 // keyboard). This function is mostly used for testing, but may be used
119 // as the fallback, when there is no other choice.
120 static InputMethodDescriptor GetFallbackInputMethodDescriptor();
121
117 protected: 122 protected:
118 // protected: for unit testing as well. 123 // protected: for unit testing as well.
119 bool GetInputMethodIdsFromLanguageCodeInternal( 124 bool GetInputMethodIdsFromLanguageCodeInternal(
120 const std::multimap<std::string, std::string>& language_code_to_ids, 125 const std::multimap<std::string, std::string>& language_code_to_ids,
121 const std::string& normalized_language_code, 126 const std::string& normalized_language_code,
122 InputMethodType type, 127 InputMethodType type,
123 std::vector<std::string>* out_input_method_ids) const; 128 std::vector<std::string>* out_input_method_ids) const;
124 129
125 // protected: for unit testing as well. 130 // protected: for unit testing as well.
126 void ReloadInternalMaps(); 131 void ReloadInternalMaps();
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 171
167 InputMethodDelegate* delegate_; 172 InputMethodDelegate* delegate_;
168 173
169 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); 174 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil);
170 }; 175 };
171 176
172 } // namespace input_method 177 } // namespace input_method
173 } // namespace chromeos 178 } // namespace chromeos
174 179
175 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 180 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698