Chromium Code Reviews| Index: ui/aura/event.h |
| diff --git a/ui/aura/event.h b/ui/aura/event.h |
| index 5dcb72666b0099601416b7704426210a6a30a10c..095cf525c111894e276650c11ca2f430276aa5dd 100644 |
| --- a/ui/aura/event.h |
| +++ b/ui/aura/event.h |
| @@ -181,6 +181,22 @@ class AURA_EXPORT KeyEvent : public Event { |
| uint16 unmodified_character_; |
| }; |
| +// A key event which is translated by an input method (IME). |
| +// For example, if an IME receives a KeyEvent(ui::VKEY_SPACE), and it does not |
| +// consume the key, the IME usually generates and dispatches a |
| +// TranslatedKeyEvent(ui::VKEY_SPACE) event. If the IME receives a KeyEvent and |
| +// it does consume the event, it might dispatch a |
| +// TranslatedKeyEvent(ui::VKEY_PROCESSKEY) event as defined in the DOM spec. |
| +class AURA_EXPORT TranslatedKeyEvent : public KeyEvent { |
|
Ben Goodger (Google)
2011/12/14 15:30:21
Sorry, when I mentioned "different event type" wha
Yusuke Sato
2011/12/15 06:29:59
oh I see. I've modified the code as follows:
- Re
|
| + public: |
| + TranslatedKeyEvent(const base::NativeEvent& native_event, bool is_char); |
| + |
| + // Used for synthetic events such as a VKEY_PROCESSKEY key event. |
| + TranslatedKeyEvent(ui::EventType type, |
| + ui::KeyboardCode key_code, |
| + int flags); |
| +}; |
| + |
| class AURA_EXPORT DropTargetEvent : public LocatedEvent { |
| public: |
| DropTargetEvent(const ui::OSExchangeData& data, |