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

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: moving IME code to aura_shell. not ready for review 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
« no previous file with comments | « ui/aura/desktop_host_ime_unittest.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
uint16 character_;
uint16 unmodified_character_;
« no previous file with comments | « ui/aura/desktop_host_ime_unittest.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698