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

Unified Diff: ui/aura/event.cc

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/event.h ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/event.cc
===================================================================
--- ui/aura/event.cc (revision 106345)
+++ ui/aura/event.cc (working copy)
@@ -115,18 +115,20 @@
force_(0.0f) {
}
-KeyEvent::KeyEvent(const base::NativeEvent& native_event)
+KeyEvent::KeyEvent(const base::NativeEvent& native_event, bool is_char)
: Event(native_event,
ui::EventTypeFromNative(native_event),
ui::EventFlagsFromNative(native_event)),
- key_code_(ui::KeyboardCodeFromNative(native_event)) {
+ key_code_(ui::KeyboardCodeFromNative(native_event)),
+ is_char_(is_char) {
}
KeyEvent::KeyEvent(ui::EventType type,
ui::KeyboardCode key_code,
int flags)
: Event(type, flags),
- key_code_(key_code) {
+ key_code_(key_code),
+ is_char_(false) {
}
} // namespace aura
« no previous file with comments | « ui/aura/event.h ('k') | views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698