| OLD | NEW |
| 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 "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 namespace gfx { | 24 namespace gfx { |
| 25 | 25 |
| 26 #if defined(OS_WIN) | 26 #if defined(OS_WIN) |
| 27 typedef HWND ViewHandle; | 27 typedef HWND ViewHandle; |
| 28 typedef HWND WindowHandle; | 28 typedef HWND WindowHandle; |
| 29 typedef HWND EditViewHandle; | 29 typedef HWND EditViewHandle; |
| 30 #elif defined(OS_MACOSX) | 30 #elif defined(OS_MACOSX) |
| 31 typedef NSView *ViewHandle; | 31 typedef NSView *ViewHandle; |
| 32 typedef NSWindow *WindowHandle; | 32 typedef NSWindow *WindowHandle; |
| 33 typedef NSTextField *EditViewHandle; | 33 typedef NSTextField *EditViewHandle; |
| 34 #else // null port. |
| 35 typedef void* ViewHandle; |
| 36 typedef void* WindowHandle; |
| 37 typedef void* EditViewHandle; |
| 34 #endif | 38 #endif |
| 35 | 39 |
| 36 } // namespace gfx | 40 } // namespace gfx |
| 37 | 41 |
| 38 #endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_ | 42 #endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_ |
| OLD | NEW |