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

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

Issue 118223: Fix bustage by defining NativeCursor on Mac. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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 | « no previous file | no next file » | 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) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 BASE_GFX_NATIVE_WIDGET_TYPES_H_ 5 #ifndef BASE_GFX_NATIVE_WIDGET_TYPES_H_
6 #define BASE_GFX_NATIVE_WIDGET_TYPES_H_ 6 #define BASE_GFX_NATIVE_WIDGET_TYPES_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 typedef HWND NativeView; 59 typedef HWND NativeView;
60 typedef HWND NativeWindow; 60 typedef HWND NativeWindow;
61 typedef HWND NativeEditView; 61 typedef HWND NativeEditView;
62 typedef HDC NativeDrawingContext; 62 typedef HDC NativeDrawingContext;
63 typedef HCURSOR NativeCursor; 63 typedef HCURSOR NativeCursor;
64 #elif defined(OS_MACOSX) 64 #elif defined(OS_MACOSX)
65 typedef NSView* NativeView; 65 typedef NSView* NativeView;
66 typedef NSWindow* NativeWindow; 66 typedef NSWindow* NativeWindow;
67 typedef NSTextField* NativeEditView; 67 typedef NSTextField* NativeEditView;
68 typedef CGContext* NativeDrawingContext; 68 typedef CGContext* NativeDrawingContext;
69 typedef void* NativeCursor;
69 #elif defined(OS_LINUX) 70 #elif defined(OS_LINUX)
70 typedef GtkWidget* NativeView; 71 typedef GtkWidget* NativeView;
71 typedef GtkWindow* NativeWindow; 72 typedef GtkWindow* NativeWindow;
72 typedef GtkWidget* NativeEditView; 73 typedef GtkWidget* NativeEditView;
73 typedef cairo_surface_t* NativeDrawingContext; 74 typedef cairo_surface_t* NativeDrawingContext;
74 typedef GdkCursor* NativeCursor; 75 typedef GdkCursor* NativeCursor;
75 #endif 76 #endif
76 77
77 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if 78 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if
78 // you make it a type which is smaller than a pointer, you have to fix 79 // you make it a type which is smaller than a pointer, you have to fix
(...skipping 27 matching lines...) Expand all
106 return reinterpret_cast<NativeViewId>(view); 107 return reinterpret_cast<NativeViewId>(view);
107 } 108 }
108 #elif defined(OS_LINUX) 109 #elif defined(OS_LINUX)
109 // Not inlined because it involves pulling too many headers. 110 // Not inlined because it involves pulling too many headers.
110 NativeViewId IdFromNativeView(NativeView view); 111 NativeViewId IdFromNativeView(NativeView view);
111 #endif // defined(OS_LINUX) 112 #endif // defined(OS_LINUX)
112 113
113 } // namespace gfx 114 } // namespace gfx
114 115
115 #endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_ 116 #endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698