forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
platform ifdefs for webview. Add platform_viewdefs to wrap things lik…
…e 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
- Loading branch information
pinkerton@google.com
committed
Aug 29, 2008
1 parent
6bc9ad9
commit 5429458
Showing
11 changed files
with
146 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.