Index: base/message_pump_x.h |
diff --git a/base/message_pump_x.h b/base/message_pump_x.h |
index a9c5cdbf84c458b7606fbcdf54d5a7e678a49b47..85f7c8d6d8d9d59e6deac361f7bc190529d6adfe 100644 |
--- a/base/message_pump_x.h |
+++ b/base/message_pump_x.h |
@@ -8,6 +8,7 @@ |
#include "base/memory/scoped_ptr.h" |
#include "base/message_pump.h" |
#include "base/message_pump_glib.h" |
+#include "base/message_pump_dispatcher.h" |
#include "base/message_pump_observer.h" |
#include <bitset> |
@@ -18,26 +19,6 @@ typedef struct _XDisplay Display; |
namespace base { |
-// The documentation for this class is in message_pump_glib.h |
-// |
-// The nested loop is exited by either posting a quit, or returning EVENT_QUIT |
-// from Dispatch. |
-class MessagePumpDispatcher { |
- public: |
- enum DispatchStatus { |
- EVENT_IGNORED, // The event was not processed. |
- EVENT_PROCESSED, // The event has been processed. |
- EVENT_QUIT // The event was processed and the message-loop should |
- // terminate. |
- }; |
- virtual ~MessagePumpDispatcher() {} |
- |
- // Dispatches the event. EVENT_IGNORED is returned if the event was ignored |
- // (i.e. not processed). EVENT_PROCESSED is returned if the event was |
- // processed. The nested loop exits immediately if EVENT_QUIT is returned. |
- virtual DispatchStatus Dispatch(XEvent* xevent) = 0; |
-}; |
- |
// This class implements a message-pump for dispatching X events. |
class BASE_EXPORT MessagePumpX : public MessagePumpGlib { |
public: |