Chromium Code Reviews| Index: ui/events/event.h |
| diff --git a/ui/events/event.h b/ui/events/event.h |
| index 5a8b2defc5851396fdcd74008351b6c52b313bee..a9ea7096506161fba3be4fb049dc55922359d646 100644 |
| --- a/ui/events/event.h |
| +++ b/ui/events/event.h |
| @@ -918,6 +918,11 @@ class EVENTS_EXPORT KeyEvent : public Event { |
| // pairs with KeyEvents and not used by KeyEvent. |
| const Properties* properties() const { return properties_.get(); } |
| + // True to skip sending event to the InputMethod. |
| + void set_skip_ime(bool skip_ime) { skip_ime_ = skip_ime; } |
| + |
| + bool should_skip_ime() const { return skip_ime_; } |
|
sadrul
2017/05/15 14:44:25
Just want to note that we have previously used eve
|
| + |
| protected: |
| friend class KeyEventTestApi; |
| @@ -956,6 +961,8 @@ class EVENTS_EXPORT KeyEvent : public Event { |
| // it may be set only if and when GetCharacter() or GetDomKey() is called. |
| mutable DomKey key_ = DomKey::NONE; |
| + bool skip_ime_ = false; |
|
sadrul
2017/05/15 14:44:24
Does this need to be retained when dispatching eve
|
| + |
| std::unique_ptr<Properties> properties_; |
| static KeyEvent* last_key_event_; |