| OLD | NEW |
| (Empty) |
| 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_WAYLAND_H_ | |
| 6 #define UI_VIEWS_IME_INPUT_METHOD_WAYLAND_H_ | |
| 7 #pragma once | |
| 8 | |
| 9 #include <string> | |
| 10 | |
| 11 #include "ui/views/ime/input_method_base.h" | |
| 12 | |
| 13 namespace views { | |
| 14 | |
| 15 class InputMethodWayland : public InputMethodBase { | |
| 16 public: | |
| 17 explicit InputMethodWayland(internal::InputMethodDelegate *delegate); | |
| 18 | |
| 19 virtual void DispatchKeyEvent(const KeyEvent& key) OVERRIDE; | |
| 20 virtual void OnTextInputTypeChanged(View* view) OVERRIDE; | |
| 21 virtual void OnCaretBoundsChanged(View* view) OVERRIDE; | |
| 22 virtual void CancelComposition(View* view) OVERRIDE; | |
| 23 virtual std::string GetInputLocale() OVERRIDE; | |
| 24 virtual base::i18n::TextDirection GetInputTextDirection() OVERRIDE; | |
| 25 virtual bool IsActive() OVERRIDE; | |
| 26 | |
| 27 private: | |
| 28 | |
| 29 void ProcessKeyPressEvent(const KeyEvent& key); | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(InputMethodWayland); | |
| 32 }; | |
| 33 | |
| 34 } // namespace views | |
| 35 | |
| 36 #endif // UI_VIEWS_IME_INPUT_METHOD_WAYLAND_H_ | |
| OLD | NEW |