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

Side by Side Diff: base/event_types.h

Issue 8572030: wayland: forward declare WaylandEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #ifndef BASE_EVENT_TYPES_H 5 #ifndef BASE_EVENT_TYPES_H
6 #define BASE_EVENT_TYPES_H 6 #define BASE_EVENT_TYPES_H
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include <windows.h> 12 #include <windows.h>
13 #elif defined(USE_WAYLAND) 13 #elif defined(USE_WAYLAND)
14 #include "base/wayland/wayland_event.h" 14 namespace base {
15 namespace wayland {
16 union WaylandEvent;
17 }
18 }
15 #elif defined(USE_X11) 19 #elif defined(USE_X11)
16 typedef union _XEvent XEvent; 20 typedef union _XEvent XEvent;
17 #endif 21 #endif
18 22
19 namespace base { 23 namespace base {
20 24
21 // Cross platform typedefs for native event types. 25 // Cross platform typedefs for native event types.
22 #if defined(OS_WIN) 26 #if defined(OS_WIN)
23 typedef MSG NativeEvent; 27 typedef MSG NativeEvent;
24 #elif defined(USE_WAYLAND) 28 #elif defined(USE_WAYLAND)
25 typedef wayland::WaylandEvent* NativeEvent; 29 typedef wayland::WaylandEvent* NativeEvent;
26 #elif defined(USE_X11) 30 #elif defined(USE_X11)
27 typedef XEvent* NativeEvent; 31 typedef XEvent* NativeEvent;
28 #else 32 #else
29 typedef void* NativeEvent; 33 typedef void* NativeEvent;
30 #endif 34 #endif
31 35
32 } // namespace base 36 } // namespace base
33 37
34 #endif // BASE_EVENT_TYPES_H 38 #endif // BASE_EVENT_TYPES_H
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698