| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webcursor.h" | 5 #include "webkit/glue/webcursor.h" |
| 6 #include "webkit/glue/webkit_resources.h" | 6 #include "webkit/glue/webkit_resources.h" |
| 7 | 7 |
| 8 #if PLATFORM(WIN) | 8 #if PLATFORM(WIN) |
| 9 #include "base/gfx/bitmap_header.h" | 9 #include "base/gfx/gdi_util.h" |
| 10 #endif | 10 #endif |
| 11 | 11 |
| 12 WebCursor::WebCursor() | 12 WebCursor::WebCursor() |
| 13 : type_(ARROW), | 13 : type_(ARROW), |
| 14 hotspot_x_(0), | 14 hotspot_x_(0), |
| 15 hotspot_y_(0) { | 15 hotspot_y_(0) { |
| 16 memset(&bitmap_, 0, sizeof(bitmap_)); | 16 memset(&bitmap_, 0, sizeof(bitmap_)); |
| 17 } | 17 } |
| 18 | 18 |
| 19 WebCursor::WebCursor(Type cursor_type) | 19 WebCursor::WebCursor(Type cursor_type) |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 | 145 |
| 146 bool WebCursor::IsEqual(const WebCursor& other) const { | 146 bool WebCursor::IsEqual(const WebCursor& other) const { |
| 147 if (type_ != other.type_) | 147 if (type_ != other.type_) |
| 148 return false; | 148 return false; |
| 149 | 149 |
| 150 if(type_ == CUSTOM) | 150 if(type_ == CUSTOM) |
| 151 return IsSameBitmap(other.bitmap_); | 151 return IsSameBitmap(other.bitmap_); |
| 152 return true; | 152 return true; |
| 153 } | 153 } |
| 154 | 154 |
| OLD | NEW |