OLD | NEW |
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_ENGINE_IBUS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" | 11 #include "chrome/browser/chromeos/input_method/input_method_engine.h" |
12 #include "chromeos/dbus/ibus/ibus_engine_factory_service.h" | |
13 #include "chromeos/dbus/ibus/ibus_engine_service.h" | |
14 #include "chromeos/ime/ibus_bridge.h" | 12 #include "chromeos/ime/ibus_bridge.h" |
15 #include "dbus/object_path.h" | 13 #include "dbus/object_path.h" |
16 | 14 |
17 namespace chromeos { | 15 namespace chromeos { |
18 | 16 |
19 class IBusComponent; | 17 class IBusComponent; |
20 class IBusText; | 18 class IBusText; |
21 | 19 |
| 20 class IBusEngineFactoryService; |
22 class IBusEngineService; | 21 class IBusEngineService; |
| 22 |
23 namespace input_method { | 23 namespace input_method { |
24 class CandidateWindow; | 24 class CandidateWindow; |
25 struct KeyEventHandle; | 25 struct KeyEventHandle; |
26 } // namespace input_method | 26 } // namespace input_method |
27 | 27 |
28 class InputMethodEngineIBus : public InputMethodEngine, | 28 class InputMethodEngineIBus : public InputMethodEngine, |
29 public IBusEngineHandlerInterface { | 29 public IBusEngineHandlerInterface { |
30 public: | 30 public: |
31 InputMethodEngineIBus(); | 31 InputMethodEngineIBus(); |
32 | 32 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 // Indicates whether the candidate window is visible. | 171 // Indicates whether the candidate window is visible. |
172 bool window_visible_; | 172 bool window_visible_; |
173 | 173 |
174 // Mapping of candidate index to candidate id. | 174 // Mapping of candidate index to candidate id. |
175 std::vector<int> candidate_ids_; | 175 std::vector<int> candidate_ids_; |
176 | 176 |
177 // Mapping of candidate id to index. | 177 // Mapping of candidate id to index. |
178 std::map<int, int> candidate_indexes_; | 178 std::map<int, int> candidate_indexes_; |
179 | 179 |
| 180 scoped_ptr<IBusEngineService> ibus_engine_service_; |
| 181 scoped_ptr<IBusEngineFactoryService> ibus_engine_factory_service_; |
| 182 |
180 // Used for making callbacks. | 183 // Used for making callbacks. |
181 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; | 184 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; |
182 }; | 185 }; |
183 | 186 |
184 } // namespace chromeos | 187 } // namespace chromeos |
185 | 188 |
186 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 189 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
OLD | NEW |