| OLD | NEW |
| 1 /* | 1 /* |
| 2 * This file is part of the WebKit project. | 2 * This file is part of the WebKit project. |
| 3 * | 3 * |
| 4 * Copyright (C) 2006 Apple Computer, Inc. | 4 * Copyright (C) 2006 Apple Computer, Inc. |
| 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com | 5 * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com |
| 6 * Copyright (C) 2007 Holger Hans Peter Freyther | 6 * Copyright (C) 2007 Holger Hans Peter Freyther |
| 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 7 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 8 * Copyright (C) 2008, 2009 Google, Inc. | 8 * Copyright (C) 2008, 2009 Google, Inc. |
| 9 * All rights reserved. | 9 * All rights reserved. |
| 10 * Copyright (C) 2009 Kenneth Rohde Christiansen | 10 * Copyright (C) 2009 Kenneth Rohde Christiansen |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 #include "core/rendering/RenderThemeChromiumSkia.h" | 32 #include "core/rendering/RenderThemeChromiumSkia.h" |
| 33 | 33 |
| 34 namespace WebCore { | 34 namespace WebCore { |
| 35 | 35 |
| 36 class RenderThemeChromiumDefault : public RenderThemeChromiumSkia { | 36 class RenderThemeChromiumDefault : public RenderThemeChromiumSkia { |
| 37 public: | 37 public: |
| 38 static PassRefPtr<RenderTheme> create(); | 38 static PassRefPtr<RenderTheme> create(); |
| 39 virtual String extraDefaultStyleSheet(); | 39 virtual String extraDefaultStyleSheet(); |
| 40 | 40 |
| 41 virtual Color systemColor(CSSValueID) const; | 41 virtual Color systemColor(CSSValueID) const OVERRIDE; |
| 42 | 42 |
| 43 // A method asking if the control changes its tint when the window has focus
or not. | 43 // A method asking if the control changes its tint when the window has focus
or not. |
| 44 virtual bool controlSupportsTints(const RenderObject*) const; | 44 virtual bool controlSupportsTints(const RenderObject*) const OVERRIDE; |
| 45 | 45 |
| 46 virtual bool supportsFocusRing(const RenderStyle*) const OVERRIDE; | 46 virtual bool supportsFocusRing(const RenderStyle*) const OVERRIDE; |
| 47 | 47 |
| 48 // List Box selection color | 48 // List Box selection color |
| 49 virtual Color activeListBoxSelectionBackgroundColor() const; | 49 virtual Color activeListBoxSelectionBackgroundColor() const; |
| 50 virtual Color activeListBoxSelectionForegroundColor() const; | 50 virtual Color activeListBoxSelectionForegroundColor() const; |
| 51 virtual Color inactiveListBoxSelectionBackgroundColor() const; | 51 virtual Color inactiveListBoxSelectionBackgroundColor() const; |
| 52 virtual Color inactiveListBoxSelectionForegroundColor() const; | 52 virtual Color inactiveListBoxSelectionForegroundColor() const; |
| 53 | 53 |
| 54 virtual Color platformActiveSelectionBackgroundColor() const; | 54 virtual Color platformActiveSelectionBackgroundColor() const OVERRIDE; |
| 55 virtual Color platformInactiveSelectionBackgroundColor() const; | 55 virtual Color platformInactiveSelectionBackgroundColor() const OVERRIDE; |
| 56 virtual Color platformActiveSelectionForegroundColor() const; | 56 virtual Color platformActiveSelectionForegroundColor() const OVERRIDE; |
| 57 virtual Color platformInactiveSelectionForegroundColor() const; | 57 virtual Color platformInactiveSelectionForegroundColor() const OVERRIDE; |
| 58 | 58 |
| 59 virtual IntSize sliderTickSize() const OVERRIDE; | 59 virtual IntSize sliderTickSize() const OVERRIDE; |
| 60 virtual int sliderTickOffsetFromTrackCenter() const OVERRIDE; | 60 virtual int sliderTickOffsetFromTrackCenter() const OVERRIDE; |
| 61 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 61 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const OVERRIDE; |
| 62 | 62 |
| 63 static void setCaretBlinkInterval(double); | 63 static void setCaretBlinkInterval(double); |
| 64 virtual double caretBlinkIntervalInternal() const; | 64 virtual double caretBlinkIntervalInternal() const; |
| 65 | 65 |
| 66 virtual bool paintCheckbox(RenderObject*, const PaintInfo&, const IntRect&); | 66 virtual bool paintCheckbox(RenderObject*, const PaintInfo&, const IntRect&)
OVERRIDE; |
| 67 virtual void setCheckboxSize(RenderStyle*) const; | 67 virtual void setCheckboxSize(RenderStyle*) const OVERRIDE; |
| 68 | 68 |
| 69 virtual bool paintRadio(RenderObject*, const PaintInfo&, const IntRect&); | 69 virtual bool paintRadio(RenderObject*, const PaintInfo&, const IntRect&) OVE
RRIDE; |
| 70 virtual void setRadioSize(RenderStyle*) const; | 70 virtual void setRadioSize(RenderStyle*) const OVERRIDE; |
| 71 | 71 |
| 72 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&); | 72 virtual bool paintButton(RenderObject*, const PaintInfo&, const IntRect&) OV
ERRIDE; |
| 73 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&)
; | 73 virtual bool paintTextField(RenderObject*, const PaintInfo&, const IntRect&)
OVERRIDE; |
| 74 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&); | 74 virtual bool paintMenuList(RenderObject*, const PaintInfo&, const IntRect&)
OVERRIDE; |
| 75 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect
&); | 75 virtual bool paintSliderTrack(RenderObject*, const PaintInfo&, const IntRect
&) OVERRIDE; |
| 76 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect
&); | 76 virtual bool paintSliderThumb(RenderObject*, const PaintInfo&, const IntRect
&) OVERRIDE; |
| 77 | 77 |
| 78 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const; | 78 virtual void adjustInnerSpinButtonStyle(RenderStyle*, Element*) const OVERRI
DE; |
| 79 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int
Rect&); | 79 virtual bool paintInnerSpinButton(RenderObject*, const PaintInfo&, const Int
Rect&) OVERRIDE; |
| 80 | 80 |
| 81 virtual bool popsMenuBySpaceOrReturn() const OVERRIDE { return true; } | 81 virtual bool popsMenuBySpaceOrReturn() const OVERRIDE FINAL { return true; } |
| 82 | 82 |
| 83 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect
&); | 83 virtual bool paintProgressBar(RenderObject*, const PaintInfo&, const IntRect
&) OVERRIDE; |
| 84 | 84 |
| 85 virtual bool shouldOpenPickerWithF4Key() const OVERRIDE; | 85 virtual bool shouldOpenPickerWithF4Key() const OVERRIDE; |
| 86 | 86 |
| 87 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti
veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground
Color); | 87 static void setSelectionColors(unsigned activeBackgroundColor, unsigned acti
veForegroundColor, unsigned inactiveBackgroundColor, unsigned inactiveForeground
Color); |
| 88 | 88 |
| 89 protected: | 89 protected: |
| 90 RenderThemeChromiumDefault(); | 90 RenderThemeChromiumDefault(); |
| 91 virtual ~RenderThemeChromiumDefault(); | 91 virtual ~RenderThemeChromiumDefault(); |
| 92 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE; | 92 virtual bool shouldUseFallbackTheme(RenderStyle*) const OVERRIDE; |
| 93 | 93 |
| 94 private: | 94 private: |
| 95 // A general method asking if any control tinting is supported at all. | 95 // A general method asking if any control tinting is supported at all. |
| 96 virtual bool supportsControlTints() const; | 96 virtual bool supportsControlTints() const OVERRIDE; |
| 97 | 97 |
| 98 static double m_caretBlinkInterval; | 98 static double m_caretBlinkInterval; |
| 99 | 99 |
| 100 static unsigned m_activeSelectionBackgroundColor; | 100 static unsigned m_activeSelectionBackgroundColor; |
| 101 static unsigned m_activeSelectionForegroundColor; | 101 static unsigned m_activeSelectionForegroundColor; |
| 102 static unsigned m_inactiveSelectionBackgroundColor; | 102 static unsigned m_inactiveSelectionBackgroundColor; |
| 103 static unsigned m_inactiveSelectionForegroundColor; | 103 static unsigned m_inactiveSelectionForegroundColor; |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 } // namespace WebCore | 106 } // namespace WebCore |
| 107 | 107 |
| 108 #endif // RenderThemeChromiumDefault_h | 108 #endif // RenderThemeChromiumDefault_h |
| OLD | NEW |