OLD | NEW |
1 /* | 1 /* |
2 * This file is part of the theme implementation for form controls in WebCore. | 2 * This file is part of the theme implementation for form controls in WebCore. |
3 * | 3 * |
4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. | 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 26 matching lines...) Expand all Loading... |
37 | 37 |
38 namespace blink { | 38 namespace blink { |
39 | 39 |
40 class Element; | 40 class Element; |
41 class FileList; | 41 class FileList; |
42 class HTMLInputElement; | 42 class HTMLInputElement; |
43 class RenderMeter; | 43 class RenderMeter; |
44 class RenderProgress; | 44 class RenderProgress; |
45 | 45 |
46 | 46 |
| 47 // FIXME: A lot of the functions taking a RenderStyle could be take a const obje
ct. |
47 class LayoutTheme : public RefCounted<LayoutTheme> { | 48 class LayoutTheme : public RefCounted<LayoutTheme> { |
48 protected: | 49 protected: |
49 LayoutTheme(); | 50 LayoutTheme(); |
50 | 51 |
51 public: | 52 public: |
52 virtual ~LayoutTheme() { } | 53 virtual ~LayoutTheme() { } |
53 | 54 |
54 // This function is to be implemented in your platform-specific theme implem
entation to hand back the | 55 // This function is to be implemented in your platform-specific theme implem
entation to hand back the |
55 // appropriate platform theme. | 56 // appropriate platform theme. |
56 static LayoutTheme& theme(); | 57 static LayoutTheme& theme(); |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } | 136 virtual Color platformDefaultCompositionBackgroundColor() const { return def
aultCompositionBackgroundColor; } |
136 virtual void platformColorsDidChange(); | 137 virtual void platformColorsDidChange(); |
137 | 138 |
138 virtual double caretBlinkInterval() const { return 0.5; } | 139 virtual double caretBlinkInterval() const { return 0.5; } |
139 | 140 |
140 // System fonts and colors for CSS. | 141 // System fonts and colors for CSS. |
141 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; | 142 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl
oat& fontSize, AtomicString& fontFamily) const = 0; |
142 void systemFont(CSSValueID systemFontID, FontDescription&); | 143 void systemFont(CSSValueID systemFontID, FontDescription&); |
143 virtual Color systemColor(CSSValueID) const; | 144 virtual Color systemColor(CSSValueID) const; |
144 | 145 |
145 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } | 146 virtual int minimumMenuListSize(const RenderStyle*) const { return 0; } |
146 | 147 |
147 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 148 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; |
148 | 149 |
149 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } | 150 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } |
150 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } | 151 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } |
151 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } | 152 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } |
152 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } | 153 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } |
153 virtual bool popupOptionSupportsTextIndent() const { return false; } | 154 virtual bool popupOptionSupportsTextIndent() const { return false; } |
154 | 155 |
155 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } | 156 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu
rn RegularScrollbar; } |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 308 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
308 | 309 |
309 #if USE(NEW_THEME) | 310 #if USE(NEW_THEME) |
310 Theme* m_platformTheme; // The platform-specific theme. | 311 Theme* m_platformTheme; // The platform-specific theme. |
311 #endif | 312 #endif |
312 }; | 313 }; |
313 | 314 |
314 } // namespace blink | 315 } // namespace blink |
315 | 316 |
316 #endif // LayoutTheme_h | 317 #endif // LayoutTheme_h |
OLD | NEW |