| Index: views/event.h
|
| diff --git a/views/event.h b/views/event.h
|
| index f02bd1b2c7ea3b9673466c8247c6366a2a697b2b..9da39455c095444b75e321c0c931906a1a9e5b87 100644
|
| --- a/views/event.h
|
| +++ b/views/event.h
|
| @@ -13,6 +13,9 @@
|
| #if defined(OS_LINUX)
|
| typedef struct _GdkEventKey GdkEventKey;
|
| #endif
|
| +#if defined(TOUCH_UI)
|
| +typedef union _XEvent XEvent;
|
| +#endif
|
|
|
| class OSExchangeData;
|
|
|
| @@ -222,6 +225,11 @@ class MouseEvent : public LocatedEvent {
|
| // from 'from' coordinate system to 'to' coordinate system
|
| MouseEvent(const MouseEvent& model, View* from, View* to);
|
|
|
| +#if defined(TOUCH_UI)
|
| + // Create a mouse event from an X mouse event.
|
| + explicit MouseEvent(XEvent* xevent);
|
| +#endif
|
| +
|
| // Conveniences to quickly test what button is down
|
| bool IsOnlyLeftMouseButton() const {
|
| return (GetFlags() & EF_LEFT_BUTTON_DOWN) &&
|
| @@ -318,6 +326,11 @@ class KeyEvent : public Event {
|
| explicit KeyEvent(GdkEventKey* event);
|
| #endif
|
|
|
| +#if defined(TOUCH_UI)
|
| + // Create a key event from an X key event.
|
| + explicit KeyEvent(XEvent* xevent);
|
| +#endif
|
| +
|
| // This returns a VKEY_ value as defined in app/keyboard_codes.h which is
|
| // the Windows value.
|
| // On GTK, you can use the methods in keyboard_code_conversion_gtk.cc to
|
|
|