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