OLD | NEW |
1 // Copyright (c) 2012 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 UI_GFX_NATIVE_WIDGET_TYPES_H_ | 5 #ifndef UI_GFX_NATIVE_WIDGET_TYPES_H_ |
6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ | 6 #define UI_GFX_NATIVE_WIDGET_TYPES_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
12 #include "ui/gfx/gfx_export.h" | |
13 | 12 |
14 #if defined(OS_ANDROID) | 13 #if defined(OS_ANDROID) |
15 #include <jni.h> | 14 #include <jni.h> |
16 #endif | 15 #endif |
17 | 16 |
18 // This file provides cross platform typedefs for native widget types. | 17 // This file provides cross platform typedefs for native widget types. |
19 // NativeWindow: this is a handle to a native, top-level window | 18 // NativeWindow: this is a handle to a native, top-level window |
20 // NativeView: this is a handle to a native UI element. It may be the | 19 // NativeView: this is a handle to a native UI element. It may be the |
21 // same type as a NativeWindow on some platforms. | 20 // same type as a NativeWindow on some platforms. |
22 // NativeViewId: Often, in our cross process model, we need to pass around a | 21 // NativeViewId: Often, in our cross process model, we need to pass around a |
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 #elif defined(USE_OZONE) | 231 #elif defined(USE_OZONE) |
233 typedef intptr_t AcceleratedWidget; | 232 typedef intptr_t AcceleratedWidget; |
234 const AcceleratedWidget kNullAcceleratedWidget = 0; | 233 const AcceleratedWidget kNullAcceleratedWidget = 0; |
235 #else | 234 #else |
236 #error unknown platform | 235 #error unknown platform |
237 #endif | 236 #endif |
238 | 237 |
239 } // namespace gfx | 238 } // namespace gfx |
240 | 239 |
241 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 240 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |