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

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

Issue 205743004: Expand system font values during font property parsing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase and fix up unittest use of systemFont() Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc. 4 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Computer, Inc.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Color focusRingColor() const; 139 Color focusRingColor() const;
140 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); } 140 virtual Color platformFocusRingColor() const { return Color(0, 0, 0); }
141 void setCustomFocusRingColor(const Color&); 141 void setCustomFocusRingColor(const Color&);
142 static Color tapHighlightColor(); 142 static Color tapHighlightColor();
143 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul tTapHighlightColor; } 143 virtual Color platformTapHighlightColor() const { return RenderTheme::defaul tTapHighlightColor; }
144 virtual void platformColorsDidChange(); 144 virtual void platformColorsDidChange();
145 145
146 virtual double caretBlinkInterval() const { return 0.5; } 146 virtual double caretBlinkInterval() const { return 0.5; }
147 147
148 // System fonts and colors for CSS. 148 // System fonts and colors for CSS.
149 virtual void systemFont(CSSValueID, FontDescription&) const = 0; 149 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0;
150 void systemFont(CSSValueID systemFontID, FontDescription&);
150 virtual Color systemColor(CSSValueID) const; 151 virtual Color systemColor(CSSValueID) const;
151 152
152 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } 153 virtual int minimumMenuListSize(RenderStyle*) const { return 0; }
153 154
154 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; 155 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const;
155 156
156 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } 157 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; }
157 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } 158 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; }
158 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } 159 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; }
159 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } 160 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; }
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 static const RGBA32 defaultTapHighlightColor = 0x66000000; 313 static const RGBA32 defaultTapHighlightColor = 0x66000000;
313 314
314 #if USE(NEW_THEME) 315 #if USE(NEW_THEME)
315 Theme* m_platformTheme; // The platform-specific theme. 316 Theme* m_platformTheme; // The platform-specific theme.
316 #endif 317 #endif
317 }; 318 };
318 319
319 } // namespace WebCore 320 } // namespace WebCore
320 321
321 #endif // RenderTheme_h 322 #endif // RenderTheme_h
OLDNEW
« no previous file with comments | « Source/core/css/resolver/StyleBuilderCustom.cpp ('k') | Source/core/rendering/RenderTheme.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698