| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_IME_INPUT_METHOD_IBUS_H_ | 5 #ifndef VIEWS_IME_INPUT_METHOD_IBUS_H_ |
| 6 #define VIEWS_IME_INPUT_METHOD_IBUS_H_ | 6 #define VIEWS_IME_INPUT_METHOD_IBUS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // An InputMethod implementation based on IBus. | 26 // An InputMethod implementation based on IBus. |
| 27 class InputMethodIBus : public InputMethodBase { | 27 class InputMethodIBus : public InputMethodBase { |
| 28 public: | 28 public: |
| 29 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); | 29 explicit InputMethodIBus(internal::InputMethodDelegate* delegate); |
| 30 virtual ~InputMethodIBus(); | 30 virtual ~InputMethodIBus(); |
| 31 | 31 |
| 32 // Overridden from InputMethod: | 32 // Overridden from InputMethod: |
| 33 virtual void Init(Widget* widget) OVERRIDE; | 33 virtual void Init(Widget* widget) OVERRIDE; |
| 34 virtual void OnFocus() OVERRIDE; | 34 virtual void OnFocus() OVERRIDE; |
| 35 virtual void OnBlur() OVERRIDE; | 35 virtual void OnBlur() OVERRIDE; |
| 36 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | 36 virtual bool OnKeyEvent(const KeyEvent& key) OVERRIDE; |
| 37 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; | 37 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; |
| 38 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; | 38 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; |
| 39 virtual void CancelComposition(View* view) OVERRIDE; | 39 virtual void CancelComposition(View* view) OVERRIDE; |
| 40 virtual std::string GetInputLocale() OVERRIDE; | 40 virtual std::string GetInputLocale() OVERRIDE; |
| 41 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 41 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
| 42 virtual bool IsActive() OVERRIDE; | 42 virtual bool IsActive() OVERRIDE; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 // A class to hold all data related to a key event being processed by the | 45 // A class to hold all data related to a key event being processed by the |
| 46 // input method but still has no result back yet. | 46 // input method but still has no result back yet. |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 // Indicates if |context_| is enabled. | 196 // Indicates if |context_| is enabled. |
| 197 bool enabled_; | 197 bool enabled_; |
| 198 | 198 |
| 199 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); | 199 DISALLOW_COPY_AND_ASSIGN(InputMethodIBus); |
| 200 }; | 200 }; |
| 201 | 201 |
| 202 } // namespace views | 202 } // namespace views |
| 203 | 203 |
| 204 #endif // VIEWS_IME_INPUT_METHOD_IBUS_H_ | 204 #endif // VIEWS_IME_INPUT_METHOD_IBUS_H_ |
| OLD | NEW |