| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 180 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; | 180 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; |
| 181 | 181 |
| 182 virtual bool shouldOpenPickerWithF4Key() const; | 182 virtual bool shouldOpenPickerWithF4Key() const; |
| 183 | 183 |
| 184 virtual bool supportsSelectionForegroundColors() const { return true; } | 184 virtual bool supportsSelectionForegroundColors() const { return true; } |
| 185 | 185 |
| 186 virtual bool isModalColorChooser() const { return true; } | 186 virtual bool isModalColorChooser() const { return true; } |
| 187 | 187 |
| 188 virtual bool shouldUseFallbackTheme(const ComputedStyle&) const; | 188 virtual bool shouldUseFallbackTheme(const ComputedStyle&) const; |
| 189 | 189 |
| 190 virtual bool themeDrawsFocusRing(const ComputedStyle&) const = 0; | |
| 191 | |
| 192 protected: | 190 protected: |
| 193 // The platform selection color. | 191 // The platform selection color. |
| 194 virtual Color platformActiveSelectionBackgroundColor() const; | 192 virtual Color platformActiveSelectionBackgroundColor() const; |
| 195 virtual Color platformInactiveSelectionBackgroundColor() const; | 193 virtual Color platformInactiveSelectionBackgroundColor() const; |
| 196 virtual Color platformActiveSelectionForegroundColor() const; | 194 virtual Color platformActiveSelectionForegroundColor() const; |
| 197 virtual Color platformInactiveSelectionForegroundColor() const; | 195 virtual Color platformInactiveSelectionForegroundColor() const; |
| 198 | 196 |
| 199 virtual Color platformActiveListBoxSelectionBackgroundColor() const; | 197 virtual Color platformActiveListBoxSelectionBackgroundColor() const; |
| 200 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; | 198 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; |
| 201 virtual Color platformActiveListBoxSelectionForegroundColor() const; | 199 virtual Color platformActiveListBoxSelectionForegroundColor() const; |
| 202 virtual Color platformInactiveListBoxSelectionForegroundColor() const; | 200 virtual Color platformInactiveListBoxSelectionForegroundColor() const; |
| 203 | 201 |
| 202 virtual bool themeDrawsFocusRing(const ComputedStyle&) const = 0; |
| 203 |
| 204 // Methods for each appearance value. | 204 // Methods for each appearance value. |
| 205 virtual void adjustCheckboxStyle(ComputedStyle&) const; | 205 virtual void adjustCheckboxStyle(ComputedStyle&) const; |
| 206 virtual void setCheckboxSize(ComputedStyle&) const { } | 206 virtual void setCheckboxSize(ComputedStyle&) const { } |
| 207 | 207 |
| 208 virtual void adjustRadioStyle(ComputedStyle&) const; | 208 virtual void adjustRadioStyle(ComputedStyle&) const; |
| 209 virtual void setRadioSize(ComputedStyle&) const { } | 209 virtual void setRadioSize(ComputedStyle&) const { } |
| 210 | 210 |
| 211 virtual void adjustButtonStyle(ComputedStyle&) const; | 211 virtual void adjustButtonStyle(ComputedStyle&) const; |
| 212 virtual void adjustInnerSpinButtonStyle(ComputedStyle&) const; | 212 virtual void adjustInnerSpinButtonStyle(ComputedStyle&) const; |
| 213 | 213 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 251 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 252 | 252 |
| 253 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 253 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 254 | 254 |
| 255 Theme* m_platformTheme; // The platform-specific theme. | 255 Theme* m_platformTheme; // The platform-specific theme. |
| 256 }; | 256 }; |
| 257 | 257 |
| 258 } // namespace blink | 258 } // namespace blink |
| 259 | 259 |
| 260 #endif // LayoutTheme_h | 260 #endif // LayoutTheme_h |
| OLD | NEW |