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 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 popsMenuBySpaceOrReturn() const { return false; } |
| 191 virtual bool shouldOpenDropDownWithAltDownUpOrF4Key() const { return false;
} |
191 | 192 |
192 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; | 193 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i
nt width) const; |
193 | 194 |
194 virtual bool shouldOpenPickerWithF4Key() const; | 195 virtual bool shouldOpenPickerWithF4Key() const; |
195 | 196 |
196 virtual bool supportsSelectionForegroundColors() const { return true; } | 197 virtual bool supportsSelectionForegroundColors() const { return true; } |
197 | 198 |
198 protected: | 199 protected: |
199 // The platform selection color. | 200 // The platform selection color. |
200 virtual Color platformActiveSelectionBackgroundColor() const; | 201 virtual Color platformActiveSelectionBackgroundColor() const; |
(...skipping 106 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 WebCore | 315 } // namespace WebCore |
315 | 316 |
316 #endif // RenderTheme_h | 317 #endif // RenderTheme_h |
OLD | NEW |