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

Unified Diff: ui/base/ime/input_method_delegate.h

Issue 8659033: IME (input method editor) support for Aura, part 1 of 3: Add ui/base/ime/ classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, review fix Created 9 years 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/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_ibus.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/ime/input_method_delegate.h
diff --git a/ui/base/ime/input_method_delegate.h b/ui/base/ime/input_method_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..9a84730df41217158a8a1118d0f81068dddc0f38
--- /dev/null
+++ b/ui/base/ime/input_method_delegate.h
@@ -0,0 +1,33 @@
+// Copyright (c) 2011 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.
+
+#ifndef UI_BASE_IME_INPUT_METHOD_DELEGATE_H_
+#define UI_BASE_IME_INPUT_METHOD_DELEGATE_H_
+#pragma once
+
+#include "base/event_types.h"
+#include "ui/base/events.h"
+#include "ui/base/ui_export.h"
+
+namespace ui {
+namespace internal {
+
+// An interface implemented by the object that handles events sent back from an
+// ui::InputMethod implementation.
+class UI_EXPORT InputMethodDelegate {
+ public:
+ virtual ~InputMethodDelegate() {}
+
+ // Dispatch a key event already processed by the input method.
+ virtual void DispatchKeyEventPostIME(
+ const base::NativeEvent& native_key_event) = 0;
+ virtual void DispatchFabricatedKeyEventPostIME(ui::EventType type,
+ ui::KeyboardCode key_code,
+ int flags) = 0;
+};
+
+} // namespace internal
+} // namespace ui
+
+#endif // UI_BASE_IME_INPUT_METHOD_DELEGATE_H_
« no previous file with comments | « ui/base/ime/input_method_base.cc ('k') | ui/base/ime/input_method_ibus.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698