| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 virtual void platformColorsDidChange(); | 63 virtual void platformColorsDidChange(); |
| 64 | 64 |
| 65 // System fonts. | 65 // System fonts. |
| 66 virtual void systemFont(int cssValueId, FontDescription&) const; | 66 virtual void systemFont(int cssValueId, FontDescription&) const; |
| 67 | 67 |
| 68 virtual int minimumMenuListSize(RenderStyle*) const; | 68 virtual int minimumMenuListSize(RenderStyle*) const; |
| 69 | 69 |
| 70 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; | 70 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; |
| 71 | 71 |
| 72 #if ENABLE(DATALIST_ELEMENT) | |
| 73 virtual IntSize sliderTickSize() const OVERRIDE; | 72 virtual IntSize sliderTickSize() const OVERRIDE; |
| 74 virtual int sliderTickOffsetFromTrackCenter() const OVERRIDE; | 73 virtual int sliderTickOffsetFromTrackCenter() const OVERRIDE; |
| 75 #endif | |
| 76 | 74 |
| 77 virtual int popupInternalPaddingLeft(RenderStyle*) const; | 75 virtual int popupInternalPaddingLeft(RenderStyle*) const; |
| 78 virtual int popupInternalPaddingRight(RenderStyle*) const; | 76 virtual int popupInternalPaddingRight(RenderStyle*) const; |
| 79 virtual int popupInternalPaddingTop(RenderStyle*) const; | 77 virtual int popupInternalPaddingTop(RenderStyle*) const; |
| 80 virtual int popupInternalPaddingBottom(RenderStyle*) const; | 78 virtual int popupInternalPaddingBottom(RenderStyle*) const; |
| 81 | 79 |
| 82 virtual bool paintCapsLockIndicator(RenderObject*, const PaintInfo&, const I
ntRect&) OVERRIDE; | 80 virtual bool paintCapsLockIndicator(RenderObject*, const PaintInfo&, const I
ntRect&) OVERRIDE; |
| 83 | 81 |
| 84 virtual bool popsMenuByArrowKeys() const OVERRIDE { return true; } | 82 virtual bool popsMenuByArrowKeys() const OVERRIDE { return true; } |
| 85 | 83 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 | 206 |
| 209 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. | 207 // Controls color values returned from platformFocusRingColor(). systemColor
() will be used when false. |
| 210 bool usesTestModeFocusRingColor() const; | 208 bool usesTestModeFocusRingColor() const; |
| 211 // A view associated to the contained document. Subclasses may not have such
a view and return a fake. | 209 // A view associated to the contained document. Subclasses may not have such
a view and return a fake. |
| 212 NSView* documentViewFor(RenderObject*) const; | 210 NSView* documentViewFor(RenderObject*) const; |
| 213 | 211 |
| 214 private: | 212 private: |
| 215 virtual Color disabledTextColor(const Color& textColor, const Color&) const
OVERRIDE { return textColor; } | 213 virtual Color disabledTextColor(const Color& textColor, const Color&) const
OVERRIDE { return textColor; } |
| 216 virtual void updateActiveState(NSCell*, const RenderObject*); | 214 virtual void updateActiveState(NSCell*, const RenderObject*); |
| 217 virtual String extraDefaultStyleSheet(); | 215 virtual String extraDefaultStyleSheet(); |
| 218 #if ENABLE(DATALIST_ELEMENT) | |
| 219 virtual LayoutUnit sliderTickSnappingThreshold() const OVERRIDE; | 216 virtual LayoutUnit sliderTickSnappingThreshold() const OVERRIDE; |
| 220 #endif | |
| 221 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) | 217 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) |
| 222 virtual bool supportsCalendarPicker(const AtomicString& type) const OVERRIDE
; | 218 virtual bool supportsCalendarPicker(const AtomicString& type) const OVERRIDE
; |
| 223 #endif | 219 #endif |
| 224 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE; | 220 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE; |
| 225 | 221 |
| 226 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; | 222 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; |
| 227 mutable RetainPtr<NSSearchFieldCell> m_search; | 223 mutable RetainPtr<NSSearchFieldCell> m_search; |
| 228 mutable RetainPtr<NSMenu> m_searchMenuTemplate; | 224 mutable RetainPtr<NSMenu> m_searchMenuTemplate; |
| 229 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal; | 225 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal; |
| 230 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical; | 226 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical; |
| 231 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; | 227 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; |
| 232 mutable RetainPtr<NSTextFieldCell> m_textField; | 228 mutable RetainPtr<NSTextFieldCell> m_textField; |
| 233 | 229 |
| 234 bool m_isSliderThumbHorizontalPressed; | 230 bool m_isSliderThumbHorizontalPressed; |
| 235 bool m_isSliderThumbVerticalPressed; | 231 bool m_isSliderThumbVerticalPressed; |
| 236 | 232 |
| 237 mutable HashMap<int, RGBA32> m_systemColorCache; | 233 mutable HashMap<int, RGBA32> m_systemColorCache; |
| 238 | 234 |
| 239 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; | 235 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; |
| 240 }; | 236 }; |
| 241 | 237 |
| 242 } // namespace WebCore | 238 } // namespace WebCore |
| 243 | 239 |
| 244 #endif // RenderThemeChromiumMac_h | 240 #endif // RenderThemeChromiumMac_h |
| OLD | NEW |