| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ | 5 #ifndef UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ |
| 6 #define UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ | 6 #define UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ |
| 7 | 7 |
| 8 #include "ui/base/ime/input_method_base.h" | 8 #include "ui/base/ime/input_method_base.h" |
| 9 | 9 |
| 10 namespace ui { | 10 namespace ui { |
| 11 | 11 |
| 12 // A minimal implementation of ui::InputMethod, which supports only the direct | 12 // A minimal implementation of ui::InputMethod, which supports only the direct |
| 13 // input without any compositions or conversions. | 13 // input without any compositions or conversions. |
| 14 class UI_BASE_EXPORT InputMethodMinimal : public InputMethodBase { | 14 class UI_BASE_EXPORT InputMethodMinimal : public InputMethodBase { |
| 15 public: | 15 public: |
| 16 explicit InputMethodMinimal(internal::InputMethodDelegate* delegate); | 16 explicit InputMethodMinimal(internal::InputMethodDelegate* delegate); |
| 17 virtual ~InputMethodMinimal(); | 17 virtual ~InputMethodMinimal(); |
| 18 | 18 |
| 19 // Overriden from InputMethod. | 19 // Overriden from InputMethod. |
| 20 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, | 20 virtual bool OnUntranslatedIMEMessage(const base::NativeEvent& event, |
| 21 NativeEventResult* result) OVERRIDE; | 21 NativeEventResult* result) override; |
| 22 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) OVERRIDE; | 22 virtual bool DispatchKeyEvent(const ui::KeyEvent& event) override; |
| 23 virtual void OnCaretBoundsChanged(const TextInputClient* client) OVERRIDE; | 23 virtual void OnCaretBoundsChanged(const TextInputClient* client) override; |
| 24 virtual void CancelComposition(const TextInputClient* client) OVERRIDE; | 24 virtual void CancelComposition(const TextInputClient* client) override; |
| 25 virtual void OnInputLocaleChanged() OVERRIDE; | 25 virtual void OnInputLocaleChanged() override; |
| 26 virtual std::string GetInputLocale() OVERRIDE; | 26 virtual std::string GetInputLocale() override; |
| 27 virtual bool IsActive() OVERRIDE; | 27 virtual bool IsActive() override; |
| 28 virtual bool IsCandidatePopupOpen() const OVERRIDE; | 28 virtual bool IsCandidatePopupOpen() const override; |
| 29 | 29 |
| 30 private: | 30 private: |
| 31 DISALLOW_COPY_AND_ASSIGN(InputMethodMinimal); | 31 DISALLOW_COPY_AND_ASSIGN(InputMethodMinimal); |
| 32 }; | 32 }; |
| 33 | 33 |
| 34 } // namespace ui | 34 } // namespace ui |
| 35 | 35 |
| 36 #endif // UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ | 36 #endif // UI_BASE_IME_INPUT_METHOD_MINIMAL_H_ |
| OLD | NEW |