| 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 CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ | 5 #ifndef CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ |
| 6 #define CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ | 6 #define CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0, | 109 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_CLEAR = 0, |
| 110 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1, | 110 IBUS_ENGINE_PREEEDIT_FOCUS_OUT_MODE_COMMIT = 1, |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 virtual ~IBusEngineService(); | 113 virtual ~IBusEngineService(); |
| 114 | 114 |
| 115 // Sets a new IBus engine handler and old handler will be overridden. | 115 // Sets a new IBus engine handler and old handler will be overridden. |
| 116 // This class doesn't take the ownership of |handler|. | 116 // This class doesn't take the ownership of |handler|. |
| 117 virtual void SetEngine(IBusEngineHandlerInterface* handler) = 0; | 117 virtual void SetEngine(IBusEngineHandlerInterface* handler) = 0; |
| 118 | 118 |
| 119 // Unsets the current IBus engine handler. | 119 // Unsets the IBus engine handler if |handler| equals to current engine |
| 120 virtual void UnsetEngine() = 0; | 120 // handler. |
| 121 virtual void UnsetEngine(IBusEngineHandlerInterface* handler) = 0; |
| 121 | 122 |
| 122 // Emits RegisterProperties signal. | 123 // Emits RegisterProperties signal. |
| 123 virtual void RegisterProperties( | 124 virtual void RegisterProperties( |
| 124 const IBusPropertyList& property_list) = 0; | 125 const IBusPropertyList& property_list) = 0; |
| 125 // Emits UpdatePreedit signal. | 126 // Emits UpdatePreedit signal. |
| 126 virtual void UpdatePreedit(const IBusText& ibus_text, | 127 virtual void UpdatePreedit(const IBusText& ibus_text, |
| 127 uint32 cursor_pos, | 128 uint32 cursor_pos, |
| 128 bool is_visible, | 129 bool is_visible, |
| 129 IBusEnginePreeditFocusOutMode mode) = 0; | 130 IBusEnginePreeditFocusOutMode mode) = 0; |
| 130 // Emits UpdateAuxiliaryText signal. | 131 // Emits UpdateAuxiliaryText signal. |
| (...skipping 22 matching lines...) Expand all Loading... |
| 153 // Create() should be used instead. | 154 // Create() should be used instead. |
| 154 IBusEngineService(); | 155 IBusEngineService(); |
| 155 | 156 |
| 156 private: | 157 private: |
| 157 DISALLOW_COPY_AND_ASSIGN(IBusEngineService); | 158 DISALLOW_COPY_AND_ASSIGN(IBusEngineService); |
| 158 }; | 159 }; |
| 159 | 160 |
| 160 } // namespace chromeos | 161 } // namespace chromeos |
| 161 | 162 |
| 162 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ | 163 #endif // CHROMEOS_DBUS_IBUS_IBUS_ENGINE_SERVICE_H_ |
| OLD | NEW |