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

Side by Side Diff: webkit/glue/webcursor_mac.mm

Issue 15088: Add support for custom cursors set by windowless plugins. Windowless plugins... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 11 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/webcursor_gtk.cc ('k') | webkit/glue/webcursor_win.cc » ('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) 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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/webcursor_gtk.cc ('k') | webkit/glue/webcursor_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698