diff options
Diffstat (limited to 'WebCore/platform/Widget.h')
-rw-r--r-- | WebCore/platform/Widget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/WebCore/platform/Widget.h b/WebCore/platform/Widget.h index 85612ed..8d29aaa 100644 --- a/WebCore/platform/Widget.h +++ b/WebCore/platform/Widget.h @@ -65,7 +65,6 @@ typedef HWND PlatformWidget; #endif #if PLATFORM(GTK) -typedef struct _GdkDrawable GdkDrawable; typedef struct _GtkWidget GtkWidget; typedef struct _GtkContainer GtkContainer; typedef GtkWidget* PlatformWidget; @@ -116,6 +115,8 @@ class PlatformMouseEvent; class ScrollView; class WidgetPrivate; +enum WidgetNotification { WillPaintFlattened, DidPaintFlattened }; + // The Widget class serves as a base class for three kinds of objects: // (1) Scrollable areas (ScrollView) // (2) Scrollbars (Scrollbar) @@ -194,6 +195,8 @@ public: virtual void handleEvent(Event*) { } + virtual void notifyWidget(WidgetNotification) { } + // It is important for cross-platform code to realize that Mac has flipped coordinates. Therefore any code // that tries to convert the location of a rect using the point-based convertFromContainingWindow will end // up with an inaccurate rect. Always make sure to use the rect-based convertFromContainingWindow method |