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

Unified Diff: ui/aura/event_filter.h

Issue 8576005: IME (input method editor) support for Aura, part 3 of 3: Use ui::InputMethod in ash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, review 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
Index: ui/aura/event_filter.h
diff --git a/ui/aura/event_filter.h b/ui/aura/event_filter.h
index da2c2d1059094bf31c5c75bc918868fd838e3007..f0b7263f45333bad21ba78d8ab66f9cedb8b0779 100644
--- a/ui/aura/event_filter.h
+++ b/ui/aura/event_filter.h
@@ -15,6 +15,7 @@ namespace aura {
class KeyEvent;
class MouseEvent;
class TouchEvent;
+class TranslatedKeyEvent;
class Window;
// An object that filters events sent to an owner window. The filter can stop
@@ -45,7 +46,12 @@ class AURA_EXPORT EventFilter {
// filter may still perform some action, the return value simply indicates
// that further processing can occur.
+ // All filters except the one bound to a system IME (input method) should NOT
+ // consume a KeyEvent. Instead, they should handle a TranslatedKeyEvent.
virtual bool PreHandleKeyEvent(Window* target, KeyEvent* event) = 0;
+ virtual bool PreHandleTranslatedKeyEvent(Window* target,
+ TranslatedKeyEvent* event) = 0;
+
virtual bool PreHandleMouseEvent(Window* target, MouseEvent* event) = 0;
// Returns a value other than ui::TOUCH_STATUS_UNKNOWN if the event is
« ui/aura/event.h ('K') | « ui/aura/event.cc ('k') | ui/aura/root_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698