Chromium Code Reviews| Index: base/message_pump_glib_x.h |
| diff --git a/base/message_pump_glib_x.h b/base/message_pump_glib_x.h |
| index 6bd29c9c53911925b203798aff65f20bc89a7c3e..fc0f405dcbc7d129101e92efc7e908be964e8c2d 100644 |
| --- a/base/message_pump_glib_x.h |
| +++ b/base/message_pump_glib_x.h |
| @@ -31,8 +31,23 @@ class MessagePumpGlibX : public MessagePumpForUI { |
| virtual bool RunOnce(GMainContext* context, bool block); |
| 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. Setting up |
|
Evan Martin
2011/05/24 19:12:00
s/Setting/This function sets/
Yufeng Shen (Slow to review)
2011/05/24 19:19:26
Done.
|
| + // the GdkEventFilter to intercept those XEvent's we are interested in |
| + // and dispatch them so that they won't get lost. |
|
Evan Martin
2011/05/24 19:12:00
s/dispatch/dispatches/
Yufeng Shen (Slow to review)
2011/05/24 19:19:26
Done.
|
| + static GdkFilterReturn GdkEventFilter(GdkXEvent* gxevent, |
| + GdkEvent* gevent, |
| + gpointer data); |
| + |
| static void EventDispatcherX(GdkEvent* event, gpointer data); |
| + // Decide whether we are interested in processing this XEvent. |
| + bool ShouldCaptureXEvent(XEvent* event); |
| + |
| + // Dispatching the XEvent and return true if we should exit the current loop |
|
Evan Martin
2011/05/24 19:12:00
s/Dispatching/Dispatches/
Yufeng Shen (Slow to review)
2011/05/24 19:19:26
Done.
|
| + // of message processing. |
| + bool ProcessXEvent(XEvent* event); |
| + |
| // Sends the event to the observers. If an observer returns true, then it does |
| // not send the event to any other observers and returns true. Returns false |
| // if no observer returns true. |