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

Unified Diff: ui/events/event.h

Issue 243143002: linux-aura: Supports Compose key with XIM. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « ui/base/ime/input_method_auralinux.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/events/event.h
diff --git a/ui/events/event.h b/ui/events/event.h
index 17cad8b301ecd1c37f2cc04c5de8845b97743507..144612d145901132b048f5e1bc916cb4b9937a8b 100644
--- a/ui/events/event.h
+++ b/ui/events/event.h
@@ -550,6 +550,8 @@ class EVENTS_EXPORT KeyEvent : public Event {
KeyboardCode key_code() const { return key_code_; }
bool is_char() const { return is_char_; }
+ bool is_fabricated_by_ime() const { return is_fabricated_by_ime_; }
+
// This is only intended to be used externally by classes that are modifying
// events in EventFilter::PreHandleKeyEvent(). set_character() should also be
// called.
@@ -584,6 +586,10 @@ class EVENTS_EXPORT KeyEvent : public Event {
// share the same type: ET_KEY_PRESSED.
bool is_char_;
+ // True if the key event is fabricated by the underlying IME and not resulting
+ // from an user action.
+ bool is_fabricated_by_ime_;
sadrul 2014/04/18 19:01:48 How is this different from TranslatedKeyEvent? Wha
Yuki 2014/04/21 02:38:30 TranslatedKeyEvent represents that: 1. The key eve
sadrul 2014/04/22 15:34:29 I think it will be cleaner to have this as a KeyEv
Yuki 2014/04/23 08:08:24 Done.
+
uint16 character_;
};
« no previous file with comments | « ui/base/ime/input_method_auralinux.cc ('k') | ui/events/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698