| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 // IBusEngineHandlerInterface overrides. | 81 // IBusEngineHandlerInterface overrides. |
| 82 virtual void FocusIn(ibus::TextInputType text_input_type) OVERRIDE; | 82 virtual void FocusIn(ibus::TextInputType text_input_type) OVERRIDE; |
| 83 virtual void FocusOut() OVERRIDE; | 83 virtual void FocusOut() OVERRIDE; |
| 84 virtual void Enable() OVERRIDE; | 84 virtual void Enable() OVERRIDE; |
| 85 virtual void Disable() OVERRIDE; | 85 virtual void Disable() OVERRIDE; |
| 86 virtual void PropertyActivate(const std::string& property_name) OVERRIDE; | 86 virtual void PropertyActivate(const std::string& property_name) OVERRIDE; |
| 87 virtual void PropertyShow(const std::string& property_name) OVERRIDE; | 87 virtual void PropertyShow(const std::string& property_name) OVERRIDE; |
| 88 virtual void PropertyHide(const std::string& property_name) OVERRIDE; | 88 virtual void PropertyHide(const std::string& property_name) OVERRIDE; |
| 89 virtual void SetCapability(IBusCapability capability) OVERRIDE; | 89 virtual void SetCapability(IBusCapability capability) OVERRIDE; |
| 90 virtual void Reset() OVERRIDE; | 90 virtual void Reset() OVERRIDE; |
| 91 virtual void ProcessKeyEvent(uint32 keysym, uint32 keycode, uint32 state, | 91 virtual void ProcessKeyEvent(const std::string& keysym, |
| 92 const std::string& keycode, |
| 93 bool is_key_down, |
| 94 bool is_alt_down, |
| 95 bool is_ctrl_down, |
| 96 bool is_shift_down, |
| 97 bool is_caps_lock_down, |
| 92 const KeyEventDoneCallback& callback) OVERRIDE; | 98 const KeyEventDoneCallback& callback) OVERRIDE; |
| 93 virtual void CandidateClicked(uint32 index, ibus::IBusMouseButton button, | 99 virtual void CandidateClicked(uint32 index, ibus::IBusMouseButton button, |
| 94 uint32 state) OVERRIDE; | 100 uint32 state) OVERRIDE; |
| 95 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, | 101 virtual void SetSurroundingText(const std::string& text, uint32 cursor_pos, |
| 96 uint32 anchor_pos) OVERRIDE; | 102 uint32 anchor_pos) OVERRIDE; |
| 97 | 103 |
| 98 // Called when the connection with ibus-daemon is connected. | 104 // Called when the connection with ibus-daemon is connected. |
| 99 void OnConnected(); | 105 void OnConnected(); |
| 100 | 106 |
| 101 // Called whtn the connection with ibus-daemon is disconnected. | 107 // Called whtn the connection with ibus-daemon is disconnected. |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 177 // Mapping of candidate id to index. | 183 // Mapping of candidate id to index. |
| 178 std::map<int, int> candidate_indexes_; | 184 std::map<int, int> candidate_indexes_; |
| 179 | 185 |
| 180 // Used for making callbacks. | 186 // Used for making callbacks. |
| 181 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; | 187 base::WeakPtrFactory<InputMethodEngineIBus> weak_ptr_factory_; |
| 182 }; | 188 }; |
| 183 | 189 |
| 184 } // namespace chromeos | 190 } // namespace chromeos |
| 185 | 191 |
| 186 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ | 192 #endif // CHROME_BROWSER_CHROMEOS_INPUT_METHOD_INPUT_METHOD_ENGINE_IBUS_H_ |
| OLD | NEW |