Lines Matching refs:event
7 #include "ui/events/event.h"
23 void EventHandler::OnEvent(Event* event) {
24 if (event->IsKeyEvent())
25 OnKeyEvent(static_cast<KeyEvent*>(event));
26 else if (event->IsMouseEvent())
27 OnMouseEvent(static_cast<MouseEvent*>(event));
28 else if (event->IsScrollEvent())
29 OnScrollEvent(static_cast<ScrollEvent*>(event));
30 else if (event->IsTouchEvent())
31 OnTouchEvent(static_cast<TouchEvent*>(event));
32 else if (event->IsGestureEvent())
33 OnGestureEvent(static_cast<GestureEvent*>(event));
34 else if (event->type() == ET_CANCEL_MODE)
35 OnCancelMode(static_cast<CancelModeEvent*>(event));
38 void EventHandler::OnKeyEvent(KeyEvent* event) {
41 void EventHandler::OnMouseEvent(MouseEvent* event) {
44 void EventHandler::OnScrollEvent(ScrollEvent* event) {
47 void EventHandler::OnTouchEvent(TouchEvent* event) {
50 void EventHandler::OnGestureEvent(GestureEvent* event) {
53 void EventHandler::OnCancelMode(CancelModeEvent* event) {