Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: base/message_pump_wayland.cc

Issue 7473010: Adding Wayland message loop and gyp build deps (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updating files Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/message_pump_wayland.h ('k') | build/all.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 <glib.h>
8
9 namespace base {
10
11 MessagePumpWayland::MessagePumpWayland()
12 : MessagePumpGlib(),
13 context_(g_main_context_default()) {
14 }
15
16 MessagePumpWayland::~MessagePumpWayland() {
17 }
18
19 bool MessagePumpWayland::RunOnce(GMainContext* context, bool block) {
20 // g_main_context_iteration returns true if events have been dispatched.
21 return g_main_context_iteration(context, block);
22 }
23
24 MessagePumpObserver::EventStatus
25 MessagePumpObserver::WillProcessEvent(ui::WaylandEvent* event) {
26 return EVENT_CONTINUE;
27 }
28
29 } // namespace base
OLDNEW
« no previous file with comments | « base/message_pump_wayland.h ('k') | build/all.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698