| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2012 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_LOOP_MESSAGE_PUMP_X11_H | |
| 6 #define BASE_MESSAGE_LOOP_MESSAGE_PUMP_X11_H | |
| 7 | |
| 8 #include <bitset> | |
| 9 #include <map> | |
| 10 | |
| 11 #include "base/memory/scoped_ptr.h" | |
| 12 #include "base/message_loop/message_pump.h" | |
| 13 #include "base/message_loop/message_pump_glib.h" | |
| 14 #include "base/observer_list.h" | |
| 15 | |
| 16 typedef struct _XDisplay Display; | |
| 17 | |
| 18 namespace base { | |
| 19 | |
| 20 // This class implements a message-pump for dispatching X events. | |
| 21 class BASE_EXPORT MessagePumpX11 : public MessagePumpGlib { | |
| 22 public: | |
| 23 MessagePumpX11(); | |
| 24 virtual ~MessagePumpX11(); | |
| 25 | |
| 26 // Returns default X Display. | |
| 27 static Display* GetDefaultXDisplay(); | |
| 28 | |
| 29 // Returns the UI or GPU message pump. | |
| 30 static MessagePumpX11* Current(); | |
| 31 | |
| 32 private: | |
| 33 DISALLOW_COPY_AND_ASSIGN(MessagePumpX11); | |
| 34 }; | |
| 35 | |
| 36 #if !defined(TOOLKIT_GTK) | |
| 37 typedef MessagePumpX11 MessagePumpForUI; | |
| 38 #endif | |
| 39 | |
| 40 } // namespace base | |
| 41 | |
| 42 #endif // BASE_MESSAGE_LOOP_MESSAGE_PUMP_X11_H | |
| OLD | NEW |