OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef BASE_MESSAGE_PUMP_GLIB_X_DISPATCH_H |
| 6 #define BASE_MESSAGE_PUMP_GLIB_X_DISPATCH_H |
| 7 |
| 8 #include "base/message_pump.h" |
| 9 #include "base/message_pump_glib.h" |
| 10 |
| 11 typedef union _XEvent XEvent; |
| 12 |
| 13 namespace base { |
| 14 |
| 15 // The message pump used for TOUCH_UI on linux is MessagePumpGlibX, which can |
| 16 // dispatch both GdkEvents* and XEvents* captured directly from X. |
| 17 // MessagePumpForUI::Dispatcher provides the mechanism for dispatching |
| 18 // GdkEvents. This class provides additional mechanism for dispatching XEvents. |
| 19 class MessagePumpGlibXDispatcher : public MessagePumpForUI::Dispatcher { |
| 20 public: |
| 21 // Dispatches the event. If true is returned processing continues as |
| 22 // normal. If false is returned, the nested loop exits immediately. |
| 23 virtual bool Dispatch(XEvent* xevent) = 0; |
| 24 }; |
| 25 |
| 26 } // namespace base |
| 27 |
| 28 #endif // BASE_MESSAGE_PUMP_GLIB_X_DISPATCH_H |
OLD | NEW |