| 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> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 const char* engine_name, | 36 const char* engine_name, |
| 37 const char* extension_id, | 37 const char* extension_id, |
| 38 const char* engine_id, | 38 const char* engine_id, |
| 39 const char* description, | 39 const char* description, |
| 40 const char* language, | 40 const char* language, |
| 41 const std::vector<std::string>& layouts, | 41 const std::vector<std::string>& layouts, |
| 42 const GURL& options_page, | 42 const GURL& options_page, |
| 43 std::string* error); | 43 std::string* error); |
| 44 | 44 |
| 45 // InputMethodEngine overrides. | 45 // InputMethodEngine overrides. |
| 46 virtual void StartIme() OVERRIDE; |
| 46 virtual bool SetComposition(int context_id, | 47 virtual bool SetComposition(int context_id, |
| 47 const char* text, | 48 const char* text, |
| 48 int selection_start, | 49 int selection_start, |
| 49 int selection_end, | 50 int selection_end, |
| 50 int cursor, | 51 int cursor, |
| 51 const std::vector<SegmentInfo>& segments, | 52 const std::vector<SegmentInfo>& segments, |
| 52 std::string* error) OVERRIDE; | 53 std::string* error) OVERRIDE; |
| 53 virtual bool ClearComposition(int context_id, std::string* error) OVERRIDE; | 54 virtual bool ClearComposition(int context_id, std::string* error) OVERRIDE; |
| 54 virtual bool CommitText(int context_id, const char* text, | 55 virtual bool CommitText(int context_id, const char* text, |
| 55 std::string* error) OVERRIDE; | 56 std::string* error) OVERRIDE; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 // Mapping of candidate id to index. | 175 // Mapping of candidate id to index. |
| 175 std::map<int, int> candidate_indexes_; | 176 std::map<int, int> candidate_indexes_; |
| 176 | 177 |
| 177 // Used for making callbacks. | 178 // Used for making callbacks. |
| 178 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; | 179 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 } // namespace chromeos | 182 } // namespace chromeos |
| 182 | 183 |
| 183 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 184 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
| OLD | NEW |