summaryrefslogtreecommitdiffstats
path: root/views/event.cc
diff options
context:
space:
mode:
Diffstat (limited to 'views/event.cc')
-rw-r--r--views/event.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/views/event.cc b/views/event.cc
index 8e6a0f1..2f9834b 100644
--- a/views/event.cc
+++ b/views/event.cc
@@ -25,6 +25,14 @@ LocatedEvent::LocatedEvent(const LocatedEvent& model, View* from, View* to)
View::ConvertPointToView(from, to, &location_);
}
+KeyEvent::KeyEvent(EventType type, base::KeyboardCode key_code,
+ int event_flags, int repeat_count, int message_flags)
+ : Event(type, event_flags),
+ key_code_(key_code),
+ repeat_count_(repeat_count),
+ message_flags_(message_flags) {
+}
+
MouseEvent::MouseEvent(EventType type,
View* from,
View* to,