summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.h
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 21:34:45 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-09 21:34:45 +0000
commitaa98118241207837dc8015ffaf2f8dbaf2de0687 (patch)
tree62dda906107d14a57161617b2b528bb79c7cd5e7 /webkit/glue/webcursor.h
parent445d4cc80e88320e4bd86068c100520c9025fc63 (diff)
downloadchromium_src-aa98118241207837dc8015ffaf2f8dbaf2de0687.zip
chromium_src-aa98118241207837dc8015ffaf2f8dbaf2de0687.tar.gz
chromium_src-aa98118241207837dc8015ffaf2f8dbaf2de0687.tar.bz2
Wrap Windows functions with ifdef so they are only compiled on windows
Review URL: http://codereview.chromium.org/6213 Patch from icefox. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3132 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r--webkit/glue/webcursor.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h
index a35b604..ba35c2c 100644
--- a/webkit/glue/webcursor.h
+++ b/webkit/glue/webcursor.h
@@ -6,6 +6,7 @@
#define WEBCURSOR_H__
#include "skia/include/SkBitmap.h"
+#include <wtf/Platform.h>
// This class provides the functionality of a generic cursor type. The intent
// is to stay away from platform specific code here. We do have win32 specific
@@ -69,7 +70,7 @@ public:
hotspot_x_ = hotspot_x;
hotspot_y_ = hotspot_x;
}
-
+#if PLATFORM(WIN)
// Returns the cursor handle. If the cursor type is a win32 or safari
// cursor, we use LoadCursor to load the cursor.
// Returns NULL on error.
@@ -79,6 +80,7 @@ public:
// freeing the cursor handle lies with the caller.
// Returns NULL on error.
HCURSOR GetCustomCursor() const;
+#endif
// Returns true if the passed in SkBitmap is the same as the the
// current SkBitmap. We use memcmp to compare the two bitmaps.
bool IsSameBitmap(const SkBitmap& bitmap) const;