OLD | NEW |
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #include "webkit/glue/webcursor.h" | 5 #include "webkit/glue/webcursor.h" |
6 | 6 |
7 #include "config.h" | 7 #include "config.h" |
8 #include "PlatformCursor.h" | 8 #include "PlatformCursor.h" |
9 #include "RetainPtr.h" | 9 #include "RetainPtr.h" |
10 | 10 |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 CGImageGetWidth(image_ptr)*4, | 163 CGImageGetWidth(image_ptr)*4, |
164 cg_color.get(), | 164 cg_color.get(), |
165 kCGImageAlphaPremultipliedLast | | 165 kCGImageAlphaPremultipliedLast | |
166 kCGBitmapByteOrder32Big)); | 166 kCGBitmapByteOrder32Big)); |
167 CGRect rect = CGRectMake(0, 0, | 167 CGRect rect = CGRectMake(0, 0, |
168 CGImageGetWidth(image_ptr), | 168 CGImageGetWidth(image_ptr), |
169 CGImageGetHeight(image_ptr)); | 169 CGImageGetHeight(image_ptr)); |
170 CGContextDrawImage(context.get(), rect, image_ptr); | 170 CGContextDrawImage(context.get(), rect, image_ptr); |
171 } | 171 } |
172 | 172 |
| 173 void WebCursor::InitPlatformData() { |
| 174 return; |
| 175 } |
| 176 |
| 177 bool WebCursor::SerializePlatformData(Pickle* pickle) const { |
| 178 return true; |
| 179 } |
| 180 |
| 181 bool WebCursor::DeserializePlatformData(const Pickle* pickle, void** iter) { |
| 182 return true; |
| 183 } |
| 184 |
| 185 bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const { |
| 186 return true; |
| 187 } |
| 188 |
| 189 void WebCursor::CleanupPlatformData() { |
| 190 return; |
| 191 } |
| 192 |
| 193 void WebCursor::CopyPlatformData(const WebCursor& other) { |
| 194 return; |
| 195 } |
OLD | NEW |