Chromium Code Reviews| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 56 Color platformInactiveSelectionBackgroundColor() const override; | 56 Color platformInactiveSelectionBackgroundColor() const override; |
| 57 Color platformActiveSelectionForegroundColor() const override; | 57 Color platformActiveSelectionForegroundColor() const override; |
| 58 Color platformInactiveSelectionForegroundColor() const override; | 58 Color platformInactiveSelectionForegroundColor() const override; |
| 59 | 59 |
| 60 IntSize sliderTickSize() const override; | 60 IntSize sliderTickSize() const override; |
| 61 int sliderTickOffsetFromTrackCenter() const override; | 61 int sliderTickOffsetFromTrackCenter() const override; |
| 62 void adjustSliderThumbSize(ComputedStyle&) const override; | 62 void adjustSliderThumbSize(ComputedStyle&) const override; |
| 63 | 63 |
| 64 static void setCaretBlinkInterval(double); | 64 static void setCaretBlinkInterval(double); |
| 65 | 65 |
| 66 #if !USE(NEW_THEME) | |
|
pdr.
2016/02/12 06:36:14
These theme checks are tricky. WDYT about a pixel
dgozman
2016/02/19 19:15:16
I've reworked this to remove all NEW_THEME checks
| |
| 66 void setCheckboxSize(ComputedStyle&) const override; | 67 void setCheckboxSize(ComputedStyle&) const override; |
| 67 void setRadioSize(ComputedStyle&) const override; | 68 void setRadioSize(ComputedStyle&) const override; |
| 68 void adjustInnerSpinButtonStyle(ComputedStyle&) const override; | 69 void adjustInnerSpinButtonStyle(ComputedStyle&) const override; |
| 70 void adjustButtonStyle(ComputedStyle&) const override; | |
| 71 #endif | |
| 69 | 72 |
| 70 bool popsMenuBySpaceKey() const final { return true; } | 73 bool popsMenuBySpaceKey() const final { return true; } |
| 71 bool popsMenuByReturnKey() const final { return true; } | 74 bool popsMenuByReturnKey() const final { return true; } |
| 72 bool popsMenuByAltDownUpOrF4Key() const override { return true; } | 75 bool popsMenuByAltDownUpOrF4Key() const override { return true; } |
| 73 | 76 |
| 74 bool shouldOpenPickerWithF4Key() const override; | 77 bool shouldOpenPickerWithF4Key() const override; |
| 75 | 78 |
| 76 Color platformTapHighlightColor() const override | 79 Color platformTapHighlightColor() const override |
| 77 { | 80 { |
| 78 return Color(defaultTapHighlightColor); | 81 return Color(defaultTapHighlightColor); |
| 79 } | 82 } |
| 80 | 83 |
| 81 // A method asking if the theme's controls actually care about redrawing | 84 // A method asking if the theme's controls actually care about redrawing |
| 82 // when hovered. | 85 // when hovered. |
| 83 bool supportsHover(const ComputedStyle&) const final; | 86 bool supportsHover(const ComputedStyle&) const final; |
| 84 | 87 |
| 85 Color platformFocusRingColor() const override; | 88 Color platformFocusRingColor() const override; |
| 86 | 89 |
| 87 double caretBlinkInterval() const final; | 90 double caretBlinkInterval() const final; |
| 88 | 91 |
| 89 // System fonts. | 92 // System fonts. |
| 90 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const; | 93 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const; |
| 91 | 94 |
| 92 int minimumMenuListSize(const ComputedStyle&) const override; | 95 int minimumMenuListSize(const ComputedStyle&) const override; |
| 93 | 96 |
| 94 void adjustButtonStyle(ComputedStyle&) const override; | |
| 95 void adjustSearchFieldStyle(ComputedStyle&) const override; | 97 void adjustSearchFieldStyle(ComputedStyle&) const override; |
| 96 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override; | 98 void adjustSearchFieldCancelButtonStyle(ComputedStyle&) const override; |
| 97 void adjustSearchFieldDecorationStyle(ComputedStyle&) const override; | 99 void adjustSearchFieldDecorationStyle(ComputedStyle&) const override; |
| 98 void adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const override; | 100 void adjustSearchFieldResultsDecorationStyle(ComputedStyle&) const override; |
| 99 | 101 |
| 100 // MenuList refers to an unstyled menulist (meaning a menulist without | 102 // MenuList refers to an unstyled menulist (meaning a menulist without |
| 101 // background-color or border set) and MenuListButton refers to a styled | 103 // background-color or border set) and MenuListButton refers to a styled |
| 102 // menulist (a menulist with background-color or border set). They have | 104 // menulist (a menulist with background-color or border set). They have |
| 103 // this distinction to support showing aqua style themes whenever they | 105 // this distinction to support showing aqua style themes whenever they |
| 104 // possibly can, which is something we don't want to replicate. | 106 // possibly can, which is something we don't want to replicate. |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 static unsigned m_activeSelectionForegroundColor; | 149 static unsigned m_activeSelectionForegroundColor; |
| 148 static unsigned m_inactiveSelectionBackgroundColor; | 150 static unsigned m_inactiveSelectionBackgroundColor; |
| 149 static unsigned m_inactiveSelectionForegroundColor; | 151 static unsigned m_inactiveSelectionForegroundColor; |
| 150 | 152 |
| 151 ThemePainterDefault m_painter; | 153 ThemePainterDefault m_painter; |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 } // namespace blink | 156 } // namespace blink |
| 155 | 157 |
| 156 #endif // LayoutThemeDefault_h | 158 #endif // LayoutThemeDefault_h |
| OLD | NEW |