Index: webkit/port/platform/chromium/DragImageChromium.cpp |
=================================================================== |
--- webkit/port/platform/chromium/DragImageChromium.cpp (revision 0) |
+++ webkit/port/platform/chromium/DragImageChromium.cpp (working copy) |
@@ -30,17 +30,26 @@ |
#include "GraphicsContext.h" |
#include "Image.h" |
+#if PLATFORM(WIN) |
#include <windows.h> |
+#endif |
namespace WebCore { |
IntSize dragImageSize(DragImageRef image) |
{ |
+// TODO(darin): DragImageRef should be changed to be a cross-platform |
+// container. However, it may still make sense for its contents to be |
+// platform-dependent. |
+#if PLATFORM(WIN) |
if (!image) |
return IntSize(); |
BITMAP b; |
GetObject(image, sizeof(BITMAP), &b); |
return IntSize(b.bmWidth, b.bmHeight); |
+#else |
+ return IntSize(); |
+#endif |
} |
void deleteDragImage(DragImageRef image) |
Property changes on: webkit\port\platform\chromium\DragImageChromium.cpp |
___________________________________________________________________ |
Added: svn:mergeinfo |
Merged /branches/chrome_webkit_merge_branch/webkit/port/platform/DragImageWin.cpp:r69-2775 |