OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 6 |
7 #include <gdk/gdk.h> | 7 #include <gdk/gdk.h> |
8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 | 192 |
193 void WebCursor::InitPlatformData() { | 193 void WebCursor::InitPlatformData() { |
194 unref_ = NULL; | 194 unref_ = NULL; |
195 return; | 195 return; |
196 } | 196 } |
197 | 197 |
198 bool WebCursor::SerializePlatformData(Pickle* pickle) const { | 198 bool WebCursor::SerializePlatformData(Pickle* pickle) const { |
199 return true; | 199 return true; |
200 } | 200 } |
201 | 201 |
202 bool WebCursor::DeserializePlatformData(const Pickle* pickle, void** iter) { | 202 bool WebCursor::DeserializePlatformData(PickleIterator* iter) { |
203 return true; | 203 return true; |
204 } | 204 } |
205 | 205 |
206 bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const { | 206 bool WebCursor::IsPlatformDataEqual(const WebCursor& other) const { |
207 return true; | 207 return true; |
208 } | 208 } |
209 | 209 |
210 void WebCursor::CleanupPlatformData() { | 210 void WebCursor::CleanupPlatformData() { |
211 if (unref_) { | 211 if (unref_) { |
212 gdk_cursor_unref(unref_); | 212 gdk_cursor_unref(unref_); |
213 unref_ = NULL; | 213 unref_ = NULL; |
214 } | 214 } |
215 return; | 215 return; |
216 } | 216 } |
217 | 217 |
218 void WebCursor::CopyPlatformData(const WebCursor& other) { | 218 void WebCursor::CopyPlatformData(const WebCursor& other) { |
219 if (other.unref_) | 219 if (other.unref_) |
220 unref_ = gdk_cursor_ref(other.unref_); | 220 unref_ = gdk_cursor_ref(other.unref_); |
221 return; | 221 return; |
222 } | 222 } |
OLD | NEW |