| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 | 10 |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 #elif defined(OS_ANDROID) | 97 #elif defined(OS_ANDROID) |
| 98 class ChromeView; | 98 class ChromeView; |
| 99 #endif | 99 #endif |
| 100 class SkBitmap; | 100 class SkBitmap; |
| 101 | 101 |
| 102 class AcceleratedSurface; | 102 class AcceleratedSurface; |
| 103 | 103 |
| 104 namespace gfx { | 104 namespace gfx { |
| 105 | 105 |
| 106 #if defined(USE_AURA) | 106 #if defined(USE_AURA) |
| 107 #if defined(OS_WIN) |
| 108 typedef HCURSOR PlatformCursor; |
| 109 #elif defined(OS_LINUX) |
| 110 typedef unsigned long PlatformCursor; |
| 111 #else |
| 112 #typedef void* PlatformCursor; |
| 113 #endif |
| 114 #endif |
| 115 |
| 116 #if defined(USE_AURA) |
| 107 // See ui/aura/cursor.h for values. | 117 // See ui/aura/cursor.h for values. |
| 108 typedef int NativeCursor; | 118 typedef int NativeCursor; |
| 109 typedef aura::Window* NativeView; | 119 typedef aura::Window* NativeView; |
| 110 typedef aura::Window* NativeWindow; | 120 typedef aura::Window* NativeWindow; |
| 111 typedef SkRegion* NativeRegion; | 121 typedef SkRegion* NativeRegion; |
| 112 typedef aura::Event* NativeEvent; | 122 typedef aura::Event* NativeEvent; |
| 113 #elif defined(OS_WIN) | 123 #elif defined(OS_WIN) |
| 114 typedef HCURSOR NativeCursor; | 124 typedef HCURSOR NativeCursor; |
| 115 typedef HWND NativeView; | 125 typedef HWND NativeView; |
| 116 typedef HWND NativeWindow; | 126 typedef HWND NativeWindow; |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 #elif defined(OS_ANDROID) | 317 #elif defined(OS_ANDROID) |
| 308 typedef uint64 AcceleratedWidget; | 318 typedef uint64 AcceleratedWidget; |
| 309 const AcceleratedWidget kNullAcceleratedWidget = 0; | 319 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 310 #else | 320 #else |
| 311 #error unknown platform | 321 #error unknown platform |
| 312 #endif | 322 #endif |
| 313 | 323 |
| 314 } // namespace gfx | 324 } // namespace gfx |
| 315 | 325 |
| 316 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 326 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |