| 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
|
|
|