| 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 virtual bool DispatchKeyEvent( | 47 virtual bool DispatchKeyEvent( |
| 48 const base::NativeEvent& native_key_event) OVERRIDE; | 48 const base::NativeEvent& native_key_event) OVERRIDE; |
| 49 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; | 49 virtual bool DispatchFabricatedKeyEvent(const ui::KeyEvent& event) OVERRIDE; |
| 50 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; | 50 virtual void OnTextInputTypeChanged(const TextInputClient* client) OVERRIDE; |
| 51 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 51 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; |
| 52 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 52 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; |
| 53 virtual void OnInputLocaleChanged() OVERRIDE; | 53 virtual void OnInputLocaleChanged() OVERRIDE; |
| 54 virtual std::string GetInputLocale() OVERRIDE; | 54 virtual std::string GetInputLocale() OVERRIDE; |
| 55 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 55 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
| 56 virtual bool IsActive() OVERRIDE; | 56 virtual bool IsActive() OVERRIDE; |
| 57 virtual bool IsPopupOpen() const OVERRIDE; |
| 57 | 58 |
| 58 protected: | 59 protected: |
| 59 // chromeos::IBusDaemonController::Observer overrides. | 60 // chromeos::IBusDaemonController::Observer overrides. |
| 60 virtual void OnConnected() OVERRIDE; | 61 virtual void OnConnected() OVERRIDE; |
| 61 virtual void OnDisconnected() OVERRIDE; | 62 virtual void OnDisconnected() OVERRIDE; |
| 62 | 63 |
| 63 // Converts |text| into CompositionText. | 64 // Converts |text| into CompositionText. |
| 64 void ExtractCompositionText(const chromeos::IBusText& text, | 65 void ExtractCompositionText(const chromeos::IBusText& text, |
| 65 uint32 cursor_position, | 66 uint32 cursor_position, |
| 66 CompositionText* out_composition) const; | 67 CompositionText* out_composition) const; |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 | 226 |
| 226 // Used for making callbacks. | 227 // Used for making callbacks. |
| 227 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; | 228 base::WeakPtrFactory<InputMethodIBus> weak_ptr_factory_; |
| 228 | 229 |
| 229 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 230 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
| 230 }; | 231 }; |
| 231 | 232 |
| 232 } // namespace ui | 233 } // namespace ui |
| 233 | 234 |
| 234 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ | 235 #endif // UI_BASE_IME_INPUT_METHOD_IBUS_H_ |
| OLD | NEW |