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

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

Issue 9419010: Fix Mac custom cursor color. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: test shell change Created 8 years, 10 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 | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | webkit/glue/webcursor.h » ('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) 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 #endif // defined(USE_AURA) 51 #endif // defined(USE_AURA)
52 52
53 #if defined(OS_WIN) 53 #if defined(OS_WIN)
54 #include <windows.h> // NOLINT 54 #include <windows.h> // NOLINT
55 typedef struct HFONT__* HFONT; 55 typedef struct HFONT__* HFONT;
56 struct IAccessible; 56 struct IAccessible;
57 #elif defined(OS_MACOSX) 57 #elif defined(OS_MACOSX)
58 struct CGContext; 58 struct CGContext;
59 #ifdef __OBJC__ 59 #ifdef __OBJC__
60 @class NSCursor;
60 @class NSEvent; 61 @class NSEvent;
61 @class NSFont; 62 @class NSFont;
62 @class NSImage; 63 @class NSImage;
63 @class NSView; 64 @class NSView;
64 @class NSWindow; 65 @class NSWindow;
65 @class NSTextField; 66 @class NSTextField;
66 #else 67 #else
68 class NSCursor;
67 class NSEvent; 69 class NSEvent;
68 class NSFont; 70 class NSFont;
69 class NSImage; 71 class NSImage;
70 struct NSView; 72 struct NSView;
71 class NSWindow; 73 class NSWindow;
72 class NSTextField; 74 class NSTextField;
73 #endif // __OBJC__ 75 #endif // __OBJC__
74 #elif defined(OS_POSIX) 76 #elif defined(OS_POSIX)
75 typedef struct _PangoFontDescription PangoFontDescription; 77 typedef struct _PangoFontDescription PangoFontDescription;
76 typedef struct _cairo cairo_t; 78 typedef struct _cairo cairo_t;
(...skipping 29 matching lines...) Expand all
106 typedef aura::Window* NativeWindow; 108 typedef aura::Window* NativeWindow;
107 typedef SkRegion* NativeRegion; 109 typedef SkRegion* NativeRegion;
108 typedef aura::Event* NativeEvent; 110 typedef aura::Event* NativeEvent;
109 #elif defined(OS_WIN) 111 #elif defined(OS_WIN)
110 typedef HCURSOR NativeCursor; 112 typedef HCURSOR NativeCursor;
111 typedef HWND NativeView; 113 typedef HWND NativeView;
112 typedef HWND NativeWindow; 114 typedef HWND NativeWindow;
113 typedef HRGN NativeRegion; 115 typedef HRGN NativeRegion;
114 typedef MSG NativeEvent; 116 typedef MSG NativeEvent;
115 #elif defined(OS_MACOSX) 117 #elif defined(OS_MACOSX)
116 typedef void* NativeCursor; 118 typedef NSCursor* NativeCursor;
117 typedef NSView* NativeView; 119 typedef NSView* NativeView;
118 typedef NSWindow* NativeWindow; 120 typedef NSWindow* NativeWindow;
119 typedef NSEvent* NativeEvent; 121 typedef NSEvent* NativeEvent;
120 #elif defined(USE_WAYLAND) 122 #elif defined(USE_WAYLAND)
121 typedef void* NativeCursor; 123 typedef void* NativeCursor;
122 typedef ui::WaylandWindow* NativeView; 124 typedef ui::WaylandWindow* NativeView;
123 typedef ui::WaylandWindow* NativeWindow; 125 typedef ui::WaylandWindow* NativeWindow;
124 // TODO(dnicoara) This should be replaced with a cairo region or maybe 126 // TODO(dnicoara) This should be replaced with a cairo region or maybe
125 // a Wayland specific region 127 // a Wayland specific region
126 typedef GdkRegion* NativeRegion; 128 typedef GdkRegion* NativeRegion;
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 #elif defined(OS_ANDROID) 299 #elif defined(OS_ANDROID)
298 typedef uint64 AcceleratedWidget; 300 typedef uint64 AcceleratedWidget;
299 const AcceleratedWidget kNullAcceleratedWidget = 0; 301 const AcceleratedWidget kNullAcceleratedWidget = 0;
300 #else 302 #else
301 #error unknown platform 303 #error unknown platform
302 #endif 304 #endif
303 305
304 } // namespace gfx 306 } // namespace gfx
305 307
306 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 308 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_mac.mm ('k') | webkit/glue/webcursor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698