| 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 UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ | 5 #ifndef UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ |
| 6 #define UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ | 6 #define UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/views/views_export.h" | 8 #include "ui/views/views_export.h" |
| 9 | 9 |
| 10 namespace ui { |
| 11 class KeyEvent; |
| 12 } |
| 13 |
| 10 namespace views { | 14 namespace views { |
| 11 | 15 |
| 12 class KeyEvent; | |
| 13 | |
| 14 namespace internal { | 16 namespace internal { |
| 15 | 17 |
| 16 // An interface implemented by the object that handles events sent back from an | 18 // An interface implemented by the object that handles events sent back from an |
| 17 // InputMethod implementation. | 19 // InputMethod implementation. |
| 18 class VIEWS_EXPORT InputMethodDelegate { | 20 class VIEWS_EXPORT InputMethodDelegate { |
| 19 public: | 21 public: |
| 20 virtual ~InputMethodDelegate() {} | 22 virtual ~InputMethodDelegate() {} |
| 21 | 23 |
| 22 // Dispatch a key event already processed by the input method. | 24 // Dispatch a key event already processed by the input method. |
| 23 virtual void DispatchKeyEventPostIME(const KeyEvent& key) = 0; | 25 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) = 0; |
| 24 | 26 |
| 25 }; | 27 }; |
| 26 | 28 |
| 27 } // namespace internal | 29 } // namespace internal |
| 28 } // namespace views | 30 } // namespace views |
| 29 | 31 |
| 30 #endif // UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ | 32 #endif // UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_ |
| OLD | NEW |