1 // Copyright 2013 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_BASE_IME_INPUT_METHOD_MINIMAL_H_
6 #define UI_BASE_IME_INPUT_METHOD_MINIMAL_H_
8 #include "ui/base/ime/input_method_base.h"
12 // A minimal implementation of ui::InputMethod, which supports only the direct
13 // input without any compositions or conversions.
14 class UI_BASE_IME_EXPORT InputMethodMinimal
: public InputMethodBase
{
16 explicit InputMethodMinimal(internal::InputMethodDelegate
* delegate
);
17 ~InputMethodMinimal() override
;
19 // Overriden from InputMethod.
20 bool OnUntranslatedIMEMessage(const base::NativeEvent
& event
,
21 NativeEventResult
* result
) override
;
22 void DispatchKeyEvent(ui::KeyEvent
* event
) override
;
23 void OnCaretBoundsChanged(const TextInputClient
* client
) override
;
24 void CancelComposition(const TextInputClient
* client
) override
;
25 void OnInputLocaleChanged() override
;
26 std::string
GetInputLocale() override
;
27 bool IsCandidatePopupOpen() const override
;
30 DISALLOW_COPY_AND_ASSIGN(InputMethodMinimal
);
35 #endif // UI_BASE_IME_INPUT_METHOD_MINIMAL_H_