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

Unified Diff: views/ime/input_method_delegate.h

Issue 6688049: New InputMethod api for Views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Don't dispatch the character when focus was changed by the key event. Created 9 years, 9 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 | « views/ime/input_method_base.cc ('k') | views/ime/input_method_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/ime/input_method_delegate.h
diff --git a/views/ime/input_method_delegate.h b/views/ime/input_method_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..70d2ac36cefb78fede072e298f09db23a263b679
--- /dev/null
+++ b/views/ime/input_method_delegate.h
@@ -0,0 +1,29 @@
+// 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 VIEWS_IME_INPUT_METHOD_DELEGATE_H_
+#define VIEWS_IME_INPUT_METHOD_DELEGATE_H_
+#pragma once
+
+namespace views {
+
+class KeyEvent;
+
+namespace internal {
+
+// An interface implemented by the object that handles events sent back from an
+// InputMethod implementation.
+class InputMethodDelegate {
+ public:
+ virtual ~InputMethodDelegate() {}
+
+ // Dispatch a key event already processed by the input method.
+ virtual void DispatchKeyEventPostIME(const KeyEvent& key) = 0;
+
+};
+
+} // namespace internal
+} // namespace views
+
+#endif // VIEWS_IME_INPUT_METHOD_DELEGATE_H_
« no previous file with comments | « views/ime/input_method_base.cc ('k') | views/ime/input_method_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698