| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/cursor_utils.h" | 5 #include "webkit/glue/cursor_utils.h" |
| 6 | 6 |
| 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCursorInfo.h" |
| 8 #include "webkit/glue/webcursor.h" | |
| 9 | 8 |
| 10 using WebKit::WebCursorInfo; | 9 using WebKit::WebCursorInfo; |
| 11 | 10 |
| 12 namespace webkit_glue { | 11 namespace webkit_glue { |
| 13 | 12 |
| 14 bool GetWebKitCursorInfo(const WebCursor& cursor, | 13 bool GetWebKitCursorInfo(const WebCursor& cursor, |
| 15 WebCursorInfo* webkit_cursor_info) { | 14 WebCursorInfo* webkit_cursor_info) { |
| 16 WebCursor::CursorInfo cursor_info; | 15 WebCursor::CursorInfo cursor_info; |
| 17 cursor.GetCursorInfo(&cursor_info); | 16 cursor.GetCursorInfo(&cursor_info); |
| 18 | 17 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 35 web_cursor_info.hotspot = webkit_cursor_info.hotSpot; | 34 web_cursor_info.hotspot = webkit_cursor_info.hotSpot; |
| 36 web_cursor_info.custom_image = webkit_cursor_info.customImage.getSkBitmap(); | 35 web_cursor_info.custom_image = webkit_cursor_info.customImage.getSkBitmap(); |
| 37 #if defined(OS_WIN) | 36 #if defined(OS_WIN) |
| 38 web_cursor_info.external_handle = webkit_cursor_info.externalHandle; | 37 web_cursor_info.external_handle = webkit_cursor_info.externalHandle; |
| 39 #endif | 38 #endif |
| 40 cursor->InitFromCursorInfo(web_cursor_info); | 39 cursor->InitFromCursorInfo(web_cursor_info); |
| 41 } | 40 } |
| 42 | 41 |
| 43 } // namespce webkit_glue | 42 } // namespce webkit_glue |
| 44 | 43 |
| OLD | NEW |