| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 typedef GtkWindow* NativeWindow; | 90 typedef GtkWindow* NativeWindow; |
| 91 typedef GtkWidget* NativeEditView; | 91 typedef GtkWidget* NativeEditView; |
| 92 typedef cairo_t* NativeDrawingContext; | 92 typedef cairo_t* NativeDrawingContext; |
| 93 typedef GdkCursor* NativeCursor; | 93 typedef GdkCursor* NativeCursor; |
| 94 typedef GtkWidget* NativeMenu; | 94 typedef GtkWidget* NativeMenu; |
| 95 typedef GdkRegion* NativeRegion; | 95 typedef GdkRegion* NativeRegion; |
| 96 #endif | 96 #endif |
| 97 | 97 |
| 98 #if defined(OS_MACOSX) | 98 #if defined(OS_MACOSX) |
| 99 typedef NSImage NativeImageType; | 99 typedef NSImage NativeImageType; |
| 100 #elif defined(OS_LINUX) && !defined(TOOLKIT_VIEWS) | 100 #elif defined(TOOLKIT_GTK) |
| 101 typedef GdkPixbuf NativeImageType; | 101 typedef GdkPixbuf NativeImageType; |
| 102 #else | 102 #else |
| 103 typedef SkBitmap NativeImageType; | 103 typedef SkBitmap NativeImageType; |
| 104 #endif | 104 #endif |
| 105 typedef NativeImageType* NativeImage; | 105 typedef NativeImageType* NativeImage; |
| 106 | 106 |
| 107 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if | 107 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if |
| 108 // you make it a type which is smaller than a pointer, you have to fix | 108 // you make it a type which is smaller than a pointer, you have to fix |
| 109 // test_shell. | 109 // test_shell. |
| 110 // | 110 // |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 typedef unsigned long AcceleratedWidget; | 179 typedef unsigned long AcceleratedWidget; |
| 180 const AcceleratedWidget kNullAcceleratedWidget = 0; | 180 const AcceleratedWidget kNullAcceleratedWidget = 0; |
| 181 #else | 181 #else |
| 182 typedef void* AcceleratedWidget; | 182 typedef void* AcceleratedWidget; |
| 183 const AcceleratedWidget kNullAcceleratedWidget = NULL; | 183 const AcceleratedWidget kNullAcceleratedWidget = NULL; |
| 184 #endif | 184 #endif |
| 185 | 185 |
| 186 } // namespace gfx | 186 } // namespace gfx |
| 187 | 187 |
| 188 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ | 188 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |