| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 #ifndef WEBKIT_GLUE_WEBCURSOR_H_ | 5 #ifndef WEBKIT_GLUE_WEBCURSOR_H_ |
| 6 #define WEBKIT_GLUE_WEBCURSOR_H_ | 6 #define WEBKIT_GLUE_WEBCURSOR_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/gfx/point.h" | 9 #include "base/gfx/point.h" |
| 10 #include "base/gfx/size.h" | 10 #include "base/gfx/size.h" |
| 11 | 11 |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 15 typedef struct HINSTANCE__* HINSTANCE; | 15 typedef struct HINSTANCE__* HINSTANCE; |
| 16 typedef struct HICON__* HICON; | 16 typedef struct HICON__* HICON; |
| 17 typedef HICON HCURSOR; | 17 typedef HICON HCURSOR; |
| 18 #elif defined(USE_X11) | 18 #elif defined(USE_X11) |
| 19 // GdkCursorType is an enum, which we can't forward-declare. :( | 19 // GdkCursorType is an enum, which we can't forward-declare. :( |
| 20 // If you work around this, be sure to fix webkit.gyp:glue to not put | 20 // If you work around this, be sure to fix webkit_glue.gyp:glue to not put |
| 21 // GTK in the export_dependent_settings section! | 21 // GTK in the export_dependent_settings section! |
| 22 #include <gdk/gdkcursor.h> | 22 #include <gdk/gdkcursor.h> |
| 23 #elif defined(OS_MACOSX) | 23 #elif defined(OS_MACOSX) |
| 24 #ifdef __OBJC__ | 24 #ifdef __OBJC__ |
| 25 @class NSCursor; | 25 @class NSCursor; |
| 26 #else | 26 #else |
| 27 class NSCursor; | 27 class NSCursor; |
| 28 #endif | 28 #endif |
| 29 #endif | 29 #endif |
| 30 | 30 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 #if defined(OS_WIN) | 130 #if defined(OS_WIN) |
| 131 // An externally generated HCURSOR. We assume that it remains valid, i.e we | 131 // An externally generated HCURSOR. We assume that it remains valid, i.e we |
| 132 // don't attempt to copy the HCURSOR. | 132 // don't attempt to copy the HCURSOR. |
| 133 HCURSOR external_cursor_; | 133 HCURSOR external_cursor_; |
| 134 // A custom cursor created from custom bitmap data by Webkit. | 134 // A custom cursor created from custom bitmap data by Webkit. |
| 135 HCURSOR custom_cursor_; | 135 HCURSOR custom_cursor_; |
| 136 #endif // OS_WIN | 136 #endif // OS_WIN |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #endif // WEBKIT_GLUE_WEBCURSOR_H_ | 139 #endif // WEBKIT_GLUE_WEBCURSOR_H_ |
| OLD | NEW |