OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "base/message_pump_wayland.h" | 5 #include "base/message_pump_wayland.h" |
6 #include "base/wayland/wayland_event.h" | |
Mark Mentovai
2011/11/10 04:40:07
This needs to follow system #includes, like <glib.
oshima
2011/11/10 16:13:38
Do you need to include this? Looks like the event
Mandeep Singh Baines
2011/11/11 19:26:52
Done.
Mandeep Singh Baines
2011/11/11 19:26:52
Done.
| |
6 | 7 |
7 #include <glib.h> | 8 #include <glib.h> |
8 | 9 |
9 namespace base { | 10 namespace base { |
10 | 11 |
11 MessagePumpWayland::MessagePumpWayland() | 12 MessagePumpWayland::MessagePumpWayland() |
12 : MessagePumpGlib(), | 13 : MessagePumpGlib(), |
13 context_(g_main_context_default()) { | 14 context_(g_main_context_default()) { |
14 } | 15 } |
15 | 16 |
16 MessagePumpWayland::~MessagePumpWayland() { | 17 MessagePumpWayland::~MessagePumpWayland() { |
17 } | 18 } |
18 | 19 |
19 bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) { | 20 bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) { |
20 // g_main_context_iteration returns true if events have been dispatched. | 21 // g_main_context_iteration returns true if events have been dispatched. |
21 return g_main_context_iteration(context, block); | 22 return g_main_context_iteration(context, block); |
22 } | 23 } |
23 | 24 |
24 MessagePumpObserver::EventStatus | 25 MessagePumpObserver::EventStatus |
25 MessagePumpObserver::WillProcessEvent(ui::WaylandEvent* event) { | 26 MessagePumpObserver::WillProcessEvent(wayland::WaylandEvent* event) { |
26 return EVENT_CONTINUE; | 27 return EVENT_CONTINUE; |
27 } | 28 } |
28 | 29 |
29 } // namespace base | 30 } // namespace base |
OLD | NEW |