| 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 Apple Computer, Inc. | 4 * Copyright (C) 2005 Apple Computer, Inc. |
| 5 * Copyright (C) 2008, 2009 Google, Inc. | 5 * Copyright (C) 2008, 2009 Google, Inc. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 static const int menuListArrowPaddingRight = 4; | 154 static const int menuListArrowPaddingRight = 4; |
| 155 static const int sliderThumbWidth = 15; | 155 static const int sliderThumbWidth = 15; |
| 156 static const int sliderThumbHeight = 15; | 156 static const int sliderThumbHeight = 15; |
| 157 static const int sliderThumbShadowBlur = 1; | 157 static const int sliderThumbShadowBlur = 1; |
| 158 static const int sliderThumbBorderWidth = 1; | 158 static const int sliderThumbBorderWidth = 1; |
| 159 static const int sliderTrackWidth = 5; | 159 static const int sliderTrackWidth = 5; |
| 160 static const int sliderTrackBorderWidth = 1; | 160 static const int sliderTrackBorderWidth = 1; |
| 161 | 161 |
| 162 protected: | 162 protected: |
| 163 void adjustMediaSliderThumbSize(ComputedStyle&) const; | 163 void adjustMediaSliderThumbSize(ComputedStyle&) const; |
| 164 String extraFullScreenStyleSheet() override; | 164 String extraFullscreenStyleSheet() override; |
| 165 | 165 |
| 166 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. | 166 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. |
| 167 bool usesTestModeFocusRingColor() const; | 167 bool usesTestModeFocusRingColor() const; |
| 168 | 168 |
| 169 bool shouldUseFallbackTheme(const ComputedStyle&) const override; | 169 bool shouldUseFallbackTheme(const ComputedStyle&) const override; |
| 170 | 170 |
| 171 private: | 171 private: |
| 172 String fileListNameForWidth(Locale&, const FileList*, const Font&, int width
) const override; | 172 String fileListNameForWidth(Locale&, const FileList*, const Font&, int width
) const override; |
| 173 String extraDefaultStyleSheet() override; | 173 String extraDefaultStyleSheet() override; |
| 174 bool themeDrawsFocusRing(const ComputedStyle&) const override; | 174 bool themeDrawsFocusRing(const ComputedStyle&) const override; |
| 175 | 175 |
| 176 ThemePainter& painter() override { return m_painter; } | 176 ThemePainter& painter() override { return m_painter; } |
| 177 | 177 |
| 178 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; | 178 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; |
| 179 mutable RetainPtr<NSSearchFieldCell> m_search; | 179 mutable RetainPtr<NSSearchFieldCell> m_search; |
| 180 mutable RetainPtr<NSMenu> m_searchMenuTemplate; | 180 mutable RetainPtr<NSMenu> m_searchMenuTemplate; |
| 181 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; | 181 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; |
| 182 mutable RetainPtr<NSTextFieldCell> m_textField; | 182 mutable RetainPtr<NSTextFieldCell> m_textField; |
| 183 | 183 |
| 184 mutable HashMap<int, RGBA32> m_systemColorCache; | 184 mutable HashMap<int, RGBA32> m_systemColorCache; |
| 185 | 185 |
| 186 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; | 186 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; |
| 187 | 187 |
| 188 ThemePainterMac m_painter; | 188 ThemePainterMac m_painter; |
| 189 }; | 189 }; |
| 190 | 190 |
| 191 } // namespace blink | 191 } // namespace blink |
| 192 | 192 |
| 193 #endif // LayoutThemeMac_h | 193 #endif // LayoutThemeMac_h |
| OLD | NEW |