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..99edf4d16654e180fa4e4eb1b9eaa4cf0b3cd8d4 |
--- /dev/null |
+++ b/ui/base/ime/input_method_delegate.h |
@@ -0,0 +1,32 @@ |
+// 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; |
sky
2011/12/05 15:15:29
each param on its own line.
Yusuke Sato
2011/12/05 22:55:14
Done.
|
+}; |
+ |
+} // namespace internal |
+} // namespace ui |
+ |
+#endif // UI_BASE_IME_INPUT_METHOD_DELEGATE_H_ |