| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebCursorInfo_h | 31 #ifndef WebCursorInfo_h |
| 32 #define WebCursorInfo_h | 32 #define WebCursorInfo_h |
| 33 | 33 |
| 34 #include "WebImage.h" | 34 #include "WebImage.h" |
| 35 #include "WebPoint.h" | 35 #include "WebPoint.h" |
| 36 | 36 |
| 37 #if INSIDE_BLINK | |
| 38 namespace blink { class Cursor; } | |
| 39 #endif | |
| 40 | |
| 41 #ifdef WIN32 | 37 #ifdef WIN32 |
| 42 typedef struct HICON__* HICON; | 38 typedef struct HICON__* HICON; |
| 43 typedef HICON HCURSOR; | 39 typedef HICON HCURSOR; |
| 44 #endif | 40 #endif |
| 45 | 41 |
| 46 namespace blink { | 42 namespace blink { |
| 47 | 43 |
| 44 class Cursor; |
| 45 |
| 48 struct WebCursorInfo { | 46 struct WebCursorInfo { |
| 49 enum Type { | 47 enum Type { |
| 50 TypePointer, | 48 TypePointer, |
| 51 TypeCross, | 49 TypeCross, |
| 52 TypeHand, | 50 TypeHand, |
| 53 TypeIBeam, | 51 TypeIBeam, |
| 54 TypeWait, | 52 TypeWait, |
| 55 TypeHelp, | 53 TypeHelp, |
| 56 TypeEastResize, | 54 TypeEastResize, |
| 57 TypeNorthResize, | 55 TypeNorthResize, |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 explicit WebCursorInfo(Type type = TypePointer) | 107 explicit WebCursorInfo(Type type = TypePointer) |
| 110 : type(type) | 108 : type(type) |
| 111 , imageScaleFactor(1) | 109 , imageScaleFactor(1) |
| 112 { | 110 { |
| 113 #ifdef WIN32 | 111 #ifdef WIN32 |
| 114 externalHandle = 0; | 112 externalHandle = 0; |
| 115 #endif | 113 #endif |
| 116 } | 114 } |
| 117 | 115 |
| 118 #if INSIDE_BLINK | 116 #if INSIDE_BLINK |
| 119 BLINK_PLATFORM_EXPORT explicit WebCursorInfo(const blink::Cursor&); | 117 BLINK_PLATFORM_EXPORT explicit WebCursorInfo(const Cursor&); |
| 120 #endif | 118 #endif |
| 121 }; | 119 }; |
| 122 | 120 |
| 123 } // namespace blink | 121 } // namespace blink |
| 124 | 122 |
| 125 #endif | 123 #endif |
| OLD | NEW |