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

Side by Side Diff: base/event_types.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/base.gypi ('k') | base/message_loop.h » ('j') | 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) 2012 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)
14 namespace base {
15 namespace wayland {
16 union WaylandEvent;
17 }
18 }
19 #elif defined(USE_X11) 13 #elif defined(USE_X11)
20 typedef union _XEvent XEvent; 14 typedef union _XEvent XEvent;
21 #elif defined(OS_MACOSX) 15 #elif defined(OS_MACOSX)
22 #if defined(__OBJC__) 16 #if defined(__OBJC__)
23 @class NSEvent; 17 @class NSEvent;
24 #else // __OBJC__ 18 #else // __OBJC__
25 class NSEvent; 19 class NSEvent;
26 #endif // __OBJC__ 20 #endif // __OBJC__
27 #endif 21 #endif
28 22
29 namespace base { 23 namespace base {
30 24
31 // Cross platform typedefs for native event types. 25 // Cross platform typedefs for native event types.
32 #if defined(OS_WIN) 26 #if defined(OS_WIN)
33 typedef MSG NativeEvent; 27 typedef MSG NativeEvent;
34 #elif defined(USE_WAYLAND)
35 typedef wayland::WaylandEvent* NativeEvent;
36 #elif defined(USE_X11) 28 #elif defined(USE_X11)
37 typedef XEvent* NativeEvent; 29 typedef XEvent* NativeEvent;
38 #elif defined(OS_MACOSX) 30 #elif defined(OS_MACOSX)
39 typedef NSEvent* NativeEvent; 31 typedef NSEvent* NativeEvent;
40 #else 32 #else
41 typedef void* NativeEvent; 33 typedef void* NativeEvent;
42 #endif 34 #endif
43 35
44 } // namespace base 36 } // namespace base
45 37
46 #endif // BASE_EVENT_TYPES_H 38 #endif // BASE_EVENT_TYPES_H
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698