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

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

Issue 389913002: Moving IME manifests to chrome resources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 6 years, 5 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
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 11 matching lines...) Expand all
22 class InputMethodDelegate; 22 class InputMethodDelegate;
23 23
24 enum InputMethodType { 24 enum InputMethodType {
25 kKeyboardLayoutsOnly, 25 kKeyboardLayoutsOnly,
26 kAllInputMethods, 26 kAllInputMethods,
27 }; 27 };
28 28
29 // A class which provides miscellaneous input method utility functions. 29 // A class which provides miscellaneous input method utility functions.
30 class InputMethodUtil { 30 class InputMethodUtil {
31 public: 31 public:
32 // |supported_input_methods| is a list of all input methods supported, 32 explicit InputMethodUtil(InputMethodDelegate* delegate);
33 // including ones not active. The list is used to initialize member variables
34 // in this class.
35 InputMethodUtil(InputMethodDelegate* delegate,
36 scoped_ptr<InputMethodDescriptors> supported_input_methods);
37 ~InputMethodUtil(); 33 ~InputMethodUtil();
38 34
39 // Converts a string sent from IBus IME engines, which is written in English, 35 // Converts a string sent from IBus IME engines, which is written in English,
40 // into Chrome's string ID, then pulls internationalized resource string from 36 // into Chrome's string ID, then pulls internationalized resource string from
41 // the resource bundle and returns it. These functions are not thread-safe. 37 // the resource bundle and returns it. These functions are not thread-safe.
42 // Non-UI threads are not allowed to call them. 38 // Non-UI threads are not allowed to call them.
43 // The english_string to should be a xkb id with "xkb:...:...:..." format. 39 // The english_string to should be a xkb id with "xkb:...:...:..." format.
44 // TODO(shuchen): this method should be removed when finish the wrapping of 40 // TODO(shuchen): this method should be removed when finish the wrapping of
45 // xkb to extension. 41 // xkb to extension.
46 base::string16 TranslateString(const std::string& english_string) const; 42 base::string16 TranslateString(const std::string& english_string) const;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 std::vector<std::string> hardware_login_layouts_; 194 std::vector<std::string> hardware_login_layouts_;
199 std::vector<std::string> cached_hardware_layouts_; 195 std::vector<std::string> cached_hardware_layouts_;
200 196
201 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); 197 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil);
202 }; 198 };
203 199
204 } // namespace input_method 200 } // namespace input_method
205 } // namespace chromeos 201 } // namespace chromeos
206 202
207 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 203 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698