Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Side by Side Diff: Source/core/rendering/RenderThemeChromiumMac.h

Issue 14859003: Remove the compile time flag for DATALIST Element. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add <datalist> display:none rule in RenderTheme::extraDefaultStyleSheet depending on the runtime fl… Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 203
206 // Controls color values returned from platformFocusRingColor(). systemColor () will be used when false. 204 // Controls color values returned from platformFocusRingColor(). systemColor () will be used when false.
207 bool usesTestModeFocusRingColor() const; 205 bool usesTestModeFocusRingColor() const;
208 // A view associated to the contained document. Subclasses may not have such a view and return a fake. 206 // A view associated to the contained document. Subclasses may not have such a view and return a fake.
209 NSView* documentViewFor(RenderObject*) const; 207 NSView* documentViewFor(RenderObject*) const;
210 208
211 private: 209 private:
212 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; } 210 virtual Color disabledTextColor(const Color& textColor, const Color&) const OVERRIDE { return textColor; }
213 virtual void updateActiveState(NSCell*, const RenderObject*); 211 virtual void updateActiveState(NSCell*, const RenderObject*);
214 virtual String extraDefaultStyleSheet(); 212 virtual String extraDefaultStyleSheet();
215 #if ENABLE(DATALIST_ELEMENT)
216 virtual LayoutUnit sliderTickSnappingThreshold() const OVERRIDE; 213 virtual LayoutUnit sliderTickSnappingThreshold() const OVERRIDE;
217 #endif
218 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI) 214 #if ENABLE(INPUT_MULTIPLE_FIELDS_UI)
219 virtual bool supportsCalendarPicker(const AtomicString& type) const OVERRIDE ; 215 virtual bool supportsCalendarPicker(const AtomicString& type) const OVERRIDE ;
220 #endif 216 #endif
221 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE; 217 virtual bool shouldShowPlaceholderWhenFocused() const OVERRIDE;
222 218
223 mutable RetainPtr<NSPopUpButtonCell> m_popupButton; 219 mutable RetainPtr<NSPopUpButtonCell> m_popupButton;
224 mutable RetainPtr<NSSearchFieldCell> m_search; 220 mutable RetainPtr<NSSearchFieldCell> m_search;
225 mutable RetainPtr<NSMenu> m_searchMenuTemplate; 221 mutable RetainPtr<NSMenu> m_searchMenuTemplate;
226 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal; 222 mutable RetainPtr<NSSliderCell> m_sliderThumbHorizontal;
227 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical; 223 mutable RetainPtr<NSSliderCell> m_sliderThumbVertical;
228 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator; 224 mutable RetainPtr<NSLevelIndicatorCell> m_levelIndicator;
229 mutable RetainPtr<NSTextFieldCell> m_textField; 225 mutable RetainPtr<NSTextFieldCell> m_textField;
230 226
231 bool m_isSliderThumbHorizontalPressed; 227 bool m_isSliderThumbHorizontalPressed;
232 bool m_isSliderThumbVerticalPressed; 228 bool m_isSliderThumbVerticalPressed;
233 229
234 mutable HashMap<int, RGBA32> m_systemColorCache; 230 mutable HashMap<int, RGBA32> m_systemColorCache;
235 231
236 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver; 232 RetainPtr<WebCoreRenderThemeNotificationObserver> m_notificationObserver;
237 }; 233 };
238 234
239 } // namespace WebCore 235 } // namespace WebCore
240 236
241 #endif // RenderThemeChromiumMac_h 237 #endif // RenderThemeChromiumMac_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698