Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(323)

Side by Side Diff: webkit/glue/webcursor.cc

Issue 7032: Patch by Thatcher Ulrich <tulrich@google.com>.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/stacking_order_iterator.cc ('k') | webkit/glue/webplugin.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « webkit/glue/stacking_order_iterator.cc ('k') | webkit/glue/webplugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698