summaryrefslogtreecommitdiffstats
path: root/webkit/glue/webcursor.cc
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.cc
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.cc')
-rw-r--r--webkit/glue/webcursor.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/glue/webcursor.cc b/webkit/glue/webcursor.cc
index 19b34b0..c00d0d4 100644
--- a/webkit/glue/webcursor.cc
+++ b/webkit/glue/webcursor.cc
@@ -2,10 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "base/gfx/bitmap_header.h"
#include "webkit/glue/webcursor.h"
#include "webkit/glue/webkit_resources.h"
+#if PLATFORM(WIN)
+#include "base/gfx/bitmap_header.h"
+#endif
+
WebCursor::WebCursor()
: type_(ARROW),
hotspot_x_(0),
@@ -53,7 +56,7 @@ WebCursor& WebCursor::operator=(const WebCursor& other) {
}
return *this;
}
-
+#if PLATFORM(WIN)
HCURSOR WebCursor::GetCursor(HINSTANCE module_handle) const {
if (type_ == CUSTOM)
return NULL;
@@ -132,7 +135,7 @@ HCURSOR WebCursor::GetCustomCursor() const {
::ReleaseDC(0, dc);
return cursor_handle;
}
-
+#endif
bool WebCursor::IsSameBitmap(const SkBitmap& bitmap) const {
SkAutoLockPixels new_bitmap_lock(bitmap);
SkAutoLockPixels bitmap_lock(bitmap_);