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

Side by Side Diff: Source/core/layout/LayoutThemeChromiumMac.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 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 virtual Color platformInactiveListBoxSelectionForegroundColor() const overri de; 49 virtual Color platformInactiveListBoxSelectionForegroundColor() const overri de;
50 virtual Color platformFocusRingColor() const override; 50 virtual Color platformFocusRingColor() const override;
51 51
52 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart part) o verride { return part == ListboxPart ? SmallScrollbar : RegularScrollbar; } 52 virtual ScrollbarControlSize scrollbarControlSizeForPart(ControlPart part) o verride { return part == ListboxPart ? SmallScrollbar : RegularScrollbar; }
53 53
54 virtual void platformColorsDidChange() override; 54 virtual void platformColorsDidChange() override;
55 55
56 // System fonts. 56 // System fonts.
57 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const override; 57 virtual void systemFont(CSSValueID systemFontID, FontStyle&, FontWeight&, fl oat& fontSize, AtomicString& fontFamily) const override;
58 58
59 virtual int minimumMenuListSize(RenderStyle*) const override; 59 virtual int minimumMenuListSize(const RenderStyle*) const override;
60 60
61 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const override; 61 virtual void adjustSliderThumbSize(RenderStyle*, Element*) const override;
62 62
63 virtual IntSize sliderTickSize() const override; 63 virtual IntSize sliderTickSize() const override;
64 virtual int sliderTickOffsetFromTrackCenter() const override; 64 virtual int sliderTickOffsetFromTrackCenter() const override;
65 65
66 virtual int popupInternalPaddingLeft(RenderStyle*) const override; 66 virtual int popupInternalPaddingLeft(RenderStyle*) const override;
67 virtual int popupInternalPaddingRight(RenderStyle*) const override; 67 virtual int popupInternalPaddingRight(RenderStyle*) const override;
68 virtual int popupInternalPaddingTop(RenderStyle*) const override; 68 virtual int popupInternalPaddingTop(RenderStyle*) const override;
69 virtual int popupInternalPaddingBottom(RenderStyle*) const override; 69 virtual int popupInternalPaddingBottom(RenderStyle*) const override;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 virtual void adjustSearchFieldResultsDecorationStyle(RenderStyle*, Element*) const override; 120 virtual void adjustSearchFieldResultsDecorationStyle(RenderStyle*, Element*) const override;
121 virtual bool paintSearchFieldResultsDecoration(RenderObject*, const PaintInf o&, const IntRect&) override; 121 virtual bool paintSearchFieldResultsDecoration(RenderObject*, const PaintInf o&, const IntRect&) override;
122 122
123 private: 123 private:
124 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i nt width) const override; 124 virtual String fileListNameForWidth(Locale&, const FileList*, const Font&, i nt width) const override;
125 125
126 FloatRect convertToPaintingRect(const RenderObject* inputRenderer, const Ren derObject* partRenderer, const FloatRect& inputRect, const IntRect&) const; 126 FloatRect convertToPaintingRect(const RenderObject* inputRenderer, const Ren derObject* partRenderer, const FloatRect& inputRect, const IntRect&) const;
127 127
128 // Get the control size based off the font. Used by some of the controls (li ke buttons). 128 // Get the control size based off the font. Used by some of the controls (li ke buttons).
129 NSControlSize controlSizeForFont(RenderStyle*) const; 129 NSControlSize controlSizeForFont(const RenderStyle*) const;
130 NSControlSize controlSizeForSystemFont(RenderStyle*) const; 130 NSControlSize controlSizeForSystemFont(const RenderStyle*) const;
131 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f loat zoomLevel = 1.0f); 131 void setControlSize(NSCell*, const IntSize* sizes, const IntSize& minSize, f loat zoomLevel = 1.0f);
132 void setSizeFromFont(RenderStyle*, const IntSize* sizes) const; 132 void setSizeFromFont(RenderStyle*, const IntSize* sizes) const;
133 IntSize sizeForFont(RenderStyle*, const IntSize* sizes) const; 133 IntSize sizeForFont(RenderStyle*, const IntSize* sizes) const;
134 IntSize sizeForSystemFont(RenderStyle*, const IntSize* sizes) const; 134 IntSize sizeForSystemFont(RenderStyle*, const IntSize* sizes) const;
135 void setFontFromControlSize(RenderStyle*, NSControlSize) const; 135 void setFontFromControlSize(RenderStyle*, NSControlSize) const;
136 136
137 void updateCheckedState(NSCell*, const RenderObject*); 137 void updateCheckedState(NSCell*, const RenderObject*);
138 void updateEnabledState(NSCell*, const RenderObject*); 138 void updateEnabledState(NSCell*, const RenderObject*);
139 void updateFocusedState(NSCell*, const RenderObject*); 139 void updateFocusedState(NSCell*, const RenderObject*);
140 void updatePressedState(NSCell*, const RenderObject*); 140 void updatePressedState(NSCell*, const RenderObject*);
(...skipping 12 matching lines...) Expand all
153 void setSearchCellState(RenderObject*, const IntRect&); 153 void setSearchCellState(RenderObject*, const IntRect&);
154 void setSearchFieldSize(RenderStyle*) const; 154 void setSearchFieldSize(RenderStyle*) const;
155 155
156 NSPopUpButtonCell* popupButton() const; 156 NSPopUpButtonCell* popupButton() const;
157 NSSearchFieldCell* search() const; 157 NSSearchFieldCell* search() const;
158 NSTextFieldCell* textField() const; 158 NSTextFieldCell* textField() const;
159 159
160 NSLevelIndicatorStyle levelIndicatorStyleFor(ControlPart) const; 160 NSLevelIndicatorStyle levelIndicatorStyleFor(ControlPart) const;
161 NSLevelIndicatorCell* levelIndicatorFor(const RenderMeter*) const; 161 NSLevelIndicatorCell* levelIndicatorFor(const RenderMeter*) const;
162 162
163 int minimumProgressBarHeight(RenderStyle*) const; 163 int minimumProgressBarHeight(const RenderStyle*) const;
164 const IntSize* progressBarSizes() const; 164 const IntSize* progressBarSizes() const;
165 const int* progressBarMargins(NSControlSize) const; 165 const int* progressBarMargins(NSControlSize) const;
166 166
167 protected: 167 protected:
168 virtual void adjustMediaSliderThumbSize(RenderStyle*) const; 168 virtual void adjustMediaSliderThumbSize(RenderStyle*) const;
169 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const Int Rect&) override; 169 virtual bool paintMediaPlayButton(RenderObject*, const PaintInfo&, const Int Rect&) override;
170 virtual bool paintMediaOverlayPlayButton(RenderObject*, const PaintInfo&, co nst IntRect&) override; 170 virtual bool paintMediaOverlayPlayButton(RenderObject*, const PaintInfo&, co nst IntRect&) override;
171 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const Int Rect&) override; 171 virtual bool paintMediaMuteButton(RenderObject*, const PaintInfo&, const Int Rect&) override;
172 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const In tRect&) override; 172 virtual bool paintMediaSliderTrack(RenderObject*, const PaintInfo&, const In tRect&) override;
173 virtual String extraFullScreenStyleSheet() override; 173 virtual String extraFullScreenStyleSheet() override;
(...skipping 26 matching lines...) Expand all
200 mutable RetainPtr<NSTextFieldCell> m_textField; 200 mutable RetainPtr<NSTextFieldCell> m_textField;
201 201
202 mutable HashMap<int, RGBA32> m_systemColorCache; 202 mutable HashMap<int, RGBA32> m_systemColorCache;
203 203
204 RetainPtr<LayoutThemeNotificationObserver> m_notificationObserver; 204 RetainPtr<LayoutThemeNotificationObserver> m_notificationObserver;
205 }; 205 };
206 206
207 } // namespace blink 207 } // namespace blink
208 208
209 #endif // LayoutThemeChromiumMac_h 209 #endif // LayoutThemeChromiumMac_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698