Index: ui/wayland/wayland_input_method_event_filter.cc |
diff --git a/ui/wayland/wayland_input_method_event_filter.cc b/ui/wayland/wayland_input_method_event_filter.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..af7fce1ae35660a20400d6ac84fa7b40101930e3 |
--- /dev/null |
+++ b/ui/wayland/wayland_input_method_event_filter.cc |
@@ -0,0 +1,41 @@ |
+// Copyright 2013 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. |
+ |
+#include "ui/wayland/wayland_input_method_event_filter.h" |
+ |
+#include "ui/base/ime/input_method.h" |
+#include "ui/base/ime/input_method_factory.h" |
+ |
+namespace ui { |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// InputMethodEventFilter, public: |
+ |
+WaylandInputMethodEventFilter::WaylandInputMethodEventFilter() |
+ : input_method_(ui::CreateInputMethod(this, NULL)) { |
+ // TODO(yusukes): Check if the root window is currently focused and pass the |
+ // result to Init(). |
+ input_method_->Init(true); |
+} |
+ |
+WaylandInputMethodEventFilter::~WaylandInputMethodEventFilter() |
+{ |
+} |
+ |
+//////////////////////////////////////////////////////////////////////////////// |
+// InputMethodEventFilter, ui::InputMethodDelegate implementation: |
+ |
+bool WaylandInputMethodEventFilter::DispatchKeyEventPostIME( |
+ const base::NativeEvent& event) |
+{ |
+} |
+ |
+bool WaylandInputMethodEventFilter::DispatchFabricatedKeyEventPostIME( |
+ ui::EventType type, |
+ ui::KeyboardCode key_code, |
+ int flags) |
+{ |
+} |
+ |
+} // namespace ui |