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

Unified Diff: ui/aura/event.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: moved IME code to aura_shell, not ready for review though 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.h
diff --git a/ui/aura/event.h b/ui/aura/event.h
index 5dcb72666b0099601416b7704426210a6a30a10c..38fb5ba0587119247157400ad7710587b0a4b5d3 100644
--- a/ui/aura/event.h
+++ b/ui/aura/event.h
@@ -171,11 +171,16 @@ class AURA_EXPORT KeyEvent : public Event {
ui::KeyboardCode key_code() const { return key_code_; }
bool is_char() const { return is_char_; }
+ void set_skip_ime(bool skip_ime) { skip_ime_ = skip_ime; }
+ bool skip_ime() const { return skip_ime_; }
+
private:
ui::KeyboardCode key_code_;
// True if this is a translated character event (vs. a raw key down). Both
// share the same type: ui::ET_KEY_PRESSED.
bool is_char_;
+ // True if the event is generated by IME.
+ bool skip_ime_;
Yusuke Sato 2011/12/12 07:51:53 This flag is for resoving the sync/async issue.
Ben Goodger (Google) 2011/12/12 16:51:03 It'd be good to come up with a neater way to expre
Yusuke Sato 2011/12/14 13:42:04 Thanks for the suggestion. I've added a new event
uint16 character_;
uint16 unmodified_character_;

Powered by Google App Engine
This is Rietveld 408576698