Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "base/message_pump_wayland.h" | |
| 6 | |
| 7 #include "base/logging.h" | |
| 8 | |
| 9 #include <glib.h> | |
|
Evan Martin
2011/07/21 18:40:07
This should go above L7:
#include "header-matchin
| |
| 10 | |
| 11 namespace base { | |
| 12 | |
| 13 MessagePumpWayland::MessagePumpWayland() | |
| 14 : MessagePumpGlib(), | |
| 15 context_(g_main_context_default()) { | |
| 16 } | |
| 17 | |
| 18 MessagePumpWayland::~MessagePumpWayland() { | |
| 19 } | |
| 20 | |
| 21 bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) { | |
| 22 // g_main_context_iteration returns true if events have been dispatched. | |
| 23 return g_main_context_iteration(context, block); | |
| 24 } | |
| 25 | |
| 26 MessagePumpObserver::EventStatus | |
| 27 MessagePumpObserver::WillProcessEvent(WaylandEvent* event) { | |
| 28 return EVENT_CONTINUE; | |
| 29 } | |
| 30 | |
| 31 } // namespace base | |
| OLD | NEW |