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

Side by Side Diff: Source/core/layout/LayoutTheme.h

Issue 889563002: Make RenderObject::style() return a const object (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Blind fix for Mac. Created 5 years, 10 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
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 26 matching lines...) Expand all
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class Element; 40 class Element;
41 class FileList; 41 class FileList;
42 class HTMLInputElement; 42 class HTMLInputElement;
43 class RenderMeter; 43 class RenderMeter;
44 class RenderProgress; 44 class RenderProgress;
45 45
46 46
47 // FIXME: A lot of the functions taking a RenderStyle could be take a const obje ct.
47 class LayoutTheme : public RefCounted<LayoutTheme> { 48 class LayoutTheme : public RefCounted<LayoutTheme> {
48 protected: 49 protected:
49 LayoutTheme(); 50 LayoutTheme();
50 51
51 public: 52 public:
52 virtual ~LayoutTheme() { } 53 virtual ~LayoutTheme() { }
53 54
54 // This function is to be implemented in your platform-specific theme implem entation to hand back the 55 // This function is to be implemented in your platform-specific theme implem entation to hand back the
55 // appropriate platform theme. 56 // appropriate platform theme.
56 static LayoutTheme& theme(); 57 static LayoutTheme& theme();
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 virtual Color platformDefaultCompositionBackgroundColor() const { return def aultCompositionBackgroundColor; } 136 virtual Color platformDefaultCompositionBackgroundColor() const { return def aultCompositionBackgroundColor; }
136 virtual void platformColorsDidChange(); 137 virtual void platformColorsDidChange();
137 138
138 virtual double caretBlinkInterval() const { return 0.5; } 139 virtual double caretBlinkInterval() const { return 0.5; }
139 140
140 // System fonts and colors for CSS. 141 // System fonts and colors for CSS.
141 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0; 142 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const = 0;
142 void systemFont(CSSValueID systemFontID, FontDescription&); 143 void systemFont(CSSValueID systemFontID, FontDescription&);
143 virtual Color systemColor(CSSValueID) const; 144 virtual Color systemColor(CSSValueID) const;
144 145
145 virtual int minimumMenuListSize(RenderStyle*) const { return 0; } 146 virtual int minimumMenuListSize(const RenderStyle*) const { return 0; }
146 147
147 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const; 148 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const;
148 149
149 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; } 150 virtual int popupInternalPaddingLeft(RenderStyle*) const { return 0; }
150 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; } 151 virtual int popupInternalPaddingRight(RenderStyle*) const { return 0; }
151 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; } 152 virtual int popupInternalPaddingTop(RenderStyle*) const { return 0; }
152 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; } 153 virtual int popupInternalPaddingBottom(RenderStyle*) const { return 0; }
153 virtual bool popupOptionSupportsTextIndent() const { return false; } 154 virtual bool popupOptionSupportsTextIndent() const { return false; }
154 155
155 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu rn RegularScrollbar; } 156 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart) { retu rn RegularScrollbar; }
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55; 308 static const RGBA32 defaultCompositionBackgroundColor = 0xFFFFDD55;
308 309
309 #if USE(NEW_THEME) 310 #if USE(NEW_THEME)
310 Theme* m_platformTheme; // The platform-specific theme. 311 Theme* m_platformTheme; // The platform-specific theme.
311 #endif 312 #endif
312 }; 313 };
313 314
314 } // namespace blink 315 } // namespace blink
315 316
316 #endif // LayoutTheme_h 317 #endif // LayoutTheme_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698