Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: ui/wayland/wayland_input_method_event_filter.cc

Issue 17265006: wayland patch for inspection Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wayland/wayland_input_method_event_filter.h ('k') | ui/wayland/wayland_screen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « ui/wayland/wayland_input_method_event_filter.h ('k') | ui/wayland/wayland_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698