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

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

Issue 342116: Attempt 2 at:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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 | « app/app.gyp ('k') | app/gfx/path.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 APP_GFX_NATIVE_WIDGET_TYPES_H_ 5 #ifndef APP_GFX_NATIVE_WIDGET_TYPES_H_
6 #define APP_GFX_NATIVE_WIDGET_TYPES_H_ 6 #define APP_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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #else 44 #else
45 class NSView; 45 class NSView;
46 class NSWindow; 46 class NSWindow;
47 class NSTextField; 47 class NSTextField;
48 #endif // __OBJC__ 48 #endif // __OBJC__
49 #elif defined(USE_X11) 49 #elif defined(USE_X11)
50 typedef struct _GdkCursor GdkCursor; 50 typedef struct _GdkCursor GdkCursor;
51 typedef struct _GtkWidget GtkWidget; 51 typedef struct _GtkWidget GtkWidget;
52 typedef struct _GtkWindow GtkWindow; 52 typedef struct _GtkWindow GtkWindow;
53 typedef struct _cairo cairo_t; 53 typedef struct _cairo cairo_t;
54 typedef struct _GdkRegion GdkRegion;
54 #endif 55 #endif
55 56
56 namespace gfx { 57 namespace gfx {
57 58
58 #if defined(OS_WIN) 59 #if defined(OS_WIN)
59 typedef HWND NativeView; 60 typedef HWND NativeView;
60 typedef HWND NativeWindow; 61 typedef HWND NativeWindow;
61 typedef HWND NativeEditView; 62 typedef HWND NativeEditView;
62 typedef HDC NativeDrawingContext; 63 typedef HDC NativeDrawingContext;
63 typedef HCURSOR NativeCursor; 64 typedef HCURSOR NativeCursor;
64 typedef HMENU NativeMenu; 65 typedef HMENU NativeMenu;
66 typedef HRGN NativeRegion;
65 #elif defined(OS_MACOSX) 67 #elif defined(OS_MACOSX)
66 typedef NSView* NativeView; 68 typedef NSView* NativeView;
67 typedef NSWindow* NativeWindow; 69 typedef NSWindow* NativeWindow;
68 typedef NSTextField* NativeEditView; 70 typedef NSTextField* NativeEditView;
69 typedef CGContext* NativeDrawingContext; 71 typedef CGContext* NativeDrawingContext;
70 typedef void* NativeCursor; 72 typedef void* NativeCursor;
71 typedef void* NativeMenu; 73 typedef void* NativeMenu;
72 #elif defined(USE_X11) 74 #elif defined(USE_X11)
73 typedef GtkWidget* NativeView; 75 typedef GtkWidget* NativeView;
74 typedef GtkWindow* NativeWindow; 76 typedef GtkWindow* NativeWindow;
75 typedef GtkWidget* NativeEditView; 77 typedef GtkWidget* NativeEditView;
76 typedef cairo_t* NativeDrawingContext; 78 typedef cairo_t* NativeDrawingContext;
77 typedef GdkCursor* NativeCursor; 79 typedef GdkCursor* NativeCursor;
78 typedef GtkWidget* NativeMenu; 80 typedef GtkWidget* NativeMenu;
81 typedef GdkRegion* NativeRegion;
79 #endif 82 #endif
80 83
81 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if 84 // Note: for test_shell we're packing a pointer into the NativeViewId. So, if
82 // you make it a type which is smaller than a pointer, you have to fix 85 // you make it a type which is smaller than a pointer, you have to fix
83 // test_shell. 86 // test_shell.
84 // 87 //
85 // See comment at the top of the file for usage. 88 // See comment at the top of the file for usage.
86 typedef intptr_t NativeViewId; 89 typedef intptr_t NativeViewId;
87 90
88 // Convert a NativeViewId to a NativeView. 91 // Convert a NativeViewId to a NativeView.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // On OS X we don't have windowed plugins. 140 // On OS X we don't have windowed plugins.
138 // We use a NULL/0 PluginWindowHandle in shared code to indicate there 141 // We use a NULL/0 PluginWindowHandle in shared code to indicate there
139 // is no window present, so mirror that behavior here. 142 // is no window present, so mirror that behavior here.
140 typedef bool PluginWindowHandle; 143 typedef bool PluginWindowHandle;
141 const PluginWindowHandle kNullPluginWindow = false; 144 const PluginWindowHandle kNullPluginWindow = false;
142 #endif 145 #endif
143 146
144 } // namespace gfx 147 } // namespace gfx
145 148
146 #endif // APP_GFX_NATIVE_WIDGET_TYPES_H_ 149 #endif // APP_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « app/app.gyp ('k') | app/gfx/path.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698