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