| 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 // Returns the distance of slider tick origin from the slider track center. | 180 // Returns the distance of slider tick origin from the slider track center. |
| 181 virtual int sliderTickOffsetFromTrackCenter() const = 0; | 181 virtual int sliderTickOffsetFromTrackCenter() const = 0; |
| 182 void paintSliderTicks(RenderObject*, const PaintInfo&, const IntRect&); | 182 void paintSliderTicks(RenderObject*, const PaintInfo&, const IntRect&); |
| 183 | 183 |
| 184 virtual bool shouldShowPlaceholderWhenFocused() const { return false; } | 184 virtual bool shouldShowPlaceholderWhenFocused() const { return false; } |
| 185 virtual bool shouldHaveSpinButton(HTMLInputElement*) const; | 185 virtual bool shouldHaveSpinButton(HTMLInputElement*) const; |
| 186 | 186 |
| 187 // Functions for <select> elements. | 187 // Functions for <select> elements. |
| 188 virtual bool delegatesMenuListRendering() const { return false; } | 188 virtual bool delegatesMenuListRendering() const { return false; } |
| 189 virtual bool popsMenuByArrowKeys() const { return false; } | 189 virtual bool popsMenuByArrowKeys() const { return false; } |
| 190 virtual bool popsMenuBySpaceOrReturn() const { return false; } | 190 virtual bool popsMenuBySpaceKey() const { return false; } |
| 191 virtual bool popsMenuByReturnKey() const { return false; } |
| 192 virtual bool popsMenuByAltDownUpOrF4Key() const { return false; } |
| 191 | 193 |
| 192 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; | 194 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; |
| 193 | 195 |
| 194 virtual bool shouldOpenPickerWithF4Key() const; | 196 virtual bool shouldOpenPickerWithF4Key() const; |
| 195 | 197 |
| 196 virtual bool supportsSelectionForegroundColors() const { return true; } | 198 virtual bool supportsSelectionForegroundColors() const { return true; } |
| 197 | 199 |
| 198 protected: | 200 protected: |
| 199 // The platform selection color. | 201 // The platform selection color. |
| 200 virtual Color platformActiveSelectionBackgroundColor() const; | 202 virtual Color platformActiveSelectionBackgroundColor() const; |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; | 309 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; |
| 308 | 310 |
| 309 #if USE(NEW_THEME) | 311 #if USE(NEW_THEME) |
| 310 Theme* m_platformTheme; // The platform-specific theme. | 312 Theme* m_platformTheme; // The platform-specific theme. |
| 311 #endif | 313 #endif |
| 312 }; | 314 }; |
| 313 | 315 |
| 314 } // namespace WebCore | 316 } // namespace WebCore |
| 315 | 317 |
| 316 #endif // RenderTheme_h | 318 #endif // RenderTheme_h |
| OLD | NEW |