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 <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 | 8 |
9 #include "config.h" | 9 #include "config.h" |
10 #include "PlatformCursor.h" | 10 #include "PlatformCursor.h" |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 | 162 |
163 GdkCursor* cursor = gdk_cursor_new_from_pixbuf(gdk_display_get_default(), | 163 GdkCursor* cursor = gdk_cursor_new_from_pixbuf(gdk_display_get_default(), |
164 pixbuf, | 164 pixbuf, |
165 hotspot_.x(), | 165 hotspot_.x(), |
166 hotspot_.y()); | 166 hotspot_.y()); |
167 | 167 |
168 gdk_pixbuf_unref(pixbuf); | 168 gdk_pixbuf_unref(pixbuf); |
169 | 169 |
170 return cursor; | 170 return cursor; |
171 } | 171 } |
| 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 |