summaryrefslogtreecommitdiffstats
path: root/views/ime/input_method_delegate.h
blob: 70d2ac36cefb78fede072e298f09db23a263b679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef VIEWS_IME_INPUT_METHOD_DELEGATE_H_
#define VIEWS_IME_INPUT_METHOD_DELEGATE_H_
#pragma once

namespace views {

class KeyEvent;

namespace internal {

// An interface implemented by the object that handles events sent back from an
// InputMethod implementation.
class InputMethodDelegate {
 public:
  virtual ~InputMethodDelegate() {}

  // Dispatch a key event already processed by the input method.
  virtual void DispatchKeyEventPostIME(const KeyEvent& key) = 0;

};

}  // namespace internal
}  // namespace views

#endif  // VIEWS_IME_INPUT_METHOD_DELEGATE_H_