~ubuntu-branches/ubuntu/lucid/webkit/lucid-updates

« back to all changes in this revision

Viewing changes to WebCore/platform/gtk/RenderThemeGtk.h

  • Committer: Bazaar Package Importer
  • Author(s): Gustavo Noronha Silva
  • Date: 2010-01-06 21:25:06 UTC
  • mfrom: (1.2.6 upstream) (4.3.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100106212506-gd0czn4zrwf1j19l
* New upstream release
- adds basic Content-Encoding support, thanks to soup
  (Closes: #529271)
- fixes over-advertising content types as supported by
  the media player (Closes: #559420)
* debian/control:
- updated libsoup build requirement (>= 2.28.2)
* debian/libwebkit-1.0-2.symbols:
- updated with new symbols
* debian/copyright:
- updated information since 1.1.17
* Imported patch from https://bugs.webkit.org/show_bug.cgi?id=30623
- I am shipping this patch because I believe it is correct, it is the
  way to go, it fixes a race, and it needs testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
 
31
31
#include "RenderTheme.h"
32
32
 
33
 
#include <gtk/gtk.h>
 
33
typedef struct _GtkWidget GtkWidget;
 
34
typedef struct _GtkStyle GtkStyle;
 
35
typedef struct _GtkContainer GtkContainer;
 
36
typedef struct _GdkRectangle GdkRectangle;
 
37
typedef struct _GdkDrawable GdkDrawable;
 
38
typedef struct _GtkBorder GtkBorder;
34
39
 
35
40
namespace WebCore {
36
41
 
73
78
 
74
79
    virtual double caretBlinkInterval() const;
75
80
 
 
81
    virtual void platformColorsDidChange();
 
82
 
76
83
    // System fonts.
77
84
    virtual void systemFont(int propId, FontDescription&) const;
78
85
 
 
86
#if ENABLE(VIDEO)
 
87
    virtual String extraMediaControlsStyleSheet();
 
88
#endif
 
89
 
79
90
protected:
80
91
    virtual bool paintCheckbox(RenderObject* o, const RenderObject::PaintInfo& i, const IntRect& r);
81
92
    virtual void setCheckboxSize(RenderStyle* style) const;
106
117
    virtual void adjustSearchFieldCancelButtonStyle(CSSStyleSelector*, RenderStyle*, Element*) const;
107
118
    virtual bool paintSearchFieldCancelButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
108
119
 
 
120
    virtual void adjustSliderThumbSize(RenderObject*) const;
 
121
 
 
122
#if ENABLE(VIDEO)
 
123
    virtual void initMediaStyling(GtkStyle* style, bool force);
 
124
    virtual bool paintMediaFullscreenButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
125
    virtual bool paintMediaPlayButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
126
    virtual bool paintMediaMuteButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
127
    virtual bool paintMediaSeekBackButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
128
    virtual bool paintMediaSeekForwardButton(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
129
    virtual bool paintMediaSliderTrack(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
130
    virtual bool paintMediaSliderThumb(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
131
#endif
109
132
 
110
133
private:
111
134
    /*
125
148
    mutable GtkContainer* m_gtkContainer;
126
149
    mutable GtkWidget* m_gtkEntry;
127
150
    mutable GtkWidget* m_gtkTreeView;
 
151
 
 
152
    mutable Color m_panelColor;
 
153
    mutable Color m_sliderColor;
 
154
    mutable Color m_sliderThumbColor;
 
155
 
 
156
    const int m_mediaIconSize;
 
157
    const int m_mediaSliderHeight;
 
158
    const int m_mediaSliderThumbWidth;
 
159
    const int m_mediaSliderThumbHeight;
 
160
 
 
161
    RefPtr<Image> m_fullscreenButton;
 
162
    RefPtr<Image> m_muteButton;
 
163
    RefPtr<Image> m_unmuteButton;
 
164
    RefPtr<Image> m_playButton;
 
165
    RefPtr<Image> m_pauseButton;
 
166
    RefPtr<Image> m_seekBackButton;
 
167
    RefPtr<Image> m_seekForwardButton;
 
168
 
128
169
};
129
170
 
130
171
}