diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 01:13:23 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-12-29 01:13:23 +0000 |
commit | 031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0 (patch) | |
tree | fd9e8d470de5f79c0e531fecc1338ca6197974a7 /webkit/glue/webcursor.h | |
parent | e76049f366a8ffd17708d8915d7d3881b35d53a4 (diff) | |
download | chromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.zip chromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.tar.gz chromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.tar.bz2 |
linux: reduce header interdependencies
By analyzing gcc -H output, I found some of our worst offenders for
headers bringing in other headers. native_web_keyboard_event.h was
responsible for just under 60,000 extra includes!
This change will in theory make the build faster.
Review URL: http://codereview.chromium.org/524004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webcursor.h')
-rw-r--r-- | webkit/glue/webcursor.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/webkit/glue/webcursor.h b/webkit/glue/webcursor.h index 32c8a2b..8697f731 100644 --- a/webkit/glue/webcursor.h +++ b/webkit/glue/webcursor.h @@ -16,10 +16,7 @@ typedef struct HINSTANCE__* HINSTANCE; typedef struct HICON__* HICON; typedef HICON HCURSOR; #elif defined(USE_X11) -// GdkCursorType is an enum, which we can't forward-declare. :( -// If you work around this, be sure to fix webkit_glue.gyp:glue to not put -// GTK in the export_dependent_settings section! -#include <gdk/gdkcursor.h> +typedef struct _GdkCursor GdkCursor; #elif defined(OS_MACOSX) #ifdef __OBJC__ @class NSCursor; @@ -81,7 +78,8 @@ class WebCursor { // Return the stock GdkCursorType for this cursor, or GDK_CURSOR_IS_PIXMAP // if it's a custom cursor. Return GDK_LAST_CURSOR to indicate that the cursor // should be set to the system default. - GdkCursorType GetCursorType() const; + // Returns an int so we don't need to include GDK headers in this header file. + int GetCursorType() const; // Return a new GdkCursor* for this cursor. Only valid if GetCursorType // returns GDK_CURSOR_IS_PIXMAP. |