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

Unified Diff: ui/aura/event.h

Issue 8342026: Get basic KeyEvents working in RWHVA (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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/aura/desktop_host_win.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
===================================================================
--- ui/aura/event.h (revision 106345)
+++ ui/aura/event.h (working copy)
@@ -127,7 +127,7 @@
class AURA_EXPORT KeyEvent : public Event {
public:
- explicit KeyEvent(const base::NativeEvent& native_event);
+ KeyEvent(const base::NativeEvent& native_event, bool is_char);
// Used for synthetic events in testing.
KeyEvent(ui::EventType type,
@@ -135,9 +135,13 @@
int flags);
ui::KeyboardCode key_code() const { return key_code_; }
+ bool is_char() const { return is_char_; }
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_;
};
} // namespace aura
« no previous file with comments | « ui/aura/desktop_host_win.cc ('k') | ui/aura/event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698