| 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_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
| 6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public ui::TextInputClient { | 28 public ui::TextInputClient { |
| 29 public: | 29 public: |
| 30 InputMethodBridge(internal::InputMethodDelegate* delegate, | 30 InputMethodBridge(internal::InputMethodDelegate* delegate, |
| 31 ui::InputMethod* host); | 31 ui::InputMethod* host); |
| 32 virtual ~InputMethodBridge(); | 32 virtual ~InputMethodBridge(); |
| 33 | 33 |
| 34 // Overridden from InputMethod: | 34 // Overridden from InputMethod: |
| 35 virtual void Init(Widget* widget) OVERRIDE; | 35 virtual void Init(Widget* widget) OVERRIDE; |
| 36 virtual void OnFocus() OVERRIDE; | 36 virtual void OnFocus() OVERRIDE; |
| 37 virtual void OnBlur() OVERRIDE; | 37 virtual void OnBlur() OVERRIDE; |
| 38 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | 38 virtual void DispatchKeyEvent(const ui::KeyEvent& key) OVERRIDE; |
| 39 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; | 39 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; |
| 40 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; | 40 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; |
| 41 virtual void CancelComposition(View* view) OVERRIDE; | 41 virtual void CancelComposition(View* view) OVERRIDE; |
| 42 virtual std::string GetInputLocale() OVERRIDE; | 42 virtual std::string GetInputLocale() OVERRIDE; |
| 43 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | 43 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; |
| 44 virtual bool IsActive() OVERRIDE; | 44 virtual bool IsActive() OVERRIDE; |
| 45 | 45 |
| 46 // Overridden from TextInputClient: | 46 // Overridden from TextInputClient: |
| 47 virtual void SetCompositionText( | 47 virtual void SetCompositionText( |
| 48 const ui::CompositionText& composition) OVERRIDE; | 48 const ui::CompositionText& composition) OVERRIDE; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 | 80 |
| 81 ui::InputMethod* const host_; | 81 ui::InputMethod* const host_; |
| 82 bool context_focused_; | 82 bool context_focused_; |
| 83 | 83 |
| 84 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); | 84 DISALLOW_COPY_AND_ASSIGN(InputMethodBridge); |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace views | 87 } // namespace views |
| 88 | 88 |
| 89 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ | 89 #endif // UI_VIEWS_IME_INPUT_METHOD_BRIDGE_H_ |
| OLD | NEW |