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

Unified Diff: ui/events/event.h

Issue 2872343003: Remove InputMethodEventHandler. (Closed)
Patch Set: Add a unittest. Created 3 years, 7 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698