OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "ui/base/ui_export.h" | 10 #include "ui/base/ui_export.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 // specific typedef. | 30 // specific typedef. |
31 // | 31 // |
32 // NativeImage: The platform-specific image type used for drawing UI elements | 32 // NativeImage: The platform-specific image type used for drawing UI elements |
33 // in the browser. | 33 // in the browser. |
34 // | 34 // |
35 // The name 'View' here meshes with OS X where the UI elements are called | 35 // The name 'View' here meshes with OS X where the UI elements are called |
36 // 'views' and with our Chrome UI code where the elements are also called | 36 // 'views' and with our Chrome UI code where the elements are also called |
37 // 'views'. | 37 // 'views'. |
38 | 38 |
39 #if defined(USE_AURA) | 39 #if defined(USE_AURA) |
40 #include "aura/window.h" | 40 namespace aura { |
| 41 class Window; |
| 42 } |
41 #endif | 43 #endif |
42 #if defined(OS_WIN) | 44 #if defined(OS_WIN) |
43 #include <windows.h> // NOLINT | 45 #include <windows.h> // NOLINT |
44 typedef struct HFONT__* HFONT; | 46 typedef struct HFONT__* HFONT; |
45 struct IAccessible; | 47 struct IAccessible; |
46 #elif defined(OS_MACOSX) | 48 #elif defined(OS_MACOSX) |
47 struct CGContext; | 49 struct CGContext; |
48 #ifdef __OBJC__ | 50 #ifdef __OBJC__ |
49 @class NSFont; | 51 @class NSFont; |
50 @class NSImage; | 52 @class NSImage; |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 typedef unsigned long AcceleratedWidget; | 215 typedef unsigned long AcceleratedWidget; |
214 const AcceleratedWidget kNullAcceleratedWidget = 0; | 216 const AcceleratedWidget kNullAcceleratedWidget = 0; |
215 #else | 217 #else |
216 typedef void* AcceleratedWidget; | 218 typedef void* AcceleratedWidget; |
217 const AcceleratedWidget kNullAcceleratedWidget = NULL; | 219 const AcceleratedWidget kNullAcceleratedWidget = NULL; |
218 #endif | 220 #endif |
219 | 221 |
220 } // namespace gfx | 222 } // namespace gfx |
221 | 223 |
222 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 224 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
OLD | NEW |