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 "base/gfx/bitmap_header.h" | 5 #include "base/gfx/gdi_util.h" |
6 #include "webkit/glue/webcursor.h" | 6 #include "webkit/glue/webcursor.h" |
7 #include "webkit/glue/webkit_resources.h" | 7 #include "webkit/glue/webkit_resources.h" |
8 | 8 |
9 WebCursor::WebCursor() | 9 WebCursor::WebCursor() |
10 : type_(ARROW), | 10 : type_(ARROW), |
11 hotspot_x_(0), | 11 hotspot_x_(0), |
12 hotspot_y_(0) { | 12 hotspot_y_(0) { |
13 memset(&bitmap_, 0, sizeof(bitmap_)); | 13 memset(&bitmap_, 0, sizeof(bitmap_)); |
14 } | 14 } |
15 | 15 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 | 142 |
143 bool WebCursor::IsEqual(const WebCursor& other) const { | 143 bool WebCursor::IsEqual(const WebCursor& other) const { |
144 if (type_ != other.type_) | 144 if (type_ != other.type_) |
145 return false; | 145 return false; |
146 | 146 |
147 if(type_ == CUSTOM) | 147 if(type_ == CUSTOM) |
148 return IsSameBitmap(other.bitmap_); | 148 return IsSameBitmap(other.bitmap_); |
149 return true; | 149 return true; |
150 } | 150 } |
151 | 151 |
OLD | NEW |