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 "config.h" | 5 #include "config.h" |
6 #include "NativeImageSkia.h" | 6 #include "NativeImageSkia.h" |
7 #include "PlatformCursor.h" | 7 #include "PlatformCursor.h" |
8 | 8 |
9 #undef LOG | 9 #undef LOG |
10 #include "base/gfx/gdi_util.h" | 10 #include "base/gfx/gdi_util.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/pickle.h" | 12 #include "base/pickle.h" |
13 #include "grit/webkit_resources.h" | 13 #include "grit/webkit_resources.h" |
14 #include "skia/include/SkBitmap.h" | 14 #include "third_party/skia/include/core/SkBitmap.h" |
15 #include "webkit/glue/webcursor.h" | 15 #include "webkit/glue/webcursor.h" |
16 | 16 |
17 using WebCore::PlatformCursor; | 17 using WebCore::PlatformCursor; |
18 | 18 |
19 static LPCWSTR ToCursorID(PlatformCursor::Type type) { | 19 static LPCWSTR ToCursorID(PlatformCursor::Type type) { |
20 switch (type) { | 20 switch (type) { |
21 case PlatformCursor::TypePointer: | 21 case PlatformCursor::TypePointer: |
22 return IDC_ARROW; | 22 return IDC_ARROW; |
23 case PlatformCursor::TypeCross: | 23 case PlatformCursor::TypeCross: |
24 return IDC_CROSS; | 24 return IDC_CROSS; |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 } | 231 } |
232 | 232 |
233 void WebCursor::CleanupPlatformData() { | 233 void WebCursor::CleanupPlatformData() { |
234 external_cursor_ = NULL; | 234 external_cursor_ = NULL; |
235 | 235 |
236 if (custom_cursor_) { | 236 if (custom_cursor_) { |
237 DestroyIcon(custom_cursor_); | 237 DestroyIcon(custom_cursor_); |
238 custom_cursor_ = NULL; | 238 custom_cursor_ = NULL; |
239 } | 239 } |
240 } | 240 } |
OLD | NEW |