| 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 UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 public: | 33 public: |
| 34 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); | 34 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); |
| 35 virtual ~InputMethodIBus(); | 35 virtual ~InputMethodIBus(); |
| 36 | 36 |
| 37 // Overridden from InputMethod: | 37 // Overridden from InputMethod: |
| 38 virtual void OnFocus() OVERRIDE; | 38 virtual void OnFocus() OVERRIDE; |
| 39 virtual void OnBlur() OVERRIDE; | 39 virtual void OnBlur() OVERRIDE; |
| 40 virtual void Init(bool focused) OVERRIDE; | 40 virtual void Init(bool focused) OVERRIDE; |
| 41 virtual void DispatchKeyEvent( | 41 virtual void DispatchKeyEvent( |
| 42 const base::NativeEvent& native_key_event) OVERRIDE; | 42 const base::NativeEvent& native_key_event) OVERRIDE; |
| 43 virtual void DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; |
| 43 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 44 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 44 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 45 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 45 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 46 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 46 virtual std::string GetInputLocale() OVERRIDE; | 47 virtual std::string GetInputLocale() OVERRIDE; |
| 47 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 48 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
| 48 virtual bool IsActive() OVERRIDE; | 49 virtual bool IsActive() OVERRIDE; |
| 49 | 50 |
| 50 // Called when the connection with ibus-daemon is established. | 51 // Called when the connection with ibus-daemon is established. |
| 51 virtual void OnConnected(); | 52 virtual void OnConnected(); |
| 52 | 53 |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 218 | 219 |
| 219 // Used for making callbacks. | 220 // Used for making callbacks. |
| 220 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; | 221 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; |
| 221 | 222 |
| 222 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 223 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
| 223 }; | 224 }; |
| 224 | 225 |
| 225 } // namespace ui | 226 } // namespace ui |
| 226 | 227 |
| 227 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 228 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
| OLD | NEW |