base: Change DCHECK_IS_ON to a macro DCHECK_IS_ON().
[chromium-blink-merge.git] / ui / views / ime / input_method_delegate.h
blob59bc9dc04134acdef33fcab121ef548067b1ca8b
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.
5 #ifndef UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_
6 #define UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_
8 #include "ui/views/views_export.h"
10 namespace ui {
11 class KeyEvent;
14 namespace views {
16 namespace internal {
18 // An interface implemented by the object that handles events sent back from an
19 // InputMethod implementation.
20 class VIEWS_EXPORT InputMethodDelegate {
21 public:
22 virtual ~InputMethodDelegate() {}
24 // Dispatch a key event already processed by the input method.
25 virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) = 0;
28 } // namespace internal
29 } // namespace views
31 #endif // UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_