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 20 matching lines...) Expand all Loading... |
31 public: | 31 public: |
32 InputMethodEngineIBus(); | 32 InputMethodEngineIBus(); |
33 | 33 |
34 virtual ~InputMethodEngineIBus(); | 34 virtual ~InputMethodEngineIBus(); |
35 | 35 |
36 void Initialize( | 36 void Initialize( |
37 InputMethodEngine::Observer* observer, | 37 InputMethodEngine::Observer* observer, |
38 const char* engine_name, | 38 const char* engine_name, |
39 const char* extension_id, | 39 const char* extension_id, |
40 const char* engine_id, | 40 const char* engine_id, |
41 const char* description, | |
42 const std::vector<std::string>& languages, | 41 const std::vector<std::string>& languages, |
43 const std::vector<std::string>& layouts, | 42 const std::vector<std::string>& layouts, |
44 const GURL& options_page, | 43 const GURL& options_page, |
45 const GURL& input_view, | 44 const GURL& input_view); |
46 std::string* error); | |
47 | 45 |
48 // InputMethodEngine overrides. | 46 // InputMethodEngine overrides. |
49 virtual void StartIme() OVERRIDE; | 47 virtual void StartIme() OVERRIDE; |
50 virtual bool SetComposition(int context_id, | 48 virtual bool SetComposition(int context_id, |
51 const char* text, | 49 const char* text, |
52 int selection_start, | 50 int selection_start, |
53 int selection_end, | 51 int selection_end, |
54 int cursor, | 52 int cursor, |
55 const std::vector<SegmentInfo>& segments, | 53 const std::vector<SegmentInfo>& segments, |
56 std::string* error) OVERRIDE; | 54 std::string* error) OVERRIDE; |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Mapping of candidate id to index. | 141 // Mapping of candidate id to index. |
144 std::map<int, int> candidate_indexes_; | 142 std::map<int, int> candidate_indexes_; |
145 | 143 |
146 // Used for input view window. | 144 // Used for input view window. |
147 GURL input_view_url_; | 145 GURL input_view_url_; |
148 }; | 146 }; |
149 | 147 |
150 } // namespace chromeos | 148 } // namespace chromeos |
151 | 149 |
152 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 150 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
OLD | NEW |