Chromium Code Reviews| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 150 // Pointer to the object recieving events for this IME. | 150 // Pointer to the object recieving events for this IME. |
| 151 InputMethodEngine::Observer* observer_; | 151 InputMethodEngine::Observer* observer_; |
| 152 | 152 |
| 153 // The current preedit text, and it's cursor position. | 153 // The current preedit text, and it's cursor position. |
| 154 scoped_ptr<ibus::IBusText> preedit_text_; | 154 scoped_ptr<ibus::IBusText> preedit_text_; |
| 155 int preedit_cursor_; | 155 int preedit_cursor_; |
| 156 | 156 |
| 157 // The current engine component. | 157 // The current engine component. |
| 158 scoped_ptr<ibus::IBusComponent> component_; | 158 scoped_ptr<ibus::IBusComponent> component_; |
| 159 | 159 |
| 160 // The current lookup table and it's visiblity. | 160 // The current lookup table. |
| 161 scoped_ptr<ibus::IBusLookupTable> table_; | 161 scoped_ptr<ibus::IBusLookupTable> table_; |
| 162 bool table_visible_; | 162 |
| 163 // The whole window visibility. | |
|
Zachary Kuznia
2013/01/09 04:30:50
Indicates whether the candidate window is visible.
Seigo Nonaka
2013/01/09 04:55:23
Done.
| |
| 164 bool window_visible_; | |
| 163 | 165 |
| 164 // Mapping of candidate index to candidate id. | 166 // Mapping of candidate index to candidate id. |
| 165 std::vector<int> candidate_ids_; | 167 std::vector<int> candidate_ids_; |
| 166 | 168 |
| 167 // Mapping of candidate id to index. | 169 // Mapping of candidate id to index. |
| 168 std::map<int, int> candidate_indexes_; | 170 std::map<int, int> candidate_indexes_; |
| 169 | 171 |
| 170 // Used for making callbacks. | 172 // Used for making callbacks. |
| 171 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; | 173 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; |
| 172 }; | 174 }; |
| 173 | 175 |
| 174 } // namespace chromeos | 176 } // namespace chromeos |
| 175 | 177 |
| 176 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 178 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
| OLD | NEW |