| 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 virtual Color platformInactiveSelectionForegroundColor() const; | 196 virtual Color platformInactiveSelectionForegroundColor() const; |
| 197 | 197 |
| 198 virtual Color platformActiveListBoxSelectionBackgroundColor() const; | 198 virtual Color platformActiveListBoxSelectionBackgroundColor() const; |
| 199 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; | 199 virtual Color platformInactiveListBoxSelectionBackgroundColor() const; |
| 200 virtual Color platformActiveListBoxSelectionForegroundColor() const; | 200 virtual Color platformActiveListBoxSelectionForegroundColor() const; |
| 201 virtual Color platformInactiveListBoxSelectionForegroundColor() const; | 201 virtual Color platformInactiveListBoxSelectionForegroundColor() const; |
| 202 | 202 |
| 203 // A method asking if the theme is able to draw the focus ring. | 203 // A method asking if the theme is able to draw the focus ring. |
| 204 virtual bool supportsFocusRing(const ComputedStyle&) const = 0; | 204 virtual bool supportsFocusRing(const ComputedStyle&) const = 0; |
| 205 | 205 |
| 206 static String formatChromiumMediaControlsTime(float, float, bool); |
| 207 |
| 206 #if !USE(NEW_THEME) | 208 #if !USE(NEW_THEME) |
| 207 // Methods for each appearance value. | 209 // Methods for each appearance value. |
| 208 virtual void adjustCheckboxStyle(ComputedStyle&) const; | 210 virtual void adjustCheckboxStyle(ComputedStyle&) const; |
| 209 virtual void setCheckboxSize(ComputedStyle&) const { } | 211 virtual void setCheckboxSize(ComputedStyle&) const { } |
| 210 | 212 |
| 211 virtual void adjustRadioStyle(ComputedStyle&) const; | 213 virtual void adjustRadioStyle(ComputedStyle&) const; |
| 212 virtual void setRadioSize(ComputedStyle&) const { } | 214 virtual void setRadioSize(ComputedStyle&) const { } |
| 213 | 215 |
| 214 virtual void adjustButtonStyle(ComputedStyle&) const; | 216 virtual void adjustButtonStyle(ComputedStyle&) const; |
| 215 virtual void adjustInnerSpinButtonStyle(ComputedStyle&) const; | 217 virtual void adjustInnerSpinButtonStyle(ComputedStyle&) const; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 246 | 248 |
| 247 // This color is expected to be drawn on a semi-transparent overlay, | 249 // This color is expected to be drawn on a semi-transparent overlay, |
| 248 // making it more transparent than its alpha value indicates. | 250 // making it more transparent than its alpha value indicates. |
| 249 static const RGBA32 defaultTapHighlightColor = 0x66000000; | 251 static const RGBA32 defaultTapHighlightColor = 0x66000000; |
| 250 | 252 |
| 251 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 253 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 252 | 254 |
| 253 #if USE(NEW_THEME) | 255 #if USE(NEW_THEME) |
| 254 Theme* m_platformTheme; // The platform-specific theme. | 256 Theme* m_platformTheme; // The platform-specific theme. |
| 255 #endif | 257 #endif |
| 258 friend class Internals; |
| 256 }; | 259 }; |
| 257 | 260 |
| 258 } // namespace blink | 261 } // namespace blink |
| 259 | 262 |
| 260 #endif // LayoutTheme_h | 263 #endif // LayoutTheme_h |
| OLD | NEW |