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

Side by Side Diff: ui/base/ime/chromeos/input_method_util.h

Issue 2919583002: chromeos: Move InputMethodUtil into //ui/base/ime/chromeos (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « ui/base/ime/chromeos/extension_ime_util.cc ('k') | ui/base/ime/chromeos/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 UI_BASE_IME_CHROMEOS_INPUT_METHOD_UTIL_H_
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 6 #define UI_BASE_IME_CHROMEOS_INPUT_METHOD_UTIL_H_
7 7
8 #include <cstddef> 8 #include <cstddef>
9 #include <map> 9 #include <map>
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/macros.h" 15 #include "base/macros.h"
16 #include "base/strings/string16.h" 16 #include "base/strings/string16.h"
17 #include "base/threading/thread_checker.h" 17 #include "base/threading/thread_checker.h"
18 #include "ui/base/ime/chromeos/input_method_descriptor.h" 18 #include "ui/base/ime/chromeos/input_method_descriptor.h"
19 #include "ui/base/ime/ui_base_ime_export.h"
19 20
20 namespace chromeos { 21 namespace chromeos {
21 namespace input_method { 22 namespace input_method {
22 23
23 class InputMethodDelegate; 24 class InputMethodDelegate;
24 25
25 enum InputMethodType { 26 enum InputMethodType {
26 kKeyboardLayoutsOnly, 27 kKeyboardLayoutsOnly,
27 kAllInputMethods, 28 kAllInputMethods,
28 }; 29 };
29 30
30 // A class which provides miscellaneous input method utility functions. 31 // A class which provides miscellaneous input method utility functions.
31 class InputMethodUtil { 32 class UI_BASE_IME_EXPORT InputMethodUtil {
32 public: 33 public:
33 explicit InputMethodUtil(InputMethodDelegate* delegate); 34 explicit InputMethodUtil(InputMethodDelegate* delegate);
34 ~InputMethodUtil(); 35 ~InputMethodUtil();
35 36
36 // Converts a string sent from IBus IME engines, which is written in English, 37 // Converts a string sent from IBus IME engines, which is written in English,
37 // into Chrome's string ID, then pulls internationalized resource string from 38 // into Chrome's string ID, then pulls internationalized resource string from
38 // the resource bundle and returns it. These functions are not thread-safe. 39 // the resource bundle and returns it. These functions are not thread-safe.
39 // Non-UI threads are not allowed to call them. 40 // Non-UI threads are not allowed to call them.
40 // The english_string to should be a xkb id with "xkb:...:...:..." format. 41 // The english_string to should be a xkb id with "xkb:...:...:..." format.
41 // TODO(shuchen): this method should be removed when finish the wrapping of 42 // TODO(shuchen): this method should be removed when finish the wrapping of
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 std::vector<std::string> hardware_layouts_; 215 std::vector<std::string> hardware_layouts_;
215 std::vector<std::string> hardware_login_layouts_; 216 std::vector<std::string> hardware_login_layouts_;
216 std::vector<std::string> cached_hardware_layouts_; 217 std::vector<std::string> cached_hardware_layouts_;
217 218
218 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil); 219 DISALLOW_COPY_AND_ASSIGN(InputMethodUtil);
219 }; 220 };
220 221
221 } // namespace input_method 222 } // namespace input_method
222 } // namespace chromeos 223 } // namespace chromeos
223 224
224 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_UTIL_H_ 225 #endif // UI_BASE_IME_CHROMEOS_INPUT_METHOD_UTIL_H_
OLDNEW
« no previous file with comments | « ui/base/ime/chromeos/extension_ime_util.cc ('k') | ui/base/ime/chromeos/input_method_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698