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

Side by Side Diff: base/message_pump_wayland.h

Issue 10009024: Remove WAYLAND port (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 8 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_loop.h ('k') | base/wayland/wayland_event.h » ('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 #ifndef BASE_MESSAGE_PUMP_WAYLAND_H_
6 #define BASE_MESSAGE_PUMP_WAYLAND_H_
7 #pragma once
8
9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_pump_glib.h"
11 #include "base/message_pump_observer.h"
12
13 namespace base {
14
15 namespace wayland {
16 union WaylandEvent;
17 }
18
19 // The documentation for this class is in message_pump_glib.h
20 //
21 // The nested loop is exited by either posting a quit, or returning false
22 // from Dispatch.
23 class MessagePumpDispatcher {
24 public:
25 enum DispatchStatus {
26 EVENT_IGNORED, // The event was not processed.
27 EVENT_PROCESSED, // The event has been processed.
28 EVENT_QUIT // The event was processed and the message-loop should
29 // terminate.
30 };
31
32 // Dispatches the event. If true is returned processing continues as
33 // normal. If false is returned, the nested loop exits immediately.
34 virtual DispatchStatus Dispatch(wayland::WaylandEvent* event) = 0;
35
36 protected:
37 virtual ~MessagePumpDispatcher() {}
38 };
39
40 typedef MessagePumpGlib MessagePumpForUI;
41
42 } // namespace base
43
44 #endif // BASE_MESSAGE_PUMP_WAYLAND_H_
OLDNEW
« no previous file with comments | « base/message_loop.h ('k') | base/wayland/wayland_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698