Home | History | Annotate | Download | only in ime
      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 UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_
      6 #define UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_
      7 
      8 #include "ui/views/views_export.h"
      9 
     10 namespace ui {
     11 class KeyEvent;
     12 }
     13 
     14 namespace views {
     15 
     16 namespace internal {
     17 
     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() {}
     23 
     24   // Dispatch a key event already processed by the input method.
     25   virtual void DispatchKeyEventPostIME(const ui::KeyEvent& key) = 0;
     26 };
     27 
     28 }  // namespace internal
     29 }  // namespace views
     30 
     31 #endif  // UI_VIEWS_IME_INPUT_METHOD_DELEGATE_H_
     32