| OLD | NEW |
| (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 VIEWS_NATIVE_TYPES_H_ |
| 6 #define VIEWS_NATIVE_TYPES_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 |
| 11 namespace views { |
| 12 |
| 13 #if defined(OS_WIN) |
| 14 typedef MSG NativeEvent; |
| 15 #endif |
| 16 #if defined(OS_LINUX) |
| 17 typedef union _GdkEvent GdkEvent; |
| 18 typedef GdkEvent* NativeEvent; |
| 19 #endif |
| 20 #if defined(TOUCH_UI) |
| 21 typedef union _XEvent XEvent; |
| 22 typedef XEvent* NativeEvent; |
| 23 #endif |
| 24 |
| 25 } // namespace views |
| 26 |
| 27 #endif // VIEWS_NATIVE_TYPES_H_ |
| 28 |
| OLD | NEW |