| 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 static const int menuListArrowPaddingRight = 4; | 151 static const int menuListArrowPaddingRight = 4; |
| 152 static const int sliderThumbWidth = 15; | 152 static const int sliderThumbWidth = 15; |
| 153 static const int sliderThumbHeight = 15; | 153 static const int sliderThumbHeight = 15; |
| 154 static const int sliderThumbShadowBlur = 1; | 154 static const int sliderThumbShadowBlur = 1; |
| 155 static const int sliderThumbBorderWidth = 1; | 155 static const int sliderThumbBorderWidth = 1; |
| 156 static const int sliderTrackWidth = 5; | 156 static const int sliderTrackWidth = 5; |
| 157 static const int sliderTrackBorderWidth = 1; | 157 static const int sliderTrackBorderWidth = 1; |
| 158 | 158 |
| 159 protected: | 159 protected: |
| 160 void adjustMediaSliderThumbSize(ComputedStyle&) const; | 160 void adjustMediaSliderThumbSize(ComputedStyle&) const; |
| 161 String extraFullScreenStyleSheet() override; | 161 String extraFullscreenStyleSheet() override; |
| 162 | 162 |
| 163 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. | 163 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. |
| 164 bool usesTestModeFocusRingColor() const; | 164 bool usesTestModeFocusRingColor() const; |
| 165 | 165 |
| 166 bool shouldUseFallbackTheme(const ComputedStyle&) const override; | 166 bool shouldUseFallbackTheme(const ComputedStyle&) const override; |
| 167 | 167 |
| 168 private: | 168 private: |
| 169 String fileListNameForWidth(Locale&, const FileList*, const Font&, int width
) const override; | 169 String fileListNameForWidth(Locale&, const FileList*, const Font&, int width
) const override; |
| 170 String extraDefaultStyleSheet() override; | 170 String extraDefaultStyleSheet() override; |
| 171 bool themeDrawsFocusRing(const ComputedStyle&) const override; | 171 bool themeDrawsFocusRing(const ComputedStyle&) const override; |
| 172 | 172 |
| 173 ThemePainter& painter() override { return m_painter; } | 173 ThemePainter& painter() override { return m_painter; } |
| 174 | 174 |
| 175 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; | 175 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; |
| 176 mutable RetainPtr<NSSearchFieldCell> m_search; | 176 mutable RetainPtr<NSSearchFieldCell> m_search; |
| 177 mutable RetainPtr<NSMenu> m_searchMenuTemplate; | 177 mutable RetainPtr<NSMenu> m_searchMenuTemplate; |
| 178 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; | 178 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; |
| 179 mutable RetainPtr<NSTextFieldCell> m_textField; | 179 mutable RetainPtr<NSTextFieldCell> m_textField; |
| 180 | 180 |
| 181 mutable HashMap<int, RGBA32> m_systemColorCache; | 181 mutable HashMap<int, RGBA32> m_systemColorCache; |
| 182 | 182 |
| 183 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; | 183 RetainPtr<BlinkLayoutThemeNotificationObserver> m_notificationObserver; |
| 184 | 184 |
| 185 ThemePainterMac m_painter; | 185 ThemePainterMac m_painter; |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 } // namespace blink | 188 } // namespace blink |
| 189 | 189 |
| 190 #endif // LayoutThemeMac_h | 190 #endif // LayoutThemeMac_h |
| OLD | NEW |