diff options
Diffstat (limited to 'base/message_pump_x.h')
-rw-r--r-- | base/message_pump_x.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/message_pump_x.h b/base/message_pump_x.h index ecadc1f..fdd1de8 100644 --- a/base/message_pump_x.h +++ b/base/message_pump_x.h @@ -14,6 +14,7 @@ #include <gtk/gtk.h> typedef union _XEvent XEvent; +typedef struct _XDisplay Display; namespace base { @@ -58,7 +59,7 @@ class MessagePumpDispatcher { }; // This class implements a message-pump for dispatching X events. -class MessagePumpX : public MessagePumpGlib { +class BASE_API MessagePumpX : public MessagePumpGlib { public: MessagePumpX(); virtual ~MessagePumpX(); @@ -74,6 +75,9 @@ class MessagePumpX : public MessagePumpGlib { // NativeWidgetX is enabled. static void DisableGtkMessagePump(); + // Returns default X Display. + static Display* GetDefaultXDisplay(); + private: // Some XEvent's can't be directly read from X event queue and will go // through GDK's dispatching process and may get discarded. This function |