1 // Copyright 2014 Intel Corporation. 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 OZONE_UI_IME_INPUT_METHOD_CONTEXT_IMPL_WAYLAND_H_
6 #define OZONE_UI_IME_INPUT_METHOD_CONTEXT_IMPL_WAYLAND_H_
8 #include "ozone/platform/ozone_export_wayland.h"
9 #include "ui/base/ime/linux/linux_input_method_context.h"
10 #include "ui/gfx/rect.h"
14 // An implementation of LinuxInputMethodContext for IME support on Ozone
15 // platform using Wayland.
16 class OZONE_WAYLAND_EXPORT InputMethodContextImplWayland
17 : public LinuxInputMethodContext {
19 explicit InputMethodContextImplWayland(
20 ui::LinuxInputMethodContextDelegate* delegate);
21 virtual ~InputMethodContextImplWayland();
23 // Overriden from ui::LinuxInputMethodContext
24 virtual bool DispatchKeyEvent(const ui::KeyEvent& key_event) OVERRIDE;
25 virtual void Reset() OVERRIDE;
26 virtual void OnTextInputTypeChanged(ui::TextInputType text_input_type)
28 virtual void OnCaretBoundsChanged(const gfx::Rect& caret_bounds) OVERRIDE;
32 LinuxInputMethodContextDelegate* delegate_;
33 DISALLOW_COPY_AND_ASSIGN(InputMethodContextImplWayland);
38 #endif // OZONE_UI_IME_INPUT_METHOD_CONTEXT_IMPL_WAYLAND_H_