Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: ui/gfx/native_widget_types.h

Issue 7977025: aura: Make 'ui' buildable without gtk. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/insets.h ('k') | ui/gfx/pango_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 @class NSView; 53 @class NSView;
54 @class NSWindow; 54 @class NSWindow;
55 @class NSTextField; 55 @class NSTextField;
56 #else 56 #else
57 class NSFont; 57 class NSFont;
58 class NSImage; 58 class NSImage;
59 class NSView; 59 class NSView;
60 class NSWindow; 60 class NSWindow;
61 class NSTextField; 61 class NSTextField;
62 #endif // __OBJC__ 62 #endif // __OBJC__
63 #elif defined(USE_WAYLAND) 63 #elif defined(OS_POSIX)
64 typedef struct _PangoFontDescription PangoFontDescription; 64 typedef struct _PangoFontDescription PangoFontDescription;
65 typedef struct _cairo cairo_t; 65 typedef struct _cairo cairo_t;
66 #endif
67
68 #if defined(USE_WAYLAND)
66 typedef struct _GdkPixbuf GdkPixbuf; 69 typedef struct _GdkPixbuf GdkPixbuf;
67 struct wl_egl_window; 70 struct wl_egl_window;
68 71
69 namespace ui { 72 namespace ui {
70 class WaylandWindow; 73 class WaylandWindow;
71 class WaylandCursor; 74 class WaylandCursor;
72 } 75 }
73 76
74 typedef struct _GdkRegion GdkRegion; 77 typedef struct _GdkRegion GdkRegion;
75 #elif defined(TOOLKIT_USES_GTK) 78 #elif defined(TOOLKIT_USES_GTK)
76 typedef struct _PangoFontDescription PangoFontDescription;
77 typedef struct _GdkCursor GdkCursor; 79 typedef struct _GdkCursor GdkCursor;
78 typedef struct _GdkPixbuf GdkPixbuf; 80 typedef struct _GdkPixbuf GdkPixbuf;
79 typedef struct _GdkRegion GdkRegion; 81 typedef struct _GdkRegion GdkRegion;
80 typedef struct _GtkWidget GtkWidget; 82 typedef struct _GtkWidget GtkWidget;
81 typedef struct _GtkWindow GtkWindow; 83 typedef struct _GtkWindow GtkWindow;
82 typedef struct _cairo cairo_t;
83 #elif defined(OS_ANDROID) 84 #elif defined(OS_ANDROID)
84 class ChromeView; 85 class ChromeView;
85 #endif 86 #endif
86 class SkBitmap; 87 class SkBitmap;
87 88
88 namespace gfx { 89 namespace gfx {
89 90
90 #if defined(USE_AURA) 91 #if defined(USE_AURA)
91 typedef aura::Window* NativeView; 92 typedef aura::Window* NativeView;
92 typedef aura::Window* NativeWindow; 93 typedef aura::Window* NativeWindow;
(...skipping 29 matching lines...) Expand all
122 #elif defined(USE_WAYLAND) 123 #elif defined(USE_WAYLAND)
123 typedef PangoFontDescription* NativeFont; 124 typedef PangoFontDescription* NativeFont;
124 typedef void* NativeEditView; 125 typedef void* NativeEditView;
125 typedef cairo_t* NativeDrawingContext; 126 typedef cairo_t* NativeDrawingContext;
126 typedef void* NativeCursor; 127 typedef void* NativeCursor;
127 typedef void* NativeMenu; 128 typedef void* NativeMenu;
128 // TODO(dnicoara) This should be replaced with a cairo region or maybe 129 // TODO(dnicoara) This should be replaced with a cairo region or maybe
129 // a Wayland specific region 130 // a Wayland specific region
130 typedef GdkRegion* NativeRegion; 131 typedef GdkRegion* NativeRegion;
131 typedef void* NativeViewAccessible; 132 typedef void* NativeViewAccessible;
132 #elif defined(USE_X11) 133 #elif defined(TOOLKIT_USES_GTK)
133 typedef PangoFontDescription* NativeFont; 134 typedef PangoFontDescription* NativeFont;
134 typedef GtkWidget* NativeEditView; 135 typedef GtkWidget* NativeEditView;
135 typedef cairo_t* NativeDrawingContext; 136 typedef cairo_t* NativeDrawingContext;
136 typedef GdkCursor* NativeCursor; 137 typedef GdkCursor* NativeCursor;
137 typedef GtkWidget* NativeMenu; 138 typedef GtkWidget* NativeMenu;
138 typedef GdkRegion* NativeRegion; 139 typedef GdkRegion* NativeRegion;
139 typedef void* NativeViewAccessible; 140 typedef void* NativeViewAccessible;
141 #elif defined(USE_AURA)
142 typedef PangoFontDescription* NativeFont;
143 typedef void* NativeEditView;
144 typedef cairo_t* NativeDrawingContext;
145 typedef void* NativeCursor;
146 typedef void* NativeMenu;
147 typedef void* NativeRegion;
148 typedef void* NativeViewAccessible;
140 #elif defined(OS_ANDROID) 149 #elif defined(OS_ANDROID)
141 typedef void* NativeFont; 150 typedef void* NativeFont;
142 typedef ChromeView* NativeView; 151 typedef ChromeView* NativeView;
143 typedef ChromeView* NativeWindow; 152 typedef ChromeView* NativeWindow;
144 typedef void* NativeEditView; 153 typedef void* NativeEditView;
145 typedef void* NativeDrawingContext; 154 typedef void* NativeDrawingContext;
146 typedef void* NativeCursor; 155 typedef void* NativeCursor;
147 typedef void* NativeMenu; 156 typedef void* NativeMenu;
157 typedef void* NativeRegion;
148 typedef void* NativeViewAccessible; 158 typedef void* NativeViewAccessible;
149 #endif 159 #endif
150 160
151 #if defined(OS_MACOSX) 161 #if defined(OS_MACOSX)
152 typedef NSImage NativeImageType; 162 typedef NSImage NativeImageType;
153 #elif defined(TOOLKIT_GTK) 163 #elif defined(TOOLKIT_GTK)
154 typedef GdkPixbuf NativeImageType; 164 typedef GdkPixbuf NativeImageType;
155 #else 165 #else
156 typedef SkBitmap NativeImageType; 166 typedef SkBitmap NativeImageType;
157 #endif 167 #endif
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
226 typedef unsigned long AcceleratedWidget; 236 typedef unsigned long AcceleratedWidget;
227 const AcceleratedWidget kNullAcceleratedWidget = 0; 237 const AcceleratedWidget kNullAcceleratedWidget = 0;
228 #else 238 #else
229 typedef void* AcceleratedWidget; 239 typedef void* AcceleratedWidget;
230 const AcceleratedWidget kNullAcceleratedWidget = NULL; 240 const AcceleratedWidget kNullAcceleratedWidget = NULL;
231 #endif 241 #endif
232 242
233 } // namespace gfx 243 } // namespace gfx
234 244
235 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 245 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/gfx/insets.h ('k') | ui/gfx/pango_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698