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

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

Issue 854713003: More old files deletion. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix tryjobs? Created 5 years, 11 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
« no previous file with comments | « ui/gfx/mac/scoped_ns_disable_screen_updates.h ('k') | ui/gfx/nine_image_painter.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 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_ANDROID) 10 #if defined(OS_ANDROID)
(...skipping 24 matching lines...) Expand all
35 // NativeEditView: a handle to a native edit-box. The Mac folks wanted this 35 // NativeEditView: a handle to a native edit-box. The Mac folks wanted this
36 // specific typedef. 36 // specific typedef.
37 // 37 //
38 // NativeImage: The platform-specific image type used for drawing UI elements 38 // NativeImage: The platform-specific image type used for drawing UI elements
39 // in the browser. 39 // in the browser.
40 // 40 //
41 // The name 'View' here meshes with OS X where the UI elements are called 41 // The name 'View' here meshes with OS X where the UI elements are called
42 // 'views' and with our Chrome UI code where the elements are also called 42 // 'views' and with our Chrome UI code where the elements are also called
43 // 'views'. 43 // 'views'.
44 44
45 #if defined(USE_AURA)
46 class SkRegion; 45 class SkRegion;
47 namespace aura {
48 class Window;
49 }
50 namespace ui { 46 namespace ui {
51 class Cursor;
52 class Event; 47 class Event;
53 } 48 }
54 #endif // defined(USE_AURA)
55 49
56 #if defined(OS_WIN) 50 #if defined(OS_WIN)
57 #include <windows.h> // NOLINT 51 #include <windows.h> // NOLINT
58 typedef struct HFONT__* HFONT; 52 typedef struct HFONT__* HFONT;
59 struct IAccessible; 53 struct IAccessible;
60 #elif defined(OS_IOS) 54 #elif defined(OS_IOS)
61 struct CGContext; 55 struct CGContext;
62 #ifdef __OBJC__ 56 #ifdef __OBJC__
63 @class UIEvent; 57 @class UIEvent;
64 @class UIFont; 58 @class UIFont;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 struct ANativeWindow; 96 struct ANativeWindow;
103 namespace ui { 97 namespace ui {
104 class WindowAndroid; 98 class WindowAndroid;
105 class ViewAndroid; 99 class ViewAndroid;
106 } 100 }
107 #endif 101 #endif
108 class SkBitmap; 102 class SkBitmap;
109 103
110 namespace gfx { 104 namespace gfx {
111 105
112 #if defined(USE_AURA) 106 #if defined(OS_LINUX) || defined(OS_WIN)
113 typedef ui::Cursor NativeCursor;
114 typedef aura::Window* NativeView;
115 typedef aura::Window* NativeWindow;
116 typedef SkRegion* NativeRegion; 107 typedef SkRegion* NativeRegion;
117 typedef ui::Event* NativeEvent; 108 typedef ui::Event* NativeEvent;
118 #elif defined(OS_IOS) 109 #elif defined(OS_IOS)
119 typedef void* NativeCursor;
120 typedef UIView* NativeView;
121 typedef UIWindow* NativeWindow;
122 typedef UIEvent* NativeEvent; 110 typedef UIEvent* NativeEvent;
123 #elif defined(OS_MACOSX) 111 #elif defined(OS_MACOSX)
124 typedef NSCursor* NativeCursor;
125 typedef NSView* NativeView;
126 typedef NSWindow* NativeWindow;
127 typedef void* NativeRegion; 112 typedef void* NativeRegion;
128 typedef NSEvent* NativeEvent; 113 typedef NSEvent* NativeEvent;
129 #elif defined(OS_ANDROID) 114 #elif defined(OS_ANDROID)
130 typedef void* NativeCursor;
131 typedef ui::ViewAndroid* NativeView;
132 typedef ui::WindowAndroid* NativeWindow;
133 typedef void* NativeRegion; 115 typedef void* NativeRegion;
134 typedef jobject NativeEvent; 116 typedef jobject NativeEvent;
135 #endif 117 #endif
136 118
137 #if defined(OS_WIN) 119 #if defined(OS_WIN)
138 typedef HFONT NativeFont; 120 typedef HFONT NativeFont;
139 typedef HWND NativeEditView; 121 typedef HWND NativeEditView;
140 typedef HDC NativeDrawingContext; 122 typedef HDC NativeDrawingContext;
141 typedef IAccessible* NativeViewAccessible; 123 typedef IAccessible* NativeViewAccessible;
142 #elif defined(OS_IOS) 124 #elif defined(OS_IOS)
(...skipping 20 matching lines...) Expand all
163 typedef cairo_t* NativeDrawingContext; 145 typedef cairo_t* NativeDrawingContext;
164 typedef void* NativeViewAccessible; 146 typedef void* NativeViewAccessible;
165 #else 147 #else
166 typedef void* NativeFont; 148 typedef void* NativeFont;
167 typedef void* NativeEditView; 149 typedef void* NativeEditView;
168 typedef void* NativeDrawingContext; 150 typedef void* NativeDrawingContext;
169 typedef void* NativeViewAccessible; 151 typedef void* NativeViewAccessible;
170 #endif 152 #endif
171 153
172 // A constant value to indicate that gfx::NativeCursor refers to no cursor. 154 // A constant value to indicate that gfx::NativeCursor refers to no cursor.
173 #if defined(USE_AURA) 155 #if defined(OS_LINUX) || defined(OS_WIN)
174 const int kNullCursor = 0; 156 const int kNullCursor = 0;
175 #else
176 const gfx::NativeCursor kNullCursor = static_cast<gfx::NativeCursor>(NULL);
177 #endif 157 #endif
178 158
179 #if defined(OS_IOS) 159 #if defined(OS_IOS)
180 typedef UIImage NativeImageType; 160 typedef UIImage NativeImageType;
181 #elif defined(OS_MACOSX) 161 #elif defined(OS_MACOSX)
182 typedef NSImage NativeImageType; 162 typedef NSImage NativeImageType;
183 #else 163 #else
184 typedef SkBitmap NativeImageType; 164 typedef SkBitmap NativeImageType;
185 #endif 165 #endif
186 typedef NativeImageType* NativeImage; 166 typedef NativeImageType* NativeImage;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 #elif defined(USE_OZONE) 243 #elif defined(USE_OZONE)
264 typedef intptr_t AcceleratedWidget; 244 typedef intptr_t AcceleratedWidget;
265 const AcceleratedWidget kNullAcceleratedWidget = 0; 245 const AcceleratedWidget kNullAcceleratedWidget = 0;
266 #else 246 #else
267 #error unknown platform 247 #error unknown platform
268 #endif 248 #endif
269 249
270 } // namespace gfx 250 } // namespace gfx
271 251
272 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_ 252 #endif // UI_GFX_NATIVE_WIDGET_TYPES_H_
OLDNEW
« no previous file with comments | « ui/gfx/mac/scoped_ns_disable_screen_updates.h ('k') | ui/gfx/nine_image_painter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698