diff options
author | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-29 13:53:02 +0000 |
---|---|---|
committer | pinkerton@google.com <pinkerton@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-29 13:53:02 +0000 |
commit | 5429458eae1d8df90434bf6cb05cc2292d187b65 (patch) | |
tree | 4c6ee4ed2c4c5e9ed9d0aabd87b6ffa93bb5a086 /base/gfx | |
parent | 6bc9ad9d75fff7583fe8592eb4587792897b41cc (diff) | |
download | chromium_src-5429458eae1d8df90434bf6cb05cc2292d187b65.zip chromium_src-5429458eae1d8df90434bf6cb05cc2292d187b65.tar.gz chromium_src-5429458eae1d8df90434bf6cb05cc2292d187b65.tar.bz2 |
platform ifdefs for webview. Add platform_viewdefs to wrap things like HWNDs to keep APIs more crossplatform. Fix uses of PlatformCanvasWin to just use PlatformCanvas.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1528 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/gfx')
-rw-r--r-- | base/gfx/native_widget_types.h | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/base/gfx/native_widget_types.h b/base/gfx/native_widget_types.h new file mode 100644 index 0000000..fe03f9e --- /dev/null +++ b/base/gfx/native_widget_types.h @@ -0,0 +1,38 @@ +// Copyright (c) 2008 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef BASE_GFX_NATIVE_WIDGET_TYPES_H_ +#define BASE_GFX_NATIVE_WIDGET_TYPES_H_ + +#include "build/build_config.h" + +#if defined(OS_WIN) +#include <windows.h> +#elif defined(OS_MACOSX) +#ifdef __OBJC__ +@class NSView; +@class NSWindow; +@class NSTextField; +#else +class NSView; +class NSWindow; +class NSTextField; +#endif // __OBJC__ +#endif // MACOSX + +namespace gfx { + +#if defined(OS_WIN) +typedef HWND ViewHandle; +typedef HWND WindowHandle; +typedef HWND EditViewHandle; +#elif defined(OS_MACOSX) +typedef NSView *ViewHandle; +typedef NSWindow *WindowHandle; +typedef NSTextField *EditViewHandle; +#endif + +} // namespace gfx + +#endif // BASE_GFX_NATIVE_WIDGET_TYPES_H_ |