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

Unified Diff: views/ime/input_method.h

Issue 6823055: Consolidate OnKeyEvent and InputMethod code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor X2Event handling, nix Windows InputMethodDelegate, etc. Created 9 years, 8 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
Index: views/ime/input_method.h
diff --git a/views/ime/input_method.h b/views/ime/input_method.h
index 918d78c031d802ad2fd634138802dcf48b2ac5e7..83e42a1119922115ab21890d6de0f1c00221caea 100644
--- a/views/ime/input_method.h
+++ b/views/ime/input_method.h
@@ -57,7 +57,8 @@ class InputMethod {
// it's processed by the input method. It should only be called by the
// top-level NativeWidget which owns this InputMethod instance, or other
// related platform dependent code, such as a message dispatcher.
- virtual void DispatchKeyEvent(const KeyEvent& key) = 0;
+ // Returns true if the event was handled, or no further handling is required.
+ virtual bool OnKeyEvent(const KeyEvent& key) = 0;
// Called by the focused |view| whenever its text input type is changed.
// Before calling this method, the focused |view| must confirm or clear

Powered by Google App Engine
This is Rietveld 408576698