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

Side by Side Diff: base/event_types.h

Issue 8113028: Consolidate ui::NativeEvent and base::NativeEvent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync/resolve Created 9 years, 2 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_pump_observer.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_EVENT_TYPES_H
6 #define BASE_EVENT_TYPES_H
7 #pragma once
8
9 #include "build/build_config.h"
10
11 #if defined(OS_WIN)
12 #include <windows.h>
13 #endif
14
15 #if defined(USE_X11)
16 typedef union _XEvent XEvent;
17 #endif
18
19 namespace base {
20
21 // Cross platform typedefs for native event types.
22 #if defined(OS_WIN)
23 typedef MSG NativeEvent;
24 #elif defined(USE_X11)
25 typedef XEvent* NativeEvent;
26 #elif defined(USE_WAYLAND)
27 // WaylandEvent is currently defined in ui component and cannot be
28 // used in base component. Probably wayland maintainer has to move it
29 // outside of ui in order to define NativeEvent for wayland here.
30 typedef void* NativeEvent;
31 #else
32 typedef void* NativeEvent;
33 #endif
34
35 } // namespace base
36
37 #endif // BASE_EVENT_TYPES_H
OLDNEW
« no previous file with comments | « base/base.gypi ('k') | base/message_pump_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698