1 /* 2 * This file is part of the WebKit project. 3 * 4 * Copyright (C) 2009 Maxime Simon <simon.maxime@gmail.com> 5 * 6 * All rights reserved. 7 * 8 * This library is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU Library General Public 10 * License as published by the Free Software Foundation; either 11 * version 2 of the License, or (at your option) any later version. 12 * 13 * This library is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * Library General Public License for more details. 17 * 18 * You should have received a copy of the GNU Library General Public License 19 * along with this library; see the file COPYING.LIB. If not, write to 20 * the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 21 * Boston, MA 02111-1307, USA. 22 * 23 */ 24 25 #ifndef RenderThemeHaiku_h 26 #define RenderThemeHaiku_h 27 28 #include "RenderTheme.h" 29 30 namespace WebCore { 31 32 class RenderThemeHaiku : public RenderTheme { 33 private: 34 RenderThemeHaiku(); 35 virtual ~RenderThemeHaiku(); 36 37 public: 38 static PassRefPtr<RenderTheme> create(); 39 40 // A method asking if the theme's controls actually care about redrawing when hovered. supportsHover(const RenderStyle * style)41 virtual bool supportsHover(const RenderStyle* style) const { return false; } 42 43 // A method asking if the theme is able to draw the focus ring. 44 virtual bool supportsFocusRing(const RenderStyle*) const; 45 46 // The platform selection color. 47 virtual Color platformActiveSelectionBackgroundColor() const; 48 virtual Color platformInactiveSelectionBackgroundColor() const; 49 virtual Color platformActiveSelectionForegroundColor() const; 50 virtual Color platformInactiveSelectionForegroundColor() const; 51 52 virtual Color platformTextSearchHighlightColor() const; 53 54 // System fonts. 55 virtual void systemFont(int propId, FontDescription&) const; 56 57 protected: 58 virtual bool paintCheckbox(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 59 virtual void setCheckboxSize(RenderStyle*) const; 60 61 virtual bool paintRadio(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 62 virtual void setRadioSize(RenderStyle*) const; 63 64 virtual void adjustMenuListStyle(CSSStyleSelector*, RenderStyle*, Element*) const; 65 virtual bool paintMenuList(RenderObject*, const RenderObject::PaintInfo&, const IntRect&); 66 }; 67 68 } // namespace WebCore 69 70 #endif // RenderThemeHaiku_h 71